PageSourceSearch

https://tcebaby.com.my/_next/static/chunks/pages/_app-501aa0fe390a10cb.js

js tcebaby.com.my collected 2026-09-24 10:20:48 UTC 951,094 bytes, 234 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="cc039f60-1c60-4468-993d-8924407bcb63",e._sentryDebugIdIdentifier="sentry-dbid-cc039f60-1c60-4468-993d-8924407bcb63")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{48075:function(e,t,r){"use strict";r.d(t,{g:function(){return tJ}});/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */var n,i,o,a,s,u,l,c,d,f,h,p,m,v,y,b,w,x,_,S,C,E,k,T,A,P,I,O,M,j,D=function(e,t){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function R(e,t){function r(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var N=function(){return(N=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}).apply(this,arguments)};function U(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function F(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;function s(o){return function(s){return function(o){if(r)throw 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 L(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function B(e){return e&&!!["provider"].find(function(t){return e.hasOwnProperty(t)})}function z(e){return void 0!==e.redirectSignIn}(n=m||(m={})).Cognito="COGNITO",n.Google="Google",n.Facebook="Facebook",n.Amazon="LoginWithAmazon",n.Apple="SignInWithApple",(i=v||(v={})).NoConfig="noConfig",i.MissingAuthConfig="missingAuthConfig",i.EmptyUsername="emptyUsername",i.InvalidUsername="invalidUsername",i.EmptyPassword="emptyPassword",i.EmptyCode="emptyCode",i.SignUpError="signUpError",i.NoMFA="noMFA",i.InvalidMFA="invalidMFA",i.EmptyChallengeResponse="emptyChallengeResponse",i.NoUserSession="noUserSession",i.Default="default",i.DeviceConfig="deviceConfig",i.NetworkError="networkError",i.AutoSignInError="autoSignInError",(o=y||(y={})).API_KEY="API_KEY",o.AWS_IAM="AWS_IAM",o.OPENID_CONNECT="OPENID_CONNECT",o.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",o.AW
14S_LAMBDA="AWS_LAMBDA";var H=r(93769),q=r(20490),W={},$=function(){function e(){}return e.setItem=function(e,t){return W[e]=t,W[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(W,e)?W[e]:void 0},e.removeItem=function(e){return delete W[e]},e.clear=function(){return W={}},e}(),V=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=$}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),Y=r(83454),Z=function(e){if(e.isResolved)return e;var t=!0,r=!1,n=!1,i=e.then(function(e){return n=!0,t=!1,e},function(e){throw r=!0,t=!1,e});return i.isFullfilled=function(){return n},i.isPending=function(){return t},i.isRejected=function(){return r},i},G=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==Y&&null!=Y.versions&&null!=Y.versions.node}},K=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=[]),!X(e))return e;var n={};for(var i in e)e.hasOwnProperty(i)&&(n[t.includes(i)?i:i[0].toLowerCase()+i.slice(1)]=r.includes(i)?e[i]:K(e[i],t,r));return n},Q=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=[]),!X(e))return e;var n={};for(var i in e)e.hasOwnProperty(i)&&(n[t.includes(i)?i:i[0].toUpperCase()+i.slice(1)]=r.includes(i)?e[i]:Q(e[i],t,r));return n},X=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},J=(a=function(e,t){return(a=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])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ee=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},et=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},er=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},en=function(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))},ei=new H.k("Util"),eo=function(e){function t(t){var r=e.call(this,t)||this;return r.nonRetryable=!0,r}return J(t,e),t}(Error);function ea(e){return void 0===e&&(e=3e5),function(t){var r=100*Math.pow(2,t)+100*Math.random();return!(r>e)&&r}}var es=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},eu=new H.k("CognitoCredentials"),el=new Promise(function(e,t){return G().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(eu.debug("google api already loaded"),e()):void setTimeout(function(){return e()},2e3):(eu.debug("not in the browser, directly resolved"),e())}),ec=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return es(this,function(e){switch(e.label){case 0:if(this.initialized)return[3,2];return eu.debug("need to wait for the Google SDK loaded"),[4,el];case 1:e.sent(),this.initialized=!0,eu.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}})},new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},e.prototype._refreshGoogleTokenImpl=function(){var e=null;return(G().isBrowser&&(e=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),e)?new Promise(function(t,r){e.getAuthInstance().then(function(e){e||(eu.debug("google Auth undefined"),r(new eo("google Auth undefined")));var n=e.currentUser.get();n.isSignedIn()?(eu.debug("refreshing the google access token"),n.reloadAuthResponse().then(function(e){t({token:e.id_token,expires_at:e.expires_at})}).catch(function(e){e&&"network_error"===e.error?r("Network error reloading google auth response"):r(new eo("Failed to reload google auth response"))})):r(new eo("User is not signed in with Google"))}).catch(function(e){eu.debug("Failed to refresh google token",e),r(new eo("Failed to refresh google token"))})}):(eu.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),ed=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},ef=new H.k("CognitoCredentials"),eh=new Promise(function(e,t){return G().isBrowser?window.FB?(ef.debug("FB SDK already loaded"),e()):void setTimeout(function(){return e()},2e3):(ef.debug("not in the browser, directly resolved"),e())}),ep=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return ed(this,function(e){switch(e.label){case 0:if(this.initialized)return[3,2];return ef.debug("need to wait for the Facebook SDK loaded"),[4,eh];case 1:e.sent(),this.initialized=!0,ef.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}})},new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},e.prototype._refreshFacebookTokenImpl=function(){var e=null;if(G().isBrowser&&(e=window.FB),!e){var t="no fb sdk available";return ef.debug(t),Promise.reject(new eo(t))}return new Promise(function(t,r){e.getLoginStatus(function(e){if(e&&e.authResponse){var n=e.authResponse,i=n.accessToken,o=1e3*n.expiresIn+new Date().getTime();if(!i){var a="the jwtToken is undefined";ef.debug(a),r(new eo(a))}t({token:i,expires_at:o})}else{var a="no response from facebook when refreshing the jwt token";ef.debug(a),r(new eo(a))}},{scope:"public_profile,email"})})},e}(),eg=new ec,em=new ep,ev=r(25387),ey={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},eb={partitions:[ey,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},ew=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
14if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ex=function(e){var t,r,n=eb.partitions;try{for(var i=ew(n),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.regions,u=a.outputs,l=a.regionRegex,c=RegExp(l);if(s.includes(e)||c.test(e))return u.dnsSuffix}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return ey.outputs.dnsSuffix},e_=function(){return(e_=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}).apply(this,arguments)},eS=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},eC=function(e,t){if(null==t?void 0:t.aborted)return Promise.resolve();var r,n,i=new Promise(function(t){n=t,r=setTimeout(t,e)});return null==t||t.addEventListener("abort",function e(i){clearTimeout(r),null==t||t.removeEventListener("abort",e),n()}),i},eE=function(e,t){var r;"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata=e_(e_({},null!==(r=e.$metadata)&&void 0!==r?r:{}),{attempts:t}))},ek=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},eT=function(e,t){return function(r,n){for(var i={},o=function(t){return e(t,n)},a=t.length-1;a>=0;a--)o=(0,t[a])(n)(o,i);return o(r)}};r(63144);var eA=function(e){var t;return function(){return t||(t=e()),t}},eP=function(){return(eP=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}).apply(this,arguments)},eI=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},eO=eT(function(e,t){var r,n,i,o,a=e.url,s=e.method,u=e.headers,l=e.body,c=t.abortSignal;return r=void 0,n=void 0,i=void 0,o=function(){var e,t,r,n,i,o,d;return eI(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,fetch(a,{method:s,headers:u,body:["HEAD","GET","DELETE"].includes(s.toUpperCase())?void 0:l,signal:c})];case 1:return e=f.sent(),[3,3];case 2:if((t=f.sent())instanceof TypeError)throw Error("Network error");throw t;case 3:return r={},null===(o=e.headers)||void 0===o||o.forEach(function(e,t){r[t.toLowerCase()]=e}),n={statusCode:e.status,headers:r,body:null},i=Object.assign(null!==(d=e.body)&&void 0!==d?d:{},{text:eA(function(){return e.text()}),blob:eA(function(){return e.blob()}),json:eA(function(){return e.json()})}),[2,eP(eP({},n),{body:i})]}})}
14,new(i||(i=Promise))(function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(a,s)}u((o=o.apply(r,n||[])).next())})},[function(e){var t=e.userAgentHeader,r=void 0===t?"x-amz-user-agent":t,n=e.userAgentValue,i=void 0===n?"":n;return function(e){return function(t){var n,o,a,s;return n=this,o=void 0,a=void 0,s=function(){var n;return ek(this,function(o){switch(o.label){case 0:if(0!==i.trim().length)return[3,2];return[4,e(t)];case 1:case 3:return[2,o.sent()];case 2:return n=r.toLowerCase(),t.headers[n]=t.headers[n]?"".concat(t.headers[n]," ").concat(i):i,[4,e(t)]}})},new(a||(a=Promise))(function(e,t){function r(e){try{u(s.next(e))}catch(e){t(e)}}function i(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof a?n:new a(function(e){e(n)})).then(r,i)}u((s=s.apply(n,o||[])).next())})}}},function(e){var t=e.maxAttempts,r=void 0===t?3:t,n=e.retryDecider,i=e.computeDelay,o=e.abortSignal;if(r<1)throw Error("maxAttempts must be greater than 0");return function(e,t){return function(a){var s,u,l,c,d;return u=this,l=void 0,c=void 0,d=function(){var u,l,c,d;return eS(this,function(f){switch(f.label){case 0:l=null!==(s=t.attemptsCount)&&void 0!==s?s:0,d=function(){if(c)return eE(c,l),c;throw eE(u,l),u},f.label=1;case 1:if(!(!(null==o?void 0:o.aborted)&&l<r))return[3,11];f.label=2;case 2:return f.trys.push([2,4,,5]),[4,e(a)];case 3:return c=f.sent(),u=void 0,[3,5];case 4:return u=f.sent(),c=void 0,[3,5];case 5:return l=t.attemptsCount>l?t.attemptsCount:l+1,t.attemptsCount=l,[4,n(c,u)];case 6:if(!f.sent())return[3,9];if(!(!(null==o?void 0:o.aborted)&&l<r))return[3,8];return[4,eC(i(l),o)];case 7:f.sent(),f.label=8;case 8:case 10:return[3,1];case 9:return[2,d()];case 11:if(null==o||!o.aborted)return[2,d()];throw Error("Request aborted.")}})},new(c||(c=Promise))(function(e,t){function r(e){try{i(d.next(e))}catch(e){t(e)}}function n(e){try{i(d.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof c?i:new c(function(e){e(i)})).then(r,n)}i((d=d.apply(u,l||[])).next())})}}}]),eM=function(){return(eM=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}).apply(this,arguments)},ej=function(e){var t,r,n=e.headers,i=e.statusCode;return eM(eM({},eD(e)?e.$metadata:{}),{httpStatusCode:i,requestId:null!==(r=null!==(t=n["x-amzn-requestid"])&&void 0!==t?t:n["x-amzn-request-id"])&&void 0!==r?r:n["x-amz-request-id"],extendedRequestId:n["x-amz-id-2"],cfId:n["x-amz-cf-id"]})},eD=function(e){return"object"==typeof(null==e?void 0:e.$metadata)},eR=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},eN=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},eU=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},eF=function(e){return eR(void 0,void 0,void 0,function(){var t,r,n,i,o,a,s;return eN(this,function(u){switch(u.label){case 0:if(!e||e.statusCode<300)return[2];return[4,eL(e)];case 1:var l;return t=u.sent(),r=(l=eU((null!==(o=null!==(i=null!==(n=e.headers["x-amzn-errortype"])&&void 0!==n?n:t.code)&&void 0!==i?i:t.__type)&&void 0!==o?o:"UnknownError").toString().split(/[\,\:]+/),1)[0]).includes("#")?l.split("#")[1]:l,[2,Object.assign(Error(null!==(s=null!==(a=t.message)&&void 0!==a?a:t.Message)&&void 0!==s?s:"Unknown error"),{name:r,$metadata:ej(e)})]}})})},eL=function(e){return eR(void 0,void 0,void 0,function(){return eN(this,function(t){switch(t.label){case 0:if(!e.body)throw Error("Missing response payload");return[4,e.body.json()];case 1:return[2,Object.assign(t.sent(),{$metadata:ej(e)})]}})})},eB=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],ez=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},eH=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],eq=["TimeoutError","RequestTimeout","RequestTimeoutException"];(s=b||(b={})).WebUnknown="0",s.React="1",s.NextJs="2",s.Angular="3",s.VueJs="4",s.Nuxt="5",s.Svelte="6",s.ServerSideUnknown="100",s.ReactSSR="101",s.NextJsSSR="102",s.AngularSSR="103",s.VueJsSSR="104",s.NuxtSSR="105",s.SvelteSSR="106",s.ReactNative="201",s.Expo="202",(u=w||(w={})).API="api",u.Auth="auth",u.Analytics="analytics",u.DataStore="datastore",u.Geo="geo",u.InAppMessaging="inappmessaging",u.Interactions="interactions",u.Predictions="predictions",u.PubSub="pubsub",u.PushNotification="pushnotification",u.Storage="storage",(l=x||(x={})).Record="1",l.UpdateEndpoint="2",(c=_||(_={})).GraphQl="1",c.Get="2",c.Post="3",c.Put="4",c.Patch="5",c.Del="6",c.Head="7",(S||(S={})).FederatedSignIn="30",(d=C||(C={})).Subscribe="1",d.GraphQl="2",(E||(E={})).None="0",(k||(k={})).None="0",(T||(T={})).None="0",(f=A||(A={})).Convert="1",f.Identify="2",f.Interpret="3",(P||(P={})).Subscribe="1",(I||(I={})).None="0",(h=O||(O={})).Put="1",h.Get="2",h.List="3",h.Copy="4",h.Remove="5",h.GetProperties="6";var eW="5.3.21",e$=r(83454),eV=function(){return void 0!==r.g},eY=function(){return"undefined"!=typeof window},eZ=function(){return"undefined"!=typeof document},eG=function(){return void 0!==e$},eK=function(e,t){return!!Object.keys(e).find(function(e){return e.startsWith(t)})},eQ=r(83454),eX=r(83454),eJ=r(83454),e0=[{platform:b.Expo,detectionMethod:function(){return eV()&&void 0!==r.g.expo}},{platform:b.ReactNative,detectionMethod:function(){return"undefined"!=typeof navigator&&void 0!==navigator.product&&"ReactNative"===navigator.product}},{platform:b.NextJs,detectionMethod:function(){return eY()&&window.next&&"object"==typeof window.next}},{platform:b.Nuxt,detectionMethod:function(){return eY()&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}},{platform:b.Angular,detectionMethod:function(){var e=Boolean(eZ()&&document.querySelector("[ng-version]")),t=Boolean(eY()&&void 0!==window.ng);return e||t}},{platform:b.React,detectionMethod:function(){var e=function(e){return e.startsWith("_react")||e.startsWith("__react")};return eZ()&&Array.from(document.querySelectorAll("[id]")).some(function(t){return Object.keys(t).find(e)})}},{platform:b.VueJs,detectionMethod:function(){return eY()&&eK(window,"__VUE")}},{platform:b.Svelte,detectionMethod:function(){return eY()&&eK(window,"__SVELTE")}},{platform:b.WebUnknown,detectionMethod:function(){return eY()}},{platform:b.NextJsSSR,detectionMethod:function(){return eV()&&(eK(r.g,"__next")||eK(r.g,"__NEXT"))}},{platform:b.NuxtSSR,detectionMethod:function(){return eV()&&void 0!==r.g.__NUXT_PATHS__}},{platform:b.ReactSSR,detectionMethod:function(){return eG()&&void 0!==eQ.env&&!!Object.keys(eQ.env).find(function(e){return e.includes("react")})}},{platform:b.VueJsSSR,detectionMethod:function(){return eV()&&eK(r.g,"__VUE")}},{platform:b.AngularSSR,detectionMethod:function(){var e;return eG()&&"object"==typeof eJ.env&&(null===(e=eJ.env.npm_lifecycle_script)||void 0===e?void 0:e.startsWith("ng "))||!1}},{platform:b.SvelteSSR,detectionMethod:function(){return eG()&&void 0!==eX.env&&!!Object.keys(eX.env).find(function(e){return e.includes("svelte")})}}],e1=[],e2=!1,e3=function(){if(!M){var e;if(M=(null===(e=e0.find(function(e){return e.detectionMethod()}))||void 0===e?void 0:e.platform)||b.ServerSideUnknown,e2)for(;e1.length;)e1.pop()();
14else e1.forEach(function(e){return e()});e5(b.ServerSideUnknown,10),e5(b.WebUnknown,10)}return M},e4=function(e){e2||e1.push(e)};function e5(e,t){M!==e||e2||setTimeout(function(){M=void 0,e2=!0,setTimeout(e3,1e3)},t)}var e6=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},e9="aws-amplify",e8=new(function(){function e(){this.userAgent="".concat(e9,"/").concat(eW)}return Object.defineProperty(e.prototype,"framework",{get:function(){return e3()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReactNative",{get:function(){return this.framework===b.ReactNative||this.framework===b.Expo},enumerable:!1,configurable:!0}),e.prototype.observeFrameworkChanges=function(e){e4(e)},e}()),e7=function(e){var t=void 0===e?{}:e,r=t.category,n=t.action;t.framework;var i=[[e9,eW]];return r&&i.push([r,n]),i.push(["framework",e3()]),i},te=function(e){return e7(e).map(function(e){var t=e6(e,2),r=t[0],n=t[1];return"".concat(r,"/").concat(n)}).join(" ")},tt=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},tr=eT(eO,[function(){return function(e,t){return function(t){var r,n,i,o;return r=this,n=void 0,i=void 0,o=function(){return tt(this,function(r){return t.headers["cache-control"]="no-store",[2,e(t)]})},new(i||(i=Promise))(function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(a,s)}u((o=o.apply(r,n||[])).next())})}}}]),tn={service:"cognito-identity",endpointResolver:function(e){var t=e.region;return{url:new URL("https://cognito-identity.".concat(t,".").concat(ex(t)))}},retryDecider:function(e,t){var r,n,i,o;return r=void 0,n=void 0,i=void 0,o=function(){var r,n,i,o;return ez(this,function(a){switch(a.label){case 0:if(!(null!=t))return[3,1];return n=t,[3,3];case 1:return[4,eF(e)];case 2:n=a.sent(),a.label=3;case 3:return r=(null!==(o=n)&&void 0!==o?o:{}).name,i=null==e?void 0:e.statusCode,[2,(null==t?void 0:t.name)==="Network error"||429===i||eH.includes(r)||eB.includes(r)||[500,502,503,504].includes(i)||eq.includes(r)]}})},new(i||(i=Promise))(function(e,t){function a(e){try{u(o.next(e))}catch(e){t(e)}}function s(e){try{u(o.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof i?r:new i(function(e){e(r)})).then(a,s)}u((o=o.apply(r,n||[])).next())})},computeDelay:function(e){var t=ea(3e5)(e);return!1===t?3e5:t},userAgentValue:te()};e4(function(){tn.userAgentValue=te()});var ti=function(e){return{"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.".concat(e)}},to=function(e,t,r){return{headers:t,url:e.url,body:r,method:"POST"}},ta=function(){return(ta=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}).apply(this,arguments)},ts=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},tu=function(e,t,r,n){return function(i,o){var a,s,u,l;return a=void 0,s=void 0,u=void 0,l=function(){var a;return ts(this,function(s){switch(s.label){case 0:return[4,(a=ta(ta({}
14,n),i)).endpointResolver(a,o)];case 1:return[4,t(o,s.sent())];case 2:return[4,e(s.sent(),ta({},a))];case 3:return[4,r(s.sent())];case 4:return[2,s.sent()]}})},new(u||(u=Promise))(function(e,t){function r(e){try{i(l.next(e))}catch(e){t(e)}}function n(e){try{i(l.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):((i=t.value)instanceof u?i:new u(function(e){e(i)})).then(r,n)}i((l=l.apply(a,s||[])).next())})}},tl=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},tc=tu(tr,function(e,t){return to(t,ti("GetId"),JSON.stringify(e))},function(e){var t,r,n,i;return t=void 0,r=void 0,n=void 0,i=function(){return tl(this,function(t){switch(t.label){case 0:if(!(e.statusCode>=300))return[3,2];return[4,eF(e)];case 1:throw t.sent();case 2:return[4,eL(e)];case 3:return[2,{IdentityId:t.sent().IdentityId,$metadata:ej(e)}]}})},new(n||(n=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(a,s)}u((i=i.apply(t,r||[])).next())})},tn),td=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},tf=tu(tr,function(e,t){return to(t,ti("GetCredentialsForIdentity"),JSON.stringify(e))},function(e){var t,r,n,i;return t=void 0,r=void 0,n=void 0,i=function(){var t;return td(this,function(r){switch(r.label){case 0:if(!(e.statusCode>=300))return[3,2];return[4,eF(e)];case 1:throw r.sent();case 2:return[4,eL(e)];case 3:var n;return[2,{IdentityId:(t=r.sent()).IdentityId,Credentials:(void 0===(n=t.Credentials)&&(n={}),{AccessKeyId:n.AccessKeyId,SecretKey:n.SecretKey,SessionToken:n.SessionToken,Expiration:new Date(1e3*n.Expiration)}),$metadata:ej(e)}]}})},new(n||(n=Promise))(function(e,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i.throw(e))}catch(e){o(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof n?r:new n(function(e){e(r)})).then(a,s)}u((i=i.apply(t,r||[])).next())})},tn),th=function(){return(th=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}).apply(this,arguments)},tp=new H.k("Parser"),tg=function(e){var t,r={};if(e.aws_mobile_analytics_app_id){var n={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};r.Analytics=n}return(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(r.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_regi
14on,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in,signUpVerificationMethod:e.aws_cognito_sign_up_verification_method||"code"}),t=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},e.Logging&&(r.Logging=th(th({},e.Logging),{region:e.aws_project_region})),e.geo&&(r.Geo=Object.assign({},e.geo),e.geo.amazon_location_service&&(r.Geo={AmazonLocationService:e.geo.amazon_location_service})),r.Analytics=Object.assign({},r.Analytics,e.Analytics),r.Auth=Object.assign({},r.Auth,e.Auth),r.Storage=Object.assign({},t),r.Logging=Object.assign({},r.Logging,e.Logging),tp.debug("parse config",e,"to amplifyconfig",r),r},tm=function(){return(tm=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}).apply(this,arguments)},tv=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},ty=function(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}},tb=new H.k("Credentials"),tw="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",tx=function(e,t,r){q.X.dispatch("core",{event:e,data:t,message:r},"Credentials",tw)},t_=new(function(){function e(e){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(e),this._refreshHandlers.google=eg.refreshGoogleToken,this._refreshHandlers.facebook=em.refreshFacebookToken}return e.prototype.getModuleName=function(){return"Credentials"},e.prototype.getCredSource=function(){return this._credentials_source},e.prototype.configure=function(e){if(!e)return this._config||{};this._config=Object.assign({},this._config,e);var t=this._config.refreshHandlers;return t&&(this._refreshHandlers=tm(tm({},this._refreshHandlers),t)),this._storage=this._config.storage,this._storage||(this._storage=new V().getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),tx("credentials_configured",null,"Credentials has been configured successfully"),this._config},e.prototype.get=function(){return tb.debug("getting credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKey=function(e){return"".concat("CognitoIdentityId-").concat(e)},e.prototype._pickupCredentials=function(){return tb.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?tb.debug("getting old cred promise"):(tb.debug("getting new cred promise"),this._gettingCredPromise=Z(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function(){return tv(this,void 0,void 0,function(){var e,t,r,n,i,o;return ty(this,function(a){switch(a.label){case 0:if(tb.debug("checking if credentials exists and not expired"),(e=this._credentials)&&!this._isExpired(e)&&!this._isPastTTL())return tb.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(e)];if(tb.debug("need to get a new credential or refresh the existing one"),!(r=void 0===(t=this.Auth)?ev.d.Auth:t)||"function"!=typeof r.currentUserCredentials)return[2,this._setCredentialsForGuest()];
14if(!(!this._isExpired(e)&&this._isPastTTL()))return[3,6];tb.debug("ttl has passed but token is not yet expired"),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,r.currentUserPoolUser()];case 2:return n=a.sent(),[4,r.currentSession()];case 3:return i=a.sent().refreshToken,[4,new Promise(function(e,t){n.refreshSession(i,function(r,n){return r?t(r):e(n)})})];case 4:return a.sent(),[3,6];case 5:return o=a.sent(),tb.debug("Error attempting to refreshing the session",o),[3,6];case 6:return[2,r.currentUserCredentials()]}})})},e.prototype.refreshFederatedToken=function(e){tb.debug("Getting federated credentials");var t=e.provider,r=e.user,n=e.token,i=e.identity_id,o=e.expires_at;return(o=1970===new Date(o).getFullYear()?1e3*o:o,tb.debug("checking if federated jwt token expired"),o>new Date().getTime())?(tb.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:n,user:r,identity_id:i,expires_at:o})):this._refreshHandlers[t]&&"function"==typeof this._refreshHandlers[t]?(tb.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:r})):(tb.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,r=e.refreshHandler,n=e.provider,i=e.user;return(function(e,t,r,n){return ee(this,void 0,void 0,function(){var i=this;return et(this,function(o){if("function"!=typeof e)throw Error("functionToRetry must be a function");return[2,new Promise(function(o,a){return ee(i,void 0,void 0,function(){var i,s,u,l,c,d,f;return et(this,function(h){switch(h.label){case 0:i=0,s=!1,l=function(){},n&&n.then(function(){s=!0,clearTimeout(u),l()}),d=function(){var n,d,f,h;return et(this,function(p){switch(p.label){case 0:i++,ei.debug("".concat(e.name," attempt #").concat(i," with this vars: ").concat(JSON.stringify(t))),p.label=1;case 1:return p.trys.push([1,3,,7]),n={},d=o,[4,e.apply(void 0,en([],er(t),!1))];case 2:return[2,(n.value=d.apply(void 0,[p.sent()]),n)];case 3:if(c=f=p.sent(),ei.debug("error on ".concat(e.name),f),f&&f.nonRetryable)return ei.debug("".concat(e.name," non retryable error"),f),[2,{value:a(f)}];if(h=r(i,t,f),ei.debug("".concat(e.name," retrying in ").concat(h," ms")),!(!1===h||s))return[3,4];return[2,{value:a(f)}];case 4:return[4,new Promise(function(e){u=setTimeout(l=e,h)})];case 5:p.sent(),p.label=6;case 6:return[3,7];case 7:return[2]}})},h.label=1;case 1:if(s)return[3,3];return[5,d()];case 2:if("object"==typeof(f=h.sent()))return[2,f.value];return[3,1];case 3:return a(c),[2]}})})})]})})})(r,[],ea(1e4),void 0).then(function(e){return tb.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:n,token:e.token,user:i,identity_id:e.identity_id,expires_at:e.expires_at})}).catch(function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),tb.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)})},e.prototype._isExpired=function(e){if(!e)return tb.debug("no credentials for expiration check"),!0;tb.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){var e;return tv(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,l,c=this;return ty(this,function(d){switch(d.label){case 0:if(tb.debug("setting credentials for guest"),(null===(e=this._config)||void 0===e?void 0:e.identityPoolId)||(this._config=Object.assign({},this._config,tg(this._config||{}
14).Auth)),r=(t=this._config).identityPoolId,n=t.region,i=t.mandatorySignIn,o=t.identityPoolRegion,i)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!r)return tb.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!o&&!n)return tb.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];return s=this,[4,this._getGuestIdentityId()];case 1:return a=s._identityId=d.sent(),u={region:null!=o?o:n},l=tv(c,void 0,void 0,function(){var e,t;return ty(this,function(n){switch(n.label){case 0:if(a)return[3,2];return[4,tc(u,{IdentityPoolId:r})];case 1:e=n.sent().IdentityId,this._identityId=e,n.label=2;case 2:return[4,tf(u,{IdentityId:this._identityId})];case 3:return t=n.sent().Credentials,[2,{identityId:this._identityId,accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}})}).catch(function(e){return tv(c,void 0,void 0,function(){return ty(this,function(t){throw e})})}),[2,this._loadCredentials(l,"guest",!1,null).then(function(e){return e}).catch(function(e){return tv(c,void 0,void 0,function(){var t=this;return ty(this,function(n){switch(n.label){case 0:if(!("ResourceNotFoundException"===e.name&&e.message==="Identity '".concat(a,"' not found.")))return[3,2];return tb.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()];case 1:return n.sent(),l=tv(t,void 0,void 0,function(){var e,t;return ty(this,function(n){switch(n.label){case 0:return[4,tc(u,{IdentityPoolId:r})];case 1:return e=n.sent().IdentityId,this._identityId=e,[4,tf(u,{IdentityId:e})];case 2:return[2,{identityId:e,accessKeyId:(t=n.sent().Credentials).AccessKeyId,secretAccessKey:t.SecretKey,sessionToken:t.SessionToken,expiration:t.Expiration}]}})}).catch(function(e){return tv(t,void 0,void 0,function(){return ty(this,function(t){throw e})})}),[2,this._loadCredentials(l,"guest",!1,null)];case 2:return[2,e]}})})})]}})})},e.prototype._setCredentialsFromFederation=function(e){var t=this,r=e.provider,n=e.token,i=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[r]||r;if(!o)return Promise.reject("You must specify a federated provider");var a={};a[o]=n;var s=this._config,u=s.identityPoolId,l=s.region,c=s.identityPoolRegion;if(!u)return tb.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!c&&!l)return tb.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var d={region:null!=c?c:l},f=tv(t,void 0,void 0,function(){var e;return ty(this,function(t){switch(t.label){case 0:if(i)return[3,2];return[4,tc(d,{IdentityPoolId:u,Logins:a})];case 1:i=t.sent().IdentityId,t.label=2;case 2:return[4,tf(d,{IdentityId:i,Logins:a})];case 3:return[2,{identityId:i,accessKeyId:(e=t.sent().Credentials).AccessKeyId,secretAccessKey:e.SecretKey,sessionToken:e.SessionToken,expiration:e.Expiration}]}})}).catch(function(e){return tv(t,void 0,void 0,function(){return ty(this,function(t){throw e})})});return this._loadCredentials(f,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;tb.debug("set credentials from session");var r=e.getIdToken().getJwtToken(),n=this._config,i=n.region,o=n.userPoolId,a=n.identityPoolId,s=n.identityPoolRegion;if(!a)return tb.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!s&&!i)return tb.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var u={};u["cognito-idp."+i+".amazonaws.com/"+o]=r;
14var l={region:null!=s?s:i},c=tv(t,void 0,void 0,function(){var e,t,r,n,i,o,s,c,d;return ty(this,function(f){switch(f.label){case 0:return[4,this._getGuestIdentityId()];case 1:if(e=f.sent())return[3,3];return[4,tc(l,{IdentityPoolId:a,Logins:u})];case 2:t=f.sent().IdentityId,f.label=3;case 3:return[4,tf(l,{IdentityId:e||t,Logins:u})];case 4:if(i=(n=(r=f.sent()).Credentials).AccessKeyId,o=n.Expiration,s=n.SecretKey,c=n.SessionToken,d=r.IdentityId,this._identityId=d,!e)return[3,6];return tb.debug("The guest identity ".concat(e," has been successfully linked to the logins")),e===d&&tb.debug("The guest identity ".concat(e," has become the primary identity")),[4,this._removeGuestIdentityId()];case 5:f.sent(),f.label=6;case 6:return[2,{accessKeyId:i,secretAccessKey:s,sessionToken:c,expiration:o,identityId:d}]}})}).catch(function(e){return tv(t,void 0,void 0,function(){return ty(this,function(t){throw e})})});return this._loadCredentials(c,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,r,n){var i=this,o=this;return new Promise(function(a,s){e.then(function(e){return tv(i,void 0,void 0,function(){var i,s,u,l,c;return ty(this,function(d){switch(d.label){case 0:if(tb.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),o._credentials=e,o._credentials.authenticated=r,o._credentials_source=t,o._nextCredentialsRefresh=new Date().getTime()+3e6,"federated"===t){i=Object.assign({id:this._credentials.identityId},n.user),s=n.provider,u=n.token,l=n.expires_at,c=n.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:s,token:u,user:i,expires_at:l,identity_id:c}))}catch(e){tb.debug("Failed to put federated info into auth storage",e)}}if("guest"!==t)return[3,2];return[4,this._setGuestIdentityId(e.identityId)];case 1:d.sent(),d.label=2;case 2:return a(o._credentials),[2]}})})}).catch(function(t){if(t){tb.debug("Failed to load credentials",e),tb.debug("Error loading credentials",t),s(t);return}})})},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(tb.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return tv(this,void 0,void 0,function(){return ty(this,function(e){return this._credentials=null,this._credentials_source=null,tb.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},e.prototype._getGuestIdentityId=function(){return tv(this,void 0,void 0,function(){var e,t;return ty(this,function(r){switch(r.label){case 0:e=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=r.sent(),tb.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}})})},e.prototype._setGuestIdentityId=function(e){return tv(this,void 0,void 0,function(){var t,r;return ty(this,function(n){switch(n.label){case 0:t=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return r=n.sent(),tb.debug("Failed to cache guest identityId",r),[3,4];case 4:return[2]}})})},e.prototype._removeGuestIdentityId=function(){return tv(this,void 0,void 0,function(){var e;return ty(this,function(t){return e=this._config.identityPoolId,tb.debug("removing ".concat(this._getCognitoIdentityIdStorageKey(e)," from storage")),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]})})},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}())(null);ev.d.register(t_);var tS=r(46650);function tC(e,t){void 0===t&&(t={});var r,n=e&&"j"===e[0]&&":"===e[1]?e.substr(2):e;if(void 0===(r=t.doNotParse)&&(r=!n||"{"!==n[0]&&"["!==n[0]&&'"'!==n[0]),!r)try{return JSON.parse(n)}catch(e){}return e}var tE=function(){return(tE=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}).apply(this,arguments)},tk=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?tS.Q(e,t):"object"==typeof e&&null!==e?e:{},new Promise(function(){r.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=tS.Q(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,r){return void 0===t&&(t={}),this._updateBrowserValues(r),tC(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var r={};for(var n in this.cookies)r[n]=tC(this.cookies[n],e);return r},e.prototype.set=function(e,t,r){var n;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=tE(tE({},this.cookies),((n={})[e]=t,n)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=tS.q(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=tE(tE({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0}
14);this.cookies=tE({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=tS.q(e,"",r)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}(),tT=function(){return(tT=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}).apply(this,arguments)},tA=G().isBrowser,tP=function(){function e(e){void 0===e&&(e={}),this.cookies=new tk,this.store=tA?window.localStorage:Object.create(null),this.cookies=e.req?new tk(decodeURIComponent(e.req.headers.cookie)):new tk,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!1,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(Array(this.length)).map(function(t,r){return e.key(r)}).forEach(function(t){return e.removeItem(t)})},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){this.setLocalItem(e,t);var r=e.split(".").pop();["LastAuthUser","accessToken","refreshToken","idToken"].includes(null!=r?r:"")&&this.setUniversalItem(e,t,{expires:new Date(Date.now()+31536e6)})},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t,r){void 0===r&&(r={}),this.cookies.set(e,t,tT(tT({},r),{path:"/",sameSite:!0,secure:!tA||"localhost"!==window.location.hostname}))},e}(),tI=r(89153),tO=r(99643),tM=r(11987),tj=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},tD=function(e){window.sessionStorage.setItem("oauth_state",e)},tR=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e},tN=function(e){window.sessionStorage.setItem("ouath_pkce_key",e)},tU=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e},tF=r(48764);"undefined"!=typeof Symbol&&"function"==typeof Symbol.for&&Symbol.for("INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER");var tL=r(41938),tB="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",tz=function(e,t,r){q.X.dispatch("auth",{event:e,data:t,message:r},"Auth",tB)},tH=new H.k("OAuth"),tq=function(){function e(e){var t=e.config,r=e.cognitoClientId,n=e.scopes,i=void 0===n?[]:n;if(this._urlOpener=t.urlOpener||tj,this._config=t,this._cognitoClientId=r,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every(function(e){return"string"==typeof e})},e.prototype.oauthSignIn=function(e,t,r,n,i,o){void 0===e&&(e="code"),void 0===i&&(i=m.Cognito);var a=this._generateState(32),s=o?a+"-"+o.split("").map(function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")}).join(""):a;tD(s);var u=this._generateRandom(128);tN(u);var l=this._generateChallenge(u),c="https://"+t+"/oauth2/authorize?"+Object.entries(N(N({redirect_uri:r,response_type:e,client_id:n,identity_provider:i,scope:this._scopes.join(" "),state:s},"code"===e?{code_challenge:l}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map(function(e){var t=L(e,2),r=t[0],n=t[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)}).join("&");tH.debug("Redirecting to "+c),this._urlOpener(c,r)},e.prototype._handleCodeFlow=function(e){return U(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,l,c,d,f,h,p;return F(this,function(m){switch(m.label){case 0:if(t=((0,tM.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r,n=L(t,2),i=n[0],o=n[1];return N(N({},e),((r={})[i]=o,r))},{code:void 0}).code,r=(0,tM.parse)(e).pathname||"/",n=(0,tM.parse)(this._config.redirectSignIn).pathname||"/",!t||r!==n)return[2];
14return tz("codeFlow",{},"Retrieving tokens from "+(i="https://"+this._config.domain+"/oauth2/token")),a=N({grant_type:"authorization_code",code:t,client_id:z(this._config)?this._cognitoClientId:this._config.clientID,redirect_uri:z(this._config)?this._config.redirectSignIn:this._config.redirectUri},(o=tU())?{code_verifier:o}:{}),tH.debug("Calling token endpoint: "+i+" with",a),s=Object.entries(a).map(function(e){var t=L(e,2),r=t[0],n=t[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)}).join("&"),u={category:w.Auth,action:S.FederatedSignIn},[4,fetch(i,{method:"POST",headers:((p={"Content-Type":"application/x-www-form-urlencoded"})["x-amz-user-agent"]=te(u),p),body:s})];case 1:return[4,m.sent().json()];case 2:if(c=(l=m.sent()).access_token,d=l.refresh_token,f=l.id_token,h=l.error)throw Error(h);return[2,{accessToken:c,refreshToken:d,idToken:f}]}})})},e.prototype._handleImplicitFlow=function(e){return U(this,void 0,void 0,function(){var t,r,n;return F(this,function(i){return r=(t=((0,tM.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r,n=L(t,2),i=n[0],o=n[1];return N(N({},e),((r={})[i]=o,r))},{id_token:void 0,access_token:void 0})).id_token,n=t.access_token,tz("implicitFlow",{},"Got tokens from "+e),tH.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:n,idToken:r,refreshToken:null}]})})},e.prototype.handleAuthResponse=function(e){return U(this,void 0,void 0,function(){var t,r,n,i,o,a,s;return F(this,function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),r=(t=e?N(N({},((0,tM.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r=L(t,2),n=r[0],i=r[1];return e[n]=i,e},{})),((0,tM.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r=L(t,2),n=r[0],i=r[1];return e[n]=i,e},{})):{}).error,n=t.error_description,r)throw Error(n);if(i=this._validateState(t),tH.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType)return[3,2];return o=[{}],[4,this._handleCodeFlow(e)];case 1:return[2,N.apply(void 0,[N.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,N.apply(void 0,[N.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),tH.debug("Error handling auth response.",s),s;case 6:return[2]}})})},e.prototype._validateState=function(e){if(e){var t=tR(),r=e.state;if(t&&t!==r)throw Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return U(this,void 0,void 0,function(){var e,t;return F(this,function(r){return tz("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+(e="https://"+this._config.domain+"/logout?"+Object.entries({client_id:z(this._config)?this._cognitoClientId:this._config.oauth.clientID,logout_uri:encodeURIComponent(t=z(this._config)?this._config.redirectSignOut:this._config.returnTo)}).map(function(e){var t=L(e,2);return t[0]+"="+t[1]}).join("&"))),tH.debug("Signing out from "+e),[2,this._urlOpener(e,t)]})})},e.prototype._generateState=function(e){for(var t="",r=e,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";r>0;--r)t+=n[Math.round(Math.random()*(n.length-1))];return t},e.prototype._generateChallenge=function(e){var t=new tL.Sha256;t.update(e);var r=t.digestSync(),n=tF.Buffer.from(r).toString("base64");return this._base64URL(n)},e.prototype._base64URL=function(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var r=0;r<e;r+=1)t[r]=66*Math.random()|0;return this._bufferToString(t)},e.prototype._bufferToString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=[],n=0;n<e.byteLength;n+=1){var i=e[n]%t.length;r.push(t[i])}return r.join("")},e}(),tW=function(e){if(G().isBrowser&&window.location)e({url:window.location.href});else if(G().isNode);else throw Error("Not supported")};(p=j||(j={}
14)).DEFAULT_MSG="Authentication Error",p.EMPTY_EMAIL="Email cannot be empty",p.EMPTY_PHONE="Phone number cannot be empty",p.EMPTY_USERNAME="Username cannot be empty",p.INVALID_USERNAME="The username should either be a string or one of the sign in types",p.EMPTY_PASSWORD="Password cannot be empty",p.EMPTY_CODE="Confirmation code cannot be empty",p.SIGN_UP_ERROR="Error creating account",p.NO_MFA="No valid MFA method provided",p.INVALID_MFA="Invalid MFA type",p.EMPTY_CHALLENGE="Challenge response cannot be empty",p.NO_USER_SESSION="Failed to get the session because the user is empty",p.NETWORK_ERROR="Network Error",p.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",p.AUTOSIGNIN_ERROR="Please use your credentials to sign in";var t$=new H.k("AuthError"),tV=function(e){function t(r){var n=this,i=tZ[r],o=i.message,a=i.log;return(n=e.call(this,o)||this).constructor=t,Object.setPrototypeOf(n,t.prototype),n.name="AuthError",n.log=a||o,t$.error(n.log),n}return R(t,e),t}(Error),tY=function(e){function t(r){var n=e.call(this,r)||this;return n.constructor=t,Object.setPrototypeOf(n,t.prototype),n.name="NoUserPoolError",n}return R(t,e),t}(tV),tZ={noConfig:{message:j.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly.\n            This error is typically caused by one of the following scenarios:\n\n            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n            \n            2. There might be multiple conflicting versions of amplify packages in your node_modules.\n				Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n        "},missingAuthConfig:{message:j.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly. \n            The configuration object is missing required auth properties.\n            This error is typically caused by one of the following scenarios:\n\n            1. Did you run `amplify push` after adding auth via `amplify add auth`?\n                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n        "},emptyUsername:{message:j.EMPTY_USERNAME},invalidUsername:{message:j.INVALID_USERNAME},emptyPassword:{message:j.EMPTY_PASSWORD},emptyCode:{message:j.EMPTY_CODE},signUpError:{message:j.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:j.NO_MFA},invalidMFA:{message:j.INVALID_MFA},emptyChallengeResponse:{message:j.EMPTY_CHALLENGE},noUserSession:{message:j.NO_USER_SESSION},deviceConfig:{message:j.DEVICE_CONFIG},networkError:{message:j.NETWORK_ERROR},autoSignInError:{message:j.AUTOSIGNIN_ERROR},default:{message:j.DEFAULT_MSG}},tG=new H.k("AuthClass"),tK="aws.cognito.signin.user.admin",tQ="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",tX=function(e,t,r){q.X.dispatch("auth",{event:e,data:t,message:r},"Auth",tQ)},tJ=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.autoSignInInitiated=!1,this.inflightSessionPromise=null,this.inflightSessionPromiseCounter=0,this.Credentials=t_,this.wrapRefreshSessionCallback=function(e){return function(t,r){return r?tX("tokenRefresh",void 0,"New token retrieved"):tX("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,r)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),q.X.listen("auth",function(e){switch(e.payload.event){case"verify":case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}),(0,tO.Bs)(),(0,tO.m0)(e8.framework),e8.observeFrameworkChanges(function(){(0,tO.m0)(e8.framework)})}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};tG.debug("configure Auth");var r=Object.assign({},this._config,tg(e).Auth,e);this._config=r;var n=this._config,i=n.userPoolId,o=n.userPoolWebClientId,a=n.cookieStorage,s=n.oauth,u=n.region,l=n.identityPoolId,c=n.mandatorySignIn,d=n.refreshHandlers,f=n.identityPoolRegion,h=n.clientMetadata,p=n.endpoint,m=n.storage;if(m){if(!this._isValidAuthStorage(m))throw tG.error("The storage in the Auth config is not val
14id!"),Error("Empty storage object");this._storage=m}else a?this._storage=new tI.eR(a):this._storage=e.ssr?new tP:new V().getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),i){var y={UserPoolId:i,ClientId:o,endpoint:p};y.Storage=this._storage,this.userPool=new tI.AM(y,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:c,region:u,userPoolId:i,identityPoolId:l,refreshHandlers:d,storage:this._storage,identityPoolRegion:f});var b=s?z(this._config.oauth)?s:s.awsCognito:void 0;if(b){var w=Object.assign({cognitoClientId:o,UserPoolId:i,domain:b.domain,scopes:b.scope,redirectSignIn:b.redirectSignIn,redirectSignOut:b.redirectSignOut,responseType:b.responseType,Storage:this._storage,urlOpener:b.urlOpener,clientMetadata:h},b.options);this._oAuthHandler=new tq({scopes:w.scopes,config:w,cognitoClientId:w.cognitoClientId});var x={};tW(function(e){var r=e.url;x[r]||(x[r]=!0,t._handleAuthResponse(r))})}return tX("configured",null,"The Auth category has been configured successfully"),this.autoSignInInitiated||"function"!=typeof this._storage.getItem||(this.isTrueStorageValue("amplify-polling-started")&&(tX("autoSignIn_failure",null,v.AutoSignInError),this._storage.removeItem("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-started")),this._config},e.prototype.signUp=function(e){for(var t,r,n,i,o=this,a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];if(!this.userPool)return this.rejectNoUserPool();var u=null,l=null,c=[],d=null,f={enabled:!1},h={},p={};if(e&&"string"==typeof e){u=e,l=a?a[0]:null;var m=a?a[1]:null,y=a?a[2]:null;m&&c.push(new tI.KC({Name:"email",Value:m})),y&&c.push(new tI.KC({Name:"phone_number",Value:y}))}else{if(!e||"object"!=typeof e)return this.rejectAuthError(v.SignUpError);u=e.username,l=e.password,e&&e.clientMetadata?i=e.clientMetadata:this._config.clientMetadata&&(i=this._config.clientMetadata);var b=e.attributes;b&&Object.keys(b).map(function(e){c.push(new tI.KC({Name:e,Value:b[e]}))});var w=e.validationData;w&&(d=[],Object.keys(w).map(function(e){d.push(new tI.KC({Name:e,Value:w[e]}))})),(f=null!==(t=e.autoSignIn)&&void 0!==t?t:{enabled:!1}).enabled&&(this._storage.setItem("amplify-auto-sign-in","true"),h=null!==(r=f.validationData)&&void 0!==r?r:{},p=null!==(n=f.clientMetaData)&&void 0!==n?n:{})}return u?l?(tG.debug("signUp attrs:",c),tG.debug("signUp validation data:",d),new Promise(function(e,t){o.userPool.signUp(u,l,c,d,function(r,n){r?(tX("signUp_failure",r,u+" failed to signup"),t(r)):(tX("signUp",n,u+" has signed up successfully"),f.enabled&&o.handleAutoSignIn(u,l,h,p,n),e(n))},i)})):this.rejectAuthError(v.EmptyPassword):this.rejectAuthError(v.EmptyUsername)}
14,e.prototype.handleAutoSignIn=function(e,t,r,n,i){this.autoSignInInitiated=!0;var o=new tI.sD({Username:e,Password:t,ValidationData:r,ClientMetadata:n});i.userConfirmed?this.signInAfterUserConfirmed(o):"link"===this._config.signUpVerificationMethod?this.handleLinkAutoSignIn(o):this.handleCodeAutoSignIn(o)},e.prototype.handleCodeAutoSignIn=function(e){var t=this,r=function(n){"confirmSignUp"===n.payload.event&&t.signInAfterUserConfirmed(e,r)};q.X.listen("auth",r)},e.prototype.handleLinkAutoSignIn=function(e){var t=this;this._storage.setItem("amplify-polling-started","true");var r=Date.now(),n=setInterval(function(){Date.now()-r>18e4?(clearInterval(n),tX("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),t._storage.removeItem("amplify-auto-sign-in")):t.signInAfterUserConfirmed(e,null,n)},5e3)},e.prototype.signInAfterUserConfirmed=function(e,t,r){return U(this,void 0,void 0,function(){var n,i,o=this;return F(this,function(a){switch(a.label){case 0:n=this.createCognitoUser(e.getUsername()),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,n.authenticateUser(e,this.authCallbacks(n,function(n){tX("autoSignIn",n,e.getUsername()+" has signed in successfully"),t&&q.X.remove("auth",t),r&&(clearInterval(r),o._storage.removeItem("amplify-polling-started")),o._storage.removeItem("amplify-auto-sign-in")},function(e){tG.error(e),o._storage.removeItem("amplify-auto-sign-in")}))];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),tG.error(i),[3,4];case 4:return[2]}})})},e.prototype.confirmSignUp=function(e,t,r){var n,i=this;if(!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(v.EmptyUsername);if(!t)return this.rejectAuthError(v.EmptyCode);var o=this.createCognitoUser(e),a=!r||"boolean"!=typeof r.forceAliasCreation||r.forceAliasCreation;return r&&r.clientMetadata?n=r.clientMetadata:this._config.clientMetadata&&(n=this._config.clientMetadata),new Promise(function(r,s){o.confirmRegistration(t,a,function(t,n){t?s(t):(tX("confirmSignUp",n,e+" has been confirmed successfully"),i.isTrueStorageValue("amplify-auto-sign-in")&&!i.autoSignInInitiated&&(tX("autoSignIn_failure",null,v.AutoSignInError),i._storage.removeItem("amplify-auto-sign-in")),r(n))},n)})},e.prototype.isTrueStorageValue=function(e){var t=this._storage.getItem(e);return!!t&&"true"===t},e.prototype.resendSignUp=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(v.EmptyUsername);var r=this.createCognitoUser(e);return new Promise(function(e,n){r.resendConfirmationCode(function(t,r){t?n(t):e(r)},t)})},e.prototype.signIn=function(e,t,r){if(void 0===r&&(r=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var n=null,i=null,o={};if("string"==typeof e)n=e,i=t;else{if(!e.username)return this.rejectAuthError(v.InvalidUsername);void 0!==t&&tG.warn("The password should be defined under the first parameter object!"),n=e.username,i=e.password,o=e.validationData}if(!n)return this.rejectAuthError(v.EmptyUsername);var a=new tI.sD({Username:n,Password:i,ValidationData:o,ClientMetadata:r});return i?this.signInWithPassword(a):this.signInWithoutPassword(a)},e.prototype.authCallbacks=function(e,t,r){var n=this,i=this;return{onSuccess:function(o){return U(n,void 0,void 0,function(){var n,a,s,u;return F(this,function(l){switch(l.label){case 0:tG.debug(o),delete e.challengeName,delete e.challengeParam,l.label=1;case 1:return l.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return l.sent(),[4,this.Credentials.set(o,"session")];case 3:return n=l.sent(),tG.debug("succeed to get cognito credentials",n),[3,9];case 4:return a=l.sent(),tG.debug("cannot get cognito credentials",a),[3,9];case 5:return l.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return s=l.sent(),i.user=s,tX("signIn",s,"A user "+e.getUsername()+" has been signed in"),t(s),[3,8];case 7:return u=l.sent(),tG.error("Failed to get the signed in user",u),r(u),[3,8];case 8:return[7];case 9:return[2]}})})}
14,onFailure:function(t){tG.debug("signIn failure",t),tX("signIn_failure",t,e.getUsername()+" failed to signin"),r(t)},customChallenge:function(r){tG.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=r,t(e)},mfaRequired:function(r,n){tG.debug("signIn MFA required"),e.challengeName=r,e.challengeParam=n,t(e)},mfaSetup:function(r,n){tG.debug("signIn mfa setup",r),e.challengeName=r,e.challengeParam=n,t(e)},newPasswordRequired:function(r,n){tG.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:r,requiredAttributes:n},t(e)},totpRequired:function(r,n){tG.debug("signIn totpRequired"),e.challengeName=r,e.challengeParam=n,t(e)},selectMFAType:function(r,n){tG.debug("signIn selectMFAType",r),e.challengeName=r,e.challengeParam=n,t(e)}}},e.prototype.signInWithPassword=function(e){var t=this;if(this.pendingSignIn)throw Error("Pending sign-in attempt already in progress");var r=this.createCognitoUser(e.getUsername());return this.pendingSignIn=new Promise(function(n,i){r.authenticateUser(e,t.authCallbacks(r,function(e){t.pendingSignIn=null,n(e)},function(e){t.pendingSignIn=null,i(e)}))}),this.pendingSignIn},e.prototype.signInWithoutPassword=function(e){var t=this,r=this.createCognitoUser(e.getUsername());return r.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise(function(n,i){r.initiateAuth(e,t.authCallbacks(r,n,i))})},e.prototype.getMFAOptions=function(e){return new Promise(function(t,r){e.getMFAOptions(function(e,n){if(e){tG.debug("get MFA Options failed",e),r(e);return}tG.debug("get MFA options success",n),t(n)})})},e.prototype.getPreferredMFA=function(e,t){var r=this,n=this;return new Promise(function(i,o){var a=r._config.clientMetadata,s=!!t&&t.bypassCache;e.getUserData(function(t,a){return U(r,void 0,void 0,function(){var r,s;return F(this,function(u){switch(u.label){case 0:if(!t)return[3,5];if(tG.debug("getting preferred mfa failed",t),!this.isSessionInvalid(t))return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return u.sent(),[3,4];case 3:return r=u.sent(),o(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+r.message)),[2];case 4:return o(t),[2];case 5:if(!(s=n._getMfaTypeFromUserData(a)))return o("invalid MFA Type"),[2];return i(s),[2]}})})},{bypassCache:s,clientMetadata:a})})},e.prototype._getMfaTypeFromUserData=function(e){var t=null,r=e.PreferredMfaSetting;if(r)t=r;else{var n=e.UserMFASettingList;n?0===n.length?t="NOMFA":tG.debug("invalid case for getPreferredMFA",e):t=e.MFAOptions?"SMS_MFA":"NOMFA"}return t},e.prototype._getUserData=function(e,t){var r=this;return new Promise(function(n,i){e.getUserData(function(t,o){return U(r,void 0,void 0,function(){var r;return F(this,function(a){switch(a.label){case 0:if(!t)return[3,5];if(tG.debug("getting user data failed",t),!this.isSessionInvalid(t))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return r=a.sent(),i(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+r.message)),[2];case 4:return i(t),[2];case 5:n(o),a.label=6;case 6:return[2]}})})},t)})},e.prototype.setPreferredMFA=function(e,t){return U(this,void 0,void 0,function(){var r,n,i,o,a,s,u=this;return F(this,function(l){switch(l.label){case 0:return r=this._config.clientMetadata,[4,this._getUserData(e,{bypassCache:!0,clientMetadata:r})];case 1:switch(n=l.sent(),i=null,o=null,t){case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return o={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return i={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return a=n.UserMFASettingList,[4,this._getMfaTypeFromUserData(n)];case 5:if("NOMFA"===(s=l.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===s)i={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==s)return[2,this.rejectAuthError(v.InvalidMFA)];o={PreferredMfa:!1,Enabled:!1}}return a&&0!==a.length&&a.forEach(function(e){"SMS_MFA"===e?i={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(o={PreferredMfa:!1,Enabled:!1})}),[3,7];case 6:return tG.debug("no validmfa method provided"),[2,this.rejectAuthError(v.NoMFA)];case 7:return[2,new Promise(function(t,n){e.setUserMfaPreference(i,o,function(i,o){if(i)return tG.debug("Set user mfa preference error",i),n(i);tG.debug("Set user mfa success",o),tG.debug("Caching the latest user data into local"),e.getUserData(function(r,i){return U(u,void 0,void 0,function(){var i;return F(this,function(a){switch(a.label){case 0:if(!r)return[3,5];if(tG.debug("getting user data failed",r),!this.isSessionInvalid(r))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];
14case 3:return i=a.sent(),n(Error("Session is invalid due to: "+r.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,n(r)];case 5:return[2,t(o)]}})})},{bypassCache:!0,clientMetadata:r})})})]}})})},e.prototype.disableSMS=function(e){return new Promise(function(t,r){e.disableMFA(function(e,n){if(e){tG.debug("disable mfa failed",e),r(e);return}tG.debug("disable mfa succeed",n),t(n)})})},e.prototype.enableSMS=function(e){return new Promise(function(t,r){e.enableMFA(function(e,n){if(e){tG.debug("enable mfa failed",e),r(e);return}tG.debug("enable mfa succeed",n),t(n)})})},e.prototype.setupTOTP=function(e){return new Promise(function(t,r){e.associateSoftwareToken({onFailure:function(e){tG.debug("associateSoftwareToken failed",e),r(e)},associateSecretCode:function(e){tG.debug("associateSoftwareToken success",e),t(e)}})})},e.prototype.verifyTotpToken=function(e,t){tG.debug("verification totp token",e,t),e&&"function"==typeof e.getSignInUserSession&&(r=e.getSignInUserSession());var r,n=null==r?void 0:r.isValid();return new Promise(function(r,i){e.verifySoftwareToken(t,"My TOTP device",{onFailure:function(e){tG.debug("verifyTotpToken failed",e),i(e)},onSuccess:function(t){n||tX("signIn",e,"A user "+e.getUsername()+" has been signed in"),tX("verify",e,"A user "+e.getUsername()+" has been verified"),tG.debug("verifyTotpToken success",t),r(t)}})})},e.prototype.confirmSignIn=function(e,t,r,n){var i=this;if(void 0===n&&(n=this._config.clientMetadata),!t)return this.rejectAuthError(v.EmptyCode);var o=this;return new Promise(function(a,s){e.sendMFACode(t,{onSuccess:function(t){return U(i,void 0,void 0,function(){var r,n,i,s;return F(this,function(u){switch(u.label){case 0:tG.debug(t),u.label=1;case 1:return u.trys.push([1,4,5,10]),[4,this.Credentials.clear()];case 2:return u.sent(),[4,this.Credentials.set(t,"session")];case 3:return r=u.sent(),tG.debug("succeed to get cognito credentials",r),[3,10];case 4:return n=u.sent(),tG.debug("cannot get cognito credentials",n),[3,10];case 5:o.user=e,u.label=6;case 6:return u.trys.push([6,8,,9]),[4,this.currentUserPoolUser()];case 7:return i=u.sent(),e.attributes=i.attributes,[3,9];case 8:return s=u.sent(),tG.debug("cannot get updated Cognito User",s),[3,9];
14case 9:return tX("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 10:return[2]}})})},onFailure:function(e){tG.debug("confirm signIn failure",e),s(e)}},r,n)})},e.prototype.completeNewPassword=function(e,t,r,n){var i=this;if(void 0===r&&(r={}),void 0===n&&(n=this._config.clientMetadata),!t)return this.rejectAuthError(v.EmptyPassword);var o=this;return new Promise(function(a,s){e.completeNewPasswordChallenge(t,r,{onSuccess:function(t){return U(i,void 0,void 0,function(){var r,n;return F(this,function(i){switch(i.label){case 0:tG.debug(t),i.label=1;case 1:return i.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return i.sent(),[4,this.Credentials.set(t,"session")];case 3:return r=i.sent(),tG.debug("succeed to get cognito credentials",r),[3,6];case 4:return n=i.sent(),tG.debug("cannot get cognito credentials",n),[3,6];case 5:return o.user=e,tX("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 6:return[2]}})})},onFailure:function(e){tG.debug("completeNewPassword failure",e),tX("completeNewPassword_failure",e,i.user+" failed to complete the new password flow"),s(e)},mfaRequired:function(t,r){tG.debug("signIn MFA required"),e.challengeName=t,e.challengeParam=r,a(e)},mfaSetup:function(t,r){tG.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=r,a(e)},totpRequired:function(t,r){tG.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=r,a(e)}},n)})},e.prototype.sendCustomChallengeAnswer=function(e,t,r){var n=this;return(void 0===r&&(r=this._config.clientMetadata),this.userPool)?t?new Promise(function(i,o){e.sendCustomChallengeAnswer(t,n.authCallbacks(e,i,o),r)}):this.rejectAuthError(v.EmptyChallengeResponse):this.rejectNoUserPool()},e.prototype.deleteUserAttributes=function(e,t){var r=this;return new Promise(function(n,i){r.userSession(e).then(function(r){e.deleteAttributes(t,function(e,t){return e?i(e):n(t)})})})},e.prototype.deleteUser=function(){return U(this,void 0,void 0,function(){var e,t,r=this;return F(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this._storageSync];case 1:return n.sent(),[3,3];case 2:throw e=n.sent(),tG.debug("Failed to sync cache info into memory",e),Error(e);case 3:return t=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(e,n){return U(r,void 0,void 0,function(){var r,i=this;return F(this,function(o){if(this.userPool){if(!(r=this.userPool.getCurrentUser()))return tG.debug("Failed to get user from user pool"),[2,n(Error("No current user."))];r.getSession(function(o,a){return U(i,void 0,void 0,function(){var i,a=this;return F(this,function(s){switch(s.label){case 0:if(!o)return[3,5];if(tG.debug("Failed to get the user session",o),!this.isSessionInvalid(o))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(r)];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),n(Error("Session is invalid due to: "+o.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,n(o)];case 5:r.deleteUser(function(i,o){if(i)n(i);else{tX("userDeleted",o,"The authenticated user has been deleted."),r.signOut(),a.user=null;try{a.cleanCachedItems()}catch(e){tG.debug("failed to clear cached items")}t?a.oAuthSignOutRedirect(e,n):(tX("signOut",a.user,"A user has been signed out"),e(o))}}),s.label=6;case 6:return[2]}})})})}else tG.debug("no Congito User pool"),n(Error("Cognito User pool does not exist"));return[2]})})})]}})})},e.prototype.updateUserAttributes=function(e,t,r){var n=this;void 0===r&&(r=this._config.clientMetadata);var i=[],o=this;return new Promise(function(a,s){o.userSession(e).then(function(o){for(var u in t)if("sub"!==u&&0>u.indexOf("_verified")){var l={Name:u,Value:t[u]};i.push(l)}e.updateAttributes(i,function(e,r,i){return e?(tX("updateUserAttributes_failure",e,"Failed to update attributes"),s(e)):(tX("updateUserAttributes",n.createUpdateAttributesResultList(t,null==i?void 0:i.CodeDeliveryDetailsList),"Attributes successfully updated"),a(r))},r)})})},e.prototype.createUpdateAttributesResultList=function(e,t){var r={};return Object.keys(e).forEach(function(e){r[e]={isUpdated:!0};var n=null==t?void 0:t.find(function(t){return t.AttributeName===e});n&&(r[e].isUpdated=!1,r[e].codeDeliveryDetails=n)}),r},e.prototype.userAttributes=function(e){var t=this;return new Promise(function(r,n){t.userSession(e).then(function(t){e.getUserAttributes(function(e,t){e?n(e):r(t)})})})},e.prototype.verifiedContact=function(e){var t=this;return this.userAttributes(e).then(function(e){var r=t.attributesToObject(e),n={},i={};return r.email&&(r.email_verified?i.email=r.email:n.email=r.email),r.phone_number&&(r.phone_number_verified?i.phone_number=r.phone_number:n.phone_number=r.phone_number),{verified:i,unverified:n}})},e.prototype.isErrorWithMessage=function(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"message")},e.prototype.isTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Access Token has been revoked"===e.message},e.prototype.isRefreshTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has been revoked"===e.message},e.prototype.isUserDisabledError=function(e){return this.isErrorWithMessage(e)&&"User is disabled."===e.message},e.prototype.isUserDoesNotExistError=function(e){return this.isErrorWithMessage(e)&&"User does not exist."===e.message},e.prototype.isRefreshTokenExpiredError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has expired"===e.message},e.prototype.isPasswordResetRequiredError=function(e){return this.isErrorWithMessage(e)&&"Password reset required for the user"===e.message},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI")},e.prototype.isSessionInvalid=function(e){return this.isUserDisabledError(e)||this.isUserDoesNotExistError(e)||this.isTokenRevokedError(e)||this.isRefreshTokenRevokedError(e)||this.isRefreshTokenExpiredError(e)||this.isPasswordResetRequiredError(e)},e.prototype.cleanUpInvalidSession=function(e){return U(this,void 0,void 0,function(){var t=this;return F(this,function(r){switch(r.label){case 0:e.signOut(),this.user=null,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return r.sent(),[3,4];case 3:return r.sent(),tG.debug("failed to clear cached items"),[3,4];case 4:if(this.isSignedInHostedUI())return[2,new Promise(function(e,r){t.oAuthSignOutRedirect(e,r)})];return tX("signOut",this.user,"A user has been signed out"),[2]}})})},e.prototype.currentUserPoolUser=function(e){var t=this;return this.userPool?new Promise(function(r,n){t._storageSync.then(function(){return U(t,void 0,void 0,function(){var t,i,o,a,s,u=this;return F(this,function(l){switch(l.label){case 0:if(!this.isOAuthInProgress())return[3,2];return tG.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise(function(e){var t=setTimeout(function(){tG.debug("OAuth signIn in progress timeout"),q.X.remove("auth",r),e()},1e4);function r(n){var i=n.payload.event;("cognitoHostedUI"===i||"cognitoHostedUI_failure"===i)&&(tG.debug("OAuth signIn resolved: "+i),clearTimeout(t),q.X.remove("auth",r),e())}q.X.listen("auth",r)}
14)];case 1:l.sent(),l.label=2;case 2:if(!(t=this.userPool.getCurrentUser()))return tG.debug("Failed to get user from user pool"),n("No current user"),[2];l.label=3;case 3:return l.trys.push([3,7,,8]),[4,this._userSession(t)];case 4:if(i=l.sent(),!(o=!!e&&e.bypassCache))return[3,6];return[4,this.Credentials.clear()];case 5:l.sent(),l.label=6;case 6:if(a=this._config.clientMetadata,!(void 0===(s=i.getAccessToken().decodePayload().scope)?"":s).split(" ").includes(tK))return tG.debug("Unable to get the user data because the "+tK+" is not in the scopes of the access token"),[2,r(t)];return t.getUserData(function(e,i){return U(u,void 0,void 0,function(){var o,a,s,u,l,c;return F(this,function(d){switch(d.label){case 0:if(!e)return[3,7];if(tG.debug("getting user data failed",e),!this.isSessionInvalid(e))return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return d.sent(),[3,4];case 3:return o=d.sent(),n(Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return n(e),[3,6];case 5:r(t),d.label=6;case 6:return[2];case 7:for(u=0,a=i.PreferredMfaSetting||"NOMFA",s=[];u<i.UserAttributes.length;u++)l={Name:i.UserAttributes[u].Name,Value:i.UserAttributes[u].Value},c=new tI.KC(l),s.push(c);return Object.assign(t,{attributes:this.attributesToObject(s),preferredMFA:a}),[2,r(t)]}})})},{bypassCache:o,clientMetadata:a}),[3,8];case 7:return n(l.sent()),[3,8];case 8:return[2]}})})}).catch(function(e){return tG.debug("Failed to sync cache info into memory",e),n(e)})}):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(e){return U(this,void 0,void 0,function(){var t,r,n,i,o;return F(this,function(a){switch(a.label){case 0:tG.debug("getting current authenticated user"),t=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._storageSync];case 2:return a.sent(),[3,4];case 3:throw r=a.sent(),tG.debug("Failed to sync cache info into memory",r),r;case 4:try{(n=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(t=N(N({},n.user),{token:n.token}))}catch(e){tG.debug("cannot load federated user from auth storage")}if(!t)return[3,5];return this.user=t,tG.debug("get current authenticated federated user",this.user),[2,this.user];case 5:tG.debug("get current authenticated userpool user"),i=null,a.label=6;case 6:return a.trys.push([6,8,,9]),[4,this.currentUserPoolUser(e)];case 7:return i=a.sent(),[3,9];case 8:return"No userPool"===(o=a.sent())&&tG.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),tG.debug("The user is not authenticated by the error",o),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=i,[2,this.user]}})})},e.prototype.currentSession=function(){var e=this;return(tG.debug("Getting current session"),this.userPool)?new Promise(function(t,r){e.currentUserPoolUser().then(function(n){e.userSession(n).then(function(e){t(e)}).catch(function(e){tG.debug("Failed to get the current session",e),r(e)})}).catch(function(e){tG.debug("Failed to get the current user",e),r(e)})}):Promise.reject(Error("No User Pool in the configuration."))},e.prototype._userSession=function(e){return U(this,void 0,void 0,function(){var t,r,n=this;return F(this,function(i){switch(i.label){case 0:if(!e)return tG.debug("the user is null"),[2,this.rejectAuthError(v.NoUserSession)];t=this._config.clientMetadata,0===this.inflightSessionPromiseCounter&&(this.inflightSessionPromise=new Promise(function(r,i){e.getSession(function(t,o){return U(n,void 0,void 0,function(){var n;return F(this,function(a){switch(a.label){case 0:if(!t)return[3,5];if(tG.debug("Failed to get the session from user",e),!this.isSessionInvalid(t))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),i(Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return i(t),[2];case 5:return tG.debug("Succeed to get the user session",o),r(o),[2]}})})},{clientMetadata:t})})),this.inflightSessionPromiseCounter++,i.label=1;case 1:return i.trys.push([1,,3,4]),[4,this.inflightSessionPromise];case 2:return r=i.sent(),e.signInUserSession=r,[2,r];case 3:return this.inflightSessionPromiseCounter--,[7];case 4:return[2]}})})},e.prototype.userSession=function(e){return this._userSession(e)},e.prototype.currentUserCredentials=function(){return U(this,void 0,void 0,function(){var e,t,r=this;return F(this,function(n){switch(n.label){case 0:tG.debug("Getting current user credentials"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[3,4];case 3:throw e=n.sent(),tG.debug("Failed to sync cache info into memory",e),e;case 4:t=null;try{t=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(e){tG.debug("failed to get or parse item aws-amplify-federatedInfo",e)}if(t)return[2,this.Credentials.refreshFederatedToken(t)];return[2,this.currentSession().then(function(e){return tG.debug("getting session success",e),r.Credentials.set(e,"session")}
14).catch(function(){return tG.debug("getting guest credentials"),r.Credentials.set(null,"guest")})]}})})},e.prototype.currentCredentials=function(){return tG.debug("getting current credentials"),this.Credentials.get()},e.prototype.verifyUserAttribute=function(e,t,r){return void 0===r&&(r=this._config.clientMetadata),new Promise(function(n,i){e.getAttributeVerificationCode(t,{onSuccess:function(e){return n(e)},onFailure:function(e){return i(e)}},r)})},e.prototype.verifyUserAttributeSubmit=function(e,t,r){return r?new Promise(function(n,i){e.verifyAttribute(t,r,{onSuccess:function(e){n(e)},onFailure:function(e){i(e)}})}):this.rejectAuthError(v.EmptyCode)},e.prototype.verifyCurrentUserAttribute=function(e){var t=this;return t.currentUserPoolUser().then(function(r){return t.verifyUserAttribute(r,e)})},e.prototype.verifyCurrentUserAttributeSubmit=function(e,t){var r=this;return r.currentUserPoolUser().then(function(n){return r.verifyUserAttributeSubmit(n,e,t)})},e.prototype.cognitoIdentitySignOut=function(e,t){return U(this,void 0,void 0,function(){var r,n,i=this;return F(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this._storageSync];case 1:return o.sent(),[3,3];case 2:throw r=o.sent(),tG.debug("Failed to sync cache info into memory",r),r;case 3:return n=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(r,o){if(e&&e.global){tG.debug("user global sign out",t);var a=i._config.clientMetadata;t.getSession(function(e,a){return U(i,void 0,void 0,function(){var i,a=this;return F(this,function(s){switch(s.label){case 0:if(!e)return[3,5];if(tG.debug("failed to get the user session",e),!this.isSessionInvalid(e))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return s.sent(),[3,4];case 3:return i=s.sent(),o(Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return[2,o(e)];case 5:return t.globalSignOut({onSuccess:function(e){if(tG.debug("global sign out success"),!n)return r();a.oAuthSignOutRedirect(r,o)},onFailure:function(e){return tG.debug("global sign out failed",e),o(e)}}),[2]}})})},{clientMetadata:a})}else tG.debug("user sign out",t),t.signOut(function(){if(!n)return r();i.oAuthSignOutRedirect(r,o)})})]}})})},e.prototype.oAuthSignOutRedirect=function(e,t){G().isBrowser?this.oAuthSignOutRedirectOrReject(t):this.oAuthSignOutAndResolve(e)},e.prototype.oAuthSignOutAndResolve=function(e){this._oAuthHandler.signOut(),e()},e.prototype.oAuthSignOutRedirectOrReject=function(e){this._oAuthHandler.signOut(),setTimeout(function(){return e(Error("Signout timeout fail"))},3e3)},e.prototype.signOut=function(e){return void 0===e&&(e={}),U(this,void 0,void 0,function(){var t,r;return F(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return n.sent(),[3,3];case 2:return n.sent(),tG.debug("failed to clear cached items"),[3,3];case 3:if(!this.userPool)return[3,11];n.label=4;case 4:return n.trys.push([4,6,,7]),[4,this._storageSync];case 5:return n.sent(),[3,7];case 6:throw t=n.sent(),tG.debug("Failed to sync cache info into memory",t),t;case 7:if(!(r=this.userPool.getCurrentUser()))return[3,9];return[4,this.cognitoIdentitySignOut(e,r)];case 8:return n.sent(),[3,10];case 9:tG.debug("no current Cognito user"),n.label=10;case 10:return[3,12];case 11:tG.debug("no Cognito User pool"),n.label=12;case 12:return tX("signOut",this.user,"A user has been signed out"),this.user=null,[2]}})})},e.prototype.cleanCachedItems=function(){return U(this,void 0,void 0,function(){return F(this,function(e){switch(e.label){case 0:return[4,this.Credentials.clear()];case 1:return e.sent(),[2]}})})},e.prototype.changePassword=function(e,t,r,n){var i=this;return void 0===n&&(n=this._config.clientMetadata),new Promise(function(o,a){i.userSession(e).then(function(i){e.changePassword(t,r,function(e,t){return e?(tG.debug("change password failure",e),a(e)):o(t)},n)})})},e.prototype.forgotPassword=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(v.EmptyUsername);var r=this.createCognitoUser(e);return new Promise(function(n,i){r.forgotPassword({onSuccess:function(){n()},onFailure:function(t){tG.debug("forgot password failure",t),tX("forgotPassword_failure",t,e+" forgotPassword failed"),i(t)},inputVerificationCode:function(t){tX("forgotPassword",r,e+" has initiated forgot password flow"),n(t)}},t)})},e.prototype.forgotPasswordSubmit=function(e,t,r,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(v.EmptyUsername);if(!t)return this.rejectAuthError(v.EmptyCode);if(!r)return this.rejectAuthError(v.EmptyPassword);var i=this.createCognitoUser(e);return new Promise(function(o,a){i.confirmPassword(t,r,{onSuccess:function(t){tX("forgotPasswordSubmit",i,e+" forgotPasswordSubmit successful"),o(t)}
14,onFailure:function(t){tX("forgotPasswordSubmit_failure",t,e+" forgotPasswordSubmit failed"),a(t)}},n)})},e.prototype.currentUserInfo=function(){return U(this,void 0,void 0,function(){var e,t,r,n,i,o,a;return F(this,function(s){switch(s.label){case 0:if(!(!(e=this.Credentials.getCredSource())||"aws"===e||"userPool"===e))return[3,9];return[4,this.currentUserPoolUser().catch(function(e){return tG.error(e)})];case 1:if(!(t=s.sent()))return[2,null];s.label=2;case 2:return s.trys.push([2,8,,9]),[4,this.userAttributes(t)];case 3:r=s.sent(),n=this.attributesToObject(r),i=null,s.label=4;case 4:return s.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return i=s.sent(),[3,7];case 6:return o=s.sent(),tG.debug("Failed to retrieve credentials while getting current user info",o),[3,7];case 7:return[2,{id:i?i.identityId:void 0,username:t.getUsername(),attributes:n}];case 8:return a=s.sent(),tG.error("currentUserInfo error",a),[2,{}];case 9:if("federated"===e)return[2,(t=this.user)||{}];return[2]}})})},e.prototype.federatedSignIn=function(e,t,r){return U(this,void 0,void 0,function(){var n,i,o,a,s,u,l,c,d,f,h;return F(this,function(p){switch(p.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw Error("Federation requires either a User Pool or Identity Pool in config");if(void 0===e&&this._config.identityPoolId&&!this._config.userPoolId)throw Error("Federation with Identity Pools requires tokens passed as arguments");if(!(B(e)||e&&["customProvider"].find(function(t){return e.hasOwnProperty(t)})||e&&["customState"].find(function(t){return e.hasOwnProperty(t)})||void 0===e))return[3,1];return i=B(n=e||{provider:m.Cognito})?n.provider:n.customProvider,B(n),o=n.customState,this._config.userPoolId&&(a=z(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,s=z(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,s,a,i,o)),[3,4];case 1:i=e;try{(u=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&tG.warn("There is already a signed in user: "+u+" in your app.\n																	You should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch(e){}return l=t.token,c=t.identity_id,d=t.expires_at,[4,this.Credentials.set({provider:i,token:l,identity_id:c,user:r,expires_at:d},"federation")];case 2:return f=p.sent(),[4,this.currentAuthenticatedUser()];
14case 3:return tX("signIn",h=p.sent(),"A user "+h.username+" has been signed in"),tG.debug("federated sign in credentials",f),[2,f];case 4:return[2]}})})},e.prototype._handleAuthResponse=function(e){return U(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,l,c,d,f,h;return F(this,function(p){switch(p.label){case 0:if(this.oAuthFlowInProgress)return tG.debug("Skipping URL "+e+" current flow in progress"),[2];p.label=1;case 1:if(p.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw Error("OAuth responses require a User Pool defined in config");if(tX("parsingCallbackUrl",{url:e},"The callback url is being parsed"),t=e||(G().isBrowser?window.location.href:""),r=!!((0,tM.parse)(t).query||"").split("&").map(function(e){return e.split("=")}).find(function(e){var t=L(e,1)[0];return"code"===t||"error"===t}),n=!!((0,tM.parse)(t).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).find(function(e){var t=L(e,1)[0];return"access_token"===t||"error"===t}),!(r||n))return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),p.label=2;case 2:return p.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(t)];case 3:if(o=(i=p.sent()).accessToken,a=i.idToken,s=i.refreshToken,u=i.state,l=new tI.MZ({IdToken:new tI.xk({IdToken:a}),RefreshToken:new tI.bR({RefreshToken:s}),AccessToken:new tI.ZA({AccessToken:o})}),c=void 0,!this._config.identityPoolId)return[3,5];return[4,this.Credentials.set(l,"session")];case 4:c=p.sent(),tG.debug("AWS credentials",c),p.label=5;case 5:return d=/-/.test(u),(f=this.createCognitoUser(l.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(l),window&&void 0!==window.history&&window.history.replaceState(window.history.state,"",this._config.oauth.redirectSignIn),tX("signIn",f,"A user "+f.getUsername()+" has been signed in"),tX("cognitoHostedUI",f,"A user "+f.getUsername()+" has been signed in via Cognito Hosted UI"),d&&tX("customOAuthState",u.split("-").splice(1).join("-").match(/.{2}/g).map(function(e){return String.fromCharCode(parseInt(e,16))}).join(""),"State for user "+f.getUsername()),[2,c];case 6:return h=p.sent(),tG.debug("Error in cognito hosted auth response",h),window&&void 0!==window.history&&window.history.replaceState(window.history.state,"",this._config.oauth.redirectSignIn),tX("signIn_failure",h,"The OAuth response flow failed"),tX("cognitoHostedUI_failure",h,"A failure occurred when returning to the Cognito Hosted UI"),tX("customState_failure",h,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}})})},e.prototype.essentialCredentials=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e.prototype.attributesToObject=function(e){var t=this,r={};return e&&e.map(function(e){"email_verified"===e.Name||"phone_number_verified"===e.Name?r[e.Name]=t.isTruthyString(e.Value)||!0===e.Value:r[e.Name]=e.Value}),r},e.prototype.isTruthyString=function(e){return"function"==typeof e.toLowerCase&&"true"===e.toLowerCase()},e.prototype.createCognitoUser=function(e){var t={Username:e,Pool:this.userPool};t.Storage=this._storage;var r=this._config.authenticationFlowType,n=new tI.ws(t);return r&&n.setAuthenticationFlowType(r),n},e.prototype._isValidAuthStorage=function(e){return!!e&&"function"==typeof e.getItem&&"function"==typeof e.setItem&&"function"==typeof e.removeItem&&"function"==typeof e.clear},e.prototype.noUserPoolErrorHandler=function(e){return!e||e.userPoolId&&e.identityPoolId?v.NoConfig:v.MissingAuthConfig},e.prototype.rejectAuthError=function(e){return Promise.reject(new tV(e))},e.prototype.rejectNoUserPool=function(){var e=this.noUserPoolErrorHandler(this._config);return Promise.reject(new tY(e))},e.prototype.rememberDevice=function(){return U(this,void 0,void 0,function(){var e,t;return F(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=r.sent(),[3,3];case 2:return t=r.sent(),tG.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise(function(t,r){e.setDeviceStatusRemembered({onSuccess:function(e){t(e)},onFailure:function(e){"InvalidParameterException"===e.code?r(new tV(v.DeviceConfig)):"NetworkError"===e.code?r(new tV(v.NetworkError)):r(e)}})})]}})})},e.prototype.forgetDevice=function(){return U(this,void 0,void 0,function(){var e,t;return F(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=r.sent(),[3,3];case 2:return t=r.sent(),tG.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise(function(t,r){e.forgetDevice({onSuccess:function(e){t(e)},onFailure:function(e){"InvalidParameterException"===e.code?r(new tV(v.DeviceConfig)):"NetworkError"===e.code?r(new tV(v.NetworkError)):r(e)}})})]}})})},e.prototype.fetchDevices=function(){return U(this,void 0,void 0,function(){var e,t;return F(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=r.sent(),[3,3];case 2:throw t=r.sent(),tG.debug("The user is not authenticated by the error",t),Error("The user is not authenticated");case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise(function(t,r){e.listDevices(60,null,{onSuccess:function(e){t(e.Devices.map(function(e){var t=e.DeviceAttributes.find(function(e){return"device_name"===e.Name})||{};return{id:e.DeviceKey,name:t.Value}}))},onFailure:function(e){"InvalidParameterException"===e.code?r(new tV(v.DeviceConfig)):"NetworkError"===e.code?r(new tV(v.NetworkError)):r(e)}})})]}})})},e}())(null);ev.d.register(tJ)},25387:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});var n=r(93769),i=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=new n.k("Amplify"),a=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Notifications=null,this.Logger=n.k,this.ServiceWorker=null}return e.prototype.register=function(e){o.debug("component registered in amplify",e),this._components.push(e),"function"==typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):o.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e&&(this._config=Object.assign(this._config,e),o.debug("amplify config",this._config),Object.entries(this._modules).forEac
14h(function(e){var r=i(e,2),n=(r[0],r[1]);Object.keys(n).forEach(function(e){t._modules[e]&&(n[e]=t._modules[e])})}),this._components.map(function(e){e.configure(t._config)})),this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map(function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)})},e}())},20490:function(e,t,r){"use strict";r.d(t,{X:function(){return l}});var n=r(93769),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}).apply(this,arguments)},o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=function(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))},s=new n.k("Hub"),u="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",l=new(function(){function e(e){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}return e.prototype._remove=function(e,t){if(e instanceof RegExp){var r=this.patterns.find(function(t){return t.pattern.source===e.source});if(!r){s.warn("No listeners for ".concat(e));return}this.patterns=a([],o(this.patterns.filter(function(e){return e!==r})),!1)}else{var n=this.listeners[e];if(!n){s.warn("No listeners for ".concat(e));return}this.listeners[e]=a([],o(n.filter(function(e){return e.callback!==t})),!1)}},e.prototype.remove=function(e,t){this._remove(e,t)},e.prototype.dispatch=function(e,t,r,n){void 0===r&&(r=""),this.protectedChannels.indexOf(e)>-1&&n!==u&&s.warn("WARNING: ".concat(e," is protected and dispatching on it can have unintended consequences"));var o={channel:e,payload:i({},t),source:r,patternInfo:[]};try{this._toListeners(o)}catch(e){s.error(e)}},e.prototype.listen=function(e,t,r){var n,i=this;if(void 0===r&&(r="noname"),void 0!==t.onHubCapsule)s.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),n=t.onHubCapsule.bind(t);else if("function"!=typeof t)throw Error("No callback supplied to Hub");else n=t;if(e instanceof RegExp)this.patterns.push({pattern:e,callback:n});else{var o=this.listeners[e];o||(o=[],this.listeners[e]=o),o.push({name:r,callback:n})}return function(){i._remove(e,n)}},e.prototype._toListeners=function(e){var t=e.channel,r=e.payload,n=this.listeners[t];if(n&&n.forEach(function(n){s.debug("Dispatching to ".concat(t," with "),r);try{n.callback(e)}catch(e){s.error(e)}}),this.patterns.length>0){if(!r.message){s.warn("Cannot perform pattern matching without a message 
14key");return}var a=r.message;this.patterns.forEach(function(t){var r=a.match(t.pattern);if(r){var n=o(r).slice(1),u=i(i({},e),{patternInfo:n});try{t.callback(u)}catch(e){s.error(e)}}})}},e}())("__default__")},93769:function(e,t,r){"use strict";r.d(t,{k:function(){return l}});var n,i,o=function(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 TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=function(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))},u={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5};(i=n||(n={})).DEBUG="DEBUG",i.ERROR="ERROR",i.INFO="INFO",i.WARN="WARN",i.VERBOSE="VERBOSE";var l=function(){function e(e,t){void 0===t&&(t=n.WARN),this.name=e,this.level=t,this._pluggables=[]}return e.prototype._padding=function(e){return e<10?"0"+e:""+e},e.prototype._ts=function(){var e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()},e.prototype.configure=function(e){return e&&(this._config=e),this._config},e.prototype._log=function(t){for(var r,i,a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];var l=this.level;e.LOG_LEVEL&&(l=e.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(l=window.LOG_LEVEL);var c=u[l];if(u[t]>=c){var d=console.log.bind(console);t===n.ERROR&&console.error&&(d=console.error.bind(console)),t===n.WARN&&console.warn&&(d=console.warn.bind(console));var f="[".concat(t,"] ").concat(this._ts()," ").concat(this.name),h="";if(1===a.length&&"string"==typeof a[0])d(h="".concat(f," - ").concat(a[0]));else if(1===a.length)h="".concat(f," ").concat(a[0]),d(f,a[0]);else if("string"==typeof a[0]){var p=a.slice(1);1===p.length&&(p=p[0]),h="".concat(f," - ").concat(a[0]," ").concat(p),d("".concat(f," - ").concat(a[0]),p)}else h="".concat(f," ").concat(a),d(f,a);try{for(var m=o(this._pluggables),v=m.next();!v.done;v=m.next()){var y=v.value,b={message:h,timestamp:Date.now()};y.pushLogs([b])}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}}},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,s([n.INFO],a(e),!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,s([n.INFO],a(e),!1))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,s([n.WARN],a(e),!1))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,s([n.ERROR],a(e),!1))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,s([n.DEBUG],a(e),!1))},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,s([n.VERBOSE],a(e),!1))},e.prototype.addPluggable=function(e){e&&"Logging"===e.getCategoryName()&&(this._pluggables.push(e),e.configure(this._config))},e.prototype.listPluggables=function(){return this._pluggables},e.LOG_LEVEL=null,e}()},46650:function(e,t){"use strict";/*!
15 * cookie
16 * Copyright(c) 2012-2014 Roman Shtylman
17 * Copyright(c) 2015 Douglas Christopher Wilson
18 * MIT Licensed
19 */t.Q=function(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},i=e.split(";"),o=(t||{}).decode||r,a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");if(!(u<0)){var l=s.substring(0,u).trim();if(void 0==n[l]){var c=s.substring(u+1,s.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),n[l]=function(e,t){try{return t(e)}catch(t){return e}}(c,o)}}}return n},t.q=function(e,t,r){var o=r||{},a=o.encode||n;if("function"!=typeof a)throw TypeError("option encode is invali
19d");if(!i.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!i.test(s))throw TypeError("argument val is invalid");var u=e+"="+s;if(null!=o.maxAge){var l=o.maxAge-0;if(isNaN(l)||!isFinite(l))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(l)}if(o.domain){if(!i.test(o.domain))throw TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw TypeError("option expires is invalid");u+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(u+="; HttpOnly"),o.secure&&(u+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u};var r=decodeURIComponent,n=encodeURIComponent,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},10914:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var n=r(89945),i=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var i=this.bufferLength;i<n.BLOCK_SIZE;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<n.BLOCK_SIZE-8;i++)t.setUint8(i,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}for(var o=new Uint8Array(n.DIGEST_LENGTH),i=0;i<8;i++)o[4*i]=this.state[i]>>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],d=0;d<n.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],h=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,p=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(h+this.temp[d-7]|0)+(p+this.temp[d-16]|0)}var m=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&l)|0)+(c+(n.KEY[d]+this.temp[d]|0)|0)|0,v=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&o^i&o)|0;c=l,l=u,u=s,s=a+m|0,a=o,o=i,i=r,r=m+v|0}t[0]+=r,t[1]+=i,t[2]+=o,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=l,t[7]+=c},e}();t.RawSha256=i},89945:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=9007199254740991},41938:function(e,t,r){"use strict";
19Object.defineProperty(t,"__esModule",{value:!0}),(0,r(73541).__exportStar)(r(65430),t)},65430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(73541),i=r(89945),o=r(10914),a=r(20892),s=function(){function e(e){if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var r=new o.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(i.BLOCK_SIZE);return n.set(t),n}(e),r=new Uint8Array(i.BLOCK_SIZE);r.set(t);for(var n=0;n<i.BLOCK_SIZE;n++)t[n]^=54,r[n]^=92;this.hash.update(t),this.outer.update(r);for(var n=0;n<t.byteLength;n++)t[n]=0}}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return(0,n.__awaiter)(this,void 0,void 0,function(){return(0,n.__generator)(this,function(e){return[2,this.digestSync()]})})},e}();t.Sha256=s},39145:function(e,t,r){"use strict";var n=r(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var i=r(74678),o=void 0!==n&&n.from?function(e){return n.from(e,"utf8")}:i.fromUtf8;t.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},20892:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=t.numToUint8=t.isEmptyData=t.convertToBuffer=void 0;var n=r(39145);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var i=r(7450);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=r(30639);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=r(60321);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},7450:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},30639:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.numToUint8=void 0,t.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}},60321:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint32ArrayFrom=void 0,t.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return Uint32Array.from(e)}},74678:function(e,t,r){"use strict";r.r(t),r.d(t,{fromUtf8:function(){return o},toUtf8:function(){return a}});let n=e=>{let t=[];for(let r=0,n=e.length;r<n;r++){let n=e.charCodeAt(r);if(n<128)t.push(n);else if(n<2048)t.push(n>>6|192,63&n|128);else if(r+1<e.length&&(64512&n)==55296&&(64512&e.charCodeAt(r+1))==56320){let i=65536+((1023&n)<<10)+(1023&e.charCodeAt(++r));t.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)},i=e=>{let t="";for(let r=0,n=e.length;r<n;r++){let n=e[r];if(n<128)t+=String.fromCharCode(n);else if(192<=n&&n<224){let i=e[++r];t+=String.fromCharCode((31&n)<<6|63&i)}else if(240<=n&&n<365){let i=[n,e[++r],e[++r],e[++r]],o="%"+i.map(e=>e.toString(16)).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t},o=e=>"function"==typeof TextEncoder?new TextEncoder().encode(e):n(e),a=e=>"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(e):i(e)},73541:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return x},__asyncGenerator:function(){return w},__asyncValues:function(){return _},__await:function(){return b},__awaiter:function(){return c},__classPrivateFieldGet:function(){return k},__classPrivateFieldSet:function(){return T},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return E},__importStar:function(){return C}
19,__makeTemplateObject:function(){return S},__metadata:function(){return l},__param:function(){return u},__read:function(){return m},__rest:function(){return a},__spread:function(){return v},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************
20Copyright (c) Microsoft Corporation.
21
22Permission to use, copy, modify, and/or distribute this software for any
23purpose with or without fee is hereby granted.
24
25THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
26REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
27AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
28INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
29LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
30OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
31PERFORMANCE OF THIS SOFTWARE.
32***************************************************************************** */var 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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){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}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function d(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;function s(o){return function(s){return function(o){if(r)throw 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 f(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}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 TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function y(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{var r;(r=i[e](t)).value instanceof b?Promise.resolve(r.value.v).then(u,l):c(o[0][2],r)}catch(e){c(o[0][3],e)}}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:b(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=p(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){!function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}(n,i,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
32function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function T(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},93869:function(e,t,r){"use strict";function n(e){var t,r=e.theme,n=e.name,i=e.props;if(!r||!r.props||!r.props[n])return i;var o=r.props[n];for(t in o)void 0===i[t]&&(i[t]=o[t]);return i}r.d(t,{Z:function(){return n}})},41601:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(67294),i=n.createContext(null);function o(){return n.useContext(i)}},42960:function(e,t,r){"use strict";r.d(t,{t4:function(){return n},ij:function(){return i}});var n={userAgent:"aws-amplify/5.0.4",isReactNative:"undefined"!=typeof navigator&&"ReactNative"===navigator.product},i=function(){return n.userAgent}},99643:function(e,t,r){"use strict";r.d(t,{Bs:function(){return o},m0:function(){return a},Zm:function(){return s}});var n=r(42960);function i(){}i.prototype.userAgent=(0,n.ij)();var o=function(){i.category="auth"},a=function(e){i.framework=e},s=function(e){var t=i.category?" "+i.category:"",r=i.framework?" framework/"+i.framework:"";return""+i.prototype.userAgent+t+r}},89153:function(e,t,r){"use strict";r.d(t,{sD:function(){return s},ZA:function(){return E},xk:function(){return T},bR:function(){return A},ws:function(){return L},KC:function(){return D},AM:function(){return Z},MZ:function(){return I},eR:function(){return K}});/*!
33 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
34 * SPDX-License-Identifier: Apache-2.0
35 */var n,i,o,a,s=function(){function e(e){var t=e||{},r=t.ValidationData,n=t.Username,i=t.Password,o=t.AuthParameters,a=t.ClientMetadata;this.validationData=r||{},this.authParameters=o||{},this.clientMetadata=a||{},this.username=n,this.password=i}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),u=r(48764);if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==r.g&&r.g.crypto&&(n=r.g.crypto),!n)try{n=r(56249)}catch(e){}var l=function(){function e(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length}var t=e.prototype;return t.random=function(t){for(var r=[],i=0;i<t;i+=4)r.push(function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")}());return new e(r,t)},t.toString=function(){return function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var o=t[i>>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")}(this)},e}(),c=r(41938);function d(e,t){null!=e&&this.fromString(e,t)}function f(){return new d(null)}var h="undefined"!=typeof navigator;h&&"Microsoft Internet Explorer"==navigator.appName?(d.prototype.am=function(e,t,r,n,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;i=((u=a*u+((32767&c)<<15)+r[n]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),r[n++]=1073741823&u}return i},i=30):h&&"Netscape"!=navigator.appName?(d.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var a=t*this[e++]+r[n]+i;i=Math.floor(a/67108864),r[n++]=67108863&a}return i},i=26):(d.prototype.am=function(e,t,r,n,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;i=((u=a*u+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+s*l,r[n++]=268435455&u}return i},i=28),d.prototype.DB=i,d.prototype.DM=(1<<i)-1,d.prototype.DV=1<<i,d.prototype.FV=4503599627370496,d.prototype.F1=52-i,d.prototype.F2=2*i-52;var p=[];for(a=0,o=48;a<=9;++a)p[o++]=a;for(a=10,o=97;a<36;++a)p[o++]=a;for(a=10,o=65;a<36;++a)p[o++]=a;function m(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function v(e){var t=f();return t.fromInt(e),t}function y(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function b(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>
vendor: 4,277 bytes, lines 35-38
35>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}/*!
36 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
37 * SPDX-License-Identifier: Apache-2.0
38 */function w(e){return u.Buffer.from(new l().random(e).toString(),"hex")}b.prototype.convert=function(e){var t=f();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(d.ZERO)>0&&this.m.subTo(t,t),t},b.prototype.revert=function(e){var t=f();return e.copyTo(t),this.reduce(t),t},b.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},b.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},b.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},d.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},d.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},d.prototype.fromString=function(e,t){if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else if(4==t)r=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var r,n=e.length,i=!1,o=0;--n>=0;){var a=function(e,t){var r=p[e.charCodeAt(t)];return null==r?-1:r}(e,n);if(a<0){"-"==e.charAt(n)&&(i=!0);continue}i=!1,0==o?this[this.t++]=a:o+r>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=r)>=this.DB&&(o-=this.DB)}this.clamp(),i&&d.ZERO.subTo(this,this)},d.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},d.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},d.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},d.prototype.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,o=(1<<i)-1,a=Math.floor(e/this.DB),s=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+a+1]=this[r]>>i|s,s=(this[r]&o)<<n;for(r=a-1;r>=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},d.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var n=e%this.DB,i=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var a=r+1;a<this.t;++a)t[a-r-1]|=(this[a]&o)<<i,t[a-r]=this[a]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<i),t.t=this.t-r,t.clamp()},d.prototype.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},d.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t[i]=0;for(i=0;i<n.t;++i)t[i+r.t]=r.am(0,n[i],t,i,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&d.ZERO.subTo(t,t)},d.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},d.prototype.divRemTo=function(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t){null!=t&&t.fromInt(0),null!=r&&this.copyTo(r);return}null==r&&(r=f());var o=f(),a=this.s,s=e.s,u=this.DB-y(n[n.t-1]);u>0?(n.lShiftTo(u,o),i.lShiftTo(u,r)):(n.copyTo(o),i.copyTo(r));var l=o.t,c=o[l-1];if(0!=c){var h=c*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),p=this.FV/h,m=(1<<this.F1)/h,v=1<<this.F2,b=r.t,w=b-l,x=null==t?f():t;for(o.dlShiftTo(w,x),r.compareTo(x)>=0&&(r[r.t++]=1,r.subTo(x,r)),d.ONE.dlShiftTo(l,x),x.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--w>=0;){var _=r[--b]==c?this.DM:Math.floor(r[b]*p+(r[b-1]+v)*m);if((r[b]+=o.am(0,_,r,w,0,l))<_)for(o.dlShiftTo(w,x),r.subTo(x,r);r[b]<--_;)r.subTo(x,r)}null!=t&&(r.drShiftTo(l,t),a!=s&&d.ZERO.subTo(t,t)),r.t=l,r.clamp(),u>0&&r.rShiftTo(u,r),a<0&&d.ZERO.subTo(r,r)}}},d.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((1&e)==0)return 0;var t=3&e;
38return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},d.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},d.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else if(4==e)t=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");var t,r,n=(1<<t)-1,i=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(r=this[a]>>s)>0&&(i=!0,o=m(r));a>=0;)s<t?r=(this[a]&(1<<s)-1)<<t-s|this[--a]>>(s+=this.DB-t):(r=this[a]>>(s-=t)&n,s<=0&&(s+=this.DB,--a)),r>0&&(i=!0),i&&(o+=m(r));return i?o:"0"},d.prototype.negate=function(){var e=f();return d.ZERO.subTo(this,e),e},d.prototype.abs=function(){return this.s<0?this.negate():this},d.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},d.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+y(this[this.t-1]^this.s&this.DM)},d.prototype.mod=function(e){var t=f();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(d.ZERO)>0&&e.subTo(t,t),t},d.prototype.equals=function(e){return 0==this.compareTo(e)},d.prototype.add=function(e){var t=f();return this.addTo(e,t),t},d.prototype.subtract=function(e){var t=f();return this.subTo(e,t),t},d.prototype.multiply=function(e){var t=f();return this.multiplyTo(e,t),t},d.prototype.divide=function(e){var t=f();return this.divRemTo(e,t,null),t},d.prototype.modPow=function(e,t,r){var n,i=e.bitLength(),o=v(1),a=new b(t);if(i<=0)return o;var s=[],u=3,l=(n=i<18?1:i<48?3:i<144?4:i<768?5:6)-1,c=(1<<n)-1;if(s[1]=a.convert(this),n>1){var d=f();for(a.sqrTo(s[1],d);u<=c;)s[u]=f(),a.mulTo(d,s[u-2],s[u]),u+=2}var h,p,m=e.t-1,w=!0,x=f();for(i=y(e[m])-1;m>=0;){for(i>=l?h=e[m]>>i-l&c:(h=(e[m]&(1<<i+1)-1)<<l-i,m>0&&(h|=e[m-1]>>this.DB+i-l)),u=n;(1&h)==0;)h>>=1,--u;if((i-=u)<0&&(i+=this.DB,--m),w)s[h].copyTo(o),w=!1;else{for(;u>1;)a.sqrTo(o,x),a.sqrTo(x,o),u-=2;u>0?a.sqrTo(o,x):(p=o,o=x,x=p),a.mulTo(x,s[h],o)}for(;m>=0&&(e[m]&1<<i)==0;)a.sqrTo(o,x),p=o,o=x,x=p,--i<0&&(i=this.DB-1,--m)}var _=a.revert(o);return r(null,_),_},d.ZERO=v(0),d.ONE=v(1);var x=/^[89a-f]/i,_=function(){function e(e){this.N=new d("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new d("2",16),this.k=new d(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=u.Buffer.from("Caldera Derived Key","utf8"),this.poolName=e}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(e){var t=this;this.largeAValue?e(null,this.largeAValue):this.calculateA(this.smallAValue,function(r,n){r&&e(r,null),t.largeAValue=n,e(null,t.largeAValue)})},t.generateRandomSmallA=function(){var e=w(128).toString("hex");return new d(e,16)},t.generateRandomString=function(){return w(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(e,t,r){var n=this;this.randomPassword=this.generateRandomString();var i=""+e+t+":"+this.randomPassword,o=this.hash(i),a=w(16).toString("hex");this.SaltToHashDevices=this.padHex(new d(a,16)),this.g.modPow(new d(this.hexHash(this.SaltToHashDevices+o),16),this.N,function(e,t){e&&r(e,null),n.verifierDevices=n.padHex(t),r(null,null)})},t.calculateA=function(e,t){var r=this;this.g.modPow(e,this.N,function(e,n){e&&t(e,null),n.mod(r.N).equals(d.ZERO)&&t(Error("Illegal paramater. A mod N cannot be 0."),null),t(null,n)})},t.calculateU=function(e,t){return this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(t)),new d(this.UHexHash,16)},t.hash=function(e){var t=new c.Sha256;t.update(e);var r=t.digestSync(),n=u.Buffer.from(r).toString("hex");return Array(64-n.length).join("0")+n},t.hexHash=function(e){return this.hash(u.Buffer.from(e,"hex"))},t.computehkdf=function(e,t){var r=u.Buffer.concat([this.infoBits,u.Buffer.from("\x01","utf8")]),n=new c.Sha256(t);n.update(e);var i=n.digestSync(),o=new c.Sha256(i);return o.update(r),o.digestSync().slice(0,16)},t.getPasswordAuthenticationKey=function(e,t,r,n,i){var o=this;if(r.mod(this.N).equals(d.ZERO))throw Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,r),this.UValue.equals(d.ZERO))throw Error("U cannot be zero.");var a=""+this.poolName+e+":"+t,s=this.hash(a),l=new d(this.hexHash(this.padHex(n)+s),16);this.calculateS(l,r,function(e,t){e&&i(e,null),i(null,o.computehkdf(u.Buffer.from(o.padHex(t),"hex"),u.Buffer.from(o.padHex(o.UValue),"hex")))})},t.calculateS=function(e,t,r){var n=this;this.g.modPow(e,this.N,function(i,o){i&&r(i,null),t.subtract(n.k.multiply(o)).modPow(n.smallAValue.add(n.UValue.multiply(e)),n.N,function(e,t){e&&r(e,null),r(null,t.mod(n.N))})})},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},t.padHex=function(e){if(!(e instanceof d))throw Error("Not a BigInteger");var t=0>
38e.compareTo(d.ZERO),r=e.abs().toString(16);if(r=r.length%2!=0?"0"+r:r,r=x.test(r)?"00"+r:r,t){var n=r.split("").map(function(e){var t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)}).join("");(r=new d(n,16).add(d.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(r=r.substring(2))}return r},e}(),S=function(){function e(e){this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(u.Buffer.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}();function C(e,t){return(C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}/*!
39 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
40 * SPDX-License-Identifier: Apache-2.0
41 */var E=function(e){var t;function r(t){var r=(void 0===t?{}:t).AccessToken;return e.call(this,r||"")||this}return(t=r).prototype=Object.create(e.prototype),t.prototype.constructor=t,C(t,e),r}(S);function k(e,t){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}/*!
42 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
43 * SPDX-License-Identifier: Apache-2.0
44 */var T=function(e){var t;function r(t){var r=(void 0===t?{}:t).IdToken;return e.call(this,r||"")||this}return(t=r).prototype=Object.create(e.prototype),t.prototype.constructor=t,k(t,e),r}(S),A=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),P=r(42960),I=function(){function e(e){var t=void 0===e?{}:e,r=t.IdToken,n=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(null==i||null==r)throw Error("Id token and Access Token must be present.");this.idToken=r,this.refreshToken=n,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return e<this.accessToken.getExpiration()&&e<this.idToken.getExpiration()},e}(),O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],M=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],j=function(){function e(){}return e.prototype.getNowString=function(){var e=new Date,t=M[e.getUTCDay()],r=O[e.getUTCMonth()],n=e.getUTCDate(),i=e.getUTCHours();i<10&&(i="0"+i);var o=e.getUTCMinutes();o<10&&(o="0"+o);var a=e.getUTCSeconds();return a<10&&(a="0"+a),t+" "+r+" "+n+" "+i+":"+o+":"+a+" UTC "+e.getUTCFullYear()},e}(),D=function(){function e(e){var t=void 0===e?{}:e,r=t.Name,n=t.Value;this.Name=r||"",this.Value=n||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(e){return this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e){return this.Name=e,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}(),R={},N=function(){function e(){}return e.setItem=function(e,t){return R[e]=t,R[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(R,e)?R[e]:void 0},e.removeItem=function(e){return delete R[e]},e.clear=function(){return R={}},e}(),U=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=N}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),F="undefined"!=typeof navigator?P.t4.isReactNative?"react-native":navigator.userAgent:"nodejs",L=function(){function e(e){if(null==e||null==e.Username||null==e.Pool)throw Error("Username and Pool information are required.");this.username=e.Username||"",this.pool=e.Pool,this.Session=null,this.client=e.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=e.Storage||new U().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},t.initiateAuth=function(e,t){var r=this,n=e.getAuthParameters();n.USERNAME=this.username;var i=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),o={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:i};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",o,function(e,n){if(e)return t.onFailure(e);var i=n.ChallengeName,o=n.ChallengeParameters;return"CUSTOM_CHALLENGE"===i?(r.Session=n.Session,t.customChallenge(o)):(r.signInUserSession=r.getCognitoUserSession(n.AuthenticationResult),r.cacheTokens(),t.onSuccess(r.signInUserSession))})},t.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(Error("Authentication flow type is invali
44d."))},t.authenticateUserDefaultAuth=function(e,t){var r,n,i=this,o=new _(this.pool.getUserPoolName()),a=new j,s={};null!=this.deviceKey&&(s.DEVICE_KEY=this.deviceKey),s.USERNAME=this.username,o.getLargeAValue(function(l,f){l&&t.onFailure(l),s.SRP_A=f.toString(16),"CUSTOM_AUTH"===i.authenticationFlowType&&(s.CHALLENGE_NAME="SRP_A");var h=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),p={AuthFlow:i.authenticationFlowType,ClientId:i.pool.getClientId(),AuthParameters:s,ClientMetadata:h};i.getUserContextData(i.username)&&(p.UserContextData=i.getUserContextData(i.username)),i.client.request("InitiateAuth",p,function(s,l){if(s)return t.onFailure(s);var f=l.ChallengeParameters;i.username=f.USER_ID_FOR_SRP,i.userDataKey=i.keyPrefix+"."+i.username+".userData",r=new d(f.SRP_B,16),n=new d(f.SALT,16),i.getCachedDeviceKeyAndPassword(),o.getPasswordAuthenticationKey(i.username,e.getPassword(),r,n,function(e,r){e&&t.onFailure(e);var n=a.getNowString(),s=u.Buffer.concat([u.Buffer.from(i.pool.getUserPoolName(),"utf8"),u.Buffer.from(i.username,"utf8"),u.Buffer.from(f.SECRET_BLOCK,"base64"),u.Buffer.from(n,"utf8")]),d=new c.Sha256(r);d.update(s);var p=d.digestSync(),m=u.Buffer.from(p).toString("base64"),v={};v.USERNAME=i.username,v.PASSWORD_CLAIM_SECRET_BLOCK=f.SECRET_BLOCK,v.TIMESTAMP=n,v.PASSWORD_CLAIM_SIGNATURE=m,null!=i.deviceKey&&(v.DEVICE_KEY=i.deviceKey);var y={ChallengeName:"PASSWORD_VERIFIER",ClientId:i.pool.getClientId(),ChallengeResponses:v,Session:l.Session,ClientMetadata:h};i.getUserContextData()&&(y.UserContextData=i.getUserContextData()),function e(t,r){return i.client.request("RespondToAuthChallenge",t,function(n,o){return n&&"ResourceNotFoundException"===n.code&&-1!==n.message.toLowerCase().indexOf("device")?(v.DEVICE_KEY=null,i.deviceKey=null,i.randomPassword=null,i.deviceGroupKey=null,i.clearCachedDeviceKeyAndPassword(),e(t,r)):r(n,o)})}(y,function(e,r){return e?t.onFailure(e):i.authenticateUserInternal(r,o,t)})})})})},t.authenticateUserPlainUsernamePassword=function(e,t){var r=this,n={};if(n.USERNAME=this.username,n.PASSWORD=e.getPassword(),!n.PASSWORD){t.onFailure(Error("PASSWORD parameter is required"));return}var i=new _(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(n.DEVICE_KEY=this.deviceKey);var o=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),a={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:o};this.getUserContextData(this.username)&&(a.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",a,function(e,n){return e?t.onFailure(e):r.authenticateUserInternal(n,i,t)})},t.authenticateUserInternal=function(e,t,r){var n=this,i=e.ChallengeName,o=e.ChallengeParameters;if("SMS_MFA"===i)return this.Session=e.Session,r.mfaRequired(i,o);if("SELECT_MFA_TYPE"===i)return this.Session=e.Session,r.selectMFAType(i,o);if("MFA_SETUP"===i)return this.Session=e.Session,r.mfaSetup(i,o);if("SOFTWARE_TOKEN_MFA"===i)return this.Session=e.Session,r.totpRequired(i,o);if("CUSTOM_CHALLENGE"===i)return this.Session=e.Session,r.customChallenge(o);if("NEW_PASSWORD_REQUIRED"===i){this.Session=e.Session;var a=null,s=null,l=[],c=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(o&&(a=JSON.parse(e.ChallengeParameters.userAttributes),s=JSON.parse(e.ChallengeParameters.requiredAttributes)),s)for(var d=0;d<s.length;d++)l[d]=s[d].substr(c.length);return r.newPasswordRequired(a,l)}if("DEVICE_SRP_AUTH"===i){this.Session=e.Session,this.getDeviceResponse(r);return}this.signInUserSession=this.getCognitoUserSession(e.AuthenticationResult),this.challengeName=i,this.cacheTokens();var f=e.AuthenticationResult.NewDeviceMetadata;if(null==f)return r.onSuccess(this.signInUserSession);t.generateHashDevice(e.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(i){if(i)return r.onFailure(i);var o={Salt:u.Buffer.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:u.Buffer.from(t.getVerifierDevices(),"hex").toString("base64")};n.verifierDevices=o.PasswordVerifier,n.deviceGroupKey=f.DeviceGroupKey,n.randomPassword=t.getRandomPassword(),n.client.request("ConfirmDevice",{DeviceKey:f.DeviceKey,AccessToken:n.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:F},function(t,i){return t?r.onFailure(t):(n.deviceKey=e.AuthenticationResult.
44NewDeviceMetadata.DeviceKey,n.cacheDeviceKeyAndPassword(),!0===i.UserConfirmationNecessary)?r.onSuccess(n.signInUserSession,i.UserConfirmationNecessary):r.onSuccess(n.signInUserSession)})})},t.completeNewPasswordChallenge=function(e,t,r,n){var i=this;if(!e)return r.onFailure(Error("New password is required."));var o=new _(this.pool.getUserPoolName()),a=o.getNewPasswordRequiredChallengeUserAttributePrefix(),s={};t&&Object.keys(t).forEach(function(e){s[a+e]=t[e]}),s.NEW_PASSWORD=e,s.USERNAME=this.username;var u={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:s,Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",u,function(e,t){return e?r.onFailure(e):i.authenticateUserInternal(t,o,r)})},t.getDeviceResponse=function(e,t){var r=this,n=new _(this.deviceGroupKey),i=new j,o={};o.USERNAME=this.username,o.DEVICE_KEY=this.deviceKey,n.getLargeAValue(function(a,s){a&&e.onFailure(a),o.SRP_A=s.toString(16);var l={ChallengeName:"DEVICE_SRP_AUTH",ClientId:r.pool.getClientId(),ChallengeResponses:o,ClientMetadata:t,Session:r.Session};r.getUserContextData()&&(l.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",l,function(t,o){if(t)return e.onFailure(t);var a=o.ChallengeParameters,s=new d(a.SRP_B,16),l=new d(a.SALT,16);n.getPasswordAuthenticationKey(r.deviceKey,r.randomPassword,s,l,function(t,n){if(t)return e.onFailure(t);var s=i.getNowString(),l=u.Buffer.concat([u.Buffer.from(r.deviceGroupKey,"utf8"),u.Buffer.from(r.deviceKey,"utf8"),u.Buffer.from(a.SECRET_BLOCK,"base64"),u.Buffer.from(s,"utf8")]),d=new c.Sha256(n);d.update(l);var f=d.digestSync(),h=u.Buffer.from(f).toString("base64"),p={};p.USERNAME=r.username,p.PASSWORD_CLAIM_SECRET_BLOCK=a.SECRET_BLOCK,p.TIMESTAMP=s,p.PASSWORD_CLAIM_SIGNATURE=h,p.DEVICE_KEY=r.deviceKey;var m={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:r.pool.getClientId(),ChallengeResponses:p,Session:o.Session};r.getUserContextData()&&(m.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",m,function(t,n){return t?e.onFailure(t):(r.signInUserSession=r.getCognitoUserSession(n.AuthenticationResult),r.cacheTokens(),e.onSuccess(r.signInUserSession))})})})})},t.confirmRegistration=function(e,t,r,n){var i={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,ForceAliasCreation:t,ClientMetadata:n};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",i,function(e){return e?r(e,null):r(null,"SUCCESS")})},t.sendCustomChallengeAnswer=function(e,t,r){var n=this,i={};i.USERNAME=this.username,i.ANSWER=e;var o=new _(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(i.DEVICE_KEY=this.deviceKey);var a={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:i,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(a.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",a,function(e,r){return e?t.onFailure(e):n.authenticateUserInternal(r,o,t)})},t.sendMFACode=function(e,t,r,n){var i=this,o={};o.USERNAME=this.username,o.SMS_MFA_CODE=e;var a=r||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===a&&(o.SOFTWARE_TOKEN_MFA_CODE=e),null!=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var s={ChallengeName:a,ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(s.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",s,function(e,r){if(e)return t.onFailure(e);
44if("DEVICE_SRP_AUTH"===r.ChallengeName){i.getDeviceResponse(t);return}if(i.signInUserSession=i.getCognitoUserSession(r.AuthenticationResult),i.cacheTokens(),null==r.AuthenticationResult.NewDeviceMetadata)return t.onSuccess(i.signInUserSession);var n=new _(i.pool.getUserPoolName());n.generateHashDevice(r.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,r.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(e){if(e)return t.onFailure(e);var o={Salt:u.Buffer.from(n.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:u.Buffer.from(n.getVerifierDevices(),"hex").toString("base64")};i.verifierDevices=o.PasswordVerifier,i.deviceGroupKey=r.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,i.randomPassword=n.getRandomPassword(),i.client.request("ConfirmDevice",{DeviceKey:r.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:i.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:F},function(e,n){return e?t.onFailure(e):(i.deviceKey=r.AuthenticationResult.NewDeviceMetadata.DeviceKey,i.cacheDeviceKeyAndPassword(),!0===n.UserConfirmationNecessary)?t.onSuccess(i.signInUserSession,n.UserConfirmationNecessary):t.onSuccess(i.signInUserSession)})})})},t.changePassword=function(e,t,r,n){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return r(Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:e,ProposedPassword:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},function(e){return e?r(e,null):r(null,"SUCCESS")})},t.enableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(Error("User is not authenticated"),null);var t=[];t.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t){return t?e(t,null):e(null,"SUCCESS")})},t.setUserMfaPreference=function(e,t,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return r(Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:e,SoftwareTokenMfaSettings:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(e){return e?r(e,null):r(null,"SUCCESS")})},t.disableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t){return t?e(t,null):e(null,"SUCCESS")})},t.deleteUser=function(e,t){var r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:t},function(t){return t?e(t,null):(r.clearCachedUser(),e(null,"SUCCESS"))})},t.updateAttributes=function(e,t,r){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e,ClientMetadata:r},function(e,r){return e?t(e,null):n.getUserData(function(){return t(null,"SUCCESS",r)},{bypassCache:!0})})},t.getUserAttributes=function(e){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return e(Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t,r){if(t)return e(t,null);for(var n=[],i=0;i<r.UserAttributes.length;i++){var o={Name:r.UserAttributes[i].Name,Value:r.UserAttributes[i].Value},a=new D(o);n.push(a)}return e(null,n)})},t.getMFAOptions=function(e){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return e(Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t,r){return t?e(t,null):e(null,r.MFAOptions)})},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(e){var t=this;return void 0===e&&(e={}),new Promise(function(r){var n=t.signInUserSession.getRefreshToken();n&&n.getToken()?t.refreshSession(n,r,e.clientMetadata):r()})},t.getUserData=function(e,t){var r=this;if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return this.clearCachedUserData(),e(Error("User is not authenticated"),null);
44var n=this.getUserDataFromCache();if(!n){this.fetchUserData().then(function(t){e(null,t)}).catch(e);return}if(this.isFetchUserDataAndTokenRequired(t)){this.fetchUserData().then(function(e){return r.refreshSessionIfPossible(t).then(function(){return e})}).then(function(t){return e(null,t)}).catch(e);return}try{e(null,JSON.parse(n));return}catch(t){this.clearCachedUserData(),e(t,null);return}},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(e){var t=(e||{}).bypassCache;return void 0!==t&&t},t.fetchUserData=function(){var e=this;return this.createGetUserRequest().then(function(t){return e.cacheUserData(t),t})},t.deleteAttributes=function(e,t){var r=this;if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return t(Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(e){return e?t(e,null):r.getUserData(function(){return t(null,"SUCCESS")},{bypassCache:!0})})},t.resendConfirmationCode=function(e,t){var r={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.client.request("ResendConfirmationCode",r,function(t,r){return t?e(t,null):e(null,r)})},t.getSession=function(e,t){if(void 0===t&&(t={}),null==this.username)return e(Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return e(null,this.signInUserSession);var r="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,n=r+".idToken";if(this.storage.getItem(n)){var i=new T({IdToken:this.storage.getItem(n)}),o=new E({AccessToken:this.storage.getItem(r+".accessToken")}),a=new A({RefreshToken:this.storage.getItem(r+".refreshToken")}),s=parseInt(this.storage.getItem(r+".clockDrift"),0)||0,u=new I({IdToken:i,AccessToken:o,RefreshToken:a,ClockDrift:s});if(u.isValid())return this.signInUserSession=u,e(null,this.signInUserSession);if(!a.getToken())return e(Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(a,e,t.clientMetadata)}else e(Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(e,t,r){var n=this,i=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(t):t,o={};o.REFRESH_TOKEN=e.getToken();var a="CognitoIdentityServiceProvider."+this.pool.getClientId(),s=a+".LastAuthUser";if(this.storage.getItem(s)){this.username=this.storage.getItem(s);var u=a+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(u),o.DEVICE_KEY=this.deviceKey}var l={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:o,ClientMetadata:r};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",l,function(t,r){if(t)return"NotAuthorizedException"===t.code&&n.clearCachedUser(),i(t,null);if(r){var o=r.AuthenticationResult;return Object.prototype.hasOwnProperty.call(o,"RefreshToken")||(o.RefreshToken=e.getToken()),n.signInUserSession=n.getCognitoUserSession(o),n.cacheTokens(),i(null,n.signInUserSession)}})},t.cacheTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",r=e+"."+this.username+".accessToken",n=e+"."+this.username+".refreshToken",i=e+"."+this.username+".clockDrift";this.storage.setItem(t,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(r,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(n,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(i,""+this.signInUserSession.getClockDrift()),this.storage.setItem(e+".LastAuthUser",this.username)},t.cacheUserData=function(e){this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username;this.storage.setItem(e+".deviceKey",this.deviceKey),this.storage.setItem(e+".randomPasswordKey",this.randomPassword),this.storage.setItem(e+".deviceGroupKey",this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey";this.storage.getItem(t)&&(this.deviceKey=this.storage.getItem(t),this.randomPassword=this.storage.getItem(e+".randomPasswordKey"),this.deviceGroupKey=this.storage.getItem(e+".deviceGroupKey"))},t.clearCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username;this.storage.removeItem(e+".deviceKey"),this.storage.removeItem(e+".randomPasswordKey"),this.storage.removeItem(e+".deviceGroupKey")},t.clearCachedTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",r=e+"."+this.username+".accessToken",n=e+"."+this.username+".refreshToken",
44i=e+"."+this.username+".clockDrift";this.storage.removeItem(t),this.storage.removeItem(r),this.storage.removeItem(n),this.storage.removeItem(e+".LastAuthUser"),this.storage.removeItem(i)},t.getCognitoUserSession=function(e){var t=new T(e),r=new E(e),n=new A(e);return new I({IdToken:t,AccessToken:r,RefreshToken:n})},t.forgotPassword=function(e,t){var r={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.getUserContextData()&&(r.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",r,function(t,r){return t?e.onFailure(t):"function"==typeof e.inputVerificationCode?e.inputVerificationCode(r):e.onSuccess(r)})},t.confirmPassword=function(e,t,r,n){var i={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Password:t,ClientMetadata:n};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",i,function(e){return e?r.onFailure(e):r.onSuccess("SUCCESS")})},t.getAttributeVerificationCode=function(e,t,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:r},function(e,r){return e?t.onFailure(e):"function"==typeof t.inputVerificationCode?t.inputVerificationCode(r):t.onSuccess("SUCCESS")})},t.verifyAttribute=function(e,t,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return r.onFailure(Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:e,Code:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(e){return e?r.onFailure(e):r.onSuccess("SUCCESS")})},t.getDevice=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(t,r){return t?e.onFailure(t):e.onSuccess(r)})},t.forgetSpecificDevice=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")})},t.forgetDevice=function(e){var t=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:e.onFailure,onSuccess:function(r){return t.deviceKey=null,t.deviceGroupKey=null,t.randomPassword=null,t.clearCachedDeviceKeyAndPassword(),e.onSuccess(r)}})},t.setDeviceStatusRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")})},t.setDeviceStatusNotRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")})},t.listDevices=function(e,t,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return r.onFailure(Error("User is not authenticated"));var n={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};t&&(n.PaginationToken=t),this.client.request("ListDevices",n,function(e,t){return e?r.onFailure(e):r.onSuccess(t)})},t.globalSignOut=function(e){var t=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(r){return r?e.onFailure(r):(t.clearCachedUser(),e.onSuccess("SUCCESS"))})},t.signOut=function(e){var t=this;if(!e||"function"!=typeof e){this.cleanClientData();return}this.getSession(function(r,n){if(r)return e(r);t.revokeTokens(function(r){t.cleanClientData(),e(r)})})},t.revokeTokens=function(e){if(void 0===e&&(e=function(){}),"function"!=typeof e)throw Error("Invalid revokeTokenCallback. It should be a function.");
44if(!this.signInUserSession)return e(Error("User is not authenticated"));if(!this.signInUserSession.getAccessToken())return e(Error("No Access token available"));var t=this.signInUserSession.getRefreshToken().getToken(),r=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(r)&&t)return this.revokeToken({token:t,callback:e});e()},t.isSessionRevocable=function(e){if(e&&"function"==typeof e.decodePayload)try{return!!e.decodePayload().origin_jti}catch(e){}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(e){var t=e.token,r=e.callback;this.client.requestWithRetry("RevokeToken",{Token:t,ClientId:this.pool.getClientId()},function(e){if(e)return r(e);r()})},t.sendMFASelectionAnswer=function(e,t){var r=this,n={};n.USERNAME=this.username,n.ANSWER=e;var i={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:n,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",i,function(n,i){return n?t.onFailure(n):(r.Session=i.Session,"SMS_MFA"===e)?t.mfaRequired(i.ChallengeName,i.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===e?t.totpRequired(i.ChallengeName,i.ChallengeParameters):void 0})},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(e){var t=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t,r){return t?e.onFailure(t):e.associateSecretCode(r.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(r,n){return r?e.onFailure(r):(t.Session=n.Session,e.associateSecretCode(n.SecretCode))})},t.verifySoftwareToken=function(e,t,r){var n=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,FriendlyDeviceName:t},function(e,t){return e?r.onFailure(e):r.onSuccess(t)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:e,FriendlyDeviceName:t},function(e,t){if(e)return r.onFailure(e);n.Session=t.Session;var i={};i.USERNAME=n.username;var o={ChallengeName:"MFA_SETUP",ClientId:n.pool.getClientId(),ChallengeResponses:i,Session:n.Session};n.getUserContextData()&&(o.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",o,function(e,t){return e?r.onFailure(e):(n.signInUserSession=n.getCognitoUserSession(t.AuthenticationResult),n.cacheTokens(),r.onSuccess(n.signInUserSession))})})},e}();r(63144);var B=r(99643);function z(e){var t="function"==typeof Map?new Map:void 0;return(z=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw 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,r)}function r(){return H(e,arguments,W(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),q(r,e)})(e)}function H(e,t,r){return(H=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&q(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function q(e,t){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $=function(e){var t;function r(t,r,n,i){var o;return(o=e.call(this,t)||this).code=r,o.name=n,o.statusCode=i,o}return(t=r).prototype=Object.create(e.prototype),t.prototype.constructor=t,q(t,e),r}(z(Error)),V=function(){function e(e,t,r){this.endpoint=t||"https://cognito-idp."+e+".amazonaws.com/";var n=(r||{}).credentials;this.fetchOptions=n?{credentials:n}:{}}var t=e.prototype;return t.promisifyRequest=function(e,t){var r=this;return new Promise(function(n,i){r.request(e,t,function(e,t){e?i(new $(e.message,e.code,e.name,e.statusCode)):n(t)})})},t.requestWithRetry=function(e,t,r){var n=this;(function e(t,r,n,i){if(void 0===i&&(i=1),"function"!=typeof t)throw Error("functionToRetry must be a function");return Y.debug(t.name+" attempt #"+i+" with args: "+JSON.stringify(r)),t.apply(void 0,r).catch(function(o){if
44(Y.debug("error on "+t.name,o),o&&o.nonRetryable)throw Y.debug(t.name+" non retryable error",o),o;var a=n(i,r,o);if(Y.debug(t.name+" retrying in "+a+" ms"),!1!==a)return new Promise(function(e){return setTimeout(e,a)}).then(function(){return e(t,r,n,i+1)});throw o})})(function(t){return new Promise(function(r,i){n.request(e,t,function(e,t){e?i(e):r(t)})})},[t],function(e){var t=100*Math.pow(2,e)+100*Math.random();return!(t>5e3)&&t}).then(function(e){return r(null,e)}).catch(function(e){return r(e)})},t.request=function(e,t,r){var n,i={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":(0,B.Zm)(),"Cache-Control":"no-store"},o=Object.assign({},this.fetchOptions,{headers:i,method:"POST",mode:"cors",body:JSON.stringify(t)});fetch(this.endpoint,o).then(function(e){return n=e,e},function(e){if(e instanceof TypeError)throw Error("Network error");throw e}).then(function(e){return e.json().catch(function(){return{}})}).then(function(e){if(n.ok)return r(null,e);var t=(e.__type||e.code).split("#").pop(),i=Error(e.message||e.Message||null);return i.name=t,i.code=t,r(i)}).catch(function(e){if(n&&n.headers&&n.headers.get("x-amzn-errortype"))try{var t=n.headers.get("x-amzn-errortype").split(":")[0],i=Error(n.status?n.status.toString():null);return i.code=t,i.name=t,i.statusCode=n.status,r(i)}catch(e){}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return r(e)})},e}(),Y={debug:function(){}},Z=function(){function e(e,t){var r=e||{},n=r.UserPoolId,i=r.ClientId,o=r.endpoint,a=r.fetchOptions,s=r.AdvancedSecurityDataCollectionFlag;if(!n||!i)throw Error("Both UserPoolId and ClientId are required.");if(n.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(n))throw Error("Invalid UserPoolId format.");var u=n.split("_")[0];this.userPoolId=n,this.clientId=i,this.client=new V(u,o,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||new U().getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,r,n,i,o){var a=this,s={ClientId:this.clientId,Username:e,Password:t,UserAttributes:r,ValidationData:n,ClientMetadata:o};this.getUserContextData(e)&&(s.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",s,function(t,r){if(t)return i(t,null);var n={Username:e,Pool:a,Storage:a.storage};return i(null,{user:new L(n),userConfirmed:r.UserConfirmed,userSub:r.UserSub,codeDeliveryDetails:r.CodeDeliveryDetails})})},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var r={Username:t,Pool:this,Storage:this.storage};return new L(r)}return null},t.getUserContextData=function(e){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var r=t.getData(e,this.userPoolId,this.clientId);if(r)return{EncodedData:r}}return{}}},e}(),G=r(55450),K=function(){function e(e){if(void 0===e&&(e={}),e.domain&&(this.domain=e.domain),e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var r={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(r.sameSite=this.sameSite),G.set(e,t,r),G.get(e)},t.getItem=function(e){return G.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),G.remove(e,t)},t.clear=function(){for(var e=G.get(),t=Object.keys(e).length,r=0;r<t;++r)this.removeItem(Object.keys(e)[r]);return{}},e}();/*!
45 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
46 * SPDX-License-Identifier: Apache-2.0
47 */},55450:function(e,t,r){var n,i;void 0!==(n="function"==typeof(i=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
47)+/g,decodeURIComponent)}return function r(n){function i(){}function o(t,r,o){if("undefined"!=typeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(new Date*1+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(r);/^[\{\[]/.test(a)&&(r=a)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var u in o)o[u]&&(s+="; "+u,!0!==o[u]&&(s+="="+o[u].split(";")[0]));return document.cookie=t+"="+r+s}}function a(e,r){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),u=s.slice(1).join("=");r||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=t(s[0]);if(u=(n.read||n)(u,l)||t(u),r)try{u=JSON.parse(u)}catch(e){}if(i[l]=u,e===l)break}catch(e){}}return e?i[e]:i}}return i.set=o,i.get=function(e){return a(e,!1)},i.getJSON=function(e){return a(e,!0)},i.remove=function(t,r){o(t,"",e(r,{expires:-1}))},i.defaults={},i.withConverter=r,i}(function(){})})?i.call(t,r,t,e):i)&&(e.exports=n),e.exports=i()},79742:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),a=o[0],s=o[1],l=new i((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,l[c++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(function(e,t,n){for(var i,o=[],a=t;a<n;a+=3)o.push(r[(i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,a,a+16383>s?s:a+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a<s;++a)r[a]=o[a],n[o.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},73431:function(e){var t="function"==typeof Float32Array;function r(e,t,r){return(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e}function n(e,t,r){return 3*(1-3*r+3*t)*e*e+2*(3*r-6*t)*e+3*t}function i(e){return e}e.exports=function(e,o,a,s){if(!(0<=e&&e<=1&&0<=a&&a<=1))throw Error("bezier x values must be in [0, 1] range");if(e===o&&a===s)return i;for(var u=t?new Float32Array(11):Array(11),l=0;l<11;++l)u[l]=r(.1*l,e,a);return function(t){return 0===t?0:1===t?1:r(function(t){for(var i=0,o=1;10!==o&&u[o]<=t;++o)i+=.1;var s=i+(t-u[--o])/(u[o+1]-u[o])*.1,l=n(s,e,a);return l>=.001?function(e,t,i,o){for(var a=0;a<4;++a){var s=n(t,i,o);if(0===s)break;var u=r(t,i,o)-e;t-=u/s}return t}(t,s,e,a):0===l?s:function(e,t,n,i,o){var a,s,u=0;do(a=r(s=t+(n-t)/2,i,o)-e)>0?n=s:t=s;while(Math.abs(a)>1e-7&&++u<10);return s}(t,i,i+.1,e,a)}(t),o,s)}}},48764:function(e,t,r){"use strict";/*!
48 * The buffer module from node.js, for the browser.
49 *
50 * @author   Feross Aboukhadijeh <http://feross.org>
51 * @license  MIT
52 */var n=r(79742),i=r(80645),o=r(87300);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,r)}function l(e,t,r,n){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=f(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!u.isEncoding(r))throw TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=s(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r,n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=s(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=a())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
52(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return P(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(e).length;default:if(n)return P(e).length;t=(""+t).toLowerCase(),n=!0}}function m(e,t,r){var i,o,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var o="",a=t;a<r;++a)o+=(n=e[a])<16?"0"+n.toString(16):n.toString(16);return o}(this,t,r);case"utf8":case"utf-8":return w(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return i=t,o=r,0===i&&o===this.length?n.fromByteArray(this):n.fromByteArray(this.slice(i,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function y(e,t,r,n,i){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),isNaN(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return(t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o<s;o++)if(l(e,o)===l(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else -1!==c&&(o-=o-c),c=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){for(var d=!0,f=0;f<u;f++)if(l(e,o+f)!==l(t,f)){d=!1;break}if(d)return o}return -1}function w(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,l=e[i],c=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=r)switch(d){case 1:l<128&&(c=l);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],(192&o)==128&&(192&a)==128&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],(192&o)==128&&(192&a)==128&&(192&s)==128&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function x(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,n,i,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function S(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>(n?i:1-i)*8}function C(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>(n?i:3-i)*8&255}function E(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function k(e,t,r,n,o){return o||E(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function T(e,t,r,n,o){return o||E(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}
52t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return(c(e),e<=0)?s(null,e):void 0!==t?"string"==typeof r?s(null,e).fill(t,r):s(null,e).fill(t):s(null,e)},u.allocUnsafe=function(e){return d(null,e)},u.allocUnsafeSlow=function(e){return d(null,e)},u.isBuffer=function(e){return!!(null!=e&&e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!o(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(!u.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?w(this,0,e):m.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),l=this.slice(n,i),c=e.slice(t,r),d=0;d<s;++d)if(l[d]!==c[d]){o=l[d],a=c[d];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,a,s,u,l,c,d,f,h,p,m,v=this.length-t;if((void 0===r||r>v)&&(r=v),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var y=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return u=t,l=r,M(P(e,this.length-u),this,u,l);case"ascii":return c=t,d=r,M(I(e),this,c,d);case"latin1":case"binary":return i=this,o=e,a=t,s=r,M(I(o),i,a,s);case"base64":return f=t,h=r,M(O(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,m=r,M(function(e,t){for(var r,n,i=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(e,this.length-p),this,p,m);default:if(y)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),y=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||x(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||x(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||x(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||x(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||x(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||x(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||x(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||x(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(t||x(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){t||x(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||x(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||x(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||x(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||x(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||x(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||x(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||x(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=1,a=0;for(this[t]=255&e;++a<r&&(o*=256);)this[t+a]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;_(this,e,t,r,i,0)}var o=r-1,a=1;for(this[t+o]=255&e;--o>=0&&(a*=256);)this[t+o]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):S(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):C(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);_(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):S(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):C(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||_(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):C(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return k(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return k(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return T(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return T(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("sourceStart out of bounds");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i,o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=u.isBuffer(e)?e:P(new u(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var A=/[^+\/0-9A-Za-z-_]/g;function P(e,t){t=t||1/0;for(var r,n=e.length,i=null,o=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319||a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}
52else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function I(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function O(e){return n.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}},87300:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},74528:function(e,t,r){"use strict";r.r(t),r.d(t,{camelCase:function(){return p},camelCaseTransform:function(){return f},camelCaseTransformMerge:function(){return h},capitalCase:function(){return y},capitalCaseTransform:function(){return v},constantCase:function(){return w},dotCase:function(){return x},headerCase:function(){return _},noCase:function(){return s},paramCase:function(){return S},pascalCase:function(){return d},pascalCaseTransform:function(){return l},pascalCaseTransformMerge:function(){return c},pathCase:function(){return C},sentenceCase:function(){return k},sentenceCaseTransform:function(){return E},snakeCase:function(){return T}});var n=r(97582);function i(e){return e.toLowerCase()}var o=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],a=/[^A-Z0-9]+/gi;function s(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,n=t.stripRegexp,s=t.transform,l=t.delimiter,c=u(u(e,void 0===r?o:r,"$1\x00$2"),void 0===n?a:n,"\x00"),d=0,f=c.length;"\x00"===c.charAt(d);)d++;for(;"\x00"===c.charAt(f-1);)f--;return c.slice(d,f).split("\x00").map(void 0===s?i:s).join(void 0===l?" ":l)}function u(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(e,t){return e.replace(t,r)},e)}function l(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function c(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function d(e,t){return void 0===t&&(t={}),s(e,(0,n.pi)({delimiter:"",transform:l},t))}function f(e,t){return 0===t?e.toLowerCase():l(e,t)}function h(e,t){return 0===t?e.toLowerCase():c(e)}function p(e,t){return void 0===t&&(t={}),d(e,(0,n.pi)({transform:f},t))}function m(e){return e.charAt(0).toUpperCase()+e.substr(1)}function v(e){return m(e.toLowerCase())}function y(e,t){return void 0===t&&(t={}),s(e,(0,n.pi)({delimiter:" ",transform:v},t))}function b(e){return e.toUpperCase()}function w(e,t){return void 0===t&&(t={}),s(e,(0,n.pi)({delimiter:"_",transform:b},t))}function x(e,t){return void 0===t&&(t={}),s(e,(0,n.pi)({delimiter:"."},t))}function _(e,t){return void 0===t&&(t={}),y(e,(0,n.pi)({delimiter:"-"},t))}function S(e,t){return void 0===t&&(t={}),x(e,(0,n.pi)({delimiter:"-"},t))}function C(e,t){return void 0===t&&(t={}),x(e,(0,n.pi)({delimiter:"/"},t))}function E(e,t){var r=e.toLowerCase();return 0===t?m(r):r}function k(e,t){return void 0===t&&(t={}),s(e,(0,n.pi)({delimiter:" ",transform:E},t))}function T(e,t){return void 0===t&&(t={}),x(e,(0,n.pi)({delimiter:"_"},t))}},87394:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return(e<0?"-":"")+r},e.exports=t.default},97561:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(82512)).default;t.default=i,e.exports=t.default},98729:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=function(){return r},t.setDefaultOptions=function(e){r=e};var r={}},52084:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(21603)),o=n(r(91354)),a=n(r(81370)),s=n(r(60623)),u=n(r(66226)),l=n(r(87394)),c=n(r(62699)),d={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function f(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+(t||"")+(0,l.default)(o,2)}function h(e,t){return e%60==0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):p(e,t)}function p(e,t){var r=Math.abs(e);return(e>0?"-":"+")+(0,l.default)(Math.floor(r/60),2)+(t||"")+(0,l.default)(r%60,2)}t.default={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return c.default.y(e,t)},Y:function(e,t,r,n){var i=(0,u.default)(e,n),o=i>0?i:1-i;return"YY"===t?(0,l.default)(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):(0,l.default)(o,t.length)},R:function(e,t){var r=(0,a.default)(e);return(0,l.default)(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return(0,l.default)(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return(0,l.default)(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return(0,l.default)(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return c.default.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return(0,l.default)(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=(0,s.default)(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):(0,l.default)(i,t.length)},I:function(e,t,r){var n=(0,o.default)(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):(0,l.default)(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):c.default.d(e,t)},D:function(e,t,r){var n=(0,i.default)(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):(0,l.default)(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,l.default)(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,l.default)(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return(0,l.default)(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?d.noon:0===i?d.midnight:i/12>
52=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?d.evening:i>=12?d.afternoon:i>=4?d.morning:d.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return c.default.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):c.default.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):(0,l.default)(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):c.default.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):c.default.s(e,t)},S:function(e,t){return c.default.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return h(i);case"XXXX":case"XX":return p(i);default:return p(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return h(i);case"xxxx":case"xx":return p(i);default:return p(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+f(i,":");default:return"GMT"+p(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+f(i,":");default:return"GMT"+p(i,":")}},t:function(e,t,r,n){var i=Math.floor((n._originalDate||e).getTime()/1e3);return(0,l.default)(i,t.length)},T:function(e,t,r,n){var i=(n._originalDate||e).getTime();return(0,l.default)(i,t.length)}},e.exports=t.default},62699:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(87394));t.default={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return(0,i.default)("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):(0,i.default)(r+1,2)},d:function(e,t){return(0,i.default)(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return(0,i.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,i.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,i.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,i.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3));return(0,i.default)(n,t.length)}},e.exports=t.default},95209:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},n=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.default={p:n,P:function(e,t){var i,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",r(a,t)).replace("{{time}}",n(s,t))}},e.exports=t.default},93561:function(e,t){"use strict";
52Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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()},e.exports=t.default},21603:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/864e5)+1};var i=n(r(71171)),o=n(r(68734));e.exports=t.default},91354:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,s.default)(1,arguments);var t=(0,i.default)(e);return Math.round(((0,o.default)(t).getTime()-(0,a.default)(t).getTime())/6048e5)+1};var i=n(r(71171)),o=n(r(80079)),a=n(r(94275)),s=n(r(68734));e.exports=t.default},81370:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var s=(0,a.default)(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var l=(0,a.default)(u);return t.getTime()>=s.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1};var i=n(r(71171)),o=n(r(68734)),a=n(r(80079));e.exports=t.default},60623:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,s.default)(1,arguments);var r=(0,i.default)(e);return Math.round(((0,o.default)(r,t).getTime()-(0,a.default)(r,t).getTime())/6048e5)+1};var i=n(r(71171)),o=n(r(69209)),a=n(r(34118)),s=n(r(68734));e.exports=t.default},66226:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var r,n,l,c,d,f,h,p,m=(0,i.default)(e),v=m.getUTCFullYear(),y=(0,u.getDefaultOptions)(),b=(0,s.default)(null!==(r=null!==(n=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:y.firstWeekContainsDate)&&void 0!==n?n:null===(h=y.locale)||void 0===h?void 0:null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(v+1,0,b),w.setUTCHours(0,0,0,0);var x=(0,a.default)(w,t),_=new Date(0);_.setUTCFullYear(v,0,b),_.setUTCHours(0,0,0,0);var S=(0,a.default)(_,t);return m.getTime()>=x.getTime()?v+1:m.getTime()>=S.getTime()?v:v-1};var i=n(r(71171)),o=n(r(68734)),a=n(r(69209)),s=n(r(82084)),u=r(98729);e.exports=t.default},56736:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectedDayOfYearToken=function(e){return -1!==r.indexOf(e)},t.isProtectedWeekYearToken=function(e){return -1!==n.indexOf(e)},t.throwProtectedError=function(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
52concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var r=["D","DD"],n=["YY","YYYY"]},68734:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default},80079:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,i.default)(e),r=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((r<1?7:0)+r-1)),t.setUTCHours(0,0,0,0),t};var i=n(r(71171)),o=n(r(68734));e.exports=t.default},94275:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,i.default)(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),(0,o.default)(r)};var i=n(r(81370)),o=n(r(80079)),a=n(r(68734));e.exports=t.default},69209:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var r,n,u,l,c,d,f,h,p=(0,s.getDefaultOptions)(),m=(0,a.default)(null!==(r=null!==(n=null!==(u=null!==(l=null==t?void 0:t.weekStartsOn)&&void 0!==l?l:null==t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==u?u:p.weekStartsOn)&&void 0!==n?n:null===(f=p.locale)||void 0===f?void 0:null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,i.default)(e),y=v.getUTCDay();return v.setUTCDate(v.getUTCDate()-((y<m?7:0)+y-m)),v.setUTCHours(0,0,0,0),v};var i=n(r(71171)),o=n(r(68734)),a=n(r(82084)),s=r(98729);e.exports=t.default},34118:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(1,arguments);var r,n,l,c,d,f,h,p,m=(0,u.getDefaultOptions)(),v=(0,s.default)(null!==(r=null!==(n=null!==(l=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==n?n:null===(h=m.locale)||void 0===h?void 0:null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1),y=(0,i.default)(e,t),b=new Date(0);return b.setUTCFullYear(y,0,v),b.setUTCHours(0,0,0,0),(0,a.default)(b,t)};var i=n(r(66226)),o=n(r(68734)),a=n(r(69209)),s=n(r(82084)),u=r(98729);e.exports=t.default},82084:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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)},e.exports=t.default},5065:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(2,arguments);var r=(0,o.default)(e).getTime(),n=(0,i.default)(t);return new Date(r+n)};var i=n(r(82084)),o=n(r(71171)),a=n(r(68734));e.exports=t.default},86559:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n,i={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 o(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 a={date:o({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:o({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:o({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},s={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function u(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]}}function l(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}(u,function(e){return e.test(s)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}(u,function(e){return e.test(s)});return r=e.valueCallback?e.valueCallback(l):l,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}}var c={code:"en-US",formatDistance:function(e,t,r){var n,o=i[e];return(n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:a,formatRelative:function(e,t,r,n){return s[e]},localize:{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:u({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:u({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:u({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:u({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
52ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:u({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"})},match:{ordinalNumber:(n={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(n.matchPattern);if(!r)return null;var i=r[0],o=e.match(n.parsePattern);if(!o)return null;var a=n.valueCallback?n.valueCallback(o[0]):o[0];return{value:a=t.valueCallback?t.valueCallback(a):a,rest:e.slice(i.length)}}),era:l({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:l({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:l({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:l({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:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}}},84314:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});var n={};function i(){return n}},24262: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}})},13882:function(e,t,r){"use strict";function n(e,t){if(t.length<e)throw TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{Z:function(){return n}})},83946: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}})},34850:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var n=r(71002),i=r(13882),o=r(19013),a=r(83946);function s(e){(0,i.Z)(1,arguments);var t=(0,o.Z)(e),r=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((r<1?7:0)+r-1)),t.setUTCHours(0,0,0,0),t}function u(e){(0,i.Z)(1,arguments);var t=(0,o.Z)(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=s(n),u=new Date(0);u.setUTCFullYear(r,0,4),u.setUTCHours(0,0,0,0);var l=s(u);return t.getTime()>=a.getTime()?r+1:t.getTime()>=l.getTime()?r:r-1}
52var l=r(84314);function c(e,t){(0,i.Z)(1,arguments);var r,n,s,u,c,d,f,h,p=(0,l.j)(),m=(0,a.Z)(null!==(r=null!==(n=null!==(s=null!==(u=null==t?void 0:t.weekStartsOn)&&void 0!==u?u:null==t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==s?s:p.weekStartsOn)&&void 0!==n?n:null===(f=p.locale)||void 0===f?void 0:null===(h=f.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==r?r:0);if(!(m>=0&&m<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,o.Z)(e),y=v.getUTCDay();return v.setUTCDate(v.getUTCDate()-((y<m?7:0)+y-m)),v.setUTCHours(0,0,0,0),v}function d(e,t){(0,i.Z)(1,arguments);var r,n,s,u,d,f,h,p,m=(0,o.Z)(e),v=m.getUTCFullYear(),y=(0,l.j)(),b=(0,a.Z)(null!==(r=null!==(n=null!==(s=null!==(u=null==t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null==t?void 0:null===(d=t.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:y.firstWeekContainsDate)&&void 0!==n?n:null===(h=y.locale)||void 0===h?void 0:null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1);if(!(b>=1&&b<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(v+1,0,b),w.setUTCHours(0,0,0,0);var x=c(w,t),_=new Date(0);_.setUTCFullYear(v,0,b),_.setUTCHours(0,0,0,0);var S=c(_,t);return m.getTime()>=x.getTime()?v+1:m.getTime()>=S.getTime()?v:v-1}function f(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return(e<0?"-":"")+r}var h={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return f("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):f(r+1,2)},d:function(e,t){return f(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return f(e.getUTCHours()%12||12,t.length)},H:function(e,t){return f(e.getUTCHours(),t.length)},m:function(e,t){return f(e.getUTCMinutes(),t.length)},s:function(e,t){return f(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;return f(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)}},p={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function m(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;return 0===o?r+String(i):r+String(i)+(t||"")+f(o,2)}function v(e,t){return e%60==0?(e>0?"-":"+")+f(Math.abs(e)/60,2):y(e,t)}function y(e,t){var r=Math.abs(e);return(e>0?"-":"+")+f(Math.floor(r/60),2)+(t||"")+f(r%60,2)}var b={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear();return r.ordinalNumber(n>0?n:1-n,{unit:"year"})}return h.y(e,t)},Y:function(e,t,r,n){var i=d(e,n),o=i>0?i:1-i;return"YY"===t?f(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):f(o,t.length)},R:function(e,t){return f(u(e),t.length)},u:function(e,t){return f(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return f(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return f(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return h.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return f(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var s=function(e,t){(0,i.Z)(1,arguments);var r=(0,o.Z)(e);return Math.round((c(r,t).getTime()-(function(e,t){(0,i.Z)(1,arguments);var r,n,o,s,u,f,h,p,m=(0,l.j)(),v=(0,a.Z)(null!==(r=null!==(n=null!==(o=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t?void 0:null===(u=t.locale)||void 0===u?void 0:null===(f=u.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==n?n:null===(h=m.locale)||void 0===h?void 0:null===(p=h.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==r?r:1),y=d(e,t),b=new Date(0);return b.setUTCFullYear(y,0,v),b.setUTCHours(0,0,0,0),c(b,t)})(r,t).getTime())/6048e5)+1}(e,n);return"wo"===t?r.ordinalNumber(s,{unit:"week"}):f(s,t.length)},I:function(e,t,r){var n=function(e){(0,i.Z)(1,arguments);var t=(0,o.Z)(e);return Math.round((s(t).getTime()-(function(e){(0,i.Z)(1,arguments);var t=u(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),s(r)})(t).getTime())/6048e5)+1}(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):f(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.d(e,t)},D:function(e,t,r){var n=function(e){(0,i.Z)(1,arguments);var t=(0,o.Z)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/864e5)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):f(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return f(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return f(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return f(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?p.noon:0===i?p.midnight:i/12>
52=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?p.evening:i>=12?p.afternoon:i>=4?p.morning:p.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return h.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):f(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.s(e,t)},S:function(e,t){return h.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return v(i);case"XXXX":case"XX":return y(i);default:return y(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return v(i);case"xxxx":case"xx":return y(i);default:return y(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+m(i,":");default:return"GMT"+y(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+m(i,":");default:return"GMT"+y(i,":")}},t:function(e,t,r,n){return f(Math.floor((n._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,n){return f((n._originalDate||e).getTime(),t.length)}},w=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},x=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},_={p:x,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return w(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",w(i,t)).replace("{{time}}",x(o,t))}},S=r(24262),C=["D","DD"],E=["YY","YYYY"];function k(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").
52concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var T=r(86559),A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,P=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I=/^'([^]*?)'?$/,O=/''/g,M=/[a-zA-Z]/;function j(e,t,r){(0,i.Z)(2,arguments);var s,u,c,d,f,h,p,m,v,y,w,x,j,D,R,N,U,F,L=String(t),B=(0,l.j)(),z=null!==(s=null!==(u=null==r?void 0:r.locale)&&void 0!==u?u:B.locale)&&void 0!==s?s:T.Z,H=(0,a.Z)(null!==(c=null!==(d=null!==(f=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r?void 0:null===(p=r.locale)||void 0===p?void 0:null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:B.firstWeekContainsDate)&&void 0!==d?d:null===(v=B.locale)||void 0===v?void 0:null===(y=v.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==c?c:1);if(!(H>=1&&H<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var q=(0,a.Z)(null!==(w=null!==(x=null!==(j=null!==(D=null==r?void 0:r.weekStartsOn)&&void 0!==D?D:null==r?void 0:null===(R=r.locale)||void 0===R?void 0:null===(N=R.options)||void 0===N?void 0:N.weekStartsOn)&&void 0!==j?j:B.weekStartsOn)&&void 0!==x?x:null===(U=B.locale)||void 0===U?void 0:null===(F=U.options)||void 0===F?void 0:F.weekStartsOn)&&void 0!==w?w:0);if(!(q>=0&&q<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!z.localize)throw RangeError("locale must contain localize property");if(!z.formatLong)throw RangeError("locale must contain formatLong property");var W=(0,o.Z)(e);if(!function(e){return(0,i.Z)(1,arguments),(!!function(e){return(0,i.Z)(1,arguments),e instanceof Date||"object"===(0,n.Z)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)||"number"==typeof e)&&!isNaN(Number((0,o.Z)(e)))}(W))throw RangeError("Invalid time value");var $=(0,S.Z)(W),V=function(e,t){return(0,i.Z)(2,arguments),function(e,t){(0,i.Z)(2,arguments);var r=(0,o.Z)(e).getTime(),n=(0,a.Z)(t);return new Date(r+n)}(e,-(0,a.Z)(t))}(W,$),Y={firstWeekContainsDate:H,weekStartsOn:q,locale:z,_originalDate:W};return L.match(P).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,_[t])(e,z.formatLong):e}).join("").match(A).map(function(n){if("''"===n)return"'";var i,o=n[0];if("'"===o)return(i=n.match(I))?i[1].replace(O,"'"):n;var a=b[o];if(a)return null!=r&&r.useAdditionalWeekYearTokens||-1===E.indexOf(n)||k(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||-1===C.indexOf(n)||k(n,t,String(e)),a(V,n,z.localize,Y);if(o.match(M))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n}).join("")}},313:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(19013),i=r(13882);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()}},69119:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(19013),i=r(13882);function o(e){(0,i.Z)(1,arguments);var t=(0,n.Z)(e);return t.setHours(0,0,0,0),t}},19013:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(71002),i=r(13882);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.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},15616:function(e,t,r){"use strict";var n=r(64836).default;
52Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,f.default)(2,arguments);var n,x,_,S,C,E,k,T,A,P,I,O,M,j,D,R,N,U,F=String(t),L=(0,h.getDefaultOptions)(),B=null!==(n=null!==(x=null==r?void 0:r.locale)&&void 0!==x?x:L.locale)&&void 0!==n?n:p.default,z=(0,d.default)(null!==(_=null!==(S=null!==(C=null!==(E=null==r?void 0:r.firstWeekContainsDate)&&void 0!==E?E:null==r?void 0:null===(k=r.locale)||void 0===k?void 0:null===(T=k.options)||void 0===T?void 0:T.firstWeekContainsDate)&&void 0!==C?C:L.firstWeekContainsDate)&&void 0!==S?S:null===(A=L.locale)||void 0===A?void 0:null===(P=A.options)||void 0===P?void 0:P.firstWeekContainsDate)&&void 0!==_?_:1);if(!(z>=1&&z<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=(0,d.default)(null!==(I=null!==(O=null!==(M=null!==(j=null==r?void 0:r.weekStartsOn)&&void 0!==j?j:null==r?void 0:null===(D=r.locale)||void 0===D?void 0:null===(R=D.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==M?M:L.weekStartsOn)&&void 0!==O?O:null===(N=L.locale)||void 0===N?void 0:null===(U=N.options)||void 0===U?void 0:U.weekStartsOn)&&void 0!==I?I:0);if(!(H>=0&&H<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw RangeError("locale must contain localize property");if(!B.formatLong)throw RangeError("locale must contain formatLong property");var q=(0,a.default)(e);if(!(0,i.default)(q))throw RangeError("Invalid time value");var W=(0,l.default)(q),$=(0,o.default)(q,W),V={firstWeekContainsDate:z,weekStartsOn:H,locale:B,_originalDate:q};return F.match(v).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,u.default[t])(e,B.formatLong):e}).join("").match(m).map(function(n){if("''"===n)return"'";var i,o=n[0];if("'"===o)return(i=n.match(y))?i[1].replace(b,"'"):n;var a=s.default[o];if(a)return!(null!=r&&r.useAdditionalWeekYearTokens)&&(0,c.isProtectedWeekYearToken)(n)&&(0,c.throwProtectedError)(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&(0,c.isProtectedDayOfYearToken)(n)&&(0,c.throwProtectedError)(n,t,String(e)),a($,n,B.localize,V);if(o.match(w))throw RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n}).join("")};var i=n(r(39989)),o=n(r(33239)),a=n(r(71171)),s=n(r(52084)),u=n(r(95209)),l=n(r(93561)),c=r(56736),d=n(r(82084)),f=n(r(68734)),h=r(98729),p=n(r(97561)),m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y=/^'([^]*?)'?$/,b=/''/g,w=/[a-zA-Z]/;e.exports=t.default},62382:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(1,arguments),e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var i=n(r(18698)),o=n(r(68734));e.exports=t.default},39989:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(1,arguments),(!!(0,i.default)(e)||"number"==typeof e)&&!isNaN(Number((0,o.default)(e)))};var i=n(r(62382)),o=n(r(71171)),a=n(r(68734));e.exports=t.default},20289:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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]}},e.exports=t.default},16245:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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]}},e.exports=t.default},43421:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var s=a[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}(u,function(e){return e.test(s)}):function(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}(u,function(e){return e.test(s)});return r=e.valueCallback?e.valueCallback(l):l,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(s.length)}}},e.exports=t.default},78926:function(e,t){"use strict";
52Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}},e.exports=t.default},71924:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};t.default=function(e,t,n){var i,o=r[e];return(i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix)?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},e.exports=t.default},95062:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(20289)),o={date:(0,i.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,i.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=o,e.exports=t.default},5102:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.default=function(e,t,n,i){return r[e]},e.exports=t.default},87839:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(16245)),o={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:(0,i.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,i.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,i.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,i.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,i.default)({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"})};t.default=o,e.exports=t.default},9796:function(e,t,r){"use strict";var n=r(64836).default;
52Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(43421)),o={ordinalNumber:(0,n(r(78926)).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,i.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,i.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,i.default)({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"})};t.default=o,e.exports=t.default},82512:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(71924)),o=n(r(95062)),a=n(r(5102)),s=n(r(87839)),u=n(r(9796)),l={code:"en-US",formatDistance:i.default,formatLong:o.default,formatRelative:a.default,localize:s.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=l,e.exports=t.default},33239:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var r=(0,a.default)(t);return(0,i.default)(e,-r)};var i=n(r(5065)),o=n(r(68734)),a=n(r(82084));e.exports=t.default},71171:function(e,t,r){"use strict";var n=r(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,i.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))};var i=n(r(18698)),o=n(r(68734));e.exports=t.default},61530:function(e,t){var r,n,i,o,a,s,u,l,c,d,f,h,p,m,v,y;n="undefined"!=typeof window?window:this,a="0.5.4",s="hasOwnProperty",u=/[\.\/]/,l=/\s*,\s*/,c=function(e,t){return e-t},d={n:{}},f=function(){for(var e=0,t=this.length;e<t;e++)if(void 0!==this[e])return this[e]},h=function(){for(var e=this.length;--e;)if(void 0!==this[e])return this[e]},p=Object.prototype.toString,m=String,v=Array.isArray||function(e){return e instanceof Array||"[object Array]"==p.call(e)},(y=function(e,t){var r,n=o,a=Array.prototype.slice.call(arguments,2),s=y.listeners(e),u=0,l=[],d={},p=[],m=i;p.firstDefined=f,p.lastDefined=h,i=e,o=0;for(var v=0,b=s.length;v<b;v++)"zIndex"in s[v]&&(l.push(s[v].zIndex),s[v].zIndex<0&&(d[s[v].zIndex]=s[v]));for(l.sort(c);l[u]<0;)if(r=d[l[u++]],p.push(r.apply(t,a)),o)return o=n,p;for(v=0;v<b;v++)if("zIndex"in(r=s[v])){if(r.zIndex==l[u]){if(p.push(r.apply(t,a)),o)break;do if((r=d[l[++u]])&&p.push(r.apply(t,a)),o)break;while(r)}else d[r.zIndex]=r}else if(p.push(r.apply(t,a)),o)break;return o=n,i=m,p})._events=d,y.listeners=function(e){var t,r,n,i,o,a,s,l,c=v(e)?e:e.split(u),f=d,h=[f],p=[];for(i=0,o=c.length;i<o;i++){for(a=0,l=[],s=h.length;a<s;a++)for(r=[(f=h[a].n)[c[i]],f["*"]],n=2;n--;)(t=r[n])&&(l.push(t),p=p.concat(t.f||[]));h=l}return p},y.separator=function(e){u=e?RegExp(e="["+(e=m(e).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]"):/[\.\/]/},y.on=function(e,t){if("function"!=typeof t)return function(){};for(var r=v(e)?v(e[0])?e:[e]:m(e).split(l),n=0,i=r.length;n<i;n++)!function(e){for(var r,n=v(e)?e:m(e).split(u),i=d,o=0,a=n.length;o<a;o++)i=(i=i.n).hasOwnProperty(n[o])&&i[n[o]]||(i[n[o]]={n:{}});for(o=0,i.f=i.f||[],a=i.f.length;o<a;o++)if(i.f[o]==t){r=!0;break}
52r||i.f.push(t)}(r[n]);return function(e){+e==+e&&(t.zIndex=+e)}},y.f=function(e){var t=[].slice.call(arguments,1);return function(){y.apply(null,[e,null].concat(t).concat([].slice.call(arguments,0)))}},y.stop=function(){o=1},y.nt=function(e){var t=v(i)?i.join("."):i;return e?RegExp("(?:\\.|\\/|^)"+e+"(?:\\.|\\/|$)").test(t):t},y.nts=function(){return v(i)?i:i.split(u)},y.off=y.unbind=function(e,t){if(!e){y._events=d={n:{}};return}var r=v(e)?v(e[0])?e:[e]:m(e).split(l);if(r.length>1){for(var n=0,i=r.length;n<i;n++)y.off(r[n],t);return}r=v(e)?e:m(e).split(u);var o,a,c,n,i,f,h,p=[d],b=[];for(n=0,i=r.length;n<i;n++)for(f=0;f<p.length;f+=c.length-2){if(c=[f,1],o=p[f].n,"*"!=r[n])o[r[n]]&&(c.push(o[r[n]]),b.unshift({n:o,name:r[n]}));else for(a in o)o[s](a)&&(c.push(o[a]),b.unshift({n:o,name:a}));p.splice.apply(p,c)}for(n=0,i=p.length;n<i;n++)for(o=p[n];o.n;){if(t){if(o.f){for(f=0,h=o.f.length;f<h;f++)if(o.f[f]==t){o.f.splice(f,1);break}o.f.length||delete o.f}for(a in o.n)if(o.n[s](a)&&o.n[a].f){var w=o.n[a].f;for(f=0,h=w.length;f<h;f++)if(w[f]==t){w.splice(f,1);break}w.length||delete o.n[a].f}}else for(a in delete o.f,o.n)o.n[s](a)&&o.n[a].f&&delete o.n[a].f;o=o.n}e:for(n=0,i=b.length;n<i;n++){for(a in(o=b[n]).n[o.name].f)continue e;for(a in o.n[o.name].n)continue e;delete o.n[o.name]}},y.once=function(e,t){var r=function(){return y.off(e,r),t.apply(this,arguments)};return y.on(e,r)},y.version=a,y.toString=function(){return"You are running Eve "+a},n.eve=y,e.exports?e.exports=y:void 0!==(r=(function(){return y}).apply(t,[]))&&(e.exports=r)},80645:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,l=u>>1,c=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+e[t+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,n),o-=l}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,d=c>>1,f=23===i?5960464477539062e-23:0,h=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[r+h]=255&a,h+=p,a/=256,l-=8);e[r+h-p]|=128*m}},72307:function(e,t,r){e=r.nmd(e);var n,i,o,a="__lodash_hash_undefined__",s="[object Arguments]",u="[object Array]",l="[object Boolean]",c="[object Date]",d="[object Error]",f="[object Function]",h="[object Map]",p="[object Number]",m="[object Object]",v="[object Promise]",y="[object RegExp]",b="[object Set]",w="[object String]",x="[object WeakMap]",_="[object ArrayBuffer]",S="[object DataView]",C=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[s]=k[u]=k[_]=k[l]=k[S]=k[c]=k[d]=k[f]=k[h]=k[p]=k[m]=k[y]=k[b]=k[w]=k[x]=!1;var T="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,A="object"==typeof self&&self&&self.Object===Object&&self,P=T||A||Function("return this")(),I=t&&!t.nodeType&&t,O=I&&e&&!e.nodeType&&e,M=O&&O.exports===I,j=M&&T.process,D=function(){try{return j&&j.binding&&j.binding("util")}catch(e){}}(),R=D&&D.isTypedArray;function N(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function U(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var F=Array.prototype,L=Function.prototype,B=Object.prototype,z=P["__core-js_shared__"],H=L.toString,q=B.hasOwnProperty,W=(n=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$=B.toString,V=RegExp("^"+H.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=M?P.Buffer:void 0,Z=P.Symbol,G=P.Uint8Array,K=B.propertyIsEnumerable,Q=F.splice,X=Z?Z.toStringTag:void 0,J=Object.getOwnPropertySymbols,ee=Y?Y.isBuffer:void 0,et=(i=Object.keys,o=Object,function(e){return i(o(e))}),er=ek(P,"DataView"),en=ek(P,"Map"),ei=ek(P,"Promise"),eo=ek(P,"Set"),ea=ek(P,"WeakMap"),es=ek(Object,"create"),eu=eP(er),el=eP(en),ec=eP(ei),ed=eP(eo),ef=eP(ea),eh=Z?Z.prototype:void 0,ep=eh?eh.valueOf
52:void 0;function eg(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function em(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ev(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ey(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ev;++t<r;)this.add(e[t])}function eb(e){var t=this.__data__=new em(e);this.size=t.size}function ew(e,t){for(var r=e.length;r--;)if(eI(e[r][0],t))return r;return -1}function ex(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=q.call(e,X),r=e[X];try{e[X]=void 0;var n=!0}catch(e){}var i=$.call(e);return n&&(t?e[X]=r:delete e[X]),i}(e):$.call(e)}function e_(e){return eU(e)&&ex(e)==s}function eS(e,t,r,n,i,o){var a=1&r,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var c=-1,d=!0,f=2&r?new ey:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var h=e[c],p=t[c];if(n)var m=a?n(p,h,c,t,e,o):n(h,p,c,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(h===e||i(h,e,r,n,o)))return f.push(t)})){d=!1;break}}else if(!(h===p||i(h,p,r,n,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function eC(e){var t;return t=function(e){return null!=e&&eR(e.length)&&!eD(e)?function(e,t){var r,n,i=eM(e),o=!i&&eO(e),a=!i&&!o&&ej(e),s=!i&&!o&&!a&&eF(e),u=i||o||a||s,l=u?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=l.length;for(var d in e)q.call(e,d)&&!(u&&("length"==d||a&&("offset"==d||"parent"==d)||s&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||(r=d,(n=null==(n=c)?9007199254740991:n)&&("number"==typeof r||E.test(r))&&r>-1&&r%1==0&&r<n)))&&l.push(d);return l}(e):function(e){if(r="function"==typeof(t=e&&e.constructor)&&t.prototype||B,e!==r)return et(e);var t,r,n=[];for(var i in Object(e))q.call(e,i)&&"constructor"!=i&&n.push(i);return n}(e)}(e),eM(e)?t:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(t,eT(e))}function eE(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ek(e,t){var r=null==e?void 0:e[t];return!(!eN(r)||W&&W in r)&&(eD(r)?V:C).test(eP(r))?r:void 0}eg.prototype.clear=function(){this.__data__=es?es(null):{},this.size=0},eg.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},eg.prototype.get=function(e){var t=this.__data__;if(es){var r=t[e];return r===a?void 0:r}return q.call(t,e)?t[e]:void 0},eg.prototype.has=function(e){var t=this.__data__;return es?void 0!==t[e]:q.call(t,e)},eg.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=es&&void 0===t?a:t,this},em.prototype.clear=function(){this.__data__=[],this.size=0},em.prototype.delete=function(e){var t=this.__data__,r=ew(t,e);return!(r<0)&&(r==t.length-1?t.pop():Q.call(t,r,1),--this.size,!0)},em.prototype.get=function(e){var t=this.__data__,r=ew(t,e);return r<0?void 0:t[r][1]},em.prototype.has=function(e){return ew(this.__data__,e)>-1},em.prototype.set=function(e,t){var r=this.__data__,n=ew(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ev.prototype.clear=function(){this.size=0,this.__data__={hash:new eg,map:new(en||em),string:new eg}},ev.prototype.delete=function(e){var t=eE(this,e).delete(e);return this.size-=t?1:0,t},ev.prototype.get=function(e){return eE(this,e).get(e)},ev.prototype.has=function(e){return eE(this,e).has(e)},ev.prototype.set=function(e,t){var r=eE(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,a),this},ey.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.clear=function(){this.__data__=new em,this.size=0},eb.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},eb.prototype.get=function(e){return this.__data__.get(e)},eb.prototype.has=function(e){return this.__data__.has(e)},eb.prototype.set=function(e,t){var r=this.__data__;if(r instanceof em){var n=r.__data__;if(!en||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ev(n)}return r.set(e,t),this.size=r.size,this};var eT=J?function(e){return null==e?[]:function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o}(J(e=Object(e)),function(t){return K.call(e,t)})}:function(){return[]},eA=ex;function eP(e){if(null!=e){try{return H.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eI(e,t){return e===t||e!=e&&t!=t}(er&&eA(new er(new ArrayBuffer(1)))!=S||en&&eA(new en)!=h||ei&&eA(ei.resolve())!=v||eo&&eA(new eo)!=b||ea&&eA(new ea)!=x)&&(eA=function(e){var t=ex(e),r=t==m?e.constructor:void 0,n=r?eP(r):"";if(n)switch(n){case eu:return S;case el:return h;case ec:return v;case ed:return b;case ef:return x}return t});var eO=e_(function(){return arguments}())?e_:function(e){return eU(e)&&q.call(e,"callee")&&!K.call(e,"callee")},eM=Array.isArray,ej=ee||function(){return!1};function eD(e){if(!eN(e))return!1;var t=ex(e);return t==f||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eR(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function eN(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eU(e){return null!=e&&"object"==typeof e}var eF=R?function(e){return R(e)}:function(e){return eU(e)&&eR(e.length)&&!!k[ex(e)]};e.exports=function(e,t){return function e(t,r,n,i,o){return t===r||(null!=t&&null!=r&&(eU(t)||eU(r))?function(e,t,r,n,i,o){var a=eM(e),f=eM(t),v=a?u:eA
52(e),x=f?u:eA(t);v=v==s?m:v,x=x==s?m:x;var C=v==m,E=x==m,k=v==x;if(k&&ej(e)){if(!ej(t))return!1;a=!0,C=!1}if(k&&!C)return o||(o=new eb),a||eF(e)?eS(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch(r){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:if(e.byteLength!=t.byteLength||!o(new G(e),new G(t)))break;return!0;case l:case c:case p:return eI(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case w:return e==t+"";case h:var s=N;case b:var u=1&n;if(s||(s=U),e.size!=t.size&&!u)break;var f=a.get(e);if(f)return f==t;n|=2,a.set(e,t);var m=eS(s(e),s(t),n,i,o,a);return a.delete(e),m;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,v,r,n,i,o);if(!(1&r)){var T=C&&q.call(e,"__wrapped__"),A=E&&q.call(t,"__wrapped__");if(T||A){var P=T?e.value():e,I=A?t.value():t;return o||(o=new eb),i(P,I,r,n,o)}}return!!k&&(o||(o=new eb),function(e,t,r,n,i,o){var a=1&r,s=eC(e),u=s.length;if(u!=eC(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:q.call(t,c)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++l<u;){var p=e[c=s[l]],m=t[c];if(n)var v=a?n(m,p,c,t,e,o):n(p,m,c,e,t,o);if(!(void 0===v?p===m||i(p,m,r,n,o):v)){f=!1;break}h||(h="constructor"==c)}if(f&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,r,n,i,o))}(t,r,n,i,e,o):t!=t&&r!=r)}(e,t)}},62705:function(e,t,r){var n=r(55639).Symbol;e.exports=n},29932:function(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},62663:function(e){e.exports=function(e,t,r,n){var i=-1,o=null==e?0:e.length;for(n&&o&&(r=e[++i]);++i<o;)r=t(r,e[i],i,e);return r}},49029:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},44239:function(e,t,r){var n=r(62705),i=r(89607),o=r(2333),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?i(e):o(e)}},18674:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},80531:function(e,t,r){var n=r(62705),i=r(29932),o=r(1469),a=r(33448),s=1/0,u=n?n.prototype:void 0,l=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-s?"-0":r}},35393:function(e,t,r){var n=r(62663),i=r(53816),o=r(58748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return n(o(i(t).replace(a,"")),e,"")}}},69389:function(e,t,r){var n=r(18674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=n},31957:function(e,t,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},89607:function(e,t,r){var n=r(62705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[s]=r:delete e[s]),i}},93157:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},55639:function(e,t,r){var n=r(31957),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},2757:function(e){var t="\ud800-\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+o+"]",u="["+n+"]",l="[^"+t+o+"\\d+"+r+n+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+i+"]",h="(?:"+u+"|"+l+")",p="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",y="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+y+v+")*",w="(?:"+["["+r+"]",c,d].join("|")+")"+(y+v+b),x=RegExp([f+"?"+u+"+"+p+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+l+")+"+m+"(?="+[s,f+h,"$"].join("|")+")",f+"?"+h+"+"+p,f+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",w].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},53816:function(e,t,r){var n=r(69389),i=r(79833),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
527f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,n).replace(a,"")}},1469:function(e){var t=Array.isArray;e.exports=t},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,r){var n=r(44239),i=r(37005);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},21804:function(e,t,r){var n=r(35393)(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});e.exports=n},79833:function(e,t,r){var n=r(80531);e.exports=function(e){return null==e?"":n(e)}},58748:function(e,t,r){var n=r(49029),i=r(93157),o=r(79833),a=r(2757);e.exports=function(e,t,r){return(e=o(e),void 0===(t=r?void 0:t))?i(e)?a(e):n(e):e.match(t)||[]}},91373:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(67294);/**
53 * @license lucide-react v0.436.0 - ISC
54 *
55 * This source code is licensed under the ISC license.
56 * See the LICENSE file in the root directory of this source tree.
57 */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=(...e)=>e.filter((e,t,r)=>Boolean(e)&&r.indexOf(e)===t).join(" ");/**
58 * @license lucide-react v0.436.0 - ISC
59 *
60 * This source code is licensed under the ISC license.
61 * See the LICENSE file in the root directory of this source tree.
62 */var a={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"};/**
63 * @license lucide-react v0.436.0 - ISC
64 *
65 * This source code is licensed under the ISC license.
66 * See the LICENSE file in the root directory of this source tree.
67 */let s=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:l,...c},d)=>(0,n.createElement)("svg",{ref:d,...a,width:t,height:t,stroke:e,strokeWidth:i?24*Number(r)/Number(t):r,className:o("lucide",s),...c},[...l.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(u)?u:[u]])),u=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...a},u)=>(0,n.createElement)(s,{ref:u,iconNode:t,className:o(`lucide-${i(e)}`,r),...a}));return r.displayName=`${e}`,r}},76789:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91373);/**
68 * @license lucide-react v0.436.0 - ISC
69 *
70 * This source code is licensed under the ISC license.
71 * See the LICENSE file in the root directory of this source tree.
72 */let i=(0,n.Z)("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]])},8971:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91373);/**
73 * @license lucide-react v0.436.0 - ISC
74 *
75 * This source code is licensed under the ISC license.
76 * See the LICENSE file in the root directory of this source tree.
77 */let i=(0,n.Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},85594:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91373);/**
78 * @license lucide-react v0.436.0 - ISC
79 *
80 * This source code is licensed under the ISC license.
81 * See the LICENSE file in the root directory of this source tree.
82 */let i=(0,n.Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},61108:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91373);/**
83 * @license lucide-react v0.436.0 - ISC
84 *
85 * This source code is licensed under the ISC license.
86 * See the LICENSE file in the root directory of this source tree.
87 */let i=(0,n.Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])},56989:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91373);/**
88 * @license lucide-react v0.436.0 - ISC
89 *
90 * This source code is licensed under the ISC license.
91 * See the LICENSE file in the root directory of this source tree.
92 */let i=(0,n.Z)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},36316:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91373);/**
93 * @license lucide-react v0.436.0 - ISC
94 *
95 * This source code is licensed under the ISC license.
96 * See the LICENSE file in the root directory of this source tree.
97 */let i=(0,n.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},69539:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(91373);/**
98 * @license lucide-react v0.436.0 - ISC
99 *
100 * This source code is licensed under the ISC license.
101 * See the LICENSE file in the root directory of this source tree.
102 */let i=(0,n.Z)("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}
102],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]])},44343:function(e,t,r){e.exports=r(4210)},63144:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},83454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(77663)},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(58016)}])},72369:function(e,t,r){"use strict";var n=r(85893);r(67294);let i=e=>{let{color:t,hoverColor:r,width:i,height:o,strokeWidth:a,className:s}=e;return(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",id:"svg1",width:i,height:o,className:s,version:"1.1",viewBox:"0 0 256 256",children:(0,n.jsx)("g",{id:"g1",children:(0,n.jsx)("path",{id:"path1",style:{fill:t},stroke:"none",d:"M29 .333C13.96 3.467 1.536 15.204 0 31c-1.586 16.314 0 33.598 0 50v102c0 18.76-4.737 44.199 7.333 60 13.04 17.069 36.824 13 55.667 13h146c5.783 0 12.332.847 18-.333 15.04-3.134 27.464-14.871 29-30.667 1.586-16.314 0-33.598 0-50V73c0-18.76 4.737-44.199-7.333-60C235.627-4.069 211.843 0 193 0H47c-5.783 0-12.332-.847-18 .333M120 91l-7 19h12l-10 24 9 1c-.988 2.682-2.317 7.733-4.333 9.833-1.478 1.54-3.74 1.167-5.667 1.167-4.36 0-13.168 1.805-15.5-3-1.07-2.204.466-4.985 1.333-7 1.814-4.212 4.223-8.515 5.167-13-2.175 0-4.925.43-7-.333-7.779-2.86.874-15.365 2.667-19.667 1.258-3.021 2.756-9.585 5.5-11.5 3.852-2.69 9.716-.825 13.833-.5m-79 63c2.75 0 6.837.817 8.5-2 1.769-2.998.5-9.59.5-13v-33c0-3.093-1.562-12.536 1.167-14.5 2.244-1.616 11.666-1.274 12.666 1.5 1.638 4.54.167 12.162.167 17v32c0 5.484.95 11.865-1.333 17-2.177 4.899-12.304 9.272-17.334 5.5-2.213-1.66-3.788-7.91-4.333-10.5m152-63v5c3.729 0 8.41-.763 12 .333 11.976 3.66 11 15.423 11 25.667 1.997 0 4.044-.156 6 .333 11.493 2.874 10 14.364 10 23.667 0 4.956.93 10.822-2.333 15-3.596 4.602-9.482 4-14.667 4-1.612 0-4.263.51-5.667-.5-2.623-1.889-3.781-7.505-4.333-10.5 3.287 0 9.218 1.125 11.833-1.333 3.083-2.898 1.821-14.232-1.833-16.167-1.937-1.025-4.887-.5-7-.5h-15v29h-14v-29h-14v-14h14v-12h-9V96h9v-5zm-32 5v14h-8v42h13v13h-46l5.333-12.5L138 152v-42h-8V96zm57 14c0-2.842-.516-6.259.333-9 3.345-10.793 19.616-2.094 11.5 6.833-.922 1.015-2.544 1.511-3.833 1.834-2.56.64-5.38.333-8 .333m-177 0-4.167 37L30 159l-6-16 3-33zm46 0 3 33-6 15h-2c-5.367-8.498-6.053-17.263-7-27-.672-6.914-2-14.04-2-21zm106 0v12h9v-12zm-75 42-5 13H91l5.333-13.5 7.667.167Z"})})})};t.Z=i},11871:function(e,t,r){"use strict";r.r(t);var n=r(85893),i=r(12440);let o=e=>{let{label:t,onClick:r,fullWidth:o=!1,disabled:a=!1,className:s,size:u="default",style:l,color:c="transparent",isRounded:d=!0,isLoading:f=!1,children:h,download:p,type:m="button"}=e,v=["flex","justify-center","items-center","border-2","ease-in-out","duration-300"];o&&v.push("w-full"),d&&v.push("rounded-lg"),"extraSmall"===u&&v.push("px-2 py-1 text-xs"),"small"===u&&v.push("px-3 py-1"),"default"===u&&v.push("px-5 py-3"),"large"===u&&v.push("px-5 py-3"),"extraLarge"===u&&v.push("px-5 py-5 text-lg"),"dotted"===l&&v.push("border-dashed"),"transparent"===c&&v.push("border-black","hover:bg-baby-yellow-900"),"yellow"===c&&v.push("text-black","border-baby-yellow-900","bg-baby-yellow-900","hover:bg-black","hover:border-black","hover:text-baby-yellow-900"),"white"===c&&(v.push("text-black","bg-white","hover:bg-black","hover:text-baby-yellow-900"),v=v.filter(e=>!e.includes("border"))),"black"===c&&(v.push("text-white","bg-black","hover:bg-baby-yellow-900","hover:text-black"),v=v.filter(e=>!e.includes("border"))),"red"===c&&(v.push("text-white","bg-baby-red-900","hover:bg-red-600 hover:text-white"),v=v.filter(e=>!e.includes("border"))),(a||f)&&((v=v.filter(e=>!e.includes("border"))).push("text-slate-500","border-2","border-slate-300","bg-gray-200"),v=v.filter(e=>!e.includes("hover"))),v.push(s?" ".concat(s):"");let y=v.join(" ");return(0,n.jsx)("button",{className:y,onClick:r,disabled:a||f,type:m,children:f?(0,n.jsx)(i.g4,{height:"25",width:"25",color:"#FF8C6E"}):h||(0,n.jsx)("span",{className:"font-bold",children:t})})};t.default=o},50626:function(e,t,r){"use strict";var n=r(85893),i=r(79352);let o=e=>{let{data:t,button:r,open:o,setOpen:a,fullWidth:s=!1}
102=e;return o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"fixed left-1/2 top-1/2 -translate-y-1/2 -translate-x-1/2 mx-auto bg-black/70 backdrop-blur-md z-[99999] w-full h-full shadow-lg",onClick:()=>{a(!1)}}),(0,n.jsxs)("div",{className:"fixed left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 bg-white z-[99999] w-full ".concat(s?"max-w-[1400px]":"max-w-[340px] sm:max-w-[440px] md:max-w-[600px] lg:max-w-[800px]"," shadow-lg rounded-md overflow-hidden"),children:[(0,n.jsx)("div",{className:"text-lg font-semibold leading-6 text-gray-900 flex justify-between items-center pt-3 px-3 pb-2 border-b",children:(0,n.jsx)("div",{className:"table cursor-pointer sm:mx-0 sm:h-10 sm:w-10",onClick:()=>a(!1),children:(0,n.jsx)(i.qFC,{className:"h-8 w-8 text-black","aria-hidden":"true"})})}),(0,n.jsx)("div",{className:"".concat(s?"max-h-[85dvh]":"max-h-[420px]"," overflow-y-scroll hover:overscroll-contain"),children:t}),(0,n.jsx)("div",{className:"bg-gray-50 px-4 py-3 flex sm:px-6 gap-3 justify-between",children:r?r&&r.props&&r.props.children?(0,n.jsx)(n.Fragment,{children:r}):(0,n.jsx)("button",{type:"button",className:"rounded-md bg-black px-6 py-3 text-sm ml-auto font-semibold text-white shadow-sm hover:bg-baby-yellow-900 hover:text-black",onClick:()=>{a(!1)},children:"Close"}):null})]})]}):null};t.Z=o},78216:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(85893),i=r(9008),o=r.n(i),a=r(11163),s=JSON.parse('{"default":{"metaTitle":"TCE Baby","metaDescription":"Wherever you are in your pregnancy or parenthood journey, TCE Baby Expo to carry you through this challenging yet rewarding times - whether with our hand picked brands and trusted products from around the world at unbeatable prices, expect advice or simply gain clearer insights on parenting with us at TCE Baby Expo.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"home":{"metaTitle":"TCE Baby","metaDescription":"Wherever you are in your pregnancy or parenthood journey, TCE Baby Expo to carry you through this challenging yet rewarding times - whether with our hand picked brands and trusted products from around the world at unbeatable prices, expect advice or simply gain clearer insights on parenting with us at TCE Baby Expo.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"about-us":{"metaTitle":"TCE Baby | About Us","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"account":{"metaTitle":"TCE Baby | Account","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"articles":{"metaTitle":"TCE Baby | Articles","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"brands":{"metaTitle":"TCE Baby | Brands","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"career-opportunity":{"metaTitle":"TCE Baby | Career Opportunity","metaDescription":"Wherever you are in y
102our pregnancy or parenthood journey, TCE Baby Expo to carry you through this challenging yet rewarding times - whether with our hand picked brands and trusted products from around the world at unbeatable prices, expect advice or simply gain clearer insights on parenting with us at TCE Baby Expo.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"exhibitors":{"metaTitle":"TCE Baby | Exhibitors","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"expo":{"metaTitle":"TCE Baby | Expo","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"expo/directory":{"metaTitle":"TCE Baby |  Expo Map","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"expo/yhello-rewards":{"metaTitle":"TCE Baby | Yhello Rewards","metaDescription":"As parents, our child is the most precious gift and who doesn\'t want the BEST for their child! #TrustUsWithYourBaby and get all your baby\'s essentials from all of our Top Trusted Brands, only at TCE Baby\xae Expo!","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"expo/starbuy":{"metaTitle":"TCE Baby | Expo Star Buy","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"get-in-touch":{"metaTitle":"TCE Baby | Get in Touch","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"media":{"metaTitle":"TCE Baby | Media","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"moments":{"metaTitle":"TCE Baby | Moments","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"privacy-policy":{"metaTitle":"TCE Baby | Privacy Policy","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"products":{"metaTitle":"TCE Baby | Products","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"sign-in":{"metaTitle":"TCE Baby | Login","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"sign-up":{"metaTitle":"TCE Baby | Sign Up","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"terms-of-use":{"metaTitle":"TCE Baby | Terms of Use","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"},"wishlist":{"metaTitle":"TCE Baby | My Wishlist","metaDescription":"Change is a constant, and having a child today is like an adventure of sorts, where we constantly adapt to the ever-changing needs and ervironment.","metaKeywords":"Baby, TCE,TCE Baby, 06-09 JULY 2023, Mid Valley Exhibition Centre, 06-09 JUL 2023, 02 MAR 2023, MVEC, 05 MAR 2023, 02 03 04 05 3 2023, 02 05 2023, mar, Expo, Malaysia Expo, MVEC, Baby Products,Star Buy, Baby Products Promotion"}}');let u=e=>{let{title:t=null,descriptions:r=null,keywords:i=null,image:u=null,children:l}=e,c=(0,a.useRouter)(),d=c.pathname,f=d.split("?")[0].substring(1),h=s.default,p=s[f],m=!!p,v=t&&t.length>0?t+" | TCE Baby":m?p.metaTitle:h.metaTitle,y=r&&r.length>0?r:m?p.metaDescription:h.metaDescription,b=i&&i.length>0?i:m?p.metaKeywords:h.metaKeywords;return(0,n.jsxs)(o(),{children:[(0,n.jsx)("title",{children:v}),(0,n.jsx)("meta",{name:"description",content:y}),(0,n.jsx)("meta",{name:"keywords",content:b}),(0,n.jsx)("meta",{name:"og:title",content:v}),(0,n.jsx)("meta",{name:"og:description",content:y}),(0,n.jsx)("meta",{name:"og:image",content:u||"/afro-baby-yellow.png"}),l||null]})};var l=u},46061:function(e,t,r){"use strict";var n=r(85893),i=r(4298),o=r.n(i);let a=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o(),{src:"https://unpkg.com/html5-qrcode",type:"text/javascript"}),(0,n.jsx)(o(),{id:"google-tag-manager",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n      (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n      new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n      j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;
102j.src=\n      'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n      })(window,document,'script','dataLayer','".concat("GTM-5JK4267","');\n    ")}}),(0,n.jsx)(o(),{async:!0,type:"text/javascript",src:"https://analytics.tiktok.com/i18n/pixel/static/main.MWI2MzlmMWJmNA.js","data-id":"C8NCBMAGCKHF9B9N6430",strategy:"beforeInteractive"}),(0,n.jsx)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:"window.smartlook||(function(d) {\n        var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];\n        var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';\n        c.charset='utf-8';c.src='https://web-sdk.smartlook.com/recorder.js';h.appendChild(c);\n        })(document);\n        smartlook('init', '3f4e5efec11d4f9592273cc2a1f84306685948c8', { region: 'eu' });"}})]});t.Z=a},39802:function(e,t,r){"use strict";r.d(t,{$:function(){return c},l:function(){return l}});var n=r(85893),i=r(85594),o=r(61108),a=r(56989),s=r(67294);let u=(0,s.createContext)(void 0),l=e=>{let{children:t}=e,[r,l]=(0,s.useState)(!1),[c,d]=(0,s.useState)(""),[f,h]=(0,s.useState)("info"),p=(0,s.useRef)(),m=(0,s.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";d(e),h(t),l(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>l(!1),1500)},[]),v=(0,s.useCallback)(()=>{l(!1),p.current&&clearTimeout(p.current)},[]);return(0,s.useEffect)(()=>{let e=e=>{r&&e.target instanceof Element&&!e.target.closest(".alert-content")&&v()};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[r,v]),(0,n.jsxs)(u.Provider,{value:{showAlert:m,hideAlert:v},children:[t,r&&(0,n.jsx)("div",{className:"fixed top-0 left-0 bg-black/30 z-[99999999] flex justify-center w-screen h-screen",children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsx)("div",{className:"p-6 w-96 bg-black/80 aspect-video alert-content",children:(0,n.jsxs)("div",{className:"flex flex-col gap-4 justify-center items-center w-full h-full",children:["success"===f&&(0,n.jsx)(i.Z,{className:"w-12 h-12 text-green-500"}),"error"===f&&(0,n.jsx)(o.Z,{className:"w-12 h-12 text-red-500"}),"info"===f&&(0,n.jsx)(a.Z,{className:"w-12 h-12 text-blue-500"}),(0,n.jsx)("p",{className:"font-semibold text-center text-white",children:c})]})})})})]})},c=()=>{let e=(0,s.useContext)(u);if(void 0===e)throw Error("useOverlayAlert must be used within an OverlayAlertProvider");return e}},61738:function(e,t,r){"use strict";r.d(t,{J:function(){return o}});var n=r(85893),i=r(67294);let o=(0,i.createContext)(null),a=e=>{let{children:t}=e,[r,a]=(0,i.useState)([]),[s,u]=(0,i.useState)(!1),l=()=>{a([])},c=async()=>{try{let e=await fetch("/api/expo/list/latest"),t=await e.json();if(200===e.status||304===e.status)a(t),u(!1);else throw u(!0),Error("Expo Not Found")}catch(e){u(!0)}};return(0,i.useEffect)(()=>{c()},[]),(0,n.jsx)(o.Provider,{value:{allLatestExpo:r,setAllLatestExpo:a,populateAllExpo:c,isHasExpoError:!!s,reset:l},children:t})};t.Z=a},77916:function(e,t,r){"use strict";r.d(t,{O1:function(){return u},dG:function(){return s}});var n=r(85893),i=r(67294),o=r(97719);let a=(0,i.createContext)(null),s=()=>{let e=(0,i.useContext)(a);if(!e)throw Error("useFeatureFlagContext must be used within a FeatureFlagProvider");return e},u=e=>{let{children:t}=e,{data:r,isLoading:s,error:u,refetch:l}=o.SX.businesses.settings.getAllFeatureFlags.useQuery(void 0,{staleTime:3e4,gcTime:3e5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:(e,t)=>{if(e>=2)return!1;if(t&&"object"==typeof t&&"status"in t){let e=t.status;return e>=500}return!1}}),c=(0,i.useMemo)(()=>{if(!r)return{};let e={},t=t=>{t.forEach(t=>{var r,n,i;let o=null!==(n=null!==(r=null==t?void 0:t.name)&&void 0!==r?r:null==t?void 0:t.key)&&void 0!==n?n:null==t?void 0:t.flagName,a=null!==(i=null==t?void 0:t.enabled)&&void 0!==i?i:null==t?void 0:t.value;"string"==typeof o&&(e[o]=Boolean(a))})};if(Array.isArray(r))t(r);else if("object"==typeof r){let n=r.flags;Array.isArray(n)?t(n):Object.entries(r).forEach(t=>{let[r,n]=t;"string"==typeof r&&(e[r]=Boolean(n))})}return e},[r]),d=(0,i.useMemo)(()=>({flags:c,isLoading:s,error:(null==u?void 0:u.message)||null,refresh:l}),[c,s,u,l]);return(0,n.jsx)(a.Provider,{value:d,children:t})}},98420:function(e,t,r){"use strict";r.d(t,{S:function(){return h},Z:function(){return m}});var n=r(85893),i=r(67294),o=r(20490),a=r(48075),s=r(19588),u=r(11163),l=r(86310),c=r(89532),d=r(97719);let f=()=>{let e=(0,i.useRef)(),t=(0,i.useRef)(0),r=(0,i.useCallback)(async()=>{try{let i=await a.g.currentAuthenticatedUser().catch(()=>null);if(!i){e.current&&(clearTimeout(e.current),e.current=void 0);return}let o=await a.g.currentSession(),s=1e3*o.getAccessToken().getExpiration(),u=Date.now(),l=s-u-3e5;e.current&&clearTimeout(e.current),l<=0?(await (0,c.dx)(),t.current=0,r()):e.current=setTimeout(async()=>{try{await (0,c.dx)(),t.current=0,r()}catch(e){n()}},l)}catch(e){n()}},[]),n=(0,i.useCallback)(()=>{t.current<3?(t.current+=1,setTimeout(()=>{r()},5e3)):a.g.signOut().catch(console.error)},[r]);(0,i.useEffect)(()=>{r();let n=o.X.listen("auth",n=>{let{payload:{event:i}}=n;"signIn"===i?(t.current=0,r()):"signOut"===i&&e.current&&(clearTimeout(e.current),e.current=void 0)});return()=>{e.current&&clearTimeout(e.current),n()}},[r])},h=(0,i.createContext)(null),p=e=>{let{children:t}=e;(0,u.useRouter)();let r=d.SX.useUtils(),[p,m]=(0,i.useState)(null),[v,y]=(0,i.useState)(null),[b,w]=(0,i.useState)(null),[x,_]=(0,i.useState)(null),[S,C]=(0,i.useState)({dis
102playName:"",email:"",password:""}),[E,k]=(0,i.useState)([]),[T,A]=(0,i.useState)(0),[P,I]=(0,i.useState)(!1),[O,M]=(0,i.useState)(!1),j=(0,i.useRef)(!1);f();let D=async()=>{await q().then(async e=>{e&&(await z(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"login",user:e.id}))})};(0,i.useEffect)(()=>{j.current||D();let e=o.X.listen("auth",W);return()=>e()},[]);let R=()=>{M(!1),I(!0),m(null),y(null),C({displayName:"",email:"",password:""}),j.current=!1},N=async()=>{C({displayName:"",email:"",password:""})},U=async e=>{let{profile:t,jwtToken:r=null}=e;M(!0),I(!0),m(t),j.current=!0},F=async e=>{try{let t=await fetch("/api/user/get/profile",{method:"GET",headers:{"x-jwt-token":e},next:{revalidate:0}});if(200===t.status||304===t.status)return await t.json();return await a.g.signOut()}catch(e){return await a.g.signOut()}},L=async e=>{C(e)},B=async e=>{let{selectedExpoId:t=""}=e;try{let e=await (0,c.rS)(),r=[];if(t&&t.length>0){let n=await fetch("/api/shopping/item-list?expoId=".concat(t),{method:"GET",headers:{"x-jwt-token":e},next:{revalidate:0}}),i=await n.json();k(i),r=i}else r=[];return r}catch(e){return await a.g.signOut()}},z=async()=>{try{let e=await (0,c.rS)(),t=await fetch("/api/shopping/item-count",{method:"GET",headers:{"x-jwt-token":e},next:{revalidate:0}}),r=await t.json(),{count:n}=r;return(200===t.status||304===t.status)&&A(n),n}catch(e){return await a.g.signOut()}},H=async()=>{try{let e=await r.users.profiles.myDetail.fetch();return y(e),e}catch(e){}},q=async()=>{try{let e=await (0,c.rS)(),t=await F(e);t&&s.hotjar.initialized()&&s.hotjar.identify("USER_ID",{id:t.id});let n=await r.users.profiles.myDetail.fetch();return y(n),await U({profile:t}),t}catch(e){return await a.g.signOut()}},W=async e=>{let{payload:{event:t,data:r}}=e;switch(t){case"signIn":await N(),await q().then(async e=>{(0,l.f)({event:"login",user:e.id})}),await z();break;case"signOut":R()}};return(0,n.jsx)(h.Provider,{value:{userPayload:S,hydrateUserPayload:L,resetUserPayload:N,user:p,myDetail:v,isAuth:O,setIsAuth:M,isUserReady:P,returnHistory:x,shoppingItem:E,setShoppingItem:k,shoppingItemCount:T,setShoppingItemCount:A,hydrateUser:q,hydrateMyDetail:H,hydrateShoppingItem:B,hydrateShoppingItemCount:z,setUser:m,setMyDetail:y,setReturnHistory:_,fetchDBProfile:F,session:b,setSession:w},children:t})};var m=p},85459:function(e,t,r){"use strict";r.d(t,{bI:function(){return d},f9:function(){return u},wk:function(){return c},yt:function(){return h}});var n=r(15838);let i=["campaign","affiliate"],o="campaign-attribution",a=e=>Array.isArray(e)?e[0]:"string"==typeof e?e:void 0,s=e=>{try{return decodeURIComponent(e)}catch(t){return e}},u=e=>{if(!e)return;let t=s(e);for(let e of i){var r;let n=t.match(RegExp("(?:^|[?&])".concat(e,"=([^&#]*)"),"i")),i=null==n?void 0:null===(r=n[1])||void 0===r?void 0:r.trim();if(!i)continue;let o=s(i).trim();if(o)return o}},l=e=>{if("string"!=typeof e)return;let t=e.trim();if(t&&!(t.length>128)){for(let e=0;e<t.length;e++){let r=t.charCodeAt(e);if(r<=31||127===r)return}if(!(t.startsWith("$")||t.includes(".$")||t.includes("${")))return t}},c=()=>{try{n.EN.removeItem(o)}catch(e){return}},d=e=>{let t=l(e);if(t)try{n.EN.setItem(o,JSON.stringify({code:t,capturedAt:Date.now()}))}catch(e){return}},f=()=>{let e,t=null;try{t=n.EN.getItem(o)}catch(e){return}if(!t)return;try{e=JSON.parse(t)}catch(e){c();return}let r=l(null==e?void 0:e.code),i=null==e?void 0:e.capturedAt;if(!r||"number"!=typeof i||Date.now()-i>2592e6){c();return}return r},h=(e,t)=>{var r;let n=u(i.map(t=>"".concat(t,"=").concat(null!==(r=a(e[t]))&&void 0!==r?r:"")).join("&"));if(n)return n;let o=u(a(e.returnUrl));if(o)return o;let s=u(t);if(s)return s;{let e=u(window.location.href);if(e)return e}let l=f();if(l)return l}},89532:function(e,t,r){"use strict";r.d(t,{GS:function(){return s},dx:function(){return o},rS:function(){return a}});var n=r(48075),i=r(89153);let o=async()=>{try{let e=await n.g.currentAuthenticatedUser(),t=await n.g.currentSession(),r=await new Promise((r,n)=>{e.refreshSession(t.refreshToken,(e,t)=>{r(t)})});if(!r)return null;return r}catch(e){return null}},a=async()=>{var e;let t=await n.g.currentSession(),r=(null==t?void 0:null===(e=t.accessToken)||void 0===e?void 0:e.jwtToken)||null;return r},s=async e=>{let{accessToken:t,refreshToken:r,idToken:o,cognitoSub:a}=e;if(!t||!r||!o)throw Error("Missing tokens");try{let{userPoolId:e,userPoolWebClientId:s}=n.g.configure(),u=new i.MZ({IdToken:new i.xk({IdToken:o}),AccessToken:new i.ZA({AccessToken:t}),RefreshToken:new i.bR({RefreshToken:r})}),l=new i.AM({UserPoolId:e,ClientId:s}),c=new i.ws({Username:a,Pool:l,Storage:new i.eR({path:"/",expires:365,secure:!0,sameSite:"lax"})});if(!c)throw Error("No current user found");c.setSignInUserSession(u)}catch(e){throw Error("Failed to set Amplify session: ".concat(e.message||e))}}},97533:function(e,t,r){"use strict";r.d(t,{ur:function(){return _},us:function(){return w},OB:function(){return b},OD:function(){return d},by:function(){return v},Ju:function(){return u},dK:function(){return m},pz:function(){return h},P4:function(){return c},mc:function(){return y},hP:function(){return p},uo:function(){return x}});var n=r(19013),i=r(13882),o=r(69599),a=r(34117);r(67294);let s={"01":"January","02":"February","03":"March","04":"April","05":"May","06":"June","07":"July","08":"August","09":"September",10:"October",11:"November",12:"December"},u=e=>{let t=e[0],r=e[e.length-1],n=t.date.split("-")[2],i=r.date.split("-")[2],o=s[r.date.split("-")[1]],a=r.date.split("-")[0];return"".concat(n," - ").concat(i," ").concat(o," ").concat(a)},l=e=>((e=e.toString().match(/^([01]\d|2[0-3])(:)([0-5]\d)(:[0-5]\d)?$/)||[e]).length>1&&((e=e.slice(1))[5]=12>+e[0]?" AM":" PM",e[0]=+e[0]%12||12),e.join("")),c=e=>{let t=e[0].startTime,r=e[0].endTime,n=l(t),i=l(r);return"".concat(n," - ").concat(i)},d=(e,t)=>{let r=e[t?e.length-1:0],n=t?r.endTime:r.startTime,i=r.date+"T"+n+":00",o=new Date(i);return o.getTime()},f=e=>{if(""===e||"home"===e)return"";let t=e.split(" ");return t.map(e=>e[0].toUpperCase()+e.substring(1)).join(" ")},h=e=>{switch(e){case"account":return"My Account";case"about-us":return"About Us";case"career-opportunity":return"Career Opportunity";case"terms-of-use":return"Terms of Use";case"get-in-touch":return"Get in Touch";case"privacy-policy":return"Privacy Policy";
102case"expo/starbuy":return"Star Buy";case"wishlist":return"My Wishlist";default:return f(e)}},p=e=>{let t=new Date().getFullYear()+1,{start:r=1920,end:n=t}=e,i=[];for(var o=r;o<=n;o++){let e=o.toString();i.push({value:e,label:e})}return i},m=e=>{let t=new Date,r=t.getFullYear(),n=t.getMonth()+1,{year:i=r,truncated:o=!1}=e,a=[],u=Number(i)<=Number(r);for(let e in s){let t=Number(e)+1<=n,r=o&&t&&u;if(r)continue;let i=10>Number(e)?"0"+Number(e).toString():Number(e).toString(),l=s[e];a.push({value:i,label:l})}return a.sort((e,t)=>e.value-t.value)},v=e=>{let{year:t,month:r,truncated:o=!1}=e,a=new Date,s=a.getFullYear(),u=a.getMonth(),l=a.getDate(),c=Number(t)<=s,d=Number(r)-1<=u,f=o&&c&&d?l:1,h=function(e){(0,i.Z)(1,arguments);var t=(0,n.Z)(e),r=t.getFullYear(),o=t.getMonth(),a=new Date(0);return a.setFullYear(r,o+1,0),a.setHours(0,0,0,0),a.getDate()}(new Date(Number(t),Number(r)-1)),p=[];for(var m=f;m<=h;m++){let e=m<10?"0"+m.toString():m.toString();p.push({value:e,label:e})}return p.sort((e,t)=>e.value-t.value)},y=()=>{let e=new Date,t=e.getFullYear();t.toString();let r=Number(e.getMonth())+1,n=r<10?"0"+r.toString():r.toString(),i=e.getDate(),o=i<10?"0"+i.toString():i.toString();return t+"-"+n+"-"+o},b=e=>{let[t,r,n]=e.split(/-/g);return"".concat(n,"/").concat(r,"/").concat(t)},w=e=>{let t=(0,o.Z)(e,"Asia/Kuala_Lumpur"),r=(0,a.Z)(new Date(t),"dd/LL/yyyy"),n=r.split("/")[1],i=r.split("/")[0],u=s[n],l=r.split("/")[2];return"".concat(i," ").concat(u," ").concat(l)},x=e=>{let t=e.length>=8,r=/\d/.test(e),n=/[a-z]/.test(e);return{hasMinimumLength:t,hasNumber:r,hasLowercase:n,isValid:!!(t&&r&&n)}},_=e=>{if(null===e||""===e)return!1;e=e.toString();let t=e.replace(/(<([^>]+)>)/gi,"").trim(),r=e.search("iframe"),n=!!(t&&t.length>0);return n||!!(r&&r>0)}},88146:function(e,t,r){"use strict";function n(e){if(!e)return null;if("number"==typeof e)return Number.isFinite(e)?e:null;if(e instanceof Date){let t=e.getTime();return Number.isFinite(t)?t:null}if("string"==typeof e){let t=new Date(e).getTime();return Number.isFinite(t)?t:null}return null}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,r=null==e?void 0:e.membershipType,i=!!(r&&(r.title&&r.title.trim().length>0||r.isPriorityEntry));if(!i)return!1;let o=n(t);if(null===o)return!1;let a=n(null==e?void 0:e.membershipExpiryDate);if(null===a)return!1;let s=n(null==e?void 0:e.membershipStartDate);return(null===s||!(o<s))&&o<=a}function o(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!i(e,r))return null;let n=null==e?void 0:null===(t=e.membershipType)||void 0===t?void 0:t.title;return n&&n.trim().length>0?n:null}function a(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return!!i(e,r)&&!!(null==e?void 0:null===(t=e.membershipType)||void 0===t?void 0:t.isPriorityEntry)}r.d(t,{K7:function(){return i},U8:function(){return a},Vv:function(){return o}})},89653:function(e,t,r){"use strict";r.d(t,{Ce:function(){return c},dD:function(){return u},Av:function(){return l}});var n=r(87462),i=r(67294),o=r(41601),a=r(93869);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,o.Z)(),s=(0,a.Z)({theme:r,name:"MuiUseMediaQuery",props:{}}),u="function"==typeof e?e(r):e;u=u.replace(/^@media( ?)/m,"");var l="undefined"!=typeof window&&void 0!==window.matchMedia,c=(0,n.Z)({},s,t),d=c.defaultMatches,f=void 0!==d&&d,h=c.matchMedia,p=void 0===h?l?window.matchMedia:null:h,m=c.noSsr,v=void 0!==m&&m,y=c.ssrMatchMedia,b=void 0===y?null:y,w=i.useState(function(){return v&&l?p(u).matches:b?b(u).matches:f}),x=w[0],_=w[1];return i.useEffect(function(){var e=!0;if(l){var t=p(u),r=function(){e&&_(t.matches)};return r(),t.addListener(r),function(){e=!1,t.removeListener(r)}}},[u,p,l]),x}let u=()=>{let e=s("(max-width:575px)");return!!e},l=()=>{let e=s("(min-width:576px) and (max-width:890px)");return!!e},c=()=>{let e=s("(min-width:891px)");return!!e}},65147:function(e,t,r){"use strict";var n=r(11163),i=r(67294),o=r(77945);let a=["/sign-in","/sign-up","/forget-password","/verify","/journey"],s=()=>{let e=(0,n.useRouter)(),{asPath:t,pathname:r}=e,{returnUrl:s,setReturnUrl:u,clearReturnUrl:l}=(0,o.Z)(),c=n=>{a.includes(r)||u(t),e.push({pathname:n,query:{returnUrl:t}})},d=()=>c("/sign-in"),f=()=>c("/sign-up"),h=()=>c("/forget-password"),p=()=>c("/verify"),m=()=>c("/journey"),v=()=>{l(),e.replace(s||"/")};return(0,i.useEffect)(()=>{a.includes(r)||l()},[r]),{redirectToSignIn:d,redirectToSignUp:f,redirectToForgetPassword:h,redirectToVerifyEmail:p,handleRedirectAfterAuth:v,redirectToJourney:m}};t.Z=s},90360:function(e,t,r){"use strict";r.d(t,{N3:function(){return o},kb:function(){return a}});var n=r(67294),i=r(77916);function o(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{defaultValue:o=!1}=n,{flags:a,isLoading:s}=(0,i.dG)();if(s)return o;let u=null!==(t=a[e])&&void 0!==t?t:o;return n.trackUsage&&!s&&r.e(5299).then(r.bind(r,35299)).then(t=>{let{analyticsUtils:r}=t;r.trackFlagUsage(e,u)}),u}function a(e){let{flags:t,isLoading:r,error:o}=(0,i.dG)(),a=(0,n.useMemo)(()=>{let r={};for(let n of e)r[n]=Boolean(t[n]);return r},[t,e]),s=(0,n.useMemo)(()=>e.every(e=>a[e]),[a,e]),u=(0,n.useMemo)(()=>e.some(e=>a[e]),[a,e]),l=(0,n.useMemo)(()=>e.filter(e=>a[e]).length,[a,e]);return{flags:a,isLoading:r,error:o,allEnabled:s,anyEnabled:u,enabledCount:l}}},67482:function(e,t,r){"use strict";r.d(t,{E:function(){return a}});var n=r(98420),i=r(89532),o=r(67294);let a=()=>{let{user:e}=(0,o.useContext)(n.S),[t,r]=(0,o.useState)({currency:"myr",originalAmount:0,points:0}),[a,s]=(0,o.useState)(!0),[u,l]=(0,o.useState)(!1),c=async()=>{try{let e=await (0,i.rS)(),t=await fetch("/api/loyalty/get/user-summary",{method:"GET",headers:{"x-jwt-token":e},next:{revalidate:0}}),{balanceAmount:n}=await t.json();200===t.status||304===t.status?(r(n),l(!1)):l(!0)}catch(e){l(!0)}finally{s(!1)}};return(0,o.useEffect)(()=>(e&&c(),()=>{r({currency:"myr",originalAmount:0,points:0})}),[e]),{isUserSummaryReady:!1===a&&!!t,isHasUserSummaryError:u,userBalanceAmount:t,computeUserSummary:c}}},21508:function(e,t,r){"use strict";r.d(t,{d:function(){return o}});var n=r(67294),i=r(90360);function o(){let{flags:e}=(0,i.kb)(["digitalVoucherWebState","digitalVoucherState","giftCardWebState","giftCardState"]),t=e.digitalVoucherWebState,r=e.digitalVoucherState,o=e.giftCardWebState,a=e.giftCardState,s=(0,n.useMemo)(()=>[{label:"My Profile",slug:"profile",path:"/account?page=profile"},{label:"My Family",slug:"family",path:"/account?page=family"},{label:"My Orders",slug:"my-purchase",path:"/account/orders"},...t&&r?[{label:"My Vouchers",slug:"vouchers",path:"/account/vouchers"}]:[],...o&&a?[{label:"My Yhello Cards",slug:"gift-cards",path:"/account/gift-cards"}]:[],{label:"My Addresses",slug:"addresses",path:"/account/addresses"},{label:"My Rewards",slug:"rewards",path:"/my-rewards?tab=summary"},{label:"Transactions",slug:"transactions",path:"/account?page=transactions"},{label:"Followed Brands",slug:"followed-brands",path:"/account/followed-brands"},{label:"Expo Check-in",slug:"expo-check-in",path:"/account?page=ex
102po-check-in"},{label:"Inbox",slug:"inbox",path:"/account/inbox"},{label:"Settings",slug:"settings",path:"/account?page=settings"}],[t,r,o,a]),u=(0,n.useMemo)(()=>[{label:"My Profile",slug:"profile",path:"/account?page=profile"},{label:"My Family",slug:"family",path:"/account?page=family"},{label:"My Orders",slug:"my-purchase",path:"/account/orders"},...t&&r?[{label:"My Vouchers",slug:"vouchers",path:"/account/vouchers"}]:[],...o&&a?[{label:"My Yhello Cards",slug:"gift-cards",path:"/account/gift-cards"}]:[],{label:"My Addresses",slug:"addresses",path:"/account/addresses"},{label:"Transactions",slug:"transactions",path:"/account?page=transactions"},{label:"Followed Brands",slug:"followed-brands",path:"/account/followed-brands"},{label:"Expo Check-in",slug:"check-in",path:"/account?page=expo-check-in"},{label:"Inbox",slug:"inbox",path:"/account/inbox"},{label:"Settings",slug:"settings",path:"/account?page=settings"}],[t,r,o,a]),l=(0,n.useMemo)(()=>[{label:"My Rewards",slug:"summary",path:"/my-rewards?tab=summary"}],[]);return{userLinks:s,menuLinks:u,rewardsLinks:l,isDigitalVoucherEnabled:!!t,isDigitalVoucherStateEnabled:!!r,isGiftCardEnabled:!!o,isGiftCardStateEnabled:!!a}}},9656:function(e,t,r){"use strict";var n=r(67294);let i="undefined"!=typeof document?document:{};t.Z=()=>{let e=(0,n.useRef)(),t=i.documentElement,{body:r}=i,o=()=>{r&&r.style&&!e.current&&(t.style.position="relative",t.style.overflow="hidden",r.style.position="relative",r.style.overflow="hidden",e.current=!0)},a=()=>{r&&r.style&&e.current&&(t.style.position="",t.style.overflow="",r.style.position="",r.style.overflow="",r.style.paddingRight="",e.current=!1)};return[o,a]}},86310:function(e,t,r){"use strict";r.d(t,{G:function(){return a},f:function(){return s}});var n=r(67294),i=r(11163),o=r(19588);let a=()=>{let e=(0,i.useRouter)(),[t,a]=(0,n.useState)(null),s=async()=>{let e=await r.e(1767).then(r.t.bind(r,51767,23)).then(e=>e.default);e.init("268896218544236"),a(e)},u=async e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"pageview",page:e}),t&&(null==t||t.pageView()),o.hotjar.initialized()&&o.hotjar.stateChange(e)};(0,n.useEffect)(()=>{s(),o.hotjar.initialize({id:Number("3514367"),sv:Number("6")})},[]),(0,n.useEffect)(()=>(e.events.on("routeChangeComplete",u),()=>e.events.off("routeChangeComplete",u)),[e.events,t])},s=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)}},36408:function(e,t,r){"use strict";r.d(t,{cn:function(){return J},xb:function(){return ee},zE:function(){return er},Or:function(){return et}});var n=r(90512);let i=e=>{let t=u(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e,i=e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),o(r,t)||s(e)},a=(e,t)=>{let i=r[e]||[];return t&&n[e]?[...i,...n[e]]:i};return{getClassGroupId:i,getConflictingClassGroupIds:a}},o=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),i=n?o(e.slice(1),n):void 0;if(i)return i;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},a=/^\[(.+)\]$/,s=e=>{if(a.test(e)){let t=a.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},u=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]},i=f(Object.entries(e.classGroups),r);return i.forEach(([e,r])=>
102{l(r,n,e,t)}),n},l=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){let n=""===e?t:c(t,e);n.classGroupId=r;return}if("function"==typeof e){if(d(e)){l(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([e,i])=>{l(i,c(t,e),r,n)})})},c=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},d=e=>e.isThemeGetter,f=(e,t)=>t?e.map(([e,r])=>{let n=r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e);return[e,n]}):e,h=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,o)=>{r.set(i,o),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}},p=e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,i=t[0],o=t.length,a=e=>{let r;let a=[],s=0,u=0;for(let l=0;l<e.length;l++){let c=e[l];if(0===s){if(c===i&&(n||e.slice(l,l+o)===t)){a.push(e.slice(u,l)),u=l+o;continue}if("/"===c){r=l;continue}}"["===c?s++:"]"===c&&s--}let l=0===a.length?e:e.substring(u),c=l.startsWith("!"),d=c?l.substring(1):l,f=r&&r>u?r-u:void 0;return{modifiers:a,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:f}};return r?e=>r({className:e,parseClassName:a}):a},m=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{let n="["===e[0];n?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},v=e=>({cache:h(e.cacheSize),parseClassName:p(e),...i(e)}),y=/\s+/,b=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(y),s="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{modifiers:u,hasImportantModifier:l,baseClassName:c,maybePostfixModifierPosition:d}=r(t),f=Boolean(d),h=n(f?c.substring(0,d):c);if(!h){if(!f||!(h=n(c))){s=t+(s.length>0?" "+s:s);continue}f=!1}let p=m(u).join(":"),v=l?p+"!":p,y=v+h;if(o.includes(y))continue;o.push(y);let b=i(h,f);for(let e=0;e<b.length;++e){let t=b[e];o.push(v+t)}s=t+(s.length>0?" "+s:s)}return s};function w(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=x(e))&&(n&&(n+=" "),n+=t);return n}let x=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=x(e[n]))&&(r&&(r+=" "),r+=t);return r},_=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},S=/^\[(?:([a-z-]+):)?(.+)\]$/i,C=/^\d+\/\d+$/,E=new Set(["px","full","screen"]),k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\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$/,A=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,O=e=>j(e)||E.has(e)||C.test(e),M=e=>V(e,"length",Y),j=e=>Boolean(e)&&!Number.isNaN(Number(e)),D=e=>V(e,"number",j),R=e=>Boolean(e)&&Number.isInteger(Number(e)),N=e=>e.endsWith("%")&&j(e.slice(0,-1)),U=e=>S.test(e),F=e=>k.test(e),L=new Set(["length","size","percentage"]),B=e=>V(e,L,Z),z=e=>V(e,"position",Z),H=new Set(["image","url"]),q=e=>V(e,H,K),W=e=>V(e,"",G),$=()=>!0,V=(e,t,r)=>{let n=S.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},Y=e=>T.test(e)&&!A.test(e),Z=()=>!1,G=e=>P.test(e),K=e=>I.test(e),Q=()=>{let e=_("colors"),t=_("spacing"),r=_("blur"),n=_("brightness"),i=_("borderColor"),o=_("borderRadius"),a=_("borderSpacing"),s=_("borderWidth"),u=_("contrast"),l=_("grayscale"),c=_("hueRotate"),d=_("invert"),f=_("gap"),h=_("gradientColorStops"),p=_("gradientColorStopPositions"),m=_("inset"),v=_("margin"),y=_("opacity"),b=_("padding"),w=_("saturate"),x=_("scale"),S=_("sepia"),C=_("skew"),E=_("space"),k=_("translate"),T=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",U,t],I=()=>[U,t],L=()=>["",O,M],H=()=>["auto",j,U],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Y=()=>["solid","dashed","dotted","double","none"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",U],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],X=()=>[j,U];return{cacheSize:500,separator:":",theme:{colors:[$],spacing:[O,M],blur:["none","",F,U],brightness:X(),borderColor:[e],borderRadius:["n
102one","","full",F,U],borderSpacing:I(),borderWidth:L(),contrast:X(),grayscale:K(),hueRotate:X(),invert:K(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[N,M],inset:P(),margin:P(),opacity:X(),padding:I(),saturate:X(),scale:X(),sepia:K(),skew:X(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",U]}],container:["container"],columns:[{columns:[F]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),U]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",R,U]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",U]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",R,U]}],"grid-cols":[{"grid-cols":[$]}],"col-start-end":[{col:["auto",{span:["full",R,U]},U]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[$]}],"row-start-end":[{row:["auto",{span:[R,U]},U]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",U]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",U]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",U,t]}],"min-w":[{"min-w":[U,t,"min","max","fit"]}],"max-w":[{"max-w":[U,t,"none","full","min","max","fit","prose",{screen:[F]},F]}],h:[{h:[U,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[U,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[U,t,"auto","min","max","fit"]}],"font-size":[{text:["base",F,M]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",D]}],"font-family":[{font:[$]}],"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",U]}],"line-clamp":[{"line-clamp":["none",j,D]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",O,U]}],"list-image":[{"list-image":["none",U]}],"list-style-type":[{list:["none","disc","decimal",U]}],"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:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",O,M]}],"underline-offset":[{"underline-offset":["auto",O,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",U]}],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",U]}],"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:[...V(),z]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",B]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}
102],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],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:[...Y(),"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,373 bytes, line 102
102],"divide-style":[{divide:Y()}],"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:["",...Y()]}],"outline-offset":[{"outline-offset":[O,U]}],"outline-w":[{outline:[O,M]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[O,M]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",F,W]}],"shadow-color":[{shadow:[$]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",F,U]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"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":[S]}],"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",U]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",U]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",U]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[R,U]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",U]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",U]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",U]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[O,M,D]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
102none"]}]},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"],size:["w","h"],"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"],"line-clamp":["display","overflow"],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"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},X=function(e){let t,r,n;let i=function(a){let s=[].reduce((e,t)=>t(e),e());return r=(t=v(s)).cache.get,n=t.cache.set,i=o,o(a)};function o(e){let i=r(e);if(i)return i;let o=b(e,t);return n(e,o),o}return function(){return i(w.apply(null,arguments))}}(Q);function J(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return X((0,n.W)(t))}function ee(e){return!!(null==e||"string"==typeof e&&["false","null","undefined",""].includes(e.trim())||"number"==typeof e&&(0===e||isNaN(e))||"boolean"==typeof e&&!1===e||Array.isArray(e)&&0===e.length)||"object"==typeof e&&null!==e&&0===Object.keys(e).length}function et(e){if(!e)return!1;let t=e.toLowerCase();return/\.(jpeg|jpg|gif|png|svg|webp|avif|bmp)(?:[?#].*)?(?:$|\/)/i.test(t)}function er(e){if(!e)return!1;let t=e.toLowerCase();return/\.(pdf|doc|docx|txt|rtf|xls|xlsx|ppt|pptx|csv|odt|ods|odp)(?:[?#].*)?(?:$|\/)/i.test(t)}},3811:function(e,t,r){"use strict";let n,i,o,a,s,u,l,c,d,f,h,p,m,v;var y=r(51597),b=r(5824),w=r(39494);function x(e,t,r=[t],n="npm"){let i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:r.map(e=>({name:`${n}:@sentry/${e}`,version:w.J})),version:w.J}),e._metadata=i}var _=r(39424),S=r(73076),C=r(94223);let E=[];function k(e,t){for(let r of t)r?.afterAllSetup&&r.afterAllSetup(e)}function T(e,t,r){if(r[t.name]){C.X&&b.fF.log(`Integration skipped because it was already installed: ${t.name}`);return}if(r[t.name]=t,-1===E.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),E.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(t,n)=>r(t,n,e))}if("function"==typeof t.processEvent){let r=t.processEvent.bind(t),n=Object.assign((t,n)=>r(t,n,e),{id:t.name});e.addEventProcessor(n)}C.X&&b.fF.log(`Integration installed: ${t.name}`)}function A(e){let t=[];e.message&&t.push(e.message);try{let r=e.exception.values[e.exception.values.length-1];r?.value&&(t.push(r.value),r.type&&t.push(`${r.type}: ${r.value}`))}catch{}return t}var P=r(34156),I=r(57360);let O=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],M=(e={})=>{let t;return{name:"EventFilters",setup(r){let n=r.getOptions();t=D(e,n)},processEvent(r,n,i){if(!t){let r=i.getOptions();t=D(e,r)}return!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let r=e.transaction;return!!r&&(0,I.U0)(r,t)}(e,t.ignoreTransactions))return C.X&&b.fF.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
103Event: ${(0,P.jH)(e)}`),!0}else{var r;if(r=t.ignoreErrors,r?.length&&A(e).some(e=>(0,I.U0)(e,r)))return C.X&&b.fF.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
104Event: ${(0,P.jH)(e)}`),!0;if(e.exception?.values?.length&&!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return C.X&&b.fF.warn(`Event dropped due to not having an error message, error type or stacktrace.
105Event: ${(0,P.jH)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let r=R(e);return!!r&&(0,I.U0)(r,t)}(e,t.denyUrls))return C.X&&b.fF.warn(`Event dropped due to being matched by \`denyUrls\` option.
106Event: ${(0,P.jH)(e)}.
107Url: ${R(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let r=R(e);return!r||(0,I.U0)(r,t)}(e,t.allowUrls))return C.X&&b.fF.warn(`Event dropped due to not being matched by \`allowUrls\` option.
108Event: ${(0,P.jH)(e)}.
109Url: ${R(e)}`),!0}return!1}(r,t)?r:null}}},j=(e={})=>({...M(e),name:"InboundFilters"});function D(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:O],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function R(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),r=t?.stacktrace?.frames;return r?function(e=[]){for(let t=e.length-1;t>=0;t--){let r=e[t];if(r&&"<anonymous>"!==r.filename&&"[native code]"!==r.filename)return r.filename||null}return null}(r):null}catch{return C.X&&b.fF.error(`Cannot extract url for event ${(0,P.jH)(e)}`),null}}var N=r(93820);let U=new WeakMap,F=()=>({name:"FunctionToString",setupOnce(){n=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=(0,N.HK)(this),r=U.has((0,S.s3)())&&void 0!==t?t:this;return n.apply(r,e)}}catch{}},setup(e){U.set(e,!0)}});var L=r(99603);let B=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var r;if((r=e)&&(function(e,t){let r=e.message,n=t.message;return!!((r||n)&&(!r||n)&&(r||!n)&&r===n&&H(e,t)&&z(e,t))}(t,r)||function(e,t){let r=q(t),n=q(e);return!!(r&&n&&r.type===n.type&&r.value===n.value&&H(e,t)&&z(e,t))}(t,r)))return C.X&&b.fF.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function z(e,t){let r=(0,L.Fr)(e),n=(0,L.Fr)(t);
109if(!r&&!n)return!0;if(r&&!n||!r&&n||n.length!==r.length)return!1;for(let e=0;e<n.length;e++){let t=n[e],i=r[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function H(e,t){let r=e.fingerprint,n=t.fingerprint;if(!r&&!n)return!0;if(r&&!n||!r&&n)return!1;try{return!(r.join("")!==n.join(""))}catch{return!1}}function q(e){return e.exception?.values?.[0]}var W=r(73243),$=r(72123),V=r(52637),Y=r(13533),Z=r(77593);function G(e,t=[]){return[e,t]}function K(e,t){let r=e[1];for(let e of r){let r=e[0].type,n=t(e,r);if(n)return!0}return!1}function Q(e){let t=(0,Y.qA)(y.n);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}let X={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item"};function J(e){if(!e?.sdk)return;let{name:t,version:r}=e.sdk;return{name:t,version:r}}var ee=r(81585),et=r(10042),er=r(90772),en=r(41745),ei=r(3613),eo=r(79769),ea=r(5312),es=r(80157),eu=r(31218);let el="Not capturing exception because it's already been captured.",ec="Discarded session because of missing or non-string release",ed=Symbol.for("SentryInternalError"),ef=Symbol.for("SentryDoNotSendEventError");function eh(e){return{message:e,[ed]:!0}}function ep(e){return{message:e,[ef]:!0}}function eg(e){return!!e&&"object"==typeof e&&ed in e}function em(e){return!!e&&"object"==typeof e&&ef in e}class ev{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=(0,V.vK)(e.dsn):C.X&&b.fF.warn("No DSN provided, client will not send events."),this._dsn){var t,r,n;let i=(t=this._dsn,r=e.tunnel,n=e._metadata?e._metadata.sdk:void 0,r||`${function(e){let t=e.protocol?`${e.protocol}:`:"",r=e.port?`:${e.port}`:"";return`${t}//${e.host}${r}${e.path?`/${e.path}`:""}/api/`}(t)}${t.projectId}/envelope/?${function(e,t){let r={sentry_version:"7"};return e.publicKey&&(r.sentry_key=e.publicKey),t&&(r.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(r).toString()}(t,n)}`);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,r){let n=(0,P.DM)();if((0,P.YO)(e))return C.X&&b.fF.log(el),n;let i={event_id:n,...t};return this._process(this.eventFromException(e,i).then(e=>this._captureEvent(e,i,r))),i.event_id}captureMessage(e,t,r,n){let i={event_id:(0,P.DM)(),...r},o=(0,en.Le)(e)?e:String(e),a=(0,en.pt)(e)?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(a.then(e=>this._captureEvent(e,i,n))),i.event_id}captureEvent(e,t,r){let n=(0,P.DM)();if(t?.originalException&&(0,P.YO)(t.originalException))return C.X&&b.fF.log(el),n;let i={event_id:n,...t},o=e.sdkProcessingMetadata||{},a=o.capturedSpanScope,s=o.capturedSpanIsolationScope;return this._process(this._captureEvent(e,i,a||r,s)),i.event_id}captureSession(e){this.sendSession(e),(0,et.CT)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){let t=this._transport;
109return t?(this.emit("flush"),this._isClientDoneProcessing(e).then(r=>t.flush(e).then(e=>r&&e))):(0,es.WD)(!0)}close(e){return this.flush(e).then(e=>(this.getOptions().enabled=!1,this.emit("close"),e))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];T(this,e,this._integrations),t||k(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let r=function(e,t,r,n){var i,o;let a=J(r),s=e.type&&"replay_event"!==e.type?e.type:"event";i=e,(o=r?.sdk)&&(i.sdk=i.sdk||{},i.sdk.name=i.sdk.name||o.name,i.sdk.version=i.sdk.version||o.version,i.sdk.integrations=[...i.sdk.integrations||[],...o.integrations||[]],i.sdk.packages=[...i.sdk.packages||[],...o.packages||[]]);let u=function(e,t,r,n){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!r&&n&&{dsn:(0,V.RA)(n)},...i&&{trace:i}}}(e,a,n,t);delete e.sdkProcessingMetadata;let l=[{type:s},e];return G(u,[l])}(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])r=function(e,t){let[r,n]=e;return[r,[...n,t]]}(r,function(e){let t="string"==typeof e.data?Q(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));let n=this.sendEnvelope(r);n&&n.then(t=>this.emit("afterSendEvent",e,t),null)}sendSession(e){let{release:t,environment:r=W.J}=this._options;if("aggregates"in e){let n=e.attrs||{};if(!n.release&&!t){C.X&&b.fF.warn(ec);return}n.release=n.release||t,n.environment=n.environment||r,e.attrs=n}else{if(!e.release&&!t){C.X&&b.fF.warn(ec);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);let n=function(e,t,r,n){let i=J(r),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!n&&t&&{dsn:(0,V.RA)(t)}},a="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return G(o,[a])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(n)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){let n=`${e}:${t}`;C.X&&b.fF.log(`Recording outcome: "${n}"${r>1?` (${r} times)`:""}`),this._outcomes[n]=(this._outcomes[n]||0)+r}}on(e,t){let r=this._hooks[e]=this._hooks[e]||[];return r.push(t),()=>{let e=r.indexOf(t);e>-1&&r.splice(e,1)}}emit(e,...t){let r=this._hooks[e];r&&r.forEach(e=>e(...t))}sendEnvelope(e){return(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)?this._transport.send(e).then(null,e=>(C.X&&b.fF.error("Error while sending envelope:",e),e)):(C.X&&b.fF.error("Transport disabled"),(0,es.WD)({}))}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=function(e,t){let r={};return t.forEach(t=>{t&&T(e,t,r)}),r}(this,e),k(this,e)}_updateSessionFromEvent(e,t){let r="fatal"===t.level,n=!1,i=t.exception?.values;if(i)for(let e of(n=!0,i)){let t=e.mechanism;if(t?.handled===!1){r=!0;break}}let o="ok"===e.status,a=o&&0===e.errors||o&&r;a&&((0,et.CT)(e,{...r&&{status:"crashed"},errors:e.errors||Number(n||r)}),this.captureSession(e))}_isClientDoneProcessing(e){return new es.cW(t=>{let r=0,n=setInterval(()=>{0==this._numProcessing?(clearInterval(n),t(!0)):(r+=1,e&&r>=e&&(clearInterval(n),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,r,n){let i=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o?.length&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||n.setLastEventId(e.event_id||t.event_id),(0,ea.R)(i,e,t,r,this,n).then(e=>{if(null===e)return e;this.emit("postprocessEvent",e,t),e.contexts={trace:(0,S.XX)(r),...e.contexts};let n=(0,$.CG)(this,r);return e.sdkProcessingMetadata={dynamicSamplingContext:n,...e.sdkProcessingMetadata},e})}_captureEvent(e,t={},r=(0,S.nZ)(),n=(0,S.aF)()){return C.X&&ey(e)&&b.fF.log(`Captured error event \`${A(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,n).then(e=>e.event_id,e=>{C.X&&(em(e)?b.fF.log(e.message):eg(e)?b.fF.warn(e.message):b.fF.warn(e))})}_processEvent(e,t,r,n){let i=this.getOptions(),{sampleRate:o}=i,a=eb(e),s=ey(e),u=e.type||"error",l=`before send for type \`${u}\``,c=void 0===o?void 0:(0,eo.o)(o);if(s&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error"),(0,es.$2)(ep(`Discarding event because it's not included in the random sample (sampling rate = ${o})`));let d="replay_event"===u?"replay":u;return this._prepareEvent(e,t,r,n).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),ep("An event processor returned `null`, will not send event.");let r=t.data&&!0===t.data.__sentry__;if(r)return e;let n=function(e,t,r,n){let{beforeSend:i,beforeSendTransaction:o,beforeSendSpan:a}=t,s=r;if(ey(s)&&i)return i(s,n);if(eb(s)){if(a){let e=a(function(e){let{trace_id:t,parent_span_id:r,span_id:n,status:i,origin:o,data:a,op:s}=e.contexts?.trace??{};return{data:a??{},description:e.transaction,op:s,parent_span_id:r,span_id:n??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:a?.[eu.p6],exclusive_time:a?.[eu.JQ],measurements:e.measurements,is_segment:!0}}(s));if(e?s=(0,ei.T)(r,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[eu.p6]:e.profile_id},...e.exclusive_time&&{[eu.JQ]:e.exclusive_time}}}},measurements:e.measurements}):(0,ee.R6)(),s.spans){let e=[];for(let t of s.spans){let r=a(t);r?e.push(r):((0,ee.R6)(),e.push(t))}s.spans=e}}if(o){if(s.spans){let e=s.spans.length;s.sdkProcessingMetadata={...r.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return o(s,n)}}return s}(0,i,e,t);return function(e,t){let r=`${t} must return \`null\` or a valid event.`;if((0,en.J8)(e))return e.then(e=>{if(!(0,en.PO)(e)&&null!==e)throw eh(r);return e},e=>{throw eh(`${t} rejected with ${e}`)});if(!(0,en.PO)(e)&&null!==e)throw eh(r);return e}(n,l)}).then(i=>
109{if(null===i){if(this.recordDroppedEvent("before_send",d),a){let t=e.spans||[],r=1+t.length;this.recordDroppedEvent("before_send","span",r)}throw ep(`${l} returned \`null\`, will not send event.`)}let o=r.getSession()||n.getSession();if(s&&o&&this._updateSessionFromEvent(o,i),a){let e=i.sdkProcessingMetadata?.spanCountBeforeProcessing||0,t=i.spans?i.spans.length:0,r=e-t;r>0&&this.recordDroppedEvent("before_send","span",r)}let u=i.transaction_info;return a&&u&&i.transaction!==e.transaction&&(i.transaction_info={...u,source:"custom"}),this.sendEvent(i,t),i}).then(null,e=>{if(em(e)||eg(e))throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),eh(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
110Reason: ${e}`)})}_process(e){this._numProcessing++,e.then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[r,n]=e.split(":");return{reason:r,category:n,quantity:t}})}_flushOutcomes(){C.X&&b.fF.log("Flushing outcomes...");let e=this._clearOutcomes();if(0===e.length){C.X&&b.fF.log("No outcomes to send");return}if(!this._dsn){C.X&&b.fF.log("No dsn provided, will not send outcomes");return}C.X&&b.fF.log("Sending outcomes:",e);let t=function(e,t,r){let n=[{type:"client_report"},{timestamp:(0,er.yW)(),discarded_events:e}];return G(t?{dsn:t}:{},[n])}(e,this._options.tunnel&&(0,V.RA)(this._dsn));this.sendEnvelope(t)}}function ey(e){return void 0===e.type}function eb(e){return"transaction"===e.type}function ew(e,t){let r=t??ex().get(e)??[];if(0===r.length)return;let n=e.getOptions(),i=function(e,t,r,n){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),r&&n&&(i.dsn=(0,V.RA)(n)),G(i,[[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]])}(r,n._metadata,n.tunnel,e.getDsn());ex().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function ex(){return(0,Y.YO)("clientToLogBufferMap",()=>new WeakMap)}function e_(e){e.user?.ip_address===void 0&&(e.user={...e.user,ip_address:"{{auto}}"})}function eS(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function eC(e,t){let r=ek(e,t),n={type:function(e){let t=e?.name;if(!t&&eA(e)){let t=e.message&&Array.isArray(e.message)&&2==e.message.length;return t?e.message[0]:"WebAssembly.Exception"}return t}(t),value:function(e){let t=e?.message;return eA(e)?Array.isArray(e.message)&&2==e.message.length?e.message[1]:"wasm exception":t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}(t)};return r.length&&(n.stacktrace={frames:r}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function eE(e,t){return{exception:{values:[eC(e,t)]}}}function ek(e,t){let r=t.stacktrace||t.stack||"",n=t&&eT.test(t.message)?1:0,i="number"==typeof t.framesToPop?t.framesToPop:0;try{return e(r,n,i)}catch{}return[]}let eT=/Minified React error #\d+;/i;function eA(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function eP(e,t,r,n,i){let o;if((0,en.VW)(t)&&t.error)return eE(e,t.error);if((0,en.TX)(t)||(0,en.fm)(t)){if("stack"in t)o=eE(e,t);else{let i=t.name||((0,en.TX)(t)?"DOMError":"DOMException"),a=t.message?`${i}: ${t.message}`:i;o=eI(e,a,r,n),(0,P.Db)(o,a)}return"code"in t&&(o.tags={...o.tags,"DOMException.code":`${t.code}`}),o}return(0,en.VZ)(t)?eE(e,t):(0,en.PO)(t)||(0,en.cO)(t)?(o=function(e,t,r,n){let i=(0,S.s3)(),o=i?.getOptions().normalizeDepth,a=function(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];if(r instanceof Error)return r}}(t),s={__serialized__:(0,Z.Qy)(t,o)};if(a)return{exception:{values:[eC(e,a)]},extra:s};let u={exception:{values:[{type:(0,en.cO)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let r=(0,N.zf)(e),n=t?"promise rejection":"exception";if((0,en.VW)(e))return`Event \`ErrorEvent\` captured as ${n} with message \`${e.message}\``;if((0,en.cO)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${n}`}return`Object captured as ${n} with keys: ${r}`}(t,{isUnhandledRejection:n})}]},extra:s};if(r){let t=ek(e,r);t.length&&(u.exception.values[0].stacktrace={frames:t})}return u}(e,t,r,i),(0,P.EG)(o,{synthetic:!0}),o):(o=eI(e,t,r,n),(0,P.Db)(o,`${t}`,void 0),(0,P.EG)(o,{synthetic:!0}),o)}function eI(e,t,r,n){let i={};if(n&&r){let n=ek(e,r);n.length&&(i.exception={values:[{value:t,stacktrace:{frames:n}}]}),(0,P.EG)(i,{synthetic:!0})}
110if((0,en.Le)(t)){let{__sentry_template_string__:e,__sentry_template_values__:r}=t;return i.logentry={message:e,params:r},i}return i.message=t,i}var eO=r(38143);let eM=y.n,ej=0;function eD(e,t={}){if("function"!=typeof e)return e;try{let t=e.__sentry_wrapped__;if(t){if("function"==typeof t)return t;return e}if((0,N.HK)(e))return e}catch{return e}let r=function(...r){try{let n=r.map(e=>eD(e,t));return e.apply(this,n)}catch(e){throw ej++,setTimeout(()=>{ej--}),(0,S.$e)(n=>{n.addEventProcessor(e=>(t.mechanism&&((0,P.Db)(e,void 0,void 0),(0,P.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e)),(0,_.Tb)(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}(0,N.$Q)(r,e),(0,N.xp)(e,"__sentry_wrapped__",r);try{let t=Object.getOwnPropertyDescriptor(r,"name");t.configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch{}return r}function eR(){let e=(0,eO.l4)(),{referrer:t}=eM.document||{},{userAgent:r}=eM.navigator||{},n={...t&&{Referer:t},...r&&{"User-Agent":r}};return{url:e,headers:n}}class eN extends ev{constructor(e){let t={release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:eM.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e},r=eM.SENTRY_SDK_SOURCE||"npm";x(t,"browser",["browser"],r),super(t);let{sendDefaultPii:n,sendClientReports:i,enableLogs:o,_experiments:a}=this._options,s=o??a?.enableLogs;eM.document&&(i||s)&&eM.document.addEventListener("visibilitychange",()=>{"hidden"===eM.document.visibilityState&&(i&&this._flushOutcomes(),s&&ew(this))}),s&&(this.on("flush",()=>{ew(this)}),this.on("afterCaptureLog",()=>{this._logFlushIdleTimeout&&clearTimeout(this._logFlushIdleTimeout),this._logFlushIdleTimeout=setTimeout(()=>{ew(this)},5e3)})),n&&(this.on("postprocessEvent",e_),this.on("beforeSendSession",eS))}eventFromException(e,t){return function(e,t,r,n){let i=r?.syntheticException||void 0,o=eP(e,t,i,n);return(0,P.EG)(o),o.level="error",r?.event_id&&(o.event_id=r.event_id),(0,es.WD)(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return function(e,t,r="info",n,i){let o=n?.syntheticException||void 0,a=eI(e,t,o,i);return a.level=r,n?.event_id&&(a.event_id=n.event_id),(0,es.WD)(a)}(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,n)}}let eU={},eF={};function eL(e,t){eU[e]=eU[e]||[],eU[e].push(t)}function eB(e,t){if(!eF[e]){eF[e]=!0;try{t()}catch(t){C.X&&b.fF.error(`Error while instrumenting ${e}`,t)}}}function ez(e,t){let r=e&&eU[e];if(r)for(let n of r)try{n(t)}catch(t){C.X&&b.fF.error(`Error while triggering instrumentation handler.
111Type: ${e}
112Name: ${(0,L.$P)(n)}
113Error:`,t)}}function eH(){"console"in y.n&&b.RU.forEach(function(e){e in y.n.console&&(0,N.hl)(y.n.console,e,function(t){return b.LD[e]=t,function(...t){ez("console",{args:t,level:e});let r=b.LD[e];r?.apply(y.n.console,t)}})})}let eq=y.n;function eW(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function e$(e,t){let r="fetch";eL(r,e),eB(r,()=>eV(void 0,t))}function eV(e,t=!1){(!t||function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in eq))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(eW(eq.fetch))return!0;let e=!1,t=eq.document;if(t&&"function"==typeof t.createElement)try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow?.fetch&&(e=eW(r.contentWindow.fetch)),t.head.removeChild(r)}catch(e){C.X&&b.fF.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}())&&(0,N.hl)(y.n,"fetch",function(t){return function(...r){let n=Error(),{method:i,url:o}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,r]=e;return{url:eK(t),method:eG(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:eK(t),method:eG(t,"method")?String(t.method).toUpperCase():"GET"}}(r),a={args:r,fetchData:{method:i,url:o},startTimestamp:1e3*(0,er.ph)(),virtualError:n,headers:function(e){let[t,r]=e;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,en.gJ)(t))return new Headers(t.headers)}catch{}}(r)};return e||ez("fetch",{...a}),t.apply(y.n,r).then(async t=>(e?e(t):ez("fetch",{...a,endTimestamp:1e3*(0,er.ph)(),response:t}),t),e=>{if(ez("fetch",{...a,endTimestamp:1e3*(0,er.ph)(),error:e}),(0,en.VZ)(e)&&void 0===e.stack&&(e.stack=n.stack,(0,N.xp)(e,"framesToPop",1)),e instanceof TypeError&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(a.fetchData.url);e.message=`${e.message} (${t.host})`}catch{}throw e})}})}async function eY(e,t){if(e?.body){let r=e.body,n=r.getReader(),i=setTimeout(()=>{r.cancel().then(null,()=>{})},9e4),o=!0;for(;o;){let e;try{e=setTimeout(()=>{r.cancel().then(null,()=>{})},5e3);let{done:i}=await n.read();clearTimeout(e),i&&(t(),o=!1)}catch{o=!1}
113finally{clearTimeout(e)}}clearTimeout(i),n.releaseLock(),r.cancel().then(null,()=>{})}}function eZ(e){let t;try{t=e.clone()}catch{return}eY(t,()=>{ez("fetch-body-resolved",{endTimestamp:1e3*(0,er.ph)(),response:e})})}function eG(e,t){return!!e&&"object"==typeof e&&!!e[t]}function eK(e){return"string"==typeof e?e:e?eG(e,"url")?e.url:e.toString?e.toString():"":""}function eQ(e,t){let r=(0,S.s3)(),n=(0,S.aF)();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions();if(o<=0)return;let a=(0,er.yW)(),s={timestamp:a,...e},u=i?(0,b.Cf)(()=>i(s,t)):s;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,o))}function eX(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}function eJ(e){return"isRelative"in e}function e0(e,t){let r=0>=e.indexOf("://")&&0!==e.indexOf("//"),n=t??(r?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,n))return;let t=new URL(e,n);if(r)return{isRelative:r,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function e1(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}function e2(e){return e.split(/[?#]/,1)[0]}let e3=y.n;function e4(){if(!e3.document)return;let e=ez.bind(null,"dom"),t=e5(e,!0);e3.document.addEventListener("click",t,!1),e3.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let r=e3[t]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,N.hl)(r,"addEventListener",function(t){return function(r,n,i){if("click"===r||"keypress"==r)try{let n=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=n[r]=n[r]||{refCount:0};if(!o.handler){let n=e5(e);o.handler=n,t.call(this,r,n,i)}o.refCount++}catch{}return t.call(this,r,n,i)}}),(0,N.hl)(r,"removeEventListener",function(e){return function(t,r,n){if("click"===t||"keypress"==t)try{let r=this.__sentry_instrumentation_handlers__||{},i=r[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,n),i.handler=void 0,delete r[t]),0===Object.keys(r).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,r,n)}}))})}function e5(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=function(e){try{return e.target}catch{return null}}(r);if("keypress"===r.type&&(!n?.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable))return;(0,N.xp)(r,"_sentryCaptured",!0),n&&!n._sentryId&&(0,N.xp)(n,"_sentryId",(0,P.DM)());let s="keypress"===r.type?"input":r.type;!function(e){if(e.type!==o)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}(r)&&(e({event:r,name:s,global:t}),o=r.type,a=n?n._sentryId:void 0),clearTimeout(i),i=e3.setTimeout(()=>{a=void 0,o=void 0},1e3)}}let e6="__sentry_xhr_v3__";function e9(e){eL("xhr",e),eB("xhr",e8)}function e8(){if(!e3.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,r){let n=Error(),i=1e3*(0,er.ph)(),o=(0,en.HD)(r[0])?r[0].toUpperCase():void 0,a=function(e){if((0,en.HD)(e))return e;try{return e.toString()}catch{}}(r[1]);if(!o||!a)return e.apply(t,r);t[e6]={method:o,url:a,request_headers:{}},"POST"===o&&a.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[e6];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}let r={endTimestamp:1e3*(0,er.ph)(),startTimestamp:i,xhr:t,virtualError:n};ez("xhr",r)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,r)=>(s(),e.apply(t,r))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,r){let[n,i]=r,o=t[e6];return o&&(0,en.HD)(n)&&(0,en.HD)(i)&&(o.request_headers[n.toLowerCase()]=i),e.apply(t,r)}}),e.apply(t,r)}}),e.send=new Proxy(e.send,{apply(e,t,r){let n=t[e6];if(!n)return e.apply(t,r);void 0!==r[0]&&(n.body=r[0]);let i={startTimestamp:1e3*(0,er.ph)(),xhr:t};return ez("xhr",i),e.apply(t,r)}})}function e7(e){let t="history";eL(t,e),eB(t,te)}function te(){e3.addEventListener("popstate",()=>{let e=e3.location.href,t=s;s=e,t!==e&&ez("history",{from:t,to:e})}),"history"in eq&&eq.history&&((0,N.hl)(e3.history,"pushState",e),(0,N.hl)(e3.history,"replaceState",e));function e(e){return function(...t){let r=t.length>2?t[2]:void 0;if(r){let n=s,i=function(e){try{let t=new URL(e,e3.location.origin);return t.toString()}catch{return e}}(String(r));if(s=i,n===i)return e.apply(this,t);ez("history",{from:n,to:i})}return e.apply(this,t)}}}
113let tt=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var r;t.console&&function(e){let t="console";eL(t,e),eB(t,eH)}(function(t){var r;if((0,S.s3)()!==e)return;let n={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(r=t.level)?"warning":["fatal","error","warning","log","info","debug"].includes(r)?r:"log",message:(0,I.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,I.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}eQ(n,{input:t.args,level:t.level})}),t.dom&&(eL("dom",(r=t.dom,function(t){let n,i;if((0,S.s3)()!==e)return;let o="object"==typeof r?r.serializeAttribute:void 0,a="object"==typeof r&&"number"==typeof r.maxStringLength?r.maxStringLength:void 0;a&&a>1024&&(a=1024),"string"==typeof o&&(o=[o]);try{let e=t.event,r=e&&e.target?e.target:e;n=(0,eO.Rt)(r,{keyAttrs:o,maxStringLength:a}),i=(0,eO.iY)(r)}catch{n="<unknown>"}if(0===n.length)return;let s={category:`ui.${t.name}`,message:n};i&&(s.data={"ui.component_name":i}),eQ(s,{event:t.event,name:t.name,global:t.global})})),eB("dom",e4)),t.xhr&&e9(function(t){if((0,S.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t,i=t.xhr[e6];if(!r||!n||!i)return;let{method:o,url:a,status_code:s,body:u}=i,l={xhr:t.xhr,input:u,startTimestamp:r,endTimestamp:n},c={category:"xhr",data:{method:o,url:a,status_code:s},type:"http",level:eX(s)};e.emit("beforeOutgoingRequestBreadcrumb",c,l),eQ(c,l)}),t.fetch&&e$(function(t){if((0,S.s3)()!==e)return;let{startTimestamp:r,endTimestamp:n}=t;if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.fetchData.method,t.fetchData.url,t.error){let i=t.fetchData,o={data:t.error,input:t.args,startTimestamp:r,endTimestamp:n},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,o),eQ(a,o)}else{let i=t.response,o={...t.fetchData,status_code:i?.status};t.fetchData.request_body_size,t.fetchData.response_body_size,i?.status;let a={input:t.args,response:i,startTimestamp:r,endTimestamp:n},s={category:"fetch",data:o,type:"http",level:eX(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",s,a),eQ(s,a)}}}),t.history&&e7(function(t){if((0,S.s3)()!==e)return;let r=t.from,n=t.to,i=e1(eM.location.href),o=r?e1(r):void 0,a=e1(n);o?.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),eQ({category:"navigation",data:{from:r,to:n}})}),t.sentry&&e.on("beforeSendEvent",function(t){(0,S.s3)()===e&&eQ({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:(0,P.jH)(t)},{event:t})})}}},tr=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],tn=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,N.hl)(eM,"setTimeout",ti),t.setInterval&&(0,N.hl)(eM,"setInterval",ti),t.requestAnimationFrame&&(0,N.hl)(eM,"requestAnimationFrame",to),t.XMLHttpRequest&&"XMLHttpRequest"in eM&&(0,N.hl)(XMLHttpRequest.prototype,"send",ta);let e=t.eventTarget;if(e){let r=Array.isArray(e)?e:tr;r.forEach(e=>(function(e,t){let r=eM[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&((0,N.hl)(r,"addEventListener",function(r){return function(n,i,o){try{"function"==typeof i.handleEvent&&(i.handleEvent=eD(i.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,L.$P)(i),target:e},handled:!1,type:"instrument"}}))}catch{}return t.unregisterOriginalCallbacks&&this&&"object"==typeof this&&"removeEventListener"in this&&"function"==typeof this.removeEventListener&&this.removeEventListener(n,i),r.apply(this,[n,eD(i,{mechanism:{data:{function:"addEventListener",handler:(0,L.$P)(i),target:e},handled:!1,type:"instrument"}}),o])}}),(0,N.hl)(r,"removeEventListener",function(e){return function(t,r,n){try{let i=r.__sentry_wrapped__;i&&e.call(this,t,i,n)}catch{}return e.call(this,t,r,n)}}))})(e,t))}}}};function ti(e){return function(...t){let r=t[0];return t[0]=eD(r,{mechanism:{data:{function:(0,L.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function to(e){return function(t){return e.apply(this,[eD(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,L.$P)(e)},handled:!1,type:"instrument"}})])}}function ta(e){return function(...t){let r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e
113=>{e in r&&"function"==typeof r[e]&&(0,N.hl)(r,e,function(t){let r={mechanism:{data:{function:e,handler:(0,L.$P)(t)},handled:!1,type:"instrument"}},n=(0,N.HK)(t);return n&&(r.mechanism.data.handler=(0,L.$P)(n)),eD(t,r)})}),e.apply(this,t)}}let ts=()=>({name:"BrowserSession",setupOnce(){void 0!==eM.document&&((0,_.yj)({ignoreDuration:!0}),(0,_.cg)(),e7(({from:e,to:t})=>{void 0!==e&&e!==t&&((0,_.yj)({ignoreDuration:!0}),(0,_.cg)())}))}}),tu=null;function tl(e){let t="error";eL(t,e),eB(t,tc)}function tc(){tu=y.n.onerror,y.n.onerror=function(e,t,r,n,i){return ez("error",{column:n,error:i,line:r,msg:e,url:t}),!!tu&&tu.apply(this,arguments)},y.n.onerror.__SENTRY_INSTRUMENTED__=!0}let td=null;function tf(e){let t="unhandledrejection";eL(t,e),eB(t,th)}function th(){td=y.n.onunhandledrejection,y.n.onunhandledrejection=function(e){return ez("unhandledrejection",e),!td||td.apply(this,arguments)},y.n.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let tp=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&tl(t=>{let{stackParser:r,attachStacktrace:n}=tg();if((0,S.s3)()!==e||ej>0)return;let{msg:i,url:o,line:a,column:s,error:u}=t,l=function(e,t,r,n){let i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],l=(0,en.HD)(t)&&t.length>0?t:(0,eO.l4)();return 0===u.length&&u.push({colno:n,filename:l,function:L.Fi,in_app:!0,lineno:r}),e}(eP(r,u||i,void 0,n,!1),o,a,s);l.level="error",(0,_.eN)(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}),t.onunhandledrejection&&tf(t=>{let{stackParser:r,attachStacktrace:n}=tg();if((0,S.s3)()!==e||ej>0)return;let i=function(e){if((0,en.pt)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}(t),o=(0,en.pt)(i)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}:eP(r,i,void 0,n,!0);o.level="error",(0,_.eN)(o,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}}};function tg(){let e=(0,S.s3)(),t=e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return t}let tm=()=>({name:"HttpContext",preprocessEvent(e){if(!eM.navigator&&!eM.location&&!eM.document)return;let t=eR(),r={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:r}}});function tv(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,..."AggregateError"===e.type&&{is_exception_group:!0},exception_id:t}}function ty(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}let tb=(e={})=>{let t=e.limit||5,r=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,n,i){let o=i.getOptions();!function(e,t,r,n,i,o){if(!i.exception?.values||!o||!(0,en.V9)(o.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=function e(t,r,n,i,o,a,s,u){if(a.length>=n+1)return a;let l=[...a];if((0,en.V9)(i[o],Error)){tv(s,u);let a=t(r,i[o]),c=l.length;ty(a,o,c,u),l=e(t,r,n,i[o],o,[a,...l],a,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,a)=>{if((0,en.V9)(i,Error)){tv(s,u);let c=t(r,i),d=l.length;ty(c,`errors[${a}]`,d,u),l=e(t,r,n,i,o,[c,...l],c,d)}}),l}(e,t,n,o.originalException,r,i.exception.values,a,0))}(eC,o.stackParser,r,t,e,n)}}};function tw(e,t,r,n){let i={filename:e,function:"<anonymous>"===t?L.Fi:t,in_app:!0};return void 0!==r&&(i.lineno=r),void 0!==n&&(i.colno=n),i}let tx=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,t_=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tS=/\((\S*)(?::(\d+))(?::(\d+))\)/,tC=e=>{let t=tx.exec(e);if(t){let[,e,r,n]=t;return tw(e,L.Fi,+r,+n)}let r=t_.exec(e);if(r){let e=r[2]&&0===r[2].indexOf("eval");if(e){let e=tS.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[t,n]=tP(r[1]||L.Fi,r[2]);return tw(n,t,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},tE=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tk=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,tT=e=>{let t=tE.exec(e);if(t){let e=t[3]&&t[3].indexOf(" > eval")>-1;if(e){let e=tk.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let r=t[3],n=t[1]||L.Fi;return[n,r]=tP(n,r),tw(r,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},tA=(0,L.pE)(...[[30,tC],[50,tT]]),tP=(e,t)=>{let r=-1!==e.indexOf("safari-extension"),n=-1!==e.indexOf("safari-web-extension");return r||n?[-1!==e.indexOf("@")?e.split("@")[0]:L.Fi,r?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},tI=Symbol.for("SentryBufferFullError"),tO={};function tM(e,t=function(e){let t=tO[e];
113if(t)return t;let r=e3[e];if(eW(r))return tO[e]=r.bind(e3);let n=e3.document;if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(r=i[e]),n.head.removeChild(t)}catch(e){}return r?tO[e]=r.bind(e3):r}("fetch")){let r=0,n=0;return function(e,t,r=function(e){let t=[];function r(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(n){if(!(void 0===e||t.length<e))return(0,es.$2)(tI);let i=n();return -1===t.indexOf(i)&&t.push(i),i.then(()=>r(i)).then(null,()=>r(i).then(null,()=>{})),i},drain:function(e){return new es.cW((r,n)=>{let i=t.length;if(!i)return r(!0);let o=setTimeout(()=>{e&&e>0&&r(!1)},e);t.forEach(e=>{(0,es.WD)(e).then(()=>{--i||(clearTimeout(o),r(!0))},n)})})}}}(e.bufferSize||64)){let n={},i=e=>r.drain(e);return{send:function(i){let o=[];if(K(i,(t,r)=>{let i=X[r];(function(e,t,r=Date.now()){return(e[t]||e.all||0)>r})(n,i)?e.recordDroppedEvent("ratelimit_backoff",i):o.push(t)}),0===o.length)return(0,es.WD)({});let a=G(i[0],o),s=t=>{K(a,(r,n)=>{e.recordDroppedEvent(t,X[n])})},u=()=>t({body:function(e){let[t,r]=e,n=JSON.stringify(t);function i(e){"string"==typeof n?n="string"==typeof e?n+e:[Q(n),e]:n.push("string"==typeof e?Q(e):e)}for(let e of r){let[t,r]=e;if(i(`
114${JSON.stringify(t)}
115`),"string"==typeof r||r instanceof Uint8Array)i(r);else{let e;try{e=JSON.stringify(r)}catch{e=JSON.stringify((0,Z.Fv)(r))}i(e)}}return"string"==typeof n?n:function(e){let t=e.reduce((e,t)=>e+t.length,0),r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(n)}(a)}).then(e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&C.X&&b.fF.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),n=function(e,{statusCode:t,headers:r},n=Date.now()){let i={...e},o=r?.["x-sentry-rate-limits"],a=r?.["retry-after"];if(o)for(let e of o.trim().split(",")){let[t,r,,,o]=e.split(":",5),a=parseInt(t,10),s=(isNaN(a)?60:a)*1e3;if(r)for(let e of r.split(";"))"metric_bucket"===e?(!o||o.split(";").includes("custom"))&&(i[e]=n+s):i[e]=n+s;else i.all=n+s}else a?i.all=n+function(e,t=Date.now()){let r=parseInt(`${e}`,10);if(!isNaN(r))return 1e3*r;let n=Date.parse(`${e}`);return isNaN(n)?6e4:n-t}(a,n):429===t&&(i.all=n+6e4);return i}(n,e),e),e=>{throw s("network_error"),C.X&&b.fF.error("Encountered error running transport request:",e),e});return r.add(u).then(e=>e,e=>{if(e===tI)return C.X&&b.fF.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,es.WD)({});throw e})},flush:i}}(e,function(i){let o=i.body.length;r+=o,n++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:r<=6e4&&n<15,...e.fetchOptions};if(!t)return tO.fetch=void 0,(0,es.$2)("No fetch implementation available");try{return t(e.url,a).then(e=>(r-=o,n--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}))}catch(e){return tO.fetch=void 0,r-=o,n--,(0,es.$2)(e)}})}function tj(e){return[j(),F(),tn(),tt(),tp(),tb(),B(),tm(),ts()]}var tD=r(67294),tR=r(83454),tN=r(51072),tU=r(89366),tF=r(8151);class tL{constructor(e={}){this._traceId=e.traceId||(0,tF.H)(),this._spanId=e.spanId||(0,tF.M)()}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:ee.ve}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,r){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}}function tB(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let r=e.attributes||{},n=r[eu.E1],i=r[eu.Wb];"string"==typeof n&&"number"==typeof i&&(t[e.name]={value:i,unit:n})}),t}var tz=r(96515);class tH{constructor(e={}){this._traceId=e.traceId||(0,tF.H)(),this._spanId=e.spanId||(0,tF.M)(),this._startTime=e.startTimestamp||(0,er.ph)(),this._links=e.links,this._attributes={},this.setAttributes({[eu.S3]:"manual",[eu.$J]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}
115addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:r}=this;return{spanId:e,traceId:t,traceFlags:r?ee.i0:ee.ve}}setAttribute(e,t){return void 0===t?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=(0,ee.$k)(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(eu.Zj,"custom"),this}end(e){this._endTime||(this._endTime=(0,ee.$k)(e),function(e){if(!C.X)return;let{description:t="< unknown name >",op:r="< unknown op >"}=(0,ee.XU)(e),{spanId:n}=e.spanContext(),i=(0,ee.Gx)(e),o=`[Tracing] Finishing "${r}" ${i===e?"root ":""}span "${t}" with ID ${n}`;b.fF.log(o)}(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[eu.$J],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,ee._4)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[eu.S3],profile_id:this._attributes[eu.p6],exclusive_time:this._attributes[eu.JQ],measurements:tB(this._events),is_segment:this._isStandaloneSpan&&(0,ee.Gx)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,ee.Gx)(this).spanContext().spanId:void 0,links:(0,ee.FF)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,r){C.X&&b.fF.log("[Tracing] Adding an event to span:",e);let n=tq(t)?t:r||(0,er.ph)(),i=tq(t)?{}:t||{},o={name:e,time:(0,ee.$k)(n),attributes:i};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,S.s3)();e&&e.emit("spanEnd",this);let t=this._isStandaloneSpan||this===(0,ee.Gx)(this);if(!t)return;if(this._isStandaloneSpan){this._sampled?function(e){let t=(0,S.s3)();if(!t)return;let r=e[1];if(!r||0===r.length){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}(function(e,t){let r=(0,$.jC)(e[0]),n=t?.getDsn(),i=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...!!r.trace_id&&!!r.public_key&&{trace:r},...!!i&&n&&{dsn:(0,V.RA)(n)}},a=t?.getOptions().beforeSendSpan,s=a?e=>{let t=(0,ee.XU)(e),r=a(t);return r||((0,ee.R6)(),t)}:ee.XU,u=[];for(let t of e){let e=s(t);e&&u.push([{type:"span"},e])}return G(o,u)}([this],e)):(C.X&&b.fF.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span"));return}let r=this._convertSpanToTransaction();if(r){let e=(0,tz.I)(this).scope||(0,S.nZ)();e.captureEvent(r)}}_convertSpanToTransaction(){if(!tW((0,ee.XU)(this)))return;this._name||(C.X&&b.fF.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:e,isolationScope:t}=(0,tz.I)(this),r=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;let n=(0,ee.Dp)(this).filter(e=>e!==this&&!(e instanceof tH&&e.isStandaloneSpan())),i=n.map(e=>(0,ee.XU)(e)).filter(tW),o=this._attributes[eu.Zj];delete this._attributes[eu.xF],i.forEach(e=>{delete e.data[eu.xF]});let a={contexts:{trace:(0,ee.HR)(this)},spans:i.length>1e3?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:(0,$.jC)(this)},request:r,...o&&{transaction_info:{source:o}}},s=tB(this._events),u=s&&Object.keys(s).length;return u&&(C.X&&b.fF.log("[Measurements] Adding measurements to transaction event",JSON.stringify(s,void 0,2)),a.measurements=s),a}}function tq(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function tW(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var t$=r(69737),tV=r(60811);let tY="__SENTRY_SUPPRESS_TRACING__";function tZ(e){let t=tX();if(t.startInactiveSpan)return t.startInactiveSpan(e);let r=tQ(e),{forceTransaction:n,parentSpan:i}=e,o=e.scope?t=>(0,S.$e)(e.scope,t):void 0!==i?e=>tG(i,e):e=>e();return o(()=>{let t=(0,S.nZ)(),o=t0(t,i),a=e.onlyIfParent&&!o;return a?new tL:tK({parentSpan:o,spanArguments:r,forceTransaction:n,scope:t})})}function tG(e,t){let r=tX();return r.withActiveSpan?r.withActiveSpan(e,t):(0,S.$e)(r=>((0,tU.D)(r,e||void 0),t(r)))}function tK({parentSpan:e,spanArguments:t,forceTransaction:r,scope:n}){let i;if(!(0,tN.f)()){let n=new tL;if(r||!e){let e={sampled:"false",sample_rate:"0",transaction:t.name,...(0,$.jC)(n)};(0,$.Lh)(n,e)}return n}let o=(0,S.aF)();if(e&&!r)i=function(e,t,r){let{spanId:n,traceId:i}=e.spanContext(),o=!t.getScopeData().sdkProcessingMetadata[tY]&&(0,ee.Tt)(e),a=o?new tH({...r,parentSpanId:n,traceId:i,sampled:o}):new tL({traceId:i});(0,ee.j5)(e,a);let s=(0,S.s3)();return s&&(s.emit("spanStart",a),r.endTimestamp&&s.emit("spanEnd",a)),a}(e,n,t),(0,ee.j5)(e,i);else if(e){let r=(0,$.jC)(e),{traceId:o,spanId:a}=e.spanContext(),s=(0,ee.Tt)(e);i=tJ({traceId:o,parentSpanId:a,...t},n,s),(0,$.Lh)(i,r)}else{let{traceId:e,dsc:r,parentSpanId:a,sampled:s}={...o.getPropagationContext(),...n.getPropagationContext()};i=tJ({traceId:e,parentSpanId:a,...t},n,s),r&&(0,$.Lh)(i,r)}return!function(e){if(!C.X)return;let{description:t="< unknown name >",op:r="< unknown op >",parent_span_id:n}=(0,ee.XU)(e),{spanId:i}=e.spanContext(),o=(0,ee.Tt)(e),a=(0,ee.Gx)(e),s=a===e,u=`[Tracing] Starting ${o?"sampled":"unsampled"} ${s?"root ":""}span`,l=[`op: ${r}`,`name: ${t}`,`ID: ${i}`];
115if(n&&l.push(`parent ID: ${n}`),!s){let{op:e,description:t}=(0,ee.XU)(a);l.push(`root ID: ${a.spanContext().spanId}`),e&&l.push(`root op: ${e}`),t&&l.push(`root description: ${t}`)}b.fF.log(`${u}
116  ${l.join("\n  ")}`)}(i),(0,tz.Y)(i,n,o),i}function tQ(e){let t=e.experimental||{},r={isStandalone:t.standalone,...e};if(e.startTime){let t={...r};return t.startTimestamp=(0,ee.$k)(e.startTime),delete t.startTime,t}return r}function tX(){let e=(0,Y.cu)();return(0,tV.G)(e)}function tJ(e,t,r){let n=(0,S.s3)(),i=n?.getOptions()||{},{name:o=""}=e,a={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};n?.emit("beforeSampling",a,{decision:!1});let s=a.parentSampled??r,u=a.spanAttributes,l=t.getPropagationContext(),[c,d,f]=t.getScopeData().sdkProcessingMetadata[tY]?[!1]:function(e,t,r){let n,i;if(!(0,tN.f)(e))return[!1];"function"==typeof e.tracesSampler?(n=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),i=!0):void 0!==t.parentSampled?n=t.parentSampled:void 0!==e.tracesSampleRate&&(n=e.tracesSampleRate,i=!0);let o=(0,eo.o)(n);if(void 0===o)return C.X&&b.fF.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`),[!1];if(!o)return C.X&&b.fF.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,i];let a=r<o;return!a&&C.X&&b.fF.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(n)})`),[a,o,i]}(i,{name:o,parentSampled:s,attributes:u,parentSampleRate:(0,eo.o)(l.dsc?.sample_rate)},l.sampleRand),h=new tH({...e,attributes:{[eu.Zj]:"custom",[eu.TE]:void 0!==d&&f?d:void 0,...u},sampled:c});return!c&&n&&(C.X&&b.fF.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),n.recordDroppedEvent("sample_rate","transaction")),n&&n.emit("spanStart",h),h}function t0(e,t){if(t)return t;if(null===t)return;let r=(0,tU.Y)(e);if(!r)return;let n=(0,S.s3)(),i=n?n.getOptions():{};return i.parentSpanIsAlwaysRootSpan?(0,ee.Gx)(r):r}let t1={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function t2(e,t={}){let r;let n=new Map,i=!1,o="externalFinish",a=!t.disableAutoFinish,s=[],{idleTimeout:u=t1.idleTimeout,finalTimeout:l=t1.finalTimeout,childSpanTimeout:c=t1.childSpanTimeout,beforeSpanEnd:d}=t,f=(0,S.s3)();if(!f||!(0,tN.f)()){let e=new tL,t={sample_rate:"0",sampled:"false",...(0,$.jC)(e)};return(0,$.Lh)(e,t),e}let h=(0,S.nZ)(),p=(0,ee.HN)(),m=function(e){let t=tZ(e);return(0,tU.D)((0,S.nZ)(),t),C.X&&b.fF.log("[Tracing] Started span is an idle span"),t}(e);function v(){r&&(clearTimeout(r),r=void 0)}function y(e){v(),r=setTimeout(()=>{!i&&0===n.size&&a&&(o="idleTimeout",m.end(e))},u)}function w(e){r=setTimeout(()=>{!i&&a&&(o="heartbeatFailed",m.end(e))},c)}function x(e){i=!0,n.clear(),s.forEach(e=>e()),(0,tU.D)(h,p);let t=(0,ee.XU)(m),{start_timestamp:r}=t;if(!r)return;let a=t.data;a[eu.ju]||m.setAttribute(eu.ju,o),b.fF.log(`[Tracing] Idle span "${t.op}" finished`);let c=(0,ee.Dp)(m).filter(e=>e!==m),d=0;
116c.forEach(t=>{t.isRecording()&&(t.setStatus({code:t$.jt,message:"cancelled"}),t.end(e),C.X&&b.fF.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let r=(0,ee.XU)(t),{timestamp:n=0,start_timestamp:i=0}=r,o=i<=e,a=n-i<=(l+u)/1e3;if(C.X){let e=JSON.stringify(t,void 0,2);o?a||b.fF.log("[Tracing] Discarding span since it finished after idle span final timeout",e):b.fF.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!a||!o)&&((0,ee.ed)(m,t),d++)}),d>0&&m.setAttribute("sentry.idle_span_discarded_spans",d)}return m.end=new Proxy(m.end,{apply(e,t,r){if(d&&d(m),t instanceof tL)return;let[n,...i]=r,o=n||(0,er.ph)(),a=(0,ee.$k)(o),s=(0,ee.Dp)(m).filter(e=>e!==m);if(!s.length)return x(a),Reflect.apply(e,t,[a,...i]);let u=s.map(e=>(0,ee.XU)(e).timestamp).filter(e=>!!e),c=u.length?Math.max(...u):void 0,f=(0,ee.XU)(m).start_timestamp,h=Math.min(f?f+l/1e3:1/0,Math.max(f||-1/0,Math.min(a,c||1/0)));return x(h),Reflect.apply(e,t,[h,...i])}}),s.push(f.on("spanStart",e=>{if(i||e===m||(0,ee.XU)(e).timestamp||e instanceof tH&&e.isStandaloneSpan())return;let t=(0,ee.Dp)(m);t.includes(e)&&function(e){v(),n.set(e,!0);let t=(0,er.ph)();w(t+c/1e3)}(e.spanContext().spanId)})),s.push(f.on("spanEnd",e=>{i||function(e){if(n.has(e)&&n.delete(e),0===n.size){let e=(0,er.ph)();y(e+u/1e3)}}(e.spanContext().spanId)})),s.push(f.on("idleSpanEnableAutoFinish",e=>{e===m&&(a=!0,y(),n.size&&w())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(m.setStatus({code:t$.jt,message:"deadline_exceeded"}),o="finalTimeout",m.end())},l),m}let t3=!1;var t4=r(32616);let t5=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",t6=(e,t,r,n)=>{let i,o;return a=>{t.value>=0&&(a||n)&&((o=t.value-(i??0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=t5(t.value,r),e(t))}},t9=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,t8=(e=!0)=>{let t=e3.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},t7=()=>{let e=t8();return e?.activationStart??0},re=(e,t=-1)=>{let r=t8(),n="navigate";return r&&(e3.document?.prerendering||t7()>0?n="prerender":e3.document?.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:t9(),navigationType:n}},rt=new WeakMap;function rr(e,t){return rt.get(e)||rt.set(e,new t),rt.get(e)}class rn{constructor(){rn.prototype.__init.call(this),rn.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&r&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let ri=(e,t,r={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let n=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return n.observe({type:e,buffered:!0,...r}),n}}catch{}},ro=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ra=-1,rs=()=>e3.document?.visibilityState!=="hidden"||e3.document?.prerendering?1/0:0,ru=e=>{"hidden"===e3.document.visibilityState&&ra>-1&&(ra="visibilitychange"===e.type?e.timeStamp:0,rc())},rl=()=>{addEventListener("visibilitychange",ru,!0),addEventListener("prerenderingchange",ru,!0)},rc=()=>{removeEventListener("visibilitychange",ru,!0),removeEventListener("prerenderingchange",ru,!0)},rd=()=>{if(e3.document&&ra<0){let e=t7(),t=e3.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime;ra=t??rs(),rl()}return{get firstHiddenTime(){return ra}}},rf=e=>{e3.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rh=[1800,3e3],rp=(e,t={})=>{rf(()=>{let r;let n=rd(),i=re("FCP"),o=e=>{for(let t of e)"first-contentful-paint"===t.name&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(i.value=Math.max(t.startTime-t7(),0),i.entries.push(t),r(!0)))},a=ri("paint",o);a&&(r=t6(e,i,rh,t.reportAllChanges))})},rg=[.1,.25],rm=(e,t={})=>{rp(ro(()=>{let r;let n=re("CLS",0),i=rr(t,rn),o=e=>{for(let t of e)i._processEntry(t);i._sessionValue>
116n.value&&(n.value=i._sessionValue,n.entries=i._sessionEntries,r())},a=ri("layout-shift",o);a&&(r=t6(e,n,rg,t.reportAllChanges),e3.document?.addEventListener("visibilitychange",()=>{e3.document?.visibilityState==="hidden"&&(o(a.takeRecords()),r(!0))}),e3?.setTimeout?.(r))}))},rv=e=>{let t=t=>{("pagehide"===t.type||e3.document?.visibilityState==="hidden")&&e(t)};e3.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))},ry=[100,300],rb=(e,t={})=>{rf(()=>{let r;let n=rd(),i=re("FID"),o=e=>{e.startTime<n.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),r(!0))},a=e=>{e.forEach(o)},s=ri("first-input",a);r=t6(e,i,ry,t.reportAllChanges),s&&rv(ro(()=>{a(s.takeRecords()),s.disconnect()}))})},rw=0,rx=1/0,r_=0,rS=e=>{e.forEach(e=>{e.interactionId&&(rx=Math.min(rx,e.interactionId),rw=(r_=Math.max(r_,e.interactionId))?(r_-rx)/7+1:0)})},rC=()=>u?rw:performance.interactionCount||0,rE=()=>{"interactionCount"in performance||u||(u=ri("event",rS,{type:"event",buffered:!0,durationThreshold:0}))},rk=0,rT=()=>rC()-rk;class rA{constructor(){rA.prototype.__init.call(this),rA.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){rk=rC(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(rT()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),r=this._longestInteractionMap.get(e.interactionId);if(r||this._longestInteractionList.length<10||e.duration>t._latency){if(r?e.duration>r._latency?(r.entries=[e],r._latency=e.duration):e.duration===r._latency&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10){let e=this._longestInteractionList.splice(10);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(r)}}}let rP=e=>{let t=e3.requestIdleCallback||e3.setTimeout;e3.document?.visibilityState==="hidden"?e():(t(e=ro(e)),rv(e))},rI=[200,500],rO=(e,t={})=>{globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&rf(()=>{let r;rE();let n=re("INP"),i=rr(t,rA),o=e=>{rP(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==n.value&&(n.value=t._latency,n.entries=t.entries,r())})},a=ri("event",o,{durationThreshold:t.durationThreshold??40});r=t6(e,n,rI,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),rv(()=>{o(a.takeRecords()),r(!0)}))})};class rM{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let rj=[2500,4e3],rD=(e,t={})=>{rf(()=>{let r;let n=rd(),i=re("LCP"),o=rr(t,rM),a=e=>{for(let a of(t.reportAllChanges||(e=e.slice(-1)),e))o._processEntry(a),a.startTime<n.firstHiddenTime&&(i.value=Math.max(a.startTime-t7(),0),i.entries=[a],r())},s=ri("largest-contentful-paint",a);if(s){r=t6(e,i,rj,t.reportAllChanges);let n=ro(()=>{a(s.takeRecords()),s.disconnect(),r(!0)});for(let e of["keydown","click","visibilitychange"])e3.document&&addEventListener(e,()=>rP(n),{capture:!0,once:!0})}})},rR=[800,1800],rN=e=>{e3.document?.prerendering?rf(()=>rN(e)):e3.document?.readyState!=="complete"?addEventListener("load",()=>rN(e),!0):setTimeout(e)},rU=(e,t={})=>{let r=re("TTFB"),n=t6(e,r,rR,t.reportAllChanges);rN(()=>{let e=t8();e&&(r.value=Math.max(e.responseStart-t7(),0),r.entries=[e],n(!0))})},rF={},rL={};function rB(e,t=!1){return rG("cls",e,rW,l,t)}function rz(e,t=!1){return rG("lcp",e,rV,d,t)}function rH(e,t){return rK(e,t),rL[e]||(function(e){let t={};"event"===e&&(t.durationThreshold=0),ri(e,t=>{rq(e,{entries:t})},t)}(e),rL[e]=!0),rQ(e,t)}function rq(e,t){let r=rF[e];if(r?.length)for(let e of r)try{e(t)}catch(e){}}function rW(){return rm(e=>{rq("cls",{metric:e}),l=e},{reportAllChanges:!0})}function r$(){return rb(e=>{rq("fid",{metric:e}),c=e})}function rV(){return rD(e=>{rq("lcp",{metric:e}),d=e},{reportAllChanges:!0})}function rY(){return rU(e=>{rq("ttfb",{metric:e}),f=e})}function rZ(){return rO(e=>{rq("inp",{metric:e}),h=e})}function rG(e,t,r,n,i=!1){let o;return rK(e,t),rL[e]||(o=r(),rL[e]=!0),n&&t({metric:n}),rQ(e,t,i?o:void 0)}function rK(e,t){rF[e]=rF[e]||[],rF[e].push(t)}function rQ(e,t,r){return()=>{r&&r();let n=rF[e];if(!n)return;let i=n.indexOf(t);-1!==i&&n.splice(i,1)}}function rX(e){return"number"==typeof e&&isFinite(e)}function rJ(e,t,r,{...n}){let i=(0,ee.XU)(e).start_timestamp;return i&&i>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),tG(e,()=>{let e=tZ({startTime:t,...n});return e&&e.end(r),e})}function r0(e){let t;let r=(0,S.s3)();if(!r)return;let{name:n,transaction:i,attributes:o,startTime:a}=e,{release:s,environment:u,sendDefaultPii:l}=r.getOptions(),c=r.getIntegrationByName("Replay"),d=c?.getReplayId(),f=(0,S.nZ)(),h=f.getUser(),p=void 0!==h?h.email||h.id||h.ip_address:void 0;try{t=f.getScopeData().contexts.profile.profile_id}catch{}let m={release:s,environment:u,user:p||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:i,"user_agent.original":e3.navigator?.userAgent,"client.address":l?"{{auto}}":void 0,...o};return tZ({name:n,attributes:m,startTime:a,experimental:{standalone:!0}})}function r1(){return e3.addEventListener&&e3.performance}function r2(e){return e/1e3}function r3(e){let t="unknown",r="unknown",n="";for(let i of e){if("/"===i){[t,r]=e.split("/");break}if(!isNaN(Number(i))){t="h"===n?"http":n,r=e.split(n)[1];break}n+=i}
116return n===e&&(t=n),{name:t,version:r}}function r4(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function r5(e,t){let r;let n=!1;function i(e){!n&&r&&t(e,r),n=!0}rv(()=>{i("pagehide")});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o?.(),a?.())}),a=e.on("afterStartPageLoadSpan",e=>{r=e.spanContext().spanId,a?.()})}let r6=0,r9={};function r8(e,t,r,n,i=r){let o="secureConnection"===r?"connectEnd":"fetch"===r?"domainLookupStart":`${r}End`,a=t[o],s=t[`${r}Start`];s&&a&&rJ(e,n+r2(s),n+r2(a),{op:`browser.${i}`,name:t.name,attributes:{[eu.S3]:"auto.ui.browser.metrics",..."redirect"===r&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}function r7(e,t,r,n){let i=t[r];null!=i&&i<2147483647&&(e[n]=i)}let ne=[],nt=new Map,nr={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"},nn=({metric:e})=>{if(void 0==e.value)return;let t=r2(e.value);if(t>60)return;let r=e.entries.find(t=>t.duration===e.value&&nr[t.name]);if(!r)return;let{interactionId:n}
116=r,i=nr[r.name],o=r2((0,er.Z1)()+r.startTime),a=(0,ee.HN)(),s=a?(0,ee.Gx)(a):void 0,u=null!=n?nt.get(n):void 0,l=u||s,c=l?(0,ee.XU)(l).description:(0,S.nZ)().getScopeData().transactionName,d=(0,eO.Rt)(r.target),f={[eu.S3]:"auto.http.browser.inp",[eu.$J]:`ui.interaction.${i}`,[eu.JQ]:r.duration},h=r0({name:d,transaction:c,attributes:f,startTime:o});h&&(h.addEvent("inp",{[eu.E1]:"millisecond",[eu.Wb]:e.value}),h.end(o+t))},ni=({entries:e})=>{let t=(0,ee.HN)(),r=t?(0,ee.Gx)(t):void 0,n=r?(0,ee.XU)(r).description:(0,S.nZ)().getScopeData().transactionName;e.forEach(e=>{if(!e.identifier)return;let t=e.name,r=e.renderTime,i=e.loadTime,[o,a]=i?[r2(i),"load-time"]:r?[r2(r),"render-time"]:[(0,er.ph)(),"entry-emission"],s="image-paint"===t?r2(Math.max(0,(r??0)-(i??0))):0,u={[eu.S3]:"auto.ui.browser.elementtiming",[eu.$J]:"ui.elementtiming",[eu.Zj]:"component","sentry.span_start_time_source":a,"sentry.transaction_name":n,"element.id":e.id,"element.type":e.element?.tagName?.toLowerCase()||"unknown","element.size":e.naturalWidth&&e.naturalHeight?`${e.naturalWidth}x${e.naturalHeight}`:void 0,"element.render_time":r,"element.load_time":i,"element.url":e.url||void 0,"element.identifier":e.identifier,"element.paint_type":t};!function(e,t){let r=tX();if(r.startSpan)return r.startSpan(e,t);let n=tQ(e),{forceTransaction:i,parentSpan:o,scope:a}=e,s=a?.clone();(0,S.$e)(s,()=>(void 0!==o?e=>tG(o,e):e=>e())(()=>{let r=(0,S.nZ)(),a=t0(r,o),s=e.onlyIfParent&&!a,u=s?new tL:tK({parentSpan:a,spanArguments:n,forceTransaction:i,scope:r});return(0,tU.D)(r,u),function(e,t,r=()=>{}){var n;let i;try{i=e()}catch(e){throw t(e),r(),e}return n=i,(0,en.J8)(n)?n.then(e=>(r(),e),e=>{throw t(e),r(),e}):(r(),n)}(()=>t(u),()=>{let{status:e}=(0,ee.XU)(u);u.isRecording()&&(!e||"ok"===e)&&u.setStatus({code:t$.jt,message:"internal_error"})},()=>{u.end()})}))}({name:`element[${e.identifier}]`,attributes:u,startTime:o,onlyIfParent:!0},e=>{e.end(o+s)})})},no="sentry_previous_trace";function na(e){return 1===e.traceFlags}var ns=r(15197);function nu(e={}){let t=e.client||(0,S.s3)();if(!(0,_._k)()||!t)return{};let r=(0,Y.cu)(),n=(0,tV.G)(r);if(n.getTraceData)return n.getTraceData(e);let i=e.scope||(0,S.nZ)(),o=e.span||(0,ee.HN)(),a=o?(0,ee.Hb)(o):function(e){let{traceId:t,sampled:r,propagationSpanId:n}=e.getPropagationContext();return(0,t4.$p)(t,n,r)}(i),s=o?(0,$.jC)(o):(0,$.CG)(t,i),u=(0,ns.IQ)(s),l=t4.Ke.test(a);return l?{"sentry-trace":a,baggage:u}:(b.fF.warn("Invalid sentry-trace data. Cannot generate trace data"),{})}function nl(e){return e.split(",").some(e=>e.trim().startsWith(ns.lq))}function nc(e=0){return(((0,er.Z1)()||performance.timeOrigin)+e)/1e3}let nd=new WeakMap,nf=new Map,nh={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function np(e){let{url:t}=(0,ee.XU)(e).data;if(!t||"string"!=typeof t)return;let r=rH("resource",({entries:n})=>{n.forEach(n=>{if("resource"===n.entryType&&"initiatorType"in n&&"string"==typeof n.nextHopProtocol&&("fetch"===n.initiatorType||"xmlhttprequest"===n.initiatorType)&&n.name.endsWith(t)){let t=function(e){let t=[];if(void 0!=e.nextHopProtocol){let{name:r,version:n}=r3(e.nextHopProtocol);t.push(["network.protocol.version",n],["network.protocol.name",r])}return(0,er.Z1)()?[...t,["http.request.redirect_start",nc(e.redirectStart)],["http.request.fetch_start",nc(e.fetchStart)],["http.request.domain_lookup_start",nc(e.domainLookupStart)],["http.request.domain_lookup_end",nc(e.domainLookupEnd)],["http.request.connect_start",nc(e.connectStart)],["http.request.secure_connection_start",nc(e.secureConnectionStart)],["http.request.connection_end",nc(e.connectEnd)],["http.request.request_start",nc(e.requestStart)],["http.request.response_start",nc(e.responseStart)],["http.request.response_end",nc(e.responseEnd)]]:t}(n);t.forEach(t=>e.setAttribute(...t)),setTimeout(r)}})})}function ng(e){try{let t=new URL(e,eM.location.origin);return t.href}catch{return}}let nm={...t1,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,enableElementTiming:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,_experiments:{},...nh},nv=(e={})=>{let t,r;let n={name:void 0,source:void 0},i=eM.document,{enableInp:o,enableElementTiming:a,enableLongTask:s,enableLongAnimationFrame:u,_experiments:{enableInteractions:l,enableStandaloneClsSpans:d,enableStandaloneLcpSpans:v},beforeStartSpan:w,idleTimeout:x,finalTimeout:_,childSpanTimeout:E,markBackgroun
116dSpan:k,traceFetch:T,traceXHR:A,trackFetchStreamPerformance:P,shouldCreateSpanForRequest:O,enableHTTPTimings:M,ignoreResourceSpans:j,ignorePerformanceApiSpans:D,instrumentPageLoad:R,instrumentNavigation:U,detectRedirects:F,linkPreviousTrace:L,consistentTraceSampling:B,onRequestSpanStart:z}={...nm,...e};function H(e,r,o=!0){let a="pageload"===r.op,s=w?w(r):r,u=s.attributes||{};if(r.name!==s.name&&(u[eu.Zj]="custom",s.attributes=u),!o){let e=(0,er.yW)();tZ({...s,startTime:e}).end(e);return}n.name=s.name,n.source=u[eu.Zj];let l=t2(s,{idleTimeout:x,finalTimeout:_,childSpanTimeout:E,disableAutoFinish:a,beforeSpanEnd:r=>{t?.(),function(e,t){let r=r1(),n=(0,er.Z1)();if(!r?.getEntries||!n)return;let i=r2(n),o=r.getEntries(),{op:a,start_timestamp:s}=(0,ee.XU)(e);if(o.slice(r6).forEach(r=>{let n=r2(r.startTime),o=r2(Math.max(0,r.duration));if("navigation"!==a||!s||!(i+n<s))switch(r.entryType){case"navigation":["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(t=>{r8(e,r,t,i)}),r8(e,r,"secureConnection",i,"TLS/SSL"),r8(e,r,"fetch",i,"cache"),r8(e,r,"domainLookup",i,"DNS"),function(e,t,r){let n=r+r2(t.requestStart),i=r+r2(t.responseEnd),o=r+r2(t.responseStart);t.responseEnd&&(rJ(e,n,i,{op:"browser.request",name:t.name,attributes:{[eu.S3]:"auto.ui.browser.metrics"}}),rJ(e,o,i,{op:"browser.response",name:t.name,attributes:{[eu.S3]:"auto.ui.browser.metrics"}}))}(e,r,i);break;case"mark":case"paint":case"measure":{(function(e,t,r,n,i,o){if(["mark","measure"].includes(t.entryType)&&(0,I.U0)(t.name,o))return;let a=t8(!1),s=r2(a?a.requestStart:0),u=i+Math.max(r,s),l=i+r,c=l+n,d={[eu.S3]:"auto.resource.browser.metrics"};u!==l&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=u),function(e,t){try{let r=t.detail;if(!r)return;if("object"==typeof r){for(let[t,n]of Object.entries(r))if(n&&(0,en.pt)(n))e[`sentry.browser.measure.detail.${t}`]=n;else if(void 0!==n)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(n)}catch{}return}if((0,en.pt)(r)){e["sentry.browser.measure.detail"]=r;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(r)}catch{}}catch{}}(d,t),u<=c&&rJ(e,u,c,{name:t.name,op:t.entryType,attributes:d})})(e,r,n,o,i,t.ignorePerformanceApiSpans);let a=rd(),s=r.startTime<a.firstHiddenTime;"first-paint"===r.name&&s&&(r9.fp={value:r.startTime,unit:"millisecond"}),"first-contentful-paint"===r.name&&s&&(r9.fcp={value:r.startTime,unit:"millisecond"});break}case"resource":(function(e,t,r,n,i,o,a){if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let s=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(a?.includes(s))return;let u=e1(r),l={[eu.S3]:"auto.resource.browser.metrics"};r7(l,t,"transferSize","http.response_transfer_size"),r7(l,t,"encodedBodySize","http.response_content_length"),r7(l,t,"decodedBodySize","http.decoded_response_content_length");let c=t.deliveryType;null!=c&&(l["http.response_delivery_type"]=c);let d=t.renderBlockingStatus;if(d&&(l["resource.render_blocking_status"]=d),u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=r.includes(e3.location.origin),null!=t.nextHopProtocol){let{name:e,version:r}=r3(t.nextHopProtocol);l["network.protocol.name"]=e,l["network.protocol.version"]=r}let f=o+n;rJ(e,f,f+i,{name:r.replace(e3.location.origin,""),op:s,attributes:l})})(e,r,r.name,n,o,i,t.ignoreResourceSpans)}}),r6=Math.max(o.length-1,0),function(e){let t=e3.navigator;if(!t)return;let r=t.connection;r&&(r.effectiveType&&e.setAttribute("effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute("connectionType",r.type),rX(r.rtt)&&(r9["connection.rtt"]={value:r.rtt,unit:"millisecond"})),rX(t.deviceMemory)&&e.setAttribute("deviceMemory",`${t.deviceMemory} GB`),rX(t.hardwareConcurrency)&&e.setAttribute("hardwareConcurrency",String(t.hardwareConcurrency))}(e),"pageload"===a){(function(e){let t=t8(!1);if(!t)return;let{responseStart:r,requestStart:n}=t;n<=r&&(e["ttfb.requestTime"]={value:r-n,unit:"millisecond"})})(r9);let r=r9["mark.fid"];
116r&&r9.fid&&(rJ(e,r.value,r.value+r2(r9.fid.value),{name:"first input delay",op:"ui.action",attributes:{[eu.S3]:"auto.ui.browser.metrics"}}),delete r9["mark.fid"]),t.recordClsOnPageloadSpan||delete r9.cls,t.recordLcpOnPageloadSpan||delete r9.lcp,Object.entries(r9).forEach(([e,t])=>{!function(e,t,r,n=(0,ee.HN)()){let i=n&&(0,ee.Gx)(n);i&&(C.X&&b.fF.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${r}`),i.addEvent(e,{[eu.Wb]:t,[eu.E1]:r}))}(e,t.value,t.unit)}),e.setAttribute("performance.timeOrigin",i),e.setAttribute("performance.activationStart",t7()),p&&t.recordLcpOnPageloadSpan&&(p.element&&e.setAttribute("lcp.element",(0,eO.Rt)(p.element)),p.id&&e.setAttribute("lcp.id",p.id),p.url&&e.setAttribute("lcp.url",p.url.trim().slice(0,200)),null!=p.loadTime&&e.setAttribute("lcp.loadTime",p.loadTime),null!=p.renderTime&&e.setAttribute("lcp.renderTime",p.renderTime),e.setAttribute("lcp.size",p.size)),m?.sources&&t.recordClsOnPageloadSpan&&m.sources.forEach((t,r)=>e.setAttribute(`cls.source.${r+1}`,(0,eO.Rt)(t.node)))}p=void 0,m=void 0,r9={}}(r,{recordClsOnPageloadSpan:!d,recordLcpOnPageloadSpan:!v,ignoreResourceSpans:j,ignorePerformanceApiSpans:D}),(0,N.xp)(e,nx,void 0);let n=(0,S.nZ)(),i=n.getPropagationContext();n.setPropagationContext({...i,traceId:l.spanContext().traceId,sampled:(0,ee.Tt)(l),dsc:(0,$.jC)(r)})}});function c(){i&&["interactive","complete"].includes(i.readyState)&&e.emit("idleSpanEnableAutoFinish",l)}(0,N.xp)(e,nx,l),a&&i&&(i.addEventListener("readystatechange",()=>{c()}),c())}return{name:"BrowserTracing",setup(e){if(!function(){t3||(e.tag="sentry_tracingErrorCallback",t3=!0,tl(e),tf(e));function e(){let e=(0,ee.HN)(),t=e&&(0,ee.Gx)(e);if(t){let e="internal_error";C.X&&b.fF.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:t$.jt,message:e})}}}(),t=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:r}){let n=r1();if(n&&(0,er.Z1)()){n.mark&&e3.performance.mark("sentry-tracing-init");let i=rG("fid",({metric:e})=>{let t=e.entries[e.entries.length-1];if(!t)return;let r=r2((0,er.Z1)()),n=r2(t.startTime);r9.fid={value:e.value,unit:"millisecond"},r9["mark.fid"]={value:r+n,unit:"second"}},r$,c),o=t?function(e){let t,r=0;if(!r4("largest-contentful-paint"))return;let n=rz(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);r5(e,(e,i)=>{(function(e,t,r,n){let i=r2(((0,er.Z1)()||0)+(t?.startTime||0)),o=(0,S.nZ)().getScopeData().transactionName,a=t?(0,eO.Rt)(t.element):"Largest contentful paint",s={[eu.S3]:"auto.http.browser.lcp",[eu.$J]:"ui.webvital.lcp",[eu.JQ]:0,"sentry.pageload.span_id":r,"sentry.report_event":n};t&&(t.element&&(s["lcp.element"]=(0,eO.Rt)(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url.trim().slice(0,200)),null!=t.loadTime&&(s["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(s["lcp.renderTime"]=t.renderTime),null!=t.size&&(s["lcp.size"]=t.size));let u=r0({name:a,transaction:o,attributes:s,startTime:i});u&&(u.addEvent("lcp",{[eu.E1]:"millisecond",[eu.Wb]:e}),u.end(i))})(r,t,i,e),n()})}(r):rz(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(r9.lcp={value:e.value,unit:"millisecond"},p=t)},!0),a=rG("ttfb",({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(r9.ttfb={value:e.value,unit:"millisecond"})},rY,f),s=e?function(e){let t,r=0;if(!r4("layout-shift"))return;let n=rB(({metric:e})=>{let n=e.entries[e.entries.length-1];n&&(r=e.value,t=n)},!0);r5(e,(e,i)=>{(function(e,t,r,n){let i=r2(((0,er.Z1)()||0)+(t?.startTime||0)),o=(0,S.nZ)().getScopeData().transactionName,a=t?(0,eO.Rt)(t.sources[0]?.node):"Layout shift",s={[eu.S3]:"auto.http.browser.cls",[eu.$J]:"ui.webvital.cls",[eu.JQ]:t?.duration||0,"sentry.pageload.span_id":r,"sentry.report_event":n};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=(0,eO.Rt)(e.node)});let u=r0({name:a,transaction:o,attributes:s,startTime:i});u&&(u.addEvent("cls",{[eu.E1]:"",[eu.Wb]:e}),u.end(i))})(r,t,i,e),n()})}(r):rB(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(r9.cls={value:e.value,unit:""},m=t)},!0);return()=>{i(),o?.(),a(),s?.()}}return()=>void 0}({recordClsStandaloneSpans:d||!1,recordLcpStandaloneSpans:v||!1,client:e}),o&&function(){let e=r1();if(e&&(0,er.Z1)()){let e=rG("inp",nn,rZ,h)}}(),a&&function(){let e=r1();e&&(0,er.Z1)()&&rH("element",ni)}(),u&&y.n.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("long-animation-frame")?function(){let e=new PerformanceObserver(e=>{let t=(0,ee.HN)();if(t)for(let r of e.getEntries()){if(!r.scripts[0])continue;let e=r2((0,er.Z1)()+r.startTime),{start_timestamp:n,op:i}=(0,ee.XU)(t);if("navigation"===i&&n&&e<n)continue;let o=r2(r.duration),a={[eu.S3]:"auto.ui.browser.metrics"}
116,s=r.scripts[0],{invoker:u,invokerType:l,sourceURL:c,sourceFunctionName:d,sourceCharPosition:f}=s;a["browser.script.invoker"]=u,a["browser.script.invoker_type"]=l,c&&(a["code.filepath"]=c),d&&(a["code.function"]=d),-1!==f&&(a["browser.script.source_char_position"]=f),rJ(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:a})}});e.observe({type:"long-animation-frame",buffered:!0})}():s&&rH("longtask",({entries:e})=>{let t=(0,ee.HN)();if(!t)return;let{op:r,start_timestamp:n}=(0,ee.XU)(t);for(let i of e){let e=r2((0,er.Z1)()+i.startTime),o=r2(i.duration);"navigation"===r&&n&&e<n||rJ(t,e,e+o,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[eu.S3]:"auto.ui.browser.metrics"}})}}),l&&rH("event",({entries:e})=>{let t=(0,ee.HN)();if(t){for(let r of e)if("click"===r.name){let e=r2((0,er.Z1)()+r.startTime),n=r2(r.duration),i={name:(0,eO.Rt)(r.target),op:`ui.interaction.${r.name}`,startTime:e,attributes:{[eu.S3]:"auto.ui.browser.metrics"}},o=(0,eO.iY)(r.target);o&&(i.attributes["ui.component_name"]=o),rJ(t,e,e+n,i)}}}),F&&i){let e=()=>{r=(0,er.ph)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function n(){let t=e[nx];t&&!(0,ee.XU)(t).timestamp&&(t.setAttribute(eu.ju,"cancelled"),t.end())}e.on("startNavigationSpan",(t,r)=>{if((0,S.s3)()!==e)return;if(r?.isRedirect){H(e,{op:"navigation.redirect",...t},!1);return}n(),(0,S.aF)().setPropagationContext({traceId:(0,tF.H)(),sampleRand:Math.random()});let i=(0,S.nZ)();i.setPropagationContext({traceId:(0,tF.H)(),sampleRand:Math.random()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),H(e,{op:"navigation",...t})}),e.on("startPageLoadSpan",(t,r={})=>{if((0,S.s3)()!==e)return;n();let i=r.sentryTrace||nw("sentry-trace"),o=r.baggage||nw("baggage"),a=(0,t4.pT)(i,o),s=(0,S.nZ)();s.setPropagationContext(a),s.setSDKProcessingMetadata({normalizedRequest:eR()}),H(e,{op:"pageload",...t})})},afterAllSetup(e){let t=(0,eO.l4)();if("off"!==L&&function(e,{linkPreviousTrace:t,consistentTraceSampling:r}){let n="session-storage"===t,i=n?function(){try{let e=eM.sessionStorage?.getItem(no);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,ee.Gx)(e)!==e)return;let t=(0,S.nZ)().getPropagationContext();i=function(e,t,r){let n=(0,ee.XU)(t),i={spanContext:t.spanContext(),startTimestamp:n.start_timestamp,sampleRate:function(){try{return Number(r.dsc?.sample_rate)??Number(n.data?.[eu.TE])}catch{return 0}}(),sampleRand:r.sampleRand};if(!e)return i;let o=e.spanContext;return o.traceId===n.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(t.addLink({context:o,attributes:{[eu.lH]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${o.traceId}-${o.spanId}-${na(o)?1:0}`)),i)}(i,e,t),n&&function(e){try{eM.sessionStorage.setItem(no,JSON.stringify(e))}catch(e){}}(i)});let o=!0;r&&e.on("beforeSampling",e=>{if(!i)return;let t=(0,S.nZ)(),r=t.getPropagationContext();if(o&&r.parentSpanId){o=!1;return}t.setPropagationContext({...r,dsc:{...r.dsc,sample_rate:String(i.sampleRate),sampled:String(na(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=na(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[eu.iT]:i.sampleRate}})}(e,{linkPreviousTrace:L,consistentTraceSampling:B}),eM.location){if(R){let t=(0,er.Z1)();ny(e,{name:eM.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eu.Zj]:"url",[eu.S3]:"auto.pageload.browser"}})}U&&e7(({to:n,from:i})=>{if(void 0===i&&-1!==t?.indexOf(n)){t=void 0;return}t=void 0;let o=e0(n),a=e[nx],s=a&&F&&function(e,t){let r=(0,ee.XU)(e),n=(0,er.yW)(),i=r.start_timestamp;return!(n-i>.3)&&(!t||!(n-t<=.3))}(a,r);nb(e,{name:o?.pathname||eM.location.pathname,attributes:{[eu.Zj]:"url",[eu.S3]:"auto.navigation.browser"}},{url:n,isRedirect:s})})}k&&eM.document&&eM.document.addEventListener("visibilitychange",()=>{let e=(0,ee.HN)();if(!e)return;let t=(0,ee.Gx)(e);if(eM.document.hidden&&t){let{op:e,status:r}=(0,ee.XU)(t);r||t.setStatus({code:t$.jt,message:"cancelled"}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}),l&&function(e,t,r,n,i){let o;let a=eM.document,s=()=>{let a=e[nx];if(a){let e=(0,ee.XU)(a).op;
116if(["navigation","pageload"].includes(e))return}o&&(o.setAttribute(eu.ju,"interactionInterrupted"),o.end(),o=void 0),i.name&&(o=t2({name:i.name,op:"ui.action.click",attributes:{[eu.Zj]:i.source||"url"}},{idleTimeout:t,finalTimeout:r,childSpanTimeout:n}))};a&&addEventListener("click",s,{capture:!0})}(e,x,_,E,n),o&&function(){let e=({entries:e})=>{let t=(0,ee.HN)(),r=t&&(0,ee.Gx)(t);e.forEach(e=>{if(!("duration"in e)||!r)return;let t=e.interactionId;if(!(null==t||nt.has(t))){if(ne.length>10){let e=ne.shift();nt.delete(e)}ne.push(t),nt.set(t,r)}})};rH("event",e),rH("first-input",e)}(),function(e,t){let{traceFetch:r,traceXHR:n,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:o,enableHTTPTimings:a,tracePropagationTargets:s,onRequestSpanStart:u}={...nh,...t},l="function"==typeof o?o:e=>!0,c=e=>(function(e,t){let r=(0,eO.l4)();if(r){let n,i;try{n=new URL(e,r),i=new URL(r).origin}catch{return!1}let o=n.origin===i;return t?(0,I.U0)(n.toString(),t)||o&&(0,I.U0)(n.pathname,t):o}{let r=!!e.match(/^\/(?!\/)/);return t?(0,I.U0)(e,t):r}})(e,s),d={};r&&(e.addEventProcessor(e=>("transaction"===e.type&&e.spans&&e.spans.forEach(e=>{if("http.client"===e.op){let t=nf.get(e.span_id);t&&(e.timestamp=t/1e3,nf.delete(e.span_id))}}),e)),i&&function(e){let t="fetch-body-resolved";eL(t,e),eB(t,()=>eV(eZ))}(e=>{if(e.response){let t=nd.get(e.response);t&&e.endTimestamp&&nf.set(t,e.endTimestamp)}}),e$(e=>{let t=function(e,t,r,n,i="auto.http.browser"){if(!e.fetchData)return;let{method:o,url:a}=e.fetchData,s=(0,tN.f)()&&t(a);if(e.endTimestamp&&s){let t=e.fetchData.__span;if(!t)return;let r=n[t];r&&(function(e,t){if(t.response){(0,t$.Q0)(e,t.response.status);let r=t.response?.headers?.get("content-length");if(r){let t=parseInt(r);t>0&&e.setAttribute("http.response_content_length",t)}}else t.error&&e.setStatus({code:t$.jt,message:"internal_error"});e.end()}(r,e),delete n[t]);return}let u=!!(0,ee.HN)(),l=s&&u?tZ(function(e,t,r){let n=e0(e);return{name:n?`${t} ${function(e){if(eJ(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}(n)}`:t,attributes:function(e,t,r,n){let i={url:e,type:"fetch","http.method":r,[eu.S3]:n,[eu.$J]:"http.client"};return t&&(eJ(t)||(i["http.url"]=t.href,i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}(e,n,t,r)}}(a,o,i)):new tL;if(e.fetchData.__span=l.spanContext().spanId,n[l.spanContext().spanId]=l,r(e.fetchData.url)){let t=e.args[0],r=e.args[1]||{},n=function(e,t,r){let n=nu({span:r}),i=n["sentry-trace"],o=n.baggage;if(!i)return;let a=t.headers||((0,en.gJ)(e)?e.headers:void 0);if(!a)return{...n};if("undefined"!=typeof Headers&&(0,en.V9)(a,Headers)){let e=new Headers(a);if(e.get("sentry-trace")||e.set("sentry-trace",i),o){let t=e.get("baggage");t?nl(t)||e.set("baggage",`${t},${o}`):e.set("baggage",o)}return e}if(Array.isArray(a)){let e=[...a];a.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",i]);let t=a.find(e=>"baggage"===e[0]&&nl(e[1]));return o&&!t&&e.push(["baggage",o]),e}{let e="sentry-trace"in a?a["sentry-trace"]:void 0,t="baggage"in a?a.baggage:void 0,r=t?Array.isArray(t)?[...t]:[t]:[],n=t&&(Array.isArray(t)?t.find(e=>nl(e)):nl(t));return o&&!n&&r.push(o),{...a,"sentry-trace":e??i,baggage:r.length>0?r.join(","):void 0}}}(t,r,(0,tN.f)()&&u?l:void 0);n&&(e.args[1]=r,r.headers=n)}let c=(0,S.s3)();if(c){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};c.emit("beforeOutgoingRequestSpan",l,t)}return l}(e,l,c,d);if(e.response&&e.fetchData.__span&&nd.set(e.response,e.fetchData.__span),t){let r=ng(e.fetchData.url),n=r?e1(r).host:void 0;t.setAttributes({"http.url":r,"server.address":n}),a&&np(t),u?.(t,{headers:e.headers})}})),n&&e9(e=>{let t=function(e,t,r,n){let i=e.xhr,o=i?.[e6];if(!i||i.__sentry_own_request__||!o)return;let{url:a,method:s}=o,u=(0,tN.f)()&&t(a);if(e.endTimestamp&&u){let e=i.__sentry_xhr_span_id__;if(!e)return;let t=n[e];t&&void 0!==o.status_code&&((0,t$.Q0)(t,o.status_code),t.end(),delete n[e]);return}let l=ng(a),c=l?e1(l):e1(a),d=e2(a),f=!!(0,ee.HN)(),h=u&&f?tZ({name:`${s} ${d}`,attributes:{url:a,type:"xhr","http.method":s,"http.url":l,"server.address":c?.host,[eu.S3]:"auto.http.browser",[eu.$J]:"http.client",...c?.search&&{"http.query":c?.search},...c?.hash&&{"http.fragment":c?.hash}}}):new tL;i.__sentry_xhr_span_id__=h.spanContext().spanId,n[i.__sentry_xhr_span_id__]=h,r(a)&&function(e,t){let{"sentry-trace":r,baggage:n}=nu({span:t});r&&function(e,t,r){let n=e.__sentry_xhr_v3__?.request_headers;if(!n?.["sentry-trace"])try{if(e.setRequestHeader("sentry-trace",t),r){let t=n?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",r)}}catch{}}(e,r,n)}(i,(0,tN.f)()&&f?h:void 0);let p=(0,S.s3)();return p&&p.emit("beforeOutgoingRequestSpan",h,e),h}(e,l,c,d);if(t){let r;a&&np(t);try{r=new Headers(e.xhr.__sentry_xhr_v3__?.request_headers)}catch{}u?.(t,{headers:r})}})}(e,{traceFetch:T,traceXHR:A,trackFetchStreamPerformance:P,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:O,enableHTTPTimings:M,onRequestSpanStart:z})}}};function ny(e,t,r){e.emit("startPageLoadSpan",t,r),(0,S.nZ)().setTransactionName(t.name);let n=e[nx];return n&&e.emit("afterStartPageLoadSpan",n),n}function nb(e,t,r){let{url:n,isRedirect:i}=r||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i}),e.emit("startNavigationSpan",t,{isRedirect:i});let o=(0,S.nZ)();return o.setTransactionName(t.name),n&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...eR(),url:n}}),e[nx]}function nw(e){let t=eM.document,r=t?.querySelector(`meta[name=${e}]`);return r?.getAttribute("content")||void 0}let nx="_sentry_idleSpan",n_=y.n,nS=null,nC=new Map,nE=new Map;
116function nk(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return r}let nT=e=>{let t=function(){if(!n_?._sentryRouteManifest||"string"!=typeof n_._sentryRouteManifest)return null;let e=n_._sentryRouteManifest;if(nS&&v===e)return nS;nC.clear(),nE.clear();let t={staticRoutes:[],dynamicRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return nS=t,v=e,t}catch{return null}}();if(!t)return;if(nE.has(e))return nE.get(e);let{staticRoutes:r,dynamicRoutes:n}=t;if(!Array.isArray(r)||!Array.isArray(n))return;let i=function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=function(e){if(nC.has(e))return nC.get(e)??null;try{let t=RegExp(e);return nC.set(e,t),t}catch(e){return null}}(t.regex);r?.test(e)&&n.push(t.path)}return n}(e,r,n),o=i.sort((e,t)=>nk(e)-nk(t))[0];return nE.set(e,o),o},nA="incomplete-app-router-transaction",nP={current:void 0},nI=y.n;function nO(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let nM=new WeakSet;function nj(e,t,r){nM.has(t)||(nM.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,i,o){let a=nA,s={[eu.$J]:"navigation",[eu.S3]:"auto.navigation.nextjs.app_router_instrumentation",[eu.Zj]:"url"};"push"===n?(a=nO(o[0]),s["navigation.type"]="router.push"):"replace"===n?(a=nO(o[0]),s["navigation.type"]="router.replace"):"back"===n?s["navigation.type"]="router.back":"forward"===n&&(s["navigation.type"]="router.forward");let u=nT(a);return r.current=nb(e,{name:u??a,attributes:{...s,[eu.Zj]:u?"route":"url"}}),t.apply(i,o)}}))}))}var nD=r(11163);let nR=nD.events?nD:nD.default,nN=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function nU(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:"/";i&&(t=`${i}/${t}`,r="/"===i.charAt(0))}return t=(function(e,t){let r=0;for(let t=e.length-1;t>=0;t--){let n=e[t];"."===n?e.splice(t,1):".."===n?(e.splice(t,1),r++):r&&(e.splice(t,1),r--)}if(t)for(;r--;r)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!r).join("/"),(r?"/":"")+t||"."}function nF(e){let t=0;for(;t<e.length&&""===e[t];t++);let r=e.length-1;for(;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}let nL=(e={})=>{let t=e.root,r=e.prefix||"app:///",n="window"in y.n&&!!y.n.window,i=e.iteratee||function({isBrowser:e,root:t,prefix:r}){return n=>{if(!n.filename)return n;let i=/^[a-zA-Z]:\\/.test(n.filename)||n.filename.includes("\\")&&!n.filename.includes("/"),o=/^\//.test(n.filename);if(e){if(t){let e=n.filename;0===e.indexOf(t)&&(n.filename=e.replace(t,r))}}else if(i||o){var a;let e;let o=i?n.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):n.filename,s=t?function(e,t){e=nU(e).slice(1),t=nU(t).slice(1);let r=nF(e.split("/")),n=nF(t.split("/")),i=Math.min(r.length,n.length),o=i;for(let e=0;e<i;e++)if(r[e]!==n[e]){o=e;break}let a=[];for(let e=o;e<r.length;e++)a.push("..");return(a=a.concat(n.slice(o))).join("/")}(t,o):(e=function(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,r=nN.exec(t);return r?r.slice(1):[]}(o)[2]||"",a&&e.slice(-1*a.length)===a&&(e=e.slice(0,e.length-a.length)),e);n.filename=`${r}${s}`}return n}}({isBrowser:n,root:t,prefix:r});return{name:"RewriteFrames",processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>{var t;return{...e,...e.stacktrace&&{stacktrace:{...t=e.stacktrace,frames:t?.frames?.map(e=>i(e))}}}})}}}catch{return e}}(t)),t}}},nB=({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>{let i=nL({iteratee:i=>{if(n){let r="undefined"!=typeof window&&window.location?window.location.origin:"";if(i.filename?.startsWith(r)&&!i.filename.endsWith(".js"))return i;if(e)i.filename?.startsWith(e)&&(i.filename=i.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(i.filename);e===r&&(i.filename=i.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(i.filename);i.filename=i.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(i.filename?.includes("/_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)):(i.filename?.startsWith("app:///_next")&&(i.filename=decodeURI(i.filename)),i.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(i.in_app=!1)),i}});return{...i,name:"NextjsClientStackFrameNormalization"}};var nz=r(83454);let nH=y.n;var nq=r(83454);let nW=!1,n$=y.n;var nV=r(83454);globalThis._sentryRewritesTunnelPath=void 0,globalThis.SENTRY_RELEASE={id:"c3f5c6bc79855e0f296b5911f69624786dd03b1b"},globalThis._sentryBasePath=void 0,globalThis._sentryRewriteFramesAssetPrefixPath="",globalThis._sentryAssetPrefix=void 0,globalThis._sentryExperimentalThirdPartyOriginStackFrames=void 0,globalThis._sentryRouteManifest='{"dynamicRoutes":[],"staticRoutes":[]}',function(e){nW&&(0,b.Cf)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),nW=!0;let t={environment:function(e){let t=e?tR.env.NEXT_PUBLIC_VERCEL_ENV:tR.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}(!0)||"production",defaultIntegrations:function(e){let t=tj(e);("undefined"==typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&t.push(function(e={}){let t=nv({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){let t=!eM.document.getElementById("__NEXT_DATA__");t?!function(e){eM.addEventListener("popstate",()=>{let t=nT(eM.location.pathname);nP.current?.isRecording()?(nP.current.updateName(t??eM.location.pathname),nP.current.setAttribute(eu.Zj,t?"route":"url")):nP.current=nb(e,{name:t??eM.location.pathname,attributes:{[eu.S3]:"auto.navigation.nextjs.app_router_instrumentation",[eu.Zj]:t?"route":"url","navigation.type":"browser.popstate"}})});let t=!1,r=0,n=setInterval(()=>{r++;let i=nI?.next?.router??nI?.nd?.router;t||r>500?clearInterval(n):i&&(clearInterval(n),t=!0,nj(e,i,nP),["nd","next"].forEach(t=>{let r=nI[t];r&&(nI[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&nj(e,n,nP),t[r]=n,!0)}))}))},20)}(e):nR.events.on("routeChangeStart",t=>{let r,n;let i=e2(t),o=function(e){let t=eM.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r=function(e){let t=e.split("/"),r="";t[t.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),r="(?:/(.+?))?");let n=t.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/");return RegExp(`^${n}${r}(?:/)?$`)}(t);return e.match(r)})}(i);o?(r=o,n="route"):(r=i,n="url"),nb(e,{name:r,attributes:{[eu.$J]:"navigation",[eu.S3]:"auto.navigation.nextjs.pages_router_instrumentation",[eu.Zj]:n}})})}(e),t.afterAllSetup(e),r&&function(e){let t=!eM.document.getElementById("__NEXT_DATA__");t?function(e){let t=nT(eM.location.pathname),r=(0,er.Z1)();ny(e,{name:t??eM.location.pathname,startTime:r?r/1e3:void 0,attributes:{[eu.$J]:"pageload",[eu.S3]:"auto.pageload.nextjs.app_router_instrumentation",[eu.Zj]:t?"route":"url"}})}(e):function(e){let{route:t,params:r,sentryTrace:n,baggage:i}=function(){let e;let t=eM.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{}if(!e)return{};let r={},{page:n,query:i,props:o}=e;return r.route=n,r.params=i,o?.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}(),o=(0,ns.XM)(i),a=t||eM.location.pathname;o?.["sentry-transaction"]&&"/_error"===a&&(a=(a=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,er.Z1)();ny(e,{name:a,startTime:s?s/1e3:void 0,attributes:{[eu.$J]:"pageload",[eu.S3]:"auto.pageload.nextjs.pages_router_instrumentation",[eu.Zj]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:i})}(e)}(e)}}}());let r=n$._sentryRewriteFramesAssetPrefixPath||"",n=nq.env._sentryAssetPrefix||n$._sentryAssetPrefix,i=nq.env._sentryBasePath||n$._sentryBasePath,o="true"===nq.env._experimentalThirdPartyOriginStackFrames||"true"===n$._experimentalThirdPartyOriginStackFrames;return t.push(nB({assetPrefix:n,basePath:i,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:o})),t}(e),release:"c3f5c6bc79855e0f296b5911f69624786dd03b1b",...e};(function(e){let t=nz.env._sentryRewritesTunnelPath||nH._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,V.U4)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let i=n[1],o=n[2],a=`${t}?o=${i}&p=${r.projectId}`;o&&(a+=`&r=${o}`),e.tunnel=a}}})(t),x(t,"nextjs",["nextjs","react"]),function(e){let t={...e};
116x(t,"react"),(0,_.v)("react",{version:tD.version}),function(e={}){let t=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===eM.window||eM.nw)return!1;let e=eM.chrome||eM.browser;if(!e?.runtime?.id)return!1;let t=(0,eO.l4)(),r=eM===eM.top&&["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"].some(e=>t.startsWith(`${e}://`));return!r}(),r={...e,enabled:!t&&e.enabled,stackParser:(0,L.Sq)(e.stackParser||tA),integrations:function(e){let t;let r=e.defaultIntegrations||[],n=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(n))t=[...r,...n];else if("function"==typeof n){let e=n(r);t=Array.isArray(e)?e:[e]}else t=r;return function(e){let t={};return e.forEach(e=>{let{name:r}=e,n=t[r];n&&!n.isDefaultInstance&&e.isDefaultInstance||(t[r]=e)}),Object.values(t)}(t)}({integrations:e.integrations,defaultIntegrations:null==e.defaultIntegrations?tj():e.defaultIntegrations}),transport:e.transport||tM};(function(e,t){!0===t.debug&&(C.X?b.fF.enable():(0,b.Cf)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}));let r=(0,S.nZ)();r.update(t.initialScope);let n=new e(t);(0,S.nZ)().setClient(n),n.init()})(eN,r)}(t)}(t);let r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",(0,_.Qy)(r);let n=e=>"transaction"===e.type&&e.transaction===nA?null:e;n.id="IncompleteTransactionFilter",(0,_.Qy)(n);let i=(e,t)=>{var r;return(r=t?.originalException,(0,en.VZ)(r)&&"string"==typeof r.digest&&r.digest.startsWith("NEXT_REDIRECT;")||e.exception?.values?.[0]?.value==="NEXT_REDIRECT")?null:e};i.id="NextRedirectErrorFilter",(0,_.Qy)(i);try{nq.turbopack&&(0,S.lW)().setTag("turbopack",!0)}catch{}}({enabled:!0,environment:"production",dsn:nV.env.SENTRY_DSN||"https://[email protected]/1",tracesSampleRate:1,debug:!1,ignoreErrors:["NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.","Failed to execute 'removeChild' on 'Node'","Cannot read property 'removeChild' of null","Cannot read properties of null (reading 'removeChild')",/Invariant/,"Invariant: attempted to hard navigate to the same URL","Hydration failed because the initial UI does not match what was rendered on the server","Text content does not match server-rendered HTML","Prop `dangerouslySetInnerHTML` did not match","A tree hydrated but some attributes of the server-rendered HTML didn't match the client properties","There was an error while hydrating","Error while hydrating","Hydration error","Hydration mismatch",/Hydration.*failed/i,/Hydration.*mismatch/i,/hydration.*error/i,/server.*rendered.*html.*match/i,/initial.*ui.*match.*server/i,/client.*properties.*match/i,/attributes.*server.*rendered.*html.*match/i,"Minified React error #418","Minified React error #419","Minified React error #421","Minified React error #422","Minified React error #423","Minified React error #425","Minified React error #427",/Minified React error #[0-9]+/,"visit https://reactjs.org/docs/error-decoder.html","reactjs.org/docs/error-decoder.html",/ChunkLoadError/,/Loading chunk \d+ failed/,/Loading CSS chunk \d+ failed/,"Loading chunk","ChunkLoadError: Loading chunk","NetworkError","Failed to fetch","Load failed","The operation was aborted","AbortError","TimeoutError","Non-Error exception captured","Script error",/extension\//i,/^moz-extension:\/\//,/^chrome-extension:\/\//,/^webkit-masked-url:/,/^safari-web-extension:/,"Invalid call to runtime.sendMessage(). Tab not found.",/Error.*Invalid call to runtime\.sendMessage/,/TypeError.*Illegal invocation/,/TypeError.*undefined is not an object.*window\.webkit/,/TypeError.*window\.webkit\.messageHandlers/,"Java object is gone",/Error.*Java object is gone/,"Unable to store cookie",/Error.*Unable to store cookie/,"ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications","Maximum call stack size exceeded",/RangeError.*Maximum call stack size exceeded/,"Method not found",/Error.*Method not found/,/TypeError.*is not a function/,/TypeError.*MC\(\)\.getRestrictions is not a function/,"facebook.com","google-analytics.com","googletagmanager.com","googlesyndication.com","google.com/recaptcha","gstatic.
116com","doubleclick.net","analytics.js","gtag","fbevents.js","blocked by client","adnxs.com","adsystem.com","googlesyndication","UnhandledPromiseRejectionWarning","webkit.org/b/","Permission denied","Access is denied","Object doesn't support property","Can't find variable","undefined is not an object","null is not an object","DevTools","__REACT_DEVTOOLS_GLOBAL_HOOK__","window is not defined","document is not defined","localStorage is not defined","sessionStorage is not defined","stripe.com","js.stripe.com",/Non-Error (exception|promise rejection) captured/i,/Script error\.?$/,/.*\.js$/,/Unexpected token/,/SyntaxError.*Unexpected/,/TypeError.*Cannot read propert/,/ReferenceError.*is not defined/]})},4210:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRouter=function(){return n.useContext(i.RouterContext)};var n=r(67294),i=r(72692);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10227:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,r,n){return!1},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},19749:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,i=r(92648).Z,o=r(91598).Z,a=r(17273).Z,s=o(r(67294)),u=i(r(83121)),l=r(2675),c=r(10139),d=r(28730);r(57238);var f=i(r(89824));let h={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function p(e){return void 0!==e.default}function m(e){return"number"==typeof e||void 0===e?e:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}
116function v(e,t,r,i,o,a,s){if(!e||e["data-loaded-src"]===t)return;e["data-loaded-src"]=t;let u="decode"in e?e.decode():Promise.resolve();u.catch(()=>{}).then(()=>{if(e.parentNode){if("blur"===r&&a(!0),null==i?void 0:i.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;i.current(n({},t,{nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}}))}(null==o?void 0:o.current)&&o.current(e)}})}let y=s.forwardRef((e,t)=>{var{imgAttributes:r,heightInt:i,widthInt:o,qualityInt:u,className:l,imgStyle:c,blurStyle:d,isLazy:f,fill:h,placeholder:p,loading:m,srcString:y,config:b,unoptimized:w,loader:x,onLoadRef:_,onLoadingCompleteRef:S,setBlurComplete:C,setShowAltText:E,onLoad:k,onError:T}=e,A=a(e,["imgAttributes","heightInt","widthInt","qualityInt","className","imgStyle","blurStyle","isLazy","fill","placeholder","loading","srcString","config","unoptimized","loader","onLoadRef","onLoadingCompleteRef","setBlurComplete","setShowAltText","onLoad","onError"]);return m=f?"lazy":m,s.default.createElement(s.default.Fragment,null,s.default.createElement("img",Object.assign({},A,r,{width:o,height:i,decoding:"async","data-nimg":h?"fill":"1",className:l,loading:m,style:n({},c,d),ref:s.useCallback(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(T&&(e.src=e.src),e.complete&&v(e,y,p,_,S,C,w))},[y,p,_,S,C,T,w,t]),onLoad:e=>{let t=e.currentTarget;v(t,y,p,_,S,C,w)},onError:e=>{E(!0),"blur"===p&&C(!0),T&&T(e)}})))}),b=s.forwardRef((e,t)=>{let r,i;var o,{src:v,sizes:b,unoptimized:w=!1,priority:x=!1,loading:_,className:S,quality:C,width:E,height:k,fill:T,style:A,onLoad:P,onLoadingComplete:I,placeholder:O="empty",blurDataURL:M,layout:j,objectFit:D,objectPosition:R,lazyBoundary:N,lazyRoot:U}=e,F=a(e,["src","sizes","unoptimized","priority","loading","className","quality","width","height","fill","style","onLoad","onLoadingComplete","placeholder","blurDataURL","layout","objectFit","objectPosition","lazyBoundary","lazyRoot"]);let L=s.useContext(d.ImageConfigContext),B=s.useMemo(()=>{let e=h||L||c.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),r=e.deviceSizes.sort((e,t)=>e-t);return n({},e,{allSizes:t,deviceSizes:r})},[L]),z=F,H=z.loader||f.default;delete z.loader;let q="__next_img_default"in H;if(q){if("custom"===B.loader)throw Error('Image with src "'.concat(v,'" is missing "loader" prop.')+"\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader")}else{let e=H;H=t=>{let{config:r}=t,n=a(t,["config"]);return e(n)}}if(j){"fill"===j&&(T=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[j];e&&(A=n({},A,e));let t={responsive:"100vw",fill:"100vw"}[j];t&&!b&&(b=t)}let W="",$=m(E),V=m(k);if("object"==typeof(o=v)&&(p(o)||void 0!==o.src)){let e=p(v)?v.default:v;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ".concat(JSON.stringify(e)));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ".concat(JSON.stringify(e)));if(r=e.blurWidth,i=e.blurHeight,M=M||e.blurDataURL,W=e.src,!T){if($||V){if($&&!V){let t=$/e.width;V=Math.round(e.height*t)}else if(!$&&V){let t=V/e.height;$=Math.round(e.width*t)}}else $=e.width,V=e.height}}let Y=!x&&("lazy"===_||void 0===_);((v="string"==typeof v?v:W).startsWith("data:")||v.startsWith("blob:"))&&(w=!0,Y=!1),B.unoptimized&&(w=!0),q&&v.endsWith(".svg")&&!B.dangerouslyAllowSVG&&(w=!0);let[Z,G]=s.useState(!1),[K,Q]=s.useState(!1),X=m(C),J=Object.assign(T?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:D,objectPosition:R}:{},K?{}:{color:"transparent"},A),ee="blur"===O&&M&&!Z?{backgroundSize:J.objectFit||"cover",backgroundPosition:J.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:'url("data:image/svg+xml;charset=utf-8,'.concat(l.getImageBlurSvg({widthInt:$,heightInt:V,blurWidth:r,blurHeight:i,blurDataURL:M}),'")')}:{}
116,et=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:s}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:u,kind:l}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);n)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}if("number"!=typeof t)return{widths:n,kind:"w"};let o=[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))];return{widths:o,kind:"x"}}(t,i,a),c=u.length-1;return{sizes:a||"w"!==l?a:"100vw",srcSet:u.map((e,n)=>"".concat(s({config:t,src:r,quality:o,width:e})," ").concat("w"===l?e:n+1).concat(l)).join(", "),src:s({config:t,src:r,quality:o,width:u[c]})}}({config:B,src:v,unoptimized:w,width:$,quality:X,sizes:b,loader:H}),er=v,en={imageSrcSet:et.srcSet,imageSizes:et.sizes,crossOrigin:z.crossOrigin},ei=s.useRef(P);s.useEffect(()=>{ei.current=P},[P]);let eo=s.useRef(I);s.useEffect(()=>{eo.current=I},[I]);let ea=n({isLazy:Y,imgAttributes:et,heightInt:V,widthInt:$,qualityInt:X,className:S,imgStyle:J,blurStyle:ee,loading:_,config:B,fill:T,unoptimized:w,placeholder:O,loader:H,srcString:er,onLoadRef:ei,onLoadingCompleteRef:eo,setBlurComplete:G,setShowAltText:Q},z);return s.default.createElement(s.default.Fragment,null,s.default.createElement(y,Object.assign({},ea,{ref:t})),x?s.default.createElement(u.default,null,s.default.createElement("link",Object.assign({key:"__nimg-"+et.src+et.srcSet+et.sizes,rel:"preload",as:"image",href:et.srcSet?void 0:et.src},en))):null)});t.default=b,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31551:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(92648).Z,i=r(17273).Z,o=n(r(67294)),a=r(41003),s=r(67795),u=r(54465),l=r(72692),c=r(48245),d=r(69246),f=r(10227),h=r(33468);let p=new Set;function m(e,t,r,n){if(a.isLocalURL(t)){if(!n.bypassPrefetchedCheck){let i=void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0,o=t+"%"+r+"%"+i;if(p.has(o))return;p.add(o)}Promise.resolve(e.prefetch(t,r,n)).catch(e=>{})}}function v(e){return"string"==typeof e?e:s.formatUrl(e)}let y=o.default.forwardRef(function(e,t){let r,n;let{href:s,as:p,children:y,prefetch:b,passHref:w,replace:x,shallow:_,scroll:S,locale:C,onClick:E,onMouseEnter:k,onTouchStart:T,legacyBehavior:A=!1}=e,P=i(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);r=y,A&&("string"==typeof r||"number"==typeof r)&&(r=o.default.createElement("a",null,r));let I=!1!==b,O=o.default.useContext(l.RouterContext),M=o.default.useContext(c.AppRouterContext),j=null!=O?O:M,D=!O,{href:R,as:N}=o.default.useMemo(()=>{if(!O){let e=v(s);return{href:e,as:p?v(p):e}}let[e,t]=a.resolveHref(O,s,!0);return{href:e,as:p?a.resolveHref(O,p):t||e}},[O,s,p]),U=o.default.useRef(R),F=o.default.useRef(N);A&&(n=o.default.Children.only(r));let L=A?n&&"object"==typeof n&&n.ref:t,[B,z,H]=d.useIntersection({rootMargin:"200px"}),q=o.default.useCallback(e=>{(F.current!==N||U.current!==R)&&(H(),F.current=N,U.current=R),B(e),L&&("function"==typeof L?L(e):"object"==typeof L&&(L.current=e))},[N,L,R,H,B]);o.default.useEffect(()=>{j&&z&&I&&m(j,R,N,{locale:C})},[N,R,z,C,I,null==O?void 0:O.locale,j]);let W={ref:q,onClick(e){A||"function"!=typeof E||E(e),A&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),j&&!e.defaultPrevented&&function(e,t,r,n,i,s,u,l,c,d){let{nodeName:f}=e.currentTarget,h="A"===f.toUpperCase();if(h&&(function(e){let{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!a.isLocalURL(r)))return;e.preventDefault();let p=()=>{"beforePopState"in t?t[i?"replace":"push"](r,n,{shallow:s,locale:l,scroll:u}):t[i?"replace":"push"](n||r,{forceOptimisticNavigation:!d})};c?o.default.startTransition(p):p()}(e,j,R,N,x,_,S,C,D,I)},onMouseEnter(e){A||"function"!=typeof k||k(e),A&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),j&&(I||!D)&&m(j,R,N,{locale:C,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart(e){A||"function"!=typeof T||T(e),A&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),j&&(I||!D)&&m(j,R,N,{locale:C,priority:!0,bypassPrefetchedCheck:!0})}};if(!A||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==C?C:null==O?void 0:O.locale,t=(null==O?void 0:O.isLocaleDomain)&&f.getDomainLocale(N,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);W.href=t||h.addBasePath(u.addLocale(N,e,null==O?void 0:O.defaultLocale))}return A?o.default.cloneElement(n,W):o.default.createElement("a",Object.assign({},P,W),r)});t.default=y,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
116dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69246:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){let{rootRef:t,rootMargin:r,disabled:u}=e,l=u||!o,[c,d]=n.useState(!1),f=n.useRef(null),h=n.useCallback(e=>{f.current=e},[]);n.useEffect(()=>{if(o){if(l||c)return;let e=f.current;if(e&&e.tagName){let n=function(e,t,r){let{id:n,observer:i,elements:o}=function(e){let t;let r={root:e.root||null,margin:e.rootMargin||""},n=s.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=a.get(n)))return t;let i=new Map,o=new IntersectionObserver(e=>{e.forEach(e=>{let t=i.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e);return t={id:r,observer:o,elements:i},s.push(r),a.set(r,t),t}(r);return o.set(e,t),i.observe(e),function(){if(o.delete(e),i.unobserve(e),0===o.size){i.disconnect(),a.delete(n);let e=s.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&s.splice(e,1)}}}(e,e=>e&&d(e),{root:null==t?void 0:t.current,rootMargin:r});return n}}else if(!c){let e=i.requestIdleCallback(()=>d(!0));return()=>i.cancelIdleCallback(e)}},[l,r,t,c,f.current]);let p=n.useCallback(()=>{d(!1)},[]);return[h,c,p]};var n=r(67294),i=r(44686);let o="function"==typeof IntersectionObserver,a=new Map,s=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54564:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.suspense=function(){let e=Error(n.NEXT_DYNAMIC_NO_SSR_CODE);throw e.digest=n.NEXT_DYNAMIC_NO_SSR_CODE,e},t.NoSSR=function(e){let{children:t}=e;return t},(0,r(92648).Z)(r(67294));var n=r(92983)},37645:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=o.default,i={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i=n({},i,e)),i=n({},i,t);let s=i.loader,u=()=>null!=s?s().then(a):Promise.resolve(a(()=>null));return i.loadableGenerated&&delete(i=n({},i,i.loadableGenerated)).loadableGenerated,"boolean"!=typeof i.ssr||i.ssr||(delete i.webpack,delete i.modules),r(n({},i,{loader:u}))};var n=r(6495).Z,i=r(92648).Z;i(r(67294));var o=i(r(14588));function a(e){return{default:(null==e?void 0:e.default)||e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2675:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getImageBlurSvg=function(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o}=e,a=n||t,s=i||r,u=o.startsWith("data:image/jpeg")?"%3CfeComponentTransfer%3E%3CfeFuncA type='discrete' tableValues='1 1'/%3E%3C/feComponentTransfer%3E%":"";return a&&s?"%3Csvg xmlns='http%3A//www.w3.org/2000/svg' viewBox='0 0 ".concat(a," ").concat(s,"'%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='").concat(n&&i?"1":"20","'/%3E").concat(u,"%3C/filter%3E%3Cimage preserveAspectRatio='none' filter='url(%23b)' x='0' y='0' height='100%25' width='100%25' href='").concat(o,"'/%3E%3C/svg%3E"):"%3Csvg xmlns='http%3A//www.w3.org/2000/svg'%3E%3Cimage style='filter:blur(20px)' x='0' y='0' height='100%25' width='100%25' href='".concat(o,"'/%3E%3C/svg%3E")}},89824:function(e,t){"use strict";function r(e){let{config:t,src:r,width:n,quality:i}=e;return"".concat(t.path,"?url=").concat(encodeURIComponent(r),"&w=").concat(n,"&q=").concat(i||75)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r.__next_img_default=!0,t.default=r},33644:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(92648).Z)(r(67294));let i=n.default.createContext(null);t.LoadableContext=i},14588:function(e,t,r){"use strict";
116Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(60932).Z,i=r(6495).Z,o=(0,r(92648).Z)(r(67294)),a=r(54564),s=r(33644);let u=[],l=[],c=!1;function d(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class f{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function h(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,ssr:!0},t),i=null;function u(){if(!i){let t=new f(e,r);i={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return i.promise()}if(r.lazy=o.default.lazy(n(function*(){if(r.ssr&&i){let e=i.getCurrentValue(),t=yield e.loaded;if(t)return t}return yield r.loader()})),!c){let e=r.webpack?r.webpack():r.modules;e&&l.push(t=>{for(let r of e)if(-1!==t.indexOf(r))return u()})}function d(e){!function(){u();let e=o.default.useContext(s.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let t=r.loading,n=o.default.createElement(t,{isLoading:!0,pastDelay:!0,error:null}),i=r.ssr?o.default.Fragment:a.NoSSR,l=r.lazy;return o.default.createElement(o.default.Suspense,{fallback:n},o.default.createElement(i,null,o.default.createElement(l,Object.assign({},e))))}return d.preload=()=>u(),d.displayName="LoadableComponent",d}(d,e)}function p(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return p(e,t)})}h.preloadAll=()=>new Promise((e,t)=>{p(u).then(e,t)}),h.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let r=()=>(c=!0,t());p(l,e).then(r,r)})},window.__NEXT_PRELOADREADY=h.preloadReady,t.default=h},19588:function(e,t,r){"use strict";let n=r(38785),i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!window.hj)throw Error("Hotjar is not initialized");window.hj(...t)};e.exports={hotjar:{initialize:function(e){let{id:t,sv:r,debug:i,nonce:o}=e;n({id:t,sv:r,debug:i,nonce:o})},initialized:function(){return"function"==typeof(null==window?void 0:window.hj)},identify:function(e,t){i("identify",e,t)},event:function(e){i("event",e)},stateChange:function(e){i("stateChange",e)}}}},38785:function(e){"use strict";e.exports=function(e){var t,r,n,i;let{id:o,sv:a,debug:s=!1,nonce:u=null}=e;t=window,r=document,t.hj=t.hj||function(){(t.hj.q=t.hj.q||[]).push(arguments)},t._hjSettings={hjid:o,hjsv:a,hjDebug:s},t._scriptPath="https://static.hotjar.com/c/hotjar-"+t._hjSettings.hjid+".js?sv="+t._hjSettings.hjsv,document.querySelector('script[src*="'+t._scriptPath+'"]')||(n=r.getElementsByTagName("head")[0],i=r.createElement("script"),u&&i.setAttribute("nonce",u),i.async=1,i.src=t._scriptPath,n.appendChild(i))}},58016:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return tJ}});var n,i,o,a,s,u,l,c,d,f,h,p={};r.r(p),r.d(p,{DirectionProvider:function(){return x},Provider:function(){return S},useDirection:function(){return _}});var m=r(85893);r(84744);var v=r(67294),y=r(11163),b=r(25387);let w=(0,v.createContext)(void 0),x=e=>{let{dir:t,children:r}=e;return(0,v.createElement)(w.Provider,{value:t},r)};function _(e){let t=(0,v.useContext)(w);return e||t||"ltr"}let S=x;
116var C=r(47297),E=r(16489),k=r(55481);let{DirectionProvider:T}=(0,C.Cp)(p),A=function({children:e,colorMode:t,direction:r="ltr",nonce:n,theme:i}){let o=v.useMemo(()=>({theme:(0,E.j)(i)}),[i]),{theme:{name:a,cssText:s}}=o;return v.createElement(k.U.Provider,{value:o},v.createElement(T,{dir:r},v.createElement("div",{"data-amplify-theme":a,"data-amplify-color-mode":t,dir:r},e),void 0===i||/<\/style/i.test(s)?null:v.createElement("style",{id:`amplify-theme-${a}`,dangerouslySetInnerHTML:{__html:s},nonce:n})))};var P=r(73431),I=r.n(P),O=function(e){this.startX=e.startX,this.startY=e.startY,this.endX=e.endX,this.endY=e.endY,this.totalX=this.endX-this.startX,this.totalY=this.endY-this.startY,this.startMultiplierX=e.startMultiplierX||1,this.endMultiplierX=e.endMultiplierX||1,this.startMultiplierY=e.startMultiplierY||1,this.endMultiplierY=e.endMultiplierY||1};function M(){return(M=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}).apply(this,arguments)}(n=u||(u={})).speed="speed",n.translateX="translateX",n.translateY="translateY",n.rotate="rotate",n.rotateX="rotateX",n.rotateY="rotateY",n.rotateZ="rotateZ",n.scale="scale",n.scaleX="scaleX",n.scaleY="scaleY",n.scaleZ="scaleZ",n.opacity="opacity",(i=l||(l={})).px="px",i["%"]="%",i.vh="vh",i.vw="vw",(o=c||(c={})).deg="deg",o.turn="turn",o.rad="rad",(d||(d={}))[""]="",(a=f||(f={})).vertical="vertical",a.horizontal="horizontal",(s=h||(h={})).ease="ease",s.easeIn="easeIn",s.easeOut="easeOut",s.easeInOut="easeInOut",s.easeInQuad="easeInQuad",s.easeInCubic="easeInCubic",s.easeInQuart="easeInQuart",s.easeInQuint="easeInQuint",s.easeInSine="easeInSine",s.easeInExpo="easeInExpo",s.easeInCirc="easeInCirc",s.easeOutQuad="easeOutQuad",s.easeOutCubic="easeOutCubic",s.easeOutQuart="easeOutQuart",s.easeOutQuint="easeOutQuint",s.easeOutSine="easeOutSine",s.easeOutExpo="easeOutExpo",s.easeOutCirc="easeOutCirc",s.easeInOutQuad="easeInOutQuad",s.easeInOutCubic="easeInOutCubic",s.easeInOutQuart="easeInOutQuart",s.easeInOutQuint="easeInOutQuint",s.easeInOutSine="easeInOutSine",s.easeInOutExpo="easeInOutExpo",s.easeInOutCirc="easeInOutCirc",s.easeInBack="easeInBack",s.easeOutBack="easeOutBack",s.easeInOutBack="easeInOutBack";var j=0,D=function(){function e(e){var t=e.el.getBoundingClientRect();if(e.view.scrollContainer){var r=e.view.scrollContainer.getBoundingClientRect();t=M({},t,{top:t.top-r.top,right:t.right-r.left,bottom:t.bottom-r.top,left:t.left-r.left})}this.height=e.el.offsetHeight,this.width=e.el.offsetWidth,this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,e.rootMargin&&this._setRectWithRootMargin(e.rootMargin)}return e.prototype._setRectWithRootMargin=function(e){var t=e.top+e.bottom,r=e.left+e.right;this.top-=e.top,this.right+=e.right,this.bottom+=e.bottom,this.left-=e.left,this.height+=t,this.width+=r},e}(),R=[d[""],l.px,l["%"],l.vh,l.vw,c.deg,c.turn,c.rad];function N(e,t){void 0===t&&(t=l["%"]);var r={value:0,unit:t};if(void 0===e)return r;if(!("number"==typeof e||"string"==typeof e))throw Error("Invalid value provided. Must provide a value as a string or number");if(e=String(e),r.value=parseFloat(e),r.unit=e.match(/[\d.\-+]*\s*(.*)/)[1]||t,!R.includes(r.unit))throw Error("Invalid unit provided.");return r}var U={ease:[.25,.1,.25,1],easeIn:[.42,0,1,1],easeOut:[0,0,.58,1],easeInOut:[.42,0,.58,1],easeInQuad:[.55,.085,.68,.53],easeInCubic:[.55,.055,.675,.19],easeInQuart:[.895,.03,.685,.22],easeInQuint:[.755,.05,.855,.06],easeInSine:[.47,0,.745,.715],easeInExpo:[.95,.05,.795,.035],easeInCirc:[.6,.04,.98,.335],easeOutQuad:[.25,.46,.45,.94],easeOutCubic:[.215,.61,.355,1],easeOutQuart:[.165,.84,.44,1],easeOutQuint:[.23,1,.32,1],easeOutSine:[.39,.575,.565,1],easeOutExpo:[.19,1,.22,1],easeOutCirc:[.075,.82,.165,1],easeInOutQuad:[.455,.03,.515,.955],easeInOutCubic:[.645,.045,.355,1],easeInOutQuart:[.77,0,.175,1],easeInOutQuint:[.86,0,.07,1],easeInOutSine:[.445,.05,.55,.95],easeInOutExpo:[1,0,0,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};function F(e){if(Array.isArray(e))return I()(e[0],e[1],e[2],e[3]);if("string"==typeof e&&void 0!==U[e]){var t=U[e];return I()(t[0],t[1],t[2],t[3])}}var L=Object.values(u),B={speed:"px",translateX:"%",translateY:"%",rotate:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",scale:"",scaleX:"",scaleY:"",scaleZ:"",opacity:""};function z(e,t){var r={};
116return L.forEach(function(n){var i=B[n];if("number"==typeof(null==e?void 0:e[n])){var o=null==e?void 0:e[n],a=N(10*(o||0)+"px"),s=N(-10*(o||0)+"px"),u={start:a.value,end:s.value,unit:a.unit};t===f.vertical&&(r.translateY=u),t===f.horizontal&&(r.translateX=u)}if(Array.isArray(null==e?void 0:e[n])){var l=null==e?void 0:e[n];if(void 0!==l[0]&&void 0!==l[1]){var c=N(null==l?void 0:l[0],i),d=N(null==l?void 0:l[1],i),h=F(null==l?void 0:l[2]);if(r[n]={start:c.value,end:d.value,unit:c.unit,easing:h},c.unit!==d.unit)throw Error("Must provide matching units for the min and max offset values of each axis.")}}}),r}function H(e,t,r,n){var i=(r-e)/t;return n&&(i=n(i)),i}function q(e,t){var r,n;return{value:(r="function"==typeof e.easing?e.easing(t):t,n=(null==e?void 0:e.start)||0,(((null==e?void 0:e.end)||0)-n)*(r-0)/1+n),unit:null==e?void 0:e.unit}}var W=Object.values(u).filter(function(e){return"opacity"!==e});function $(e){var t=e.el;t&&(t.style.transform="",t.style.opacity="")}function V(e,t,r){return Math.max(r/(r+(Math.abs(e)+Math.abs(t))*(t>e?-1:1)),1)}function Y(e,t){var r=e.start,n=e.end,i=e.unit;if("%"===i){var o=t/100;r*=o,n*=o}if("vw"===i){var a=r/100,s=n/100;r=window.innerWidth*a,n=window.innerWidth*s}if("vh"===i){var u=r/100,l=n/100;r=window.innerHeight*u,n=window.innerHeight*l}return{start:r,end:n}}var Z={start:0,end:0,unit:""},G=function(e,t,r){return Math.min(Math.max(e,t),r)},K=function(){function e(e){var t,r;this.el=e.el,this.props=e.props,this.scrollAxis=e.scrollAxis,this.disabledParallaxController=e.disabledParallaxController||!1,this.id=++j,this.effects=z(this.props,this.scrollAxis),this.isInView=null,this.progress=0,this._setElementEasing(e.props.easing),t=e.el,r=Object.keys(this.effects).includes("opacity"),t.style.willChange="transform"+(r?",opacity":"")}var t=e.prototype;return t.updateProps=function(e){return this.props=M({},this.props,e),this.effects=z(e,this.scrollAxis),this._setElementEasing(e.easing),this},t.setCachedAttributes=function(e,t){$(this),this.rect=new D({el:this.props.targetElement||this.el,rootMargin:this.props.rootMargin,view:e});var r,n,i,o,a,s,u,l,c,d,h,p,m=(r=this.props,n=this.effects,i=this.scrollAxis,!r.rootMargin&&!r.targetElement&&!r.shouldDisableScalingTranslations&&(!!n.translateX&&i===f.horizontal||!!n.translateY&&i===f.vertical));return"number"==typeof this.props.startScroll&&"number"==typeof this.props.endScroll?(this.limits=new O({startX:this.props.startScroll,startY:this.props.startScroll,endX:this.props.endScroll,endY:this.props.endScroll}),this._setElementStyles(),this):(m?(this.limits=function(e,t,r,n,i,o){var a=r.translateX||Z,s=r.translateY||Z,u=Y(a,e.width),l=u.start,c=u.end,d=Y(s,e.height),h=d.start,p=d.end,m=e.top-t.height,v=e.left-t.width,y=e.bottom,b=e.right,w=1,x=1;i===f.vertical&&(x=w=V(h,p,t.height+e.height));var _=1,S=1;if(i===f.horizontal&&(S=_=V(l,c,t.width+e.width)),h<0&&(m+=h*w),p>0&&(y+=p*x),l<0&&(v+=l*_),c>0&&(b+=c*S),v+=n.x,b+=n.x,m+=n.y,y+=n.y,o){var C=n.y+e.top<t.height,E=n.x+e.left<t.width,k=n.y+e.bottom>t.scrollHeight-t.height,T=n.x+e.right>t.scrollWidth-t.height;C&&k&&(w=1,x=1,m=0,y=t.scrollHeight-t.height),E&&T&&(_=1,S=1,v=0,b=t.scrollWidth-t.width),!C&&k&&(m=e.top-t.height+n.y,w=V(h,p,(y=t.scrollHeight-t.height)-m),x=1,h<0&&(m+=h*w)),!E&&T&&(v=e.left-t.width+n.x,_=V(l,c,(b=t.scrollWidth-t.width)-v),S=1,l<0&&(v+=l*_)),C&&!k&&(m=0,w=1,x=V(h,p,(y=e.bottom+n.y)-m),p>0&&(y+=p*x)),E&&!T&&(v=0,_=1,S=V(l,c,(b=e.right+n.x)-v),c>0&&(b+=c*S))}return new O({startX:v,startY:m,endX:b,endY:y,startMultiplierX:_,endMultiplierX:S,startMultiplierY:w,endMultiplierY:x})}(this.rect,e,this.effects,t,this.scrollAxis,this.props.shouldAlwaysCompleteAnimation),this.scaledEffects=(o=this.effects,a=this.limits,(s=M({},o)).translateX&&(s.translateX=M({},o.translateX,{start:s.translateX.start*a.startMultiplierX,end:s.translateX.end*a.endMultiplierX})),s.translateY&&(s.translateY=M({},o.translateY,{start:s.translateY.start*a.startMultiplierY,end:s.translateY.end*a.endMultiplierY})),s)):this.limits=(u=this.rect,l=this.props.shouldAlwaysCompleteAnimation,c=u.top-e.height,d=u.left-e.width,h=u.bottom,p=u.right,d+=t.x,p+=t.x,c+=t.y,h+=t.y,l&&(t.y+u.top<e.height&&(c=0),t.x+u.left<e.width&&(d=0),h>e.scrollHeight-e.height&&(h=e.scrollHeight-e.height),p>e.scrollWidth-e.width&&(p=e.scrollWidth-e.width)),new O({startX:d,startY:c,endX:p,endY:h})),this._setElementStyles(),this)},t._updateElementIsInView=function(e){var t=null===this.isInView;
116e!==this.isInView&&(e?this.props.onEnter&&this.props.onEnter(this):!t&&(this._setFinalProgress(),this._setElementStyles(),this.props.onExit&&this.props.onExit(this))),this.isInView=e},t._setFinalProgress=function(){var e=G(Math.round(this.progress),0,1);this._updateElementProgress(e)},t._setElementStyles=function(){this.props.disabled||this.disabledParallaxController||function(e,t,r){if(r){var n,i=W.reduce(function(r,n){var i=e[n]&&q(e[n],t);return void 0===i||void 0===i.value||void 0===i.unit?r:r+(n+"("+i.value)+i.unit+")"},""),o=void 0===(n=e.opacity&&q(e.opacity,t))||void 0===n.value||void 0===n.unit?"":""+n.value;r.style.transform=i,r.style.opacity=o}}(this.scaledEffects||this.effects,this.progress,this.el)},t._updateElementProgress=function(e){this.progress=e,this.props.onProgressChange&&this.props.onProgressChange(this.progress),this.props.onChange&&this.props.onChange(this)},t._setElementEasing=function(e){this.easing=F(e)},t.updateElementOptions=function(e){this.scrollAxis=e.scrollAxis,this.disabledParallaxController=e.disabledParallaxController||!1},t.updatePosition=function(e){if(!this.limits)return this;var t=this.scrollAxis===f.vertical,r=null===this.isInView,n=t?this.limits.startY:this.limits.startX,i=t?this.limits.endY:this.limits.endX,o=t?this.limits.totalY:this.limits.totalX,a=t?e.y:e.x,s=a>=n&&a<=i;if(this._updateElementIsInView(s),s){var u=H(n,o,a,this.easing);this._updateElementProgress(u),this._setElementStyles()}else r&&(this.progress=G(Math.round(H(n,o,a,this.easing)),0,1),this._setElementStyles());return this},e}(),Q=function(){function e(e){this.scrollContainer=e.scrollContainer,this.width=e.width,this.height=e.height,this.scrollHeight=e.scrollHeight,this.scrollWidth=e.scrollWidth}var t=e.prototype;return t.hasChanged=function(e){return e.width!==this.width||e.height!==this.height||e.scrollWidth!==this.scrollWidth||e.scrollHeight!==this.scrollHeight},t.setSize=function(e){return this.width=e.width,this.height=e.height,this.scrollHeight=e.scrollHeight,this.scrollWidth=e.scrollWidth,this},e}(),X=function(){function e(e,t){this.x=e,this.y=t,this.dx=0,this.dy=0}return e.prototype.setScroll=function(e,t){return this.dx=e-this.x,this.dy=t-this.y,this.x=e,this.y=t,this},e}(),J=function(){function e(e){var t=e.scrollAxis,r=void 0===t?f.vertical:t,n=e.scrollContainer,i=e.disabled;this.disabled=void 0!==i&&i,this.scrollAxis=r,this.elements=[],this._hasScrollContainer=!!n,this.viewEl=null!=n?n:window;var o=this._getScrollPosition(),a=o[0],s=o[1];this.scroll=new X(a,s),this.view=new Q({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:this._hasScrollContainer?n:void 0}),this._ticking=!1,this._supportsPassive=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){return e=!0,!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}(),this._bindAllMethods(),this.disabled||(this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize())}e.init=function(t){if(!("undefined"!=typeof window))throw Error("Looks like ParallaxController.init() was called on the server. This method must be called on the client.");return new e(t)};var t=e.prototype;return t._bindAllMethods=function(){var e=this;["_addListeners","_removeListeners","_getScrollPosition","_handleScroll","_handleUpdateCache","_updateAllElements","_updateElementPosition","_setViewSize","_addResizeObserver","_checkIfViewHasChanged","_getViewParams","getElements","createElement","removeElementById","resetElementStyles","updateElementPropsById","update","updateScrollContainer","destroy"].forEach(function(t){e[t]=e[t].bind(e)})},t._addListeners=function(e){e.addEventListener("scroll",this._handleScroll,!!this._supportsPassive&&{passive:!0}),window.addEventListener("resize",this._handleUpdateCache,!1),window.addEventListener("blur",this._handleUpdateCache,!1),window.addEventListener("focus",this._handleUpdateCache,!1),window.addEventListener("load",this._handleUpdateCache,!1)},t._removeListeners=function(e){var t;e.removeEventListener("scroll",this._handleScroll,!1),window.removeEventListener("resize",this._handleUpdate
116Cache,!1),window.removeEventListener("blur",this._handleUpdateCache,!1),window.removeEventListener("focus",this._handleUpdateCache,!1),window.removeEventListener("load",this._handleUpdateCache,!1),null==(t=this._resizeObserver)||t.disconnect()},t._addResizeObserver=function(){var e=this;try{var t=this._hasScrollContainer?this.viewEl:document.documentElement;this._resizeObserver=new ResizeObserver(function(){return e.update()}),this._resizeObserver.observe(t)}catch(e){console.warn("Failed to create the resize observer in the ParallaxContoller")}},t._getScrollPosition=function(){return[this._hasScrollContainer?this.viewEl.scrollLeft:window.pageXOffset,this._hasScrollContainer?this.viewEl.scrollTop:window.pageYOffset]},t._handleScroll=function(){var e,t=this._getScrollPosition(),r=t[0],n=t[1];this.scroll.setScroll(r,n),!this._ticking&&(null==(e=this.elements)?void 0:e.length)>0&&(this._ticking=!0,window.requestAnimationFrame(this._updateAllElements))},t._handleUpdateCache=function(){this._setViewSize(),this._updateAllElements({updateCache:!0})},t._updateAllElements=function(e){var t=this,r=(void 0===e?{}:e).updateCache;this.elements&&this.elements.forEach(function(e){r&&e.setCachedAttributes(t.view,t.scroll),t._updateElementPosition(e)}),this._ticking=!1},t._updateElementPosition=function(e){e.props.disabled||this.disabled||e.updatePosition(this.scroll)},t._getViewParams=function(){if(this._hasScrollContainer){var e=this.viewEl.offsetWidth,t=this.viewEl.offsetHeight,r=this.viewEl.scrollHeight,n=this.viewEl.scrollWidth;return this.view.setSize({width:e,height:t,scrollHeight:r,scrollWidth:n})}var i=document.documentElement;return{width:window.innerWidth||i.clientWidth,height:window.innerHeight||i.clientHeight,scrollHeight:i.scrollHeight,scrollWidth:i.scrollWidth}},t._setViewSize=function(){return this.view.setSize(this._getViewParams())},t._checkIfViewHasChanged=function(){return this.view.hasChanged(this._getViewParams())},t.getElements=function(){return this.elements},t.createElement=function(e){var t=new K(M({},e,{scrollAxis:this.scrollAxis,disabledParallaxController:this.disabled}));return t.setCachedAttributes(this.view,this.scroll),this.elements=this.elements?[].concat(this.elements,[t]):[t],this._updateElementPosition(t),this._checkIfViewHasChanged()&&this.update(),t},t.removeElementById=function(e){this.elements&&(this.elements=this.elements.filter(function(t){return t.id!==e}))},t.updateElementPropsById=function(e,t){this.elements&&(this.elements=this.elements.map(function(r){return r.id===e?r.updateProps(t):r})),this.update()},t.resetElementStyles=function(e){$(e)},t.update=function(){var e=this._getScrollPosition(),t=e[0],r=e[1];this.scroll.setScroll(t,r),this._setViewSize(),this._updateAllElements({updateCache:!0})},t.updateScrollContainer=function(e){this._removeListeners(this.viewEl),this.viewEl=e,this._hasScrollContainer=!!e,this.view=new Q({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:e}),this._setViewSize(),this._addListeners(this.viewEl),this._updateAllElements({updateCache:!0})},t.disableParallaxController=function(){this.disabled=!0,this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(e){return $(e)})},t.enableParallaxController=function(){var e=this;this.disabled=!1,this.elements&&this.elements.forEach(function(t){return t.updateElementOptions({disabledParallaxController:!1,scrollAxis:e.scrollAxis})}),this._addListeners(this.viewEl),this._addResizeObserver(),this._setViewSize()},t.disableAllElements=function(){console.warn("deprecated: use disableParallaxController() instead"),this.elements&&(this.elements=this.elements.map(function(e){return e.updateProps({disabled:!0})})),this.update()},t.enableAllElements=function(){console.warn("deprecated: use enableParallaxController() instead"),this.elements&&(this.elements=this.elements.map(function(e){return e.updateProps({disabled:!1})})),this.update()},t.destroy=function(){this._removeListeners(this.viewEl),this.elements&&this.elements.forEach(function(e){return $(e)}),this.elements=void 0},e}(),ee=v.createContext(null);function et(e){var t,r=(0,v.useRef)(null);return r.current||(r.current=(t={scrollAxis:e.scrollAxis||f.vertical,scrollC
116ontainer:e.scrollContainer,disabled:e.isDisabled},"undefined"!=typeof window?J.init(t):null)),(0,v.useEffect)(function(){e.scrollContainer&&r.current&&r.current.updateScrollContainer(e.scrollContainer)},[e.scrollContainer,r.current]),(0,v.useEffect)(function(){e.isDisabled&&r.current&&r.current.disableParallaxController(),!e.isDisabled&&r.current&&r.current.enableParallaxController()},[e.isDisabled,r.current]),(0,v.useEffect)(function(){return function(){(null==r?void 0:r.current)&&(null==r||r.current.destroy())}},[]),v.createElement(ee.Provider,{value:r.current},e.children)}var er=r(5152),en=r.n(er),ei=r(78216),eo=r(46061),ea=r(41664),es=r.n(ea),eu=r(25675),el=r.n(eu),ec=r(48075);let ed=({color:e="currentColor",direction:t="left",distance:r="md",duration:n=.4,easing:i="cubic-bezier(0, 0, 0, 1)",hideOutline:o=!0,label:a,lines:s=3,onToggle:u,render:l,rounded:c=!1,size:d=32,toggle:f,toggled:h,disabled:p=!1,animateOnMount:m=!1})=>{let[y,b]=(0,v.useState)(!1),[w,x]=(0,v.useState)(!1);(0,v.useEffect)(()=>{x(!0)},[]);let _=Math.max(12,Math.min(48,d)),S=Math.round((48-_)/2),C=_/12,E=Math.round(C),k=_/(s*(("lg"===r?.25:"sm"===r?.75:.5)+(3===s?1:1.25))),T=Math.round(k),A=Math.round((48-(E*s+T*(s-1)))/2),P=parseFloat((_/(3===s?"lg"===r?4.0425:"sm"===r?5.1625:4.6325:"lg"===r?6.7875:"sm"===r?8.4875:7.6675)-(C-E+(k-T))/(3===s?1:2)/(4/3)).toFixed(2)),I=Math.max(0,n),O={cursor:p?"not-allowed":"pointer",height:"48px",position:"relative",transition:`${I}s ${i}`,userSelect:"none",width:"48px"},M={background:e,height:`${E}px`,left:`${S}px`,position:"absolute"};o&&(O.outline="none"),c&&(M.borderRadius="9em");let j=f||b,D=(()=>{let e=void 0!==h?h:y;return m&&!w?!e:e})(),R=()=>{j(!D),"function"==typeof u&&u(!D)};return l({barHeight:E,barStyles:M,burgerStyles:O,easing:i,handler:R,isLeft:"left"===t,isToggled:D,label:a,margin:T,move:P,time:I,topOffset:A,width:_})};function ef(){return(ef=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}).apply(this,arguments)}let eh=e=>v.createElement(ed,ef({},e,{render:t=>v.createElement("div",{className:"hamburger-react","aria-label":t.label,"aria-expanded":t.isToggled,onClick:e.disabled?void 0:t.handler,onKeyUp:e.disabled?void 0:e=>"Enter"===e.key&&t.handler(),role:"button",style:{...t.burgerStyles,transform:`${t.isToggled?`rotateY(${180*(t.isLeft?-1:1)}deg)`:"none"}`},tabIndex:0},v.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset}px`,transition:`${t.time}s ${t.easing}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?-1:1)}deg) translate(${t.move*(t.isLeft?-1:1)}px, ${t.move}px)`:"none"}`}}),v.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+t.barHeight+t.margin}px`,transition:`${t.time}s ${t.easing}`,transform:`${t.isToggled?`scale(0, 1) translate(${20*t.move*(t.isLeft?-1:1)}px, 0)`:"none"}`}}),v.createElement("div",{style:{...t.barStyles,width:`${t.width}px`,top:`${t.topOffset+2*t.barHeight+2*t.margin}px`,transition:`${t.time}s ${t.easing}`,transform:`${t.isToggled?`rotate(${45*(t.isLeft?1:-1)}deg) translate(${t.move*(t.isLeft?-1:1)}px, ${-1*t.move}px)`:"none"}`}}))}));var ep=r(89583),eg=r(12440),em=r(36316),ev=r(76789),ey=r(8971),eb=r(91373);/**
117 * @license lucide-react v0.436.0 - ISC
118 *
119 * This source code is licensed under the ISC license.
120 * See the LICENSE file in the root directory of this source tree.
121 */let ew=(0,eb.Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);var ex=r(69119),e_=r(19013),eS=r(13882);function eC(e){return(0,eS.Z)(1,arguments),(0,e_.Z)(e).getFullYear()}var eE=r(83946);function ek(e,t){(0,eS.Z)(1,arguments);var r,n,i,o=(0,eE.Z)(null!==(r=null==t?void 0:t.additionalDigits)&&void 0!==r?r:2);if(2!==o&&1!==o&&0!==o)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var a=function(e){var t,r={},n=e.split(eT.dateTimeDelimiter);if(n.length>2)return r;if(/:/.test(n[0])?t=n[0]:(r.date=n[0],t=n[1],eT.timeZoneDelimiter.test(r.date)&&(r.date=e.split(eT.timeZoneDelimiter)[0],t=e.substr(r.date.length,e.length))),t){var i=eT.timezone.exec(t);i?(r.time=t.replace(i[1],""),r.timezone=i[1]):r.time=t}return r}(e);if(a.date){var s=function(e,t){var r=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var i=n[1]?parseInt(n[1]):null,o=n[2]?parseInt(n[2]):null;return{year:null===o?i:100*o,restDateString:e.slice((n[1]||n[2]).length)}}(a.date,o);n=function(e,t){if(null===t)return new Date(NaN);var r,n,i=e.match(eA);if(!i)return new Date(NaN);var o=!!i[4],a=eO(i[1]),s=eO(i[2])-1,u=eO(i[3]),l=eO(i[4]),c=eO(i[5])-1;if(o)return l>=1&&l<=53&&c>=0&&c<=6?((r=new Date(0)).setUTCFullYear(t,0,4),n=r.getUTCDay()||7,r.setUTCDate(r.getUTCDate()+((l-1)*7+c+1-n)),r):new Date(NaN);var d=new Date(0);return s>=0&&s<=11&&u>=1&&u<=(ej[s]||(eD(t)?29:28))&&a>=1&&a<=(eD(t)?366:365)?(d.setUTCFullYear(t,s,Math.max(a,u)),d):new Date(NaN)}
121(s.restDateString,s.year)}if(!n||isNaN(n.getTime()))return new Date(NaN);var u=n.getTime(),l=0;if(a.time&&isNaN(l=function(e){var t=e.match(eP);if(!t)return NaN;var r=eM(t[1]),n=eM(t[2]),i=eM(t[3]);return(24===r?0===n&&0===i:i>=0&&i<60&&n>=0&&n<60&&r>=0&&r<25)?36e5*r+6e4*n+1e3*i:NaN}(a.time)))return new Date(NaN);if(a.timezone){if(isNaN(i=function(e){if("Z"===e)return 0;var t=e.match(eI);if(!t)return 0;var r="+"===t[1]?-1:1,n=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return i>=0&&i<=59?r*(36e5*n+6e4*i):NaN}(a.timezone)))return new Date(NaN)}else{var c=new Date(u+l),d=new Date(0);return d.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),d.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),d}return new Date(u+l+i)}var eT={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},eA=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,eP=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,eI=/^([+-])(\d{2})(?::?(\d{2}))?$/;function eO(e){return e?parseInt(e):1}function eM(e){return e&&parseFloat(e.replace(",","."))||0}var ej=[31,null,31,30,31,30,31,31,30,31,30,31];function eD(e){return e%400==0||e%4==0&&e%100!=0}var eR=r(313),eN=r(34850),eU=r(89653),eF=r(11871),eL=r(65147),eB=r(69539),ez=r(97719),eH=r(36408);let eq=e=>{let{isHome:t=!1,isMenuOpen:r,setIsMenuOpen:n,headerBgOpacity:i=0,user:o,hydrateUser:a,shoppingItemCount:s,setReturnHistory:u,isAuth:l,isUserReady:c=!1,allLatestExpo:d}=e,f=(0,y.useRouter)(),h=(0,eU.dD)(),p=(0,eU.Av)(),b=(0,eU.Ce)(),[w,x]=(0,v.useState)(!1),[_,S]=(0,v.useState)(null),C=(0,v.useRef)({}),[E,k]=(0,v.useState)(null),[T,A]=(0,v.useState)(!1),P=ez.SX.exhibitions.expo.listHeaderExpos.useQuery(void 0,{staleTime:3e5,networkMode:"offlineFirst"}),I=(0,v.useMemo)(()=>{if(!P.data)return{data:[]};let e=(0,ex.Z)(Date.now()),t=eC(e),r=[...P.data.upcoming,...P.data.past].filter(e=>{let r=eC(ek(e.fromDate));return r===t}).map(t=>{let r=(0,eR.Z)(ek(t.toDate),e),n=!0===t.showHighlights?"/expo?expoSlug=".concat(t.slug):null,i=r?t.name:(()=>{let e=ek(t.fromDate),r=ek(t.toDate),n=(0,eN.Z)(e,"d"),i=(0,eN.Z)(r,"d"),o=(0,eN.Z)(e,"MMM"),a="".concat(n," - ").concat(i," ").concat(o);return"".concat(t.name," (").concat(a,")")})();return{...t,isPast:r,href:n,label:i}}).sort((e,t)=>{if(e.isPast!==t.isPast)return e.isPast?1:-1;let r=ek(e.fromDate),n=ek(t.fromDate);return e.isPast?n.getTime()-r.getTime():r.getTime()-n.getTime()});return{data:r}},[P.data]),{redirectToSignIn:O,redirectToSignUp:M}=(0,eL.Z)(),j=(0,v.useMemo)(()=>[{href:"/",label:"HOME"},{href:"/expo",label:"EXPO",children:!P.isLoading&&I.data.length>0?(()=>{let e=[],t=I.data.filter(e=>!e.isPast&&e.href),r=I.data.filter(e=>!e.isPast&&!e.href),n=I.data.filter(e=>e.isPast);return t.forEach(t=>{e.push({href:t.href,label:t.label||"",isPast:t.isPast,showHighlights:t.showHighlights})}),r.length>0&&(t.length>0&&e.push({isDivider:!0,key:"coming-soon-divider",label:"Coming Soon"}),r.forEach(t=>{e.push({href:t.href,label:t.label||"",isPast:t.isPast,showHighlights:t.showHighlights})})),n.length>0&&((t.length>0||r.length>0)&&e.push({isDivider:!0,key:"past-divider",label:"Past Expos"}
121),n.forEach(t=>{e.push({href:t.href,label:t.label||"",isPast:t.isPast,showHighlights:t.showHighlights})})),e})():void 0},{href:"/yhello-rewards",label:"YHELLO REWARDS"},{href:"/get-in-touch",label:"GET IN TOUCH",children:[{href:"/get-in-touch/visitor",label:"Visitor Inquiries"},{href:"/get-in-touch/exhibitor",label:"Exhibitor Inquiries"},{href:"/get-in-touch/online-service",label:"Online & App Partnerships"}]}],[P.isLoading,I.data]),D=e=>{S(t=>t===e?null:e)},R=()=>{S(null),n(!1)};(0,v.useEffect)(()=>{let e=e=>{if(_){let t=C.current[_];if(t&&!t.contains(e.target)){let t=document.getElementById("nav-trigger-".concat(_));if(t&&t.contains(e.target))return;S(null)}}};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[_]);let N=e=>{k(e),A(!0)},U=()=>{A(!1),k(null)},F=(0,v.useCallback)(e=>{"function"==typeof e?n(e(r)):n(e)},[n,r]),L=(0,v.useMemo)(()=>t?"top-0 left-0 w-full transition ease-in-out duration-700 z-[9999]":"w-full z-[9999]",[t]),B=async e=>{u(f.asPath);try{let e=await ec.g.currentSession();e&&!o?(x(!0),await a().finally(()=>{x(!1)})):x(!1)}catch(t){if("signIn"===e)return O();return M()}},z=()=>(0,m.jsxs)("div",{className:"flex justify-end items-stretch w-[200px] sm:w-[200px]",children:[(0,m.jsx)(eF.default,{label:"Login",size:"small",className:"flex items-center justify-center w-full px-3 py-1 mr-2 duration-300 ease-in-out border-2 border-black hover:bg-baby-yellow-900",onClick:()=>B("signIn"),isLoading:w,isRounded:!1}),(0,m.jsx)(eF.default,{label:"Sign Up",size:"small",className:"flex items-center justify-center w-full px-3 py-1 mr-2 duration-300 ease-in-out border-2 border-black hover:bg-baby-yellow-900",onClick:()=>B("signUp"),isLoading:w,isRounded:!1})]}),H=()=>(0,m.jsxs)("div",{className:"relative",children:[(0,m.jsx)("div",{className:"absolute bottom-[2px] right-[4px] z-[99] text-white text-[0.57em] h-[15px] w-[15px] text-center",children:s>9?"9+":s}),(0,m.jsx)(ep.$0H,{size:22,color:"#FF686D"})]}),q=async e=>{await f.push("/shopping-list?expoSlug=".concat(e))},W=e=>{var t,r,n,i;let{size:o=24,color:a="currentColor",className:s=""}=e,u=ez.SX.products.carts.countCartItems.useQuery(void 0,{staleTime:1e4,enabled:!!l,networkMode:"offlineFirst"}),c=ez.SX.products.carts.listMarketplaceCartItems.useQuery(void 0,{staleTime:1e4,enabled:!!l&&(null!==(t=u.data)&&void 0!==t?t:0)>0,networkMode:"offlineFirst",initialData:[]}),d=ez.SX.exhibitions.expo.listExpos.useQuery(void 0,{staleTime:1e4,networkMode:"offlineFirst"}),h=d.isLoading||u.isLoading||c.isLoading,p=(0,v.useMemo)(()=>{var e;return d.data?null===(e=d.data)||void 0===e?void 0:e.upcoming:[]},[d.data]),y=(0,v.useMemo)(()=>{var e;let t=p.some(e=>e.showPreExpoSale),r=(null!==(e=u.data)&&void 0!==e?e:0)>0,n=f.asPath.startsWith("/account/marketplace-cart")||f.asPath.startsWith("/account/my-cart")&&f.asPath.includes("type=marketplace"),i=f.asPath.startsWith("/marketplace")||n;return!!i||t||r},[p,u.data,f.asPath]),b=(0,v.useMemo)(()=>{var e;return(null!==(e=c.data)&&void 0!==e?e:[]).reduce((e,t)=>{var r,n;return e+(null!==(n=null===(r=t.items)||void 0===r?void 0:r.length)&&void 0!==n?n:0)},0)},[c.data]),w=(0,v.useMemo)(()=>{var e;return(null!==(e=c.data)&&void 0!==e?e:[]).reduce((e,t)=>{var r,n;return e+(null!==(r=t.items)&&void 0!==r?r:[]).reduce((e,t)=>e+(null!==(n=t.quantity)&&void 0!==n?n:0),0)},0)},[c.data]),x=null!==(r=u.data)&&void 0!==r?r:0,_=f.asPath.startsWith("/account/marketplace-cart")||f.asPath.startsWith("/account/my-cart")&&f.asPath.includes("type=marketplace"),S=f.asPath.startsWith("/marketplace")||_||x>0&&(x===b||x===w)?"/account/my-cart?type=marketplace":"/account/my-cart";return h?(0,m.jsx)(em.Z,{size:24,className:"animate-spin text-baby-yellow-900"}):y?(0,m.jsxs)(es(),{className:"relative cursor-pointer",href:S,shallow:f.asPath===S,children:[(0,m.jsx)(eB.Z,{size:o,color:a,className:s}),(null!==(n=u.data)&&void 0!==n?n:0)>0&&(0,m.jsx)("div",{className:"absolute flex items-center justify-center w-5 h-5 text-xs font-medium text-white bg-black rounded-full -top-2 -right-2",children:(null!==(i=u.data)&&void 0!==i?i:0)>99?"99+":u.data})]}):(0,m.jsx)("div",{className:"relative opacity-50 cursor-not-allowed",children:(0,m.jsx)(eB.Z,{size:o,color:"#333",className:s})})},$=e=>{var t;let{size:r=24,color:n="currentColor",className:i=""}=e,o=ez.SX.users.notifications.getUnreadNotificationsCount.useQuery(void 0,{staleTime:1e4,enabled:!1,networkMode:"offlineFirst"}),a=(0,v.useMemo)(()=>null!==(t=o.data)&&void 0!==t?t:0,[o.data]);return(0,m.jsxs)(es(),{className:"relative cursor-pointer",href:"/account/inbox",shallow:"/account/inbox"===f.asPath,children:[(0,m.jsx)(ev.Z,{size:r,color:n,className:i}),a>0&&(0,m.jsx)("div",{className:"absolute flex items-center justify-center w-5 h-5 text-xs font-medium text-white bg-black rounded-full -top-2 -right-2",children:a>9?"9+":a})]})},V=()=>{var e;if(!(null==d?void 0:d.data))return null;let t=d.data.some(e=>!0===e.showStarbuys);if(!t)return null;let r=d.data.filter(e=>!0===e.showStarbuys),n=null===(e=r[0])||void 0===e?void 0:e.slug;return(0,m.jsx)("div",{className:"mr-2 cursor-pointer",onClick:()=>q(n),children:H()})},Y=()=>(0,m.jsxs)("div",{className:"flex items-center justify-end -mt-1 space-x-4",children:[(0,m.jsx)($,{size:24,color:"#333",className:"text-gray-600 transition-colors hover:text-blue-600",unreadCount:0}),(0,m.jsx)(W,{size:24,color:"#333",className:"text-gray-600 transition-colors hover:text-blue-600"}),V(),(0,m.jsx)("span",{children:(0,m.jsx)(eh,{toggled:r,toggle:F,size:20,easing:"ease-in"})})]}),Z=()=>c?(0,m.jsx)("div",{className:"flex items-center justify-end",children:l?Y():z()}):(0,m.jsx)("div",{className:"flex items-center justify-end",children:(0,m.jsx)(eg.g4,{height:"24",width:"24",color:"#FF8C6E"})});return(0,m.jsxs)("div",{className:L,style:{position:"sticky",top:"0px",backgroundColor:t&&!r?"rgba(255,255,255,".concat(i,")"):"#FFF"},children:[(0,m.jsxs)("div",{className:"w-screen",children:[(0,m.jsx)("div",{id:"announcement-portal"}),(0,m.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-center md:justify-between min-h-[60
121px] py-2 px-3 md:py-3 md:px-14 w-screen",children:[(0,m.jsxs)("div",{className:"flex items-center justify-between w-full md:w-auto",children:[(0,m.jsx)("div",{className:"h-[40px] md:h-[55px] w-[40px] md:w-[55px]",children:(0,m.jsx)(es(),{href:"/",onClick:()=>{n(!1),T&&U()},children:(0,m.jsx)(el(),{src:"/tce-baby-logo-dark.png",alt:"tce-baby-logo",width:100,height:100,priority:!0})})}),(h||p)&&(0,m.jsx)("div",{className:"md:hidden",children:Z()})]}),b&&(0,m.jsxs)("div",{className:"flex items-center justify-between flex-grow",children:[(0,m.jsx)("div",{className:"ml-12",children:(0,m.jsx)("div",{className:"relative flex items-center justify-start space-x-8",children:j.map(e=>{var t;return(null==e?void 0:e.children)?(0,m.jsxs)("div",{className:"relative",ref:t=>C.current[e.href]=t,children:[(0,m.jsxs)("button",{id:"nav-trigger-".concat(e.href),onClick:()=>D(e.href),className:(0,eH.cn)("font-semibold hover:cursor-pointer text-lg uppercase relative flex items-center",f.pathname.startsWith(e.href)||"/"===f.pathname&&"/"===e.href?"text-black":"text-gray-800","hover:text-black transition-colors"),children:[e.label,(0,m.jsx)(ey.Z,{className:(0,eH.cn)("ml-1 h-4 w-4 transition-transform duration-200 ease-in-out",{"transform rotate-180":_===e.href})}),(f.pathname.startsWith(e.href)||"/"===f.pathname&&"/"===e.href)&&(0,m.jsx)("span",{className:"absolute bottom-[-4px] left-0 w-full h-[2px] bg-black"})]}),_===e.href&&(0,m.jsx)("div",{className:"absolute left-0 mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 py-1 z-[10000]",children:null==e?void 0:null===(t=e.children)||void 0===t?void 0:t.map(e=>{if("isDivider"in e&&e.isDivider)return(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"my-1 border-t border-gray-200"}),(0,m.jsx)("div",{className:"px-4 py-2 text-xs font-medium tracking-wider text-gray-500 uppercase",children:e.label})]},e.key);if(e.href)return(0,m.jsxs)(es(),{href:e.href,onClick:R,className:"flex items-center px-4 py-3 text-sm font-medium text-gray-900 transition-colors duration-150 cursor-pointer hover:bg-baby-yellow-900/10",children:[(0,m.jsx)(ew,{className:"w-4 h-4 mr-3 text-gray-400"}),(0,m.jsx)("span",{className:"flex-1",children:e.label})]},e.href);{let t=e.isPast?e.label:"".concat(e.label," (Coming Soon)");return(0,m.jsxs)("div",{className:"flex items-center px-4 py-3 text-sm text-gray-400 cursor-not-allowed",children:[(0,m.jsx)(ew,{className:"w-4 h-4 mr-3 text-gray-300"}),(0,m.jsx)("span",{className:"flex-1",children:t})]},e.label)}})})]},e.href):(0,m.jsx)("div",{className:(0,eH.cn)("font-semibold hover:cursor-pointer text-lg uppercase relative",f.pathname===e.href?"text-black":"text-gray-800","hover:text-black transition-colors"),onClick:()=>{n(!1),f.push(e.href)},children:(0,m.jsxs)(es(),{href:e.href,children:[e.label,f.pathname===e.href&&(0,m.jsx)("span",{className:"absolute bottom-[-4px] left-0 w-full h-[2px] bg-black"})]})},e.href)})})}),(0,m.jsx)("div",{children:Z()})]})]}),(h||p)&&(()=>{let e=e=>{n(!1),e.children&&e.children.length>0?N(e.href):(U(),f.push(e.href))};return(0,m.jsx)("div",{className:"border-t-2 border-gray-400",children:(0,m.jsx)("div",{className:"flex justify-start pt-2 overflow-auto whitespace-nowrap md:hidden scrollbar-hide",children:j.map(t=>(0,m.jsxs)("div",{className:"inline-block",children:[(0,m.jsx)("div",{className:"px-5 hover:text-black hover:cursor-pointer ".concat(f.pathname===t.href||"/home"==f.pathname&&"/"==t.href?"text-black font-semibold":"text-gray-700"),onClick:()=>e(t),children:(0,m.jsxs)("span",{className:"flex items-center",children:[t.label,t.children&&t.children.length>0&&(0,m.jsx)(ey.Z,{className:"flex-shrink-0 w-4 h-4 ml-1"})]})}),(f.pathname===t.href||"/home"==f.pathname&&"/"==t.href)&&(0,m.jsx)("div",{className:"h-[3px] bg-black mt-1 mx-5"})]},t.href))})})})()]}),(()=>{if(!E)return null;let e=j.find(e=>e.href===E);if(!e||!e.children)return null;let t=e=>{e&&(U(),f.push(e))},r=e=>{e.target===e.currentTarget&&U()};return(0,m.jsx)("div",{onClick:r,className:(0,eH.cn)("flex fixed inset-0 justify-center items-center p-4 bg-black bg-opacity-50 z-[10001] md:hidden","transition-opacity ease-in-out","duration-0",T?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),children:(0,m.jsxs)("div",{className:(0,eH.cn)("p-6 w-full max-w-md bg-white rounded-lg shadow-xl","transition-all ease-in-out","duration-0",T?"opacity-100 scale-100":"opacity-0 scale-95"),children:[(0,m.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,m.jsx)("h3",{className:"text-xl font-semibold",children:e.label}),(0,m.jsx)("button",{onClick:U,className:"text-gray-500 hover:text-gray-800",children:(0,m.jsx)("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,m.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,m.jsx)("div",{className:"space-y-2",children:e.children.map(e=>
121{if("isDivider"in e&&e.isDivider)return(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{className:"my-1 border-t border-gray-200"}),(0,m.jsx)("div",{className:"px-3 py-2 text-xs font-medium tracking-wider text-gray-500 uppercase",children:e.label})]},e.key);if(e.href)return(0,m.jsxs)("button",{type:"button",onClick:()=>t(e.href),className:"flex items-center w-full px-3 py-3 text-sm font-medium text-left text-gray-900 transition-colors duration-150 rounded-md cursor-pointer hover:bg-baby-yellow-900/10",children:[(0,m.jsx)(ew,{className:"w-4 h-4 mr-3 text-gray-400"}),(0,m.jsx)("span",{className:"flex-1",children:e.label})]},e.href);{let t=e.isPast?e.label:"".concat(e.label," (Coming Soon)");return(0,m.jsxs)("div",{className:"flex items-center px-3 py-3 text-sm text-gray-400 rounded-md cursor-not-allowed",children:[(0,m.jsx)(ew,{className:"w-4 h-4 mr-3 text-gray-300"}),(0,m.jsx)("span",{className:"flex-1",children:t})]},e.label)}})})]})})})()]})};var eW=r(72369),e$=r(90360);let eV=()=>{let e=(0,e$.N3)("directoryState");return(0,m.jsx)("div",{className:"text-center text-white bg-gray-900 md:text-left",children:(0,m.jsxs)("div",{className:"px-5 py-8 md:container md:mx-auto",children:[(0,m.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[(0,m.jsx)("div",{className:"mb-5 md:mb-0",children:(0,m.jsx)(es(),{href:"/",children:(0,m.jsx)(el(),{src:"/tce-baby-logo-light.png",alt:"tce-baby-logo",width:100,height:100,className:"block ml-auto mr-auto md:ml-0 md:mr-0 hover:cursor-pointer h-[100px] w-auto",priority:!0})})}),(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{children:(0,m.jsx)(es(),{href:"/about-us",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"About Us"})})}),(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/brands",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"Our Brands"})})}),e&&(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/kids-listing",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"Kids Listing"})})}),(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/yhello-cards",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"Yhello Card"})})}),(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/support-group",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"Community"})})})]}),(0,m.jsxs)("div",{className:"mt-5 md:mt-0",children:[(0,m.jsx)("div",{children:(0,m.jsx)(es(),{href:"/articles",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"Articles"})})}),(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/get-in-touch/visitor",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"Get in Touch"})})}),(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/faqs",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"FAQs"})})}),(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/career",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"Career"})})}),(0,m.jsx)("div",{className:"mt-1",children:(0,m.jsx)(es(),{href:"/csr",children:(0,m.jsx)("span",{className:"hover:cursor-pointer hover:text-baby-yellow-900",children:"CSR"})})})]}),(0,m.jsxs)("div",{children:[(0,m.jsxs)("div",{className:"mt-5 md:mt-0",children:[(0,m.jsx)("div",{children:"FOLLOW US ON"}),(0,m.jsxs)("div",{className:"flex justify-center mt-1 align-center md:justify-start",children:[(0,m.jsx)(es(),{href:"https://www.facebook.com/TCEBabyExpo",target:"_blank",children:(0,m.jsx)(ep.Am9,{size:30,className:"hover:cursor-pointer hover:text-baby-yellow-900"})}),(0,m.jsx)(es(),{href:"https://www.instagram.com/tcebabyexpo",target:"_blank",children:(0,m.jsx)(ep.Zf_,{size:31,className:"ml-3 hover:cursor-pointer hover:text-baby-yellow-900"})}),(0,m.jsx)(es(),{href:"https://www.tiktok.com/@tcebabyexpo",target:"_blank",children:(0,m.jsx)(ep.nTm,{size:28,className:"hover:cursor-pointer hover:text-baby-yellow-900 ml-3 mt-[2px]"})}),(0,m.jsx)(es(),{href:"https://www.xiaohongshu.com/user/profile/63be61d00000000026005c36",target:"_blank",children:(0,m.jsx)(eW.Z,{width:28,color:"white",hoverColor:"yellow",className:"hover:cursor-pointer ml-3 mt-[2px]"})})]})]}),(0,m.jsxs)("div",{className:"mt-8 lg:mt-10",children:[(0,m.jsx)("div",{children:"SMART PARENTING APP"}),(0,m.jsxs)("div",{className:"flex justify-center gap-3 mt-3 md:justify-start",children:[(0,m.jsx)(es(),{href:"https://apps.apple.com/my/app/tce-baby-smart-parenting/id1665105936",target:"_blank",children:(0,m.jsx)(el(),{alt:"app-store-download",src:"/app-store.png",width:"150",height:"150",priority:!0})}),(0,m.jsx)(es(),{href:"https://play.google.com/store/apps/details?id=com.tcebabyapp",target:"_blank",children:(0,m.jsx)(el(),{alt:"google-play-download",src:"/google-play.png",width:"150",height:"150",priority:!0})})]})]}),(0,m.jsx)("div",{className:"flex justify-center mt-1 mt-8 align-center md:justify-start lg:mt-10",children:(0,m.jsx)(el(),{alt:"app-store-download",src:"/mbr-logo.png",width:"130",height:"69",priority:!0})})]})]}),(0,m.jsx)("div",{className:"h-[0.02rem] bg-white mb-3 mt-10"}),(0,m.jsxs)("div",{className:"md:flex md:justify-between",children:[(0,m.jsxs)("div",{className:"text-xs",children:["\xa9 The Concept Exhibition (M) Sdn Bhd. Registration No: 200801023440. All rights reserved"," ",new Date().getFullYear(),"."]}),(0,m.jsxs)("div",{className:"text-xs",children:[(0,m.jsx)(es(),{href:"/terms-of-use",children:(0,m.jsx)("span",{className:"hover:text-baby-yellow-900 hover:cursor-pointer",children:"Terms of Use"})})," | ",(0,m.jsx)(es(),{href:"/privacy-policy",children:(0,m.jsx)("span",{className:"hover:text-baby-yellow-900 hover:cursor-pointer",children:"Privacy Policy"})})]})]})]})})},eY=e=>{let{children:t,href:r}=e;return r?(0,m.jsx)(es(),{href:r,children:t}):(0,m.jsx)(m.Fragment,{children:t})},eZ=()=>{var e,t,r,n,i,o,a,s;let u=ez.SX.contents.advertisements.getFooterBannerAdvertisements.useQuery(void 0,{gcTime:9e5,staleTime:9e5});return!u.data||u.isLoading?null:(0,m.jsx)("div",{className:"text-center text-white md:text-left",children:(0,m.jsxs)("div",{className:"px-5 py-8 md:container md:mx-auto",children:[(0,m.jsx)("div",{className:"w-full",children:(0,m.jsx)(eY,{href:null===(e=u.data)||void 0===e?void 0:null===(t=e.cta)||void 0===t?void 0:null===(r=t.web)||void 0===r?void 0:r.link,children:(0,m.jsx)("div",{className:"block sm:hidden max-w-[320px] w-full h-[100px] mx-auto",children:(0,m.jsx)(el(),{src:null!==(a=u.data.mobileImage)&&void 0!==a?a:"",alt:u.data.title,width:320,height:100,className:"object-contain w-full h-full"})})})}),(0,m.jsx)("div",{className:"w-full",children:(0,m.jsx)(eY,{href:null===(n=u.data)||void 0===n?void 0:null===(i=n.cta)||void 0===i?void 0:null===(o=i.web)||void 0===o?void 0:o.link,
121children:(0,m.jsx)("div",{className:"hidden sm:block w-full h-[126px] max-w-[1024px] mx-auto",children:(0,m.jsx)(el(),{src:null!==(s=u.data.desktopImage)&&void 0!==s?s:"",alt:u.data.title,width:1024,height:126,className:"object-contain w-full h-full"})})})})]})})};var eG=r(73190);r(79352);var eK=r(45718),eQ=r(53854);let eX=new TextEncoder,eJ=new TextDecoder,e0=e=>{let t=e;"string"==typeof t&&(t=eX.encode(t));let r=[];for(let e=0;e<t.length;e+=32768)r.push(String.fromCharCode.apply(null,t.subarray(e,e+32768)));return btoa(r.join(""))},e1=e=>e0(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");class e2 extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class e3 extends e2{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class e4 extends e2{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class e5 extends e2{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}var e6=crypto;let e9=e=>e instanceof CryptoKey;var e8=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function e7(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function te(e,t){return e.name===t}function tt(e){return parseInt(e.name.slice(4),10)}function tr(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var tn=(e,...t)=>tr("Key must be ",e,...t);function ti(e,t,...r){return tr(`Key for the ${e} algorithm must be `,t,...r)}var to=e=>e9(e);let ta=["CryptoKey"],ts=async(e,t,r)=>{let n=await function(e,t,r){if(e9(t))return!function(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!te(e.algorithm,"HMAC"))throw e7("HMAC");let r=parseInt(t.slice(2),10),n=tt(e.algorithm.hash);if(n!==r)throw e7(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!te(e.algorithm,"RSASSA-PKCS1-v1_5"))throw e7("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10),n=tt(e.algorithm.hash);if(n!==r)throw e7(`SHA-${r}`,"algorithm.hash");break}
121case"PS256":case"PS384":case"PS512":{if(!te(e.algorithm,"RSA-PSS"))throw e7("RSA-PSS");let r=parseInt(t.slice(2),10),n=tt(e.algorithm.hash);if(n!==r)throw e7(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw e7("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!te(e.algorithm,"ECDSA"))throw e7("ECDSA");let r=function(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}(t),n=e.algorithm.namedCurve;if(n!==r)throw e7(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}!function(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}(e,r)}(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(tn(t,...ta));return e6.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(tn(t,...ta,"Uint8Array"))}(e,t,"sign");e8(e,n);let i=await e6.subtle.sign(function(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new e3(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}(e,n.algorithm),n,r);return new Uint8Array(i)},tu=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0},tl=(e,t)=>{if(!(t instanceof Uint8Array)){if(!to(t))throw TypeError(ti(e,t,...ta,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${ta.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},tc=(e,t,r)=>{if(!to(t))throw TypeError(ti(e,t,...ta));if("secret"===t.type)throw TypeError(`${ta.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${ta.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${ta.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${ta.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${ta.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)},td=(e,t,r)=>{let n=e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e);n?tl(e,t):tc(e,t,r)};var tf=function(e,t,r,n,i){let o;if(void 0!==i.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new e3(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)};class th{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new e4("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!tu(this._protectedHeader,this._unprotectedHeader))throw new e4("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=tf(e4,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new e4('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
121if("string"!=typeof a||!a)throw new e4('JWS "alg" (Algorithm) Header Parameter missing or invalid');td(a,e,"sign");let s=this._payload;o&&(s=eX.encode(e1(s))),r=this._protectedHeader?eX.encode(e1(JSON.stringify(this._protectedHeader))):eX.encode("");let u=function(...e){let t=e.reduce((e,{length:t})=>e+t,0),r=new Uint8Array(t),n=0;return e.forEach(e=>{r.set(e,n),n+=e.length}),r}(r,eX.encode("."),s),l=await ts(a,e,u),c={signature:e1(l),payload:""};return o&&(c.payload=eJ.decode(s)),this._unprotectedHeader&&(c.header=this._unprotectedHeader),this._protectedHeader&&(c.protected=eJ.decode(r)),c}}class tp{constructor(e){this._flattened=new th(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}var tg=e=>Math.floor(e.getTime()/1e3);let tm=604800,tv=31557600,ty=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;var tb=e=>{let t=ty.exec(e);if(!t)throw TypeError("Invalid time period format");let r=parseFloat(t[1]),n=t[2].toLowerCase();switch(n){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(60*r);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(3600*r);case"day":case"days":case"d":return Math.round(86400*r);case"week":case"weeks":case"w":return Math.round(r*tm);default:return Math.round(r*tv)}};class tw{constructor(e){if(!function(e){if(!("object"==typeof e&&null!==e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:tg(new Date)+tb(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:tg(new Date)+tb(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:tg(new Date)}:this._payload={...this._payload,iat:e},this}}class tx extends tw{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let n=new tp(eX.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new e5("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}var t_=r(50626),tS=r(98420),tC=r(88146);let tE=e=>{let{isMenuOpen:t,onMenuClose:r,userContext:n}=e,{user:i,isAuth:o}=n,{myDetail:a}=(0,v.useContext)(tS.S),s=(0,y.useRouter)(),u=(0,tC.K7)(a),l=(0,tC.Vv)(a)||"MEMBER",c=new Date;c.setMinutes(c.getMinutes()+2);let[d,f]=(0,v.useState)(null),[h,p]=(0,v.useState)(!1),[b,w]=(0,v.useState)(60),x=(0,v.useRef)(b),_=!!(d&&d.length>0),S=!!(i&&"verified"===i.profileVerificationStatus),C=async e=>{try{let t=await fetch("/api/date/get/utc-date-time",{method:"GET",next:{revalidate:0}}),r=await t.json(),n=401===t.status?new Date:new Date(r),o=401!==t.status,a=Math.floor(n.getTime()/1e3),s={issuer:i.email,cognitoSub:i.cognitoSub,isUtcTime:o},u=await new tx(s).setProtectedHeader({typ:"JWT",alg:"HS256"}).setIssuedAt(a).setIssuer(i.email).setExpirationTime(a+120).sign(new TextEncoder().encode(e.id));f("tcebaby://user?data=".concat(u))}catch(e){f(null)}};(0,v.useEffect)(()=>{if(o&&t){C(i),x.current=60;let e=setInterval(()=>{x.current<=1?(C(i),w(60),x.current=60):(x.current-=1,w(x.current))},1e3);return()=>clearInterval(e)}t||(f(null),x.current=60)},[o,t,i]);let E=e=>e<=1?"second":"seconds",k=()=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"flex justify-center mt-3",children:(0,m.jsx)("div",{className:"bg-gray-600 h-[200px] w-[200px] flex justify-center items-center rounded-lg",children:(0,m.jsx)(eg.Jv,{height:"50",width:"50",ariaLabel:"loading"})})}),(0,m.jsx)("div",{className:"text-xs mt-2 text-gray-400",children:"Generating QR Code"})]}),T=(0,v.useCallback)(e=>_?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)("div",{className:"flex justify-center w-fit mx-auto mt-3",children:(0,m.jsx)("div",{className:"overflow-hidden rounded-lg",onClick:()=>p(!0),children:(0,m.jsx)(eK.QRCode,{value:d,size:e?280:200,quietZone:5,qrStyle:"squares",logoImage:"/qr-logo.png",logoWidth:e?50:32,logoHeight:e?50:32})})}),(0,m.jsxs)("div",{className:"text-xs mt-2 text-gray-400 ".concat(e?"text-center":""),children:["Refresh in ",b," ",E(b)]})]}):k(),[_,d,b]),A=()=>S?(0,m.jsx)(eQ.lyK,{size:16,color:"#FFEB02"}):null,P=e=>(0,m.jsxs)("div",{className:"inline-flex items-center gap-1.5 px-3 py-1 mt-1.5 rounded-full cursor-pointer text-[10px] font-black uppercase tracking-widest transition-all duration-200 hover:scale-105 hover:shadow-md ".concat(u?"bg-gradient-to-r from-yellow-400 via-yellow-300 to-yellow-400 text-black border border-yellow-500/40":e?"bg-gray-700 text-gray-300 border border-gray-600":"bg-gray-200 text-gray-600 border border-gray-300"),onClick:()=>{r&&r();let e="/account?page=profile"===s.asPath||s.asPath.startsWith("/account?page=profile");e||s.push("/account?page=profile",void 0,{shallow:!1})},children:[u&&(0,m.jsx)(ep.CvY,{className:"text-[10px]"}),(0,m.jsx)("span",{children:l})]});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(t_.Z,{button:null,open:h,setOpen:p,data:(0,m.jsxs)("div",{className:"text-sm text-center p-5",children:[(0,m.jsxs)("div",{className:"flex justify-center items-center",children:[(0,m.jsx)("div",{className:"mr-1 mt-[-2px]",children:A()}),(0,m.jsx)("div",{className:"text-gray-900 text-ellipsis overflow-hidden truncate font-bold",children:i.displayName})]}),(0,m.jsx)("div",{className:"flex justify-center",children:P(!1)}),T(!0)]})}),(0,m.jsxs)("div",{className:"text-sm text-center",children:[(0,m.jsxs)("div",{className:"px-5 flex justify-center items-center",children:[(0,m.jsx)("div",{className:"mr-1 mt-[-2px]",children:A()}),(0,m.jsx)("div",{className:"text-ellipsis overflow-hidden truncate font-bold",children:i.displayName})]}),(0,m.jsx)("div",{className:"flex justify-center",children:P(!0)}),T(!1)]})]})};var tk=r(67482),tT=r(21508),tA=r(9656);let tP=e=>{let{onClose:t,isOpen:r,user:n,isAuth:i,isUserReady:o=!1,hydrateUser:a}=e,[s,u]=(0,tA.Z)(),l=(0,y.useRouter)(),{menuLinks:c,rewardsLinks:d}=(0,tT.d)(),{isUserSummaryReady:f,isHasUserSummaryError:h,userBalanceAmount:p,computeUserSummary:b}=(0,tk.E)();(0,v.useEffect)(()=>{r?s():u()},[r,s,u]);let w=!!(n&&n.id&&i),x=!!(d&&d.length>0),_=!!(c&&c.length>0),S=(0,v.useCallback)(()=>x?(0,m.jsx)("div",{className:"mt-4 space-y-3",children:d.map(e=>(0,m.jsx)("div",{id:e.slug,children:(0,m.jsx)(eF.default,{label:e.label,color:"yellow",size:"small",onClick:()=>{t(),l.push(e.path)},fullWidth:!0})},e.slug))}):null,[d,t,l]),C=(0,v.useCallback)(()=>_?c.map(e=>(0,m.jsx)("div",{id:e.slug,className:"py-1 menu-item",children:(0,m.jsx)("span",{className:"text-xl hover:cursor-pointer hover:text-baby-yellow-900",onClick:()=>{t(),l.asPath!==e.path&&l.push(e.path)},children:e.label})},e.slug)):null,[c,t,l]);return r?(0,m.jsx)(eG.push,{...e,className:"z-[999] bg-black p-8 transition-transform",children:o?(0,m.jsxs)("div",{className:"w-[230px] h-full space-y-3 text-white pt-8 md:pt-0",children:[(0,m.jsx)("div",{children:w?(0,m.jsxs)("div",{children:[(0,m.jsx)(tE,{isMenuOpen:r,onMenuClose:t,userContext:{user:n,isAuth:i}}),f?h?(0,m.jsxs)("div",{className:"mt-3",children:[(0,m.jsx)("div",{className:"text-base font-bold text-center md:text-lg",children:Number(0).toLocaleStr
121ing()}),(0,m.jsx)("div",{className:"mt-[-2px] text-center text-xs",children:"Yhello Points"})]}):(0,m.jsxs)("div",{className:"mt-3",children:[(0,m.jsx)("div",{className:"text-base font-bold text-center md:text-lg",children:p.points.toLocaleString()}),(0,m.jsx)("div",{className:"mt-[-2px] text-center text-xs",children:"Yhello Points"})]}):(0,m.jsx)("div",{className:"mt-3",children:(0,m.jsxs)("div",{className:"flex gap-2 justify-center items-center text-base font-bold text-center md:text-lg",children:["Loading ",(0,m.jsx)(eg.g4,{color:"white",height:10,width:15})]})}),S(),(0,m.jsx)("div",{className:"my-5 h-[0.5px] bg-gray-500"})]}):null}),(0,m.jsx)("div",{className:"h-full",children:C()})]}):null}):(0,m.jsx)(eG.push,{...e,className:"relative z-[999] flex translate-x-[100%] items-center overflow-hidden bg-black p-8 transition-transform"})},tI=()=>{let[e,t]=(0,v.useState)(0),r=()=>{{let e=window.pageYOffset;t(e)}};return(0,v.useEffect)(()=>(window.addEventListener("scroll",r,{passive:!0}),()=>{window.removeEventListener("scroll",r),t(0)}),[]),e};var tO=r(61738);let tM=en()(()=>r.e(8943).then(r.bind(r,68943)),{loadableGenerated:{webpack:()=>[68943]},ssr:!1}),tj=en()(()=>Promise.all([r.e(9866),r.e(3710)]).then(r.bind(r,53710)),{loadableGenerated:{webpack:()=>[53710]},ssr:!1}),tD=e=>{let{layoutType:t="default",pageTitle:r,children:n}=e,i=(0,y.useRouter)(),o=!("custom"!==t),[a,s]=(0,v.useState)(!0),[u,l]=(0,v.useState)(!1),[c,d]=(0,v.useState)(1),[f,h]=(0,v.useState)(!1),{user:p,userBalanceAmount:b,jwtToken:w,isAuth:x,isUserReady:_,shoppingItemCount:S,hydrateUser:C,setReturnHistory:E}=(0,v.useContext)(tS.S),{allLatestExpo:k}=(0,v.useContext)(tO.J),T=tI(),A="https://www.tcebaby.com.my"+i.asPath;return(0,v.useEffect)(()=>{s(!("home"!==t))},[t]),(0,v.useEffect)(()=>{},[a,T]),(0,v.useEffect)(()=>{let e=(e,t)=>{var r;let n=null!==(r=null==t?void 0:t.shallow)&&void 0!==r&&r,o=i.asPath.split("?")[0],a=("string"==typeof e?e:"").split("?")[0],s=e.includes("/my-rewards")&&"/my-rewards?tab=summary"!==e||e.includes("/get-in-touch");h((o!==a||!n)&&!s)},t=()=>{h(!1)},r=e=>{h(!1)};return i.events.on("routeChangeStart",(t,r)=>{let{shallow:n}=r;return e(t,{shallow:n})}),i.events.on("routeChangeComplete",()=>t()),i.events.on("routeChangeError",e=>r(e)),()=>{i.events.off("routeChangeStart",(t,r)=>{let{shallow:n}=r;return e(t,{shallow:n})}),i.events.off("routeChangeComplete",()=>t()),i.events.off("routeChangeError",e=>r(e))}},[i.events]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(ei.Z,{children:[(0,m.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"}),(0,m.jsx)("meta",{name:"theme-color",content:"#FFEB02"}),(0,m.jsx)("meta",{name:"msapplication-navbutton-color",content:"#FFEB02"}),(0,m.jsx)("meta",{name:"apple-mobile-web-app-status-bar-style",content:"#FFEB02"}),(0,m.jsx)("meta",{name:"facebook-domain-verification",content:"6gvqt1zn8a3sh4cpz8pwbmxvqh9xj3"}),(0,m.jsx)("meta",{name:"og:url",content:A}),(0,m.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,m.jsx)(eo.Z,{}),(0,m.jsxs)("main",{id:"outer-container",className:"min-h-[75vh]",children:[(0,m.jsx)(tM,{isLoading:f}),(0,m.jsx)(eq,{isAuth:x,isUserReady:_,user:p,hydrateUser:C,shoppingItemCount:S,isHome:a,isMenuOpen:u,setIsMenuOpen:l,setReturnHistory:E,headerBgOpacity:c,allLatestExpo:k}),(0,m.jsx)(tP,{userBalanceAmount:b,computeUserSummary:!0,isAuth:x,isUserReady:_,user:p,hydrateUser:C,jwtToken:w,isHome:a,isOpen:u,pageWrapId:"page-wrap",outerContainerId:"outer-container",customCrossIcon:!1,customBurgerIcon:!1,onClose:()=>l(!1),right:!0}),(()=>{let e=!["/"].includes(i.pathname);return a?(0,m.jsxs)("div",{id:"",className:"relative pt-1",children:[n,(0,m.jsx)("div",{className:"fixed bottom-6 right-6 z-[999]",children:(0,m.jsx)(tj,{})}),(0,m.jsx)(eV,{})]}):o?(0,m.jsxs)("div",{id:"page-wrap",className:"relative pt-1",children:[(0,m.jsx)("div",{className:"w-full bg-baby-yellow-900",children:(0,m.jsx)("div",{className:"px-14 py-10 text-center md:text-left",children:(0,m.jsx)("span",{className:"text-3xl font-extrabold",children:r})})}),n,(0,m.jsx)("div",{className:"fixed bottom-6 right-6 z-[999]",children:(0,m.jsx)(tj,{})}),e&&(0,m.jsx)(eZ,{}),(0,m.jsx)(eV,{})]}):(0,m.jsxs)("div",{id:"page-wrap",className:"relative pt-1",children:[n,(0,m.jsx)("div",{className:"fixed bottom-6 right-6 z-[999]",children:(0,m.jsx)(tj,{})}),e&&(0,m.jsx)(eZ,{}),(0,m.jsx)(eV,{})]})})()]})]})},tR={name:"textfield-theme",tokens:{components:{textfield:{color:{value:"#000"},_focus:{borderColor:{value:"#000"}}}}}};var tN=r(97533),tU=r(77916),tF=r(85459);let tL=()=>{let e=(0,y.useRouter)(),{isAuth:t,isUserReady:r}=(0,v.useContext)(tS.S),[n,i]=(0,v.useState)(void 0);return(0,v.useEffect)(()=>{let t=()=>{let e=(0,tF.f9)(window.location.href);e&&i(e)};return t(),e.events.on("routeChangeComplete",t),()=>e.events.off("routeChangeComplete",t)},[e.events]),(0,v.useEffect)(()=>{n&&r&&(t||(0,tF.bI)(n),i(void 0))},[n,r,t]),null}
121,tB=e=>{let{children:t}=e;return(0,m.jsxs)(tS.Z,{children:[(0,m.jsx)(tL,{}),(0,m.jsx)(tO.Z,{children:(0,m.jsx)(tU.O1,{children:t})})]})},tz=()=>{let e=(0,y.useRouter)(),t=(0,v.useRef)({}),r=(0,v.useRef)(!1);(0,v.useEffect)(()=>{e.beforePopState(()=>(r.current=!0,!0));let n=()=>{let r=e.pathname;t.current[r]=window.scrollY},i=e=>{r.current&&t.current[e]&&window.scroll({top:t.current[e],behavior:"auto"}),r.current=!1};return e.events.on("routeChangeStart",n),e.events.on("routeChangeComplete",i),()=>{e.events.off("routeChangeStart",n),e.events.off("routeChangeComplete",i)}},[e])};var tH=r(86310),tq=r(39802);let tW=()=>{let{user:e}=(0,v.useContext)(tS.S);return(0,v.useEffect)(()=>{if(!window.Tawk_API||!window.Tawk_API._initialized)try{let t=!1;try{let e="__tawk_storage_test__";window.sessionStorage.setItem(e,"test"),window.sessionStorage.removeItem(e),t=!0}catch(e){t=!1}window.Tawk_API=window.Tawk_API||{},window.Tawk_LoadStart=new Date,window.Tawk_API._storageAvailable=t;let r=()=>{if(window.Tawk_API&&window.Tawk_API.setAttributes)try{if((null==e?void 0:e.fullName)||(null==e?void 0:e.email)){var t,r,n;window.Tawk_API.setAttributes({name:null!==(r=null!==(t=null==e?void 0:e.fullName)&&void 0!==t?t:null==e?void 0:e.email)&&void 0!==r?r:"visitor",email:null!==(n=null==e?void 0:e.email)&&void 0!==n?n:"[email protected]"},e=>{})}window.Tawk_API._initialized=!0}catch(e){}};if(window.Tawk_API.onLoad=function(){r()},!t&&window.Tawk_API){let e={};window.Tawk_API._fallbackStorage={getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]},clear:()=>{Object.keys(e).forEach(t=>delete e[t])}}}let n=document.createElement("script");n.async=!0,n.src="https://embed.tawk.to/671f27de2480f5b4f594f100/1ib8r7ffj",n.charset="UTF-8",n.onerror=e=>{};let i=document.getElementsByTagName("script")[0];i&&i.parentNode?i.parentNode.insertBefore(n,i):document.head.appendChild(n);let o=0,a=setInterval(()=>{o++,window.Tawk_API&&window.Tawk_API.setAttributes&&!window.Tawk_API._initialized?(clearInterval(a),r()):o>=30&&clearInterval(a)},1e3);return()=>{clearInterval(a),n.parentNode&&n.parentNode.removeChild(n),window.Tawk_API&&(window.Tawk_API._initialized=!1)}}catch(e){}},[e]),null},t$=()=>{let{user:e,isAuth:t}=(0,v.useContext)(tS.S),r=ez.SX.products.carts.countCartItems.useQuery(void 0,{enabled:!!t,staleTime:1e4});return(0,v.useEffect)(()=>{t&&r.refetch()},[e]),null},tV=()=>{let{user:e,isAuth:t}=(0,v.useContext)(tS.S),r=ez.SX.users.notifications.getUnreadNotificationsCount.useQuery(void 0,{enabled:!!t,staleTime:5e3,refetchInterval:5e3});return(0,v.useEffect)(()=>{t&&r.refetch()},[e]),null};var tY=r(15838),tZ=r(58819),tG=r(44343);function tK(){let e=(0,tG.useRouter)(),t=(0,v.useMemo)(()=>{let t=new URLSearchParams;if(null===e)return t;for(let[r,n]of Object.entries(e.query))if("string"==typeof n)t.set(r,n);else if(Array.isArray(n))for(let e of n)t.append(r,e);return t}
121,[JSON.stringify(e?.query)]),r=(0,v.useCallback)((e,t)=>{let r=window.next?.router,n=function(e,t){let r;let n=new Set,i=/\[([^\]]+)\]/g;for(;null!==(r=i.exec(e));){let e=r[1];e&&n.add(e)}let o=Object.fromEntries(Object.entries(t).filter(([e])=>n.has(e))),a=/\[\.{3}([^\]]+)\]$/.exec(e);if(a&&a[1]){let e=a[1];o[e]=t[e]??[]}let s=/\[\[\.{3}([^\]]+)\]\]$/.exec(e);if(s&&s[1]){let e=s[1];o[e]=t[e]??[]}return o}(r.pathname,r.query),i=r.asPath.replace(/#.*$/,"").replace(/\?.*$/,"")+(0,tZ.R)(e)+location.hash;(0,tZ.fF)("[nuqs queue (pages)] Updating url: %s",i);let o="push"===t.history?r.push:r.replace;o.call(r,{pathname:r.pathname,query:{...function(e){let t={};for(let r of e.keys()){let n=e.getAll(r);1===n.length?t[r]=n[0]:n.length>1&&(t[r]=n)}return t}(e),...n}},i,{scroll:t.scroll,shallow:t.shallow})},[]);return{searchParams:t,updateUrl:r}}(0,tZ.Z0)(tK);var tQ=(0,tZ.Z0)(tK);(0,tY.Fr)(),b.d.configure({aws_project_region:"ap-southeast-1",aws_cognito_region:"ap-southeast-1",aws_user_pools_id:"ap-southeast-1_8zEgxNJWL",aws_user_pools_web_client_id:"1j59jgq6vuag92f5cr910rh4c6",oauth:{},aws_cognito_username_attributes:["EMAIL"],aws_cognito_social_providers:[],aws_cognito_signup_attributes:["EMAIL"],aws_cognito_mfa_configuration:"OFF",aws_cognito_mfa_types:[],aws_cognito_password_protection_settings:{passwordPolicyMinLength:8,passwordPolicyCharacters:["REQUIRES_LOWERCASE","REQUIRES_NUMBERS"]},aws_cognito_verification_mechanisms:[],Auth:{cookieStorage:{sameSite:"lax"}},ssr:!0});let tX=["terms-of-use","privacy-policy","articles","media","products","account","career-opportunity","wishlist"];var tJ=ez.SX.withTRPC(function(e){var t;let{Component:r,pageProps:n}=e,i=(0,y.useRouter)(),o=null!==(t=r.layout)&&void 0!==t?t:tD,[a,s]=(0,v.useState)("home"),[u,l]=(0,v.useState)("");return(tz(),(0,tH.G)(),(0,v.useEffect)(()=>{let e=i.asPath.split("?")[0].substring(1);if(l((0,tN.pz)(e)),o!==tD)return;let t=!(""!==e),r=!!tX.includes(e);t||r||s("default"),t&&s("home"),r&&s("custom")},[i,o]),o!==tD)?(0,m.jsx)(tB,{featureFlags:n.featureFlags,children:(0,m.jsx)(et,{children:(0,m.jsx)(tq.l,{children:(0,m.jsx)(tQ,{children:(0,m.jsx)(o,{pageTitle:u,children:(0,m.jsxs)(A,{theme:tR,colorMode:"light",children:[(0,m.jsx)(tW,{}),(0,m.jsx)(r,{...n})]})})})})})}):(0,m.jsx)(tB,{featureFlags:n.featureFlags,children:(0,m.jsx)(et,{children:(0,m.jsx)(tq.l,{children:(0,m.jsx)(tQ,{children:(0,m.jsx)(tD,{layoutType:a,pageTitle:u,children:(0,m.jsxs)(A,{theme:tR,colorMode:"light",children:[(0,m.jsx)(tW,{}),(0,m.jsx)(t$,{}),(0,m.jsx)(tV,{}),(0,m.jsx)(r,{...n})]})})})})})})})},77945:function(e,t,r){"use strict";var n=r(31993);let i=(0,n.U)(e=>({returnUrl:null,setReturnUrl:t=>e({returnUrl:t}),clearReturnUrl:()=>e({returnUrl:null})}));t.Z=i},15838:function(e,t,r){"use strict";r.d(t,{EN:function(){return n},Fr:function(){return o},KK:function(){return i}});let n=new class{checkStorageAvailability(){try{let e="__storage_test__";window.localStorage.setItem(e,"test"),window.localStorage.removeItem(e),this.storageAvailable=!0}catch(e){this.storageAvailable=!1}}getItem(e){if(this.storageAvailable)try{return window.localStorage.getItem(e)}catch(e){}return this.fallbackStorage[e]||null}setItem(e,t){if(this.storageAvailable)try{window.localStorage.setItem(e,t);return}catch(r){this.fallbackStorage[e]=t}else this.fallbackStorage[e]=t}removeItem(e){if(this.storageAvailable)try{window.localStorage.removeItem(e)}catch(t){delete this.fallbackStorage[e]}else delete this.fallbackStorage[e]}clear(){if(this.storageAvailable)try{window.localStorage.clear()}catch(e){this.fallbackStorage={}}else this.fallbackStorage={}}get length(){if(this.storageAvailable)try{return window.localStorage.length}catch(e){}return Object.keys(this.fallbackStorage).length}key(e){if(this.storageAvailable)try{return window.localStorage.key(e)}catch(r){let t=Object.keys(this.fallbackStorage);return t[e]||null}let t=Object.keys(this.fallbackStorage);return t[e]||null}constructor(){this.storageAvailable=!1,this.fallbackStorage={},this.checkStorageAvailability()}},i=new class{checkStorageAvailability(){try{let e="__session_storage_test__";window.sessionStorage.setItem(e,"test"),window.sessionStorage.removeItem(e),this.storageAvailable=!0}catch(e){this.storageAvailable=!1}}getItem(e){if(this.storageAvailable)try{return window.sessionStorage.getItem(e)}catch(e){}return this.fallbackStorage[e]||null}setItem(e,t){if(this.storageAvailable)try{window.sessionStorage.setItem(e,t);return}catch(r){this.fallbackStorage[e]=t}else this.fallbackStorage[e]=t}removeItem(e){if(this.storageAvailable)try{window.sessionStorage.removeItem(e)}catch(t){delete this.fallbackStorage[e]}else delete this.fallbackStorage[e]}clear(){if(this.storageAvailable)try{window.sessionStorage.clear()}catch(e){this.fallbackStorage={}}else this.fallbackStorage={}}get length(){if(this.storageAvailable)try{return window.sessionStorage.length}catch(e){}return Object.keys(this.fallbackStorage).length}key(e){if(this.storageAvailable)try{return window.sessionStorage.key(e)}catch(r){let t=Object.keys(this.fallbackStorage);return t[e]||null}let t=Object.keys(this.fallbackStorage);return t[e]||null}constructor(){this.storageAvailable=!1,this.fallbackStorage={},this.checkStorageAvailability()}},o=()=>{try{let e="__storage_polyfill_test__";window.localStorage.setItem(e,"test"),window.localStorage.removeItem(e)}catch(e){Object.defineProperty(window,"localStorage",{value:n,writable:!1,
121configurable:!1})}try{let e="__session_storage_polyfill_test__";window.sessionStorage.setItem(e,"test"),window.sessionStorage.removeItem(e)}catch(e){Object.defineProperty(window,"sessionStorage",{value:i,writable:!1,configurable:!1})}}},97719:function(e,t,r){"use strict";let n;r.d(t,{SX:function(){return rT},dN:function(){return rA}});var i,o,a="undefined"==typeof window||"Deno"in globalThis;function s(){}function u(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function c(e,t){return"function"==typeof e?e(t):e}function d(e,t){return"function"==typeof e?e(t):e}function f(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a){if(n){if(t.queryHash!==p(a,t.options))return!1}else if(!v(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!i||i===t.state.fetchStatus)&&(!o||!!o(t))}function h(e,t){let{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(m(t.options.mutationKey)!==m(o))return!1}else if(!v(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function p(e,t){let r=t?.queryKeyHashFn||m;return r(e)}function m(e){return JSON.stringify(e,(e,t)=>x(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function v(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(r=>v(e[r],t[r]))}function y(e,t){if(e===t)return e;let r=w(e)&&w(t);if(r||x(e)&&x(t)){let n=r?e:Object.keys(e),i=n.length,o=r?t:Object.keys(t),a=o.length,s=r?[]:{},u=new Set(n),l=0;for(let n=0;n<a;n++){let i=r?n:o[n];(!r&&u.has(i)||r)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=y(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function b(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function w(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function x(e){if(!_(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(_(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function _(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?y(e,t):t}function C(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function E(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var k=Symbol();function T(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==k?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function A(e,t){return"function"==typeof e?e(...t):!!e}var P=e=>setTimeout(e,0),I=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=P,o=n=>{t?e.push(n):i(()=>{r(n)})},a=()=>{let t=e;e=[],t.length&&i(()=>{n(()=>{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),O=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},M=new class extends O{#e;#t;#r;constructor(){super(),this.#r=e=>{if(!a&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.#e!==e;t&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}},j=new class extends O{#n=!0;#t;#r;constructor(){super(),this.#r=e=>{if(!a&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){let t=this.#n!==e;
121t&&(this.#n=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#n}};function D(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}function R(e){return Math.min(1e3*2**e,3e4)}function N(e){return(e??"online")!=="online"||j.isOnline()}var U=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function F(e){return e instanceof U}function L(e){let t,r=!1,n=0,i=!1,o=D(),s=t=>{i||(h(new U(t)),e.abort?.())},u=()=>{r=!0},l=()=>{r=!1},c=()=>M.isFocused()&&("always"===e.networkMode||j.isOnline())&&e.canRun(),d=()=>N(e.networkMode)&&e.canRun(),f=r=>{i||(i=!0,e.onSuccess?.(r),t?.(),o.resolve(r))},h=r=>{i||(i=!0,e.onError?.(r),t?.(),o.reject(r))},p=()=>new Promise(r=>{t=e=>{(i||c())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,i||e.onContinue?.()}),m=()=>{let t;if(i)return;let o=0===n?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if(i)return;let o=e.retry??(a?0:3),s=e.retryDelay??R,u="function"==typeof s?s(n,t):s,l=!0===o||"number"==typeof o&&n<o||"function"==typeof o&&o(n,t);if(r||!l){h(t);return}n++,e.onFail?.(n,t),new Promise(e=>{setTimeout(e,u)}).then(()=>c()?void 0:p()).then(()=>{r?h(t):m()})})};return{promise:o,cancel:s,continue:()=>(t?.(),o),cancelRetry:u,continueRetry:l,canStart:d,start:()=>(d()?m():p().then(m),o)}}var B=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),u(this.gcTime)&&(this.#i=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(a?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},z=class extends B{#o;#a;#s;#u;#l;#c;#d;constructor(e){super(),this.#d=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#s=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#o=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#o,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){let r=S(this.state.data,e,this.options);return this.#f({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#f({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(s).catch(s):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#o)}isActive(){return this.observers.some(e=>!1!==d(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===k||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===c(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!l(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#l&&(this.#d?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,r.signal)}
121)},i=()=>{let e=T(this.options,t),r=(()=>{let e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return(this.#d=!1,this.options.persister)?this.options.persister(e,r,this):e(r)},o=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:i};return n(e),e})();this.options.behavior?.onFetch(o,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#f({type:"fetch",meta:o.fetchOptions?.meta});let a=e=>{F(e)&&e.silent||this.#f({type:"error",error:e}),F(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#l=L({initialPromise:t?.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){a(e);return}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:a,onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}),this.#l.start()}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...H(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if(F(r)&&r.revert&&this.#a)return{...this.#a,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),I.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function H(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:N(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var q=class extends O{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,r){let n=t.queryKey,i=t.queryHash??p(n,t),o=this.get(i);return o||(o=new z({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){I.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>f(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>f(e,t)):t}notify(e){I.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){I.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){I.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},W=class extends B{#p;#g;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#g=e.mutationCache,this.#p=[],this.state=e.state||$(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#g.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter(t=>t!==e),this.scheduleGc(),this.#g.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#g.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#f({type:"continue"})};this.#l=L({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#g.canRun(this)});let r="pending"===this.state.status,n=!this.#l.canStart();try{if(r)t();else{this.#f({type:"pending",variables:e,isPaused:n}),await this.#g.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:n})}let i=await this.#l.start();return await this.#g.config.onSuccess?.(i,e,this.state.context,this),await this.options.onSuccess?.(i,e,this.state.context),await this.#g.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,e,this.state.context),this.#f({type:"success",data:i}),i}catch(t){try{throw await this.#g.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#g.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#f({type:"error",error:t})}}finally{this.#g.runNext(this)}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};
121case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),I.batch(()=>{this.#p.forEach(t=>{t.onMutationUpdate(e)}),this.#g.notify({mutation:this,type:"updated",action:e})})}};function $(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var V=class extends O{constructor(e={}){super(),this.config=e,this.#m=new Set,this.#v=new Map,this.#y=0}#m;#v;#y;build(e,t,r){let n=new W({mutationCache:this,mutationId:++this.#y,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#m.add(e);let t=Y(e);if("string"==typeof t){let r=this.#v.get(t);r?r.push(e):this.#v.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#m.delete(e)){let t=Y(e);if("string"==typeof t){let r=this.#v.get(t);if(r){if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#v.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=Y(e);if("string"!=typeof t)return!0;{let r=this.#v.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=Y(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#v.get(t)?.find(t=>
121t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){I.batch(()=>{this.#m.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#m.clear(),this.#v.clear()})}getAll(){return Array.from(this.#m)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>h(t,e))}findAll(e={}){return this.getAll().filter(t=>h(e,t))}notify(e){I.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return I.batch(()=>Promise.all(e.map(e=>e.continue().catch(s))))}};function Y(e){return e.options.scope?.id}function Z(e){return{onFetch:(t,r)=>{let n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},u=0,l=async()=>{let r=!1,l=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",()=>{r=!0}),t.signal)})},c=T(t.options,t.fetchOptions),d=async(e,n,i)=>{if(r)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let o=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};return l(e),e})(),a=await c(o),{maxPages:s}=t.options,u=i?E:C;return{pages:u(e.pages,a,s),pageParams:u(e.pageParams,n,s)}};if(i&&o.length){let e="backward"===i,t={pages:o,pageParams:a},r=(e?K:G)(n,t);s=await d(t,r,e)}else{let t=e??o.length;do{let e=0===u?a[0]??n.initialPageParam:G(n,s);if(u>0&&null==e)break;s=await d(s,e),u++}while(u<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=l}}}function G(e,{pages:t,pageParams:r}){let n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function K(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var Q=class{#b;#g;#c;#w;#x;#_;#S;#C;constructor(e={}){this.#b=e.queryCache||new q,this.#g=e.mutationCache||new V,this.#c=e.defaultOptions||{},this.#w=new Map,this.#x=new Map,this.#_=0}mount(){this.#_++,1===this.#_&&(this.#S=M.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onFocus())}),this.#C=j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onOnline())}))}unmount(){this.#_--,0===this.#_&&(this.#S?.(),this.#S=void 0,this.#C?.(),this.#C=void 0)}isFetching(e){return this.#b.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#g.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=this.#b.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(c(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#b.findAll(e).map(({queryKey:e,state:t})=>{let r=t.data;return[e,r]})}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),i=this.#b.get(n.queryHash),o=i?.state.data,a="function"==typeof t?t(o):t;if(void 0!==a)return this.#b.build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return I.batch(()=>this.#b.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state}removeQueries(e){let t=this.#b;I.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#b;return I.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let r={revert:!0,...t},n=I.batch(()=>this.#b.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(s).catch(s)}invalidateQueries(e,t={}){return I.batch(()=>(this.#b.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let r={...t,cancelRefetch:t.cancelRefetch??!0},n=I.batch(()=>this.#b.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(s)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(s)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=this.#b.build(this,t);return r.isStaleByTime(c(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(s).catch(s)}fetchInfiniteQuery(e){return e.behavior=Z(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(s).catch(s)}ensureInfiniteQueryData(e){return e.behavior=Z(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return j.isOnline()?this.#g.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#g}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#w.set(m(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#w.values()],r={};return t.forEach(t=>{v(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#x.set(m(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#x.values()],r={};return t.forEach(t=>{v(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=p(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===k&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#b.clear(),this.#g.clear()}};function X(e){let t={subscribe(t){let r=null,n=!1,i=!1,o=!1;function a(){if(null===r){o=!0;return}!i&&(i=!0,"function"==typeof r?r():r&&r.unsubscribe())}return r=e({next(e){n||t.next?.(e)},error(e){n||(n=!0,t.error?.(e),a())},complete(){n||(n=!0,t.complete?.(),a())}}),o&&a(),{unsubscribe:a}},pipe:(...e)=>e.reduce(J,t)};return t}function J(e,t){return t(e)}Symbol();let ee=(e,t)=>
121e===t||!!(e&&t&&"object"==typeof e&&"object"==typeof t)&&Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every(([e,r])=>ee(r,t[e])),et=()=>{},er=e=>{Object.freeze&&Object.freeze(e)},en=e=>(function e(t,r,n){var i;let o=r.join(".");return(i=n)[o]??(i[o]=new Proxy(et,{get(i,o){if("string"==typeof o&&"then"!==o)return e(t,[...r,o],n)},apply(e,n,i){let o=r[r.length-1],a={args:i,path:r};return"call"===o?a={args:i.length>=2?[i[1]]:[],path:r.slice(0,-1)}:"apply"===o&&(a={args:i.length>=2?i[1]:[],path:r.slice(0,-1)}),er(a.args),er(a.path),t(a)}})),n[o]})(e,[],Object.create(null)),ei=e=>new Proxy(et,{get(t,r){if("then"!==r)return e(r)}}),eo={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,BAD_GATEWAY:-32603,SERVICE_UNAVAILABLE:-32603,GATEWAY_TIMEOUT:-32603,UNAUTHORIZED:-32001,PAYMENT_REQUIRED:-32002,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNSUPPORTED_MEDIA_TYPE:-32015,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};function ea(e,...t){let r=Object.assign(Object.create(null),e);for(let e of t)for(let t in e){if(t in r&&r[t]!==e[t])throw Error(`Duplicate key ${t}`);r[t]=e[t]}return r}function es(e){return!!e&&!Array.isArray(e)&&"object"==typeof e}function eu(e){return Object.assign(Object.create(null),e)}eo.BAD_GATEWAY,eo.SERVICE_UNAVAILABLE,eo.GATEWAY_TIMEOUT,eo.INTERNAL_SERVER_ERROR,Symbol();let el="function"==typeof Symbol&&!!Symbol.asyncIterator;function ec(e){return el&&es(e)&&Symbol.asyncIterator in e}function ed(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class ef extends Error{}function eh(e){if(e instanceof ep||e instanceof Error&&"TRPCError"===e.name)return e;let t=new ep({code:"INTERNAL_SERVER_ERROR",cause:e});return e instanceof Error&&e.stack&&(t.stack=e.stack),t}class ep extends Error{constructor(e){let t=function(e){if(e instanceof Error)return e;let t=typeof e;return"undefined"===t||"function"===t||null===e?void 0:"object"!==t?Error(String(e)):es(e)?Object.assign(new ef,e):void 0}(e.cause),r=e.message??t?.message??e.code;super(r,{cause:t}),ed(this,"cause",void 0),ed(this,"code",void 0),this.code=e.code,this.name="TRPCError",this.cause??(this.cause=t)}}let eg=({shape:e})=>e,em={input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}};class ev extends Error{constructor(){super("Unable to transform response from server")}}let ey=Symbol("lazy"),eb={_ctx:null,_errorShape:null,_meta:null,queries:{},mutations:{},subscriptions:{},errorFormatter:eg,transformer:em},ew=["then","call","apply"];function ex(e){return function(t){let r=new Set(Object.keys(t).filter(e=>ew.includes(e)));if(r.size>0)throw Error("Reserved words used in `router({})` call: "+Array.from(r).join(", "));let n=eu({}),i=eu({}),o=function e(t,r=[]){let o=eu({});for(let[u,l]of Object.entries(t??{})){var a,s;if("function"==typeof(a=l)&&ey in a){i[[...r,u].join(".")]=function t(r){return{ref:r.ref,load:function(e){let t=Symbol(),r=t;return()=>(r===t&&(r=e()),r)}(async()=>{let n=await r.ref(),o=[...r.path,r.key],a=o.join(".");for(let[s,u]of(r.aggregate[r.key]=e(n._def.record,o),delete i[a],Object.entries(n._def.lazy))){let e=[...o,s].join(".");i[e]=t({ref:u.ref,path:o,key:s,aggregate:r.aggregate[r.key]})}})}}({path:r,ref:l,key:u,aggregate:o});continue}if(es(s=l)&&es(s._def)&&"router"in s._def){o[u]=e(l._def.record,[...r,u]);continue}if("function"!=typeof l){o[u]=e(l,[...r,u]);continue}let t=[...r,u].join(".");if(n[t])throw Error(`Duplicate key: ${t}`);n[t]=l,o[u]=l}return o}(t),a={_config:e,router:!0,procedures:n,lazy:i,...eb,record:o},s={...o,_def:a,createCaller:eS()({_def:a})};return s}}async function e_(e,t){let{_def:r}=e,n=r.procedures[t];for(;!n;){let e=Object.keys(r.lazy).find(e=>t.startsWith(e));if(!e)return null;let i=r.lazy[e];await i.load(),n=r.procedures[t]}return n}function eS(){return function(e){let{_def:t}=e;return function(r,n){return en(async({path:i,args:o})=>{let a;let s=i.join(".");if(1===i.length&&"_def"===i[0])return t;let u=await e_(e,s);try{if(!u)throw new ep({code:"NOT_FOUND",message:`No procedure found on path "${i}"`});
121return await u({path:s,getRawInput:async()=>o[0],ctx:a="function"==typeof r?await Promise.resolve(r()):r,type:u._def.type,signal:n?.signal})}catch(e){throw n?.onError?.({ctx:a,error:eh(e),input:o[0],path:s,type:u?._def.type??"unknown"}),e}})}}}function eC(...e){let t=ea({},...e.map(e=>e._def.record)),r=e.reduce((e,t)=>{if(t._def._config.errorFormatter&&t._def._config.errorFormatter!==eg){if(e!==eg&&e!==t._def._config.errorFormatter)throw Error("You seem to have several error formatters");return t._def._config.errorFormatter}return e},eg),n=e.reduce((e,t)=>{if(t._def._config.transformer&&t._def._config.transformer!==em){if(e!==em&&e!==t._def._config.transformer)throw Error("You seem to have several transformers");return t._def._config.transformer}return e},em),i=ex({errorFormatter:r,transformer:n,isDev:e.every(e=>e._def._config.isDev),allowOutsideOfServer:e.every(e=>e._def._config.allowOutsideOfServer),isServer:e.every(e=>e._def._config.isServer),$types:e[0]?._def._config.$types})(t);return i}new WeakMap,(i=Symbol).dispose??(i.dispose=Symbol()),(o=Symbol).asyncDispose??(o.asyncDispose=Symbol()),Symbol(),Symbol("ping"),Symbol();let eE="middlewareMarker";class ek extends Error{constructor(e){var t,r,n;super(e[0]?.message),t=this,n=void 0,(r="issues")in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this.name="SchemaError",this.issues=e}}function eT(e){let t="~standard"in e;if("function"==typeof e&&"function"==typeof e.assert)return e.assert.bind(e);if("function"==typeof e&&!t)return e;if("function"==typeof e.parseAsync)return e.parseAsync.bind(e);if("function"==typeof e.parse)return e.parse.bind(e);if("function"==typeof e.validateSync)return e.validateSync.bind(e);if("function"==typeof e.create)return e.create.bind(e);if("function"==typeof e.assert)return t=>(e.assert(t),t);if(t)return async t=>{let r=await e["~standard"].validate(t);if(r.issues)throw new ek(r.issues);return r.value};throw Error("Could not find a validator fn")}function eA(e,t){let{middlewares:r=[],inputs:n,meta:i,...o}=t;return eP({...ea(e,o),inputs:[...e.inputs,...n??[]],middlewares:[...e.middlewares,...r],meta:e.meta&&i?{...e.meta,...i}:i??e.meta})}function eP(e={}){let t={procedure:!0,inputs:[],middlewares:[],...e};return{_def:t,input(e){let r=eT(e);return eA(t,{inputs:[e],middlewares:[function(e){let t=async function(t){let r;let n=await t.getRawInput();try{r=await e(n)}catch(e){throw new ep({code:"BAD_REQUEST",cause:e})}let i=es(t.input)&&es(r)?{...t.input,...r}:r;return t.next({input:i})};return t._type="input",t}(r)]})},output(e){let r=eT(e);return eA(t,{output:e,middlewares:[function(e){let t=async function({next:t}){let r=await t();if(!r.ok)return r;try{let t=await e(r.data);return{...r,data:t}}catch(e){throw new ep({message:"Output validation failed",code:"INTERNAL_SERVER_ERROR",cause:e})}};return t._type="output",t}(r)]})},meta:e=>eA(t,{meta:e}),use(e){let r="_middlewares"in e?e._middlewares:[e];return eA(t,{middlewares:r})},unstable_concat:e=>eA(t,e._def),concat:e=>eA(t,e._def),query:e=>eI({...t,type:"query"},e),mutation:e=>eI({...t,type:"mutation"},e),subscription:e=>eI({...t,type:"subscription"},e),experimental_caller:e=>eA(t,{caller:e})}}function eI(e,t){let r=eA(e,{resolver:t,middlewares:[async function(e){let r=await t(e);return{marker:eE,ok:!0,data:r,ctx:e.ctx}}]}),n={...r._def,type:e.type,experimental_caller:Boolean(r._def.caller),meta:r._def.meta,$types:null},i=function(e){async function t(t){if(!t||!("getRawInput"in t))throw Error(eO);let r=await eM(0,e,t);if(!r)throw new ep({code:"INTERNAL_SERVER_ERROR",message:"No result from middlewares - did you forget to `return next()`?"});if(!r.ok)throw r.error;return r.data}return t._def=e,t.procedure=!0,t.meta=e.meta,t}(r._def),o=r._def.caller;if(!o)return i;let a=async(...e)=>await o({args:e,invoke:i,_def:n});return a._def=n,a}let eO=`
122This is a client-only function.
123If you want to call this function on the server, see https://trpc.io/docs/v11/server/server-side-calls
124`.trim();async function eM(e,t,r){try{let n=t.middlewares[e],i=await n({...r,meta:t.meta,input:r.input,next:n=>eM(e+1,t,{...r,ctx:n?.ctx?{...r.ctx,...n.ctx}
124:r.ctx,input:n&&"input"in n?n.input:r.input,getRawInput:n?.getRawInput??r.getRawInput})});return i}catch(e){return{ok:!1,error:eh(e),marker:eE}}}let ej="undefined"==typeof window||"Deno"in window||globalThis.process?.env?.NODE_ENV==="test"||!!globalThis.process?.env?.JEST_WORKER_ID||!!globalThis.process?.env?.VITEST_WORKER_ID;class eD{context(){return new eD}meta(){return new eD}create(e){var t;let r={...e,transformer:"input"in(t=e?.transformer??em)?t:{input:t,output:t},isDev:e?.isDev??"production"!==globalThis.process?.env.NODE_ENV,allowOutsideOfServer:e?.allowOutsideOfServer??!1,errorFormatter:e?.errorFormatter??eg,isServer:e?.isServer??ej,$types:null};{let t=e?.isServer??ej;if(!t&&e?.allowOutsideOfServer!==!0)throw Error("You're trying to use @trpc/server in a non-server environment. This is not supported by default.")}return{_config:r,procedure:eP({meta:e?.defaultMeta}),middleware:function(e){return function e(t){return{_middlewares:t,unstable_pipe(r){let n="_middlewares"in r?r._middlewares:[r];return e([...t,...n])}}}([e])},router:ex(r),mergeRouters:eC,createCallerFactory:eS()}}}function eR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}new eD;class eN extends Error{static from(e,t={}){let r=e;return r instanceof eN?(t.meta&&(r.meta={...r.meta,...t.meta}),r):es(r)&&es(r.error)&&"number"==typeof r.error.code&&"string"==typeof r.error.message?new eN(r.error.message,{...t,result:r}):new eN("string"==typeof r?r:es(r)&&"string"==typeof r.message?r.message:"Unknown error",{...t,cause:r})}constructor(e,t){let r=t?.cause;super(e,{cause:r}),eR(this,"cause",void 0),eR(this,"shape",void 0),eR(this,"data",void 0),eR(this,"meta",void 0),this.meta=t?.meta,this.cause=r,this.shape=t?.result?.error,this.data=t?.result?.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,eN.prototype)}}function eU(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class eF{$request(e){var t;let r=(t={links:this.links,op:{...e,context:e.context??{},id:++this.requestId}},X(e=>{let r=function e(r=0,n=t.op){let i=t.links[r];if(!i)throw Error("No more links to execute - did you forget to add an ending link?");let o=i({op:n,next(t){let n=e(r+1,t);return n}});return o}();return r.subscribe(e)}));return r.pipe(e=>{let t=0,r=null,n=[];return X(i=>(t++,n.push(i),r||(r=e.subscribe({next(e){for(let t of n)t.next?.(e)},error(e){for(let t of n)t.error?.(e)},complete(){for(let e of n)e.complete?.()}})),{unsubscribe(){t--,function(){if(0===t&&r){let e=r;r=null,e.unsubscribe()}}();let e=n.findIndex(e=>e===i);e>-1&&n.splice(e,1)}}))})}async requestAsPromise(e){try{let t=this.$request(e),r=await function(e){let t=new AbortController,r=new Promise((r,n)=>{let i=!1;function o(){i||(i=!0,a.unsubscribe())}t.signal.addEventListener("abort",()=>{n(t.signal.reason)});let a=e.subscribe({next(e){i=!0,r(e),o()},error(e){n(e)},complete(){t.abort(),o()}})});return r}(t),n=r.result.data;return n}catch(e){throw eN.from(e)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){let n=this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal});return n.subscribe({next(e){switch(e.result.type){case"state":r.onConnectionStateChange?.(e.result);break;case"started":r.onStarted?.({context:e.context});break;case"stopped":r.onStopped?.();break;case"data":case void 0:r.onData?.(e.result.data)}},error(e){r.onError?.(e)},complete(){r.onComplete?.()}})}constructor(e){eU(this,"links",void 0),eU(this,"runtime",void 0),eU(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(e=>e(this.runtime))}}let eL=Symbol.for("trpc_untypedClient"),eB={query:"query",mutate:"mutation",subscribe:"subscription"},ez=e=>eB[e];function eH(e){let t=en(({path:t,args:r})=>{let n=[...t],i=ez(n.pop()),o=n.join(".");return e[i](o,...r)});return ei(r=>r===eL?e:t[r])}function eq(e){let t=new eF(e),r=eH(t);return r}let eW=()=>{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function e$(e){let t=null,r=null,n=()=>{clearTimeout(r),r=null,t=null};function i(){let r=function(t){let r=[[]],n=0;for(;;){let i=t[n];if(!i)break;let o=r[r.length-1];if(i.aborted){i.reject?.(Error("Aborted")),n++;continue}let a=e.validate(o.concat(i).map(e=>e.key));if(a){o.push(i),n++;continue}if(0===o.length){i.reject?.(Error("Input is too big for a single dispatch")),n++;continue}r.push([])}return r}(t);for(let t of(n(),r)){if(!t.length)continue;let r={items:t};for(let e of t)e.batch=r;let n=e.fetch(r.items.map(e=>e.key));n.then(async e=>{for(let t of(await Promise.all(e.map(async(e,t)=>{let n=r.items[t];try{let t=await Promise.resolve(e);n.resolve?.(t)}catch(e){n.reject?.(e)}n.batch=null,n.reject=null,n.resolve=null})),r.items))t.reject?.(Error("Missing result")),t.batch=null}).catch(e=>{for(let t of r.items)t.reject?.(e),t.batch=null})}}return{load:function(e){let n={aborted:!1,key:e,batch:null,resolve:eW,reject:eW},o=new Promise((e,r)=>{n.reject=r,n.resolve=e,t??(t=[]),t.push(n)});return r??(r=setTimeout(i)),o}}}let eV=e=>"function"==typeof e;function eY(e){return e?"input"in e?e:{input:e,output:e}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}}let eZ={query:"GET",mutation:"POST",subscription:"PATCH"};function eG(e){return"input"in e?e.transformer.input.serialize(e.input):function(e){let t={};for(let r=0;r<e.length;r++){let n=e[r];t[r]=n}return t}(e.inputs.map(t=>e.transformer.input.serialize(t)))}let eK=e=>{let t=e.url.split("?"),r=t[0].replace(/\/$/,""),n=r+"/"+e.path,i=[];if(t[1]&&i.push(t[1]),"inputs"in e&&i.push("batch=1"),"query"===e.type||"subscription"===e.type){let t=eG(e);void 0!==t&&"POST"!==e.methodOverride&&i.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return i.length&&(n+="?"+i.join("&")),n},eQ=e=>{if("query"===e.type&&"POST"!==e.methodOverride)return;let t=eG(e);return void 0!==t?JSON.stringify(t):void 0},eX=e=>e2({...e,contentTypeHeader:"application/json",getUrl:eK,getBody:eQ});
124class eJ extends Error{constructor(){let e="AbortError";super(e),this.name=e,this.message=e}}let e0=e=>{if(e?.aborted){if(e.throwIfAborted?.(),"undefined"!=typeof DOMException)throw new DOMException("AbortError","AbortError");throw new eJ}};async function e1(e){e0(e.signal);let t=e.getUrl(e),r=e.getBody(e),{type:n}=e,i=await (async()=>{let t=await e.headers();return Symbol.iterator in t?Object.fromEntries(t):t})(),o={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0,...i};return(function(e){if(e)return e;if("undefined"!=typeof window&&eV(window.fetch))return window.fetch;if("undefined"!=typeof globalThis&&eV(globalThis.fetch))return globalThis.fetch;throw Error("No fetch implementation found")})(e.fetch)(t,{method:e.methodOverride??eZ[n],signal:e.signal,body:r,headers:o})}async function e2(e){let t={},r=await e1(e);t.response=r;let n=await r.json();return t.responseJSON=n,{json:n,meta:t}}let e3=(e,...t)=>"function"==typeof e?e(...t):e;async function e4(e){let t=await e3(e.url);if(!e.connectionParams)return t;let r=t.includes("?")?"&":"?",n=`${r}connectionParams=1`;return t+n}async function e5(e){let t={method:"connectionParams",data:await e3(e)};return JSON.stringify(t)}function e6(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class e9{get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){if(this.openPromise)return this.openPromise;this.id=++e9.connectCount;let e=e4(this.urlOptions).then(e=>new this.WebSocketPonyfill(e));this.openPromise=e.then(async e=>{this.ws=e,e.addEventListener("message",function({data:e}){"PING"===e&&this.send("PONG")}),this.keepAliveOpts.enabled&&function(e,{intervalMs:t,pongTimeoutMs:r}){let n,i;function o(){n=setTimeout(()=>{e.send("PING"),i=setTimeout(()=>{e.close()},r)},t)}e.addEventListener("open",o),e.addEventListener("message",({data:e})=>{clearTimeout(n),o(),"PONG"===e&&(clearTimeout(i),clearTimeout(n),o())}),e.addEventListener("close",()=>{clearTimeout(n),clearTimeout(i)})}(e,this.keepAliveOpts),e.addEventListener("close",()=>{this.ws===e&&(this.ws=null)}),await function(e){let{promise:t,resolve:r,reject:n}=function(){let e,t;let r=new Promise((r,n)=>{e=r,t=n});return{promise:r,resolve:e,reject:t}}();return e.addEventListener("open",()=>{e.removeEventListener("error",n),r()}),e.addEventListener("error",n),t}(e),this.urlOptions.connectionParams&&e.send(await e5(this.urlOptions.connectionParams))});try{await this.openPromise}finally{this.openPromise=null}}async close(){try{await this.openPromise}finally{this.ws?.close()}}constructor(e){if(e6(this,"id",++e9.connectCount),e6(this,"WebSocketPonyfill",void 0),e6(this,"urlOptions",void 0),e6(this,"keepAliveOpts",void 0),e6(this,"wsObservable",function(e){let t=null,r=[],n=e=>{void 0!==t&&e.next(t),r.push(e)},i=e=>{r.splice(r.indexOf(e),1)},o=X(e=>(n(e),()=>{i(e)}));return o.next=e=>{if(t!==e)for(let n of(t=e,r))n.next(e)},o.get=()=>t,o}(0)),e6(this,"openPromise",null),this.WebSocketPonyfill=e.WebSocketPonyfill??WebSocket,!this.WebSocketPonyfill)throw Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=e.urlOptions,this.keepAliveOpts=e.keepAlive}}e6(e9,"connectCount",0);var e8=r(30202),e7=r(67294);function te(e){return e}function tt(e,t,r){if("object"!=typeof t||null===t)return;let n=e.getMutationCache(),i=e.getQueryCache(),o=r?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??te,a=t.mutations||[],u=t.queries||[];a.forEach(({state:t,...i})=>{n.build(e,{...e.getDefaultOptions().hydrate?.mutations,...r?.defaultOptions?.mutations,...i},t)}),u.forEach(({queryKey:t,state:n,queryHash:a,meta:u,promise:l,dehydratedAt:c})=>{let d=l?function(e){let t;if(e.then(e=>(t=e,e),s)?.catch(s),void 0!==t)return{data:t}}(l):void 0,f=void 0===n.data?d?.data:n.data,h=void 0===f?f:o(f),p=i.get(a),m="pending"===p?.state.status,v="fetching"===p?.state.fetchStatus;if(p){let e=d&&void 0!==c&&c>p.state.dataUpdatedAt;if(n.dataUpdatedAt>p.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=n;p.setState({...t,data:h})}}else p=i.build(e,{...e.getDefaultOptions().hydrate?.queries,...r?.defaultOptions?.queries,queryKey:t,queryHash:a,meta:u},{...n,data:h,fetchStatus:"idle",status:void 0!==h?"success":n.status});l&&!m&&!v&&(void 0===c||c>p.state.dataUpdatedAt)&&p.fetch(void 0,{initialPromise:Promise.resolve(l).then(o)})})}var tr=({children:e,options:t={},state:r,queryClient:n})=>{let i=(0,e8.NL)(n),o=e7.useRef(t);o.current=t;let a=e7.useMemo(()=>
124{if(r){if("object"!=typeof r)return;let e=i.getQueryCache(),t=r.queries||[],n=[],a=[];for(let r of t){let t=e.get(r.queryHash);if(t){let e=r.state.dataUpdatedAt>t.state.dataUpdatedAt||r.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==r.dehydratedAt&&r.dehydratedAt>t.state.dataUpdatedAt;e&&a.push(r)}else n.push(r)}if(n.length>0&&tt(i,{queries:n},o.current),a.length>0)return a}},[i,r]);return e7.useEffect(()=>{a&&tt(i,{queries:a},o.current)},[i,a]),e};let tn=["client","ssrContext","ssrState","abortOnUnmount"],ti=e7.createContext?.(null);function to(e,t,r){let n=e.flatMap(e=>e.split("."));if(!t&&(!r||"any"===r))return n.length?[n]:[];if("infinite"===r&&es(t)&&("direction"in t||"cursor"in t)){let{cursor:e,direction:r,...i}=t;return[n,{input:i,type:"infinite"}]}return[n,{...void 0!==t&&t!==k&&{input:t},...r&&"any"!==r&&{type:r}}]}function ta(e){return to(e,void 0,"any")}let ts=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function tu(e){let t=e instanceof eF?e:e[eL];return en(e=>{let r=e.path,n=r.join("."),[i,o]=e.args,a={queryKey:to(r,i,"query"),queryFn:()=>t.query(n,i,o?.trpc),...o};return a})}var tl=class extends O{constructor(e,t){super(),this.options=t,this.#u=e,this.#E=null,this.#k=D(),this.options.experimental_prefetchInRender||this.#k.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#u;#T=void 0;#A=void 0;#P=void 0;#I;#O;#k;#E;#M;#j;#D;#R;#N;#U;#F=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#T.addObserver(this),tc(this.#T,this.options)?this.#L():this.updateResult(),this.#B())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return td(this.#T,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return td(this.#T,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#z(),this.#H(),this.#T.removeObserver(this)}setOptions(e){let t=this.options,r=this.#T;if(this.options=this.#u.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof d(this.options.enabled,this.#T))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#q(),this.#T.setOptions(this.options),t._defaulted&&!b(this.options,t)&&this.#u.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#T,observer:this});let n=this.hasListeners();n&&tf(this.#T,r,this.options,t)&&this.#L(),this.updateResult(),n&&(this.#T!==r||d(this.options.enabled,this.#T)!==d(t.enabled,this.#T)||c(this.options.staleTime,this.#T)!==c(t.staleTime,this.#T))&&this.#W();let i=this.#$();n&&(this.#T!==r||d(this.options.enabled,this.#T)!==d(t.enabled,this.#T)||i!==this.#U)&&this.#V(i)}getOptimisticResult(e){let t=this.#u.getQueryCache().build(this.#u,e),r=this.createResult(t,e);return b(this.getCurrentResult(),r)||(this.#P=r,this.#O=this.options,this.#I=this.#T.state),r}getCurrentResult(){return this.#P}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),Reflect.get(e,r))})}trackProp(e){this.#F.add(e)}getCurrentQuery(){return this.#T}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#u.defaultQueryOptions(e),r=this.#u.getQueryCache().build(this.#u,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#L({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#P))}#L(e){this.#q();let t=this.#T.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s)),t}#W(){this.#z();let e=c(this.options.staleTime,this.#T);if(a||this.#P.isStale||!u(e))return;let t=l(this.#P.dataUpdatedAt,e);this.#R=setTimeout(()=>{this.#P.isStale||this.updateResult()},t+1)}#$(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#T):this.options.refetchInterval)??!1}#V(t){this.#H(),this.#U=t,!a&&!1!==d(this.options.enabled,this.#T)&&u(this.#U)&&0!==this.#U&&(this.#N=setInterval(()=>
124{(this.options.refetchIntervalInBackground||M.isFocused())&&this.#L()},this.#U))}#B(){this.#W(),this.#V(this.#$())}#z(){this.#R&&(clearTimeout(this.#R),this.#R=void 0)}#H(){this.#N&&(clearInterval(this.#N),this.#N=void 0)}createResult(e,t){let r;let n=this.#T,i=this.options,o=this.#P,a=this.#I,s=this.#O,u=e!==n?e.state:this.#A,{state:l}=e,c={...l},d=!1;if(t._optimisticResults){let r=this.hasListeners(),o=!r&&tc(e,t),a=r&&tf(e,n,t,i);(o||a)&&(c={...c,...H(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(c.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:p}=c;r=c.data;let m=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===p){let e;o?.isPlaceholderData&&t.placeholderData===s?.placeholderData?(e=o.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#D?.state.data,this.#D):t.placeholderData,void 0!==e&&(p="success",r=S(o?.data,e,t),d=!0)}if(t.select&&void 0!==r&&!m){if(o&&r===a?.data&&t.select===this.#M)r=this.#j;else try{this.#M=t.select,r=t.select(r),r=S(o?.data,r,t),this.#j=r,this.#E=null}catch(e){this.#E=e}}this.#E&&(f=this.#E,r=this.#j,h=Date.now(),p="error");let v="fetching"===c.fetchStatus,y="pending"===p,b="error"===p,w=y&&v,x=void 0!==r,_={status:p,fetchStatus:c.fetchStatus,isPending:y,isSuccess:"success"===p,isError:b,isInitialLoading:w,isLoading:w,data:r,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:v,isRefetching:v&&!y,isLoadingError:b&&!x,isPaused:"paused"===c.fetchStatus,isPlaceholderData:d,isRefetchError:b&&x,isStale:th(e,t),refetch:this.refetch,promise:this.#k},C=_;if(this.options.experimental_prefetchInRender){let t=e=>{"error"===C.status?e.reject(C.error):void 0!==C.data&&e.resolve(C.data)},r=()=>{let e=this.#k=C.promise=D();t(e)},i=this.#k;switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":("error"===C.status||C.data!==i.value)&&r();break;case"rejected":("error"!==C.status||C.error!==i.reason)&&r()}}return C}updateResult(){let e=this.#P,t=this.createResult(this.#T,this.options);this.#I=this.#T.state,this.#O=this.options,void 0!==this.#I.data&&(this.#D=this.#T),b(t,e)||(this.#P=t,this.#Y({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#F.size)return!0;let n=new Set(r??this.#F);return this.options.throwOnError&&n.add("error"),Object.keys(this.#P).some(t=>{let r=this.#P[t]!==e[t];return r&&n.has(t)})})()}))}#q(){let e=this.#u.getQueryCache().build(this.#u,this.options);if(e===this.#T)return;let t=this.#T;this.#T=e,this.#A=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#B()}#Y(r){I.batch(()=>{r.listeners&&this.listeners.forEach(e=>{e(this.#P)}),this.#u.getQueryCache().notify({query:this.#T,type:"observerResultsUpdated"})})}};function tc(e,t){return!1!==d(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&td(e,t,t.refetchOnMount)}function td(e,t,r){if(!1!==d(t.enabled,e)&&"static"!==c(t.staleTime,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&th(e,t)}return!1}function tf(e,t,r,n){return(e!==t||!1===d(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&th(e,r)}function th(e,t){return!1!==d(t.enabled,e)&&e.isStaleByTime(c(t.staleTime,e))}r(85893);var tp=e7.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),tg=()=>e7.useContext(tp),tm=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},tv=e=>{e7.useEffect(()=>{e.clearReset()},[e])},ty=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||A(r,[e.error,n])),tb=e7.createContext(!1),tw=()=>e7.useContext(tb);tb.Provider;var tx=(e,t)=>void 0===t.state.data,t_=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),r=e.staleTime;e.staleTime="function"==typeof r?(...e)=>t(r(...e)):t(r),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},tS=(e,t)=>e.isLoading&&e.isFetching&&!t,tC=(e,t)=>e?.suspense&&t.isPending,tE=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function tk(e,t,r){let n=tw(),i=tg(),o=(0,e8.NL)(r),u=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=n?"isRestoring":"optimistic",t_(u),tm(u,i),tv(i);let l=!o.getQueryCache().get(u.queryHash),[c]=e7.useState(()=>new t(o,u)),d=c.getOptimisticResult(u),f=!n&&!1!==e.subscribed;if(e7.useSyncExternalStore(e7.useCallback(e=>{let t=f?c.subscribe(I.batchCalls(e)):s;return c.updateResult(),t},[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),e7.useEffect(()=>{c.setOptions(u)},[u,c]),tC(u,d))throw tE(u,c,i);if(ty({result:d,errorResetBoundary:i,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw d.error;if(o.getDefaultOptions().queries?._experimental_afterQuery?.(u,d),u.experimental_prefetchInRender&&!a&&tS(d,n)){let e=l?tE(u,c,i):o.getQueryCache().get(u.queryHash)?.promise;e?.catch(s).finally(()=>{c.updateResult()})}return u.notifyOnChangeProps?d:c.trackResult(d)}var tT=class extends O{#u;#P=void 0;#Z;#G;constructor(e,t){super(),this.#u=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#u.defaultMutationOptions(e),b(this.options,t)||this.#u.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#Z,observer:this}),t?.mutationKey&&this.options.mutationKey&&m(t.mutationKey)!==m(this.options.mutationKey)?this.reset():"pending"===this.#Z?.state.status&&this.#Z.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#Z?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#Y(e)}getCurrentResult(){return this.#P}reset(){this.#Z?.removeObserver(this),this.#Z=void 0,this.#K(),this.#Y()}mutate(e,t){return this.#G=t,this.#Z?.removeObserver(this),this.#Z=this.#u.getMutationCache().build(this.#u,this.options),this.#Z.addObserver(this),this.#Z.execute(e)}#K(){let e=this.#Z?.state??$();this.#P={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#Y(e){I.batch(()=>
124{if(this.#G&&this.hasListeners()){let t=this.#P.variables,r=this.#P.context;e?.type==="success"?(this.#G.onSuccess?.(e.data,t,r),this.#G.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#G.onError?.(e.error,t,r),this.#G.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#P)})})}},tA=class extends tl{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Z()})}getOptimisticResult(e){return e.behavior=Z(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var r,n;let{state:i}=e,o=super.createResult(e,t),{isFetching:a,isRefetching:s,isError:u,isRefetchError:l}=o,c=i.fetchMeta?.fetchMore?.direction,d=u&&"forward"===c,f=a&&"forward"===c,h=u&&"backward"===c,p=a&&"backward"===c,m={...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:!!(r=i.data)&&null!=G(t,r),hasPreviousPage:!!(n=i.data)&&!!t.getPreviousPageParam&&null!=K(t,n),isFetchNextPageError:d,isFetchingNextPage:f,isFetchPreviousPageError:h,isFetchingPreviousPage:p,isRefetchError:l&&!d&&!h,isRefetching:s&&!f&&!p};return m}};function tP(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var tI=class extends O{#u;#Q;#h;#X;#p;#J;#ee;#et;#er=[];constructor(e,t,r){super(),this.#u=e,this.#X=r,this.#h=[],this.#p=[],this.#Q=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#p.forEach(e=>{e.subscribe(t=>{this.#en(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#p.forEach(e=>{e.destroy()})}setQueries(e,t){this.#h=e,this.#X=t,I.batch(()=>{let e=this.#p,t=this.#ei(this.#h);this.#er=t,t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),n=r.map(e=>e.getCurrentResult()),i=r.some((t,r)=>t!==e[r]);(e.length!==r.length||i)&&(this.#p=r,this.#Q=n,this.hasListeners()&&(tP(e,r).forEach(e=>{e.destroy()}),tP(r,e).forEach(e=>{e.subscribe(t=>{this.#en(e,t)})}),this.#Y()))})}getCurrentResult(){return this.#Q}getQueries(){return this.#p.map(e=>e.getCurrentQuery())}getObservers(){return this.#p}getOptimisticResult(e,t){let r=this.#ei(e),n=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions));return[n,e=>this.#eo(e??n,t),()=>this.#ea(n,r)]}#ea(e,t){return t.map((r,n)=>{let i=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?i:r.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#eo(r,n){return n?(this.#J&&this.#Q===this.#et&&n===this.#ee||(this.#ee=n,this.#et=this.#Q,this.#J=y(this.#J,n(r))),this.#J):r}#ei(i){let e=new Map(this.#p.map(e=>[e.options.queryHash,e])),t=[];return i.forEach(r=>{let n=this.#u.defaultQueryOptions(r),i=e.get(n.queryHash);i?t.push({defaultedQueryOptions:n,observer:i}):t.push({defaultedQueryOptions:n,observer:new tl(this.#u,n)})}),t}#en(o,a){let e=this.#p.indexOf(o);-1!==e&&(this.#Q=function(e,t,r){let n=e.slice(0);return n[t]=r,n}(this.#Q,e,a),this.#Y())}#Y(){if(this.hasListeners()){let e=this.#J,t=this.#ea(this.#Q,this.#er),r=this.#eo(t,this.#X?.combine);e!==r&&I.batch(()=>{this.listeners.forEach(e=>{e(this.#Q)})})}}};function tO({queries:e,...t},r){let n=(0,e8.NL)(r),i=tw(),o=tg(),a=e7.useMemo(()=>e.map(e=>{let t=n.defaultQueryOptions(e);return t._optimisticResults=i?"isRestoring":"optimistic",t}),[e,n,i]);a.forEach(e=>{t_(e),tm(e,o)}),tv(o);let[u]=e7.useState(()=>new tI(n,a,t)),[l,c,d]=u.getOptimisticResult(a,t.combine),f=!i&&!1!==t.subscribed;e7.useSyncExternalStore(e7.useCallback(e=>f?u.subscribe(I.batchCalls(e)):s,[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),e7.useEffect(()=>{u.setQueries(a,t)},[a,t,u]);let h=l.some((e,t)=>tC(a[t],e)),p=h?l.flatMap((e,t)=>{let r=a[t];if(r){let t=new tl(n,r);if(tC(r,e))return tE(r,t,o);tS(e,i)&&tE(r,t,o)}return[]}):[];if(p.length>0)throw Promise.all(p);let m=l.find((e,t)=>{let r=a[t];return r&&ty({result:e,errorResetBoundary:o,throwOnError:r.throwOnError,query:n.getQueryCache().get(r.queryHash),suspense:r.suspense})});if(m?.error)throw m.error;return c(d())}function tM(e,t,r){let n=e[0],i=e[1]?.input;return r&&(i={...i??{},...r.pageParam?{cursor:r.pageParam}:{},direction:r.direction}),[n.join("."),i,t?.trpc]}function tj(e){let t=e.path.join(".");return{path:t}}function tD(e){let t=tj(e);return e7.useMemo(()=>t,[t])}async function tR(e,t,r){let n=t.getQueryCache(),i=n.build(t,{queryKey:r});i.setState({data:[],status:"success"});let o=[];for await(let t of e)o.push(t),i.setState({data:[...o]});return o}let tN=(e,t)=>{let r=new Proxy(e,{get:(e,r)=>(t(r),e[r])});return r};function tU(e){let t=e?.overrides?.useMutation?.onSuccess??(e=>e.originalFn()),r=e?.context??ti,n=e=>{let{abortOnUnmount:t=!1,queryClient:n,ssrContext:i}=e,[o,a]=e7.useState(e.ssrState??!1),s=e.client instanceof eF?e.client:e.client[eL],u=e7.useMemo(()=>(function(e){let{client:t,queryClient:r}=e,n=t instanceof eF?t:t[eL];return{infiniteQueryOptions:(e,t,r)=>{let i=t[1]?.input===k,o=async e=>{let i={...r,trpc:{...r?.trpc,...r?.trpc?.abortOnUnmount?{signal:e.signal}:{signal:null}}},o=await n.query(...tM(t,i,{direction:e.direction,pageParam:e.pageParam}));return o};return Object.assign({...r,initialData:r?.initialData,queryKey:t,queryFn:i?k:o,initialPageParam:r?.initialCursor??null},{trpc:tj({path:e})})},queryOptions:(e,t,i)=>{let o=t[1]?.input===k,a=async e=>{let o={...i,trpc:{...i?.trpc,...i?.trpc?.abortOnUnmount?{signal:e.signal}:{signal:null}}},a=await n.query(...tM(t,o));return ec(a)?tR(a,r,t):a};return Object.assign({...i,initialData:i?.initialData,queryKey:t,queryFn:o?k:a},{trpc:tj({path:e})})},fetchQuery:(e,t)=>r.fetchQuery({...t,queryKey:e,queryFn:()=>n.query(...tM(e,t))}),fetchInfiniteQuery:(e,t)=>r.fetchInfiniteQuery({...t,queryKey:e,queryFn:({pageParam:r,direction:i})=>n.query(...tM(e,t,{pageParam:r,direction:i})),initialPageParam:t?.initialCursor??null}),prefetchQuery:(e,t)=>r.prefetchQuery({...t,queryKey:e,queryFn:()=>n.query(...tM(e,t))}),prefetchInfiniteQuery:(e,t)=>r.prefetchInfiniteQuery({...t,queryKey:e,queryFn:({pageParam:r,direction:i})=>n.query(...tM(e,t,{pageParam:r,direction:i})),initialPageParam:t?.initialCursor??null}),ensureQueryData:(e,t)=>r.ensureQueryData({...t,queryKey:e,queryFn:()=>n.query(...tM(e,t))}),invalidateQueries:(e,t,n)=>
124r.invalidateQueries({...t,queryKey:e},n),resetQueries:(e,t,n)=>r.resetQueries({...t,queryKey:e},n),refetchQueries:(e,t,n)=>r.refetchQueries({...t,queryKey:e},n),cancelQuery:(e,t)=>r.cancelQueries({queryKey:e},t),setQueryData:(e,t,n)=>r.setQueryData(e,t,n),setQueriesData:(e,t,n,i)=>r.setQueriesData({...t,queryKey:e},n,i),getQueryData:e=>r.getQueryData(e),setInfiniteQueryData:(e,t,n)=>r.setQueryData(e,t,n),getInfiniteQueryData:e=>r.getQueryData(e),setMutationDefaults:(t,i)=>{let o=t[0],a=t=>n.mutation(...tM([o,{input:t}],e));return r.setMutationDefaults(t,"function"==typeof i?i({canonicalMutationFn:a}):i)},getMutationDefaults:e=>r.getMutationDefaults(e),isMutating:e=>r.isMutating({...e,exact:!0})}})({client:s,queryClient:n}),[s,n]),l=e7.useMemo(()=>({abortOnUnmount:t,queryClient:n,client:s,ssrContext:i??null,ssrState:o,...u}),[t,s,u,n,i,o]);return e7.useEffect(()=>{a(e=>!!e&&"mounted")},[]),e7.createElement(r.Provider,{value:l},e.children)};function i(){let e=e7.useContext(r);if(!e)throw Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return e}function o(e,t){let{queryClient:r,ssrState:n}=i();return n&&"mounted"!==n&&"error"===r.getQueryCache().find({queryKey:e})?.state.status?{retryOnMount:!1,...t}:t}let a={data:void 0,error:null,status:"idle"},u={data:void 0,error:null,status:"connecting"},l=(e,t)=>{let{ssrState:r,queryClient:n,prefetchQuery:o,client:a}=i(),s=tu(a),u=e(s);if("undefined"==typeof window&&"prepass"===r)for(let e of u){let t=e;t.trpc?.ssr===!1||n.getQueryCache().find({queryKey:t.queryKey})||o(t.queryKey,t)}return tO({queries:u.map(e=>({...e,queryKey:e.queryKey})),combine:t?.combine},n)},c=e=>{var t;let{queryClient:r,client:n}=i(),o=tu(n),a=e(o),s=tO({...t={queries:a.map(e=>({...e,queryFn:e.queryFn,queryKey:e.queryKey}))},queries:t.queries.map(e=>({...e,suspense:!0,throwOnError:tx,enabled:!0,placeholderData:void 0}))},r);return[s.map(e=>e.data),s]};return{Provider:n,createClient:eq,useContext:i,useUtils:i,useQuery:function(t,r,n){let a=i(),{abortOnUnmount:s,client:u,ssrState:l,queryClient:c,prefetchQuery:d}=a,f=to(t,r,"query"),h=c.getQueryDefaults(f),p=r===k;"undefined"!=typeof window||"prepass"!==l||n?.trpc?.ssr===!1||(n?.enabled??h?.enabled)===!1||p||c.getQueryCache().find({queryKey:f})||d(f,n);let m=o(f,{...h,...n}),v=n?.trpc?.abortOnUnmount??e?.abortOnUnmount??s,y=tk({...m,queryKey:f,queryFn:p?r:async e=>{let t={...m,trpc:{...m?.trpc,...v?{signal:e.signal}:{signal:null}}},r=await u.query(...tM(f,t));return ec(r)?tR(r,c,f):r}},tl,c);return y.trpc=tD({path:t}),y},usePrefetchQuery:function(t,r,n){let o=i(),a=to(t,r,"query"),s=n?.trpc?.abortOnUnmount??e?.abortOnUnmount??o.abortOnUnmount;!function(e,t){let r=(0,e8.NL)(void 0);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}({...n,queryKey:a,queryFn:r===k?r:e=>{let t={trpc:{...n?.trpc,...s?{signal:e.signal}:{}}};return o.client.query(...tM(a,t))}})},useSuspenseQuery:function(t,r,n){var o,a;let s=i(),u=to(t,r,"query"),l=n?.trpc?.abortOnUnmount??e?.abortOnUnmount??s.abortOnUnmount,c=(o={...n,queryKey:u,queryFn:e=>{let t={...n,trpc:{...n?.trpc,...l?{signal:e.signal}:{signal:null}}};return s.client.query(...tM(u,t))}},a=s.queryClient,tk({...o,enabled:!0,suspense:!0,throwOnError:tx,placeholderData:void 0},tl,a));return c.trpc=tD({path:t}),[c.data,c]},useQueries:l,useSuspenseQueries:c,useMutation:function(e,r){let{client:n,queryClient:o}=i(),a=ta(e),u=o.defaultMutationOptions(o.getMutationDefaults(a)),l=function(e,t){let r=(0,e8.NL)(t),[n]=e7.useState(()=>new tT(r,e));e7.useEffect(()=>{n.setOptions(e)},[n,e]);let i=e7.useSyncExternalStore(e7.useCallback(e=>n.subscribe(I.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),o=e7.useCallback((e,t)=>{n.mutate(e,t).catch(s)},[n]);if(i.error&&A(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}({...r,mutationKey:a,mutationFn:t=>n.mutation(...tM([e,{input:t}],r)),onSuccess(...e){let n=()=>r?.onSuccess?.(...e)??u?.onSuccess?.(...e);return t({originalFn:n,queryClient:o,meta:r?.meta??u?.meta??{}})}},o);return l.trpc=tD({path:e}),l},useSubscription:function(e,t,r){let n=r?.enabled??t!==k,o=m(to(e,t,"any")),{client:s}=i(),l=e7.useRef(r);e7.useEffect(()=>{l.current=r});let[c]=e7.useState(new Set([])),d=e7.useCallback(e=>{c.add(e)},[c]),f=e7.useRef(null),h=e7.useCallback(e=>{let t=v.current,r=v.current=e(t),n=!1;for(let e of c)if(t[e]!==r[e]){n=!0;break}n&&b(tN(r,d))},[d,c]),p=e7.useCallback(()=>
124{if(f.current?.unsubscribe(),!n){h(()=>({...a,reset:p}));return}h(()=>({...u,reset:p}));let r=s.subscription(e.join("."),t??void 0,{onStarted:()=>{l.current.onStarted?.(),h(e=>({...e,status:"pending",error:null}))},onData:e=>{l.current.onData?.(e),h(t=>({...t,status:"pending",data:e,error:null}))},onError:e=>{l.current.onError?.(e),h(t=>({...t,status:"error",error:e}))},onConnectionStateChange:e=>{h(t=>{switch(e.state){case"idle":return{...t,status:e.state,error:null,data:void 0};case"connecting":return{...t,error:e.error,status:e.state};case"pending":return t}})},onComplete:()=>{l.current.onComplete?.(),h(e=>({...e,status:"idle",error:null,data:void 0}))}});f.current=r},[s,o,n,h]);e7.useEffect(()=>(p(),()=>{f.current?.unsubscribe()}),[p]);let v=e7.useRef(n?{...u,reset:p}:{...a,reset:p}),[y,b]=e7.useState(tN(v.current,d));return y},useInfiniteQuery:function(e,t,r){let{client:n,ssrState:a,prefetchInfiniteQuery:s,queryClient:u,abortOnUnmount:l}=i(),c=to(e,t,"infinite"),d=u.getQueryDefaults(c),f=t===k;"undefined"!=typeof window||"prepass"!==a||r?.trpc?.ssr===!1||(r?.enabled??d?.enabled)===!1||f||u.getQueryCache().find({queryKey:c})||s(c,{...d,...r});let h=o(c,{...d,...r}),p=r?.trpc?.abortOnUnmount??l,m=tk({...h,initialPageParam:r.initialCursor??null,persister:r.persister,queryKey:c,queryFn:f?t:e=>{let t={...h,trpc:{...h?.trpc,...p?{signal:e.signal}:{signal:null}}};return n.query(...tM(c,t,{pageParam:e.pageParam??r.initialCursor,direction:e.direction}))}},tA,u);return m.trpc=tD({path:e}),m},usePrefetchInfiniteQuery:function(e,t,r){let n=i(),a=to(e,t,"infinite"),s=n.queryClient.getQueryDefaults(a),u=o(a,{...s,...r}),l=r?.trpc?.abortOnUnmount??n.abortOnUnmount;!function(e,t){let r=(0,e8.NL)(void 0);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}({...r,initialPageParam:r.initialCursor??null,queryKey:a,queryFn:t===k?t:e=>{let t={...u,trpc:{...u?.trpc,...l?{signal:e.signal}:{}}};return n.client.query(...tM(a,t,{pageParam:e.pageParam??r.initialCursor,direction:e.direction}))}})},useSuspenseInfiniteQuery:function(e,t,r){var n,a;let s=i(),u=to(e,t,"infinite"),l=s.queryClient.getQueryDefaults(u),c=o(u,{...l,...r}),d=r?.trpc?.abortOnUnmount??s.abortOnUnmount,f=(n={...r,initialPageParam:r.initialCursor??null,queryKey:u,queryFn:e=>{let t={...c,trpc:{...c?.trpc,...d?{signal:e.signal}:{}}};return s.client.query(...tM(u,t,{pageParam:e.pageParam??r.initialCursor,direction:e.direction}))}},a=s.queryClient,tk({...n,enabled:!0,suspense:!0,throwOnError:tx},tA,a));return f.trpc=tD({path:e}),[f.data,f]}}}let tF=e=>e.queryClient??new Q(e.queryClientConfig);var tL=r(48075);class tB{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class tz{constructor(e){this.generateIdentifier=e,this.kv=new tB}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}}class tH extends tz{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){"object"==typeof t?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}}function tq(e,t){Object.entries(e).forEach(([e,r])=>t(r,e))}function tW(e,t){return -1!==e.indexOf(t)}function t$(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(t(n))return n}}class tV{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return function(e,t){let r=function(e){if("values"in Object)return Object.values(e);let t=[];for(let r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}}let tY=e=>Object.prototype.toString.call(e).slice(8,-1),tZ=e=>void 0===e,tG=e=>null===e,tK=e=>"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype),tQ=e=>tK(e)&&0===Object.keys(e).length,tX=e=>Array.isArray(e),tJ=e=>"string"==typeof e,t0=e=>"number"==typeof e&&!isNaN(e),t1=e=>"boolean"==typeof e,t2=e=>e instanceof Map,t3=e=>e instanceof Set,t4=e=>"Symbol"===tY(e),t5=e=>e instanceof Date&&!isNaN(e.valueOf()),t6=e=>"number"==typeof e&&isNaN(e),t9=e=>t1(e)||tG(e)||tZ(e)||t0(e)||tJ(e)||t4(e),t8=e=>e===1/0||e===-1/0,t7=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),re=e=>e.replace(/\./g,"\\."),rt=e=>e.map(String).map(re).join("."),rr=e=>{let t=[],r="";for(let n=0;n<e.length;n++){let i=e.charAt(n),o="\\"===i&&"."===e.charAt(n+1);if(o){r+=".",n++;continue}let a="."===i;if(a){t.push(r),r="";
124continue}r+=i}let n=r;return t.push(n),t};function rn(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let ri=[rn(tZ,"undefined",()=>null,()=>void 0),rn(e=>"bigint"==typeof e,"bigint",e=>e.toString(),e=>"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),rn(t5,"Date",e=>e.toISOString(),e=>new Date(e)),rn(e=>e instanceof Error,"Error",(e,t)=>{let r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r},(e,t)=>{let r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(t=>{r[t]=e[t]}),r}),rn(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{let t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return RegExp(t,r)}),rn(t3,"set",e=>[...e.values()],e=>new Set(e)),rn(t2,"map",e=>[...e.entries()],e=>new Map(e)),rn(e=>t6(e)||t8(e),"number",e=>t6(e)?"NaN":e>0?"Infinity":"-Infinity",Number),rn(e=>0===e&&1/e==-1/0,"number",()=>"-0",Number),rn(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function ro(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}let ra=ro((e,t)=>{if(t4(e)){let r=!!t.symbolRegistry.getIdentifier(e);return r}return!1},(e,t)=>{let r=t.symbolRegistry.getIdentifier(e);return["symbol",r]},e=>e.description,(e,t,r)=>{let n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),rs=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),ru=ro(t7,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{let r=rs[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function rl(e,t){if(e?.constructor){let r=!!t.classRegistry.getIdentifier(e.constructor);return r}return!1}let rc=ro(rl,(e,t)=>{let r=t.classRegistry.getIdentifier(e.constructor);return["class",r]},(e,t)=>{let r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return{...e};let n={};return r.forEach(t=>{n[t]=e[t]}),n},(e,t,r)=>{let n=r.classRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),rd=ro((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>{let r=t.customTransformerRegistry.findApplicable(e);return["custom",r.name]},(e,t)=>{let r=t.customTransformerRegistry.findApplicable(e);return r.serialize(e)},(e,t,r)=>{let n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),rf=[rc,ra,rd,ru],rh=(e,t)=>{let r=t$(rf,r=>r.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};let n=t$(ri,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation}},rp={};ri.forEach(e=>{rp[e.annotation]=e});let rg=(e,t,r)=>{if(tX(t))switch(t[0]){case"symbol":return ra.untransform(e,t,r);case"class":return rc.untransform(e,t,r);case"custom":return rd.untransform(e,t,r);case"typed-array":return ru.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}else{let n=rp[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}},rm=(e,t)=>{let r=e.keys();for(;t>0;)r.next(),t--;return r.next().value};function rv(e){if(tW(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(tW(e,"prototype"))throw Error("prototype is not allowed as a property");if(tW(e,"constructor"))throw Error("constructor is not allowed as a property")}let ry=(e,t)=>{rv(t);for(let r=0;r<t.length;r++){let n=t[r];if(t3(e))e=rm(e,+n);else if(t2(e)){let i=+n,o=0==+t[++r]?"key":"value",a=rm(e,i);switch(o){case"key":e=a;break;case"value":e=e.get(a)}}else e=e[n]}return e},rb=(e,t,r)=>{if(rv(t),0===t.length)return r(e);let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(tX(n)){let e=+r;n=n[e]}else if(tK(n))n=n[r];else if(t3(n)){let e=+r;n=rm(n,e)}else if(t2(n)){let i=e===t.length-2;if(i)break;let o=+r,a=0==+t[++e]?"key":"value",s=rm(n,o);switch(a){case"key":n=s;break;case"value":n=n.get(s)}}}let i=t[t.length-1];if(tX(n)?n[+i]=r(n[+i]):tK(n)&&(n[i]=r(n[i])),t3(n)){let e=rm(n,+i),t=r(e);e!==t&&(n.delete(e),n.add(t))}if(t2(n)){let e=+t[t.length-2],o=rm(n,e);switch(0==+i?"key":"value"){case"key":{let e=r(o);n.set(e,n.get(o)),e!==o&&n.delete(o);break}case"value":n.set(o,r(n.get(o)))}}return e},rw=(e,t)=>tK(e)||tX(e)||t2(e)||t3(e)||rl(e,t),rx=(e,t,r,n,i=[],o=[],a=new Map)=>{let s=t9(e);
124if(!s){!function(e,t,r){let n=r.get(e);n?n.push(t):r.set(e,[t])}(e,i,t);let r=a.get(e);if(r)return n?{transformedValue:null}:r}if(!rw(e,r)){let t=rh(e,r),n=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||a.set(e,n),n}if(tW(o,e))return{transformedValue:null};let u=rh(e,r),l=u?.value??e,c=tX(l)?[]:{},d={};tq(l,(s,u)=>{if("__proto__"===u||"constructor"===u||"prototype"===u)throw Error(`Detected property ${u}. This is a prototype pollution risk, please remove it from your object.`);let l=rx(s,t,r,n,[...i,u],[...o,e],a);c[u]=l.transformedValue,tX(l.annotations)?d[u]=l.annotations:tK(l.annotations)&&tq(l.annotations,(e,t)=>{d[re(u)+"."+t]=e})});let f=tQ(d)?{transformedValue:c,annotations:u?[u.type]:void 0}:{transformedValue:c,annotations:u?[u.type,d]:d};return s||a.set(e,f),f};function r_(e){return Object.prototype.toString.call(e).slice(8,-1)}function rS(e){return"Array"===r_(e)}class rC{constructor({dedupe:e=!1}={}){this.classRegistry=new tH,this.symbolRegistry=new tz(e=>e.description??""),this.customTransformerRegistry=new tV,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,r=rx(e,t,this,this.dedupe),n={json:r.transformedValue};r.annotations&&(n.meta={...n.meta,values:r.annotations});let i=function(e,t){let r;let n={};return(e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...o]=e;0===i.length?r=o.map(rt):n[rt(i)]=o.map(rt)}),r)?tQ(n)?[r]:[r,n]:tQ(n)?void 0:n}(t,this.dedupe);return i&&(n.meta={...n.meta,referentialEqualities:i}),n}deserialize(e){let{json:t,meta:r}=e,n=function e(t,r={}){if(rS(t))return t.map(t=>e(t,r));if(!function(e){if("Object"!==r_(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t))return t;let n=Object.getOwnPropertyNames(t),i=Object.getOwnPropertySymbols(t);return[...n,...i].reduce((n,i)=>{if(rS(r.props)&&!r.props.includes(i))return n;let o=t[i],a=e(o,r);return!function(e,t,r,n,i){let o=({}).propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=r),i&&"nonenumerable"===o&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(n,i,a,t,r.nonenumerable),n},{})}(t);if(r?.values){var i,o,a;i=n,o=r.values,a=this,function e(t,r,n=[]){if(!t)return;if(!tX(t)){tq(t,(t,i)=>e(t,r,[...n,...rr(i)]));return}let[i,o]=t;o&&tq(o,(t,i)=>{e(t,r,[...n,...rr(i)])}),r(i,n)}(o,(e,t)=>{i=rb(i,t,t=>rg(t,e,a))}),n=i}return r?.referentialEqualities&&(n=function(e,t){function r(t,r){let n=ry(e,rr(r));t.map(rr).forEach(t=>{e=rb(e,t,()=>n)})}if(tX(t)){let[n,i]=t;n.forEach(t=>{e=rb(e,rr(t),()=>e)}),i&&tq(i,r)}else tq(t,r);return e}(n,r.referentialEqualities)),n}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}}async function rE(e){try{var t,r;let n=await e.currentSession(),i=null!==(r=null===(t=null==n?void 0:n.getAccessToken())||void 0===t?void 0:t.getJwtToken())&&void 0!==r?r:null,o={};return i&&(o.authorization="Bearer ".concat(i)),o}catch(e){return{}}}rC.defaultInstance=new rC,rC.serialize=rC.defaultInstance.serialize.bind(rC.defaultInstance),rC.deserialize=rC.defaultInstance.deserialize.bind(rC.defaultInstance),rC.stringify=rC.defaultInstance.stringify.bind(rC.defaultInstance),rC.parse=rC.defaultInstance.parse.bind(rC.defaultInstance),rC.registerClass=rC.defaultInstance.registerClass.bind(rC.defaultInstance),rC.registerSymbol=rC.defaultInstance.registerSymbol.bind(rC.defaultInstance),rC.registerCustom=rC.defaultInstance.registerCustom.bind(rC.defaultInstance),rC.allowErrorProps=rC.defaultInstance.allowErrorProps.bind(rC.defaultInstance),rC.serialize,rC.deserialize,rC.stringify,rC.parse,rC.registerClass,rC.registerCustom,rC.registerSymbol,rC.allowErrorProps;let rk=()=>(function(e){let t={url:e.url.toString(),fetch:e.fetch,transformer:eY(e.transformer),methodOverride:e.methodOverride},r=e.maxURLLength??1/0,n=e.maxItems??1/0;return()=>{let i=i=>({validate(e){if(r===1/0&&n===1/0)return!0;
124if(e.length>n)return!1;let o=e.map(e=>e.path).join(","),a=e.map(e=>e.input),s=eK({...t,type:i,path:o,inputs:a,signal:null});return s.length<=r},async fetch(r){let n=r.map(e=>e.path).join(","),o=r.map(e=>e.input),a=function(...e){let t=new AbortController,r=e.length,n=0,i=()=>{++n===r&&t.abort()};for(let t of e)t?.aborted?i():t?.addEventListener("abort",i,{once:!0});return t.signal}(...r.map(e=>e.signal)),s=await eX({...t,path:n,inputs:o,type:i,headers:()=>e.headers?"function"==typeof e.headers?e.headers({opList:r}):e.headers:{},signal:a}),u=Array.isArray(s.json)?s.json:r.map(()=>s.json),l=u.map(e=>({meta:s.meta,json:e}));return l}}),o=e$(i("query")),a=e$(i("mutation")),s={query:o,mutation:a};return({op:e})=>X(r=>{let n;if("subscription"===e.type)throw Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");let i=s[e.type],o=i.load(e);return o.then(e=>{n=e;let i=function(e,t){let r;try{r=function(e,t){if("error"in e){let r=t.deserialize(e.error);return{ok:!1,error:{...e,error:r}}}let r={...e.result,...(!e.result.type||"data"===e.result.type)&&{type:"data",data:t.deserialize(e.result.data)}};return{ok:!0,result:r}}(e,t)}catch{throw new ev}if(!r.ok&&(!es(r.error.error)||"number"!=typeof r.error.error.code)||r.ok&&!es(r.result))throw new ev;return r}(e.json,t.transformer.output);if(!i.ok){r.error(eN.from(i.error,{meta:e.meta}));return}r.next({context:e.meta,result:i.result}),r.complete()}).catch(e=>{r.error(eN.from(e,{meta:n?.meta}))}),()=>{}})}})({url:"https://baby-api.tcetech.co",headers:async()=>await rE(tL.g),transformer:rC}),rT=function(e){let t=tU(e),r=function(e){let{config:t}=e,r=eY(e.transformer);return n=>{let i=tU(e),o=o=>{let[a]=(0,e7.useState)(()=>{if(o.trpc)return o.trpc;let r=t({}),n=tF(r),a=i.createClient(r);return{abortOnUnmount:r.abortOnUnmount,queryClient:n,trpcClient:a,ssrState:!!e.ssr&&"mounting",ssrContext:null}}),{queryClient:s,trpcClient:u,ssrState:l,ssrContext:c}=a,d=o.pageProps?.trpcState,f=e7.useMemo(()=>d?r.input.deserialize(d):d,[d]);return e7.createElement(i.Provider,{abortOnUnmount:a.abortOnUnmount??!1,client:u,queryClient:s,ssrState:l,ssrContext:c},e7.createElement(e8.aH,{client:s},e7.createElement(tr,{state:f},e7.createElement(n,o))))};e.ssr?e.ssrPrepass({parent:e,AppOrPage:n,WithTRPC:o}):n.getInitialProps&&(o.getInitialProps=async e=>{var t;let r=!!e.Component,i={},o=await n.getInitialProps(e),a=r?o.pageProps??{}:o;return t=i={...a,...i},r?{pageProps:t}:t});let a=n.displayName??n.name??"Component";return o.displayName=`withTRPC(${a})`,o}}(e),n=en(({path:e,args:r})=>{let n=[...e],i=n.pop();if("useMutation"===i)return t[i](n,...r);if("_def"===i)return{path:n};let[o,...a]=r,s=a[0]??{};return t[i](n,o,s)});return ei(e=>"useContext"===e||"useUtils"===e?()=>{let e=t.useUtils();return(0,e7.useMemo)(()=>(function(e){let t=eH(e.client),r=en(t=>{let r=[...t.path],n=r.pop(),i=[...t.args],o=i.shift(),a=ts(n),s=to(r,o,a);return({infiniteQueryOptions:()=>e.infiniteQueryOptions(r,s,i[0]),queryOptions:()=>e.queryOptions(r,s,...i),fetch:()=>e.fetchQuery(s,...i),fetchInfinite:()=>e.fetchInfiniteQuery(s,i[0]),prefetch:()=>e.prefetchQuery(s,...i),prefetchInfinite:()=>e.prefetchInfiniteQuery(s,i[0]),ensureData:()=>e.ensureQueryData(s,...i),invalidate:()=>e.invalidateQueries(s,...i),reset:()=>e.resetQueries(s,...i),refetch:()=>e.refetchQueries(s,...i),cancel:()=>e.cancelQuery(s,...i),setData:()=>{e.setQueryData(s,i[0],i[1])},setQueriesData:()=>e.setQueriesData(s,i[0],i[1],i[2]),setInfiniteData:()=>{e.setInfiniteQueryData(s,i[0],i[1])},getData:()=>e.getQueryData(s),getInfiniteData:()=>e.getInfiniteQueryData(s),setMutationDefaults:()=>e.setMutationDefaults(ta(r),o),getMutationDefaults:()=>e.getMutationDefaults(ta(r)),isMutating:()=>e.isMutating({mutationKey:ta(r)})})[n]()});return ei(n=>"client"===n?t:tn.includes(n)?e[n]:r[n])})(e),[e])}:"useQueries"===e?t.useQueries:"useSuspenseQueries"===e?t.useSuspenseQueries:"withTRPC"===e?r:n[e])}({config:()=>({queryClient:new Q({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}}),links:[rk()]}),ssr:!1,transformer:rC}),rA=eq({links:[rk()]})},84744:function(){},11987:function(e,t,r){!function(){var t={477:function(e){"use strict";e.exports=r(17673)}},n={};function i(e){var r=n[e];
124if(void 0!==r)return r.exports;var o=n[e]={exports:{}},a=!0;try{t[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=o,r=(e=i(477))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function a(e){"string"==typeof e&&(e=b(e));var t,i,o,a,s,u,l,c,d,f=(i=(t=e).auth,o=t.hostname,a=t.protocol||"",s=t.pathname||"",u=t.hash||"",l=t.query||"",c=!1,i=i?encodeURIComponent(i).replace(/%3A/i,":")+"@":"",t.host?c=i+t.host:o&&(c=i+(~o.indexOf(":")?"["+o+"]":o),t.port&&(c+=":"+t.port)),l&&"object"==typeof l&&(l=r.encode(l)),d=t.search||l&&"?"+l||"",a&&":"!==a.substr(-1)&&(a+=":"),t.slashes||(!a||n.test(a))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),u&&"#"!==u[0]&&(u="#"+u),d&&"?"!==d[0]&&(d="?"+d),{protocol:a,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:u});return""+f.protocol+f.host+f.pathname+f.search+f.hash}var s="http://",u=s+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,c=/https?|ftp|gopher|file/;function d(e,t){var r="string"==typeof e?b(e):e;e="object"==typeof e?a(e):e;var n=b(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&n.protocol&&(i="",n.slashes||(i=n.protocol,t=t.replace(n.protocol,"")));var o=e.match(l);o&&!n.protocol&&(e=e.substr((i=o[1]+(o[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var d=new URL(e,u+"/"),f=new URL(t,d).toString().replace(u,""),h=n.protocol||r.protocol;return h+=r.slashes||n.slashes?"//":"",!i&&h?f=f.replace(s,h):i&&(f=f.replace(s,"")),c.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),i&&(f=i+("/"===f[0]?f.substr(1):f)),f}function f(){}f.prototype.parse=b,f.prototype.format=a,f.prototype.resolve=d,f.prototype.resolveObject=d;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,v=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof f)return e;var i=(e=e.trim()).match(p);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(m),s=v.test(e),l="";o&&(h.test(o[1])||(l=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(s=!1,h.test(o[1])?(l=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(l=o[1],e="/"+o[3]));var c,d=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=d&&d[1],w=new f,x="",_="";try{c=new URL(e)}catch(t){x=t,l||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(_="/",e=e.substr(1));try{c=new URL(e,u)}catch(e){return w.protocol=l,w.href=l,w}}w.slashes=s&&!_,w.host="w.w"===c.host?"":c.host,w.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),w.protocol=x?l||null:c.protocol,w.search=c.search.replace(/\\/g,"%5C"),w.hash=c.hash.replace(/\\/g,"%5C");var S=e.split("#");!w.search&&~S[0].indexOf("?")&&(w.search="?"),w.hash||""!==S[1]||(w.hash="#"),w.query=t?r.decode(c.search.substr(1)):w.search.substr(1),w.pathname=_+(o?c.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):c.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),x&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),l&&!h.test(l)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=c.port,b&&!w.host.endsWith(b)&&(w.host+=b,w.port=b.slice(1)),w.href=_?""+w.pathname+w.search+w.hash:a(w);
124var C=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach(function(e){~C.indexOf(e)||(w[e]=w[e]||null)}),w}t.parse=b,t.format=a,t.resolve=d,t.resolveObject=function(e,t){return b(d(e,t))},t.Url=f}(),e.exports=o}()},77663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function o(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u=[],l=!1,c=-1;function d(){l&&n&&(l=!1,n.length?u=n.concat(u):c=-1,u.length&&f())}function f(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(n=u,u=[];++c<t;)n&&n[c].run();c=-1,t=u.length}n=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},a=!0;try{t[e](o,o.exports,n),a=!1}finally{a&&delete r[e]}return o.exports}n.ab="//";var i=n(229);e.exports=i}()},5152:function(e,t,r){e.exports=r(37645)},9008:function(e,t,r){e.exports=r(83121)},25675:function(e,t,r){e.exports=r(19749)},41664:function(e,t,r){e.exports=r(31551)},11163:function(e,t,r){e.exports=r(80880)},4298:function(e,t,r){e.exports=r(63573)},92703:function(e,t,r){"use strict";var n=r(50414);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,a){if(a!==n){var s=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}
124;return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96192:function(e,t){var r,n,i=function(){var e,t,r,n,i,o,a,s=function(e,t){var r=e,n=l[t],i=null,o=0,a=null,s=[],u={},c=function(e,t){i=function(e){for(var t=Array(e),r=0;r<e;r+=1){t[r]=Array(e);for(var n=0;n<e;n+=1)t[r][n]=null}return t}(o=4*r+17),f(0,0),f(o-7,0),f(0,o-7),S(),_(),k(e,t),r>=7&&C(e),null==a&&(a=P(r,n,s)),T(a,t)},f=function(e,t){for(var r=-1;r<=7;r+=1)if(!(e+r<=-1)&&!(o<=e+r))for(var n=-1;n<=7;n+=1)t+n<=-1||o<=t+n||(0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4?i[e+r][t+n]=!0:i[e+r][t+n]=!1)},x=function(){for(var e=0,t=0,r=0;r<8;r+=1){c(!0,r);var n=d.getLostPoint(u);(0==r||e>n)&&(e=n,t=r)}return t},_=function(){for(var e=8;e<o-8;e+=1)null==i[e][6]&&(i[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==i[6][t]&&(i[6][t]=t%2==0)},S=function(){for(var e=d.getPatternPosition(r),t=0;t<e.length;t+=1)for(var n=0;n<e.length;n+=1){var o=e[t],a=e[n];if(null==i[o][a])for(var s=-2;s<=2;s+=1)for(var u=-2;u<=2;u+=1)-2==s||2==s||-2==u||2==u||0==s&&0==u?i[o+s][a+u]=!0:i[o+s][a+u]=!1}},C=function(e){for(var t=d.getBCHTypeNumber(r),n=0;n<18;n+=1){var a=!e&&(t>>n&1)==1;i[Math.floor(n/3)][n%3+o-8-3]=a}for(var n=0;n<18;n+=1){var a=!e&&(t>>n&1)==1;i[n%3+o-8-3][Math.floor(n/3)]=a}},k=function(e,t){for(var r=d.getBCHTypeInfo(n<<3|t),a=0;a<15;a+=1){var s=!e&&(r>>a&1)==1;a<6?i[a][8]=s:a<8?i[a+1][8]=s:i[o-15+a][8]=s}for(var a=0;a<15;a+=1){var s=!e&&(r>>a&1)==1;a<8?i[8][o-a-1]=s:a<9?i[8][15-a-1+1]=s:i[8][15-a-1]=s}i[o-8][8]=!e},T=function(e,t){for(var r=-1,n=o-1,a=7,s=0,u=d.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var c=0;c<2;c+=1)if(null==i[n][l-c]){var f=!1;s<e.length&&(f=(e[s]>>>a&1)==1),u(n,l-c)&&(f=!f),i[n][l-c]=f,-1==(a-=1)&&(s+=1,a=7)}if((n+=r)<0||o<=n){n-=r,r=-r;break}}},A=function(e,t){for(var r=0,n=0,i=0,o=Array(t.length),a=Array(t.length),s=0;s<t.length;s+=1){var u=t[s].dataCount,l=t[s].totalCount-u;n=Math.max(n,u),i=Math.max(i,l),o[s]=Array(u);for(var c=0;c<o[s].length;c+=1)o[s][c]=255&e.getBuffer()[c+r];r+=u;var f=d.getErrorCorrectPolynomial(l),p=h(o[s],f.getLength()-1).mod(f);a[s]=Array(f.getLength()-1);for(var c=0;c<a[s].length;c+=1){var m=c+p.getLength()-a[s].length;a[s][c]=m>=0?p.getAt(m):0}}for(var v=0,c=0;c<t.length;c+=1)v+=t[c].totalCount;for(var y=Array(v),b=0,c=0;c<n;c+=1)for(var s=0;s<t.length;s+=1)c<o[s].length&&(y[b]=o[s][c],b+=1);for(var c=0;c<i;c+=1)for(var s=0;s<t.length;s+=1)c<a[s].length&&(y[b]=a[s][c],b+=1);return y},P=function(e,t,r){for(var n=p.getRSBlocks(e,t),i=m(),o=0;o<r.length;o+=1){var a=r[o];i.put(a.getMode(),4),i.put(a.getLength(),d.getLengthInBits(a.getMode(),e)),a.write(i)}for(var s=0,o=0;o<n.length;o+=1)s+=n[o].dataCount;if(i.getLengthInBits()>8*s)throw"code length overflow. ("+i.getLengthInBits()+">"+8*s+")";for(i.getLengthInBits()+4<=8*s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*s)&&(i.put(236,8),!(i.getLengthInBits()>=8*s));)i.put(17,8);return A(i,n)};u.addData=function(e,t){var r=null;switch(t=t||"Byte"){case"Numeric":r=v(e);break;case"Alphanumeric":r=y(e);break;case"Byte":r=b(e);break;case"Kanji":r=w(e);break;default:throw"mode:"+t}s.push(r),a=null},u.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return i[e][t]},u.getModuleCount=function(){return o},u.make=function(){if(r<1){for(var e=1;e<40;e++){for(var t=p.getRSBlocks(e,n),i=m(),o=0;o<s.length;o++){var a=s[o];i.put(a.getMode(),4),i.put(a.getLength(),d.getLengthInBits(a.getMode(),e)),a.write(i)}for(var u=0,o=0;o<t.length;o++)u+=t[o].dataCount;if(i.getLengthInBits()<=8*u)break}r=e}c(!1,x())},u.createTableTag=function(e,t){e=e||2;var r="";r+='<table style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: '+(t=void 0===t?4*e:t)+'px;"><tbody>';for(var n=0;n<u.getModuleCount();n+=1){r+="<tr>";for(var i=0;i<u.getModuleCount();i+=1)r+='<td style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: 0px; width: '+e+"px; height: "+e+"px; background-color: "+(u.isDark(n,i)?"#000000":"#ffffff")+';"/>';r+="</tr>"}return r+"</tbody></table>"},u.createSvgTag=function(e,t,r,n){var i={};"object"==typeof arguments[0]&&(i=arguments[0],e=i.cellSize,t=i.margin,r=i.alt,n=i.title),e=e||2,t=void 0===t?4*e:t,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var o,a,s,l,c=u.getModuleCount()*e+2*t,d="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"'+(i.scalable?"":' width="'+c+'px" height="'+c+'px"')+(' viewB
124ox="0 0 '+c+" ")+c+'"  preserveAspectRatio="xMinYMin meet"'+(n.text||r.text?' role="img" aria-labelledby="'+I([n.id,r.id].join(" ").trim())+'"':"")+">"+(n.text?'<title id="'+I(n.id)+'">'+I(n.text)+"</title>":"")+(r.text?'<description id="'+I(r.id)+'">'+I(r.text)+"</description>":"")+'<rect width="100%" height="100%" fill="white" cx="0" cy="0"/><path d="',a=0;a<u.getModuleCount();a+=1)for(o=0,s=a*e+t;o<u.getModuleCount();o+=1)u.isDark(a,o)&&(d+="M"+(o*e+t)+","+s+l);return d+'" stroke="transparent" fill="black"/></svg>'},u.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var r=u.getModuleCount()*e+2*t,n=t,i=r-t;return E(r,r,function(t,r){if(!(n<=t)||!(t<i)||!(n<=r)||!(r<i))return 1;var o=Math.floor((t-n)/e),a=Math.floor((r-n)/e);return u.isDark(a,o)?0:1})},u.createImgTag=function(e,t,r){e=e||2,t=void 0===t?4*e:t;var n=u.getModuleCount()*e+2*t,i="";return i+='<img src="'+u.createDataURL(e,t)+'" width="'+n+'" height="'+n+'"',r&&(i+=' alt="'+I(r)+'"'),i+="/>"};var I=function(e){for(var t="",r=0;r<e.length;r+=1){var n=e.charAt(r);switch(n){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=n}}return t},O=function(e){e=void 0===e?2:e;var t,r,n,i,o,a=1*u.getModuleCount()+2*e,s=e,l=a-e,c={"██":"█","█ ":"▀"," █":"▄","  ":" "},d={"██":"▀","█ ":"▀"," █":" ","  ":" "},f="";for(t=0;t<a;t+=2){for(r=0,n=Math.floor((t-s)/1),i=Math.floor((t+1-s)/1);r<a;r+=1)o="█",s<=r&&r<l&&s<=t&&t<l&&u.isDark(n,Math.floor((r-s)/1))&&(o=" "),s<=r&&r<l&&s<=t+1&&t+1<l&&u.isDark(i,Math.floor((r-s)/1))?o+=" ":o+="█",f+=e<1&&t+1>=l?d[o]:c[o];f+="\n"}return a%2&&e>0?f.substring(0,f.length-a-1)+Array(a+1).join("▀"):f.substring(0,f.length-1)};return u.createASCII=function(e,t){if((e=e||1)<2)return O(t);e-=1,t=void 0===t?2*e:t;var r,n,i,o,a=u.getModuleCount()*e+2*t,s=t,l=a-t,c=Array(e+1).join("██"),d=Array(e+1).join("  "),f="",h="";for(r=0;r<a;r+=1){for(n=0,i=Math.floor((r-s)/e),h="";n<a;n+=1)o=1,s<=n&&n<l&&s<=r&&r<l&&u.isDark(i,Math.floor((n-s)/e))&&(o=0),h+=o?c:d;for(i=0;i<e;i+=1)f+=h+"\n"}return f.substring(0,f.length-1)},u.renderTo2dContext=function(e,t){t=t||2;for(var r=u.getModuleCount(),n=0;n<r;n++)for(var i=0;i<r;i++)e.fillStyle=u.isDark(n,i)?"black":"white",e.fillRect(n*t,i*t,t,t)},u};s.stringToBytesFuncs={default:function(e){for(var t=[],r=0;r<e.length;r+=1){var n=e.charCodeAt(r);t.push(255&n)}return t}},s.stringToBytes=s.stringToBytesFuncs.default,s.createStringToBytes=function(e,t){var r=function(){for(var r=S(e),n=function(){var e=r.read();if(-1==e)throw"eof";return e},i=0,o={};;){var a=r.read();if(-1==a)break;var s=n(),u=n(),l=n(),c=String.fromCharCode(a<<8|s),d=u<<8|l;o[c]=d,i+=1}if(i!=t)throw i+" != "+t;return o}();return function(e){for(var t=[],n=0;n<e.length;n+=1){var i=e.charCodeAt(n);if(i<128)t.push(i);else{var o=r[e.charAt(n)];"number"==typeof o?(255&o)==o?t.push(o):(t.push(o>>>8),t.push(255&o)):t.push(63)}}return t}};var u={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},l={L:1,M:0,Q:3,H:2},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},d=(e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],t={},r=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},t.getBCHTypeInfo=function(e){for(var t=e<<10;r(t)-r(1335)>=0;)t^=1335<<r(t)-r(1335);return(e<<10|t)^21522},t.getBCHTypeNumber=function(e){for(var t=e<<12;r(t)-r(7973)>=0;)t^=7973<<r(t)-r(7973);return e<<12|t},t.getPatternPosition=function(t){return e[t-1]},t.getMaskFunction=function(e){switch(e){case c.PATTERN000:return function(e,t){return(e+t)%2==0};case c.PATTERN001:return function(e,t){return e%2==0}
124;case c.PATTERN010:return function(e,t){return t%3==0};case c.PATTERN011:return function(e,t){return(e+t)%3==0};case c.PATTERN100:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case c.PATTERN101:return function(e,t){return e*t%2+e*t%3==0};case c.PATTERN110:return function(e,t){return(e*t%2+e*t%3)%2==0};case c.PATTERN111:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},t.getErrorCorrectPolynomial=function(e){for(var t=h([1],0),r=0;r<e;r+=1)t=t.multiply(h([1,f.gexp(r)],0));return t},t.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case u.MODE_NUMBER:return 10;case u.MODE_ALPHA_NUM:return 9;case u.MODE_8BIT_BYTE:case u.MODE_KANJI:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case u.MODE_NUMBER:return 12;case u.MODE_ALPHA_NUM:return 11;case u.MODE_8BIT_BYTE:return 16;case u.MODE_KANJI:return 10;default:throw"mode:"+e}else if(t<41)switch(e){case u.MODE_NUMBER:return 14;case u.MODE_ALPHA_NUM:return 13;case u.MODE_8BIT_BYTE:return 16;case u.MODE_KANJI:return 12;default:throw"mode:"+e}else throw"type:"+t},t.getLostPoint=function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n+=1)for(var i=0;i<t;i+=1){for(var o=0,a=e.isDark(n,i),s=-1;s<=1;s+=1)if(!(n+s<0)&&!(t<=n+s))for(var u=-1;u<=1;u+=1)i+u<0||t<=i+u||0==s&&0==u||a!=e.isDark(n+s,i+u)||(o+=1);o>5&&(r+=3+o-5)}for(var n=0;n<t-1;n+=1)for(var i=0;i<t-1;i+=1){var l=0;e.isDark(n,i)&&(l+=1),e.isDark(n+1,i)&&(l+=1),e.isDark(n,i+1)&&(l+=1),e.isDark(n+1,i+1)&&(l+=1),(0==l||4==l)&&(r+=3)}for(var n=0;n<t;n+=1)for(var i=0;i<t-6;i+=1)e.isDark(n,i)&&!e.isDark(n,i+1)&&e.isDark(n,i+2)&&e.isDark(n,i+3)&&e.isDark(n,i+4)&&!e.isDark(n,i+5)&&e.isDark(n,i+6)&&(r+=40);for(var i=0;i<t;i+=1)for(var n=0;n<t-6;n+=1)e.isDark(n,i)&&!e.isDark(n+1,i)&&e.isDark(n+2,i)&&e.isDark(n+3,i)&&e.isDark(n+4,i)&&!e.isDark(n+5,i)&&e.isDark(n+6,i)&&(r+=40);for(var c=0,i=0;i<t;i+=1)for(var n=0;n<t;n+=1)e.isDark(n,i)&&(c+=1);return r+10*(Math.abs(100*c/t/t-50)/5)},t),f=function(){for(var e=Array(256),t=Array(256),r=0;r<8;r+=1)e[r]=1<<r;for(var r=8;r<256;r+=1)e[r]=e[r-4]^e[r-5]^e[r-6]^e[r-8];for(var r=0;r<255;r+=1)t[e[r]]=r;var n={};return n.glog=function(e){if(e<1)throw"glog("+e+")";return t[e]},n.gexp=function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]},n}();function h(e,t){if(void 0===e.length)throw e.length+"/"+t;var r=function(){for(var r=0;r<e.length&&0==e[r];)r+=1;for(var n=Array(e.length-r+t),i=0;i<e.length-r;i+=1)n[i]=e[i+r];return n}(),n={};return n.getAt=function(e){return r[e]},n.getLength=function(){return r.length},n.multiply=function(e){for(var t=Array(n.getLength()+e.getLength()-1),r=0;r<n.getLength();r+=1)for(var i=0;i<e.getLength();i+=1)t[r+i]^=f.gexp(f.glog(n.getAt(r))+f.glog(e.getAt(i)));return h(t,0)},n.mod=function(e){if(n.getLength()-e.getLength()<0)return n;for(var t=f.glog(n.getAt(0))-f.glog(e.getAt(0)),r=Array(n.getLength()),i=0;i<n.getLength();i+=1)r[i]=n.getAt(i);for(var i=0;i<e.getLength();i+=1)r[i]^=f.gexp(f.glog(e.getAt(i))+t);return h(r,0).mod(e)},n}var p=(n=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i=function(e,t){var r={};return r.totalCount=e,r.dataCount=t,r},o={},a=function(e,t){switch(t){case l.L:return n[(e-1)*4+0];case l.M:return n[(e-1)*4+1];case l.Q:return n[(e-1)*4+2];case l.H:return n[(e-1)*4+3];default:return}},o.getRSBlocks=function(e,t){var r=a(e,t);if(void 0===r)throw"bad rs block @ typeNumber:"+e+"/errorCorrectionLevel:"+t;for(var n=r.length/3,o=[],s=0;s<n;s+=1)for(var u=r[3*s+0],l=r[3*s+1],c=r[3*s+2],d=0;d<u;d+=1)o.push(i(l,c));return o},o),m=function(){var e=[],t=0,r={};return r.getBuffer=function(){return e},r.getAt=function(t){return(e[Math.floor(t/8)]>>>7-t%8&1)==1},r.put=function(e,t){for(var n=0;n<t;n+=1)r.putBit((e>>>t-n-1&1)==1)},r.getLengthInBits=function(){return t},r.putBit=function(r){var n=Math.floor(t/8);e.length<=n&&e.push(0),r&&(e[n]|=128>>>t%8),t+=1},r},v=function(e){var t=u.MODE_NUMBER,r={};r.getMode=function(){return t},r.getLength=function(t){return e.length},r.write=function(t){for(var r=0;r+2<e.length;)t.put(n(e.substring(r,r+3)),10),r+=3;r<e.length&&(e.length-r==1?t.put(n(e.substring(r,r+1)),4):e.length-r==2&&t.put(n(e.substring(r,r+2)),7))};var n=function(e){for(var t=0,r=0;r<e.length;r+=1)t=10*t+i(e.charAt(r));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;throw"illegal char :"+e};return r},y=function(e){var t=u.MODE_ALPHA_NUM,r={};r.getMode=function(){return t},r.getLength=function(t){return e.length},r.write=function(t){for(var r=0;r+1<e.length;)t.put(45*n(e.charAt(r))+n(e.charAt(r+1)),11),r+=2;r<e.length&&t.put(n(e.charAt(r)),6)};var n=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-48;if("A"<=e&&e<="Z")return e.charCodeAt(0)-65+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return r},b=function(e){var t=u.MODE_8BIT_BYTE,r=s.stringToBytes(e),n={};return n.getMode=function(){return t},n.getLength=function(e){return r.length},n.write=function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)},n},w=function(e){var t=u.MODE_KANJI,r=s.stringToBytesFuncs.SJIS;if(!r)throw"sjis not supported.";!function(e,t){var n=r("友");
124if(2!=n.length||(n[0]<<8|n[1])!=38726)throw"sjis not supported."}(0,0);var n=r(e),i={};return i.getMode=function(){return t},i.getLength=function(e){return~~(n.length/2)},i.write=function(e){for(var t=0;t+1<n.length;){var r=(255&n[t])<<8|255&n[t+1];if(33088<=r&&r<=40956)r-=33088;else if(57408<=r&&r<=60351)r-=49472;else throw"illegal char at "+(t+1)+"/"+r;r=(r>>>8&255)*192+(255&r),e.put(r,13),t+=2}if(t<n.length)throw"illegal char at "+(t+1)},i},x=function(){var e=[],t={};return t.writeByte=function(t){e.push(255&t)},t.writeShort=function(e){t.writeByte(e),t.writeByte(e>>>8)},t.writeBytes=function(e,r,n){r=r||0,n=n||e.length;for(var i=0;i<n;i+=1)t.writeByte(e[i+r])},t.writeString=function(e){for(var r=0;r<e.length;r+=1)t.writeByte(e.charCodeAt(r))},t.toByteArray=function(){return e},t.toString=function(){var t="";t+="[";for(var r=0;r<e.length;r+=1)r>0&&(t+=","),t+=e[r];return t+"]"},t},_=function(){var e=0,t=0,r=0,n="",i={},o=function(e){n+=String.fromCharCode(a(63&e))},a=function(e){if(e<0);else if(e<26)return 65+e;else if(e<52)return 97+(e-26);else if(e<62)return 48+(e-52);else if(62==e)return 43;else if(63==e)return 47;throw"n:"+e};return i.writeByte=function(n){for(e=e<<8|255&n,t+=8,r+=1;t>=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),r%3!=0)for(var i=3-r%3,a=0;a<i;a+=1)n+="="},i.toString=function(){return n},i},S=function(e){var t=0,r=0,n=0,i={};i.read=function(){for(;n<8;){if(t>=e.length){if(0==n)return -1;throw"unexpected end of file./"+n}var i=e.charAt(t);if(t+=1,"="==i)return n=0,-1;i.match(/^\s$/)||(r=r<<6|o(i.charCodeAt(0)),n+=6)}var a=r>>>n-8&255;return n-=8,a};var o=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return i},C=function(e,t){var r=Array(e*t),n={};n.setPixel=function(t,n,i){r[n*e+t]=i},n.write=function(r){r.writeString("GIF87a"),r.writeShort(e),r.writeShort(t),r.writeByte(128),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(255),r.writeByte(255),r.writeByte(255),r.writeString(","),r.writeShort(0),r.writeShort(0),r.writeShort(e),r.writeShort(t),r.writeByte(0);var n=o(2);r.writeByte(2);for(var i=0;n.length-i>255;)r.writeByte(255),r.writeBytes(n,i,255),i+=255;r.writeByte(n.length-i),r.writeBytes(n,i,n.length-i),r.writeByte(0),r.writeString(";")};var i=function(e){var t=0,r=0,n={};return n.write=function(n,i){if(n>>>i!=0)throw"length over";for(;t+i>=8;)e.writeByte(255&(n<<t|r)),i-=8-t,n>>>=8-t,r=0,t=0;r=n<<t|r,t+=i},n.flush=function(){t>0&&e.writeByte(r)},n},o=function(e){for(var t=1<<e,n=(1<<e)+1,o=e+1,s=a(),u=0;u<t;u+=1)s.add(String.fromCharCode(u));s.add(String.fromCharCode(t)),s.add(String.fromCharCode(n));var l=x(),c=i(l);c.write(t,o);var d=0,f=String.fromCharCode(r[0]);for(d+=1;d<r.length;){var h=String.fromCharCode(r[d]);d+=1,s.contains(f+h)?f+=h:(c.write(s.indexOf(f),o),4095>s.size()&&(s.size()==1<<o&&(o+=1),s.add(f+h)),f=h)}return c.write(s.indexOf(f),o),c.write(n,o),c.flush(),l.toByteArray()},a=function(){var e={},t=0,r={};return r.add=function(n){if(r.contains(n))throw"dup key:"+n;e[n]=t,t+=1},r.size=function(){return t},r.indexOf=function(t){return e[t]},r.contains=function(t){return void 0!==e[t]},r};return n},E=function(e,t,r){for(var n=C(e,t),i=0;i<t;i+=1)for(var o=0;o<e;o+=1)n.setPixel(o,i,r(o,i));var a=x();n.write(a);for(var s=_(),u=a.toByteArray(),l=0;l<u.length;l+=1)s.writeByte(u[l]);return s.flush(),"data:image/gif;base64,"+s};return s}();i.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);n<128?t.push(n):n<2048?t.push(192|n>>6,128|63&n):n<55296||n>=57344?t.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&e.charCodeAt(r)),t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}(e)},void 0!==(n="function"==typeof(r=function(){return i})?r.apply(t,[]):r)&&(e.exports=n)},62587:function(e){"use strict";e.exports=function(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var l,c,d,f,h=e[u].replace(o,"%20"),p=h.indexOf(r);(p>=0?(l=h.substr(0,p),c=h.substr(p+1)):(l=h,c=""),d=decodeURIComponent(l),f=decodeURIComponent(c),Object.prototype.hasOwnProperty.call(i,d))?Array.isArray(i[d])?i[d].push(f):i[d]=[i[d],f]:i[d]=f}return i}},12361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,r,n,i){return(r=r||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e)?Object.keys(e).map(function(i){var o=encodeURIComponent(t(i))+n;return Array.isArray(e[i])?e[i].map(function(e){return o+encodeURIComponent(t(e))}).join(r):o+encodeURIComponent(t(e[i]))}).join(r):i?encodeURIComponent(t(i))+n+encodeURIComponent(t(e)):""}},17673:function(e,t,r){"use strict";t.decode=t.parse=r(62587),t.encode=t.stringify=r(12361)},73190:function(e,t,r){"use strict";
124Object.defineProperty(t,"__esModule",{value:!0}),t.default={slide:r(66432),stack:r(57277),elastic:r(2996),bubble:r(53414),push:r(83976),pushRotate:r(48796),scaleDown:r(39070),scaleRotate:r(36001),fallDown:r(15576),reveal:r(86523)},e.exports=t.default},14510:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=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}}(),o=function(e,t,r){var n=!0;t:for(;n;){var i=e,o=t,a=r;n=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,o);if(void 0===s){var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,r=a,n=!0,s=u=void 0;continue t}if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}};function a(e){return e&&e.__esModule?e:{default:e}}var s=r(67294),u=a(s),l=a(r(45697)),c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={hover:!1}}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"getLineStyle",value:function(e){return n({position:"absolute",height:"20%",left:0,right:0,top:20*(2*e)+"%",opacity:this.state.hover?.6:1},this.state.hover&&this.props.styles.bmBurgerBarsHover)}},{key:"render",value:function(){var e=this,t=void 0;if(this.props.customIcon){var r={className:("bm-icon "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmIcon)};t=u.default.cloneElement(this.props.customIcon,r)}else t=u.default.createElement("span",null,[0,1,2].map(function(t){return u.default.createElement("span",{key:t,className:("bm-burger-bars "+e.props.barClassName+" "+(e.state.hover?"bm-burger-bars-hover":"")).trim(),style:n({},e.getLineStyle(t),e.props.styles.bmBurgerBars)})}));return u.default.createElement("div",{className:("bm-burger-button "+this.props.className).trim(),style:n({zIndex:1e3},this.props.styles.bmBurgerButton)},u.default.createElement("button",{type:"button",id:"react-burger-menu-btn",onClick:this.props.onClick,onMouseOver:function(){e.setState({hover:!0}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!0})},onMouseOut:function(){e.setState({hover:!1}),e.props.onIconHoverChange&&e.props.onIconHoverChange({isMouseIn:!1})},style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"}},"Open Menu"),t)}}]),t}(s.Component);t.default=c,c.propTypes={barClassName:l.default.string,customIcon:l.default.element,styles:l.default.object},c.defaultProps={barClassName:"",className:"",styles:{}},e.exports=t.default},75430:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=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},i=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}}(),o=function(e,t,r){var n=!0;t:for(;n;){var i=e,o=t,a=r;n=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,o);if(void 0===s){var u=Object.getPrototypeOf(i);if(null===u)return;e=u,t=o,r=a,n=!0,s=u=void 0;continue t}if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}};
124function a(e){return e&&e.__esModule?e:{default:e}}var s=r(67294),u=a(s),l=a(r(45697)),c=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,arguments)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"getCrossStyle",value:function(e){return{position:"absolute",width:3,height:14,transform:"before"===e?"rotate(45deg)":"rotate(-45deg)"}}},{key:"render",value:function(){var e,t=this;if(this.props.customIcon){var r={className:("bm-cross "+(this.props.customIcon.props.className||"")).trim(),style:n({width:"100%",height:"100%"},this.props.styles.bmCross)};e=u.default.cloneElement(this.props.customIcon,r)}else e=u.default.createElement("span",{style:{position:"absolute",top:"6px",right:"14px"}},["before","after"].map(function(e,r){return u.default.createElement("span",{key:r,className:("bm-cross "+t.props.crossClassName).trim(),style:n({},t.getCrossStyle(e),t.props.styles.bmCross)})}));return u.default.createElement("div",{className:("bm-cross-button "+this.props.className).trim(),style:n({},{position:"absolute",width:24,height:24,right:8,top:8},this.props.styles.bmCrossButton)},u.default.createElement("button",n({type:"button",id:"react-burger-cross-btn",onClick:this.props.onClick,style:{position:"absolute",left:0,top:0,zIndex:1,width:"100%",height:"100%",margin:0,padding:0,border:"none",fontSize:0,background:"transparent",cursor:"pointer"}},!this.props.isOpen&&{tabIndex:-1}),"Close Menu"),e)}}]),t}(s.Component);t.default=c,c.propTypes={crossClassName:l.default.string,customIcon:l.default.element,isOpen:l.default.bool,styles:l.default.object},c.defaultProps={crossClassName:"",className:"",styles:{},isOpen:!1},e.exports=t.default},86661:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={overlay:function(e){return{position:"fixed",zIndex:1e3,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.3)",opacity:e?1:0,MozTransform:e?"":"translate3d(100%, 0, 0)",MsTransform:e?"":"translate3d(100%, 0, 0)",OTransform:e?"":"translate3d(100%, 0, 0)",WebkitTransform:e?"":"translate3d(100%, 0, 0)",transform:e?"":"translate3d(100%, 0, 0)",transition:e?"opacity 0.3s":"opacity 0.3s, transform 0s 0.3s"}},menuWrap:function(e,t,r){return{position:"fixed",right:r?0:"inherit",zIndex:1100,width:t,height:"100%",MozTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:e?"":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.5s"}},menu:function(){return{height:"100%",boxSizing:"border-box",overflow:"auto"}},itemList:function(){return{height:"100%"}},item:function(){return{display:"block"}}},e.exports=t.default},74660:function(e,t){"use strict";function r(){var e=Array.from(document.getElementsByClassName("bm-item")).shift();e&&e.focus()}function n(){var e=Array.from(document.getElementsByClassName("bm-item")).pop();e&&e.focus()}function i(){var e=document.getElementById("react-burger-cross-btn");e&&e.focus()}function o(e){if(document.activeElement.className.includes("bm-item")){var t=document.activeElement[e];t?t.focus():i()}else"previousElementSibling"===e?n():r()}Object.defineProperty(t,"__esModule",{value:!0}),t.focusOnFirstMenuItem=r,t.focusOnLastMenuItem=n,t.focusOnCrossButton=i,t.focusOnMenuButton=function(){var e=document.getElementById("react-burger-menu-btn");e&&e.focus()},t.focusOnMenuItem=o,t.focusOnNextMenuItem=function(){o("nextElementSibling")},t.focusOnPreviousMenuItem=function(){o("previousElementSibling")}},99978:function(e,t,r){"use strict";
124Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=void 0;try{e=r(21223)}finally{return e}},e.exports=t.default},72539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pxToNum=function(e){return parseInt(e.slice(0,-2),10)}},14126:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},i=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};function o(e){return e&&e.__esModule?e:{default:e}}var a=o(r(67294));o(r(73935));var s=o(r(45697)),u=o(r(86661)),l=r(74660),c=o(r(14510)),d=o(r(75430));t.default=function(e){if(!e)throw Error("No styles supplied");var t="ArrowDown",r="ArrowUp",o=function(o){var s,f,h=n(a.default.useState(!1),2),p=h[0],m=h[1],v=a.default.useRef(),y=a.default.useRef({}),b=(s=o.isOpen,f=a.default.useRef(s),a.default.useEffect(function(){f.current=s}),f.current);function w(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];y.current=e,E(),setTimeout(function(){m(function(t){return void 0!==e.isOpen?e.isOpen:!t})})}function x(){"function"==typeof o.onClose?o.onClose():w()}function _(e,t){var r=o.width;return e(p,"string"!=typeof r?r+"px":r,o.right,t)}function S(t,r,n){var a="bm"+t.replace(t.charAt(0),t.charAt(0).toUpperCase()),s=u.default[t]?_(u.default[t]):{};return e[t]&&(s=i({},s,_(e[t],r+1))),o.styles[a]&&(s=i({},s,o.styles[a])),n&&(s=i({},s,n)),o.noTransition&&delete s.transition,s}function C(e,t,r){var n=document.getElementById(e);if(!n){console.error("Element with ID '"+e+"' not found");return}var i=_(t);for(var a in i)i.hasOwnProperty(a)&&(n.style[a]=r?i[a]:"");var s=function(e){return e.style["overflow-x"]=r?"hidden":""};o.htmlClassName||s(document.querySelector("html")),o.bodyClassName||s(document.querySelector("body"))}function E(){var t=arguments.length<=0||void 0===arguments[0]||arguments[0],r=function(e,r){return e.classList[t?"add":"remove"](r)};o.htmlClassName&&r(document.querySelector("html"),o.htmlClassName),o.bodyClassName&&r(document.querySelector("body"),o.bodyClassName),e.pageWrap&&o.pageWrapId&&C(o.pageWrapId,e.pageWrap,t),e.outerContainer&&o.outerContainerId&&C(o.outerContainerId,e.outerContainer,t);var n=document.querySelector(".bm-menu-wrap");n&&(t?n.removeAttribute("hidden"):n.setAttribute("hidden",!0))}function k(){v.current&&clearTimeout(v.current)}function T(e){switch((e=e||window.event).key){case"Escape":o.disableCloseOnEsc||(x(),(0,l.focusOnMenuButton)());break;case t:(0,l.focusOnNextMenuItem)();break;case r:(0,l.focusOnPreviousMenuItem)();break;case"Home":(0,l.focusOnFirstMenuItem)();break;case"End":(0,l.focusOnLastMenuItem)()}}function A(e){if((e=e||window.event).target===document.getElementById("react-burger-menu-btn"))switch(e.key){case t:case" ":w();break;case r:w({focusOnLastItem:!0})}}return a.default.useEffect(function(){return o.isOpen&&w({isOpen:!0,noStateChange:!0}),function(){E(!1),k()}},[]),a.default.useEffect(function(){if(void 0!==o.isOpen&&o.isOpen!==p&&o.isOpen!==b){w();return}if(e.svg){var t,r;t=document.getElementById("bm-morph-shape"),r=e.svg.lib(t).select("path"),p?e.svg.animate(r):setTimeout(function(){r.attr("d",e.svg.pathInitial)},300)}}),a.default.useEffect(function(){var e=y.current,t=e.noStateChange,r=e.focusOnLastItem;t||o.onStateChange({isOpen:p}),o.disableAutoFocus||(p?r?(0,l.focusOnLastMenuItem)():(0,l.focusOnFirstMenuItem)():document.activeElement?document.activeElement.blur():document.body.blur()),k(),v.current=setTimeout(function(){v.current=null,p||E(!1)},500);var n=o.customOnKeyDown||(p?T:A);return window.addEventListener("keydown",n),function(){window.removeEventListener("keydown",n)}},[p]),a.default.createElement("div",null,!o.noOverlay&&a.default.createElement("div",{className:("bm-overlay "+o.overlayClassName).trim(),onClick:function(){!0===o.disableOverlayClick||"function"==typeof o.disableOverlayClick&&o.disableOverlayClick()||x()},style:S("overlay")}),!1!==o.customBurgerIcon&&a.default.createElement("div",{style:S("burgerIcon")},a.default.createElement(c.default,{onClick:function(){"function"==typeof o.onOpen?o.onOpen():w()},styles:o.styles,customIcon:o.customBurgerIcon,className:o.burgerButtonClassName,barClassName:o.burgerBarClassName,onIconStateChange:o.onIconStateChange})),a.default.createElement("div",{id:o.id,className:("bm-menu-wrap "+o.className).trim(),style:S("menuWrap"),"aria-hidden":!p},e.svg&&a.default.createElement("div",{id:"bm-morph-shape",className:("bm-morph-shape "+o.morphShapeClassName).trim(),style:S("morphShape")},a.default.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 100 800",preserveAspectRatio:"none"},a.default.createElement("path",{d:e.svg.pathInitial}))),a.default.createElement("div",{className:("bm-menu "+o.menuClassName).trim(),style:S("menu")},a.default.createElement(o.itemListElement,{className:("bm-item-list "+o.itemListClassName).trim(),style:S("itemList")},a.default.Children.map(o.children,function(e,t){if(e){var r=i({key:t,className:["bm-item",o.itemClassName,e.props.className].filter(function(e){return!!e}).join(" "),style:S("item",t,e.props.style)},!p&&{tabIndex:-1});return a.default.cloneElement(e,r)}}))),!1!==o.customCrossIcon&&a.default.createElement("div",{style:S("closeButton")},a.default.createElement(d.default,{onClick:x,styles:o.styles,customIcon:o.customCrossIcon,className:o.crossButtonClassName,crossClassName:o.crossClassName,isOpen:p}))))};return o.propTypes={bodyClassName:s.default.string,burgerBarClassName:s.default.string,burgerButtonClassName:s.default.string,className:s.default.string,crossButtonClassName:s.default.string,crossClassName:s.default.string,customBurgerIcon:s.default.oneOfType([s.default.element,s.default.oneOf([
124!1])]),customCrossIcon:s.default.oneOfType([s.default.element,s.default.oneOf([!1])]),customOnKeyDown:s.default.func,disableAutoFocus:s.default.bool,disableCloseOnEsc:s.default.bool,disableOverlayClick:s.default.oneOfType([s.default.bool,s.default.func]),htmlClassName:s.default.string,id:s.default.string,isOpen:s.default.bool,itemClassName:s.default.string,itemListClassName:s.default.string,itemListElement:s.default.oneOf(["div","nav"]),menuClassName:s.default.string,morphShapeClassName:s.default.string,noOverlay:s.default.bool,noTransition:s.default.bool,onClose:s.default.func,onIconHoverChange:s.default.func,onOpen:s.default.func,onStateChange:s.default.func,outerContainerId:e&&e.outerContainer?s.default.string.isRequired:s.default.string,overlayClassName:s.default.string,pageWrapId:e&&e.pageWrap?s.default.string.isRequired:s.default.string,right:s.default.bool,styles:s.default.object,width:s.default.oneOfType([s.default.number,s.default.string])},o.defaultProps={bodyClassName:"",burgerBarClassName:"",burgerButtonClassName:"",className:"",crossButtonClassName:"",crossClassName:"",disableAutoFocus:!1,disableCloseOnEsc:!1,htmlClassName:"",id:"",itemClassName:"",itemListClassName:"",menuClassName:"",morphShapeClassName:"",noOverlay:!1,noTransition:!1,onStateChange:function(){},outerContainerId:"",overlayClassName:"",pageWrapId:"",styles:{},width:300,onIconHoverChange:function(){},itemListElement:"nav"},o},e.exports=t.default},53414:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(99978)),o=n(r(14126)),a=r(72539),s={svg:{lib:i.default,pathInitial:"M-7.312,0H0c0,0,0,113.839,0,400c0,264.506,0,400,0,400h-7.312V0z",pathOpen:"M-7.312,0H15c0,0,66,113.339,66,399.5C81,664.006,15,800,15,800H-7.312V0z;M-7.312,0H100c0,0,0,113.839,0,400c0,264.506,0,400,0,400H-7.312V0z",animate:function(e){var t=0,r=this.pathOpen.split(";"),n=r.length,i=window.mina;!function o(){!(t>n-1)&&(e.animate({path:r[t]},0===t?400:500,0===t?i.easein:i.elastic,function(){o()}),t++)}()}},morphShape:function(e,t,r){return{position:"absolute",width:"100%",height:"100%",right:r?"inherit":0,left:r?0:"inherit",MozTransform:r?"rotateY(180deg)":"rotateY(0deg)",MsTransform:r?"rotateY(180deg)":"rotateY(0deg)",OTransform:r?"rotateY(180deg)":"rotateY(0deg)",WebkitTransform:r?"rotateY(180deg)":"rotateY(0deg)",transform:r?"rotateY(180deg)":"rotateY(0deg)"}},menuWrap:function(e,t,r){return{MozTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:e?"transform 0.4s 0s":"transform 0.4s"}},menu:function(e,t,r){var n=(0,a.pxToNum)(t)-140;return{position:"fixed",MozTransform:e?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",MsTransform:e?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",OTransform:e?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",WebkitTransform:e?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transform:e?"":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transition:e?"opacity 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.1s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:e?1:0}},item:function(e,t,r,n){var i=(0,a.pxToNum)(t)-140;return{MozTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",MsTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",OTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",WebkitTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0
124)",transform:e?"translate3d(0, 0, 0)":r?"translate3d("+i+", 0, 0)":"translate3d(-"+i+", 0, 0)",transition:e?"opacity 0.3s 0.4s, transform 0.3s 0.4s":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:e?1:0}},closeButton:function(e,t,r){var n=(0,a.pxToNum)(t)-140;return{MozTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",MsTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",OTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",WebkitTransform:e?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transform:e?"translate3d(0, 0, 0)":r?"translate3d("+n+", 0, 0)":"translate3d(-"+n+", 0, 0)",transition:e?"opacity 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27), transform 0.3s 0.4s cubic-bezier(.17, .67, .1, 1.27)":"opacity 0s 0.3s cubic-bezier(.17, .67, .1, 1.27), transform 0s 0.3s cubic-bezier(.17, .67, .1, 1.27)",opacity:e?1:0}}};t.default=(0,o.default)(s),e.exports=t.default},2996:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(99978)),o=n(r(14126)),a=r(72539),s={svg:{lib:i.default,pathInitial:"M-1,0h101c0,0-97.833,153.603-97.833,396.167C2.167,627.579,100,800,100,800H-1V0z",pathOpen:"M-1,0h101c0,0,0-1,0,395c0,404,0,405,0,405H-1V0z",animate:function(e){e.animate({path:this.pathOpen},400,window.mina.easeinout)}},morphShape:function(e,t,r){return{position:"absolute",width:120,height:"100%",right:r?"inherit":0,left:r?0:"inherit",MozTransform:r?"rotateY(180deg)":"",MsTransform:r?"rotateY(180deg)":"",OTransform:r?"rotateY(180deg)":"",WebkitTransform:r?"rotateY(180deg)":"",transform:r?"rotateY(180deg)":""}},menuWrap:function(e,t,r){return{MozTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",MsTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",OTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",WebkitTransform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transform:e?"translate3d(0, 0, 0)":r?"translate3d(100%, 0, 0)":"translate3d(-100%, 0, 0)",transition:"all 0.3s"}},menu:function(e,t,r){return{position:"fixed",right:r?0:"inherit",width:(0,a.pxToNum)(t)-120,whiteSpace:"nowrap",boxSizing:"border-box",overflow:"visible"}},itemList:function(e,t,r){if(r)return{position:"relative",left:"-110px",width:"170%",overflow:"auto"}},pageWrap:function(e,t,r){return{MozTransform:e?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",MsTransform:e?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",OTransform:e?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",WebkitTransform:e?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",transform:e?"":r?"translate3d(-100px, 0, 0)":"translate3d(100px, 0, 0)",transition:e?"all 0.3s":"all 0.3s 0.1s"}},outerContainer:function(e){return{overflow:e?"":"hidden"}}};t.default=(0,o.default)(s),e.exports=t.default},15576:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({menuWrap:function(e){return{MozTransform:e?"":"translate3d(0, -100%, 0)",MsTransform:e?"":"translate3d(0, -100%, 0)",OTransform:e?"":"translate3d(0, -100%, 0)",WebkitTransform:e?"":"translate3d(0, -100%, 0)",transform:e?"":"translate3d(0, -100%, 0)",transition:"all 0.5s ease-in-out"}},pageWrap:function(e,t,r){return{MozTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",MsTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",OTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",WebkitTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",transform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(e){return{perspective:"1500px",perspectiveOrigin:"0% 50%",overflow:e?"":"hidden"}}}),e.exports=t.default},83976:function(e,t,r){"use strict";
124Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({pageWrap:function(e,t,r){return{MozTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",MsTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",OTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",WebkitTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",transform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",transition:"all 0.5s"}},outerContainer:function(e){return{overflow:e?"":"hidden"}}}),e.exports=t.default},48796:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({pageWrap:function(e,t,r){return{MozTransform:e?"":r?"translate3d(-"+t+", 0, 0) rotateY(15deg)":"translate3d("+t+", 0, 0) rotateY(-15deg)",MsTransform:e?"":r?"translate3d(-"+t+", 0, 0) rotateY(15deg)":"translate3d("+t+", 0, 0) rotateY(-15deg)",OTransform:e?"":r?"translate3d(-"+t+", 0, 0) rotateY(15deg)":"translate3d("+t+", 0, 0) rotateY(-15deg)",WebkitTransform:e?"":r?"translate3d(-"+t+", 0, 0) rotateY(15deg)":"translate3d("+t+", 0, 0) rotateY(-15deg)",transform:e?"":r?"translate3d(-"+t+", 0, 0) rotateY(15deg)":"translate3d("+t+", 0, 0) rotateY(-15deg)",transformOrigin:r?"100% 50%":"0% 50%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(e){return{perspective:"1500px",overflow:e?"":"hidden"}}}),e.exports=t.default},86523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({menuWrap:function(e,t,r){return{MozTransform:"translate3d(0, 0, 0)",MsTransform:"translate3d(0, 0, 0)",OTransform:"translate3d(0, 0, 0)",WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",zIndex:e?1e3:-1}},overlay:function(e,t,r){return{zIndex:1400,MozTransform:e?r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:e?r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)":"translate3d(0, 0, 0)",OTransform:e?r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:e?r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)":"translate3d(0, 0, 0)",transform:e?r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.5s",visibility:e?"visible":"hidden"}},pageWrap:function(e,t,r){return{MozTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",MsTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",OTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",WebkitTransform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",transform:e?"":r?"translate3d(-"+t+", 0, 0)":"translate3d("+t+", 0, 0)",transition:"all 0.5s",zIndex:1200,position:"relative"}},burgerIcon:function(e,t,r){return{MozTransform:e?r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)":"translate3d(0, 0, 0)",MsTransform:e?r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)":"translate3d(0, 0, 0)",OTransform:e?r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)":"translate3d(0, 0, 0)",WebkitTransform:e?r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)":"translate3d(0, 0, 0)",transform:e?r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)":"translate3d(0, 0, 0)",transition:"all 0.1s",position:"relative",zIndex:1300}},outerContainer:function(e){return{overflow:e?"":"hidden"}}}),e.exports=t.default},39070:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({pageWrap:function(e,t){return{MozTransform:e?"":"translate3d(0, 0, -"+t+")",MsTransform:e?"":"translate3d(0, 0, -"+t+")",OTransform:e?"":"translate3d(0, 0, -"+t+")",WebkitTransform:e?"":"translate3d(0, 0, -"+t+")",transform:e?"":"translate3d(0, 0, -"+t+")",transformOrigin:"100%",transformStyle:"preserve-3d",transition:"all 0.5s"}},outerContainer:function(){return{perspective:"1500px"}}}),e.exports=t.default},36001:function(e,t,r){"use strict";
124Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({pageWrap:function(e,t,r){return{MozTransform:e?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",MsTransform:e?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",OTransform:e?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",WebkitTransform:e?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transform:e?"":r?"translate3d(-100px, 0, -600px) rotateY(20deg)":"translate3d(100px, 0, -600px) rotateY(-20deg)",transformStyle:"preserve-3d",transition:"all 0.5s",overflow:e?"":"hidden"}},outerContainer:function(e){return{perspective:"1500px",overflow:e?"":"hidden"}}}),e.exports=t.default},66432:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({}),e.exports=t.default},57277:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r(14126))&&n.__esModule?n:{default:n};t.default=(0,i.default)({menuWrap:function(e,t,r){return{MozTransform:e?"":r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)",MsTransform:e?"":r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)",OTransform:e?"":r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)",WebkitTransform:e?"":r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)",transform:e?"":r?"translate3d("+t+", 0, 0)":"translate3d(-"+t+", 0, 0)",transition:e?"transform 0.8s cubic-bezier(0.7, 0, 0.3, 1)":"transform 0.4s cubic-bezier(0.7, 0, 0.3, 1)"}},item:function(e,t,r,n){return{MozTransform:e?"":"translate3d(0, "+500*n+"px, 0)",MsTransform:e?"":"translate3d(0, "+500*n+"px, 0)",OTransform:e?"":"translate3d(0, "+500*n+"px, 0)",WebkitTransform:e?"":"translate3d(0, "+500*n+"px, 0)",transform:e?"":"translate3d(0, "+500*n+"px, 0)",transition:e?"transform 0.8s cubic-bezier(0.7, 0, 0.3, 1)":"transform 0s 0.2s cubic-bezier(0.7, 0, 0.3, 1)"}}}),e.exports=t.default},89583:function(e,t,r){"use strict";r.d(t,{$0H:function(){return P},$Pg:function(){return v},Am9:function(){return o},BgW:function(){return L},CvY:function(){return A},EIY:function(){return M},G5m:function(){return R},H_v:function(){return m},IiJ:function(){return x},Nh4:function(){return I},QHb:function(){return D},R9i:function(){return i},RiI:function(){return k},XdU:function(){return _},Xfy:function(){return j},Xm5:function(){return N},Z1Y:function(){return b},ZCH:function(){return C},ZTc:function(){return w},Zf_:function(){return s},_HU:function(){return p},dL9:function(){return d},dR1:function(){return a},hPV:function(){return f},iUH:function(){return h},jS6:function(){return E}
124,kpq:function(){return O},m3W:function(){return U},nTm:function(){return u},qL$:function(){return S},qyc:function(){return T},x_l:function(){return y},xg4:function(){return c},xpo:function(){return l},zYX:function(){return F}});var n=r(88357);function i(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"}}]})(e)}function o(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"}}]})(e)}function a(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224,202.66A53.34,53.34,0,1,0,277.36,256,53.38,53.38,0,0,0,224,202.66Zm124.71-41a54,54,0,0,0-30.41-30.41c-21-8.29-71-6.43-94.3-6.43s-73.25-1.93-94.31,6.43a54,54,0,0,0-30.41,30.41c-8.28,21-6.43,71.05-6.43,94.33S91,329.26,99.32,350.33a54,54,0,0,0,30.41,30.41c21,8.29,71,6.43,94.31,6.43s73.24,1.93,94.3-6.43a54,54,0,0,0,30.41-30.41c8.35-21,6.43-71.05,6.43-94.33S357.1,182.74,348.75,161.67ZM224,338a82,82,0,1,1,82-82A81.9,81.9,0,0,1,224,338Zm85.38-148.3a19.14,19.14,0,1,1,19.13-19.14A19.1,19.1,0,0,1,309.42,189.74ZM400,32H48A48,48,0,0,0,0,80V432a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V80A48,48,0,0,0,400,32ZM382.88,322c-1.29,25.63-7.14,48.34-25.85,67s-41.4,24.63-67,25.85c-26.41,1.49-105.59,1.49-132,0-25.63-1.29-48.26-7.15-67-25.85s-24.63-41.42-25.85-67c-1.49-26.42-1.49-105.61,0-132,1.29-25.63,7.07-48.34,25.85-67s41.47-24.56,67-25.78c26.41-1.49,105.59-1.49,132,0,25.63,1.29,48.33,7.15,67,25.85s24.63,41.42,25.85,67.05C384.37,216.44,384.37,295.56,382.88,322Z"}}]})(e)}function s(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}}]})(e)}function u(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"}}]})(e)}function l(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"}}]})(e)}function c(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M186.8 202.1l95.2 54.1-95.2 54.1V202.1zM448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-42 176.3s0-59.6-7.6-88.2c-4.2-15.8-16.5-28.2-32.2-32.4C337.9 128 224 128 224 128s-113.9 0-142.2 7.7c-15.7 4.2-28 16.6-32.2 32.4-7.6 28.5-7.6 88.2-7.6 88.2s0 59.6 7.6 88.2c4.2 15.8 16.5 27.7 32.2 31.9C110.1 384 224 384 224 384s113.9 0 142.2-7.7c15.7-4.2 28-16.1 32.2-31.9 7.6-28.5 7.6-88.1 7.6-88.1z"}}
124]})(e)}function d(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"}}]})(e)}function f(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"}}]})(e)}function h(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"}}]})(e)}function p(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"}}]})(e)}function m(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"}}]})(e)}function v(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"}}]})(e)}function y(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function b(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"}}]})(e)}function w(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"}}]})(e)}function x(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"}}]})(e)}function _(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"}}]})(e)}function S(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"}}]})(e)}function C(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"}}]})(e)}function E(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"}}]})(e)}function k(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"}}]})(e)}function T(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"}}]})(e)}function A(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"}}]})(e)}function P(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"}}]})(e)}function I(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"}}]})(e)}function O(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"}}]})(e)}function M(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.
1246 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"}}]})(e)}function j(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"}}]})(e)}function D(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"}}]})(e)}function R(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"}}]})(e)}function N(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function U(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"}}]})(e)}function F(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"}}]})(e)}function L(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"}}]})(e)}},53854:function(e,t,r){"use strict";r.d(t,{DEl:function(){return a},MOd:function(){return s},UzH:function(){return l},fd$:function(){return u},ilJ:function(){return o},lyK:function(){return i}});var n=r(88357);function i(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}}]})(e)}function o(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 15.707a1 1 0 010-1.414L14.586 10l-4.293-4.293a1 1 0 111.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}},{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 15.707a1 1 0 010-1.414L8.586 10 4.293 5.707a1 1 0 011.414-1.414l5 5a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(e)}function a(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"}}]})(e)}function s(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}}]})(e)}function u(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}}]})(e)}function l(e){return(0,n.w_)({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"}}]})(e)}},88357:function(e,t,r){"use strict";r.d(t,{w_:function(){return u}});var n=r(67294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),a=function(){return(a=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}).apply(this,arguments)},s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function u(e){return function(t){return n.createElement(l,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,a({key:r},t.attr),e(t.child))})}(e.child))}}function l(e){var t=function(t){var r,i=e.attr,o=e.size,u=e.title,l=s(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",a({stroke:"currentColor",fill:"
124currentColor",strokeWidth:"0"},t.attr,i,l,{className:r,style:a(a({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),u&&n.createElement("title",null,u),e.children)};return void 0!==o?n.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},79352:function(e,t,r){"use strict";r.d(t,{KcA:function(){return d},LkP:function(){return a},UUF:function(){return o},cSq:function(){return i},eSQ:function(){return l},hwR:function(){return f},oji:function(){return c},qFC:function(){return s},tgW:function(){return u}});var n=r(88357);function i(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0049 22.0029C6.48204 22.0029 2.00488 17.5258 2.00488 12.0029C2.00488 6.48008 6.48204 2.00293 12.0049 2.00293C17.5277 2.00293 22.0049 6.48008 22.0049 12.0029C22.0049 17.5258 17.5277 22.0029 12.0049 22.0029ZM12.0049 20.0029C16.4232 20.0029 20.0049 16.4212 20.0049 12.0029C20.0049 7.58465 16.4232 4.00293 12.0049 4.00293C7.5866 4.00293 4.00488 7.58465 4.00488 12.0029C4.00488 16.4212 7.5866 20.0029 12.0049 20.0029ZM12.0049 7.05318L16.9546 12.0029L12.0049 16.9527L7.05514 12.0029L12.0049 7.05318ZM12.0049 9.88161L9.88356 12.0029L12.0049 14.1243L14.1262 12.0029L12.0049 9.88161Z"}}]})(e)}function o(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.0049 2.00293C17.214 2.00293 19.0049 3.79379 19.0049 6.00293C19.0049 6.73196 18.8098 7.41544 18.4691 8.00404L23.0049 8.00293V10.0029H21.0049V20.0029C21.0049 20.5552 20.5572 21.0029 20.0049 21.0029H4.00488C3.4526 21.0029 3.00488 20.5552 3.00488 20.0029V10.0029H1.00488V8.00293L5.54065 8.00404C5.19992 7.41544 5.00488 6.73196 5.00488 6.00293C5.00488 3.79379 6.79574 2.00293 9.00488 2.00293C10.2001 2.00293 11.2729 2.52714 12.0058 3.35819C12.7369 2.52714 13.8097 2.00293 15.0049 2.00293ZM11.0049 10.0029H5.00488V19.0029H11.0049V10.0029ZM19.0049 10.0029H13.0049V19.0029H19.0049V10.0029ZM9.00488 4.00293C7.90031 4.00293 7.00488 4.89836 7.00488 6.00293C7.00488 7.05729 7.82076 7.92109 8.85562 7.99744L9.00488 8.00293H11.0049V6.00293C11.0049 5.00129 10.2686 4.17162 9.30766 4.0257L9.15415 4.00842L9.00488 4.00293ZM15.0049 4.00293C13.9505 4.00293 13.0867 4.81881 13.0104 5.85367L13.0049 6.00293V8.00293H15.0049C16.0592 8.00293 16.923 7.18705 16.9994 6.15219L17.0049 6.00293C17.0049 4.89836 16.1095 4.00293 15.0049 4.00293Z"}}]})(e)}function a(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 23.7279L5.63604 17.364C2.12132 13.8492 2.12132 8.15076 5.63604 4.63604C9.15076 1.12132 14.8492 1.12132 18.364 4.63604C21.8787 8.15076 21.8787 13.8492 18.364 17.364L12 23.7279ZM16.9497 15.9497C19.6834 13.2161 19.6834 8.78392 16.9497 6.05025C14.2161 3.31658 9.78392 3.31658 7.05025 6.05025C4.31658 8.78392 4.31658 13.2161 7.05025 15.9497L12 20.8995L16.9497 15.9497ZM12 13C10.8954 13 10 12.1046 10 11C10 9.89543 10.8954 9 12 9C13.1046 9 14 9.89543 14 11C14 12.1046 13.1046 13 12 13Z"}}]})(e)}function s(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z"}}]})(e)}function u(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z"}}]})(e)}function l(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.0007 10.5865L16.9504 5.63672L18.3646 7.05093L13.4149 12.0007L18.3646 16.9504L16.9504 18.3646L12.0007 13.4149L7.05093 18.3646L5.63672 16.9504L10.5865 12.0007L5.63672 7.05093L7.05093 5.63672L12.0007 10.5865Z"}}]})(e)}function c(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"}}]})(e)}function d(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 4V6H20L15 13.5V22H9V13.5L4 6H3V4H21ZM6.4037 6L11 12.8944V20H13V12.8944L17.5963 6H6.4037Z"}}]})(e)}function f(e){return(0,n.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M14 14.252V16.3414C13.3744 16.1203 12.7013 16 12 16C8.68629 16 6 18.6863 6 22H4C4 17.5817 7.58172 14 12 14C12.6906 14 13.3608 14.0875 14 14.252ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11ZM1
1247.7929 19.9142L21.3284 16.3787L22.7426 17.7929L17.7929 22.7426L14.2574 19.2071L15.6716 17.7929L17.7929 19.9142Z"}}]})(e)}},12440:function(e,t,r){"use strict";r.d(t,{Jv:function(){return b},g4:function(){return v},s5:function(){return m}});var n=r(85893),i=r(67294),o=r(54335);let a="#4fa94d",s={"aria-busy":!0,role:"progressbar"},u=(0,o.ZP).div`
125  display: ${e=>e.$visible?"flex":"none"};
126`,l="http://www.w3.org/2000/svg",c=(0,o.F4)`
12712.5% {
128  stroke-dasharray: ${33.98873199462888}px, ${242.776657104492}px;
129  stroke-dashoffset: -${26.70543228149412}px;
130}
13143.75% {
132  stroke-dasharray: ${84.97182998657219}px, ${242.776657104492}px;
133  stroke-dashoffset: -${84.97182998657219}px;
134}
135100% {
136  stroke-dasharray: ${2.42776657104492}px, ${242.776657104492}px;
137  stroke-dashoffset: -${240.34889053344708}px;
138}
139`;(0,o.ZP).path`
140  stroke-dasharray: ${2.42776657104492}px, ${242.776657104492};
141  stroke-dashoffset: 0;
142  animation: ${c} ${1.6}s linear infinite;
143`;let d=[0,30,60,90,120,150,180,210,240,270,300,330],f=(0,o.F4)`
144to {
145   transform: rotate(360deg);
146 }
147`,h=(0,o.ZP).svg`
148  animation: ${f} 0.75s steps(12, end) infinite;
149  animation-duration: 0.75s;
150`,p=(0,o.ZP).polyline`
151  stroke-width: ${e=>e.width}px;
152  stroke-linecap: round;
153
154  &:nth-child(12n + 0) {
155    stroke-opacity: 0.08;
156  }
157
158  &:nth-child(12n + 1) {
159    stroke-opacity: 0.17;
160  }
161
162  &:nth-child(12n + 2) {
163    stroke-opacity: 0.25;
164  }
165
166  &:nth-child(12n + 3) {
167    stroke-opacity: 0.33;
168  }
169
170  &:nth-child(12n + 4) {
171    stroke-opacity: 0.42;
172  }
173
174  &:nth-child(12n + 5) {
175    stroke-opacity: 0.5;
176  }
177
178  &:nth-child(12n + 6) {
179    stroke-opacity: 0.58;
180  }
181
182  &:nth-child(12n + 7) {
183    stroke-opacity: 0.66;
184  }
185
186  &:nth-child(12n + 8) {
187    stroke-opacity: 0.75;
188  }
189
190  &:nth-child(12n + 9) {
191    stroke-opacity: 0.83;
192  }
193
194  &:nth-child(12n + 11) {
195    stroke-opacity: 0.92;
196  }
197`,m=({strokeColor:e=a,strokeWidth:t="5",animationDuration:r="0.75",width:o="96",visible:u=!0,ariaLabel:c="rotating-lines-loading"})=>{let f=(0,i.useCallback)(()=>d.map(e=>(0,n.jsx)(p,{points:"24,12 24,4",width:t,transform:`rotate(${e}, 24, 24)`},e)),[t]);return u?(0,n.jsx)(h,{xmlns:l,viewBox:"0 0 48 48",width:o,stroke:e,speed:r,"data-testid":"rotating-lines-svg","aria-label":c,...s,children:f()}):null},v=({height:e=80,width:t=80,radius:r=9,color:i=a,ariaLabel:o="three-dots-loading",wrapperStyle:c,wrapperClass:d,visible:f=!0})=>(0,n.jsx)(u,{style:c,$visible:f,className:d,"data-testid":"three-dots-loading","aria-label":o,...s,children:(0,n.jsxs)("svg",{width:t,height:e,viewBox:"0 0 120 30",xmlns:l,fill:i,"data-testid":"three-dots-svg",children:[(0,n.jsxs)("circle",{cx:"15",cy:"15",r:Number(r)+6,children:[(0,n.jsx)("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),(0,n.jsx)("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]}),(0,n.jsxs)("circle",{cx:"60",cy:"15",r:r,attributeName:"fill-opacity",from:"1",to:"0.3",children:[(0,n.jsx)("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),(0,n.jsx)("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})]}),(0,n.jsxs)("circle",{cx:"105",cy:"15",r:Number(r)+6,children:[(0,n.jsx)("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),(0,n.jsx)("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})]})]})}),y=(0,o.F4)`
198to {
199   stroke-dashoffset: 136;
200 }
201`;(0,o.ZP).polygon`
202  stroke-dasharray: 17;
203  animation: ${y} 2.5s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
204`,(0,o.ZP).svg`
205  transform-origin: 50% 65%;
206`;let b=({visible:e=!0,width:t="80",height:r="80",wrapperClass:i="",wrapperStyle:o={},ariaLabel:a="dna-loading"})=>e?(0,n.jsxs)("svg",{xmlns:l,width:t,height:r,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",className:i,style:o,"aria-label":a,"data-testid":"dna-svg",...s,children:[(0,n.jsxs)("circle",{cx:"6.451612903225806",cy:"60.6229",r:"3.41988",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;
2062.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"0s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})]}),(0,n.jsxs)("circle",{cx:"6.451612903225806",cy:"39.3771",r:"2.58012",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.5s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-0.5s"})]}),(0,n.jsxs)("circle",{cx:"16.129032258064512",cy:"68.1552",r:"3.17988",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-0.7s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-0.2s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-0.7s"})]}),(0,n.jsxs)("circle",{cx:"16.129032258064512",cy:"31.8448",r:"2.82012",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.7s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.2s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-0.7s"})]}),(0,n.jsxs)("circle",{cx:"25.806451612903224",cy:"69.3634",r:"2.93988",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-0.9s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-0.4s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-0.9s"})]}),(0,n.jsxs)("circle",{cx:"25.806451612903224",cy:"30.6366",r:"3.06012",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.9s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.4s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-0.9s"})]}),(0,n.jsxs)("circle",{cx:"35.48387096774193",cy:"65.3666",r:"2.69988",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.1s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;
20630.5",dur:"2s",repeatCount:"indefinite",begin:"-0.6s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-1.1s"})]}),(0,n.jsxs)("circle",{cx:"35.48387096774193",cy:"34.6334",r:"3.30012",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-2.1s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.6s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-1.1s"})]}),(0,n.jsxs)("circle",{cx:"45.16129032258064",cy:"53.8474",r:"2.45988",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.3s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-0.8s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-1.3s"})]}),(0,n.jsxs)("circle",{cx:"45.16129032258064",cy:"46.1526",r:"3.54012",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-2.3s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.8s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-1.3s"})]}),(0,n.jsxs)("circle",{cx:"54.838709677419345",cy:"39.3771",r:"2.58012",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.5s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-1.5s"})]}),(0,n.jsxs)("circle",{cx:"54.838709677419345",cy:"60.6229",r:"3.41988",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-2.5s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-2s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-1.5s"})]}),(0,n.jsxs)("circle",{cx:"64.51612903225805",cy:"31.8448",r:"2.82012",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.7s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.2s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}
206),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-1.7s"})]}),(0,n.jsxs)("circle",{cx:"64.51612903225805",cy:"68.1552",r:"3.17988",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-2.7s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-2.2s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-1.7s"})]}),(0,n.jsxs)("circle",{cx:"74.19354838709677",cy:"30.6366",r:"3.06012",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-1.9s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.4s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-1.9s"})]}),(0,n.jsxs)("circle",{cx:"74.19354838709677",cy:"69.3634",r:"2.93988",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-2.9s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-2.4s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-1.9s"})]}),(0,n.jsxs)("circle",{cx:"83.87096774193547",cy:"34.6334",r:"3.30012",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-2.1s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.6s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indefinite",begin:"-2.1s"})]}),(0,n.jsxs)("circle",{cx:"83.87096774193547",cy:"65.3666",r:"2.69988",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-3.1s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-2.6s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-2.1s"})]}),(0,n.jsxs)("circle",{cx:"93.54838709677418",cy:"46.1526",r:"3.54012",fill:"rgba(233, 12, 89, 0.5125806451612902)",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-2.3s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-1.8s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"rgba(233, 12, 89, 0.5125806451612902);#ff0033;rgba(233, 12, 89, 0.5125806451612902)",dur:"2s",repeatCount:"indef
206inite",begin:"-2.3s"})]}),(0,n.jsxs)("circle",{cx:"93.54838709677418",cy:"53.8474",r:"2.45988",fill:"#46dff0",children:[(0,n.jsx)("animate",{attributeName:"r",keyTimes:"0;0.5;1",values:"2.4000000000000004;3.5999999999999996;2.4000000000000004",dur:"2s",repeatCount:"indefinite",begin:"-3.3s"}),(0,n.jsx)("animate",{attributeName:"cy",keyTimes:"0;0.5;1",values:"30.5;69.5;30.5",dur:"2s",repeatCount:"indefinite",begin:"-2.8s",keySplines:"0.5 0 0.5 1;0.5 0 0.5 1",calcMode:"spline"}),(0,n.jsx)("animate",{attributeName:"fill",keyTimes:"0;0.5;1",values:"#46dff0;rgba(53, 58, 57, 0.1435483870967742);#46dff0",dur:"2s",repeatCount:"indefinite",begin:"-2.3s"})]})]}):null},45718:function(e,t,r){"use strict";var n,i=this&&this.__extends||(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)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;var o=r(72307),a=r(96192),s=r(67294),u=r(73935),l=function(e){function t(t){var r=e.call(this,t)||this;return r.canvas=s.createRef(),r}return i(t,e),t.utf16to8=function(e){var t,r,n="",i=e.length;for(t=0;t<i;t++)(r=e.charCodeAt(t))>=1&&r<=127?n+=e.charAt(t):r>2047?n+=String.fromCharCode(224|r>>12&15)+String.fromCharCode(128|r>>6&63)+String.fromCharCode(128|r>>0&63):n+=String.fromCharCode(192|r>>6&31)+String.fromCharCode(128|r>>0&63);return n},t.prototype.drawRoundedSquare=function(e,t,r,n,i,o,a,s){s.lineWidth=e,s.fillStyle=i,s.strokeStyle=i,r+=e/2,t+=e/2,n-=e,Array.isArray(o)||(o=[o,o,o,o]);var u=(o=o.map(function(e){return(e=Math.min(e,n/2))<0?0:e}))[0]||0,l=o[1]||0,c=o[2]||0,d=o[3]||0;s.beginPath(),s.moveTo(t+u,r),s.lineTo(t+n-l,r),l&&s.quadraticCurveTo(t+n,r,t+n,r+l),s.lineTo(t+n,r+n-c),c&&s.quadraticCurveTo(t+n,r+n,t+n-c,r+n),s.lineTo(t+d,r+n),d&&s.quadraticCurveTo(t,r+n,t,r+n-d),s.lineTo(t,r+u),u&&s.quadraticCurveTo(t,r,t+u,r),s.closePath(),s.stroke(),a&&s.fill()},t.prototype.drawPositioningPattern=function(e,t,r,n,i,o,a){void 0===a&&(a=[0,0,0,0]);var s,u,l,c,d=Math.ceil(t);"number"==typeof a||Array.isArray(a)?u=s=a:(s=a.outer||0,u=a.inner||0),"string"!=typeof o?(l=o.outer,c=o.inner):(l=o,c=o);var f=n*t+r,h=i*t+r,p=7*t;this.drawRoundedSquare(d,h,f,p,l,s,!1,e),p=3*t,f+=2*t,h+=2*t,this.drawRoundedSquare(d,h,f,p,c,u,!0,e)},t.prototype.isInPositioninZone=function(e,t,r){return r.some(function(r){return t>=r.row&&t<=r.row+7&&e>=r.col&&e<=r.col+7})},t.prototype.transformPixelLengthIntoNumberOfCells=function(e,t){return e/t},t.prototype.isCoordinateInImage=function(e,t,r,n,i,o,a,s){if(!s)return!1;var u=this.transformPixelLengthIntoNumberOfCells(i,a),l=this.transformPixelLengthIntoNumberOfCells(o,a),c=this.transformPixelLengthIntoNumberOfCells(r,a)-1,d=this.transformPixelLengthIntoNumberOfCells(n,a)-1;return t>=u-2&&t<=u+c+2&&e>=l-2&&e<=l+d+2},t.prototype.shouldComponentUpdate=function(e){return!o(this.props,e)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var e=this.props,r=e.value,n=e.ecLevel,i=e.enableCORS,o=e.bgColor,s=e.fgColor,l=e.logoImage,c=e.logoOpacity,d=e.logoOnLoad,f=e.removeQrCodeBehindLogo,h=e.qrStyle,p=e.eyeRadius,m=e.eyeColor,v=e.logoPaddingStyle,y=+this.props.size,b=+this.props.quietZone,w=this.props.logoWidth?+this.props.logoWidth:0,x=this.props.logoHeight?+this.props.logoHeight:0,_=this.props.logoPadding?+this.props.logoPadding:0,S=a(0,n);S.addData(t.utf16to8(r)),S.make();var C=u.findDOMNode(this.canvas.current),E=C.getContext("2d"),k=y+2*b,T=S.getModuleCount(),A=y/T,P=window.devicePixelRatio||1;C.height=C.width=k*P,E.scale(P,P),E.fillStyle=o,E.fillRect(0,0,k,k);var I=[{row:0,col:0},{row:0,col:T-7},{row:T-7,col:0}];if(E.strokeStyle=s,"dots"===h){E.fillStyle=s;for(var O=A/2,M=0;M<T;M++)for(var j=0;j<T;j++)S.isDark(M,j)&&!this.isInPositioninZone(M,j,I)&&(E.beginPath(),E.arc(Math.round(j*A)+O+b,Math.round(M*A)+O+b,O/100*75,0,2*Math.PI,!1),E.closePath(),E.fill())}else if("fluid"===h){for(var O=Math.ceil(A/2),M=0;M<T;M++)for(var j=0;j<T;j++)if(S.isDark(M,j)&&!this.isInPositioninZone(M,j,I)){var D=[!1,!1,
206!1,!1];M>0&&!S.isDark(M-1,j)&&j>0&&!S.isDark(M,j-1)&&(D[0]=!0),M>0&&!S.isDark(M-1,j)&&j<T-1&&!S.isDark(M,j+1)&&(D[1]=!0),M<T-1&&!S.isDark(M+1,j)&&j<T-1&&!S.isDark(M,j+1)&&(D[2]=!0),M<T-1&&!S.isDark(M+1,j)&&j>0&&!S.isDark(M,j-1)&&(D[3]=!0);var R=Math.ceil((j+1)*A)-Math.floor(j*A),N=Math.ceil((M+1)*A)-Math.floor(M*A);E.fillStyle=s,E.beginPath(),E.arc(Math.round(j*A)+O+b,Math.round(M*A)+O+b,O,0,2*Math.PI,!1),E.closePath(),E.fill(),D[0]||E.fillRect(Math.round(j*A)+b,Math.round(M*A)+b,R/2,N/2),D[1]||E.fillRect(Math.round(j*A)+b+Math.floor(R/2),Math.round(M*A)+b,R/2,N/2),D[2]||E.fillRect(Math.round(j*A)+b+Math.floor(R/2),Math.round(M*A)+b+Math.floor(N/2),R/2,N/2),D[3]||E.fillRect(Math.round(j*A)+b,Math.round(M*A)+b+Math.floor(N/2),R/2,N/2)}}else for(var M=0;M<T;M++)for(var j=0;j<T;j++)if(S.isDark(M,j)&&!this.isInPositioninZone(M,j,I)){E.fillStyle=s;var R=Math.ceil((j+1)*A)-Math.floor(j*A),N=Math.ceil((M+1)*A)-Math.floor(M*A);E.fillRect(Math.round(j*A)+b,Math.round(M*A)+b,R,N)}for(var U=0;U<3;U++){var F=I[U],M=F.row,j=F.col,L=p,B=void 0;Array.isArray(L)&&(L=L[U]),"number"==typeof L&&(L=[L,L,L,L]),B=m?Array.isArray(m)?m[U]:m:s,this.drawPositioningPattern(E,A,b,M,j,B,L)}if(l){var z=new Image;i&&(z.crossOrigin="Anonymous"),z.onload=function(){E.save();var e=w||.2*y,t=x||e,r=(y-e)/2,n=(y-t)/2;if(f||_){E.beginPath(),E.strokeStyle=o,E.fillStyle=o;var i=e+2*_,a=t+2*_,s=r+b-_,u=n+b-_;"circle"===v?(E.ellipse(s+i/2,u+a/2,i/2,a/2,0,0,2*Math.PI),E.stroke(),E.fill()):E.fillRect(s,u,i,a)}E.globalAlpha=c,E.drawImage(z,r+b,n+b,e,t),E.restore(),d&&d()},z.src=l}},t.prototype.render=function(){var e,t=+this.props.size+2*+this.props.quietZone;return s.createElement("canvas",{id:null!==(e=this.props.id)&&void 0!==e?e:"react-qrcode-logo",height:t,width:t,style:{height:t+"px",width:t+"px"},ref:this.canvas})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(s.Component);t.QRCode=l},96774: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),u=0;u<o.length;u++){var l=o[u];if(!s(l))return!1;var c=e[l],d=t[l];if(!1===(i=r?r.call(n,c,d,l):void 0)||void 0===i&&c!==d)return!1}return!0}},21223:function(e,t,r){window.eve=r(61530);var n,i,o,a,s,u,l,c,d,f,h,p,m,v,y,b,w,x,_=(n="undefined"==typeof eve?function(){}:eve,o={},a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,16,new Date().getTime()),!0},s=Array.isArray||function(e){return e instanceof Array||"[object Array]"==Object.prototype.toString.call(e)},u=0,l="M"+(+new Date).toString(36),c=function(e,t,r,n){if(s(e)){res=[];for(var i=0,o=e.length;i<o;i++)res[i]=c(e[i],t,r[i],n);return res}var a=(r-e)/(n-t);return function(r){return e+a*(r-t)}},d=Date.now||function(){return+new Date},f=function(e){var t=this;if(null==e)return t.s;var r=t.s-e;t.b+=t.dur*r,t.B+=t.dur*r,t.s=e},h=function(e){var t=this;if(null==e)return t.spd;t.spd=e},p=function(e){var t=this;if(null==e)return t.dur;t.s=t.s*e/t.dur,t.dur=e},m=function(){delete o[this.id],this.update(),n("mina.stop."+this.id,this)},v=function(){var e=this;e.pdif||(delete o[e.id],e.update(),e.pdif=e.get()-e.b)},y=function(){var e=this;e.pdif&&(e.b=e.get()-e.pdif,delete e.pdif,o[e.id]=e,w())},b=function(){var e;if(s(this.start)){e=[];for(var t=0,r=this.start.length;t<r;t++)e[t]=+this.start[t]+(this.end[t]-this.start[t])*this.easing(this.s)}else e=+this.start+(this.end-this.start)*this.easing(this.s);this.set(e)},w=function(e){if(!e){i||(i=a(w));return}var t=0;for(var r in o)if(o.hasOwnProperty(r)){var s=o[r],u=s.get();t++,s.s=(u-s.b)/(s.dur/s.spd),s.s>=1&&(delete o[r],s.s=1,t--,function(e){setTimeout(function(){n("mina.finish."+e.id,e)})}(s)),s.update()}i=!!t&&a(w)},(x=function(e,t,r,n,i,a,s){var c={id:l+(u++).toString(36),start:e,end:t,b:r,s:0,dur:n-r,spd:1,get:i,set:a,easing:s||x.linear,status:f,speed:h,duration:p,stop:m,pause:v,resume:y,update:b};o[c.id]=c;var d,_=0;for(d in o)if(o.hasOwnProperty(d)&&2==++_)break;return 1==_&&w(),c}).time=d,x.getById=function(e){return o[e]||null},x.linear=function(e){return e},x.easeout=function(e){return Math.pow(e,1.7)},x.easein=function(e){return Math.pow(e,.48)},x.easeinout=function(e){if(1==e)return 1;if(0==e)return 0;var t=.48-e/1.04,r=Math.sqrt(.1734+t*t),n=r-t,i=-r-t,o=Math.pow(Math.abs(n),1/3)*(n<0?-1:1)+Math.pow(Math.abs(i),1/3)*(i<0?-1:1)+.5;return(1-o)*3*o*o+o*o*o},x.backin=function(e){return 1==e?1:e*e*(2.70158*e-1.70158)},x.backout=function(e){return 0==e?0:(e-=1)*e*(2.70158*e+1.70158)+1},x.elastic=function(e){return!!e==e?e:Math.pow(2,-10*e)*Math.sin((e-.075)*(2*Math.PI)/.3)+1},x.bounce=function(e){var t;return e<.36363636363636365?t=7.5625*e*e:e<.7272727272727273?(e-=.5454545454545454,t=7.5625*e*e+.75):e<.9090909090909091?(e-=.8181818181818182,t=7.5625*e*e+.9375):(e-=.9545454545454546,t=7.5625*e*e+.984375),t},window.mina=x,x),S=function(e){function t(e,r){if(e){if(e.nodeType)return V(e);if(I(e,"array")&&t.set)return t.set.apply(t,e);if(e instanceof H)return e;if(null==r)try{return e=o.doc.querySelector(String(e)),V(e)}catch(e){return null}}return e=null==e?"100%":e,r=null==r?"100%":r,new $(e,r)}t.version="0.5.1",t.toString=function(){return"Snap v"+this.version},t._={};var r,n,i,o={win:e.window,doc:e.window.document};t._.glob=o;var a="hasOwnProperty",s=String,u=parseFloat,l=parseInt,c=Math,d=c.max,f=c.min,h=c.abs,p=(c.pow,c.PI),m=(c.round,Object.prototype.toString),v=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,y=(t._.
206separator=/[,\s]+/,/[\s]*,[\s]*/),b={hs:1,rg:1},w=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/ig,x=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/ig,_=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/ig,S=0,C="S"+(+new Date).toString(36),E=function(e){return(e&&e.type?e.type:"")+C+(S++).toString(36)},k="http://www.w3.org/1999/xlink",T="http://www.w3.org/2000/svg",A={};function P(e,t){if(t){if("#text"==e&&(e=o.doc.createTextNode(t.text||t["#text"]||"")),"#comment"==e&&(e=o.doc.createComment(t.text||t["#text"]||"")),"string"==typeof e&&(e=P(e)),"string"==typeof t)return 1==e.nodeType?"xlink:"==t.substring(0,6)?e.getAttributeNS(k,t.substring(6)):"xml:"==t.substring(0,4)?e.getAttributeNS(T,t.substring(4)):e.getAttribute(t):"text"==t?e.nodeValue:null;if(1==e.nodeType){for(var r in t)if(t[a](r)){var n=s(t[r]);n?"xlink:"==r.substring(0,6)?e.setAttributeNS(k,r.substring(6),n):"xml:"==r.substring(0,4)?e.setAttributeNS(T,r.substring(4),n):e.setAttribute(r,n):e.removeAttribute(r)}}else"text"in t&&(e.nodeValue=t.text)}else e=o.doc.createElementNS(T,e);return e}function I(e,t){return"finite"==(t=s.prototype.toLowerCase.call(t))?isFinite(e):!!("array"==t&&(e instanceof Array||Array.isArray&&Array.isArray(e)))||"null"==t&&null===e||t==typeof e&&null!==e||"object"==t&&e===Object(e)||m.call(e).slice(8,-1).toLowerCase()==t}function O(e,t,r){function n(){var i=Array.prototype.slice.call(arguments,0),o=i.join("␀"),s=n.cache=n.cache||{},u=n.count=n.count||[];return s[a](o)?(!function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return e.push(e.splice(r,1)[0])}(u,o),r?r(s[o]):s[o]):(u.length>=1e3&&delete s[u.shift()],u.push(o),s[o]=e.apply(t,i),r?r(s[o]):s[o])}return n}function M(e){return e%360*p/180}t.url=function(e){return"url('#"+e+"')"},t._.$=P,t._.id=E,t.format=(r=/\{([^\}]+)\}/g,n=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,i=function(e,t,r){var i=r;return t.replace(n,function(e,t,r,n,o){t=t||n,i&&(t in i&&(i=i[t]),"function"==typeof i&&o&&(i=i()))}),i=(null==i||i==r?e:i)+""},function(e,t){return s(e).replace(r,function(e,r){return i(e,r,t)})}),t._.clone=function e(t){if("function"==typeof t||Object(t)!==t)return t;var r=new t.constructor;for(var n in t)t[a](n)&&(r[n]=e(t[n]));return r},t._.cacher=O,t.rad=M,t.deg=function(e){return 180*e/p%360},t.sin=function(e){return c.sin(t.rad(e))},t.tan=function(e){return c.tan(t.rad(e))},t.cos=function(e){return c.cos(t.rad(e))},t.asin=function(e){return t.deg(c.asin(e))},t.acos=function(e){return t.deg(c.acos(e))},t.atan=function(e){return t.deg(c.atan(e))},t.atan2=function(e){return t.deg(c.atan2(e))},t.angle=function e(t,r,n,i,o,a){if(null!=o)return e(t,r,o,a)-e(n,i,o,a);var s=t-n,u=r-i;return s||u?(180+180*c.atan2(-u,-s)/p+360)%360:0},t.len=function(e,r,n,i){return Math.sqrt(t.len2(e,r,n,i))},t.len2=function(e,t,r,n){return(e-r)*(e-r)+(t-n)*(t-n)},t.closestPoint=function(e,t,r){function n(e){var n=e.x-t,i=e.y-r;return n*n+i*i}for(var i,o,a,s,u,l,c,d,f,h,p=e.node,m=p.getTotalLength(),v=m/p.pathSegList.numberOfItems*.125,y=1/0,b=0;b<=m;b+=v)(h=n(f=p.getPointAtLength(b)))<y&&(c=f,d=b,y=h);for(v*=.5;v>.5;)(a=d-v)>=0&&(u=n(i=p.getPointAtLength(a)))<y?(c=i,d=a,y=u):(s=d+v)<=m&&(l=n(o=p.getPointAtLength(s)))<y?(c=o,d=s,y=l):v*=.5;return{x:c.x,y:c.y,length:d,distance:Math.sqrt(y)}},t.is=I,t.snapTo=function(e,t,r){if(r=I(r,"finite")?r:10,I(e,"array")){for(var n=e.length;n--;)if(h(e[n]-t)<=r)return e[n]}else{var i=t%(e=+e);if(i<r)return t-i;if(i>e-r)return t-i+e}return t},t.getRGB=O(function(e){if(!e||(e=s(e)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:N};if("none"==e)return{r:-1,g:-1,b:-1,hex:"none",toString:N};if(b[a](e.toLowerCase().substring(0,2))||"#"==e.charAt()||(e=j(e)),!e)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:N};var r,n,i,o,h,p,m=e.match(v);return m?(m[2]&&(i=l(m[2].substring(5),16),n=l(m[2].substring(3,5),16),r=l(m[2].substring(1,3),16)),m[3]&&(i=l((h=m[3].charAt(3))+h,16),n=l((h=m[3].charAt(2))+h,16),r=l((h=m[3].charAt(1))+h,16)),m[4]&&(r=u((p=m[4].split(y))[0]),"%"==p[0].slice(-1)&&(r*=2.55),n=u(p[1]),"%"==p[1].slice(-1)&&(n*=2.55),i=u(p[2]),"%"==p[2].slice(-1)&&(i*=2.55),"rgba"==m[1].toLowerCase().slice(0,4)&&(o=u(p[3])),p[3]&&"%"==p[3].slice(-1)&&(o/=100)),m[5])?(r=u((p=m[5].split(y))[0]),"%"==p[0].slice(-1)&&(r/=100),n=u(p[1]),"%"==p[1].slice(-1)&&(n/=100),i=u(p[2]),"%"==p[2].slice(-1)&&(i/=100),("deg"==p[0].slice(-3)||"\xb0"==p[0].slice(-1))&&(r/=360),"hsba"==m[1].toLowerCase().slice(0,4)&&(o=u(p[3])),p[3]&&"%"==p[3].slice(-1)&&(o/=100),t.hsb2rgb(r,n,i,o)):m[6]?(r=u((p=m[6].split(y))[0]),"%"==p[0].slice(-1)&&(r/=100),n=u(p[1]),"%"==p[1].slice(-1)&&(n/=100),i=u(p[2]),"%"==p[2].slice(-1)&&(i/=100),("deg"==p[0].slice(-3)||"\xb0"==p[0].slice(-1))&&(r/=360),"hsla"==m[1].toLowerCase().slice(0,4)&&(o=u(p[3])),p[3]&&"%"==p[3].slice(-1)&&(o/=100),t.hsl2rgb(r,n,i,o)):(r=f(c.round(r),255),n=f(c.round(n),255),i=f(c.round(i),255),o=f(d(o,0),1),(m={r:r,g:n,b:i,toString:N}).hex="#"+(16777216|i|n<<8|r<<16).toString(16).slice(1),m.opacity=I(o,"finite")?o:1,m):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:N}},t),t.hsb=O(function(e,r,n){return t.hsb2rgb(e,r,n).hex}),t.hsl=O(function(e,r,n){return t.hsl2rgb(e,r,n).hex}),t.rgb=O(function(e,t,r,n){if(I(n,"finite")){var i=c.round;return"rgba("+[i(e),i(t),i(r),+n.toFixed(2)]+")"}return"#"+(16777216|r|t<<8|e<<16).toString(16).slice(1)});var j=function(e){var t=o.doc.getElementsByTagName("head")[0]||o.doc.getElementsByTagName("svg")[0],r="rgb(255, 0, 0)";return(j=O(function(e){if("red"==e.toLowerCase())return r;t.style.color=r,t.style.color=e;var n=o.doc.defaultView.getComputedStyle(t,"").getPropertyValue("color");return n==r?null:n}))(e)},D=function(){return"hsb("+[this.h,this.s,this.b]+")"},R=function(){return"hsl("+[this.h,this.s,this.l]+")"},N=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},U=function(e,r,n){if(null==r&&I(e,"object")&&"r"in e&&"g"in e&&"b"in e&&(n=e.b,r=e.g,e=e.r),null==r&&I(e,string)){var i=t.getRGB(e);e=i.r,r=i.g,n=i.b}return(e>1||r>1||n>1)&&(e/=255,r/=255,n/=255),[e,r,n]},F=function(e,r,n,i){var o={r:e=c.round(255*e),g:r=c.round(255*r),b:n=c.round(255*n),opacity:I(i,"finite")?i:1,hex:t.rgb(e,r,n),toString:N};return I(i,"finite")&&(o.opacity=i),o};t.color=function(e){var r;return I(e,"object")&&"h"in e&&"s"in e&&"b"in e?(r=t.hsb2rgb(e),e.r=r.r,e.g=r.g,e.b=r.b,e.opacity=1,e.hex=r.hex):I(e,"object")&&"h"in e&&"s"in e&&"l"in e?(r=t.hsl2rgb(e),e.r=r.r,e.g=r.g,e.b=r.b,e.opacity=1,e.hex=r.hex):(I(e,"string")&&(e=t.getRGB(e)),I(e,"object")&&"r"in e&&"g"in e&&"b"in e&&!("error"in e)?(r=t.rgb2hsl(e),e.h=r.h,e.s=r.s,e.l=r.l,r=t.rgb2hsb(e),e.v=r.b):((e={hex:"none"}).r=e.g=e.b=e.h=e.s=e.v=e.l=-1,e.error=1)),e.toString=N,e},t.hsb2rgb=function(e,t,r,n){var i,o,a,s,u;return I(e,"object")&&"h"in e&&"s"in e&&"b"in e&&(r=e.b,t=e.s,n=e.o,e=e.h),e*=360,e=e%360/60,s=(u=r*t)*(1-h(e%2-1)),F((o=a=r-u)+[u,s,0,0,s,u][e=~~e],o+=[s,u,u,s,0,0][e],a+=[0,0,s,u,u,s][e],n)},t.hsl2rgb=function(e,t,r,n){var i,o,a,s,u;return I(e,"object")&&"h"in e&&"s"in e&&"l"in e&&(r=e.l,t=e.s,e=e.h),(e>1||t>1||r>1)&&(e/=360,t/=100,r/=100),e*=360,e=e%360/60,s=(u=2*t*(r<.5?r:1-r))*(1-h(e%2-1)),F((o=a=r-u/2)+[u,s,0,0,s,u][e=~~e],o+=[s,u,u,s,0,0][e],a+=[0,0,s,u,u,s][e],n)},t.rgb2hsb=function(e,t,r){var n,i,o;return e=(r=U(e,t,r))[0],t=r[1],r=r[2],{h:((0==(o=(i=d(e,t,r))-f(e,t,r))?null:i==e?(t-r)/o:i==t?(r-e)/o+2:(e-t)/o+4)+360)%6*60/360,s:0==o?0:o/i,b:i,toString:D}},t.rgb2hsl=function(e,t,r){var n,i,o,a,s;return e=(r=U(e,t,r))[0],t=r[1],r=r[2],n=((n=0==(s=(o=d(e,t,r))-(a=f(e,t,r)))?null:o==e?(t-r)/s:o==t?(r-e)/s+2:(e-t)/s+4)+360)%6*60/360,i=(o+a)/2,{h:n,s:0==s?0:i<.5?s/(2*i):s/(2-2*i),l:i,toString:R}},t.parsePathString=function(e){if(!e)return null;var r=t.path(e);if(r.arr)return t.path.clone(r.arr);var n={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},i=[];return I(e,"array")&&I(e[0],"array")&&(i=t.path.clone(e)),i.length||s(e).replace(w,function(e,t,r){var o=[],a=t.toLowerCase();if(r.replace(_,function(e,t){t&&o.push(+t)}),"m"==a&&o.length>2&&(i.push([t].concat(o.splice(0,2))),a="l",t="m"==t?"l":"L"),"o"==a&&1==o.length&&i.push([t,o[0]]),"r"==a)i.push([t].concat(o));else for(;o.length>=n[a]&&(i.push([t].concat(o.splice(0,n[a]))),n[a]););}),i.toString=t.path.toString,r.arr=t.path.clone(i),i};var L=t.parseTransformString=function(e){if(!e)return null;var r=[];return I(e,"array")&&I(e[0],"array")&&(r=t.path.clone(e)),r.length||s(e).replace(x,function(e,t,n){var i=[];t.toLowerCase(),n.replace(_,function(e,t){t&&i.push(+t)}),r.push([t].concat(i))}),r.toString=t.path.toString,r};
206function B(e){return e.node.ownerSVGElement&&V(e.node.ownerSVGElement)||t.select("svg")}function z(e){I(e,"array")||(e=Array.prototype.slice.call(arguments,0));for(var t=0,r=0,n=this.node;this[t];)delete this[t++];for(t=0;t<e.length;t++)"set"==e[t].type?e[t].forEach(function(e){n.appendChild(e.node)}):n.appendChild(e[t].node);var i=n.childNodes;for(t=0;t<i.length;t++)this[r++]=V(i[t]);return this}function H(e){if(e.snap in A)return A[e.snap];try{t=e.ownerSVGElement}catch(e){}this.node=e,t&&(this.paper=new $(t)),this.type=e.tagName||e.nodeName;var t,r=this.id=E(this);if(this.anims={},this._={transform:[]},e.snap=r,A[r]=this,"g"==this.type&&(this.add=z),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var n in $.prototype)$.prototype[a](n)&&(this[n]=$.prototype[n])}function q(e){this.node=e}function W(e,t){var r=P(e);return t.appendChild(r),V(r)}function $(e,t){var r,n,i,s=$.prototype;if(e&&e.tagName&&"svg"==e.tagName.toLowerCase()){if(e.snap in A)return A[e.snap];var u=e.ownerDocument;for(var l in r=new H(e),n=e.getElementsByTagName("desc")[0],i=e.getElementsByTagName("defs")[0],n||((n=P("desc")).appendChild(u.createTextNode("Created with Snap")),r.node.appendChild(n)),i||(i=P("defs"),r.node.appendChild(i)),r.defs=i,s)s[a](l)&&(r[l]=s[l]);r.paper=r.root=r}else r=W("svg",o.doc.body),P(r.node,{height:t,version:1.1,width:e,xmlns:T});return r}function V(e){return!e||e instanceof H||e instanceof q?e:e.tagName&&"svg"==e.tagName.toLowerCase()?new $(e):e.tagName&&"object"==e.tagName.toLowerCase()&&"image/svg+xml"==e.type?new $(e.contentDocument.getElementsByTagName("svg")[0]):new H(e)}t._.svgTransform2string=function(e){var t=[];return e=e.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(e,r,n){return n=n.split(/\s*,\s*|\s+/),"rotate"==r&&1==n.length&&n.push(0,0),"scale"==r&&(n.length>2?n=n.slice(0,2):2==n.length&&n.push(0,0),1==n.length&&n.push(n[0],0,0)),"skewX"==r?t.push(["m",1,0,c.tan(M(n[0])),1,0,0]):"skewY"==r?t.push(["m",1,c.tan(M(n[0])),0,1,0,0]):t.push([r.charAt(0)].concat(n)),e}),t},t._.rgTransform=/^[a-z][\s]*-?\.?\d/i,t._.transform2matrix=function(e,r){var n=L(e),i=new t.Matrix;if(n)for(var o=0,a=n.length;o<a;o++){var u,l,c,d,f,h=n[o],p=h.length,m=s(h[0]).toLowerCase(),v=h[0]!=m,y=v?i.invert():0;"t"==m&&2==p?i.translate(h[1],0):"t"==m&&3==p?v?(u=y.x(0,0),l=y.y(0,0),c=y.x(h[1],h[2]),d=y.y(h[1],h[2]),i.translate(c-u,d-l)):i.translate(h[1],h[2]):"r"==m?2==p?(f=f||r,i.rotate(h[1],f.x+f.width/2,f.y+f.height/2)):4==p&&(v?(c=y.x(h[2],h[3]),d=y.y(h[2],h[3]),i.rotate(h[1],c,d)):i.rotate(h[1],h[2],h[3])):"s"==m?2==p||3==p?(f=f||r,i.scale(h[1],h[p-1],f.x+f.width/2,f.y+f.height/2)):4==p?v?(c=y.x(h[2],h[3]),d=y.y(h[2],h[3]),i.scale(h[1],h[1],c,d)):i.scale(h[1],h[1],h[2],h[3]):5==p&&(v?(c=y.x(h[3],h[4]),d=y.y(h[3],h[4]),i.scale(h[1],h[2],c,d)):i.scale(h[1],h[2],h[3],h[4])):"m"==m&&7==p&&i.add(h[1],h[2],h[3],h[4],h[5],h[6])}return i},t._unit2px=function(e,t,r){var n=B(e).node,i={},o=n.querySelector(".svg---mgr");function a(e){if(null==e)return"";if(e==+e)return e;P(o,{width:e});try{return o.getBBox().width}catch(e){return 0}}function s(e){if(null==e)return"";if(e==+e)return e;P(o,{height:e});try{return o.getBBox().height}catch(e){return 0}}function u(n,o){null==t?i[n]=o(e.attr(n)||0):n==t&&(i=o(null==r?e.attr(n)||0:r))}switch(o||(o=P("rect"),P(o,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),n.appendChild(o)),e.type){case"rect":u("rx",a),u("ry",s);case"image":u("width",a),u("height",s);case"text":u("x",a),u("y",s);break;case"circle":u("cx",a),u("cy",s),u("r",a);break;case"ellipse":u("cx",a),u("cy",s),u("rx",a),u("ry",s);break;case"line":u("x1",a),u("x2",a),u("y1",s),u("y2",s);break;case"marker":u("refX",a),u("markerWidth",a),u("refY",s),u("markerHeight",s);break;case"radialGradient":u("fx",a),u("fy",s);break;case"tspan":u("dx",a),u("dy",s);break;default:u(t,a)}return n.removeChild(o),i},o.doc.contains||o.doc.compareDocumentPosition,t._.getSomeDefs=function(e){var r=e.node.ownerSVGElement&&V(e.node.ownerSVGElement)||e.node.parentNode&&V(e.node.parentNode)||t.select("svg")||t(0,0),n=r.select("defs"),i=null!=n&&n.node;
206return i||(i=W("defs",r.node).node),i},t._.getSomeSVG=B,t.select=function(e){return e=s(e).replace(/([^\\]):/g,"$1\\:"),V(o.doc.querySelector(e))},t.selectAll=function(e){for(var r=o.doc.querySelectorAll(e),n=(t.set||Array)(),i=0;i<r.length;i++)n.push(V(r[i]));return n},setInterval(function(){for(var e in A)if(A[a](e)){var t=A[e],r=t.node;("svg"!=t.type&&!r.ownerSVGElement||"svg"==t.type&&(!r.parentNode||"ownerSVGElement"in r.parentNode&&!r.ownerSVGElement))&&delete A[e]}},1e4),H.prototype.attr=function(e,t){var r=this.node;if(!e){if(1!=r.nodeType)return{text:r.nodeValue};for(var n=r.attributes,i={},o=0,s=n.length;o<s;o++)i[n[o].nodeName]=n[o].nodeValue;return i}if(I(e,"string")){if(!(arguments.length>1))return eve("snap.util.getattr."+e,this).firstDefined();var u={};u[e]=t,e=u}for(var l in e)e[a](l)&&eve("snap.util.attr."+l,this,e[l]);return this},t.parse=function(e){var t=o.doc.createDocumentFragment(),r=!0,n=o.doc.createElement("div");if((e=s(e)).match(/^\s*<\s*svg(?:\s|>)/)||(e="<svg>"+e+"</svg>",r=!1),n.innerHTML=e,e=n.getElementsByTagName("svg")[0]){if(r)t=e;else for(;e.firstChild;)t.appendChild(e.firstChild)}return new q(t)},t.fragment=function(){for(var e=Array.prototype.slice.call(arguments,0),r=o.doc.createDocumentFragment(),n=0,i=e.length;n<i;n++){var a=e[n];a.node&&a.node.nodeType&&r.appendChild(a.node),a.nodeType&&r.appendChild(a),"string"==typeof a&&r.appendChild(t.parse(a).node)}return new q(r)},t._.make=W,t._.wrap=V,$.prototype.el=function(e,t){var r=W(e,this.node);return t&&r.attr(t),r},H.prototype.children=function(){for(var e=[],r=this.node.childNodes,n=0,i=r.length;n<i;n++)e[n]=t(r[n]);return e},H.prototype.toJSON=function(){var e=[];return function e(t,r){for(var n=0,i=t.length;n<i;n++){var o={type:t[n].type,attr:t[n].attr()},a=t[n].children();r.push(o),a.length&&e(a,o.childNodes=[])}}([this],e),e[0]},eve.on("snap.util.getattr",function(){var e=eve.nt(),t=(e=e.substring(e.lastIndexOf(".")+1)).replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});return Y[a](t)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(t):P(this.node,e)});var Y={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};eve.on("snap.util.attr",function(e){var t=eve.nt(),r={};r[t=t.substring(t.lastIndexOf(".")+1)]=e;var n=t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()}),i=t.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()});Y[a](i)?this.node.style[n]=null==e?"":e:P(this.node,r)}),$.prototype,t.ajax=function(e,t,r,n){var i=new XMLHttpRequest,o=E();if(i){if(I(t,"function"))n=r,r=t,t=null;else if(I(t,"object")){var a=[];for(var s in t)t.hasOwnProperty(s)&&a.push(encodeURIComponent(s)+"="+encodeURIComponent(t[s]));t=a.join("&")}return i.open(t?"POST":"GET",e,!0),t&&(i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-type","application/x-www-form-urlencoded")),r&&(eve.once("snap.ajax."+o+".0",r),eve.once("snap.ajax."+o+".200",r),eve.once("snap.ajax."+o+".304",r)),i.onreadystatechange=function(){4==i.readyState&&eve("snap.ajax."+o+"."+i.status,n,i)},4==i.readyState||i.send(t),i}},t.load=function(e,r,n){t.ajax(e,function(e){var i=t.parse(e.responseText);n?r.call(n,i):r(i)})};var Z=function(e){var t=e.getBoundingClientRect(),r=e.ownerDocument,n=r.body,i=r.documentElement,o=i.clientTop||n.clientTop||0,a=i.clientLeft||n.clientLeft||0;return{y:t.top+(g.win.pageYOffset||i.scrollTop||n.scrollTop)-o,x:t.left+(g.win.pageXOffset||i.scrollLeft||n.scrollLeft)-a}};return t.getElementByPoint=function(e,t){this.canvas;var r=o.doc.elementFromPoint(e,t);if(o.win.opera&&"svg"==r.tagName){var n=Z(r),i=r.createSVGRect();i.x=e-n.x,i.y=t-n.y,i.width=i.height=1;var a=r.getIntersectionList(i,null);a.length&&(r=a[a.length-1])}return r?V(r):null},t.plugin=function(e){e(t,H,$,o,q)},o.win.Snap=t,t}(window||this);S.plugin(function(e,t,r,n,i){var o=t.prototype,a=e.is,s=String,u=e._unit2px,l=e._.$,c=e._.make,d=e._.getSomeDefs,f=e._.wrap;o.getBBox=function(t){if("tspan"==this.type)return e._.box(this.node.getClientRects().item(0));if(!e.Matrix||!e.path)return this.node.getBBox();
206var r=this,n=new e.Matrix;if(r.removed)return e._.box();for(;"use"==r.type;)if(t||(n=n.add(r.transform().localMatrix.translate(r.attr("x")||0,r.attr("y")||0))),r.original)r=r.original;else{var i=r.attr("xlink:href");r=r.original=r.node.ownerDocument.getElementById(i.substring(i.indexOf("#")+1))}var o=r._,a=e.path.get[r.type]||e.path.get.deflt;try{if(t)return o.bboxwt=a?e.path.getBBox(r.realPath=a(r)):e._.box(r.node.getBBox()),e._.box(o.bboxwt);return r.realPath=a(r),r.matrix=r.transform().localMatrix,o.bbox=e.path.getBBox(e.path.map(r.realPath,n.add(r.matrix))),e._.box(o.bbox)}catch(t){return e._.box()}};var h=function(){return this.string};function p(t,r){if(null==r){var n=!0;if(!(r="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform")))return new e.Matrix;r=e._.svgTransform2string(r)}else a(r=e._.rgTransform.test(r)?s(r).replace(/\.{3}|\u2026/g,t._.transform||""):e._.svgTransform2string(r),"array")&&(r=e.path?e.path.toString.call(r):s(r)),t._.transform=r;var i=e._.transform2matrix(r,t.getBBox(1));if(n)return i;t.matrix=i}o.transform=function(t){var r=this._;if(null==t){for(var n,i=this,o=new e.Matrix(this.node.getCTM()),a=p(this),u=[a],c=new e.Matr
206ix,d=a.toTransformString(),f=s(a)==s(this.matrix)?s(r.transform):d;"svg"!=i.type&&(i=i.parent());)u.push(p(i));for(n=u.length;n--;)c.add(u[n]);return{string:f,globalMatrix:o,totalMatrix:c,localMatrix:a,diffMatrix:o.clone().add(a.invert()),global:o.toTransformString(),total:c.toTransformString(),local:d,toString:h}}return t instanceof e.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):p(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?l(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?l(this.node,{patternTransform:this.matrix}):l(this.node,{transform:this.matrix})),this},o.parent=function(){return f(this.node.parentNode)},o.append=o.add=function(e){if(e){if("set"==e.type){var t=this;return e.forEach(function(e){t.add(e)}),this}e=f(e),this.node.appendChild(e.node),e.paper=this.paper}return this},o.appendTo=function(e){return e&&(e=f(e)).append(this),this},o.prepend=function(e){if(e){if("set"==e.type){var t,r=this;return e.forEach(function(e){t?t.after(e):r.prepend(e),t=e}),this}var n=(e=f(e)).parent();this.node.insertBefore(e.node,this.node.firstChild),this.add&&this.add(),e.paper=this.paper,this.parent()&&this.parent().add(),n&&n.add()}return this},o.prependTo=function(e){return(e=f(e)).prepend(this),this},o.before=function(e){if("set"==e.type){var t=this;return e.forEach(function(e){var r=e.parent();t.node.parentNode.insertBefore(e.node,t.node),r&&r.add()}),this.parent().add(),this}var r=(e=f(e)).parent();return this.node.parentNode.insertBefore(e.node,this.node),this.parent()&&this.parent().add(),r&&r.add(),e.paper=this.paper,this},o.after=function(e){var t=(e=f(e)).parent();return this.node.nextSibling?this.node.parentNode.insertBefore(e.node,this.node.nextSibling):this.node.parentNode.appendChild(e.node),this.parent()&&this.parent().add(),t&&t.add(),e.paper=this.paper,this},o.insertBefore=function(e){e=f(e);var t=this.parent();return e.node.parentNode.insertBefore(this.node,e.node),this.paper=e.paper,t&&t.add(),e.parent()&&e.parent().add(),this},o.insertAfter=function(e){e=f(e);var t=this.parent();return e.node.parentNode.insertBefore(this.node,e.node.nextSibling),this.paper=e.paper,t&&t.add(),e.parent()&&e.parent().add(),this},o.remove=function(){var e=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,e&&e.add(),this},o.select=function(e){return f(this.node.querySelector(e))},o.selectAll=function(t){for(var r=this.node.querySelectorAll(t),n=(e.set||Array)(),i=0;i<r.length;i++)n.push(f(r[i]));return n},o.asPX=function(e,t){return null==t&&(t=this.attr(e)),+u(this,e,t)},o.use=function(){var e,t=this.node.id;return t||(t=this.id,l(this.node,{id:t})),l((e="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?c(this.type,this.node.parentNode):c("use",this.node.parentNode)).node,{"xlink:href":"#"+t}),e.original=this,e},o.clone=function(){var t=f(this.node.cloneNode(!0));return l(t.node,"id")&&l(t.node,{id:t.id}),function(t){var r,n=t.selectAll("*"),i=/^\s*url\(("|'|)(.*)\1\)\s*$/,o=[],a={};function s(t,r){var n=l(t.node,r);(n=(n=n&&n.match(i))&&n[2])&&"#"==n.charAt()&&(n=n.substring(1))&&(a[n]=(a[n]||[]).concat(function(n){var i={};i[r]=e.url(n),l(t.node,i)}))}for(var u=0,c=n.length;u<c;u++){s(r=n[u],"fill"),s(r,"stroke"),s(r,"filter"),s(r,"mask"),s(r,"clip-path"),function(e){var t=l(e.node,"xlink:href");t&&"#"==t.charAt()&&(t=t.substring(1))&&(a[t]=(a[t]||[]).concat(function(t){e.attr("xlink:href","#"+t)}))}(r);var d=l(r.node,"id");d&&(l(r.node,{id:r.id}),o.push({old:d,id:r.id}))}for(u=0,c=o.length;u<c;u++){var f=a[o[u].old];if(f)for(var h=0,p=f.length;h<p;h++)f[h](o[u].id)}}(t),t.insertAfter(this),t},o.toDefs=function(){return d(this).appendChild(this.node),this},o.pattern=o.toPattern=function(e,t,r,n){var i=c("pattern",d(this));return null==e&&(e=this.getBBox()),a(e,"object")&&"x"in e&&(t=e.y,r=e.width,n=e.height,e=e.x),l(i.node,{x:e,y:t,width:r,height:n,patternUnits:"userSpaceOnUse",id:i.id,viewBox:[e,t,r,n].join(" ")}),i.node.appendChild(this.node),i},o.marker=function(e,t,r,n,i,o){var s=c("marker",d(this));return null==e&&(e=this.getBBox()),a(e,"object")&&"x"in e&&(t=e.y,r=e.width,n=e.he
206ight,i=e.refX||e.cx,o=e.refY||e.cy,e=e.x),l(s.node,{viewBox:[e,t,r,n].join(" "),markerWidth:r,markerHeight:n,orient:"auto",refX:i||0,refY:o||0,id:s.id}),s.node.appendChild(this.node),s};var m={};function v(e){return function(){var t=e?"<"+this.type:"",r=this.node.attributes,n=this.node.childNodes;if(e)for(var i=0,o=r.length;i<o;i++)t+=" "+r[i].name+'="'+r[i].value.replace(/"/g,'\\"')+'"';if(n.length){for(e&&(t+=">"),i=0,o=n.length;i<o;i++)3==n[i].nodeType?t+=n[i].nodeValue:1==n[i].nodeType&&(t+=f(n[i]).toString());e&&(t+="</"+this.type+">")}else e&&(t+="/>");return t}}o.data=function(t,r){var n=m[this.id]=m[this.id]||{};if(0==arguments.length)return eve("snap.data.get."+this.id,this,n,null),n;if(1==arguments.length){if(e.is(t,"object")){for(var i in t)t.hasOwnProperty(i)&&this.data(i,t[i]);return this}return eve("snap.data.get."+this.id,this,n[t],t),n[t]}return n[t]=r,eve("snap.data.set."+this.id,this,r,t),this},o.removeData=function(e){return null==e?m[this.id]={}:m[this.id]&&delete m[this.id][e],this},o.outerSVG=o.toString=v(1),o.innerSVG=v(),o.toDataURL=function(){if(window&&window.btoa){var t=this.getBBox();return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+t.x.toFixed(3),y:+t.y.toFixed(3),width:+t.width.toFixed(3),height:+t.height.toFixed(3),contents:this.outerSVG()}))))}},i.prototype.select=o.select,i.prototype.selectAll=o.selectAll}),S.plugin(function(e,t,r,n,i){var o=Object.prototype.toString,a=String,s=Math;function u(e,t,r,n,i,a){if(null==t&&"[object SVGMatrix]"==o.call(e)){this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.e=e.e,this.f=e.f;return}null!=e?(this.a=+e,this.b=+t,this.c=+r,this.d=+n,this.e=+i,this.f=+a):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}(function(t){function r(e){return e[0]*e[0]+e[1]*e[1]}function n(e){var t=s.sqrt(r(e));e[0]&&(e[0]/=t),e[1]&&(e[1]/=t)}t.add=function(e,t,r,n,i,o){if(e&&e instanceof u)return this.add(e.a,e.b,e.c,e.d,e.e,e.f);var a=e*this.a+t*this.c,s=e*this.b+t*this.d;return this.e+=i*this.a+o*this.c,this.f+=i*this.b+o*this.d,this.c=r*this.a+n*this.c,this.d=r*this.b+n*this.d,this.a=a,this.b=s,this},u.prototype.multLeft=function(e,t,r,n,i,o){if(e&&e instanceof u)return this.multLeft(e.a,e.b,e.c,e.d,e.e,e.f);var a=e*this.a+r*this.b,s=e*this.c+r*this.d,l=e*this.e+r*this.f+i;return this.b=t*this.a+n*this.b,this.d=t*this.c+n*this.d,this.f=t*this.e+n*this.f+o,this.a=a,this.c=s,this.e=l,this},t.invert=function(){var e=this.a*this.d-this.b*this.c;return new u(this.d/e,-this.b/e,-this.c/e,this.a/e,(this.c*this.f-this.d*this.e)/e,(this.b*this.e-this.a*this.f)/e)},t.clone=function(){return new u(this.a,this.b,this.c,this.d,this.e,this.f)},t.translate=function(e,t){return this.e+=e*this.a+t*this.c,this.f+=e*this.b+t*this.d,this},t.scale=function(e,t,r,n){return null==t&&(t=e),(r||n)&&this.translate(r,n),this.a*=e,this.b*=e,this.c*=t,this.d*=t,(r||n)&&this.translate(-r,-n),this},t.rotate=function(t,r,n){t=e.rad(t),r=r||0,n=n||0;var i=+s.cos(t).toFixed(9),o=+s.sin(t).toFixed(9);return this.add(i,o,-o,i,r,n),this.add(1,0,0,1,-r,-n)},t.skewX=function(e){return this.skew(e,0)},t.skewY=function(e){return this.skew(0,e)},t.skew=function(t,r){t=t||0,r=r||0,t=e.rad(t),r=e.rad(r);var n=s.tan(t).toFixed(9),i=s.tan(r).toFixed(9);return this.add(1,i,n,1,0,0)},t.x=function(e,t){return e*this.a+t*this.c+this.e},t.y=function(e,t){return e*this.b+t*this.d+this.f},t.get=function(e){return+this[a.fromCharCode(97+e)].toFixed(4)},t.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},t.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},t.determinant=function(){return this.a*this.d-this.b*this.c},t.split=function(){var t={};t.dx=this.e,t.dy=this.f;var i=[[this.a,this.b],[this.c,this.d]];t.scalex=s.sqrt(r(i[0])),n(i[0]),t.shear=i[0][0]*i[1][0]+i[0][1]*i[1][1],i[1]=[i[1][0]-i[0][0]*t.shear,i[1][1]-i[0][1]*t.shear],t.scaley=s.sqrt(r(i[1])),n(i[1]),t.shear/=t.scaley,0>this.determinant()&&(t.scalex=-t.scalex);var o=i[0][1],a=i[1][1];return a<0?(t.rotate=e.deg(s.acos(a)),o<0&&(t.rotate=360-t.rotate)):t.rotate=e.deg(s.asin(o)),t.isSimple=!+t.shear.toFixed(9)&&(t.scalex.toFixed(9)==t.scaley.toFixed(9)||!t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},t.toTransformString=function(e){var t=e||this.split();return+t.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(t.scalex=+t.scalex.toFixed(4),t.scaley=+t.scaley.toFixed(4),t.rotate=+t.rotate.toFixed(4),(t.dx||t.dy?"t"+[+t.dx.toFixed(4),+t.dy.toFixed(4)]:"")+(t.rotate?"r"+[+t.rotate.toFixed(4),0,0]:"")+(1!=t.scalex||1!=t.scaley?"s"+[t.scalex,t.scaley,0,0]:""))}})(u.prototype),e.Matrix=u,e.matrix=function(e,t,r,n,i,o){return new u(e,t,r,n,i,o)}}),S.plugin(function(e,t,r,n,i){var o,a=e._.make,s=e._.wrap,u=e.is,l=e._.getSomeDefs,c=/^url\((['"]?)([^)]+)\1\)$/,d=e._.$,f=e.url,h=String,p=e._.separator;function m(r){return function(n){if(eve.stop(),n instanceof i&&1==n.node.childNodes.length&&("radialGradient"==n.node.firstChild.tagName||"linearGradient"==n.node.firstChild.tagName||"pattern"==n.node.firstChild.tagName)&&(n=n.node.firstChild,l(this).appendChild(n),n=s(n)),n instanceof t){if("radialGradient"==n.type||"linearGradient"==n.type||"pattern"==n.type){n.node.id||d(n.node,{id:n.id});var o=f(n.node.id)}else o=n.attr(r)}else if((o=e.color(n)).error){var a=e(l(this).ownerSVGElement).gradient(n);a?(a.node.id||d(a.node,{id:a.id}),o=f(a.node.id)):o=n}else o=h(o);var u={};u[r]=o,d(this.node,u),this.node.style[r]=""}}e.deurl=function(e){var t=String(e).match(c);return t?t[2]:e},eve.on("snap.util.attr.mask",function(e){if(e instanceof t||e instanceof i){if(eve.stop(),e instanceof i&&1==e.node.childNodes.length&&(e=e.node.firstChild,l(this).appendChild(e),e=s(e)),"mask"==e.type)var r=e;else(r=a("mask",l(this))).node.appendChild(e.node);r.node.id||d(r.node,{id:r.id}),d(this.node,{mask:f(r.id)})}}),o=function(e){if(e instanceof t||e instanceof i){eve.stop();for(var r,n=e.node;n;){if("clipPath"===n.nodeName){r=new t(n);break}if("svg"===n.nodeName){r=void 0;break}n=n.parentNode}!r&&((r=a("clipPath",l(this))).node.appendChild(e.node),r.node.id||d(r.node,{id:r.id})),d(this.node,{"clip-path":f(r.node.id||r.id)})}},eve.on("snap.util.attr.clip",o),eve.on("snap.util.attr.clip-path",o),eve.on("snap.util.attr.clipPath",o),eve.on("snap.util.attr.fill",m("fill")),eve.on("snap.util.attr.stroke",m("stroke"));var v=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function y(e){eve.stop(),e==+e&&(e+="px"),this.node.style.fontSize=e}function b(){return eve.stop(),this.node.style.fontSize}eve.on("snap.util.grad.parse",function(e){var t=(e=h(e)).match(v);if(!t)return null;var r=t[1],n=t[2],i=t[3];1==(n=n.split(/\s*,\s*/).map(function(e){return+e==e?+e:e})).length&&0==n[0]&&(n=[]);var o=(i=(i=i.split("-")).map(function(e){var t={color:(e=e.split(":"))[0]};return e[1]&&(t.offset=parseFloat(e[1])),t})).length,a=0,s=0;function u(e,t){for(var r=(t-a)/(e-s),n=s;n<e;n++)i[n].offset=+(+a+r*(n-s)).toFixed(2);s=e,a=t}o--;for(var l=0;l<o;l++)"offset"in i[l]&&u(l,i[l].offset);return i[o].offset=i[o].offset||100,u(o,i[o].offset),{type:r,params:n,stops:i}}),eve.on("snap.util.attr.d",function(t){eve.stop(),u(t,"array")&&u(t[0],"array")&&(t=e.path.toString.call(t)),(t=h(t)).match(/[ruo]/i)&&(t=e.path.toAbsolute(t)),d(this.node,{d:t})})(-1),eve.on("snap.util.attr.#text",function(e){eve.stop(),e=h(e);for(var t=n.doc.createTextNode(e);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(t)})(-1),eve.on("snap.util.attr.path",function(e){eve.stop(),this.attr({d:e})})(-1),eve.on("snap.util.attr.class",function(e){eve.stop(),this.node.className.baseVal=e})(-1),eve.on("snap.util.attr.viewBox",function(e){var t;t=u(e,"object")&&"x"in e?[e.x,e.y,e.width,e.height].join(" "):u(e,"array")?e.join(" "):e,d(this.node,{viewBox:t}),eve.stop()})(-1),eve.on("snap.util.attr.transform",function(e){this.transform(e),eve.stop()})(-1),eve.on("snap.util.attr.r",function(e){"rect"==this.type&&(eve.stop(),d(this.node,{rx:e,ry:e}))})(-1),eve.on("snap.util.attr.textpath",function(e){if(eve.stop(),"text"==this.type){var r,n,i;if(!e&&this.textPath){for(n=this.textPath;n.node.firstChild;)this.node.appendChild(n.node.firstChild);n.remove(),delete this.textPath;return}if(u(e,"string")){var o=l(this),a=s(o.parentNode).path(e);o.appendChild(a.node),r=a.id,a.attr({id:r})}else(e=s(e))instanceof t&&!(r=e.attr("id"))&&(r=e.id,e.attr({id:r}));if(r){if(n=this.textPath,i=this.node,n)n.attr({"xlink:href":"#"+r});else{for(n=d("textPath",{"xlink:href":"#"+r});i.firstChild;)n.appendChild(i.firstChild);i.appendChild(n),this.textPath=s(n)}}}})(-1),eve.on("snap.util.attr.text",function(e){if("text"==this.type){for(var t=this.node,r=function(e){var t=d("tspan");if(u(e,"array"))for(var i=0;i<e.length;i++)t.appendChild(r(e[i]));else t.appendChild(n.doc.createTextNode(e));return t.normalize&&t.normalize(),t};t.firstChild;)t.removeChild(t.firstChild);for(var i=r(e);i.firstChild;)t.appendChild(i.firstChild)}eve.stop()})(-1),eve.on("snap.util.attr.fontSize",y)(-1),eve.on("snap.util.attr.font-size",y)(-1),eve.on("snap.util.getattr.transform",function(){return eve.stop(),this.transform()})(-1),eve.on("snap.util.getattr.textpath",function(){return eve.stop(),this.textPath})(-1),function(){function t(t){return function(){eve.stop();var r=n.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+t);return"none"==r?r:e(n.doc.getElementById(r.match(c)[1]))}}function r(e){return function(t){eve.stop();var r="marker"+e.charAt(0).toUpperCase()+e.substring(1);if(""==t||!t){this.node.style[r]="none";return}if("marker"==t.type){var n=t.node.id;n||d(t.node,{id:t.id}),this.node.style[r]=f(n);return}}}eve.on("snap.util.getattr.marker-end",t("end"))(-1),eve.on("snap.util.getattr.markerEnd",t("end"))(-1),eve.on("snap.util.getattr.marker-start",t("start"))(-1),eve.on("snap.util.getattr.markerStart",t("start"))(-1),eve.on("snap.util.getattr.marker-mid",t("mid"))(-1),eve.on("snap.util.getattr.markerMid",t("mid"))(-1),eve.on("snap.util.attr.marker-end",r("end"))(-1),eve.on("snap.util.attr.markerEnd",r("end"))(-1),eve.on("snap.util.attr.marker-start",r("start"))(-1),eve.on("snap.util.attr.markerStart",r("start"))(-1),eve.on("snap.util.attr.marker-mid",r("mid"))(-1),eve.on("snap.util.attr.markerMid",r("mid"))(-1)}(),eve.on("snap.util.getattr.r",function(){if("rect"==this.type&&d(this.node,"rx")==d(this.node,"ry"))return eve.stop(),d(this.node,"rx")})(-1),eve.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){eve.stop();var e=function e(t){for(var r=[],n=t.childNodes,i=0,o=n.length;i<o;i++){var a=n[i];3==a.nodeType&&r.push(a.nodeValue),"tspan"==a.tagName&&(1==a.childNodes.length&&3==a.firstChild.nodeType?r.push(a.firstChild.nodeValue):r.push(e(a)))}return r}(this.node);return 1==e.length?e[0]:e}})(-1),eve.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),eve.on("snap.util.getattr.fill",function(t){if(!t){eve.stop();var r=eve("snap.util.getattr.fill",this,!0).firstDefined();return e(e.deurl(r))||r}})(-1),eve.on("snap.util.getattr.stroke",function(t){if(!t){eve.stop();var r=eve("snap.util.getattr.stroke",this,!0).firstDefined();return e(e.deurl(r))||r}})(-1),eve.on("snap.util.getattr.viewBox",function(){eve.stop();var t=d(this.node,"viewBox");return t?(t=t.split(p),e._.box(+t[0],+t[1],+t[2],+t[3])):void 0})(-1),eve.on("snap.util.getattr.points",function(){var e=d(this.node,"points");return(eve.stop(),e)?e.split(p):void 0})(-1),eve.on("snap.util.getattr.path",function(){var e=d(this.node,"d");return eve.stop(),e})(-1),eve.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),eve.on("snap.util.getattr.fontSize",b)(-1),eve.on("snap.util.getattr.font-size",b)(-1)}),S.plugin(function(e,t,r,n,i){var o=/\S+/g,a=String,s=t.prototype;s.addClass=function(e){var t,r,n,i=a(e||"").match(o)||[],s=this.node,u=s.className.baseVal,l=u.match(o)||[];if(i.length){for(t=0;r=i[t++];)~l.indexOf(r)||l.push(r);u!=(n=l.join(" "))&&(s.className.baseVal=n)}return this},s.removeClass=function(e){var t,r,n,i,s=a(e||"").match(o)||[],u=this.node,l=u.className.baseVal,c=l.match(o)||[];if(c.length){for(t=0;n=s[t++];)~(r=c.indexOf(n))&&c.splice(r,1);l!=(i=c.join(" "))&&(u.className.baseVal=i)}return this},s.hasClass=function(e){return!!~(this.node.className.baseVal.match(o)||[]).indexOf(e)},s.toggleClass=function(e,t){if(null!=t)return t?this.addClass(e):this.removeClass(e);var r,n,i,a,s=(e||"").match(o)||[],u=this.node,l=u.className.baseVal,c=l.match(o)||[];for(r=0;i=s[r++];)~(n=c.indexOf(i))?c.splice(n,1):c.push(i);return l!=(a=c.join(" "))&&(u.className.baseVal=a),this}}),S.plugin(function(e,t,r,n,i){var o={"+":function(e,t){return e+t},"-":function(e,t){return e-t},"/":function(e,t){return e/t},"*":function(e,t){return e*t}},a=String,s=/[a-z]+$/i,u=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;function l(e){return e}eve.on("snap.util.attr",function(e){var t=a(e).match(u);if(t){var r=eve.nt(),n=r.substring(r.lastIndexOf(".")+1),i=this.attr(n),l={};eve.stop();var c=t[3]||"",d=i.match(s),f=o[t[1]];if(d&&d==c?e=f(parseFloat(i),+t[2]):(i=this.asPX(n),e=f(this.asPX(n),this.asPX(n,t[2]+c))),isNaN(i)||isNaN(e))return;l[n]=e,this.attr(l)}})(-10),eve.on("snap.util.equal",function(e,t){var r=a(this.attr(e)||""),n=a(t).match(u);if(n){eve.stop();var i=n[3]||"",c=r.match(s),d=o[n[1]];return c&&c==i?{from:parseFloat(r),to:d(parseFloat(r),+n[2]),f:function(e){return+e.toFixed(3)+c}}:{from:r=this.asPX(e),to:d(r,this.asPX(e,n[2]+i)),f:l}}})(-10)}),S.plugin(function(e,t,r,n,i){var o=r.prototype,a=e.is;o.rect=function(e,t,r,n,i,o){var s;return null==o&&(o=i),a(e,"object")&&"[object Object]"==e?s=e:null!=e&&(s={x:e,y:t,width:r,height:n},null!=i&&(s.rx=i,s.ry=o)),this.el("rect",s)},o.circle=function(e,t,r){var n;return a(e,"object")&&"[object Object]"==e?n=e:null!=e&&(n={cx:e,cy:t,r:r}),this.el("circle",n)};var s=function(){function e(){this.parentNode.removeChild(this)}return function(t,r){var i=n.doc.createElement("img"),o=n.doc.body;i.style.cssText="position:absolute;
206left:-9999em;top:-9999em",i.onload=function(){r.call(i),i.onload=i.onerror=null,o.removeChild(i)},i.onerror=e,o.appendChild(i),i.src=t}}();o.image=function(t,r,n,i,o){var u=this.el("image");if(a(t,"object")&&"src"in t)u.attr(t);else if(null!=t){var l={"xlink:href":t,preserveAspectRatio:"none"};null!=r&&null!=n&&(l.x=r,l.y=n),null!=i&&null!=o?(l.width=i,l.height=o):s(t,function(){e._.$(u.node,{width:this.offsetWidth,height:this.offsetHeight})}),e._.$(u.node,l)}return u},o.ellipse=function(e,t,r,n){var i;return a(e,"object")&&"[object Object]"==e?i=e:null!=e&&(i={cx:e,cy:t,rx:r,ry:n}),this.el("ellipse",i)},o.path=function(e){var t;return a(e,"object")&&!a(e,"array")?t=e:e&&(t={d:e}),this.el("path",t)},o.group=o.g=function(e){var t=this.el("g");return 1==arguments.length&&e&&!e.type?t.attr(e):arguments.length&&t.add(Array.prototype.slice.call(arguments,0)),t},o.svg=function(e,t,r,n,i,o,s,u){var l={};return a(e,"object")&&null==t?l=e:(null!=e&&(l.x=e),null!=t&&(l.y=t),null!=r&&(l.width=r),null!=n&&(l.height=n),null!=i&&null!=o&&null!=s&&null!=u&&(l.viewBox=[i,o,s,u])),this.el("svg",l)},o.mask=function(e){var t=this.el("mask");return 1==arguments.length&&e&&!e.type?t.attr(e):arguments.length&&t.add(Array.prototype.slice.call(arguments,0)),t},o.ptrn=function(e,t,r,n,i,o,s,u){if(a(e,"object"))var l=e;else l={patternUnits:"userSpaceOnUse"},e&&(l.x=e),t&&(l.y=t),null!=r&&(l.width=r),null!=n&&(l.height=n),null!=i&&null!=o&&null!=s&&null!=u?l.viewBox=[i,o,s,u]:l.viewBox=[e||0,t||0,r||0,n||0];return this.el("pattern",l)},o.use=function(r){return null!=r?(r instanceof t&&(r.attr("id")||r.attr({id:e._.id(r)}),r=r.attr("id")),"#"==String(r).charAt()&&(r=r.substring(1)),this.el("use",{"xlink:href":"#"+r})):t.prototype.use.call(this)},o.symbol=function(e,t,r,n){var i={};return null!=e&&null!=t&&null!=r&&null!=n&&(i.viewBox=[e,t,r,n]),this.el("symbol",i)},o.text=function(e,t,r){var n={};return a(e,"object")?n=e:null!=e&&(n={x:e,y:t,text:r||""}),this.el("text",n)},o.line=function(e,t,r,n){var i={};return a(e,"object")?i=e:null!=e&&(i={x1:e,x2:r,y1:t,y2:n}),this.el("line",i)},o.polyline=function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments,0));var t={};return a(e,"object")&&!a(e,"array")?t=e:null!=e&&(t={points:e}),this.el("polyline",t)},o.polygon=function(e){arguments.length>1&&(e=Array.prototype.slice.call(arguments,0));var t={};return a(e,"object")&&!a(e,"array")?t=e:null!=e&&(t={points:e}),this.el("polygon",t)},function(){var t=e._.$;function r(){return this.selectAll("stop")}function n(r,n){var i=t("stop"),o={offset:+n+"%"};r=e.color(r),o["stop-color"]=r.hex,r.opacity<1&&(o["stop-opacity"]=r.opacity),t(i,o);for(var a,s=this.stops(),u=0;u<s.length;u++)if(parseFloat(s[u].attr("offset"))>n){this.node.insertBefore(i,s[u].node),a=!0;break}return a||this.node.appendChild(i),this}function i(){if("linearGradient"==this.type){var r=t(this.node,"x1")||0,n=t(this.node,"x2")||1,i=t(this.node,"y1")||0,o=t(this.node,"y2")||0;return e._.box(r,i,math.abs(n-r),math.abs(o-i))}var a=this.node.cx||.5,s=this.node.cy||.5,u=this.node.r||0;return e._.box(a-u,s-u,2*u,2*u)}function a(t){var r=t,n=this.stops();if("string"==typeof t&&(r=eve("snap.util.grad.parse",null,"l(0,0,0,1)"+t).firstDefined().stops),e.is(r,"array")){for(var i=0;i<n.length;i++)if(r[i]){var o=e.color(r[i].color),a={offset:r[i].offset+"%"};a["stop-color"]=o.hex,o.opacity<1&&(a["stop-opacity"]=o.opacity),n[i].attr(a)}else n[i].remove();for(i=n.length;i<r.length;i++)this.addStop(r[i].color,r[i].offset);return this}}function s(o,s,u,l,c){var d=e._.make("linearGradient",o);return d.stops=r,d.addStop=n,d.getBBox=i,d.setStops=a,null!=s&&t(d.node,{x1:s,y1:u,x2:l,y2:c}),d}function u(o,a,s,u,l,c){var d=e._.make("radialGradient",o);return d.stops=r,d.addStop=n,d.getBBox=i,null!=a&&t(d.node,{cx:a,cy:s,r:u}),null!=l&&null!=c&&t(d.node,{fx:l,fy:c}),d}o.gradient=function(e){return function(e,r){var n,i=eve("snap.util.grad.parse",null,r).firstDefined();if(!i)return null;i.params.unshift(e),n="l"==i.type.toLowerCase()?s.apply(0,i.params):u.apply(0,i.params),i.type!=i.type.toLowerCase()&&t(n.node,{gradientUnits:"userSpaceOnUse"});for(var o=i.stops,a=o.length,l=0;l<a;l++){var c=o[l];
206n.addStop(c.color,c.offset)}return n}(this.defs,e)},o.gradientLinear=function(e,t,r,n){return s(this.defs,e,t,r,n)},o.gradientRadial=function(e,t,r,n,i){return u(this.defs,e,t,r,n,i)},o.toString=function(){var t,r=this.node.ownerDocument,n=r.createDocumentFragment(),i=r.createElement("div"),o=this.node.cloneNode(!0);return n.appendChild(i),i.appendChild(o),e._.$(o,{xmlns:"http://www.w3.org/2000/svg"}),t=i.innerHTML,n.removeChild(n.firstChild),t},o.toDataURL=function(){if(window&&window.btoa)return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this)))},o.clear=function(){for(var e,t=this.node.firstChild;t;)e=t.nextSibling,"defs"!=t.tagName?t.parentNode.removeChild(t):o.clear.call({node:t}),t=e}}()}),S.plugin(function(e,t,r,n){var i=t.prototype,o=e.is,a=e._.clone,s=/,?([a-z]),?/gi,u=parseFloat,l=Math,c=l.PI,d=l.min,f=l.max,h=l.pow,p=l.abs;function m(e){var t=m.ps=m.ps||{};return t[e]?t[e].sleep=100:t[e]={sleep:100},setTimeout(function(){for(var r in t)t.hasOwnProperty(r)&&r!=e&&(t[r].sleep--,t[r].sleep||delete t[r])}),t[e]}function v(e,t,r,n){return null==e&&(e=t=r=n=0),null==t&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:l.min(r,n)/2,r2:l.max(r,n)/2,r0:l.sqrt(r*r+n*n)/2,path:j(e,t,r,n),vb:[e,t,r,n].join(" ")}}function y(){return this.join(",").replace(s,"$1")}function b(e){var t=a(e);return t.toString=y,t}function w(e,t,r,n,i,o,a,s,u){return null==u?I(e,t,r,n,i,o,a,s):E(e,t,r,n,i,o,a,s,function(e,t,r,n,i,o,a,s,u){if(!(u<0||I(e,t,r,n,i,o,a,s)<u)){var l,c=.5,d=.5;for(l=I(e,t,r,n,i,o,a,s,.5);p(l-u)>.01;)c/=2,d+=(l<u?1:-1)*c,l=I(e,t,r,n,i,o,a,s,d);return d}}(e,t,r,n,i,o,a,s,u))}function x(r,n){function i(e){return+(+e).toFixed(3)}return e._.cacher(function(e,o,a){e instanceof t&&(e=e.attr("d")),e=L(e);for(var s,u,l,c,d,f="",h={},p=0,m=0,v=e.length;m<v;m++){if("M"==(l=e[m])[0])s=+l[1],u=+l[2];else{if(p+(c=w(s,u,l[1],l[2],l[3],l[4],l[5],l[6]))>o){if(n&&!h.start){if(f+=["C"+i((d=w(s,u,l[1],l[2],l[3],l[4],l[5],l[6],o-p)).start.x),i(d.start.y),i(d.m.x),i(d.m.y),i(d.x),i(d.y)],a)return f;h.start=f,f=["M"+i(d.x),i(d.y)+"C"+i(d.n.x),i(d.n.y),i(d.end.x),i(d.end.y),i(l[5]),i(l[6])].join(),p+=c,s=+l[5],u=+l[6];continue}if(!r&&!n)return w(s,u,l[1],l[2],l[3],l[4],l[5],l[6],o-p)}p+=c,s=+l[5],u=+l[6]}f+=l.shift()+l}return h.end=f,d=r?p:n?h:E(s,u,l[0],l[1],l[2],l[3],l[4],l[5],1)},null,e._.clone)}var _=x(1),S=x(),C=x(0,1);function E(e,t,r,n,i,o,a,s,u){var d=1-u,f=h(d,3),p=h(d,2),m=u*u,v=m*u,y=e+2*u*(r-e)+m*(i-2*r+e),b=t+2*u*(n-t)+m*(o-2*n+t),w=r+2*u*(i-r)+m*(a-2*i+r),x=n+2*u*(o-n)+m*(s-2*o+n),_=90-180*l.atan2(y-w,b-x)/c;return{x:f*e+3*p*u*r+3*d*u*u*i+v*a,y:f*t+3*p*u*n+3*d*u*u*o+v*s,m:{x:y,y:b},n:{x:w,y:x},start:{x:d*e+u*r,y:d*t+u*n},end:{x:d*i+u*a,y:d*o+u*s},alpha:_}}function k(t,r,n,i,o,a,s,u){e.is(t,"array")||(t=[t,r,n,i,o,a,s,u]);var l=F.apply(null,t);return v(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)}function T(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height}function A(e,t){return e=v(e),T(t=v(t),e.x,e.y)||T(t,e.x2,e.y)||T(t,e.x,e.y2)||T(t,e.x2,e.y2)||T(e,t.x,t.y)||T(e,t.x2,t.y)||T(e,t.x,t.y2)||T(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)}function P(e,t,r,n,i){return e*(e*(-3*t+9*r-9*n+3*i)+6*t-12*r+6*n)-3*t+3*r}function I(e,t,r,n,i,o,a,s,u){null==u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,d=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var m=c*d[p]+c,v=P(m,e,r,i,a),y=P(m,t,n,o,s),b=v*v+y*y;h+=f[p]*l.sqrt(b)}return c*h}function O(e,t,r){e=L(e),t=L(t);for(var n,i,o,a,s,u,l,c,h,m,v=r?0:[],y=0,b=e.length;y<b;y++){var w=e[y];if("M"==w[0])n=s=w[1],i=u=w[2];else{"C"==w[0]?(n=(h=[n,i].concat(w.slice(1)))[6],i=h[7]):(h=[n,i,n,i,s,u,s,u],n=s,i=u);for(var x=0,_=t.length;x<_;x++){var S=t[x];if("M"==S[0])o=l=S[1],a=c=S[2];else{"C"==S[0]?(o=(m=[o,a].concat(S.slice(1)))[6],a=m[7]):(m=[o,a,o,a,l,c,l,c],o=l,a=c);var C=function(e,t,r){if(!A(k(e),k(t)))return r?0:[];for(var n=I.apply(0,e),i=I.apply(0,t),o=~~(n/8),a=~~(i/8),s=[],u=[],l={},c=r?0:[],h=0;h<o+1;h++){var m=E.apply(0,e.concat(h/o));
206s.push({x:m.x,y:m.y,t:h/o})}for(h=0;h<a+1;h++)m=E.apply(0,t.concat(h/a)),u.push({x:m.x,y:m.y,t:h/a});for(h=0;h<o;h++)for(var v=0;v<a;v++){var y=s[h],b=s[h+1],w=u[v],x=u[v+1],_=.001>p(b.x-y.x)?"y":"x",S=.001>p(x.x-w.x)?"y":"x",C=function(e,t,r,n,i,o,a,s){if(!(f(e,r)<d(i,a)||d(e,r)>f(i,a)||f(t,n)<d(o,s)||d(t,n)>f(o,s))){var u=(e-r)*(o-s)-(t-n)*(i-a);if(u){var l=((e*n-t*r)*(i-a)-(e-r)*(i*s-o*a))/u,c=((e*n-t*r)*(o-s)-(t-n)*(i*s-o*a))/u,h=+l.toFixed(2),p=+c.toFixed(2);if(!(h<+d(e,r).toFixed(2)||h>+f(e,r).toFixed(2)||h<+d(i,a).toFixed(2)||h>+f(i,a).toFixed(2)||p<+d(t,n).toFixed(2)||p>+f(t,n).toFixed(2)||p<+d(o,s).toFixed(2)||p>+f(o,s).toFixed(2)))return{x:l,y:c}}}}(y.x,y.y,b.x,b.y,w.x,w.y,x.x,x.y);if(C){if(l[C.x.toFixed(4)]==C.y.toFixed(4))continue;l[C.x.toFixed(4)]=C.y.toFixed(4);var T=y.t+p((C[_]-y[_])/(b[_]-y[_]))*(b.t-y.t),P=w.t+p((C[S]-w[S])/(x[S]-w[S]))*(x.t-w.t);T>=0&&T<=1&&P>=0&&P<=1&&(r?c++:c.push({x:C.x,y:C.y,t1:T,t2:P}))}}return c}(h,m,r);if(r)v+=C;else{for(var T=0,P=C.length;T<P;T++)C[T].segment1=y,C[T].segment2=x,C[T].bez1=h,C[T].bez2=m;v=v.concat(C)}}}}}return v}function M(e){var t=m(e);if(t.bbox)return a(t.bbox);if(!e)return v();e=L(e);for(var r,n=0,i=0,o=[],s=[],u=0,l=e.length;u<l;u++)if("M"==(r=e[u])[0])n=r[1],i=r[2],o.push(n),s.push(i);else{var c=F(n,i,r[1],r[2],r[3],r[4],r[5],r[6]);o=o.concat(c.min.x,c.max.x),s=s.concat(c.min.y,c.max.y),n=r[5],i=r[6]}var h=d.apply(0,o),p=d.apply(0,s),y=v(h,p,f.apply(0,o)-h,f.apply(0,s)-p);return t.bbox=a(y),y}function j(e,t,r,n,i){if(i)return[["M",+e+ +i,t],["l",r-2*i,0],["a",i,i,0,0,1,i,i],["l",0,n-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-r,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-n],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]];return o.toString=y,o}function D(e,t,r,n,i){if(null==i&&null==n&&(n=r),e=+e,t=+t,r=+r,n=+n,null!=i)var o=Math.PI/180,a=e+r*Math.cos(-n*o),s=e+r*Math.cos(-i*o),u=t+r*Math.sin(-n*o),l=t+r*Math.sin(-i*o),c=[["M",a,u],["A",r,r,0,+(i-n>180),0,s,l]];else c=[["M",e,t],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return c.toString=y,c}var R=e._unit2px;function N(t){var r=m(t);if(r.abs)return b(r.abs);if(o(t,"array")&&o(t&&t[0],"array")||(t=e.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n,i=[],a=0,s=0,u=0,l=0,c=0;"M"==t[0][0]&&(a=+t[0][1],s=+t[0][2],u=a,l=s,c++,i[0]=["M",a,s]);for(var d,f,h=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),p=c,v=t.length;p<v;p++){if(i.push(d=[]),(n=(f=t[p])[0])!=n.toUpperCase())switch(d[0]=n.toUpperCase(),d[0]){case"A":d[1]=f[1],d[2]=f[2],d[3]=f[3],d[4]=f[4],d[5]=f[5],d[6]=+f[6]+a,d[7]=+f[7]+s;break;case"V":d[1]=+f[1]+s;break;case"H":d[1]=+f[1]+a;break;case"R":for(var w=[a,s].concat(f.slice(1)),x=2,_=w.length;x<_;x++)w[x]=+w[x]+a,w[++x]=+w[x]+s;i.pop(),i=i.concat(B(w,h));break;case"O":i.pop(),(w=D(a,s,f[1],f[2])).push(w[0]),i=i.concat(w);break;case"U":i.pop(),d=["U"].concat((i=i.concat(D(a,s,f[1],f[2],f[3])))[i.length-1].slice(-2));break;case"M":u=+f[1]+a,l=+f[2]+s;default:for(x=1,_=f.length;x<_;x++)d[x]=+f[x]+(x%2?a:s)}else if("R"==n)w=[a,s].concat(f.slice(1)),i.pop(),i=i.concat(B(w,h)),d=["R"].concat(f.slice(-2));else if("O"==n)i.pop(),(w=D(a,s,f[1],f[2])).push(w[0]),i=i.concat(w);else if("U"==n)i.pop(),d=["U"].concat((i=i.concat(D(a,s,f[1],f[2],f[3])))[i.length-1].slice(-2));else for(var S=0,C=f.length;S<C;S++)d[S]=f[S];if("O"!=(n=n.toUpperCase()))switch(d[0]){case"Z":a=+u,s=+l;break;case"H":a=d[1];break;case"V":s=d[1];break;case"M":u=d[d.length-2],l=d[d.length-1];default:a=d[d.length-2],s=d[d.length-1]}}return i.toString=y,r.abs=b(i),i}function U(e,t,r,n,i,o){return[1/3*e+2/3*r,1/3*t+2/3*n,1/3*i+2/3*r,1/3*o+2/3*n,i,o]}function F(e,t,r,n,i,o,a,s){for(var u,c,h,m,v,y,b,w,x=[],_=[[],[]],S=0;S<2;++S){if(0==S?(c=6*e-12*r+6*i,u=-3*e+9*r-9*i+3*a,h=3*r-3*e):(c=6*t-12*n+6*o,u=-3*t+9*n-9*o+3*s,h=3*n-3*t),1e-12>p(u)){if(1e-12>p(c))continue;0<(m=-h/c)&&m<1&&x.push(m);continue}b=c*c-4*h*u,w=l.sqrt(b),!(b<0)&&(0<(v=(-c+w)/(2*u))&&v<1&&x.push(v),0<(y=(-c-w)/(2*u))&&y<1&&x.push(y))}for(var C,E=x.length,k=E;E--;)C=1-(m=x[E]),_[0][E]=C*C*C*e+3*C*C*m*r+3*C*m*m*i+m*m*m*a,_[1][E]=C*C*C*t+3*C*C*m*n+3*C*m*m*o+m*m*m*s;return _[0][k]=e,_[1][k]=t,_[0][k+1]=a,_[1][k+1]=s,_[0].length=_[1].length=k+2,{min:{x:d.apply(0,_[0]),y:d.apply(0,_[1])},max:{x:f.apply(0,_[0]),y:f.apply(0,_[1])}}}function L(t,r){var n=!r&&m(t);if(!r&&n.curve)return b(n.curve);for(var i=N(t),o=r&&N(r),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},d=function(t,r,n){var i,o,a,s,u,d,f,h,m,v,y,b,w,x,_,S;if(!t)return["C",r.x,r.y,r.x,r.y,r.x,r.y];switch((t[0]in{T:1,Q:1})||(r.qx=r.qy=null),t[0]){case"M":r.X=t[1],r.Y=t[2];break;
206case"A":t=["C"].concat((function t(r,n,i,o,a,s,u,d,f,h){var m,v=120*c/180,y=c/180*(+a||0),b=[],w=e._.cacher(function(e,t,r){return{x:e*l.cos(r)-t*l.sin(r),y:e*l.sin(r)+t*l.cos(r)}});if(!i||!o)return[r,n,d,f,d,f];if(h)P=h[0],I=h[1],T=h[2],A=h[3];else{r=(m=w(r,n,-y)).x,n=m.y,d=(m=w(d,f,-y)).x,f=m.y,l.cos(c/180*a),l.sin(c/180*a);var x=(r-d)/2,_=(n-f)/2,S=x*x/(i*i)+_*_/(o*o);S>1&&(i*=S=l.sqrt(S),o*=S);var C=i*i,E=o*o,k=(s==u?-1:1)*l.sqrt(p((C*E-C*_*_-E*x*x)/(C*_*_+E*x*x))),T=k*i*_/o+(r+d)/2,A=-(k*o)*x/i+(n+f)/2,P=l.asin(((n-A)/o).toFixed(9)),I=l.asin(((f-A)/o).toFixed(9));P=r<T?c-P:P,I=d<T?c-I:I,P<0&&(P=2*c+P),I<0&&(I=2*c+I),u&&P>I&&(P-=2*c),!u&&I>P&&(I-=2*c)}var O=I-P;if(p(O)>v){var M=I,j=d,D=f;I=P+v*(u&&I>P?1:-1),b=t(d=T+i*l.cos(I),f=A+o*l.sin(I),i,o,a,0,u,j,D,[I,M,T,A])}O=I-P;var R=l.cos(P),N=l.sin(P),U=l.cos(I),F=l.sin(I),L=l.tan(O/4),B=4/3*i*L,z=4/3*o*L,H=[r,n],q=[r+B*N,n-z*R],W=[d+B*F,f-z*U],$=[d,f];if(q[0]=2*H[0]-q[0],q[1]=2*H[1]-q[1],h)return[q,W,$].concat(b);b=[q,W,$].concat(b).join().split(",");for(var V=[],Y=0,Z=b.length;Y<Z;Y++)V[Y]=Y%2?w(b[Y-1],b[Y],y).y:w(b[Y],b[Y+1],y).x;return V}).apply(0,[r.x,r.y].concat(t.slice(1))));break;case"S":"C"==n||"S"==n?(i=2*r.x-r.bx,o=2*r.y-r.by):(i=r.x,o=r.y),t=["C",i,o].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(r.qx=2*r.x-r.qx,r.qy=2*r.y-r.qy):(r.qx=r.x,r.qy=r.y),t=["C"].concat(U(r.x,r.y,r.qx,r.qy,t[1],t[2]));break;case"Q":r.qx=t[1],r.qy=t[2],t=["C"].concat(U(r.x,r.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat((a=r.x,s=r.y,u=t[1],[a,s,u,d=t[2],u,d]));break;case"H":t=["C"].concat((f=r.x,h=r.y,m=t[1],[f,h,m,v=r.y,m,v]));break;case"V":t=["C"].concat((y=r.x,[y,r.y,b=r.x,w=t[1],b,w]));break;case"Z":t=["C"].concat((x=r.x,[x,r.y,_=r.X,S=r.Y,_,S]))}return t},h=function(e,t){if(e[t].length>7){e[t].shift();for(var r=e[t];r.length;)y[t]="A",o&&(w[t]="A"),e.splice(t++,0,["C"].concat(r.splice(0,6)));e.splice(t,1),C=f(i.length,o&&o.length||0)}},v=function(e,t,r,n,a){e&&t&&"M"==e[a][0]&&"M"!=t[a][0]&&(t.splice(a,0,["M",n.x,n.y]),r.bx=0,r.by=0,r.x=e[a][1],r.y=e[a][2],C=f(i.length,o&&o.length||0))},y=[],w=[],x="",_="",S=0,C=f(i.length,o&&o.length||0);S<C;S++){i[S]&&(x=i[S][0]),"C"!=x&&(y[S]=x,S&&(_=y[S-1])),i[S]=d(i[S],a,_),"A"!=y[S]&&"C"==x&&(y[S]="C"),h(i,S),o&&(o[S]&&(x=o[S][0]),"C"!=x&&(w[S]=x,S&&(_=w[S-1])),o[S]=d(o[S],s,_),"A"!=w[S]&&"C"==x&&(w[S]="C"),h(o,S)),v(i,o,a,s,S),v(o,i,s,a,S);var E=i[S],k=o&&o[S],T=E.length,A=o&&k.length;a.x=E[T-2],a.y=E[T-1],a.bx=u(E[T-4])||a.x,a.by=u(E[T-3])||a.y,s.bx=o&&(u(k[A-4])||s.x),s.by=o&&(u(k[A-3])||s.y),s.x=o&&k[A-2],s.y=o&&k[A-1]}return o||(n.curve=b(i)),o?[i,o]:i}function B(e,t){for(var r=[],n=0,i=e.length;i-2*!t>n;n+=2){var o=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?i-4==n?o[3]={x:+e[0],y:+e[1]}:i-2==n&&(o[2]={x:+e[0],y:+e[1]},o[3]={x:+e[2],y:+e[3]}):o[0]={x:+e[i-2],y:+e[i-1]}:i-4==n?o[3]=o[2]:n||(o[0]={x:+e[n],y:+e[n+1]}),r.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return r}e.path=m,e.path.getTotalLength=_,e.path.getPointAtLength=S,e.path.getSubpath=function(e,t,r){if(this.getTotalLength(e)-r<1e-6)return C(e,t).end;var n=C(e,r,1);return t?C(n,t).end:n},i.getTotalLength=function(){if(this.node.getTotalLength)return this.node.getTotalLength()},i.getPointAtLength=function(e){return S(this.attr("d"),e)},i.getSubpath=function(t,r){return e.path.getSubpath(this.attr("d"),t,r)},e._.box=v,e.path.findDotsAtSegment=E,e.path.bezierBBox=k,e.path.isPointInsideBBox=T,e.closest=function(t,r,n,i){for(var o=100,a=v(t-50,r-50,100,100),s=[],u=n[0].hasOwnProperty("x")?function(e){return{x:n[e].x,y:n[e].y}}:function(e){return{x:n[e],y:i[e]}},l=0;o<=1e6&&!l;){for(var c=0,d=n.length;c<d;c++){var f=u(c);if(T(a,f.x,f.y)){l++,s.push(f);break}}l||(o*=2,a=v(t-o/2,r-o/2,o,o))}if(1e6!=o){var h,p=1/0;for(c=0,d=s.length;c<d;c++){var m=e.len(t,r,s[c].x,s[c].y);p>m&&(p=m,s[c].len=m,h=s[c])}return h}},e.path.isBBoxIntersect=A,e.path.intersection=function(e,t){return O(e,t)},e.path.intersectionNumber=function(e,t){return O(e,t,1)},e.path.isPointInside=function(e,t,r){var n=M(e);return T(n,t,r)&&O(e,[["M",t,r],["H",n.x2+10]],1)%2==1},e.path.getBBox=M,e.path.get={path:function(e){return e.attr("path")},circle:function(e){var t=R(e);return D(t.cx,t.cy,t.r)},ellipse:function(e){var t=R(e);return D(t.cx||0,t.cy||0,t.rx,t.ry)},rect:function(e){var t=R(e);return j(t.x||0,t.y||0,t.width,t.height,t.rx,t.ry)},image:function(e){var t=R(e);return j(t.x||0,t.y||0,t.width,t.height)},line:function(e){return"M"+[e.attr("x1")||0,e.attr("y1")||0,e.attr("x2"),e.attr("y2")]},polyline:function(e){return"M"+e.attr("points")},polygon:function(e){return"M"+e.attr("points")+"z"},deflt:function(e){var t=e.node.getBBox();return j(t.x,t.y,t.width,t.height)}},e.path.toRelative=function(t){var r=m(t),n=String.prototype.toLowerCase;if(r.rel)return b(r.rel);e.is(t,"array")&&e.is(t&&t[0],"array")||(t=e.parsePathString(t));var i=[],o=0,a=0,s=0,u=0,l=0;"M"==t[0][0]&&(o=t[0][1],a=t[0][2],s=o,u=a,l++,i.push(["M",o,a]));for(var c=l,d=t.length;c<d;c++){var f=i[c]=[],h=t[c];if(h[0]!=n.call(h[0]))switch(f[0]=n.call(h[0]),f[0]){case"a":f[1]=h[1],f[2]=h[2],f[3]=h[3],f[4]=h[4],f[5]=h[5],f[6]=+(h[6]-o).toFixed(3),f[7]=+(h[7]-a).toFixed(3);break;case"v":f[1]=+(h[1]-a).toFixed(3);break;case"m":s=h[1],u=h[2];default:for(var p=1,v=h.length;p<v;p++)f[p]=+(h[p]-(p%2?o:a)).toFixed(3)}else{f=i[c]=[],"m"==h[0]&&(s=h[1]+o,u=h[2]+a);for(var w=0,x=h.length;w<x;w++)i[c][w]=h[w]}var _=i[c].length;switch(i[c][0]){case"z":o=s,a=u;break;
206case"h":o+=+i[c][_-1];break;case"v":a+=+i[c][_-1];break;default:o+=+i[c][_-2],a+=+i[c][_-1]}}return i.toString=y,r.rel=b(i),i},e.path.toAbsolute=N,e.path.toCubic=L,e.path.map=function(e,t){var r,n,i,o,a,s,u;if(!t)return e;for(i=0,a=(e=L(e)).length;i<a;i++)for(o=1,s=(u=e[i]).length;o<s;o+=2)r=t.x(u[o],u[o+1]),n=t.y(u[o],u[o+1]),u[o]=r,u[o+1]=n;return e},e.path.toString=y,e.path.clone=b}),S.plugin(function(e,t,r,n){var i=Math.max,o=Math.min,a=function(e){if(this.items=[],this.bindings={},this.length=0,this.type="set",e)for(var t=0,r=e.length;t<r;t++)e[t]&&(this[this.items.length]=this.items[this.items.length]=e[t],this.length++)},s=a.prototype;s.push=function(){for(var e,t,r=0,n=arguments.length;r<n;r++)e=arguments[r],e&&(this[t=this.items.length]=this.items[t]=e,this.length++);return this},s.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},s.forEach=function(e,t){for(var r=0,n=this.items.length;r<n&&!1!==e.call(t,this.items[r],r);r++);return this},s.animate=function(t,r,n,i){"function"!=typeof n||n.length||(i=n,n=_.linear),t instanceof e._.Animation&&(i=t.callback,r=(n=t.easing).dur,t=t.attr);var o=arguments;if(e.is(t,"array")&&e.is(o[o.length-1],"array"))var a=!0;var s,u=function(){s?this.b=s:s=this.b},l=0,c=this,d=i&&function(){++l==c.length&&i.call(this)};return this.forEach(function(e,i){eve.once("snap.animcreated."+e.id,u),a?o[i]&&e.animate.apply(e,o[i]):e.animate(t,r,n,d)})},s.remove=function(){for(;this.length;)this.pop().remove();return this},s.bind=function(e,t,r){var n={};if("function"==typeof t)this.bindings[e]=t;else{var i=r||e;this.bindings[e]=function(e){n[i]=e,t.attr(n)}}return this},s.attr=function(e){var t={};for(var r in e)this.bindings[r]?this.bindings[r](e[r]):t[r]=e[r];for(var n=0,i=this.items.length;n<i;n++)this.items[n].attr(t);return this},s.clear=function(){for(;this.length;)this.pop()},s.splice=function(e,t,r){e=e<0?i(this.length+e,0):e,t=i(0,o(this.length-e,t));var n,s=[],u=[],l=[];for(n=2;n<arguments.length;n++)l.push(arguments[n]);for(n=0;n<t;n++)u.push(this[e+n]);for(;n<this.length-e;n++)s.push(this[e+n]);var c=l.length;for(n=0;n<c+s.length;n++)this.items[e+n]=this[e+n]=n<c?l[n]:s[n-c];for(n=this.items.length=this.length-=t-c;this[n];)delete this[n++];return new a(u)},s.exclude=function(e){for(var t=0,r=this.length;t<r;t++)if(this[t]==e)return this.splice(t,1),!0;return!1},s.insertAfter=function(e){for(var t=this.items.length;t--;)this.items[t].insertAfter(e);return this},s.getBBox=function(){for(var e=[],t=[],r=[],n=[],a=this.items.length;a--;)if(!this.items[a].removed){var s=this.items[a].getBBox();e.push(s.x),t.push(s.y),r.push(s.x+s.width),n.push(s.y+s.height)}return e=o.apply(0,e),{x:e,y:t=o.apply(0,t),x2:r=i.apply(0,r),y2:n=i.apply(0,n),width:r-e,height:n-t,cx:e+(r-e)/2,cy:t+(n-t)/2}},s.clone=function(e){e=new a;for(var t=0,r=this.items.length;t<r;t++)e.push(this.items[t].clone());return e},s.toString=function(){return"Snap‘s set"},s.type="set",e.Set=a,e.set=function(){var e=new a;return arguments.length&&e.push.apply(e,Array.prototype.slice.call(arguments,0)),e}}),S.plugin(function(e,t,r,n){var i={},o=/[%a-z]+$/i,a=String;function s(e){var t=e[0];switch(t.toLowerCase()){case"t":return[t,0,0];case"m":return[t,1,0,0,1,0,0];case"r":if(4==e.length)return[t,0,e[2],e[3]];return[t,0];case"s":if(5==e.length)return[t,1,1,e[3],e[4]];if(3==e.length)return[t,1,1];return[t,1]}}function u(e){return e}function l(e){return e.join(" ")}function c(t){return e.rgb(t[0],t[1],t[2],t[3])}function d(e){var t,r,n,i,o,a,s=0,u=[];for(t=0,r=e.length;t<r;t++){for(n=1,o="[",a=['"'+e[t][0]+'"'],i=e[t].length;n<i;n++)a[n]="val["+s+++"]";o+=a+"]",u[t]=o}return Function("val","return Snap.path.toString.call(["+u+"])")}function f(e){for(var t=[],r=0,n=e.length;r<n;r++)for(var i=1,o=e[r].length;i<o;i++)t.push(e[r][i]);return t}i.stroke=i.fill="colour",t.prototype.equal=function(e,t){return eve("snap.util.equal",this,e,t).firstDefined()},eve.on("snap.util.equal",function(t,r){var n,h,p=a(this.attr(t)||""),m=this;if("colour"==i[t])return n=e.color(p),h=e.color(r),{from:[n.r,n.g,n.b,n.opacity],to:[h.r,h.g,h.b,h.opacity],f:c};if("viewBox"==t)return{from:n=this.attr(t).vb.split(" ").map(Number),to:h=r.split(" ").map(Number),f:l};if("transform"==t||"gradientTransform"==t||"patternTransform"==t)return"string"==typeof r&&(r=a(r).replace(/\.{3}|\u2026/g,p)),p=this.matrix,r=e._.rgTransform.test(r)?e._.transform2matrix(r,this.getBBox()):e._.transform2matrix(e._.svgTransform2string(r),this.getBBox()),function(t,r,n){t=t||new e.Matr
206ix,r=r||new e.Matrix,t=e.parseTransformString(t.toTransformString())||[],r=e.parseTransformString(r.toTransformString())||[];for(var i,o,a,u,l=Math.max(t.length,r.length),c=[],h=[],p=0;p<l;p++){if(a=t[p]||s(r[p]),u=r[p]||s(a),a[0]!=u[0]||"r"==a[0].toLowerCase()&&(a[2]!=u[2]||a[3]!=u[3])||"s"==a[0].toLowerCase()&&(a[3]!=u[3]||a[4]!=u[4])){t=e._.transform2matrix(t,n()),r=e._.transform2matrix(r,n()),c=[["m",t.a,t.b,t.c,t.d,t.e,t.f]],h=[["m",r.a,r.b,r.c,r.d,r.e,r.f]];break}for(i=0,c[p]=[],h[p]=[],o=Math.max(a.length,u.length);i<o;i++)i in a&&(c[p][i]=a[i]),i in u&&(h[p][i]=u[i])}return{from:f(c),to:f(h),f:d(c)}}(p,r,function(){return m.getBBox(1)});if("d"==t||"path"==t)return{from:f((n=e.path.toCubic(p,r))[0]),to:f(n[1]),f:d(n[0])};if("points"==t)return{from:n=a(p).split(e._.separator),to:h=a(r).split(e._.separator),f:function(e){return e}};if(isFinite(p)&&isFinite(r))return{from:parseFloat(p),to:parseFloat(r),f:u};var v=p.match(o),y=a(r).match(o);return v&&e.is(v,"array")&&e.is(y,"array")&&v.toString()==y.toString()?{from:parseFloat(p),to:parseFloat(r),f:function(e){return+e.toFixed(3)+v}}:{from:this.asPX(t),to:this.asPX(t,r),f:u}})}),S.plugin(function(e,t,r,n){for(var i=t.prototype,o=("createTouch"in n.doc),a=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],s={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},u=function(e,t){var r="y"==e?"scrollTop":"scrollLeft",i=t&&t.node?t.node.ownerDocument:n.doc;return i[(r in i.documentElement)?"documentElement":"body"][r]},l=function(){return this.originalEvent.preventDefault()},c=function(){return this.originalEvent.stopPropagation()},d=function(e,t,r,n){var i=o&&s[t]?s[t]:t,a=function(i){var a=u("y",n),d=u("x",n);if(o&&s.hasOwnProperty(t)){for(var f=0,h=i.targetTouches&&i.targetTouches.length;f<h;f++)if(i.targetTouches[f].target==e||e.contains(i.targetTouches[f].target)){var p=i;(i=i.targetTouches[f]).originalEvent=p,i.preventDefault=l,i.stopPropagation=c;break}}var m=i.clientX+d,v=i.clientY+a;return r.call(n,i,m,v)};return t!==i&&e.addEventListener(t,a,!1),e.addEventListener(i,a,!1),function(){return t!==i&&e.removeEventListener(t,a,!1),e.removeEventListener(i,a,!1),!0}},f=[],h=function(e){for(var t,r=e.clientX,n=e.clientY,i=u("y"),a=u("x"),s=f.length;s--;){if(t=f[s],o){for(var l,c=e.touches&&e.touches.length;c--;)if((l=e.touches[c]).identifier==t.el._drag.id||t.el.node.contains(l.target)){r=l.clientX,n=l.clientY,(e.originalEvent?e.originalEvent:e).preventDefault();break}}else e.preventDefault();var d=t.el.node;d.nextSibling,d.parentNode,d.style.display,r+=a,n+=i,eve("snap.drag.move."+t.el.id,t.move_scope||t.el,r-t.el._drag.x,n-t.el._drag.y,r,n,e)}},p=function(t){e.unmousemove(h).unmouseup(p);for(var r,n=f.length;n--;)(r=f[n]).el._drag={},eve("snap.drag.end."+r.el.id,r.end_scope||r.start_scope||r.move_scope||r.el,t),eve.off("snap.drag.*."+r.el.id);f=[]},m=a.length;m--;)!function(t){e[t]=i[t]=function(r,n){if(e.is(r,"function"))this.events=this.events||[],this.events.push({name:t,f:r,unbind:d(this.node||document,t,r,n||this)});else for(var i=0,o=this.events.length;i<o;i++)if(this.events[i].name==t)try{this.events[i].f.call(this)}catch(e){}return this},e["un"+t]=i["un"+t]=function(e){for(var r=this.events||[],n=r.length;n--;)if(r[n].name==t&&(r[n].f==e||!e)){r[n].unbind(),r.splice(n,1),r.length||delete this.events;break}return this}}(a[m]);i.hover=function(e,t,r,n){return this.mouseover(e,r).mouseout(t,n||r)},i.unhover=function(e,t){return this.unmouseover(e).unmouseout(t)};var v=[];i.drag=function(t,r,n,i,o,a){var s,u=this;if(!arguments.length)return u.drag(function(e,t){this.attr({transform:s+(s?"T":"t")+[e,t]})},function(){s=this.transform().local});function l(s,l,c){(s.originalEvent||s).preventDefault(),u._drag.x=l,u._drag.y=c,u._drag.id=s.identifier,f.length||e.mousemove(h).mouseup(p),f.push({el:u,move_scope:i,start_scope:o,end_scope:a}),r&&eve.on("snap.drag.start."+u.id,r),t&&eve.on("snap.drag.move."+u.id,t),n&&eve.on("snap.drag.end."+u.id,n),eve("snap.drag.start."+u.id,o||i||u,l,c,s)}function c(e,t,r){eve("snap.draginit."+u.id,u,e,t,r)}return eve.on("snap.draginit."+u.id,l),u._drag={},v.push({el:u,start:l,init:c}),u.mousedown(c),u},i.undrag=function(){for(var t=v.length;t--;)v[t].el==this&&(this.unmousedown(v[t].init),v.splice(t,1),eve.unbind("snap.drag.*."+this.id
206),eve.unbind("snap.draginit."+this.id));return v.length||e.unmousemove(h).unmouseup(p),this}}),S.plugin(function(e,t,r,n){t.prototype;var i=r.prototype,o=/^\s*url\((.+)\)/,a=String,s=e._.$;e.filter={},i.filter=function(r){var n=this;"svg"!=n.type&&(n=n.paper);var i=e.parse(a(r)),o=e._.id(),u=(n.node.offsetWidth,n.node.offsetHeight,s("filter"));return s(u,{id:o,filterUnits:"userSpaceOnUse"}),u.appendChild(i.node),n.defs.appendChild(u),new t(u)},eve.on("snap.util.getattr.filter",function(){eve.stop();var t=s(this.node,"filter");if(t){var r=a(t).match(o);return r&&e.select(r[1])}}),eve.on("snap.util.attr.filter",function(r){if(r instanceof t&&"filter"==r.type){eve.stop();var n=r.node.id;n||(s(r.node,{id:r.id}),n=r.id),s(this.node,{filter:e.url(n)})}r&&"none"!=r||(eve.stop(),this.node.removeAttribute("filter"))}),e.filter.blur=function(t,r){null==t&&(t=2);var n=null==r?t:[t,r];return e.format('<feGaussianBlur stdDeviation="{def}"/>',{def:n})},e.filter.blur.toString=function(){return this()},e.filter.shadow=function(t,r,n,i,o){return null==o&&(null==i?(o=n,n=4,i="#000"):(o=i,i=n,n=4)),null==n&&(n=4),null==o&&(o=1),null==t&&(t=0,r=2),null==r&&(r=t),i=e.color(i),e.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:i,dx:t,dy:r,blur:n,opacity:o})},e.filter.shadow.toString=function(){return this()},e.filter.grayscale=function(t){return null==t&&(t=1),e.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-t),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})},e.filter.grayscale.toString=function(){return this()},e.filter.sepia=function(t){return null==t&&(t=1),e.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-t),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})},e.filter.sepia.toString=function(){return this()},e.filter.saturate=function(t){return null==t&&(t=1),e.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-t})},e.filter.saturate.toString=function(){return this()},e.filter.hueRotate=function(t){return t=t||0,e.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:t})},e.filter.hueRotate.toString=function(){return this()},e.filter.invert=function(t){return null==t&&(t=1),e.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:t,amount2:1-t})},e.filter.invert.toString=function(){return this()},e.filter.brightness=function(t){return null==t&&(t=1),e.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:t})},e.filter.brightness.toString=function(){return this()},e.filter.contrast=function(t){return null==t&&(t=1),e.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:t,amount2:.5-t/2})},e.filter.contrast.toString=function(){return this()}}),S.plugin(function(e,t,r,n,i){var o=e._.box,a=e.is,s=/^[^a-z]*([tbmlrc])/i,u=function(){return"T"+this.dx+","+this.dy};t.prototype.getAlign=function(e,t){null==t&&a(e,"string")&&(t=e,e=null);var r=(e=e||this.paper).getBBox?e.getBBox():o(e),n=this.getBBox(),i={};switch(t=(t=t&&t.match(s))?t[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=r.y-n.y;break;case"b":i.dx=0,i.dy=r.y2-n.y2;break;case"m":i.dx=0,i.dy=r.cy-n.cy;break;case"l":i.dx=r.x-n.x,i.dy=0;break;case"r":i.dx=r.x2-n.x2,i.dy=0;break;default:i.dx=r.cx-n.cx,i.dy=0}return i.toString=u,i},t.prototype.align=function(e,t){return this.transform("..."+this.getAlign(e,t))}}),S.plugin(function(e,t,r,n,i){var o=t.prototype,a=e.is,s=String,u="hasOwnProperty",l=function(e,t,r,n){"function"!=typeof r||r.length||(n=r,r=_.linear),this.attr=e,this.dur=t,r&&(this.easing=r),n&&(this.callback=n)};e._.Animation=l,e.animation=function(e,t,r,n){return new l(e,t,r,n)},o.inAnim=function(){var e=[];for(var t in this.anims)this.anims[u](t)&&function(t){e.push({anim:new l(t._attrs,t.dur,t.easing,t._callback),mina:t,curStatus:t.status(),status:function(e){return t.status(e)},stop:function(){t.stop()}})}(this.anims[t]);return e},e.animate=function(e,t,r,n,i,o){"function"!=typeof i||i.length||(o=i,i=_.linear);var a=_.time(),s=_(e,t,a,a+n,_.time,r,i);return o&&eve.once("mina.finish."+s.id,o),s},o.stop=function(){for(var e=this.inAnim(),t=0,r=e.length;t<r;t++)e[t].stop();return this},o.animate=function(e,t,r,n){"function"!=typeof r||r.length||(n=r,r=_.linear),e instanceof l&&(n=e.callback,r=e.easing,t=e.dur,e=e.attr);var i,o,c,d,f=[],h=[],p={},m=this;for(var v in e)if(e[u](v)){m.equal?(i=(d=m.equal(v,s(e[v]))).from,o=d.to,c=d.f):(i=+m.attr(v),o=+e[v]);var y=a(i,"array")?i.length:1;p[v]=function(e,t,r){return function(n){var i=n.slice(e,t);return 1==i.length&&(i=i[0]),r?r(i):i}}(f.length,f.length+y,c),f=f.concat(i),h=h.concat(o)}var b=_.time(),w=_(f,h,b,b+t,_.time,function(e){var t={};for(var r in p)p[u](r)&&(t[r]=p[r](e));m.attr(t)},r);return m.anims[w.id]=w,w._attrs=e,w._callback=n,eve("snap.animcreated."+m.id,w),eve.once("mina.finish."+w.id,function(){eve.off("mina.*."+w.id),delete m.anims[w.id],n&&n.call(m)}),eve.once("mina.stop."+w.id,function(){eve.off("mina.*."+w.id),delete m.anims[w.id]}),m}}),S.plugin(function(e,t,r,n){function i(e){e=e.split(/(?=#)/);var t=new String(e[5]);return t[50]=e[0],t[100]=e[1],t[200]=e[2],t[300]=e[3],t[400]=e[4],t[500]=e[5],t[600]=e[6],t[700]=e[7],t[800]=e[8],t[900]=e[9],e[10]&&(t.A100=e[10],t.A200=e[11],t.A400=e[12],t.A700=e[13]),t}e.mui={},e.flat={},e.mui.red=i("#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000"),e.mui.pink=i("#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162"),e.mui.purple=i("#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF"),e.mui.deeppurple=i("#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA"),e.mui.indigo=i("#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE"),e.mui.blue=i("#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF"),e.mui.lightblue=i("#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA"),e.mui.cyan=i("#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4"),e.mui.teal=i("#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5"),e.mui.green=i("#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853"),e.mui.lightgreen=i("#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17"),e.mui.lime=i("#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00"),e.mui.yellow=i("#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600"),e.mui.amber=i("#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00"),e.mui.orange=i("#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00"),e.mui.deeporange=i("#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00"),e.mui.brown=i("#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723"),e.mui.grey=i("#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121"),e.mui.bluegrey=i("#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238"),e.flat.turquoise="#1abc9c",e.flat.greensea="#16a085",e.flat.sunflower="#f1c40f",e.flat.orange="#f39c12",e.flat.emerland="#2ecc71",e.flat.nephritis="#27ae60",e.flat.carrot="#e67e22",e.flat.pumpkin="#d35400",e.flat.peterriver="#3498db",e.flat.belizehole="#2980b9",e.flat.alizarin="#e74c3c",e.flat.pomegranate="#c0392b",e.flat.amethyst="#9b59b6",e.flat.wisteria="#8e44ad",e.flat.clouds="#ecf0f1",e.flat.silver="#bdc3c7",e.flat.wetasphalt="#34495e",e.flat.midnightblue="#2c3e50",e.flat.concrete="#95a5a6",e.flat.asbestos="#7f8c8d",e.importMUIColors=function(){for(var t in e.mui)e.mui.hasOwnProperty(t)&&(window[t]=e.mui[t])}}),e.exports=S},25547:function(e,t,r){var n=r(16580);e.exports=function e(t,r,i){if(null==t)return{};var o,a,s,u,l,c,d=t[0]||{},f=1,h=t.length;for(i=i||[],"object"!=typeof d&&(d={});f<h;f++)if(null!=(l=t[f])){for(u in l)if(l.hasOwnProperty(u)&&"__proto__"!==u){if(o=d[u],d===(s=l[u]))continue;
206if(s&&(n.isPlainObject(s)||(a=n.isArray(s)))){a?(a=!1,c=o&&n.isArray(o)?o:[]):c=o&&n.isPlainObject(o)?o:{};var p=i.slice(0);p.push(u),d[u]=e([c,s],r,p)}else void 0!==s&&(null!=o&&"function"==typeof r&&r({target:d,copy:l,path:i,key:u}),d[u]=s)}}return d}},16580:function(e,t,r){var n;let i=r(74528),o=function(e,t){Object.keys(e||{}).forEach(r=>{t(e[r],r)})},a=function(e){return null==e||"object"!=typeof e?e:e instanceof Array?e.reduce((e,t,r)=>(e[r]=a(t),e),[]):e instanceof Object?Object.keys(e||{}).reduce((t,r)=>(t[r]=a(e[r]),t),{}):void 0},s=function(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)},u=function(e,t){return s(t)?Object.keys(t).every(r=>u(e[r],t[r])):e==t},l={transform:i.camelCaseTransformMerge};e.exports={each:o,forEach:o,forIn:o,keys:Object.keys,clone:function(e){return Object.assign(new e.constructor,e)},cloneDeep:a,extend:Object.assign,isString:function(e){return"string"==typeof e||e instanceof String},isArray:function(e){return Array.isArray(e)},isObject:s,isPlainObject:function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},isEmpty:function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length},filter:function(e,t){if("function"!=typeof t)throw"filter is not a function";return void 0===e?[]:e.filter(t)},reduce:function(e,t,r){return Object.keys(e||{}).reduce((r,n)=>t(r,e[n],n,e),r)},assign:function(){let e=Array.prototype.slice.call(arguments);return e.unshift({}),Object.assign(...e)},upperFirst:function(e){return e?e[0].toUpperCase()+e.substr(1):""},camelCase:(n=i.camelCase,(e,t)=>n(e,Object.assign({},l,void 0,t))),snakeCase:i.snakeCase,kebabCase:i.paramCase,pull:function(e,...t){var r=new Set(t);for(let t=e.length-1;t>=0;t--)r.has(e[t])&&e.splice(t,1)},matches:function(e){let t=a(e);return e=>u(e,t)},unique:function(e){return[...new Set(e)]}}},17460:function(e,t,r){var n=r(16580);e.exports=function e(t,r){for(var i in r=r||[],t)t.hasOwnProperty(i)&&(n.isPlainObject(t[i])&&"value"in t[i]?r.push(t[i]):n.isPlainObject(t[i])&&e(t[i],r));return r}},17617:function(e,t,r){let n=r(72043);e.exports=function(e={}){let t=Object.assign({},n,e);return RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")}},72043:function(e){e.exports={opening_character:"{",closing_character:"}",separator:"."}},46239:function(e,t,r){let n=r(17617);e.exports=function e(t,r={}){let i=r instanceof RegExp?r:n(r);if("string"==typeof t)return i.test(t);if("object"==typeof t){let n=!1;for(let i in t)if(t.hasOwnProperty(i)){let o=t[i];if(e(o,r)){n=!0;break}}return n}return!1}},54335:function(e,t,r){"use strict";r.d(t,{ZP:function(){return tf},F4:function(){return th}});var n=function(){return(n=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}).apply(this,arguments)};function i(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))}"function"==typeof SuppressedError&&SuppressedError;var o=r(67294),a=r(96774),s=r.n(a),u="-ms-",l="-moz-",c="-webkit-",d="comm",f="rule",h="decl",p="@keyframes",m=Math.abs,v=String.fromCharCode,y=Object.assign;function b(e,t){return(e=t.exec(e))?e[0]:e}function w(e,t,r){return e.replace(t,r)}function x(e,t,r){return e.indexOf(t,r)}function _(e,t){return 0|e.charCodeAt(t)}function S(e,t,r){return e.slice(t,r)}function C(e){return e.length}function E(e,t){return t.push(e),e}function k(e,t){return e.filter(function(e){return!b(e,t)})}var T=1,A=1,P=0,I=0,O=0,M="";function j(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:T,column:A,length:a,return:"",siblings:s}}function D(e,t){return y(j("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function R(e){for(;e.root;)e=D(e.root,{children:[e]});E(e,e.siblings)}function N(){return O=I<P?_(M,I++):0,A++,10===O&&(A=1,T++),O}function U(){return _(M,I)}function F(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function L(e){var t,r;return(t=I-1,r=function e(t){for(;N();)switch(O){case t:return I;case 34:case 39:34!==t&&39!==t&&e(O);break;case 40:41===t&&e(t);break;case 92:N()}return I}(91===e?e+2:40===e?e+1:e),S(M,t,r)).trim()}function B(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function z(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case h:return e.return=e.return||e.value;case d:return"";case p:return e.return=e.value+"{"+B(e.children,n)+"}";case f:if(!C(e.value=e.props.join(",")))return""}return C(r=B(e.children,n))?e.return=e.value+"{"+r+"}":""}function H(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case h:e.return=function e(t,r,n){var i;switch(i=r,45^_(t,0)?(((i<<2^_(t,0))<<2^_(t,1))<<2^_(t,2))<<2^_(t,3):0){case 5103:return c+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return c+t+t;case 4789:return l+t+t;
206case 5349:case 4246:case 4810:case 6968:case 2756:return c+t+l+t+u+t+t;case 5936:switch(_(t,r+11)){case 114:return c+t+u+w(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return c+t+u+w(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return c+t+u+w(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return c+t+u+t+t;case 6165:return c+t+u+"flex-"+t+t;case 5187:return c+t+w(t,/(\w+).+(:[^]+)/,c+"box-$1$2"+u+"flex-$1$2")+t;case 5443:return c+t+u+"flex-item-"+w(t,/flex-|-self/g,"")+(b(t,/flex-|baseline/)?"":u+"grid-row-"+w(t,/flex-|-self/g,""))+t;case 4675:return c+t+u+"flex-line-pack"+w(t,/align-content|flex-|-self/g,"")+t;case 5548:return c+t+u+w(t,"shrink","negative")+t;case 5292:return c+t+u+w(t,"basis","preferred-size")+t;case 6060:return c+"box-"+w(t,"-grow","")+c+t+u+w(t,"grow","positive")+t;case 4554:return c+w(t,/([^-])(transform)/g,"$1"+c+"$2")+t;case 6187:return w(w(w(t,/(zoom-|grab)/,c+"$1"),/(image-set)/,c+"$1"),t,"")+t;case 5495:case 3959:return w(t,/(image-set\([^]*)/,c+"$1$`$1");case 4968:return w(w(t,/(.+:)(flex-)?(.*)/,c+"box-pack:$3"+u+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+c+t+t;case 4200:if(!b(t,/flex-|baseline/))return u+"grid-column-align"+S(t,r)+t;break;case 2592:case 3360:return u+w(t,"template-","")+t;case 4384:case 3616:if(n&&n.some(function(e,t){return r=t,b(e.props,/grid-\w+-end/)}))return~x(t+(n=n[r].value),"span",0)?t:u+w(t,"-start","")+t+u+"grid-row-span:"+(~x(n,"span",0)?b(n,/\d+/):+b(n,/\d+/)-+b(t,/\d+/))+";";return u+w(t,"-start","")+t;case 4896:case 4128:return n&&n.some(function(e){return b(e.props,/grid-\w+-start/)})?t:u+w(w(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return w(t,/(.+)-inline(.+)/,c+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(t)-1-r>6)switch(_(t,r+1)){case 109:if(45!==_(t,r+4))break;case 102:return w(t,/(.+:)(.+)-([^]+)/,"$1"+c+"$2-$3$1"+l+(108==_(t,r+3)?"$3":"$2-$3"))+t;case 115:return~x(t,"stretch",0)?e(w(t,"stretch","fill-available"),r,n)+t:t}break;case 5152:case 5920:return w(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,r,n,i,o,a,s){return u+r+":"+n+s+(i?u+r+"-span:"+(o?a:+a-+n)+s:"")+t});case 4949:if(121===_(t,r+6))return w(t,":",":"+c)+t;break;case 6444:switch(_(t,45===_(t,14)?18:11)){case 120:return w(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+c+(45===_(t,14)?"inline-":"")+"box$3$1"+c+"$2$3$1"+u+"$2box$3")+t;case 100:return w(t,":",":"+u)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return w(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,r);return;case p:return B([D(e,{value:w(e.value,"@","@"+c)})],n);case f:if(e.length)return(r=e.props).map(function(t){switch(b(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":R(D(e,{props:[w(t,/:(read-\w+)/,":"+l+"$1")]})),R(D(e,{props:[t]})),y(e,{props:k(r,n)});break;case"::placeholder":R(D(e,{props:[w(t,/:(plac\w+)/,":"+c+"input-$1")]})),R(D(e,{props:[w(t,/:(plac\w+)/,":"+l+"$1")]})),R(D(e,{props:[w(t,/:(plac\w+)/,u+"input-$1")]})),R(D(e,{props:[t]})),y(e,{props:k(r,n)})}return""}).join("")}}function q(e,t,r,n,i,o,a,s,u,l,c,d){for(var h=i-1,p=0===i?o:[""],v=p.length,y=0,b=0,x=0;y<n;++y)for(var _=0,C=S(e,h+1,h=m(b=a[y])),E=e;_<v;++_)(E=(b>0?p[_]+" "+C:w(C,/&\f/g,p[_])).trim())&&(u[x++]=E);return j(e,t,r,0===i?f:s,u,l,c,d)}function W(e,t,r,n,i){return j(e,t,r,h,S(e,0,n),S(e,n+1,-1),n,i)}var $={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},V=r(83454),Y=void 0!==V&&void 0!==V.env&&(V.env.REACT_APP_SC_ATTR||V.env.SC_ATTR)||"data-styled",Z="active",G="data-styled-version",K="6.1.12",Q="/*!sc*/\n",X="undefined"!=typeof window&&"HTMLElement"in window,J=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==V&&void 0!==V.env&&void 0!==V.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==V.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==V.env.REACT_APP_SC_DISABLE_SPEEDY&&V.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==V&&void 0!==V.env&&void 0!==V.env.SC_DISABLE_SPEEDY&&""!==V.env.SC_DISABLE_SPEEDY&&"false"!==V.env.SC_DISABLE_SPEEDY&&V.env.SC_DISABLE_SPEEDY),ee=Object.freeze([]),et=Object.freeze({}),er=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),en=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ei=/(^-|-$)/g;function eo(e){return e.replace(en,"-").replace(ei,"")}var ea=/(a)(d)/gi,es=function(e){return String.fromCharCode(e+(e>25?39:97))};function eu(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=es(t%52)+r;return(es(t%52)+r).replace(ea,"$1-$2")}var el,ec=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ed=function(e){return ec(5381,e)};function ef(e){return"string"==typeof e}var eh="function"==typeof Symbol&&Symbol.for,ep=eh?Symbol.for("react.memo"):60115,eg=eh?Symbol.for("react.forward_ref"):60112,em={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ev={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ey={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eb=((el={})[eg]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},el[ep]=ey,el);function ew(e){return("type"in e&&e.type.$$typeof)===ep?ey:"$$typeof"in e?eb[e.$$typeof]:em}var ex=Object.defineProperty,e_=Object.getOwnPropertyNames,eS=Object.getOwnPropertySymbols,eC=Object.getOwnPropertyDescriptor,eE=Object.getPrototypeOf,ek=Object.prototype;function eT(e){return"function"==typeof e}function eA(e){return"object"==typeof e&&"styledComponentId"in e}function eP(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eI(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function eO(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eM(e,t){Object.defineProperty(e,"toString",{value:t})}function ej(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eD=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw ej(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(Q);return t},e}(),eR=new Map,eN=new Map,eU=1,eF=function(e){if(eR.has(e))return eR.get(e);for(;eN.has(eU);)eU++;var t=eU++;return eR.set(e,t),eN.set(t,e),t},eL=function(e,t){eU=t+1,eR.set(e,t),eN.set(t,e)},eB="style[".concat(Y,"][").concat(G,'="').concat(K,'"]'),ez=RegExp("^".concat(Y,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eH=function(e,t,r){for(var n,i=r.split(","),o=0,a=i.length;o<a;o++)(n=i[o])&&e.registerName(t,n)},eq=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Q),i=[],o=0,a=n.length;o<a;o++){var s=n[o].trim();if(s){var u=s.match(ez);if(u){var l=0|parseInt(u[1],10),c=u[2];0!==l&&(eL(c,l),eH(e,c,u[3]),e.getTag().insertRules(l,i)),i.length=0}else i.push(s)}}},eW=function(e){for(var t=document.querySelectorAll(eB),r=0,n=t.length;r<n;r++){var i=t[r];
206i&&i.getAttribute(Y)!==Z&&(eq(e,i),i.parentNode&&i.parentNode.removeChild(i))}},e$=function(e){var t,n=document.head,i=e||n,o=document.createElement("style"),a=(t=Array.from(i.querySelectorAll("style[".concat(Y,"]"))))[t.length-1],s=void 0!==a?a.nextSibling:null;o.setAttribute(Y,Z),o.setAttribute(G,K);var u=r.nc;return u&&o.setAttribute("nonce",u),i.insertBefore(o,s),o},eV=function(){function e(e){this.element=e$(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}throw ej(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eY=function(){function e(e){this.element=e$(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eZ=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eG=X,eK={isServer:!X,useCSSOMInjection:!J},eQ=function(){function e(e,t,r){void 0===e&&(e=et),void 0===t&&(t={});var i=this;this.options=n(n({},eK),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&X&&eG&&(eG=!1,eW(this)),eM(this,function(){return function(e){for(var t=e.getTag(),r=t.length,n="",i=0;i<r;i++)(function(r){var i=eN.get(r);if(void 0!==i){var o=e.names.get(i),a=t.getGroup(r);if(void 0!==o&&o.size&&0!==a.length){var s="".concat(Y,".g").concat(r,'[id="').concat(i,'"]'),u="";void 0!==o&&o.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),n+="".concat(a).concat(s,'{content:"').concat(u,'"}').concat(Q)}}})(i);return n}(i)})}return e.registerId=function(e){return eF(e)},e.prototype.rehydrate=function(){!this.server&&X&&eW(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n(n({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,r,n;return this.tag||(this.tag=(r=(t=this.options).useCSSOMInjection,n=t.target,e=t.isServer?new eZ(n):r?new eV(n):new eY(n),new eD(e)))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eF(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(eF(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eF(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),eX=/&/g,eJ=/^\s*\/\/.*$/gm;function e0(e){var t,r,n,i=void 0===e?et:e,o=i.options,a=void 0===o?et:o,s=i.plugins,u=void 0===s?ee:s,l=function(e,n,i){return i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,"").length>0?".".concat(t):e},c=u.slice();c.push(function(e){e.type===f&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(eX,r).replace(n,l))}),a.prefix&&c.push(H),c.push(z);var h=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,r=i,n=RegExp("\\".concat(r,"\\b"),"g");var u,l,f,h,p,y=e.replace(eJ,""),b=(p=function e(t,r,n,i,o,a,s,u,l){for(var c,f=0,h=0,p=s,y=0,b=0,k=0,P=1,D=1,R=1,B=0,z="",H=o,$=a,V=i,Y=z;D;)switch(k=B,B=N()){case 40:if(108!=k&&58==_(Y,p-1)){-1!=x(Y+=w(L(B),"&","&\f"),"&\f",m(f?u[f-1]:0))&&(R=-1);break}case 34:case 39:case 91:Y+=L(B);break;case 9:case 10:case 13:case 32:Y+=function(e){for(;O=U();)if(O<33)N();else break;return F(e)>2||F(O)>3?"":" "}(k);break;case 92:Y+=function(e,t){for(var r;--t&&N()&&!(O<48)&&!(O>102)&&(!(O>
20657)||!(O<65))&&(!(O>70)||!(O<97)););return r=I+(t<6&&32==U()&&32==N()),S(M,e,r)}(I-1,7);continue;case 47:switch(U()){case 42:case 47:E(j(c=function(e,t){for(;N();)if(e+O===57)break;else if(e+O===84&&47===U())break;return"/*"+S(M,t,I-1)+"*"+v(47===e?e:N())}(N(),I),r,n,d,v(O),S(c,2,-2),0,l),l);break;default:Y+="/"}break;case 123*P:u[f++]=C(Y)*R;case 125*P:case 59:case 0:switch(B){case 0:case 125:D=0;case 59+h:-1==R&&(Y=w(Y,/\f/g,"")),b>0&&C(Y)-p&&E(b>32?W(Y+";",i,n,p-1,l):W(w(Y," ","")+";",i,n,p-2,l),l);break;case 59:Y+=";";default:if(E(V=q(Y,r,n,f,h,o,u,z,H=[],$=[],p,a),a),123===B){if(0===h)e(Y,r,V,V,H,a,p,u,$);else switch(99===y&&110===_(Y,3)?100:y){case 100:case 108:case 109:case 115:e(t,V,V,i&&E(q(t,V,V,0,0,o,u,z,o,H=[],p,$),$),o,$,p,u,i?H:$);break;default:e(Y,V,V,V,[""],$,0,u,$)}}}f=h=b=0,P=R=1,z=Y="",p=s;break;case 58:p=1+C(Y),b=k;default:if(P<1){if(123==B)--P;else if(125==B&&0==P++&&125==(O=I>0?_(M,--I):0,A--,10===O&&(A=1,T--),O))continue}switch(Y+=v(B),B*P){case 38:R=h>0?1:(Y+="\f",-1);break;case 44:u[f++]=(C(Y)-1)*R,R=1;break;case 64:45===U()&&(Y+=L(N())),y=U(),h=p=C(z=Y+=function(e){for(;!F(U());)N();return S(M,e,I)}(I)),B++;break;case 45:45===k&&2==C(Y)&&(P=0)}}return a}("",null,null,null,[""],(h=f=o||i?"".concat(o," ").concat(i," { ").concat(y," }"):y,T=A=1,P=C(M=h),I=0,f=[]),0,[0],f),M="",p);a.namespace&&(b=function e(t,r){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(r," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(r," ")),t.props=t.props.map(function(e){return"".concat(r," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,r)),t})}(b,a.namespace));var k=[];return B(b,(l=(u=c.concat(function(e){var t;!e.root&&(e=e.return)&&(t=e,k.push(t))})).length,function(e,t,r,n){for(var i="",o=0;o<l;o++)i+=u[o](e,t,r,n)||"";return i})),k};return h.hash=u.length?u.reduce(function(e,t){return t.name||ej(15),ec(e,t.name)},5381).toString():"",h}var e1=new eQ,e2=e0(),e3=o.createContext({shouldForwardProp:void 0,styleSheet:e1,stylis:e2}),e4=(e3.Consumer,o.createContext(void 0));function e5(){return(0,o.useContext)(e3)}function e6(e){var t=(0,o.useState)(e.stylisPlugins),r=t[0],n=t[1],i=e5().styleSheet,a=(0,o.useMemo)(function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,i]),u=(0,o.useMemo)(function(){return e0({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,o.useEffect)(function(){s()(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var l=(0,o.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:a,stylis:u}},[e.shouldForwardProp,a,u]);return o.createElement(e3.Provider,{value:l},o.createElement(e4.Provider,{value:u},e.children))}var e9=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=e2);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eM(this,function(){throw ej(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e2),this.name+e.hash},e}();function e8(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;n>="A"&&n<="Z"?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var e7=function(e){return null==e||!1===e||""===e},te=function(e){var t,r=[];for(var n in e){var o=e[n];e.hasOwnProperty(n)&&!e7(o)&&(Array.isArray(o)&&o.isCss||eT(o)?r.push("".concat(e8(n),":"),o,";"):eO(o)?r.push.apply(r,i(i(["".concat(n," {")],te(o),!1),["}"],!1)):r.push("".concat(e8(n),": ").concat((t=n,null==o||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||t in $||t.startsWith("--")?String(o).trim():"".concat(o,"px")),";")))}return r};function tt(e,t,r,n){return e7(e)?[]:eA(e)?[".".concat(e.styledComponentId)]:eT(e)?!eT(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:tt(e(t),t,r,n):e instanceof e9?r?(e.inject(r,n),[e.getName(n)]):[e]:eO(e)?te(e):Array.isArray(e)?Array.prototype.concat.apply(ee,e.map(function(e){return tt(e,t,r,n)})):[e.toString()]}function tr(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(eT(r)&&!eA(r))return!1}return!0}var tn=ed(K),ti=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&tr(e),this.componentId=t,this.baseHash=ec(tn,t),this.baseStyle=r,eQ.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash){if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=eP(n,this.staticRulesId);else{var i=eI(tt(this.rules,e,t,r)),o=eu(ec(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}n=eP(n,o),this.staticRulesId=o}}else{for(var s=ec(this.baseHash,r.hash),u="",l=0;l<this.rules.length;l++){var c=this.rules[l];if("string"==typeof c)u+=c;else if(c){var d=eI(tt(c,e,t,r));s=ec(s,d+l),u+=d}}if(u){var f=eu(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,r(u,".".concat(f),void 0,this.componentId)),n=eP(n,f)}}return n},e}(),to=o.createContext(void 0);to.Consumer;var ta={};function ts(e,t,r){var i,a,s,u,l=eA(e),c=!ef(e),d=t.attrs,f=void 0===d?ee:d,h=t.componentId,p=void 0===h?(i=t.displayName,a=t.parentComponentId,ta[s="string"!=typeof i?"sc":eo(i)]=(ta[s]||0)+1,u="".concat(s,"-").concat(eu(ed(K+s+ta[s])>>>0)),a?"".concat(a,"-").concat(u):u):h,m=t.displayName,v=void 0===m?ef(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):m,y=t.displayName&&t.componentId?"".concat(eo(t.displayName),"-").concat(t.componentId):t.componentId||p,b=l&&e.attrs?e.attrs.concat(f).filter(
206Boolean):f,w=t.shouldForwardProp;if(l&&e.shouldForwardProp){var x=e.shouldForwardProp;if(t.shouldForwardProp){var _=t.shouldForwardProp;w=function(e,t){return x(e,t)&&_(e,t)}}else w=x}var S=new ti(r,y,l?e.componentStyle:void 0);function C(e,t){return function(e,t,r){var i,a,s=e.attrs,u=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,d=e.styledComponentId,f=e.target,h=o.useContext(to),p=e5(),m=e.shouldForwardProp||p.shouldForwardProp,v=(void 0===(i=l)&&(i=et),t.theme!==i.theme&&t.theme||h||i.theme||et),y=function(e,t,r){for(var i,o=n(n({},t),{className:void 0,theme:r}),a=0;a<e.length;a+=1){var s=eT(i=e[a])?i(o):i;for(var u in s)o[u]="className"===u?eP(o[u],s[u]):"style"===u?n(n({},o[u]),s[u]):s[u]}return t.className&&(o.className=eP(o.className,t.className)),o}(s,t,v),b=y.as||f,w={};for(var x in y)void 0===y[x]||"$"===x[0]||"as"===x||"theme"===x&&y.theme===v||("forwardedAs"===x?w.as=y.forwardedAs:m&&!m(x,b)||(w[x]=y[x]));var _=(a=e5(),u.generateAndInjectStyles(y,a.styleSheet,a.stylis)),S=eP(c,d);return _&&(S+=" "+_),y.className&&(S+=" "+y.className),w[ef(b)&&!er.has(b)?"class":"className"]=S,w.ref=r,(0,o.createElement)(b,w)}(E,e,t)}C.displayName=v;var E=o.forwardRef(C);return E.attrs=b,E.componentStyle=S,E.displayName=v,E.shouldForwardProp=w,E.foldedComponentIds=l?eP(e.foldedComponentIds,e.styledComponentId):"",E.styledComponentId=y,E.target=l?e.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=l?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)(function e(t,r,n){if(void 0===n&&(n=!1),!n&&!eO(t)&&!Array.isArray(t))return r;if(Array.isArray(r))for(var i=0;i<r.length;i++)t[i]=e(t[i],r[i]);else if(eO(r))for(var i in r)t[i]=e(t[i],r[i]);return t})(e,t[n],!0);return e}({},e.defaultProps,t):t}}),eM(E,function(){return".".concat(E.styledComponentId)}),c&&function e(t,r,n){if("string"!=typeof r){if(ek){var i=eE(r);i&&i!==ek&&e(t,i,n)}var o=e_(r);eS&&(o=o.concat(eS(r)));for(var a=ew(t),s=ew(r),u=0;u<o.length;++u){var l=o[u];if(!(l in ev||n&&n[l]||s&&l in s||a&&l in a)){var c=eC(r,l);try{ex(t,l,c)}catch(e){}}}}return t}(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function tu(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r}var tl=function(e){return Object.assign(e,{isCss:!0})};function tc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return eT(e)||eO(e)?tl(tt(tu(ee,i([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?tt(e):tl(tt(tu(e,t)))}var td=function(e){return function e(t,r,o){if(void 0===o&&(o=et),!r)throw ej(1,r);var a=function(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return t(r,o,tc.apply(void 0,i([e],n,!1)))};return a.attrs=function(i){return e(t,r,n(n({},o),{attrs:Array.prototype.concat(o.attrs,i).filter(Boolean)}))},a.withConfig=function(i){return e(t,r,n(n({},o),i))},a}(ts,e)},tf=td;function th(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=eI(tc.apply(void 0,i([e],t,!1))),o=eu(ed(n)>>>0);return new e9(o,n)}er.forEach(function(e){tf[e]=td(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=tr(e),eQ.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,r,n){var i=n(eI(tt(this.rules,t,r,n)),""),o=this.componentId+e;r.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&eQ.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=r.nc,i=eI([n&&'nonce="'.concat(n,'"'),"".concat(Y,'="true"'),"".concat(G,'="').concat(K,'"')].filter(Boolean)," ");return"<style ".concat(i,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw ej(2);return e._emitSheetCSS()}
206,this.getStyleElement=function(){if(e.sealed)throw ej(2);var t,i=e.instance.toString();if(!i)return[];var a=((t={})[Y]="",t[G]=K,t.dangerouslySetInnerHTML={__html:i},t),s=r.nc;return s&&(a.nonce=s),[o.createElement("style",n({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eQ({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw ej(2);return o.createElement(e6,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw ej(3)}}()},56249:function(){},64836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},18698:function(e){function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},55481:function(e,t,r){"use strict";r.d(t,{U:function(){return o}});var n=r(67294),i=r(16489);let o=n.createContext({theme:(0,i.j)()})},16489:function(e,t,r){"use strict";r.d(t,{j:function(){return u}});var n=r(25547),i=r(17460),o=r(53167),a=r(10944);let s=({token:e,path:t})=>{let r=`--${(0,a.Sn)({path:t})}`,{value:n}=e,i=(0,a.Es)(e);return{name:r,original:n,path:t,value:i,toString:()=>`var(${r})`}};function u(e,t=o.u){let r=n([{},t,e]),u=(0,a.s$)({tokens:r.tokens,setupToken:s}),{breakpoints:l,name:c}=r,d=`[data-amplify-theme="${c}"] {
207`+i(u).map(e=>`${e.name}: ${e.value};`).join("\n")+"\n}\n",f=[];return r.overrides&&(f=r.overrides.map(e=>{let t=(0,a.s$)({tokens:e.tokens,setupToken:s}),n=i(t).map(e=>`${e.name}: ${e.value};`).join("\n");if("selector"in e&&(d+=`
208${e.selector} {
209${n}
210}
211`),"mediaQuery"in e&&(d+=`
212@media (${e.mediaQuery}) {
213  [data-amplify-theme="${c}"] {
214    ${n}
215  }
216}
217`),"breakpoint"in e){let t=r.breakpoints.values[e.breakpoint];d+=`
218@media (min-width: ${t}px) {
219  [data-amplify-theme="${c}"] {
220    ${n}
221  }
222}
223`}return"colorMode"in e&&(d+=`
224@media (prefers-color-scheme: ${e.colorMode}) {
225          [data-amplify-theme="${c}"][data-amplify-color-mode="system"] {
226${n}
227}
228        }
229
230[data-amplify-theme="${c}"][data-amplify-color-mode="${e.colorMode}"] {
231${n}
232}
233`),Object.assign(Object.assign({},e),{tokens:t})})),{tokens:u,breakpoints:l,name:c,cssText:d,overrides:f}}},53167:function(e,t,r){"use strict";r.d(t,{u:function(){return s}});let n={dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.brand.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{borderColor:{value:"{colors.border.secondary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},justifyContent:{value:"space-between"}}}},i=Object.assign(Object.assign({},n),{filelist:{flexDirection:"column",gap:"{space.small}"}}
233),o={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}},a={zero:{value:"0"},xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375em"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"},full:{value:"100%"}}};o.xxs,o.xs,o.small,o.medium,o.large,o.xl,o.xxl,o.xxxl,a.xxxs,a.xs,a.small,a.medium,a.large,a.xl,a.xxl,a.xxxl;let s={tokens:{components:{alert:{alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}},authenticator:{maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},autocomplete:{menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.brand.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},badge:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}},button:{fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{space.zero.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},card:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"}
233,borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}},checkbox:{cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}}},icon:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}},checkboxfield:{alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},collection:{pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},copy:{fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},countrycodeselect:{height:{value:"{space.relative.full.value}"}},divider:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},expander:{display:{value:"block"},backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},width:{value:"100%"},item:{marginTop:{value:"1px"},boxShadow:{value:"{shadows.small.value}"},borderBottomLeftRadius:{value:"{radii.medium.value}"},borderBottomRightRadius:{value:"{radii.medium.value}"},borderTopLeftRadius:{value:"{radii.medium.value}"},borderTopRightRadius:{value:"{radii.medium.value}"},borderStartStartRadius:{value:"{radii.medium.value}"},borderStartEndRadius:{value:"{radii.medium.value}"},borderEndStartRadius:{value:"{radii.medium.value}"},borderEndEndRadius:{value:"{radii.medium.value}"},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},header:{boxShadow:{value:{offsetX:"0",offsetY:"1px",blurRadius:"0",color:"{colors.overlay.20.value}"}}},trigger:{minHeight:{value:"3rem"},paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},alignItems:{value:"center"},justifyContent:{value:"space-between"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}}},content:{paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},text:{color:{value:"{colors.font.secondary.value}"},paddingBlockStart:{value:"{space.medium.value}"},paddingBlockEnd:{value:"{space.medium.value}"}},_open:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}},_closed:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},icon:{transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},field:{gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},flexDirection:{value:"column"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}},fieldcontrol:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}
233,quiet:{borderStyle:{value:"none"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.focus.value}",blurRadius:"0px"}}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.error.value}",blurRadius:"0px"}}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.error.value}"}}}}},fieldgroup:{gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},fieldmessages:{error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}},fileuploader:n,flex:{gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},heading:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},icon:{lineHeight:{value:1},height:{value:"1em"}},highlightmatch:{highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},image:{maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},inappmessaging:{banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},link:{active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},liveness:{cameraModule:{backgroundColor:{value:"{colors.black}"}}},loader:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.medium.value}"},strokeWidth:{value:"{fontSizes.medium.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{strokeWidth:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.large.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},menu:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}},pagination:{current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}}
233,itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}},passwordfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},phonenumberfield:{color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},placeholder:{borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}},radio:{alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.brand.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},radiogroup:{radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},label:{color:{value:"{components.field.label.color}"}}},rating:{large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.brand.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},searchfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},select:{paddingInlineEnd:{value:"{space.xxl.value}"},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"}},option:{backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"}},large:{minWidth:{value:"7.5rem"}}},selectfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},sliderfield:{paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"}
233,height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}},stepperfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},storagemanager:i,switchfield:{_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.brand.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},table:{borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}},tabs:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"}
233,gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{color:{value:"{colors.font.hover.value}"}},_focus:{color:{value:"{colors.font.focus.value}"}},_active:{color:{value:"{colors.font.interactive.value}"},borderColor:{value:"{colors.font.interactive.value}"},backgroundColor:{value:"transparent"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}}}},text:{color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}},textareafield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},textfield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},togglebutton:{borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.brand.primary.60.value}"},backgroundColor:{value:"{colors.brand.primary.60.value}"},boxShadow:{value:"{colors.brand.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},togglebuttongroup:{alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}},borderWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},colors:{red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},brand:{primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.brand.primary.80.value}"},hover:{value:"{colors.brand.primary.90.value}"},focus:{value:"{colors.brand.primary.100.value}"},active:{value:"{colors.brand.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.20.value}"},warning:{value:"{colors.orange.20.value}"},error:{value:"{colors.red.20.value}"},success:{value:"{colors.green.20.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},pressed:{value:"{colors.brand.primary.100.value}"},focus:{value:"{colors.brand.primary.100.value}"},error:{value:"{colors.red.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"}
233,60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}},fonts:{default:{variable:{value:"'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,\n        'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',\n        sans-serif"},static:{value:"'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',\n        'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif"}}},fontSizes:o,fontWeights:{hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}},lineHeights:{small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},opacities:{0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}},outlineOffsets:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},outlineWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},radii:{xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},shadows:{small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}},space:a,time:{short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},transforms:{slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}}},breakpoints:{values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},name:"default-theme"}},10944:function(e,t,r){"use strict";r.d(t,{Dr:function(){return c},Es:function(){return u},Sn:function(){return l},s$:function(){return function e({tokens:t,path:r=[],setupToken:n}){if((0,o.e$)(t,"value"))return n({token:t,path:r});let i={};for(let a in t)if((0,o.e$)(t,a)){let s=t[a],u=(0,o.Kn)(s)?s:{value:s};i[a]=e({tokens:u,path:r.concat(a),setupToken:n})}return i}}});var n=r(21804),i=r(46239),o=r(47297);let a=["offsetX","offsetY","blurRadius","spreadRadius","color"];function s(e){return e?i(e)?`var(--${l({path:e.replace(/\{|\}/g,"").replace(".value","").split(".")})})`:e:""}function u(e){let{value:t}=e;return(0,o.HD)(t)?s(t):d(t)?a.map(r=>s(d(e)?e[r]:t[r])).join(" "):t}function l({path:e=[]}){return`${n(["amplify",...e].join(" "))}`}function c(e){return(0,o.Kn)(e)&&(0,o.e$)(e,"value")}function d(e){return(0,o.Kn)(e)&&(0,o.e$)(e,"offsetX")}},47297:function(e,t,r){"use strict";r.d(t,{Cp:function(){return n},HD:function(){return o},Kn:function(){return i},T2:function(){return l},e$:function(){return a},mf:function(){return s},wq:function(){return u}});let n=e=>{var t;let r=Object.assign({default:void 0},e);return null!==(t=r.default)&&void 0!==t?t:r};function i(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function o(e){return"string"==typeof e||"object"==typeof e&&"[object String]"===Object.prototype.toString.call(e)}function a(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function s(e){return"function"==typeof e}let u=(e,t)=>t?`${e}--${t}`:"",l=(e,t,r)=>r?`${e}--${t}`:""},87462:function(e,t,r){"use strict";function n(){return(n=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}).apply(null,arguments)}r.d(t,{Z:function(){return n}})},71002: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})(e)}r.d(t,{Z:function(){return n}})},60811:function(e,t,r){"use strict";r.d(t,{G:function(){return d}});var n=r(13533),i=r(43927),o=r(41745);class a{constructor(e,t){let r,n;r=e||new i.s,n=t||new i.s,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return(0,o.J8)(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}
233getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function s(){let e=(0,n.cu)(),t=(0,n.qA)(e);return t.stack=t.stack||new a((0,n.YO)("defaultCurrentScope",()=>new i.s),(0,n.YO)("defaultIsolationScope",()=>new i.s))}function u(e){return s().withScope(e)}function l(e,t){let r=s();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function c(e){return s().withScope(()=>e(s().getIsolationScope()))}function d(e){let t=(0,n.qA)(e);return t.acs?t.acs:{withIsolationScope:c,withScope:u,withSetScope:l,withSetIsolationScope:(e,t)=>c(t),getCurrentScope:()=>s().getScope(),getIsolationScope:()=>s().getIsolationScope()}}},13533:function(e,t,r){"use strict";r.d(t,{YO:function(){return s},cu:function(){return o},qA:function(){return a}});var n=r(39494),i=r(51597);function o(){return a(i.n),i.n}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n.J,t[n.J]=t[n.J]||{}}function s(e,t,r=i.n){let o=r.__SENTRY__=r.__SENTRY__||{},a=o[n.J]=o[n.J]||{};return a[e]||(a[e]=t())}},73243:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="production"},73076:function(e,t,r){"use strict";r.d(t,{$e:function(){return c},XX:function(){return f},aF:function(){return u},lW:function(){return l},nZ:function(){return s},s3:function(){return d}});var n=r(60811),i=r(13533),o=r(43927),a=r(8151);function s(){let e=(0,i.cu)(),t=(0,n.G)(e);return t.getCurrentScope()}function u(){let e=(0,i.cu)(),t=(0,n.G)(e);return t.getIsolationScope()}function l(){return(0,i.YO)("globalScope",()=>new o.s)}function c(...e){let t=(0,i.cu)(),r=(0,n.G)(t);if(2===e.length){let[t,n]=e;return t?r.withSetScope(t,n):r.withScope(n)}return r.withScope(e[0])}function d(){return s().getClient()}function f(e){let t=e.getPropagationContext(),{traceId:r,parentSpanId:n,propagationSpanId:i}=t,o={trace_id:r,span_id:i||(0,a.M)()};return n&&(o.parent_span_id=n),o}},94223:function(e,t,r){"use strict";r.d(t,{X:function(){return n}});let n=!1},39424:function(e,t,r){"use strict";r.d(t,{Qy:function(){return p},Tb:function(){return l},_k:function(){return h},cg:function(){return b},eN:function(){return c},v:function(){return d},yj:function(){return m},yl:function(){return f}});var n=r(73076),i=r(94223),o=r(10042),a=r(5824),s=r(5312),u=r(51597);function l(e,t){return(0,n.nZ)().captureException(e,(0,s.U0)(t))}function c(e,t){return(0,n.nZ)().captureEvent(e,t)}function d(e,t){(0,n.aF)().setContext(e,t)}async function f(e){let t=(0,n.s3)();return t?t.flush(e):(i.X&&a.fF.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function h(){let e=(0,n.s3)();return!1!==e?.getOptions().enabled&&!!e?.getTransport()}function p(e){(0,n.aF)().addEventProcessor(e)}function m(e){let t=(0,n.aF)(),r=(0,n.nZ)(),{userAgent:i}=u.n.navigator||{},a=(0,o.Hv)({user:r.getUser()||t.getUser(),...i&&{userAgent:i},...e}),s=t.getSession();return s?.status==="ok"&&(0,o.CT)(s,{status:"exited"}),v(),t.setSession(a),a}function v(){let e=(0,n.aF)(),t=(0,n.nZ)(),r=t.getSession()||e.getSession();r&&(0,o.RJ)(r),y(),e.setSession()}function y(){let e=(0,n.aF)(),t=(0,n.s3)(),r=e.getSession();r&&t&&t.captureSession(r)}function b(e=!1){if(e){v();return}y()}},43927:function(e,t,r){"use strict";r.d(t,{s:function(){return h}});var n=r(94223),i=r(10042),o=r(5824),a=r(41745),s=r(3613),u=r(34156),l=r(8151),c=r(89366),d=r(57360),f=r(90772);class h{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:(0,l.H)(),sampleRand:Math.random()}}clone(){let e=new h;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,(0,c.D)(e,(0,c.Y)(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&(0,i.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,r=t instanceof h?t.getScopeData():(0,a.PO)(t)?e:void 0,{tags:n,extra:i,user:o,contexts:s,level:u,fingerprint:l=[],propagationContext:c}=r||{};return this._tags={...this._tags,...n},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),u&&(this._level=u),l.length&&(this._fingerprint=l),c&&
233(this._propagationContext=c),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,(0,c.D)(this,void 0),this._attachments=[],this.setPropagationContext({traceId:(0,l.H)(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:100;if(r<=0)return this;let n={timestamp:(0,f.yW)(),...e,message:e.message?(0,d.$G)(e.message,2048):e.message};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:(0,c.Y)(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=(0,s.T)(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||(0,u.DM)();if(!this._client)return n.X&&o.fF.warn("No client configured on scope - will not capture exception!"),r;let i=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){let i=r?.event_id||(0,u.DM)();if(!this._client)return n.X&&o.fF.warn("No client configured on scope - will not capture message!"),i;let a=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...r,event_id:i},this),i}captureEvent(e,t){let r=t?.event_id||(0,u.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(n.X&&o.fF.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}},31218:function(e,t,r){"use strict";r.d(t,{$J:function(){return a},E1:function(){return l},JQ:function(){return h},S3:function(){return s},TE:function(){return i},Wb:function(){return c},Zj:function(){return n},iT:function(){return o},ju:function(){return u},lH:function(){return p},p6:function(){return f},xF:function(){return d}});let n="sentry.source",i="sentry.sample_rate",o="sentry.previous_trace_sample_rate",a="sentry.op",s="sentry.origin",u="sentry.idle_span_finish_reason",l="sentry.measurement_unit",c="sentry.measurement_value",d="sentry.custom_span_name",f="sentry.profile_id",h="sentry.exclusive_time",p="sentry.link.type"},10042:function(e,t,r){"use strict";r.d(t,{CT:function(){return a},Hv:function(){return o},RJ:function(){return s}});var n=r(34156),i=r(90772);function o(e){let t=(0,i.ph)(),r={sid:(0,n.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>({sid:`${r.sid}`,init:r.init,started:new Date(1e3*r.started).toISOString(),timestamp:new Date(1e3*r.timestamp).toISOString(),status:r.status,errors:r.errors,did:"number"==typeof r.did||"string"==typeof r.did?`${r.did}`:void 0,duration:r.duration,abnormal_mechanism:r.abnormal_mechanism,attrs:{release:r.release,environment:r.environment,ip_address:r.ipAddress,user_agent:r.userAgent}})};return e&&a(r,e),r}function a(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,n.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function s(e,t){let r={};t?r={status:t}:"ok"===e.status&&(r={status:"exited"}),a(e,r)}},72123:function(e,t,r){"use strict";r.d(t,{CG:function(){return m},Lh:function(){return h},jC:function(){return v}});var n=r(73243),i=r(73076),o=r(31218),a=r(15197),s=r(52637),u=r(51072),l=r(93820),c=r(81585),d=r(96515);let f="_frozenDsc";function h(e,t){(0,l.xp)(e,f,t)}function p(e,t){let r;let i=t.getOptions(),{publicKey:o,host:a}=t.getDsn()||{};i.orgId?r=String(i.orgId):a&&(r=(0,s.so)(a));let u={environment:i.environment||n.J,release:i.release,public_key:o,trace_id:e,org_id:r};return t.emit("createDsc",u),u}function m(e,t){let r=t.getPropagationContext();return r.dsc||p(r.traceId,e)}function v(e){let t=(0,i.s3)();if(!t)return{};let r=(0,c.Gx)(e),n=(0,c.XU)(r),s=n.data,l=r.spanContext().traceState,h=l?.get("sentry.sample_rate")??s[o.TE]??s[o.iT];function m(e){return("number"==typeof h||"string"==typeof h)&&(e.sample_rate=`${h}`),e}let v=r[f];if(v)return m(v);let y=l?.get("sentry.dsc"),b=y&&(0,a.EN)(y);if(b)return m(b);let w=p(e.spanContext().traceId,t),x=s[o.Zj],_=n.description;return"url"!==x&&_&&(w.transaction=_),(0,u.f)()&&(w.sampled=String((0,c.Tt)(r)),w.sample_rand=l?.get("sentry.sample_rand")??d.I(r).scope?.getPropagationContext().sampleRand.toString()),m(w),t.emit("createDsc",w,r),w}},69737:function(e,t,r){"use strict";r.d(t,{OP:function(){return i},Q0:function(){return a},jt:function(){return o},pq:function(){return n}});let n=0,i=1,o=2;function a(e,t){e.setAttribute("http.response.status_code",t);let r=function(e){if(e<400&&e>=100)return{code:i};if(e>=400&&e<500)switch(e){case 401:return{code:o,message:"unauthenticated"};case 403:return{code:o,message:"permission_denied"};case 404:return{code:o,message:"not_found"};case 409:return{code:o,message:"already_exists"};case 413:return{code:o,message:"failed_precondition"};case 429:return{code:o,message:"resource_exhausted"};case 499:return{code:o,message:"cancelled"};default:return{code:o,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:o,message:"unimplemented"};case 503:return{code:o,message:"unavailable"};case 504:return{code:o,message:"deadline_exceeded"};default:return{code:o,message:"internal_error"}}return{code:o,message:"unknown_error"}}(t);"unknown_error"!==r.message&&e.setStatus(r)}},96515:function(e,t,r){"use strict";r.d(t,{I:function(){return s},Y:function(){return a}});var n=r(93820);let i="_sentryScope",o="_sentryIsolationScope";function a(e,t,r){e&&((0,n.xp)(e,o,r),(0,n.xp)(e,i,t))}function s(e){return{scope:e[i],isolationScope:e[o]}}},15197:function(e,t,r){"use strict";r.d(t,{EN:function(){return u},IQ:function(){return l},XM:function(){return c},lq:function(){return a}});var n=r(94223),i=r(5824),o=r(41745);let a="sentry-",s=/^sentry-/;function u(e){let t=c(e);if(!t)return;let r=Object.entries(t).reduce((e,[t,r])=>
233{if(t.match(s)){let n=t.slice(a.length);e[n]=r}return e},{});return Object.keys(r).length>0?r:void 0}function l(e){if(!e)return;let t=Object.entries(e).reduce((e,[t,r])=>(r&&(e[`${a}${t}`]=r),e),{});return function(e){if(0!==Object.keys(e).length)return Object.entries(e).reduce((e,[t,r],o)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,s=0===o?a:`${e},${a}`;return s.length>8192?(n.X&&i.fF.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),e):s},"")}(t)}function c(e){return e&&((0,o.HD)(e)||Array.isArray(e))?Array.isArray(e)?e.reduce((e,t)=>{let r=d(t);return Object.entries(r).forEach(([t,r])=>{e[t]=r}),e},{}):d(e):void 0}function d(e){return e.split(",").map(e=>e.split("=").map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}},38143:function(e,t,r){"use strict";r.d(t,{Rt:function(){return a},iY:function(){return u},l4:function(){return s}});var n=r(41745),i=r(51597);let o=i.n;function a(e,t={}){if(!e)return"<unknown>";try{let r,i=e,a=[],s=0,u=0,l=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||80;for(;i&&s++<5&&(r=function(e,t){let r=[];if(!e?.tagName)return"";if(o.HTMLElement&&e instanceof HTMLElement&&e.dataset){if(e.dataset.sentryComponent)return e.dataset.sentryComponent;if(e.dataset.sentryElement)return e.dataset.sentryElement}r.push(e.tagName.toLowerCase());let i=t?.length?t.filter(t=>e.getAttribute(t)).map(t=>[t,e.getAttribute(t)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{e.id&&r.push(`#${e.id}`);let t=e.className;if(t&&(0,n.HD)(t)){let e=t.split(/\s+/);for(let t of e)r.push(`.${t}`)}}for(let t of["aria-label","type","name","title","alt"]){let n=e.getAttribute(t);n&&r.push(`[${t}="${n}"]`)}return r.join("")}(i,l),"html"!==r&&(!(s>1)||!(u+3*a.length+r.length>=c)));)a.push(r),u+=r.length,i=i.parentNode;return a.reverse().join(" > ")}catch{return"<unknown>"}}function s(){try{return o.document.location.href}catch{return""}}function u(e){if(!o.HTMLElement)return null;let t=e;for(let e=0;e<5&&t;e++){if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}},5824:function(e,t,r){"use strict";r.d(t,{Cf:function(){return u},LD:function(){return s},RU:function(){return a},fF:function(){return f}});var n=r(13533),i=r(94223),o=r(51597);let a=["debug","info","warn","error","log","assert","trace"],s={};function u(e){if(!("console"in o.n))return e();let t=o.n.console,r={},n=Object.keys(s);n.forEach(e=>{let n=s[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}function l(){return d().enabled}function c(e,...t){i.X&&l()&&u(()=>{o.n.console[e](`Sentry Logger [${e}]:`,...t)})}function d(){return i.X?(0,n.YO)("loggerSettings",()=>({enabled:!1})):{enabled:!1}}let f={enable:function(){d().enabled=!0},disable:function(){d().enabled=!1},isEnabled:l,log:function(...e){c("log",...e)},warn:function(...e){c("warn",...e)},error:function(...e){c("error",...e)}}},52637:function(e,t,r){"use strict";r.d(t,{RA:function(){return s},U4:function(){return u},so:function(){return c},vK:function(){return d}});var n=r(94223),i=r(5824);let o=/^o(\d+)\./,a=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function s(e,t=!1){let{host:r,path:n,pass:i,port:o,projectId:a,protocol:s,publicKey:u}=e;return`${s}://${u}${t&&i?`:${i}`:""}@${r}${o?`:${o}`:""}/${n?`${n}/`:n}${a}`}function u(e){let t=a.exec(e);if(!t){(0,i.Cf)(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,o="",s="",u="",c=""]=t.slice(1),d="",f=c,h=f.split("/");if(h.length>1&&(d=h.slice(0,-1).join("/"),f=h.pop()),f){let e=f.match(/^\d+/);e&&(f=e[0])}return l({host:s,pass:o,path:d,projectId:f,port:u,protocol:r,publicKey:n})}function l(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c(e){let t=e.match(o);return t?.[1]}function d(e){let t="string"==typeof e?u(e):l(e);if(t&&function(e){if(!n.X)return!0;let{port:t,projectId:r,protocol:o}=e,a=["protocol","publicKey","host","projectId"].find(t=>!e[t]&&(i.fF.error(`Invalid Sentry Dsn: ${t} missing`),!0));return!a&&(r.match(/^\d+$/)?"http"===o||"https"===o?!(t&&isNaN(parseInt(t,10)))||(i.fF.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(i.fF.error(`Invalid Sentry Dsn: Invalid protocol ${o}`),!1):(i.fF.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1))}(t))return t}},51072:function(e,t,r){"use strict";r.d(t,{f:function(){return i}});var n=r(73076);function i(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;let t=e||n.s3()?.getOptions();return!!t&&(null!=t.tracesSampleRate||!!t.tracesSampler)}},41745:function(e,t,r){"use strict";r.d(t,{Cy:function(){return y},HD:function(){return l},J8:function(){return v},Kj:function(){return m},Le:function(){return c},PO:function(){return f},TX:function(){return s},V9:function(){return b},VW:function(){return a},VZ:function(){return i},cO:function(){return h},fm:function(){return u},gJ:function(){return x},kK:function(){return p},pt:function(){return d},y1:function(){return w}});let n=Object.prototype.toString;function i(e){switch(n.call(e)){case"[object Error]":case"[object E
233xception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return b(e,Error)}}function o(e,t){return n.call(e)===`[object ${t}]`}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function l(e){return o(e,"String")}function c(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function d(e){return null===e||c(e)||"object"!=typeof e&&"function"!=typeof e}function f(e){return o(e,"Object")}function h(e){return"undefined"!=typeof Event&&b(e,Event)}function p(e){return"undefined"!=typeof Element&&b(e,Element)}function m(e){return o(e,"RegExp")}function v(e){return Boolean(e?.then&&"function"==typeof e.then)}function y(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function b(e,t){try{return e instanceof t}catch{return!1}}function w(e){return!!("object"==typeof e&&null!==e&&(e.__isVue||e._isVue))}function x(e){return"undefined"!=typeof Request&&b(e,Request)}},3613:function(e,t,r){"use strict";r.d(t,{T:function(){return function e(t,r,n=2){if(!r||"object"!=typeof r||n<=0)return r;if(t&&0===Object.keys(r).length)return t;let i={...t};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=e(i[t],r[t],n-1));return i}}})},34156:function(e,t,r){"use strict";r.d(t,{DM:function(){return o},Db:function(){return u},EG:function(){return l},YO:function(){return c},jH:function(){return s}});var n=r(93820),i=r(51597);function o(e=function(){let e=i.n;return e.crypto||e.msCrypto}()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function a(e){return e.exception?.values?.[0]}function s(e){let{message:t,event_id:r}=e;if(t)return t;let n=a(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function u(e,t,r){let n=e.exception=e.exception||{},i=n.values=n.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=r||"Error")}function l(e,t){let r=a(e);if(!r)return;let n=r.mechanism;if(r.mechanism={type:"generic",handled:!0,...n,...t},t&&"data"in t){let e={...n?.data,...t.data};r.mechanism.data=e}}function c(e){if(function(e){try{return e.__sentry_captured__}catch{}}(e))return!0;try{(0,n.xp)(e,"__sentry_captured__",!0)}catch{}return!1}},77593:function(e,t,r){"use strict";r.d(t,{Fv:function(){return a},Qy:function(){return function e(t,r=3,n=102400){let i=a(t,r);return~-encodeURI(JSON.stringify(i)).split(/%..|./).length>n?e(t,r-1,n):i}}});var n=r(41745),i=r(93820),o=r(99603);function a(e,t=100,r=Infinity){try{return function e(t,r,a=Infinity,s=Infinity,u=function(){let e=new WeakSet;return[function(t){return!!e.has(t)||(e.add(t),!1)},function(t){e.delete(t)}]}()){let[l,c]=u;if(null==r||["boolean","string"].includes(typeof r)||"number"==typeof r&&Number.isFinite(r))return r;let d=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof global&&t===global)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if((0,n.y1)(t))return"[VueViewModel]";if((0,n.Cy)(t))return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return`[${t}]`;if("function"==typeof t)return`[Function: ${(0,o.$P)(t)}]`;if("symbol"==typeof t)return`[${String(t)}]`;if("bigint"==typeof t)return`[BigInt: ${String(t)}]`;let r=function(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}(t);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(e){return`**non-serializable** (${e})`}}(t,r);if(!d.startsWith("[object "))return d;if(r.__sentry_skip_normalization__)return r;let f="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:a;if(0===f)return d.replace("object ","");if(l(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let t=r.toJSON();return e("",t,f-1,s,u)}catch{}let h=Array.isArray(r)?[]:{},p=0,m=(0,i.Sh)(r);for(let t in m){if(!Object.prototype.hasOwnProperty.call(m,t))continue;if(p>=s){h[t]="[MaxProperties ~]";break}let r=m[t];h[t]=e(t,r,f-1,s,u),p++}return c(r),h}("",e,t,r)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}},93820:function(e,t,r){"use strict";r.d(t,{$Q:function(){return c},HK:function(){return d},Sh:function(){return f},hl:function(){return u},xp:function(){return l},zf:function(){return m}});
233var n=r(94223),i=r(38143),o=r(5824),a=r(41745),s=r(57360);function u(e,t,r){if(!(t in e))return;let i=e[t];if("function"!=typeof i)return;let a=r(i);"function"==typeof a&&c(a,i);try{e[t]=a}catch{n.X&&o.fF.log(`Failed to replace method "${t}" in object`,e)}}function l(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{n.X&&o.fF.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function c(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,l(e,"__sentry_original__",t)}catch{}}function d(e){return e.__sentry_original__}function f(e){if((0,a.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...p(e)};if(!(0,a.cO)(e))return e;{let t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...p(e)};return"undefined"!=typeof CustomEvent&&(0,a.V9)(e,CustomEvent)&&(t.detail=e.detail),t}}function h(e){try{return(0,a.kK)(e)?(0,i.Rt)(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function p(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function m(e,t=40){let r=Object.keys(f(e));r.sort();let n=r[0];if(!n)return"[object has no keys]";if(n.length>=t)return(0,s.$G)(n,t);for(let e=r.length;e>0;e--){let n=r.slice(0,e).join(", ");if(!(n.length>t)){if(e===r.length)return n;return(0,s.$G)(n,t)}}return""}},79769:function(e,t,r){"use strict";function n(e){if("boolean"==typeof e)return Number(e);let t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t))&&!(t<0)&&!(t>1))return t}r.d(t,{o:function(){return n}})},5312:function(e,t,r){"use strict";let n,i,o;r.d(t,{U0:function(){return E},R:function(){return C}});var a=r(73243),s=r(73076),u=r(94223),l=r(5824),c=r(41745),d=r(80157),f=r(43927),h=r(72123),p=r(3613),m=r(81585);function v(e,t){let{extra:r,tags:n,user:i,contexts:o,level:a,sdkProcessingMetadata:s,breadcrumbs:u,fingerprint:l,eventProcessors:c,attachments:d,propagationContext:f,transactionName:h,span:m}=t;y(e,"extra",r),y(e,"tags",n),y(e,"user",i),y(e,"contexts",o),e.sdkProcessingMetadata=(0,p.T)(e.sdkProcessingMetadata,s,2),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),l.length&&(e.fingerprint=[...e.fingerprint,...l]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...f}}function y(e,t,r){e[t]=(0,p.T)(e[t],r,1)}var b=r(51597),w=r(34156),x=r(77593),_=r(57360),S=r(90772);function C(e,t,r,p,y,C){var E;let{normalizeDepth:k=3,normalizeMaxBreadth:T=1e3}=e,A={...t,event_id:t.event_id||r.event_id||(0,w.DM)(),timestamp:t.timestamp||(0,S.yW)()},P=r.integrations||e.integrations.map(e=>e.name);(function(e,t){let{environment:r,release:n,dist:i,maxValueLength:o=250}=t;e.environment=e.environment||r||a.J,!e.release&&n&&(e.release=n),!e.dist&&i&&(e.dist=i);let s=e.request;s?.url&&(s.url=(0,_.$G)(s.url,o))})(A,e),E=A,P.length>0&&(E.sdk=E.sdk||{},E.sdk.integrations=[...E.sdk.integrations||[],...P]),y&&y.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){let r=function(e){let t=b.n._sentryDebugIds;if(!t)return{};let r=Object.keys(t);return o&&r.length===i?o:(i=r.length,o=r.reduce((r,i)=>{n||(n={});let o=n[i];if(o)r[o[0]]=o[1];else{let o=e(i);for(let e=o.length-1;e>=0;e--){let a=o[e],s=a?.filename,u=t[i];if(s&&u){r[s]=u,n[i]=[s,u];break}}}return r},{}))}(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=r[e.filename])})})}(A,e.stackParser);let I=function(e,t){if(!t)return e;let r=e?e.clone():new f.s;return r.update(t),r}(p,r.captureContext);r.mechanism&&(0,w.EG)(A,r.mechanism);let O=y?y.getEventProcessors():[],M=(0,s.lW)().getScopeData();if(C){let e=C.getScopeData();v(M,e)}if(I){let e=I.getScopeData();v(M,e)}let j=[...r.attachments||[],...M.attachments];j.length&&(r.attachments=j),function(e,t){var r,n;let{fingerprint:i,span:o,breadcrumbs:a,sdkProcessingMetadata:s}=t;(function(e,t){let{extra:r,tags:n,user:i,contexts:o,level:a,transactionName:s}=t;Object.keys(r).length&&(e.extra={...r,...e.extra}),Object.keys(n).length&&(e.tags={...n,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),a&&(e.level=a),s&&"transaction"!==e.type&&(e.transaction=s)})(e,t),o&&function(e,t){e.contexts={trace:(0,m.wy)(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,h.jC)(t),...e.sdkProcessingMetadata};let r=(0,m.Gx)(t),n=(0,m.XU)(r).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,o),(r=e).fingerprint=r.fingerprint?Array.isArray(r.fingerprint)?r.fingerprint:[r.fingerprint]:[],i&&(r.fingerprint=r.fingerprint.concat(i)),r.fingerprint.length||delete r.fingerprint,function(e,t){let r=[...e.breadcrumbs||[],...t];e.breadcrumbs=r.length?r:void 0}(e,a),(n=e).sdkProcessingMetadata={...n.sdkProcessingMetadata,...s}}(A,M);let D=[...O,...M.eventProcessors],R=function e(t,r,n,i=0){return new d.cW((o,a)=>{let s=t[i];if(null===r||"function"!=typeof s)o(r);else{let d=s({...r},n);u.X&&s.id&&null===d&&l.fF.log(`Event processor "${s.id}" dropped event`),(0,c.J8)(d)?d.then(r=>e(t,r,n,i+1).then(o)).then(null,a):e(t,d,n,i+1).then(o).then(null,a)}})}(D,A,r);return R.then(e=>(e&&function(e){let t={};
233if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let r=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{r.push({type:"sourcemap",code_file:e,debug_id:t})})}(e),"number"==typeof k&&k>0)?function(e,t,r){if(!e)return null;let n={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:(0,x.Fv)(e.data,t,r)}}))},...e.user&&{user:(0,x.Fv)(e.user,t,r)},...e.contexts&&{contexts:(0,x.Fv)(e.contexts,t,r)},...e.extra&&{extra:(0,x.Fv)(e.extra,t,r)}};return e.contexts?.trace&&n.contexts&&(n.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(n.contexts.trace.data=(0,x.Fv)(e.contexts.trace.data,t,r))),e.spans&&(n.spans=e.spans.map(e=>({...e,...e.data&&{data:(0,x.Fv)(e.data,t,r)}}))),e.contexts?.flags&&n.contexts&&(n.contexts.flags=(0,x.Fv)(e.contexts.flags,3,r)),n}(e,k,T):e)}function E(e){return e?e instanceof f.s||"function"==typeof e||Object.keys(e).some(e=>k.includes(e))?{captureContext:e}:e:void 0}let k=["user","level","extra","contexts","tags","fingerprint","propagationContext"]},8151:function(e,t,r){"use strict";r.d(t,{H:function(){return i},M:function(){return o}});var n=r(34156);function i(){return(0,n.DM)()}function o(){return(0,n.DM)().substring(16)}},89366:function(e,t,r){"use strict";r.d(t,{D:function(){return o},Y:function(){return a}});var n=r(93820);let i="_sentrySpan";function o(e,t){t?(0,n.xp)(e,i,t):delete e[i]}function a(e){return e[i]}},81585:function(e,t,r){"use strict";r.d(t,{$k:function(){return S},Dp:function(){return M},FF:function(){return _},Gx:function(){return j},HN:function(){return D},HR:function(){return b},Hb:function(){return x},R6:function(){return R},Tt:function(){return k},XU:function(){return E},_4:function(){return T},ed:function(){return O},i0:function(){return v},j5:function(){return I},ve:function(){return m},wy:function(){return w}});var n=r(60811),i=r(13533),o=r(73076),a=r(31218),s=r(69737),u=r(96515),l=r(93820),c=r(8151),d=r(90772),f=r(32616),h=r(5824),p=r(89366);let m=0,v=1,y=!1;function b(e){let{spanId:t,traceId:r}=e.spanContext(),{data:n,op:i,parent_span_id:o,status:a,origin:s,links:u}=E(e);return{parent_span_id:o,span_id:t,trace_id:r,data:n,op:i,status:a,origin:s,links:u}}function w(e){let{spanId:t,traceId:r,isRemote:n}=e.spanContext(),i=n?t:E(e).parent_span_id,o=(0,u.I)(e).scope,a=n?o?.getPropagationContext().propagationSpanId||(0,c.M)():t;return{parent_span_id:i,span_id:a,trace_id:r}}function x(e){let{traceId:t,spanId:r}=e.spanContext(),n=k(e);return(0,f.$p)(t,r,n)}function _(e){return e&&e.length>0?e.map(({context:{spanId:e,traceId:t,traceFlags:r,...n},attributes:i})=>({span_id:e,trace_id:t,sampled:r===v,attributes:i,...n})):void 0}function S(e){return"number"==typeof e?C(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?C(e.getTime()):(0,d.ph)()}function C(e){return e>9999999999?e/1e3:e}function E(e){if("function"==typeof e.getSpanJSON)return e.getSpanJSON();let{spanId:t,traceId:r}=e.spanContext();if(e.attributes&&e.startTime&&e.name&&e.endTime&&e.status){let{attributes:n,startTime:i,name:o,endTime:s,status:u,links:l}=e,c="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0;return{span_id:t,trace_id:r,data:n,description:o,parent_span_id:c,start_timestamp:S(i),timestamp:S(s)||void 0,status:T(u),op:n[a.$J],origin:n[a.S3],links:_(l)}}return{span_id:t,trace_id:r,start_timestamp:0,data:{}}}function k(e){let{traceFlags:t}=e.spanContext();return t===v}function T(e){return e&&e.code!==s.pq?e.code===s.OP?"ok":e.message||"unknown_error":void 0}let A="_sentryChildSpans",P="_sentryRootSpan";function I(e,t){let r=e[P]||e;(0,l.xp)(t,P,r),e[A]?e[A].add(t):(0,l.xp)(e,A,new Set([t]))}function O(e,t){e[A]&&e[A].delete(t)}function M(e){let t=new Set;return!function e(r){if(!t.has(r)&&k(r)){t.add(r);let n=r[A]?Array.from(r[A]):[];for(let t of n)e(t)}}(e),Array.from(t)}function j(e){return e[P]||e}function D(){let e=(0,i.cu)(),t=(0,n.G)(e);return t.getActiveSpan?t.getActiveSpan():(0,p.Y)((0,o.nZ)())}function R(){y||((0,h.Cf)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.")}),y=!0)}},99603:function(e,t,r){"use strict";r.d(t,{$P:function(){return c},Fi:function(){return n},Fr:function(){return d},Sq:function(){return s},pE:function(){return a}});let n="?",i=/\(error: (.*)\)/,o=/captureMessage|captureException/;function a(...e){let t=e.sort((e,t)=>
233e[0]-t[0]).map(e=>e[1]);return(e,r=0,a=0)=>{let s=[],l=e.split("\n");for(let e=r;e<l.length;e++){let r=l[e];if(r.length>1024)continue;let n=i.test(r)?r.replace(i,"$1"):r;if(!n.match(/\S*Error: /)){for(let e of t){let t=e(n);if(t){s.push(t);break}}if(s.length>=50+a)break}}return function(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(u(t).function||"")&&t.pop(),t.reverse(),o.test(u(t).function||"")&&(t.pop(),o.test(u(t).function||"")&&t.pop()),t.slice(0,50).map(e=>({...e,filename:e.filename||u(t).filename,function:e.function||n}))}(s.slice(a))}}function s(e){return Array.isArray(e)?a(...e):e}function u(e){return e[e.length-1]||{}}let l="<anonymous>";function c(e){try{if(!e||"function"!=typeof e)return l;return e.name||l}catch{return l}}function d(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{}}}},57360:function(e,t,r){"use strict";r.d(t,{$G:function(){return i},U0:function(){return a},nK:function(){return o}});var n=r(41745);function i(e,t=0){return"string"!=typeof e||0===t?e:e.length<=t?e:`${e.slice(0,t)}...`}function o(e,t){if(!Array.isArray(e))return"";let r=[];for(let t=0;t<e.length;t++){let i=e[t];try{(0,n.y1)(i)?r.push("[VueViewModel]"):r.push(String(i))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function a(e,t=[],r=!1){return t.some(t=>(function(e,t,r=!1){return!!(0,n.HD)(e)&&((0,n.Kj)(t)?t.test(e):!!(0,n.HD)(t)&&(r?e===t:e.includes(t)))})(e,t,r))}},80157:function(e,t,r){"use strict";r.d(t,{$2:function(){return o},WD:function(){return i},cW:function(){return a}});var n=r(41745);function i(e){return new a(t=>{t(e)})}function o(e){return new a((t,r)=>{r(e)})}class a{constructor(e){this._state=0,this._handlers=[],this._runExecutor(e)}then(e,t){return new a((r,n)=>{this._handlers.push([!1,t=>{if(e)try{r(e(t))}catch(e){n(e)}else r(t)},e=>{if(t)try{r(t(e))}catch(e){n(e)}else n(e)}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(e){return new a((t,r)=>{let n,i;return this.then(t=>{i=!1,n=t,e&&e()},t=>{i=!0,n=t,e&&e()}).then(()=>{if(i){r(n);return}t(n)})})}_executeHandlers(){if(0===this._state)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||(1===this._state&&e[1](this._value),2===this._state&&e[2](this._value),e[0]=!0)})}_runExecutor(e){let t=(e,t)=>{if(0===this._state){if((0,n.J8)(t)){t.then(r,i);return}this._state=e,this._value=t,this._executeHandlers()}},r=e=>{t(1,e)},i=e=>{t(2,e)};try{e(r,i)}catch(e){i(e)}}}},90772:function(e,t,r){"use strict";let n,i;r.d(t,{Z1:function(){return u},ph:function(){return s},yW:function(){return a}});var o=r(51597);function a(){return Date.now()/1e3}function s(){let e=n??(n=function(){let{performance:e}=o.n;if(!e?.now||!e.timeOrigin)return a;let t=e.timeOrigin;return()=>(t+e.now())/1e3}());return e()}function u(){return i||(i=function(){let{performance:e}=o.n;if(!e?.now)return[void 0,"none"];let t=e.now(),r=Date.now(),n=e.timeOrigin?Math.abs(e.timeOrigin+t-r):36e5,i=e.timing?.navigationStart,a="number"==typeof i?Math.abs(i+t-r):36e5;return n<36e5||a<36e5?n<=a?[e.timeOrigin,"timeOrigin"]:[i,"navigationStart"]:[r,"dateNow"]}()),i[0]}},32616:function(e,t,r){"use strict";r.d(t,{$p:function(){return u},Ke:function(){return a},pT:function(){return s}});var n=r(15197),i=r(79769),o=r(8151);let a=RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function s(e,t){let r=function(e){let t;if(!e)return;let r=e.match(a);if(r)return"1"===r[3]?t=!0:"0"===r[3]&&(t=!1),{traceId:r[1],parentSampled:t,parentSpanId:r[2]}}(e),s=(0,n.EN)(t);if(!r?.traceId)return{traceId:(0,o.H)(),sampleRand:Math.random()};let u=function(e,t){let r=(0,i.o)(t?.sample_rand);if(void 0!==r)return r;let n=(0,i.o)(t?.sample_rate);return n&&e?.parentSampled!==void 0?e.parentSampled?Math.random()*n:n+Math.random()*(1-n):Math.random()}(r,s);s&&(s.sample_rand=u.toString());let{traceId:l,parentSpanId:c,parentSampled:d}=r;return{traceId:l,parentSpanId:c,sampled:d,dsc:s||{},sampleRand:u}}function u(e=(0,o.H)(),t=(0,o.M)(),r){let n="";return void 0!==r&&(n=r?"-1":"-0"),`${e}-${t}${n}`}},39494:function(e,t,r){"use strict";r.d(t,{J:function(){return n}});let n="9.41.0"},51597:function(e,t,r){"use strict";r.d(t,{n:function(){return n}});let n=globalThis},30202:function(e,t,r){"use strict";r.d(t,{NL:function(){return a},aH:function(){return s}});var n=r(67294),i=r(85893),o=n.createContext(void 0),a=e=>{let t=n.useContext(o);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},s=({client:e,children:t})=>(n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,i.jsx)(o.Provider,{value:e,children:t}))},90512:function(e,t,r){"use strict";function n(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}r.d(t,{W:function(){return n}}),t.Z=n},85379:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};function o(e,t,r,n,i,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,r),s.setUTCHours(n,i,o,a),s}var a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2}
233)$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function s(e,t,r){if(!e||(n=a.timezoneZ.exec(e)))return 0;if(n=a.timezoneHH.exec(e))return l(s=parseInt(n[1],10))?-(36e5*s):NaN;if(n=a.timezoneHHMM.exec(e)){s=parseInt(n[2],10);var n,i,s,d=parseInt(n[3],10);return l(s,d)?(i=36e5*Math.abs(s)+6e4*d,"+"===n[1]?-i:i):NaN}if(function(e){if(c[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),c[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var f,h=u(r?t:o((f=t).getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()),e);return-(r?h:function(e,t,r){var n=e.getTime()-t,i=u(new Date(n),r);if(t===i)return t;n-=i-t;var o=u(new Date(n),r);return i===o?i:Math.max(i,o)}(t,h,e))}return NaN}function u(e,t){var r,a,s,u=(s=function(e){if(!i[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z"));i[e]="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[e]}(t)).formatToParts?function(e,t){try{for(var r=e.formatToParts(t),i=[],o=0;o<r.length;o++){var a=n[r[o].type];a>=0&&(i[a]=parseInt(r[o].value,10))}return i}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(s,e):(r=s.format(e),[(a=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r))[3],a[1],a[2],a[4],a[5],a[6]]),l=o(u[0],u[1]-1,u[2],u[3]%24,u[4],u[5],0).getTime(),c=e.getTime(),d=c%1e3;return l-(c-=d>=0?d:1e3+d)}function l(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var c={}},34117:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(15616);function i(e,t,r){var n,i,o=function(e,t,r){if(r&&!r.code)throw Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,r.timeZone,r.locale);return o.formatToParts?function(e,t){for(var r=e.formatToParts(t),n=r.length-1;n>=0;--n)if("timeZoneName"===r[n].type)return r[n].value}(o,t):(n=o.format(t).replace(/\u200E/g,""),(i=/ [\w-+ ]+$/.exec(n))?i[0].substr(1):"")}var o=r(85379);function a(e,t){var r=e?(0,o.Z)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(r))throw RangeError("Invalid time zone specified: "+e);return r}function s(e,t){for(var r=Math.abs(e).toString();r.length<t;)r="0"+r;return(e<0?"-":"")+r}function u(e,t){var r=Math.abs(e);return(e>0?"-":"+")+s(Math.floor(r/60),2)+(t||"")+s(Math.floor(r%60),2)}function l(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):u(e,t)}var c={X:function(e,t,r,n){var i=a(n.timeZone,e);if(0===i)return"Z";switch(t){case"X":return l(i);case"XXXX":case"XX":return u(i);default:return u(i,":")}},x:function(e,t,r,n){var i=a(n.timeZone,e);switch(t){case"x":return l(i);case"xxxx":case"xx":return u(i);default:return u(i,":")}},O:function(e,t,r,n){var i,o,l,c,d=a(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+(i=d>0?"-":"+",l=Math.floor((o=Math.abs(d))/60),0==(c=o%60)?i+String(l):i+String(l)+":"+s(c,2));default:return"GMT"+u(d,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return i("short",e,n);default:return i("long",e,n)}}},d=r(96492),f=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function h(e,t,r){var i=String(t),o=r||{},a=i.match(f);if(a){var s=(0,d.Z)(o.originalDate||e,o);i=a.reduce(function(e,t){if("'"===t[0])return e;var r=e.indexOf(t),n="'"===e[r-1],i=e.replace(t,"'"+c[t[0]](s,t,null,o)+"'");return n?i.substring(0,r-1)+i.substring(r+1):i},i)}return n(e,i,o)}},96492:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(82084),i=r(93561),o=r(85379),a={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function s(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var r=t||{},s=null==r.additionalDigits?2:n(r.additionalDigits);if(2!==s&&1!==s&&0!==s)throw RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var l=function(e){var t,r={},n=a.dateTimePattern.exec(e);if(n?(r.date=n[1],t=n[3]):(n=a.datePattern.exec(e))?(r.date=n[1],t=n[2]):(r.date=null,t=e),t){var i=a.timeZone.exec(t);i?(r.time=t.replace(i[1],""),r.timeZone=i[1].trim()):r.time=t}return r}(e),c=function(e,t){var r,n=a.YYY[t],i=a.YYYYY[t];if(r=a.YYYY.exec(e)||i.exec(e)){var o=r[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(r=a.YY.exec(e)||n.exec(e)){var s=r[1];return{year:100*parseInt(s,10),restDateString:e.slice(s.length)}}return{year:null}}(l.date,s),m=c.year,v=function(e,t){if(null===t)return null;if(0===e.length)return(n=new Date(0)).setUTCFullYear(t),n;if(r=a.MM.exec(e))return(n=new Date(0),f(t,i=parseInt(r[1],10)-1))?(n.setUTCFullYear(t,i),n):new Date(NaN);if(r=a.DDD.exec(e)){n=new Date(0);var r,n,i,o,s=parseInt(r[1],10);return!function(e,t){if(t<1)return!1;var r=d(e);return(!r||!(t>366))&&(!!r||!(t>365))}(t,s)?new Date(NaN):(n.setUTCFullYear(t,0,s),n)}if(r=a.MMDD.exec(e)){n=new Date(0),i=parseInt(r[1],10)-1;var l=parseInt(r[2],10);return f(t,i,l)?(n.setUTCFullYear(t,i,l),n):new Date(NaN)}if(r=a.Www.exec(e))return h(t,o=parseInt(r[1],10)-1)?u(t,o):new Date(NaN);if(r=a.WwwD.exec(e)){o=parseInt(r[1],10)-1;var c=parseInt(r[2],10)-1;return h(t,o,c)?u(t,o,c):new Date(NaN)}return null}(c.restDateString,m);if(isNaN(v)||!v)return new Date(NaN);var y,b=v.getTime(),w=0;if(l.time&&isNaN(w=function(e){if(t=a.HH.exec(e))return p(r=parseFloat(t[1].replace(",",".")))?r%24*36e5:NaN;if(t=a.HHMM.exec(e))return p(r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")))?r%24*36e5+6e4*n:NaN;if(t=a.HHMMSS.exec(e)){r=parseInt(t[1],10),n=parseInt(t[2],10);var t,r,n,i=parseFloat(t[3].replace(",","."));return p(r,n,i)?r%24*36e5+6e4*n+1e3*i:NaN}return null}(l.time)))return new Date(NaN);if(l.timeZone||r.timeZone){if(isNaN(y=(0,o.Z)(l.timeZone||r.timeZone,new Date(b+w))))return new Date(NaN)}else y=i(new Date(b+w)),y=i(new Date(b+w+y));return new Date(b+w+y)}
233function u(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var i=7*t+r+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+i),n}var l=[31,28,31,30,31,30,31,31,30,31,30,31],c=[31,29,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400==0||e%4==0&&e%100!=0}function f(e,t,r){if(t<0||t>11)return!1;if(null!=r){if(r<1)return!1;var n=d(e);if(n&&r>c[t]||!n&&r>l[t])return!1}return!0}function h(e,t,r){return!(t<0)&&!(t>52)&&(null==r||!(r<0)&&!(r>6))}function p(e,t,r){return(null==e||!(e<0)&&!(e>=25))&&(null==t||!(t<0)&&!(t>=60))&&(null==r||!(r<0)&&!(r>=60))}},69599:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(85379),i=r(96492);function o(e,t,r){var o=(0,i.Z)(e,r),a=(0,n.Z)(t,o,!0),s=new Date(o.getTime()-a),u=new Date(0);return u.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),u.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),u}},58819:function(e,t,r){"use strict";r.d(t,{R:function(){return a},YW:function(){return f},Z0:function(){return d},ZK:function(){return l},fF:function(){return u},vU:function(){return o}});var n=r(67294),i={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cache. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function o(e){return`[nuqs] ${i[e]}
234  See https://err.47ng.com/NUQS-${e}`}function a(e){if(0===e.size)return"";let t=[];for(let[r,n]of e.entries()){let e=r.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${n.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}let r="?"+t.join("&");return r}var s=function(){try{if("undefined"==typeof localStorage)return!1;let e="nuqs-localStorage-test";localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;if(localStorage.removeItem(e),!t)return!1}catch(e){return console.error("[nuqs]: debug mode is disabled (localStorage unavailable).",e),!1}let e=localStorage.getItem("debug")??"";return e.includes("nuqs")}();function u(e,...t){if(!s)return;let r=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let r=t.shift();return"%O"===e&&r?JSON.stringify(r).replace(/"([^"]+)":/g,"$1:"):String(r)})}(e,...t);performance.mark(r);try{console.log(e,...t)}catch(e){console.log(r)}}function l(e,...t){s&&console.warn(e,...t)}var c=(0,n.createContext)({useAdapter(){throw Error(o(404))}});function d(e){return({children:t,...r})=>(0,n.createElement)(c.Provider,{...r,value:{useAdapter:e}},t)}function f(){let e=(0,n.useContext)(c);if(!("useAdapter"in e))throw Error(o(404));return e.useAdapter()}c.displayName="NuqsAdapterContext",s&&"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==c&&console.error(o(303)),window.__NuqsAdapterContext=c)},97582:function(e,t,r){"use strict";r.d(t,{CR:function(){return l},Jh:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return c},mG:function(){return s},pi:function(){return o}});var 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])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw 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}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&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{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function u(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;function s(s){return function(u){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)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 a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}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,u])}}}function l(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function c(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))}"function"==typeof SuppressedError&&SuppressedError},31993:function(e,t,r){"use strict";r.d(t,{U:function(){return u}});var n=r(67294);let i=e=>{let t;let r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let 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=e=>(r.add(e),()=>r.delete(e)),a={setState:n,getState:i,getInitialState:()=>s,subscribe:o},s=t=e(n,i,a);return a},o=e=>e?i(e):i,a=e=>e,s=e=>
234{let t=o(e),r=e=>(function(e,t=a){let r=n.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},u=e=>e?s(e):s}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(3811),t(6840),t(80880)}),_N_E=e.O()}]);

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.