PageSourceSearch

https://www.muegyetemiallasborze.hu/_next/static/chunks/pages/_app-877ad84b9bdd7a69.js

js muegyetemiallasborze.hu collected 2026-10-07 20:00:06 UTC 682,039 bytes, 448 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{30242:function(e,t,r){var n={"./en/errors/apiErrors":[69351,9351],"./en/errors/apiErrors.ts":[69351,9351],"./en/errors/awsErrors":[40514,514],"./en/errors/awsErrors.ts":[40514,514],"./en/landing/apply":[40702,702],"./en/landing/apply.ts":[40702,702],"./en/landing/common":[42202,2202],"./en/landing/common.ts":[42202,2202],"./en/landing/contact":[60064,64],"./en/landing/contact.ts":[60064,64],"./en/landing/cookie":[56491,6491],"./en/landing/cookie.ts":[56491,6491],"./en/landing/exhibitors":[27679,7679],"./en/landing/exhibitors.ts":[27679,7679],"./en/landing/forExhibitors":[79933,9933],"./en/landing/forExhibitors.ts":[79933,9933],"./en/landing/home":[28707,8707],"./en/landing/home.ts":[28707,8707],"./en/landing/jobOffers":[39651,9651],"./en/landing/jobOffers.ts":[39651,9651],"./en/landing/prepdays":[22679,2679],"./en/landing/prepdays.ts":[22679,2679],"./en/landing/press":[65551,5551],"./en/landing/press.ts":[65551,5551],"./en/partner/booth":[18440,8440],"./en/partner/booth.ts":[18440,8440],"./en/partner/common":[83356,3356],"./en/partner/common.ts":[83356,3356],"./en/partner/extras":[15102,5102],"./en/partner/extras.ts":[15102,5102],"./en/partner/home":[21877,1877],"./en/partner/home.ts":[21877,1877],"./en/partner/mainPage":[17705,7705],"./en/partner/mainPage.ts":[17705,7705],"./en/partner/promotional":[87874,7874],"./en/partner/promotional.ts":[87874,7874],"./hu/errors/apiErrors":[58886,8886],"./hu/errors/apiErrors.ts":[58886,8886],"./hu/errors/awsErrors":[2021,2021],"./hu/errors/awsErrors.ts":[2021,2021],"./hu/landing/apply":[81944,1944],"./hu/landing/apply.ts":[81944,1944],"./hu/landing/common":[87070,7070],"./hu/landing/common.ts":[87070,7070],"./hu/landing/contact":[64746,4746],"./hu/landing/contact.ts":[64746,4746],"./hu/landing/cookie":[59491,9491],"./hu/landing/cookie.ts":[59491,9491],"./hu/landing/exhibitors":[26790,6790],"./hu/landing/exhibitors.ts":[26790,6790],"./hu/landing/forExhibitors":[81170,1170],"./hu/landing/forExhibitors.ts":[81170,1170],"./hu/landing/home":[79244,9244],"./hu/landing/home.ts":[79244,9244],"./hu/landing/jobOffers":[25178,5178],"./hu/landing/jobOffers.ts":[25178,5178],"./hu/landing/prepdays":[21245,1245],"./hu/landing/prepdays.ts":[21245,1245],"./hu/landing/press":[14709,4709],"./hu/landing/press.ts":[14709,4709],"./hu/partner/booth":[94160,4160],"./hu/partner/booth.ts":[94160,4160],"./hu/partner/common":[12488,2488],"./hu/partner/common.ts":[12488,2488],"./hu/partner/extras":[91501,1501],"./hu/partner/extras.ts":[91501,1501],"./hu/partner/home":[37672,7672],"./hu/partner/home.ts":[37672,7672],"./hu/partner/mainPage":[93032,3032],"./hu/partner/mainPage.ts":[93032,3032],"./hu/partner/promotional":[78307,8307],"./hu/partner/promotional.ts":[78307,8307]};function i(e){if(!r.o(n,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=n[e],i=t[0];return r.e(t[1]).then(function(){return r(i)})}i.keys=function(){return Object.keys(n)},i.id=30242,e.exports=i},97955:function(e,t,r){"use strict";r.d(t,{g:function(){return iU}});/*! *****************************************************************************
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,g,m,y,v,b,w,S,x,_,k,A,C,E,P,T,O,I,R,M,D,j,F,U,B,L,z,N,V,$,W,q,H,G,K,J,Y,Z,X,Q,ee,et,er,en,ei,eo,ea,es,eu,el,ec,ed,ef,eh,ep,eg,em,ey,ev,eb,ew,eS,ex,e_,ek,eA=function(e,t){return(eA=Object.setPrototypeOf||({__proto__:[]}
14)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 eC(e,t){function r(){this.constructor=e}eA(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var eE=function(){return(eE=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 eP(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 eT(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 eO(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 eI(e){return e&&!!["provider"].find(function(t){return e.hasOwnProperty(t)})}function eR(e){return void 0!==e.redirectSignIn}(n=p||(p={})).Cognito="COGNITO",n.Google="Google",n.Facebook="Facebook",n.Amazon="LoginWithAmazon",n.Apple="SignInWithApple",(i=g||(g={})).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=m||(m={})).API_KEY="API_KEY",o.AWS_IAM="AWS_IAM",o.OPENID_CONNECT="OPENID_CONNECT",o.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",o.AWS_LAMBDA="AWS_LAMBDA";var eM=r(30283),eD=r(26794),ej=new eM.k("Hub"),eF="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",eU=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){ej.warn("No listeners for "+e);return}this.patterns=(0,eD.fl)(this.patterns.filter(function(e){return e!==r}))}else{var n=this.listeners[e];if(!n){ej.warn("No listeners for "+e);return}this.listeners[e]=(0,eD.fl)(n.filter(function(e){return e.callback!==t}))}},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!==eF&&ej.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences");var i={channel:e,payload:(0,eD.pi)({},t),source:r,patternInfo:[]};try{this._toListeners(i)}catch(e){ej.error(e)}},e.prototype.listen=function(e,t,r){var n,i=this;if(void 0===r&&(r="noname"),void 0!==t.onHubCapsule)ej.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];
14if(n&&n.forEach(function(n){ej.debug("Dispatching to "+t+" with ",r);try{n.callback(e)}catch(e){ej.error(e)}}),this.patterns.length>0){if(!r.message){ej.warn("Cannot perform pattern matching without a message key");return}var i=r.message;this.patterns.forEach(function(t){var r=i.match(t.pattern);if(r){var n=(0,eD.CR)(r).slice(1),o=(0,eD.pi)((0,eD.pi)({},e),{patternInfo:n});try{t.callback(o)}catch(e){ej.error(e)}}})}},e}())("__default__"),eB={},eL=function(){function e(){}return e.setItem=function(e,t){return eB[e]=t,eB[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(eB,e)?eB[e]:void 0},e.removeItem=function(e){return delete eB[e]},e.clear=function(){return eB={}},e}(),ez=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=eL}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),eN=r(46407),eV=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},e$=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==eN&&null!=eN.versions&&null!=eN.versions.node}},eW=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=[]),!eH(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]:eW(e[i],t,r));return n},eq=function(e,t,r){if(void 0===t&&(t=[]),void 0===r&&(r=[]),!eH(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]:eq(e[i],t,r));return n},eH=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},eG=new eM.k("Util"),eK=function(e){function t(t){var r=e.call(this,t)||this;return r.nonRetryable=!0,r}return(0,eD.ZT)(t,e),t}(Error),eJ=function(e,t,r,n){var i;return void 0===r&&(r=3e5),function(e,t,r,n){return(0,eD.mG)(this,void 0,void 0,function(){var i=this;return(0,eD.Jh)(this,function(o){if("function"!=typeof e)throw Error("functionToRetry must be a function");return[2,new Promise(function(o,a){return(0,eD.mG)(i,void 0,void 0,function(){var i,s,u,l,c,d,f;return(0,eD.Jh)(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(0,eD.Jh)(this,function(p){switch(p.label){case 0:i++,eG.debug(e.name+" attempt #"+i+" with this vars: "+JSON.stringify(t)),p.label=1;case 1:return p.trys.push([1,3,,7]),n={},d=o,[4,e.apply(void 0,(0,eD.fl)(t))];case 2:return[2,(n.value=d.apply(void 0,[p.sent()]),n)];case 3:if(c=f=p.sent(),eG.debug("error on "+e.name,f),f&&f.nonRetryable)return eG.debug(e.name+" non retryable error",f),[2,{value:a(f)}];if(h=r(i,t,f),eG.debug(e.name+" retrying in "+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]}})})})]})})}(e,t,(void 0===(i=r)&&(i=3e5),function(e){var t=100*Math.pow(2,e)+100*Math.random();return!(t>i)&&t}),n)},eY=new eM.k("CognitoCredentials"),eZ=new Promise(function(e,t){return e$().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(eY.debug("google api already loaded"),e()):void setTimeout(function(){return e()},2e3):(eY.debug("not in the browser, directly resolved"),e())}),eX=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){return(0,eD.mG)(this,void 0,void 0,function(){return(0,eD.Jh)(this,function(e){switch(e.label){case 0:if(this.initialized)return[3,2];return eY.debug("need to wait for the Google SDK loaded"),[4,eZ];case 1:e.sent(),this.initialized=!0,eY.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}})})},e.prototype._refreshGoogleTokenImpl=function(){var e=null;return(e$().isBrowser&&(e=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),e)?new Promise(function(t,r){e.getAuthInstance().then(function(e){e||(eY.debug("google Auth undefined"),r(new eK("google Auth undefined")));var n=e.currentUser.get();n.isSignedIn()?(eY.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 eK("Failed to reload google auth response"))})):r(new eK("User is not signed in with Google"))}).catch(function(e){eY.debug("Failed to refresh google token",e),r(new eK("Failed to refresh google token"))})}):(eY.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),eQ=new eM.k("CognitoCredentials"),e0=new Promise(function(e,t){return e$().isBrowser?window.FB?(eQ.debug("FB SDK already loaded"),e()):void setTimeout(function(){return e()},2e3):(eQ.debug("not in the browser, directly resolved"),e())}),e1=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){return(0,eD.mG)(this,void 0,void 0,function(){return(0,eD.Jh)(this,function(e){switch(e.label){case 0:if(this.initialized)return[3,2];return eQ.debug("need to wait for the Facebook SDK loaded"),[4,e0];case 1:e.sent(),this.initialized=!0,eQ.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}})})},e.prototype._refreshFacebookTokenImpl=function(){var e=null;if(e$().isBrowser&&(e=window.FB),!e){var t="no fb sdk available";return eQ.debug(t),Promise.reject(new eK(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";eQ.debug(a),r(new eK(a))}t({token:i,expires_at:o})}else{var a="no response from facebook when refreshing the jwt token";eQ.debug(a),r(new eK(a))}},{scope:"public_profile,email"})})},e}(),e2=new eX,e5=new e1,e4=r(31898),e3=function(e,t){return(e3=Object.setPrototypeOf||({__proto__:[]}
14)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 e6(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 e8(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])}}}var e7=r(65482);(a=y||(y={})).AUTHENTICATED_ROLE="AuthenticatedRole",a.DENY="Deny",(v||(v={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(b||(b={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(w||(w={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(S||(S={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(x||(x={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(_||(_={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(k||(k={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(A||(A={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(C||(C={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(E||(E={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(s=P||(P={})).ACCESS_DENIED="AccessDenied",s.INTERNAL_SERVER_ERROR="InternalServerError",(T||(T={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(O||(O={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(I||(I={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(R||(R={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(M||(M={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(D||(D={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(j||(j={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(F||(F={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(U||(U={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(B||(B={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(L||(L={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(z||(z={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(N||(N={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(V||(V={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},($||($={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(u=W||(W={})).CONTAINS="Contains",u.EQUALS="Equals",u.NOT_EQUAL="NotEqual",u.STARTS_WITH="StartsWith",(q||(q={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(H||(H={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(l=G||(G={})).RULES="Rules",l.TOKEN="Token",(K||(K={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(J||(J={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(Y||(Y={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(Z||(Z={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(X||(X={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(Q||(Q={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ee||(ee={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(et||(et={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(er||(er={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(en||(en={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ei||(ei={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(eo||(eo={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ea||(ea={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(es||(es={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(eu||(eu={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(el||(el={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ec||(ec={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ed||(ed={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ef||(ef={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(eh||(eh={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ep||(ep={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(eg||(eg={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(em||(em={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ey||(ey={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(ev||(ev={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)},(eb||(eb={})).filterSensitiveLog=function(e){return(0,e7.pi)({},e)};var e9=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){return!!e&&"number"==typeof e.statusCode&&"object"==typeof e.headers},e}(),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)},tt=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){return!!e&&"method"in e&&"protocol"in e&&"hostname"in e&&"path"in e&&"object"==typeof e.query&&"object"==typeof e.headers},e.prototype.clone=function(){var t,r=new e(te(te({},this),{headers:te({},this.headers)}));return r.query&&(r.query=Object.keys(t=r.query).reduce(function(e,r){var n,i=t[r];return te(te({},e),((n={})[r]=Array.isArray(i)?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(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}(arguments[t]));return e}(i):i,n))},{})),r},e}(),tr=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r;return(0,e7.Jh)(this,function(n){return r=tc(e.body,t),[2,(0,e7.pi)({name:"ExternalServiceException",$fault:"client",$metadata:tw(e)},r)]})})},tn=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r;return(0,e7.Jh)(this,function(n){return r=tf(e.body,t),[2,(0,e7.pi)({name:"InternalErrorException",$fault:"server",$metadata:tw(e)},r)]})})},ti=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r;return(0,e7.Jh)(this,function(n){return r=tp(e.body,t),[2,(0,e7.pi)({name:"InvalidParameterException",$fault:"client",$metadata:tw(e)},r)]})})},to=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r;return(0,e7.Jh)(this,function(n){return r=tm(e.body,t),[2,(0,e7.pi)({name:"NotAuthorizedException",$fault:"client",$metadata:tw(e)},r)]})})},ta=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r;return(0,e7.Jh)(this,function(n){return r=ty(e.body,t),[2,(0,e7.pi)({name:"ResourceConflictException",$fault:"client",$metadata:tw(e)},r)]})})},ts=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r;return(0,e7.Jh)(this,function(n){return r=tv(e.body,t),[2,(0,e7.pi)({name:"ResourceNotFoundException",$fault:"client",$metadata:tw(e)},r)]})})},tu=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r;return(0,e7.Jh)(this,function(n){return r=tb(e.body,t),[2,(0,e7.pi)({name:"TooManyRequestsException",$fault:"client",$metadata:tw(e)},r)]})})},tl=function(e,t){return Object.entries(e).reduce(function(e,t){var r,n=(0,e7.CR)(t,2),i=n[0],o=n[1];return null===o?e:(0,e7.pi)((0,e7.pi)({},e),((r={})[i]=o,r))},{})},tc=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},td=function(e,t){var r;return{Credentials:void 0!==e.Credentials&&null!==e.Credentials?{AccessKeyId:void 0!==(r=e.Credentials).AccessKeyId&&null!==r.AccessKeyId?r.AccessKeyId:void 0,Expiration:void 0!==r.Expiration&&null!==r.Expiration?new Date(Math.round(1e3*r.Expiration)):void 0,SecretKey:void 0!==r.SecretKey&&null!==r.SecretKey?r.SecretKey:void 0,SessionToken:void 0!==r.SessionToken&&null!==r.SessionToken?r.SessionToken:void 0}:void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},tf=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},th=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},tp=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},tg=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},tm=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},ty=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},tv=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},tb=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},tw=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},tS=function(e,t){var r;return((void 0===(r=e)&&(r=new Uint8Array),r instanceof Uint8Array)?Promise.resolve(r):t.streamCollector(r)||Promise.resolve(new Uint8Array)).then(function(e){return t.utf8Encoder(e)})},tx=function(e,t,r,n,i){return(0,e7.mG)(void 0,void 0,void 0,function(){var o,a,s,u;return(0,e7.Jh)(this,function(l){switch(l.label){case 0:return[4,e.endpoint()];case 1:return a=(o=l.sent()).hostname,u={protocol:void 0===(s=o.protocol)?"https":s,hostname:a,port:o.port,method:"POST",path:r,headers:t}
14,void 0!==n&&(u.hostname=n),void 0!==i&&(u.body=i),[2,new tt(u)]}})})},t_=function(e,t){return tS(e,t).then(function(e){return e.length?JSON.parse(e):{}})},tk=function(e,t){var r=function(e){var t=e;return t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},n=Object.keys(e.headers).find(function(e){return"x-amzn-errortype"===e.toLowerCase()});return void 0!==n?r(e.headers[n]):void 0!==t.code?r(t.code):void 0!==t.__type?r(t.__type):""},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)};function tC(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 tE(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])}}}var tP={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},tT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function tO(e,t,r){return{applyToStack:function(n){n.add(function(t,n){return function(n){return tC(void 0,void 0,void 0,function(){var i;return tE(this,function(o){switch(o.label){case 0:return[4,t(n)];case 1:return[4,r(i=o.sent().response,e)];case 2:return[2,{response:i,output:o.sent()}]}})})}},tP),n.add(function(r,n){return function(n){return tC(void 0,void 0,void 0,function(){var i;return tE(this,function(o){switch(o.label){case 0:return[4,t(n.input,e)];case 1:return i=o.sent(),[2,r(tA(tA({},n),{request:i}))]}})})}},tT)}}}/*! *****************************************************************************
15Copyright (c) Microsoft Corporation.
16
17Permission to use, copy, modify, and/or distribute this software for any
18purpose with or without fee is hereby granted.
19
20THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26PERFORMANCE OF THIS SOFTWARE.
27***************************************************************************** */var tI=function(){return(tI=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 tR(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(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}(arguments[t]));return e}var tM=function(){var e=[],t=[],r=new Set,n=function(n){var i=!1,o=function(e){return!e.name||e.name!==n||(i=!0,r.delete(n),!1)};return e=e.filter(o),t=t.filter(o),i},i=function(n){var i=!1,o=function(e){return e.middleware!==n||(i=!0,e.name&&r.delete(e.name),!1)};return e=e.filter(o),t=t.filter(o),i},o=function(r){return e.forEach(function(e){r.add(e.middleware,tI({},e))}),t.forEach(function(e){r.addRelativeTo(e.middleware,tI({},e))}),r},a=function(e){var t=[];return e.before.forEach(function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,tR(a(e)))}
27),t.push(e),e.after.reverse().forEach(function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,tR(a(e)))}),t},s=function(){var r=[],n=[],i={};return e.forEach(function(e){var t=tI(tI({},e),{before:[],after:[]});t.name&&(i[t.name]=t),r.push(t)}),t.forEach(function(e){var t=tI(tI({},e),{before:[],after:[]});t.name&&(i[t.name]=t),n.push(t)}),n.forEach(function(e){if(e.toMiddleware){var t=i[e.toMiddleware];if(void 0===t)throw Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}}),r.sort(function(e,t){return tD[t.step]-tD[e.step]||tj[t.priority||"normal"]-tj[e.priority||"normal"]}).map(a).reduce(function(e,t){return e.push.apply(e,tR(t)),e},[]).map(function(e){return e.middleware})},u={add:function(t,n){void 0===n&&(n={});var i=n.name,o=n.override,a=tI({step:"initialize",priority:"normal",middleware:t},n);if(i){if(r.has(i)){if(!o)throw Error("Duplicate middleware name '"+i+"'");var s=e.findIndex(function(e){return e.name===i}),u=e[s];if(u.step!==a.step||u.priority!==a.priority)throw Error('"'+i+'" middleware with '+u.priority+" priority in "+u.step+" step cannot be "+("overridden by same-name middleware with "+a.priority)+" priority in "+a.step+" step.");e.splice(s,1)}r.add(i)}e.push(a)},addRelativeTo:function(e,n){var i=n.name,o=n.override,a=tI({middleware:e},n);if(i){if(r.has(i)){if(!o)throw Error("Duplicate middleware name '"+i+"'");var s=t.findIndex(function(e){return e.name===i}),u=t[s];if(u.toMiddleware!==a.toMiddleware||u.relation!==a.relation)throw Error('"'+i+'" middleware '+u.relation+' "'+u.toMiddleware+'" middleware cannot be overridden '+("by same-name middleware "+a.relation)+' "'+a.toMiddleware+'" middleware.');t.splice(s,1)}r.add(i)}t.push(a)},clone:function(){return o(tM())},use:function(e){e.applyToStack(u)},remove:function(e){return"string"==typeof e?n(e):i(e)},removeByTag:function(n){var i=!1,o=function(e){var t=e.tags,o=e.name;return!(t&&t.includes(n))||(o&&r.delete(o),i=!0,!1)};return e=e.filter(o),t=t.filter(o),i},concat:function(e){var t=o(tM());return t.use(e),t},applyToStack:o,resolve:function(e,t){var r,n;try{for(var i=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.")}(s().reverse()),o=i.next();!o.done;o=i.next())e=(0,o.value)(e,t)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return e}};return u},tD={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},tj={high:3,normal:2,low:1},tF=function(){function e(e){this.middlewareStack=tM(),this.config=e}return e.prototype.send=function(e,t,r){var n="function"==typeof t?t:r,i=e.resolveMiddleware(this.middlewareStack,this.config,"function"!=typeof t?t:void 0);if(!n)return i(e).then(function(e){return e.output});i(e).then(function(e){return n(null,e.output)},function(e){return n(e)}).catch(function(){})},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),tU=function(){this.middlewareStack=tM()},tB=function(e,t){return(tB=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)},tL=function(){var e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(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}(arguments[t]));return e}([null],arguments)),r=new t;return Object.setPrototypeOf(r,e.prototype),r};tL.prototype=Object.create(String.prototype,{constructor:{value:tL,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(tL,String),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(function(e,t){function r(){this.constructor=e}tB(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:new t(e instanceof String||"string"==typeof e?e:JSON.stringify(e))}}(tL);var tz=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return(0,e7.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(tO(t,this.serialize,this.deserialize));var n=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:U.filterSensitiveLog,outputFilterSensitiveLog:L.filterSensitiveLog},o=t.requestHandler;return n.resolve(function(e){return o.handle(e.request,r||{})},i)},t.prototype.serialize=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r,n;return(0,e7.Jh)(this,function(i){return r={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},n=JSON.stringify((0,e7.pi)((0,e7.pi)((0,e7.pi)({},void 0!==e.CustomRoleArn&&null!==e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),void 0!==e.IdentityId&&null!==e.IdentityId&&{IdentityId:e.IdentityId}
27),void 0!==e.Logins&&null!==e.Logins&&{Logins:tl(e.Logins,t)})),[2,tx(t,r,"/",void 0,n)]})})},t.prototype.deserialize=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r,n;return(0,e7.Jh)(this,function(i){switch(i.label){case 0:if(e.statusCode>=300)return[2,(0,e7.mG)(void 0,void 0,void 0,function(){var r,n,i,o,a,s,u,l,c,d,f,h,p,g,m;return(0,e7.Jh)(this,function(y){switch(y.label){case 0:return n=[(0,e7.pi)({},e)],m={},[4,t_(e.body,t)];case 1:switch(r=e7.pi.apply(void 0,n.concat([(m.body=y.sent(),m)])),o="UnknownError",o=tk(e,r.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return a=[{}],[4,tr(r,t)];case 3:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,a.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 4:return s=[{}],[4,tn(r,t)];case 5:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,s.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 6:var v,b;return u=[{}],[4,(v=r,b=t,(0,e7.mG)(void 0,void 0,void 0,function(){var e;return(0,e7.Jh)(this,function(t){return e=th(v.body,b),[2,(0,e7.pi)({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:tw(v)},e)]})}))];case 7:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,u.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 8:return l=[{}],[4,ti(r,t)];case 9:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,l.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 10:return c=[{}],[4,to(r,t)];case 11:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,c.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 12:return d=[{}],[4,ta(r,t)];case 13:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,d.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 14:return f=[{}],[4,ts(r,t)];case 15:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,f.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 16:return h=[{}],[4,tu(r,t)];case 17:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,h.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 18:o=(p=r.body).code||p.Code||o,i=(0,e7.pi)((0,e7.pi)({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:tw(e)}),y.label=19;case 19:return g=i.message||i.Message||o,i.message=g,delete i.Message,[2,Promise.reject(Object.assign(Error(g),i))]}})})];return[4,t_(e.body,t)];case 1:return r=i.sent(),n={},n=td(r,t),[2,Promise.resolve((0,e7.pi)({$metadata:tw(e)},n))]}})})},t}(tU),tN=function(e){function t(t,r){void 0===r&&(r=!0);var n=e.call(this,t)||this;return n.tryNextLink=r,n}return!function(e,t){function r(){this.constructor=e}e3(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t}(Error);function tV(e){return Promise.all(Object.keys(e).reduce(function(t,r){var n=e[r];return"string"==typeof n?t.push([r,n]):t.push(n().then(function(e){return[r,e]})),t},[])).then(function(e){return e.reduce(function(e,t){var r=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}(t,2),n=r[0],i=r[1];return e[n]=i,e},{})})}function t$(e){var t=this;return function(){return e6(t,void 0,void 0,function(){var t,r,n,i,o,a,s,u,l,c,d,f,h;return e8(this,function(p){switch(p.label){case 0:if(c=(l=e.client).send,d=tz.bind,h={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},!e.logins)return[3,2];return[4,tV(e.logins)];case 1:return f=p.sent(),[3,3];case 2:f=void 0,p.label=3;case 3:return[4,c.apply(l,[new(d.apply(tz,[void 0,(h.Logins=f,h)]))])];case 4:return i=void 0===(n=(r=void 0===(t=p.sent().Credentials)?function(){throw new tN("Response from Amazon Cognito contained no credentials")}():t).AccessKeyId)?function(){throw new tN("Response from Amazon Cognito contained no access key ID")}():n,o=r.Expiration,s=void 0===(a=r.SecretKey)?function(){throw new tN("Response from Amazon Cognito contained no secret key")}():a,u=r.SessionToken,[2,{identityId:e.identityId,accessKeyId:i,secretAccessKey:s,sessionToken:u,expiration:o}]}})})}}var tW=function(e){function t(t){var r=e.call(this)||this;return r.input=t,r}return(0,e7.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,r){this.middlewareStack.use(tO(t,this.serialize,this.deserialize));var n=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:N.filterSensitiveLog,outputFilterSensitiveLog:V.filterSensitiveLog},o=t.requestHandler;return n.resolve(function(e){return o.handle(e.request,r||{})},i)},t.prototype.serialize=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r,n;return(0,e7.Jh)(this,function(i){return r={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},n=JSON.stringify((0,e7.pi)((0,e7.pi)((0,e7.pi)({},void 0!==e.AccountId&&null!==e.AccountId&&{AccountId:e.AccountId}),void 0!==e.IdentityPoolId&&null!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}
27),void 0!==e.Logins&&null!==e.Logins&&{Logins:tl(e.Logins,t)})),[2,tx(t,r,"/",void 0,n)]})})},t.prototype.deserialize=function(e,t){return(0,e7.mG)(void 0,void 0,void 0,function(){var r,n;return(0,e7.Jh)(this,function(i){switch(i.label){case 0:if(e.statusCode>=300)return[2,(0,e7.mG)(void 0,void 0,void 0,function(){var r,n,i,o,a,s,u,l,c,d,f,h,p,g,m;return(0,e7.Jh)(this,function(y){switch(y.label){case 0:return n=[(0,e7.pi)({},e)],m={},[4,t_(e.body,t)];case 1:switch(r=e7.pi.apply(void 0,n.concat([(m.body=y.sent(),m)])),o="UnknownError",o=tk(e,r.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return a=[{}],[4,tr(r,t)];case 3:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,a.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 4:return s=[{}],[4,tn(r,t)];case 5:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,s.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 6:return u=[{}],[4,ti(r,t)];case 7:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,u.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 8:var v,b;return l=[{}],[4,(v=r,b=t,(0,e7.mG)(void 0,void 0,void 0,function(){var e;return(0,e7.Jh)(this,function(t){return e=tg(v.body,b),[2,(0,e7.pi)({name:"LimitExceededException",$fault:"client",$metadata:tw(v)},e)]})}))];case 9:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,l.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 10:return c=[{}],[4,to(r,t)];case 11:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,c.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 12:return d=[{}],[4,ta(r,t)];case 13:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,d.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 14:return f=[{}],[4,ts(r,t)];case 15:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,f.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 16:return h=[{}],[4,tu(r,t)];case 17:return i=e7.pi.apply(void 0,[e7.pi.apply(void 0,h.concat([y.sent()])),{name:o,$metadata:tw(e)}]),[3,19];case 18:o=(p=r.body).code||p.Code||o,i=(0,e7.pi)((0,e7.pi)({},p),{name:""+o,message:p.message||p.Message||o,$fault:"client",$metadata:tw(e)}),y.label=19;case 19:return g=i.message||i.Message||o,i.message=g,delete i.Message,[2,Promise.reject(Object.assign(Error(g),i))]}})})];return[4,t_(e.body,t)];case 1:return r=i.sent(),n={},n={IdentityId:void 0!==r.IdentityId&&null!==r.IdentityId?r.IdentityId:void 0},[2,Promise.resolve((0,e7.pi)({$metadata:tw(e)},n))]}})})},t}(tU),tq="IdentityIds",tH=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",function(t){var r=t.get(e);return new Promise(function(e){r.onerror=function(){return e(null)},r.onsuccess=function(){return e(r.result?r.result.value:null)}})}).catch(function(){return null})},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",function(t){var r=t.delete(e);return new Promise(function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}})})},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",function(r){var n=r.put({id:e,value:t});return new Promise(function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}})})},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise(function(t,r){e.onsuccess=function(){t(e.result)},e.onerror=function(){r(e.error)},e.onblocked=function(){r(Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){r(Error("Failed to create object store"))},t.createObjectStore(tq,{keyPath:"id"})}})},e.prototype.withObjectStore=function(e,t){return this.getDb().then(function(r){var n=r.transaction(tq,e);return n.oncomplete=function(){return r.close()},new Promise(function(e,r){n.onerror=function(){return r(n.error)},e(t(n.objectStore(tq)))}).catch(function(e){throw r.close(),e})})},e}(),tG=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}()),tK=new eM.k("Parser"),tJ=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
27on,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=(0,eD.pi)((0,eD.pi)({},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),tK.debug("parse config",e,"to amplifyconfig",r),r},tY=r(90298);function tZ(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 tX(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])}}}for(var tQ=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,t0)},t0=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()},t1=function(){function e(e){var t=(void 0===e?{}:e).requestTimeout;this.requestTimeout=t}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var r,n=(void 0===t?{}:t).abortSignal,i=this.requestTimeout;if(null==n?void 0:n.aborted){var o=Error("Request aborted");return o.name="AbortError",Promise.reject(o)}var a=e.path;if(e.query){var s=function(e){var t,r,n=[];try{for(var i=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.")}(Object.keys(e).sort()),o=i.next();!o.done;o=i.next()){var a=o.value,s=e[a];if(a=tQ(a),Array.isArray(s))for(var u=0,l=s.length;u<l;u++)n.push(a+"="+tQ(s[u]));else{var c=a;(s||"string"==typeof s)&&(c+="="+tQ(s)),n.push(c)}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n.join("&")}(e.query);s&&(a+="?"+s)}var u=e.port,l=e.method,c=e.protocol+"//"+e.hostname+(u?":"+u:"")+a,d={body:"GET"===l||"HEAD"===l?void 0:e.body,headers:new Headers(e.headers),method:l};"undefined"!=typeof AbortController&&(d.signal=n);var f=new Request(c,d),h=[fetch(f).then(function(e){var t,r,n=e.headers,i={};try{for(var 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.")}(n.entries()),a=o.next();!a.done;a=o.next()){var s=a.value;i[s[0]]=s[1]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return void 0!==e.body?{response:new e9({headers:i,statusCode:e.status,body:e.body})}:e.blob().then(function(t){return{response:new e9({headers:i,statusCode:e.status,body:t})}})}),(void 0===(r=i)&&(r=0),new Promise(function(e,t){r&&setTimeout(function(){var e=Error("Request did not complete within "+r+" ms");e.name="TimeoutError",t(e)},r)}))];return n&&h.push(new Promise(function(e,t){n.onabort=function(){var e=Error("Request aborted");e.name="AbortError",t(e)}})),Promise.race(h)},e}(),t2={},t5=Array(64),t4=0,t3=65,t6=90;t4+t3<=t6;t4++){var t8=String.fromCharCode(t4+t3);t2[t8]=t4,t5[t4]=t8}for(var t4=0,t3=97,t6=122;t4+t3<=t6;t4++){var t8=String.fromCharCode(t4+t3),t7=t4+26;t2[t8]=t7,t5[t7]=t8}for(var t4=0;t4<10;t4++){t2[t4.toString(10)]=t4+52;var t8=t4.toString(10),t7=t4+52;t2[t8]=t7,t5[t7]=t8}function t9(e){var t=e.length/4*3;"=="===e.substr(-2)?t-=2:"="===e.substr(-1)&&t--;for(var r=new ArrayBuffer(t),n=new DataView(r),i=0;i<e.length;i+=4){for(var o=0,a=0,s=i,u=i+3;s<=u;s++)"="!==e[s]?(o|=t2[e[s]]<<(u-s)*6,a+=6):o>>=6;var l=i/4*3;o>>=a%8;for(var c=Math.floor(a/8),d=0;d<c;d++){var f=(c-d-1)*8;n.setUint8(l+d,(o&255<<f)>>f)}}return new Uint8Array(r)}t2["+"]=62,t5[62]="+",t2["/"]=63,t5[63]="/";/*! *****************************************************************************
28Copyright (c) Microsoft Corporation.
29
30Permission to use, copy, modify, and/or distribute this software for any
31purpose with or without fee is hereby granted.
32
33THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
34REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
35AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
36INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
37LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
38OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39PERFORMANCE OF THIS SOFTWARE.
40***************************************************************************** */var re=function(){return(re=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 rt(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 rr(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;
40function 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])}}}var rn={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},ri=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],ro=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ra=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],rs=[500,502,503,504],ru=function(e){var t,r;return(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)===429||ro.includes(e.name)||(null===(r=e.$retryable)||void 0===r?void 0:r.throttling)==!0},rl=function(e){var t;return ra.includes(e.name)||rs.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)},rc=r(66305),rd=function(e){var t=e,r=function(e){return"TimeoutError"===e.name?10:5},n=function(e){return r(e)<=t};return Object.freeze({hasRetryTokens:n,retrieveRetryTokens:function(e){if(!n(e))throw Error("No retry token available");var i=r(e);return t-=i,i},releaseRetryTokens:function(r){t+=null!=r?r:1,t=Math.min(t,e)}})},rf=function(e,t){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},rh=function(e){return!!e&&(void 0!==e.$retryable||ri.includes(e.name)||ru(e)||rl(e))},rp=function(){function e(e,t){var r,n,i;this.maxAttemptsProvider=e,this.mode="standard",this.retryDecider=null!==(r=null==t?void 0:t.retryDecider)&&void 0!==r?r:rh,this.delayDecider=null!==(n=null==t?void 0:t.delayDecider)&&void 0!==n?n:rf,this.retryQuota=null!==(i=null==t?void 0:t.retryQuota)&&void 0!==i?i:rd(500)}return e.prototype.shouldRetry=function(e,t,r){return t<r&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)},e.prototype.getMaxAttempts=function(){return rt(this,void 0,void 0,function(){var e;return rr(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.maxAttemptsProvider()];case 1:return e=t.sent(),[3,3];case 2:return t.sent(),e=3,[3,3];case 3:return[2,e]}})})},e.prototype.retry=function(e,t){return rt(this,void 0,void 0,function(){var r,n,i,o,a,s,u,l;return rr(this,function(c){switch(c.label){case 0:return n=0,i=0,[4,this.getMaxAttempts()];case 1:o=c.sent(),a=t.request,tt.isInstance(a)&&(a.headers["amz-sdk-invocation-id"]=(0,rc.v4)()),s=function(){var s,l,c,d,f;return rr(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,5]),tt.isInstance(a)&&(a.headers["amz-sdk-request"]="attempt="+(n+1)+"; max="+o),[4,e(t)];case 1:return l=(s=h.sent()).response,c=s.output,u.retryQuota.releaseRetryTokens(r),c.$metadata.attempts=n+1,c.$metadata.totalRetryDelay=i,[2,{value:{response:l,output:c}}];case 2:if(d=h.sent(),n++,!u.shouldRetry(d,n,o))return[3,4];return r=u.retryQuota.retrieveRetryTokens(d),f=u.delayDecider(ru(d)?500:100,n),i+=f,[4,new Promise(function(e){return setTimeout(e,f)})];case 3:return h.sent(),[2,"continue"];case 4:throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=n,d.$metadata.totalRetryDelay=i,d;case 5:return[2]}})},u=this,c.label=2;case 2:return[5,s()];case 3:if("object"==typeof(l=c.sent()))return[2,l.value];return[3,2];case 4:return[2]}})})},e}(),rg=function(e){var t=rm(e.maxAttempts);return re(re({},e),{maxAttempts:t,retryStrategy:e.retryStrategy||new rp(t)})},rm=function(e){if(void 0===e&&(e=3),"number"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},ry=r(68436),rv=r.n(ry),rb=r(33184),rw="cognito-identity.{region}.amazonaws.com",rS=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),rx=new Set(["cn-north-1","cn-northwest-1"]),r_=new Set(["us-iso-east-1"]),rk=new Set(["us-isob-east-1"]),rA=new Set(["us-gov-east-1","us-gov-west-1"]),rC={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var r=void 0;switch(e){case"ap-northeast-1":r={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":r={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":r={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":r={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":r={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":r={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":r={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":r={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":r={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":r={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":r={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":r={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":r={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":r={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":r={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":r={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":r={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":r={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":r={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":r={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":r={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":r={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:rS.has(e)&&(r={hostname:rw.replace("{region}",e),partition:"aws"}),rx.has(e)&&(r={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),r_.has(e)&&(r={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),rk.has(e)&&(r={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),rA.has(e)&&(r={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===r&&(r={hostname:rw.replace("{region}",e),partition:"aws"})}return Promise.resolve((0,e7.pi)({signingService:"cognito-identity"},r))},serviceId:"Cognito Identity",urlParser:function(e){var t,r=new URL(e),n=r.hostname,i=r.pathname,o=r.port,a=r.protocol,s=r.search;return s&&(t=function(e){var t,r,n={};if(e=e.replace(/^\?/,""))try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);
40if(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.")}(e.split("&")),o=i.next();!o.done;o=i.next()){var a=o.value,s=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.split("="),2),u=s[0],l=s[1],c=void 0===l?null:l;u=decodeURIComponent(u),c&&(c=decodeURIComponent(c)),u in n?Array.isArray(n[u])?n[u].push(c):n[u]=[n[u],c]:n[u]=c}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n}(s)),{hostname:n,port:o?parseInt(o):void 0,protocol:a,path:i,query:t}}},rE=(0,e7.pi)((0,e7.pi)({},rC),{runtime:"browser",base64Decoder:t9,base64Encoder:function(e){for(var t="",r=0;r<e.length;r+=3){for(var n=0,i=0,o=r,a=Math.min(r+3,e.length);o<a;o++)n|=e[o]<<(a-o-1)*8,i+=8;var s=Math.ceil(i/6);n<<=6*s-i;for(var u=1;u<=s;u++){var l=(s-u)*6;t+=t5[(n&63<<l)>>l]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,r=t-1;r>=0;r--){var n=e.charCodeAt(r);n>127&&n<=2047?t++:n>2047&&n<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0},credentialDefaultProvider:function(e){return function(){return Promise.reject(Error("Credential is missing"))}},defaultUserAgentProvider:(d=(c={serviceId:rC.serviceId,clientVersion:"3.6.1"}).serviceId,f=c.clientVersion,function(){var e,t,r,n;return e=void 0,t=void 0,r=void 0,n=function(){var e,t,r,n,i,o,a,s,u;return 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(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])}}}(this,function(l){return t=[["aws-sdk-js",f],["os/"+((null===(n=null==(e=(null===(r=null==window?void 0:window.navigator)||void 0===r?void 0:r.userAgent)?rv().parse(window.navigator.userAgent):void 0)?void 0:e.os)||void 0===n?void 0:n.name)||"other"),null===(i=null==e?void 0:e.os)||void 0===i?void 0:i.version],["lang/js"],["md/browser",(null!==(a=null===(o=null==e?void 0:e.browser)||void 0===o?void 0:o.name)&&void 0!==a?a:"unknown")+"_"+(null!==(u=null===(s=null==e?void 0:e.browser)||void 0===s?void 0:s.version)&&void 0!==u?u:"unknown")]],d&&t.push(["api/"+d,f]),[2,t]})},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())})}),maxAttempts:3,region:function(){return Promise.reject("Region is missing")},requestHandler:new t1,sha256:tY.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return tZ(this,void 0,void 0,function(){var t;return tX(this,function(r){switch(r.label){case 0:return[4,new Promise(function(t,r){var n=new FileReader;n.onloadend=function(){if(2!==n.readyState)return r(Error("Reader aborted too early"));var e,i=null!==(e=n.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},n.onabort=function(){return r(Error("Read aborted"))},n.onerror=function(){return r(n.error)},n.readAsDataURL(e)})];case 1:return t=t9(r.sent()),[2,new Uint8Array(t)]}})})}(e):function(e){return tZ(this,void 0,void 0,function(){var t,r,n,i,o,a,s;return tX(this,function(u){switch(u.label){case 0:t=new Uint8Array(0),r=e.getReader(),n=!1,u.label=1;case 1:if(n)return[3,3];return[4,r.read()];case 2:return o=(i=u.sent()).done,(a=i.value)&&(s=t,(t=new Uint8Array(s.length+a.length)).set(s),t.set(a,s.length)),n=o,[3,1];case 3:return[2,t]}})})}(e)},utf8Decoder:rb.fromUtf8,utf8Encoder:rb.toUtf8}),rP=function(){return(rP=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)},rT=function(e){var t;return rP(rP({},e),{tls:null===(t=e.tls)||void 0===t||t,endpoint:e.endpoint?rO(e):function(){return rI(e)},isCustomEndpoint:!!e.endpoint})},rO=function(e){var t=e.endpoint,r=e.urlParser;if("string"==typeof t){var n=Promise.resolve(r(t));return function(){return n}}if("object"==typeof t){var i=Promise.resolve(t);return function(){return i}}return t},rI=function(e){var t,r,n,i;return t=void 0,r=void 0,n=void 0,i=function(){var t,r,n,i,o;return 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;
40function 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])}}}(this,function(a){switch(a.label){case 0:return r=void 0===(t=e.tls)||t,[4,e.region()];case 1:if(n=a.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(n))throw Error("Invalid region in client config");return[4,e.regionInfoProvider(n)];case 2:if(!(i=(null!==(o=a.sent())&&void 0!==o?o:{}).hostname))throw Error("Cannot resolve hostname from client config");return[2,e.urlParser((r?"https:":"http:")+"//"+i)]}})},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())})},rR=function(e){if(!e.region)throw Error("Region is missing");return rP(rP({},e),{region:rM(e.region)})},rM=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},rD=function(){return(rD=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)},rj="content-length",rF={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},rU={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},rB={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},rL=function(){return(rL=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 rz(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 rN(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 rV(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 r$(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}for(var rW={},rq={},rH=0;rH<256;rH++){var rG=rH.toString(16).toLowerCase();1===rG.length&&(rG="0"+rG),rW[rH]=rG,rq[rG]=rH}function rK(e){for(var t="",r=0;r<e.byteLength;r++)t+=rW[e[r]];return t}var rJ="X-Amz-Date",rY="X-Amz-Signature",rZ="X-Amz-Security-Token",rX="authorization",rQ=rJ.toLowerCase(),r0=[rX,rQ,"date"],r1=rY.toLowerCase(),r2="x-amz-content-sha256",r5=rZ.toLowerCase(),r4={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},r3=/^proxy-/,r6=/^sec-/,r8="AWS4-HMAC-SHA256",r7="aws4_request",r9={},ne=[];function nt(e,t,r){return e+"/"+t+"/"+r+"/"+r7}function nr(e,t,r){var n=new e(t);return n.update(r),n.digest()}function nn(e,t,r){var n,i,o=e.headers,a={};try{for(var s=rV(Object.keys(o).sort()),u=s.next();!u.done;u=s.next()){var l=u.value,c=l.toLowerCase();(!(c in r4||(null==t?void 0:t.has(c))||r3.test(c)||r6.test(c))||r&&(!r||r.has(c)))&&(a[c]=o[l].trim().replace(/\s+/g," "))}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a}var ni=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,no)},no=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};function na(e,t){var r=e.headers,n=e.body;return rz(this,void 0,void 0,function(){var e,i,o,a,s,u,l;return rN(this,function(c){switch(c.label){case 0:try{for(i=(e=rV(Object.keys(r))).next();!i.done;i=e.next())if((o=i.value).toLowerCase()===r2)return[2,r[o]]}catch(e){u={error:e}}finally{try{i&&!i.done&&(l=e.return)&&l.call(e)}finally{if(u)throw u.error}}if(void 0!=n)return[3,1];return[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:if(!("string"==typeof n||ArrayBuffer.isView(n)||"function"==typeof ArrayBuffer&&n instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(n)))return[3,3];return(a=new t).update(n),s=rK,[4,a.digest()];case 2:return[2,s.apply(void 0,[c.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}})})}
40function ns(e){var t=e.headers,r=e.query;return rL(rL({},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}(e,["headers","query"])),{headers:rL({},t),query:r?Object.keys(r).reduce(function(e,t){var n,i=r[t];return rL(rL({},e),((n={})[t]=Array.isArray(i)?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(r$(arguments[t]));return e}(i):i,n))},{}):void 0})}function nu(e){var t,r;e="function"==typeof e.clone?e.clone():ns(e);try{for(var n=rV(Object.keys(e.headers)),i=n.next();!i.done;i=n.next()){var o=i.value;r0.indexOf(o.toLowerCase())>-1&&delete e.headers[o]}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return e}var nl=function(){function e(e){var t=e.applyChecksum,r=e.credentials,n=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath;this.service=i,this.sha256=o,this.uriEscapePath=void 0===a||a,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=nf(n),this.credentialProvider=nh(r)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),rz(this,void 0,void 0,function(){var r,n,i,o,a,s,u,l,c,d,f,h,p,g,m,y,v,b,w,S,x,_,k,A;return rN(this,function(C){switch(C.label){case 0:return n=void 0===(r=t.signingDate)?new Date:r,o=void 0===(i=t.expiresIn)?3600:i,a=t.unsignableHeaders,s=t.unhoistableHeaders,u=t.signableHeaders,l=t.signingRegion,c=t.signingService,[4,this.credentialProvider()];case 1:if(d=C.sent(),!(null!=l))return[3,2];return h=l,[3,4];case 2:return[4,this.regionProvider()];case 3:h=C.sent(),C.label=4;case 4:if(f=h,g=(p=nc(n)).longDate,m=p.shortDate,o>604800)return[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")];return y=nt(m,f,null!=c?c:this.service),v=function(e,t){void 0===t&&(t={});var r,n,i,o="function"==typeof e.clone?e.clone():ns(e),a=o.headers,s=o.query,u=void 0===s?{}:s;try{for(var l=rV(Object.keys(a)),c=l.next();!c.done;c=l.next()){var d=c.value,f=d.toLowerCase();"x-amz-"!==f.substr(0,6)||(null===(i=t.unhoistableHeaders)||void 0===i?void 0:i.has(f))||(u[d]=a[d],delete a[d])}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}return rL(rL({},e),{headers:a,query:u})}(nu(e),{unhoistableHeaders:s}),d.sessionToken&&(v.query[rZ]=d.sessionToken),v.query["X-Amz-Algorithm"]=r8,v.query["X-Amz-Credential"]=d.accessKeyId+"/"+y,v.query[rJ]=g,v.query["X-Amz-Expires"]=o.toString(10),b=nn(v,a,u),v.query["X-Amz-SignedHeaders"]=nd(b),w=v.query,S=rY,x=this.getSignature,_=[g,y,this.getSigningKey(d,f,m,c)],k=this.createCanonicalRequest,A=[v,b],[4,na(e,this.sha256)];case 5:return[4,x.apply(this,_.concat([k.apply(this,A.concat([C.sent()]))]))];case 6:return w[S]=C.sent(),[2,v]}})})},e.prototype.sign=function(e,t){return rz(this,void 0,void 0,function(){return rN(this,function(r){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]})})},e.prototype.signEvent=function(e,t){var r=e.headers,n=e.payload,i=t.signingDate,o=void 0===i?new Date:i,a=t.priorSignature,s=t.signingRegion,u=t.signingService;return rz(this,void 0,void 0,function(){var e,t,i,l,c,d,f,h,p,g;return rN(this,function(m){switch(m.label){case 0:if(!(null!=s))return[3,1];return t=s,[3,3];case 1:return[4,this.regionProvider()];case 2:t=m.sent(),m.label=3;case 3:return e=t,l=(i=nc(o)).shortDate,c=i.longDate,d=nt(l,e,null!=u?u:this.service),[4,na({headers:{},body:n},this.sha256)];case 4:return f=m.sent(),(h=new this.sha256).update(r),p=rK,[4,h.digest()];case 5:return g=["AWS4-HMAC-SHA256-PAYLOAD",c,d,a,p.apply(void 0,[m.sent()]),f].join("\n"),[2,this.signString(g,{signingDate:o,signingRegion:e,signingService:u})]}})})},e.prototype.signString=function(e,t){var r=void 0===t?{}:t,n=r.signingDate,i=void 0===n?new Date:n,o=r.signingRegion,a=r.signingService;return rz(this,void 0,void 0,function(){var t,r,n,s,u,l,c,d;return rN(this,function(f){switch(f.label){case 0:return[4,this.credentialProvider()];case 1:if(t=f.sent(),!(null!=o))return[3,2];return n=o,[3,4];case 2:return[4,this.regionProvider()];case 3:n=f.sent(),f.label=4;case 4:return r=n,s=nc(i).shortDate,c=(l=this.sha256).bind,[4,this.get
40SigningKey(t,r,s,a)];case 5:return(u=new(c.apply(l,[void 0,f.sent()]))).update(e),d=rK,[4,u.digest()];case 6:return[2,d.apply(void 0,[f.sent()])]}})})},e.prototype.signRequest=function(e,t){var r=void 0===t?{}:t,n=r.signingDate,i=void 0===n?new Date:n,o=r.signableHeaders,a=r.unsignableHeaders,s=r.signingRegion,u=r.signingService;return rz(this,void 0,void 0,function(){var t,r,n,l,c,d,f,h,p,g,m;return rN(this,function(y){switch(y.label){case 0:return[4,this.credentialProvider()];case 1:if(t=y.sent(),!(null!=s))return[3,2];return n=s,[3,4];case 2:return[4,this.regionProvider()];case 3:n=y.sent(),y.label=4;case 4:return r=n,l=nu(e),d=(c=nc(i)).longDate,h=nt(f=c.shortDate,r,null!=u?u:this.service),l.headers[rQ]=d,t.sessionToken&&(l.headers[r5]=t.sessionToken),[4,na(l,this.sha256)];case 5:return p=y.sent(),!function(e,t){var r,n;e=e.toLowerCase();try{for(var i=rV(Object.keys(t)),o=i.next();!o.done;o=i.next()){var a=o.value;if(e===a.toLowerCase())return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return!1}(r2,l.headers)&&this.applyChecksum&&(l.headers[r2]=p),g=nn(l,a,o),[4,this.getSignature(d,h,this.getSigningKey(t,r,f,u),this.createCanonicalRequest(l,g,p))];case 6:return m=y.sent(),l.headers[rX]=r8+" "+("Credential="+t.accessKeyId)+"/"+h+", SignedHeaders="+nd(g)+", Signature="+m,[2,l]}})})},e.prototype.createCanonicalRequest=function(e,t,r){var n=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,r,n=e.query,i=void 0===n?{}:n,o=[],a={},s=function(e){if(e.toLowerCase()===r1)return"continue";o.push(e);var t=i[e];"string"==typeof t?a[e]=ni(e)+"="+ni(t):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce(function(t,r){return t.concat([ni(e)+"="+ni(r)])},[]).join("&"))};try{for(var u=rV(Object.keys(i).sort()),l=u.next();!l.done;l=u.next()){var c=l.value;s(c)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return o.map(function(e){return a[e]}).filter(function(e){return e}).join("&")}(e)+"\n"+n.map(function(e){return e+":"+t[e]}).join("\n")+"\n\n"+n.join(";")+"\n"+r},e.prototype.createStringToSign=function(e,t,r){return rz(this,void 0,void 0,function(){var n;return rN(this,function(i){switch(i.label){case 0:return(n=new this.sha256).update(r),[4,n.digest()];case 1:return[2,r8+"\n"+e+"\n"+t+"\n"+rK(i.sent())]}})})},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,r,n){return rz(this,void 0,void 0,function(){var i,o,a,s,u;return rN(this,function(l){switch(l.label){case 0:return[4,this.createStringToSign(e,t,n)];case 1:return i=l.sent(),s=(a=this.sha256).bind,[4,r];case 2:return(o=new(s.apply(a,[void 0,l.sent()]))).update(i),u=rK,[4,o.digest()];case 3:return[2,u.apply(void 0,[l.sent()])]}})})},e.prototype.getSigningKey=function(e,t,r,n){var i,o;return i=this.sha256,o=n||this.service,rz(void 0,void 0,void 0,function(){var n,a,s,u,l,c;return rN(this,function(d){switch(d.label){case 0:return[4,nr(i,e.secretAccessKey,e.accessKeyId)];case 1:if((n=r+":"+t+":"+o+":"+rK(d.sent())+":"+e.sessionToken)in r9)return[2,r9[n]];for(ne.push(n);ne.length>50;)delete r9[ne.shift()];a="AWS4"+e.secretAccessKey,d.label=2;case 2:d.trys.push([2,7,8,9]),u=(s=rV([r,t,o,r7])).next(),d.label=3;case 3:if(u.done)return[3,6];return[4,nr(i,a,u.value)];case 4:a=d.sent(),d.label=5;case 5:return u=s.next(),[3,3];case 6:return[3,9];case 7:return l={error:d.sent()},[3,9];case 8:try{u&&!u.done&&(c=s.return)&&c.call(s)}finally{if(l)throw l.error}return[7];case 9:return[2,r9[n]=a]}})})},e}(),nc=function(e){var t=("number"==typeof e?new Date(1e3*e):"string"==typeof e?Number(e)?new Date(1e3*Number(e)):new Date(e):e).toISOString().replace(/\.\d{3}Z$/,"Z").replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},nd=function(e){return Object.keys(e).sort().join(";")},nf=function(e){if("string"!=typeof e)return e;var t=Promise.resolve(e);return function(){return t}},nh=function(e){if("object"!=typeof e)return e;var t=Promise.resolve(e);return function(){return t}};function np(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}/*! *****************************************************************************
41Copyright (c) Microsoft Corporation.
42
43Permission to use, copy, modify, and/or distribute this software for any
44purpose with or without fee is hereby granted.
45
46THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
47REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
48AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
49INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
50LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
51OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
52PERFORMANCE OF THIS SOFTWARE.
53***************************************************************************** */var ng=function(){return(ng=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 nm(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 ny(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(nm(arguments[t]));return e}var nv="user-agent",nb=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,nw=function(e){var t=nm(e,2),r=t[0],n=t[1],i=r.indexOf("/"),o=r.substring(0,i),a=r.substring(i+1);return"api"===o&&(a=a.toLowerCase()),[o,a,n].filter(function(e){return e&&e.length>0}).map(function(e){return null==e?void 0:e.replace(nb,"_")}).join("/")},nS={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},nx=function(e){function t(t){var r,n,i,o,a=this,s=rg(function(e){var t,r=this,n=np(e.credentials||e.credentialDefaultProvider(e)),i=e.signingEscapePath,o=void 0===i||i,a=e.systemClockOffset,s=void 0===a?e.systemClockOffset||0:a,u=e.sha256;return t=e.signer?np(e.signer):function(){return np(e.region)().then(function(t){return rz(r,void 0,void 0,function(){return rN(this,function(r){switch(r.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[r.sent()||{},t]]}})})}).then(function(t){var r=r$(t,2),i=r[0],a=r[1],s=i.signingRegion,l=i.signingService;return e.signingRegion=e.signingRegion||s||a,e.signingName=e.signingName||l||e.serviceId,new nl({credentials:n,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:o})})},rL(rL({},e),{systemClockOffset:s,signingEscapePath:o,credentials:n,signer:t})}(rT(rR((0,e7.pi)((0,e7.pi)({},rE),t))))),u=ng(ng({},s),{customUserAgent:"string"==typeof s.customUserAgent?[[s.customUserAgent]]:s.
53customUserAgent});return(a=e.call(this,u)||this).config=u,a.middlewareStack.use((r=a.config,{applyToStack:function(e){e.add(function(e,t){return function(n){return rt(void 0,void 0,void 0,function(){var i;return rr(this,function(o){return(null===(i=null==r?void 0:r.retryStrategy)||void 0===i?void 0:i.mode)&&(t.userAgent=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(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}(arguments[t]));return e}(t.userAgent||[],[["cfg/retry-mode",r.retryStrategy.mode]])),[2,r.retryStrategy.retry(e,n)]})})}},rn)}})),a.middlewareStack.use((n=a.config,{applyToStack:function(e){e.add(function(e){var t=this;return function(r){return function(n){var i,o,a;return i=void 0,o=void 0,a=function(){var t,i,o,a,s;return 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(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])}}}(this,function(u){return t=n.request,tt.isInstance(t)&&(i=t.body,o=t.headers,i&&-1===Object.keys(o).map(function(e){return e.toLowerCase()}).indexOf(rj)&&void 0!==(a=e(i))&&(t.headers=rD(rD({},t.headers),((s={})[rj]=String(a),s)))),[2,r(rD(rD({},n),{request:t}))]})},new(o||(o=Promise))(function(e,r){function n(e){try{u(a.next(e))}catch(e){r(e)}}function s(e){try{u(a.throw(e))}catch(e){r(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(n,s)}u((a=a.apply(t,i||[])).next())})}}}(n.bodyLengthChecker),rF)}})),a.middlewareStack.use((i=a.config,{applyToStack:function(e){e.add(function(e){return function(t){var r,n,o,a;return r=void 0,n=void 0,o=void 0,a=function(){var r,n;return 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(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])}}}(this,function(o){return tt.isInstance(t.request)&&(r=t.request,(void 0===(n=(i.requestHandler.metadata||{}).handlerProtocol)?"":n).indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname)),[2,e(t)]})},new(o||(o=Promise))(function(e,t){function i(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var r;t.done?e(t.value):((r=t.value)instanceof o?r:new o(function(e){e(r)})).then(i,s)}u((a=a.apply(r,n||[])).next())})}},rU)}})),a.middlewareStack.use((a.config,{applyToStack:function(e){e.add(function(e,t){return function(r){var n,i,o,a;return n=void 0,i=void 0,o=void 0,a=function(){var n,i,o,a,s,u,l,c,d;return 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;
53function 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])}}}(this,function(f){switch(f.label){case 0:return n=t.clientName,i=t.commandName,o=t.inputFilterSensitiveLog,a=t.logger,s=t.outputFilterSensitiveLog,[4,e(r)];case 1:if(u=f.sent(),!a)return[2,u];return"function"==typeof a.info&&(c=(l=u.output).$metadata,d=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}(l,["$metadata"]),a.info({clientName:n,commandName:i,input:o(r.input),output:s(d),metadata:c})),[2,u]}})},new(o||(o=Promise))(function(e,t){function r(e){try{u(a.next(e))}catch(e){t(e)}}function s(e){try{u(a.throw(e))}catch(e){t(e)}}function u(t){var n;t.done?e(t.value):((n=t.value)instanceof o?n:new o(function(e){e(n)})).then(r,s)}u((a=a.apply(n,i||[])).next())})}},rB)}})),a.middlewareStack.use((o=a.config,{applyToStack:function(e){e.add(function(e,t){return function(r){var n,i,a,s;return n=void 0,i=void 0,a=void 0,s=function(){var n,i,a,s,u,l,c,d;return 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(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])}}}(this,function(f){switch(f.label){case 0:if(n=r.request,!tt.isInstance(n))return[2,e(r)];return i=n.headers,a=(null===(c=null==t?void 0:t.userAgent)||void 0===c?void 0:c.map(nw))||[],[4,o.defaultUserAgentProvider()];case 1:return s=f.sent().map(nw),u=(null===(d=null==o?void 0:o.customUserAgent)||void 0===d?void 0:d.map(nw))||[],i["x-amz-user-agent"]=ny(s,a,u).join(" "),l=ny(s.filter(function(e){return e.startsWith("aws-sdk-")}),u).join(" "),"browser"!==o.runtime&&l&&(i[nv]=i[nv]?i[nv]+" "+l:l),[2,e(ng(ng({},r),{request:n}))]}})},new(a||(a=Promise))(function(e,t){function r(e){try{u(s.next(e))}catch(e){t(e)}}function o(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,o)}u((s=s.apply(n,i||[])).next())})}},nS)}})),a}return(0,e7.ZT)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(tF),n_="aws-amplify/5.2.4",nk={userAgent:n_+" js",product:"",navigator:null,isReactNative:!1};function nA(e){var t,r=new nx({region:e.region,customUserAgent:""+nk.userAgent+(t||"")});return r.middlewareStack.add(function(e,t){return function(t){return e((0,eD.pi)((0,eD.pi)({},t),{request:(0,eD.pi)((0,eD.pi)({},t.request),{headers:(0,eD.pi)((0,eD.pi)({},t.request.headers),{"cache-control":"no-store"})})}))}},{step:"build",name:"cacheControlMiddleWare"}),r}"undefined"!=typeof navigator&&navigator.product&&((nk.product=navigator.product||"",nk.navigator=navigator||null,"ReactNative"===navigator.product)?(nk.userAgent=n_+" react-native",nk.isReactNative=!0):(nk.userAgent=n_+" js",
53nk.isReactNative=!1));var nC=new eM.k("Credentials"),nE="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",nP=function(e,t,r){eU.dispatch("core",{event:e,data:t,message:r},"Credentials",nE)},nT=new(function(){function e(e){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(e),this._refreshHandlers.google=e2.refreshGoogleToken,this._refreshHandlers.facebook=e5.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=(0,eD.pi)((0,eD.pi)({},this._refreshHandlers),t)),this._storage=this._config.storage,this._storage||(this._storage=new ez().getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),nP("credentials_configured",null,"Credentials has been configured successfully"),this._config},e.prototype.get=function(){return nC.debug("getting credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKey=function(e){return"CognitoIdentityId-"+e},e.prototype._pickupCredentials=function(){return nC.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?nC.debug("getting old cred promise"):(nC.debug("getting new cred promise"),this._gettingCredPromise=eV(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function(){return(0,eD.mG)(this,void 0,void 0,function(){var e,t,r,n,i,o;return(0,eD.Jh)(this,function(a){switch(a.label){case 0:if(nC.debug("checking if credentials exists and not expired"),(e=this._credentials)&&!this._isExpired(e)&&!this._isPastTTL())return nC.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(e)];if(nC.debug("need to get a new credential or refresh the existing one"),!(r=void 0===(t=this.Auth)?e4.d.Auth:t)||"function"!=typeof r.currentUserCredentials)return[2,this._setCredentialsForGuest()];if(!(!this._isExpired(e)&&this._isPastTTL()))return[3,6];nC.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(),nC.debug("Error attempting to refreshing the session",o),[3,6];case 6:return[2,r.currentUserCredentials()]}})})},e.prototype.refreshFederatedToken=function(e){nC.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,nC.debug("checking if federated jwt token expired"),o>new Date().getTime())?(nC.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]?(nC.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[t],provider:t,user:r})):(nC.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 eJ(r,[],1e4).then(function(e){return nC.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(),nC.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)})},e.prototype._isExpired=function(e){if(!e)return nC.debug("no credentials for expiration check"),!0;nC.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(0,eD.mG)(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,l,c=this;return(0,eD.Jh)(this,function(d){switch(d.label){case 0:if(nC.debug("setting credentials for guest"),(null===(e=this._config)||void 0===e?void 0:e.identityPoolId)||(this._config=Object.assign({},this._config,tJ(this._config||{}
53).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 nC.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!o&&!n)return nC.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=nA({region:o||n}),l=void 0,l=a?t$({identityId:a,client:u})():(0,eD.mG)(c,void 0,void 0,function(){var e;return(0,eD.Jh)(this,function(t){switch(t.label){case 0:return[4,u.send(new tW({IdentityPoolId:r}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,t$({client:u,identityId:e})()]}})}).catch(function(e){return(0,eD.mG)(c,void 0,void 0,function(){return(0,eD.Jh)(this,function(t){throw e})})}),[2,this._loadCredentials(l,"guest",!1,null).then(function(e){return e}).catch(function(e){return(0,eD.mG)(c,void 0,void 0,function(){var t=this;return(0,eD.Jh)(this,function(n){switch(n.label){case 0:if(!("ResourceNotFoundException"===e.name&&e.message==="Identity '"+a+"' not found."))return[3,2];return nC.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()];case 1:return n.sent(),l=(0,eD.mG)(t,void 0,void 0,function(){var e;return(0,eD.Jh)(this,function(t){switch(t.label){case 0:return[4,u.send(new tW({IdentityPoolId:r}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,t$({client:u,identityId:e})()]}})}).catch(function(e){return(0,eD.mG)(t,void 0,void 0,function(){return(0,eD.Jh)(this,function(t){throw e})})}),[2,this._loadCredentials(l,"guest",!1,null)];case 2:return[2,e]}})})})]}})})},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,r=e.token,n=e.identity_id,i={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var o={};o[i]=r;var a=this._config,s=a.identityPoolId,u=a.region,l=a.identityPoolRegion;if(!s)return nC.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!l&&!u)return nC.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=nA({region:l||u}),d=void 0;if(n){var f={identityId:n,logins:o,client:c};d=t$(f)()}else{var f={logins:o,identityPoolId:s,client:c};d=(function(e){var t=this,r=e.accountId,n=e.cache,i=void 0===n?"object"==typeof self&&self.indexedDB?new tH:"object"==typeof window&&window.localStorage?window.localStorage:tG:n,o=e.client,a=e.customRoleArn,s=e.identityPoolId,u=e.logins,l=e.userIdentifier,c=void 0===l?u&&0!==Object.keys(u).length?void 0:"ANONYMOUS":l,d=c?"aws:cognito-identity-credentials:"+s+":"+c:void 0,f=function(){return e6(t,void 0,void 0,function(){var e,t,n,l,c,h,p,g;return e8(this,function(m){switch(m.label){case 0:if(!(t=d))return[3,2];return[4,i.getItem(d)];case 1:t=m.sent(),m.label=2;case 2:if(e=t)return[3,7];if(c=(l=o).send,h=tW.bind,g={AccountId:r,IdentityPoolId:s},!u)return[3,4];return[4,tV(u)];case 3:return p=m.sent(),[3,5];case 4:p=void 0,m.label=5;case 5:return[4,c.apply(l,[new(h.apply(tW,[void 0,(g.Logins=p,g)]))])];case 6:e=void 0===(n=m.sent().IdentityId)?function(){throw new tN("Response from Amazon Cognito contained no identity ID")}():n,d&&Promise.resolve(i.setItem(d,e)).catch(function(){}),m.label=7;case 7:return[2,(f=t$({client:o,customRoleArn:a,logins:u,identityId:e}))()]}})})};return function(){return f().catch(function(e){return e6(t,void 0,void 0,function(){return e8(this,function(t){throw d&&Promise.resolve(i.removeItem(d)).catch(function(){}),e})})})}})(f)()}return this._loadCredentials(d,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;nC.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 nC.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");
53if(!s&&!i)return nC.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;var l=nA({region:s||i}),c=(0,eD.mG)(t,void 0,void 0,function(){var e,t,r,n,i,o,s,c,d;return(0,eD.Jh)(this,function(f){switch(f.label){case 0:return[4,this._getGuestIdentityId()];case 1:if(e=f.sent())return[3,3];return[4,l.send(new tW({IdentityPoolId:a,Logins:u}))];case 2:t=f.sent().IdentityId,f.label=3;case 3:return[4,l.send(new tz({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 nC.debug("The guest identity "+e+" has been successfully linked to the logins"),e===d&&nC.debug("The guest identity "+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(0,eD.mG)(t,void 0,void 0,function(){return(0,eD.Jh)(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(0,eD.mG)(i,void 0,void 0,function(){var i,s,u,l,c;return(0,eD.Jh)(this,function(d){switch(d.label){case 0:if(nC.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){nC.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){nC.debug("Failed to load credentials",e),nC.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():(nC.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return(0,eD.mG)(this,void 0,void 0,function(){return(0,eD.Jh)(this,function(e){return this._credentials=null,this._credentials_source=null,nC.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},e.prototype._getGuestIdentityId=function(){return(0,eD.mG)(this,void 0,void 0,function(){var e,t;return(0,eD.Jh)(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(),nC.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}})})},e.prototype._setGuestIdentityId=function(e){return(0,eD.mG)(this,void 0,void 0,function(){var t,r;return(0,eD.Jh)(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(),nC.debug("Failed to cache guest identityId",r),[3,4];case 4:return[2]}})})},e.prototype._removeGuestIdentityId=function(){return(0,eD.mG)(this,void 0,void 0,function(){var e;return(0,eD.Jh)(this,function(t){return e=this._config.identityPoolId,nC.debug("removing "+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);e4.d.register(nT);var nO=r(20273);function nI(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 nR=function(){return(nR=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)},nM=function(){function e(e,t){var r=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof e?nO.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=nO.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),nI(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]=nI(this.cookies[n],e);return r},e.prototype.set=function(e,t,r){var n;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=nR(nR({},this.cookies),((n={})[e]=t,n)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=nO.q(e,t,r)),this._emitChange({name:e,value:t,options:r})},e.prototype.remove=function(e,t){var r=t=nR(nR({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0}
53);this.cookies=nR({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=nO.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}(),nD=e$().isBrowser,nj=function(){function e(e){void 0===e&&(e={}),this.cookies=new nM,this.store=nD?window.localStorage:Object.create(null),this.cookies=e.req?new nM(e.req.headers.cookie):new nM,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,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,(0,eD.pi)((0,eD.pi)({},r),{path:"/",sameSite:!0,secure:!nD||"localhost"!==window.location.hostname}))},e}(),nF=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}(),nU=r(35994);if("undefined"!=typeof window&&window.crypto&&(ew=window.crypto),!ew&&"undefined"!=typeof window&&window.msCrypto&&(ew=window.msCrypto),!ew&&void 0!==r.g&&r.g.crypto&&(ew=r.g.crypto),!ew)try{ew=r(56249)}catch(e){}var nB=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=[],n=0;n<t;n+=4)r.push(function(){if(ew){if("function"==typeof ew.getRandomValues)try{return ew.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof ew.randomBytes)try{return ew.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}(),nL=r(8583);function nz(e,t){null!=e&&this.fromString(e,t)}function nN(){return new nz(null)}var nV="undefined"!=typeof navigator;nV&&"Microsoft Internet Explorer"==navigator.appName?(nz.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},eS=30):nV&&"Netscape"!=navigator.appName?(nz.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},eS=26):(nz.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},eS=28),nz.prototype.DB=eS,nz.prototype.DM=(1<<eS)-1,nz.prototype.DV=1<<eS,nz.prototype.FV=4503599627370496,nz.prototype.F1=52-eS,nz.prototype.F2=2*eS-52;var n$=[];for(e_=0,ex=48;e_<=9;++e_)n$[ex++]=e_;for(e_=10,ex=97;e_<36;++e_)n$[ex++]=e_;for(e_=10,ex=65;e_<36;++e_)n$[ex++]=e_;function nW(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function nq(e){var t=nN();return t.fromInt(e),t}function nH(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 nG(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>
vendor: 4,307 bytes, lines 53-56
53>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}/*!
54 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
55 * SPDX-License-Identifier: Apache-2.0
56 */function nK(e){return nU.lW.from(new nB().random(e).toString(),"hex")}nG.prototype.convert=function(e){var t=nN();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(nz.ZERO)>0&&this.m.subTo(t,t),t},nG.prototype.revert=function(e){var t=nN();return e.copyTo(t),this.reduce(t),t},nG.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)},nG.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},nG.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},nz.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},nz.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},nz.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=n$[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&&nz.ZERO.subTo(this,this)},nz.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},nz.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},nz.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},nz.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()},nz.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()},nz.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()},nz.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&&nz.ZERO.subTo(t,t)},nz.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()},nz.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=nN());var o=nN(),a=this.s,s=e.s,u=this.DB-nH(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 d=c*(1<<this.F1)+(l>1?o[l-2]>>this.F2:0),f=this.FV/d,h=(1<<this.F1)/d,p=1<<this.F2,g=r.t,m=g-l,y=null==t?nN():t;for(o.dlShiftTo(m,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),nz.ONE.dlShiftTo(l,y),y.subTo(o,o);o.t<l;)o[o.t++]=0;for(;--m>=0;){var v=r[--g]==c?this.DM:Math.floor(r[g]*f+(r[g-1]+p)*h);if((r[g]+=o.am(0,v,r,m,0,l))<v)for(o.dlShiftTo(m,y),r.subTo(y,r);r[g]<--v;)r.subTo(y,r)}null!=t&&(r.drShiftTo(l,t),a!=s&&nz.ZERO.subTo(t,t)),r.t=l,r.clamp(),u>0&&r.rShiftTo(u,r),a<0&&nz.ZERO.subTo(r,r)}}},nz.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((1&e)==0)return 0;var t=3&e;
56return(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},nz.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()},nz.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=nW(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+=nW(r));return i?o:"0"},nz.prototype.negate=function(){var e=nN();return nz.ZERO.subTo(this,e),e},nz.prototype.abs=function(){return this.s<0?this.negate():this},nz.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},nz.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+nH(this[this.t-1]^this.s&this.DM)},nz.prototype.mod=function(e){var t=nN();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(nz.ZERO)>0&&e.subTo(t,t),t},nz.prototype.equals=function(e){return 0==this.compareTo(e)},nz.prototype.add=function(e){var t=nN();return this.addTo(e,t),t},nz.prototype.subtract=function(e){var t=nN();return this.subTo(e,t),t},nz.prototype.multiply=function(e){var t=nN();return this.multiplyTo(e,t),t},nz.prototype.divide=function(e){var t=nN();return this.divRemTo(e,t,null),t},nz.prototype.modPow=function(e,t,r){var n,i=e.bitLength(),o=nq(1),a=new nG(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=nN();for(a.sqrTo(s[1],d);u<=c;)s[u]=nN(),a.mulTo(d,s[u-2],s[u]),u+=2}var f,h,p=e.t-1,g=!0,m=nN();for(i=nH(e[p])-1;p>=0;){for(i>=l?f=e[p]>>i-l&c:(f=(e[p]&(1<<i+1)-1)<<l-i,p>0&&(f|=e[p-1]>>this.DB+i-l)),u=n;(1&f)==0;)f>>=1,--u;if((i-=u)<0&&(i+=this.DB,--p),g)s[f].copyTo(o),g=!1;else{for(;u>1;)a.sqrTo(o,m),a.sqrTo(m,o),u-=2;u>0?a.sqrTo(o,m):(h=o,o=m,m=h),a.mulTo(m,s[f],o)}for(;p>=0&&(e[p]&1<<i)==0;)a.sqrTo(o,m),h=o,o=m,m=h,--i<0&&(i=this.DB-1,--p)}var y=a.revert(o);return r(null,y),y},nz.ZERO=nq(0),nz.ONE=nq(1);var nJ=/^[89a-f]/i,nY=function(){function e(e){this.N=new nz("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new nz("2",16),this.k=new nz(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=nU.lW.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=nK(128).toString("hex");return new nz(e,16)},t.generateRandomString=function(){return nK(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=nK(16).toString("hex");this.SaltToHashDevices=this.padHex(new nz(a,16)),this.g.modPow(new nz(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(nz.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 nz(this.UHexHash,16)},t.hash=function(e){var t=new nL.Sha256;t.update(e);var r=t.digestSync(),n=nU.lW.from(r).toString("hex");return Array(64-n.length).join("0")+n},t.hexHash=function(e){return this.hash(nU.lW.from(e,"hex"))},t.computehkdf=function(e,t){var r=nU.lW.concat([this.infoBits,nU.lW.from("\x01","utf8")]),n=new nL.Sha256(t);n.update(e);var i=n.digestSync(),o=new nL.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(nz.ZERO))throw Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,r),this.UValue.equals(nz.ZERO))throw Error("U cannot be zero.");var a=""+this.poolName+e+":"+t,s=this.hash(a),u=new nz(this.hexHash(this.padHex(n)+s),16);this.calculateS(u,r,function(e,t){e&&i(e,null),i(null,o.computehkdf(nU.lW.from(o.padHex(t),"hex"),nU.lW.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 nz))throw Error("Not a BigInteger");var t=0>
56e.compareTo(nz.ZERO),r=e.abs().toString(16);if(r=r.length%2!=0?"0"+r:r,r=nJ.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 nz(n,16).add(nz.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(r=r.substring(2))}return r},e}(),nZ=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(nU.lW.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}();function nX(e,t){return(nX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}/*!
57 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
58 * SPDX-License-Identifier: Apache-2.0
59 */var nQ=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,nX(t,e),r}(nZ);function n0(e,t){return(n0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}/*!
60 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
61 * SPDX-License-Identifier: Apache-2.0
62 */var n1=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,n0(t,e),r}(nZ),n2=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),n5="aws-amplify/5.0.4",n4={userAgent:n5+" js",product:"",navigator:null,isReactNative:!1};"undefined"!=typeof navigator&&navigator.product&&((n4.product=navigator.product||"",n4.navigator=navigator||null,"ReactNative"===navigator.product)?(n4.userAgent=n5+" react-native",n4.isReactNative=!0):(n4.userAgent=n5+" js",n4.isReactNative=!1));/*!
63 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
64 * SPDX-License-Identifier: Apache-2.0
65 */var n3=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}(),n6=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],n8=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],n7=function(){function e(){}return e.prototype.getNowString=function(){var e=new Date,t=n8[e.getUTCDay()],r=n6[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}(),n9=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}(),ie={},it=function(){function e(){}return e.setItem=function(e,t){return ie[e]=t,ie[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(ie,e)?ie[e]:void 0},e.removeItem=function(e){return delete ie[e]},e.clear=function(){return ie={}},e}(),ir=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=it}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),ii="undefined"!=typeof navigator?n4.isReactNative?"react-native":navigator.userAgent:"nodejs",io=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 ir().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
65d."))},t.authenticateUserDefaultAuth=function(e,t){var r,n,i=this,o=new nY(this.pool.getUserPoolName()),a=new n7,s={};null!=this.deviceKey&&(s.DEVICE_KEY=this.deviceKey),s.USERNAME=this.username,o.getLargeAValue(function(u,l){u&&t.onFailure(u),s.SRP_A=l.toString(16),"CUSTOM_AUTH"===i.authenticationFlowType&&(s.CHALLENGE_NAME="SRP_A");var c=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),d={AuthFlow:i.authenticationFlowType,ClientId:i.pool.getClientId(),AuthParameters:s,ClientMetadata:c};i.getUserContextData(i.username)&&(d.UserContextData=i.getUserContextData(i.username)),i.client.request("InitiateAuth",d,function(s,u){if(s)return t.onFailure(s);var l=u.ChallengeParameters;i.username=l.USER_ID_FOR_SRP,i.userDataKey=i.keyPrefix+"."+i.username+".userData",r=new nz(l.SRP_B,16),n=new nz(l.SALT,16),i.getCachedDeviceKeyAndPassword(),o.getPasswordAuthenticationKey(i.username,e.getPassword(),r,n,function(e,r){e&&t.onFailure(e);var n=a.getNowString(),s=nU.lW.concat([nU.lW.from(i.pool.getUserPoolName(),"utf8"),nU.lW.from(i.username,"utf8"),nU.lW.from(l.SECRET_BLOCK,"base64"),nU.lW.from(n,"utf8")]),d=new nL.Sha256(r);d.update(s);var f=d.digestSync(),h=nU.lW.from(f).toString("base64"),p={};p.USERNAME=i.username,p.PASSWORD_CLAIM_SECRET_BLOCK=l.SECRET_BLOCK,p.TIMESTAMP=n,p.PASSWORD_CLAIM_SIGNATURE=h,null!=i.deviceKey&&(p.DEVICE_KEY=i.deviceKey);var g={ChallengeName:"PASSWORD_VERIFIER",ClientId:i.pool.getClientId(),ChallengeResponses:p,Session:u.Session,ClientMetadata:c};i.getUserContextData()&&(g.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")?(p.DEVICE_KEY=null,i.deviceKey=null,i.randomPassword=null,i.deviceGroupKey=null,i.clearCachedDeviceKeyAndPassword(),e(t,r)):r(n,o)})}(g,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 nY(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,u=[],l=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(o&&(a=JSON.parse(e.ChallengeParameters.userAttributes),s=JSON.parse(e.ChallengeParameters.requiredAttributes)),s)for(var c=0;c<s.length;c++)u[c]=s[c].substr(l.length);return r.newPasswordRequired(a,u)}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 d=e.AuthenticationResult.NewDeviceMetadata;if(null==d)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:nU.lW.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:nU.lW.from(t.getVerifierDevices(),"hex").toString("base64")};n.verifierDevices=o.PasswordVerifier,n.deviceGroupKey=d.DeviceGroupKey,n.randomPassword=t.getRandomPassword(),n.client.request("ConfirmDevice",{DeviceKey:d.DeviceKey,AccessToken:n.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:o,DeviceName:ii},function(t,i){return t?r.onFailure(t):(n.deviceKey=e.AuthenticationResult.
65NewDeviceMetadata.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 nY(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 nY(this.deviceGroupKey),i=new n7,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 u={ChallengeName:"DEVICE_SRP_AUTH",ClientId:r.pool.getClientId(),ChallengeResponses:o,ClientMetadata:t,Session:r.Session};r.getUserContextData()&&(u.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",u,function(t,o){if(t)return e.onFailure(t);var a=o.ChallengeParameters,s=new nz(a.SRP_B,16),u=new nz(a.SALT,16);n.getPasswordAuthenticationKey(r.deviceKey,r.randomPassword,s,u,function(t,n){if(t)return e.onFailure(t);var s=i.getNowString(),u=nU.lW.concat([nU.lW.from(r.deviceGroupKey,"utf8"),nU.lW.from(r.deviceKey,"utf8"),nU.lW.from(a.SECRET_BLOCK,"base64"),nU.lW.from(s,"utf8")]),l=new nL.Sha256(n);l.update(u);var c=l.digestSync(),d=nU.lW.from(c).toString("base64"),f={};f.USERNAME=r.username,f.PASSWORD_CLAIM_SECRET_BLOCK=a.SECRET_BLOCK,f.TIMESTAMP=s,f.PASSWORD_CLAIM_SIGNATURE=d,f.DEVICE_KEY=r.deviceKey;var h={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:r.pool.getClientId(),ChallengeResponses:f,Session:o.Session};r.getUserContextData()&&(h.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",h,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 nY(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);
65if("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 nY(i.pool.getUserPoolName());n.generateHashDevice(r.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,r.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(e){if(e)return t.onFailure(e);var o={Salt:nU.lW.from(n.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:nU.lW.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:ii},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 n9(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);
65var 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 n1({IdToken:this.storage.getItem(n)}),o=new nQ({AccessToken:this.storage.getItem(r+".accessToken")}),a=new n2({RefreshToken:this.storage.getItem(r+".refreshToken")}),s=parseInt(this.storage.getItem(r+".clockDrift"),0)||0,u=new n3({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",
65i=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 n1(e),r=new nQ(e),n=new n2(e);return new n3({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.");
65if(!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}();function ia(){}function is(e){var t="function"==typeof Map?new Map:void 0;return(is=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))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 iu(e,arguments,ic(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),il(r,e)})(e)}function iu(e,t,r){return(iu=!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&&il(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function il(e,t){return(il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ic(e){return(ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r(96796),ia.prototype.userAgent=n4.userAgent;var id=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,il(t,e),r}(is(Error)),ih=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 id(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 ip.debug(t.name+" attempt #"+i+" with args: "+JSON.stringify(r)),t.apply(void 0,r).catch(function(o){if
65(ip.debug("error on "+t.name,o),o&&o.nonRetryable)throw ip.debug(t.name+" non retryable error",o),o;var a=n(i,r,o);if(ip.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":ia.prototype.userAgent,"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}(),ip={debug:function(){}},ig=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 ih(u,o,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||new ir().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 io(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 io(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}(),im=r(21999),iy=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),im.set(e,t,r),im.get(e)},t.getItem=function(e){return im.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),im.remove(e,t)},t.clear=function(){for(var e=im.get(),t=Object.keys(e).length,r=0;r<t;++r)this.removeItem(Object.keys(e)[r]);return{}},e}(),iv=r(52574),ib=function(e){var t=window.open(e,"_self");
65return t?Promise.resolve(t):Promise.reject()},iw=function(e){window.sessionStorage.setItem("oauth_state",e)},iS=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e},ix=function(e){window.sessionStorage.setItem("ouath_pkce_key",e)},i_=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e},ik="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",iA=function(e,t,r){eU.dispatch("auth",{event:e,data:t,message:r},"Auth",ik)},iC=new eM.k("OAuth"),iE=function(){function e(e){var t=e.config,r=e.cognitoClientId,n=e.scopes,i=void 0===n?[]:n;if(this._urlOpener=t.urlOpener||ib,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=p.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;iw(s);var u=this._generateRandom(128);ix(u);var l=this._generateChallenge(u),c="https://"+t+"/oauth2/authorize?"+Object.entries(eE(eE({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=eO(e,2),r=t[0],n=t[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)}).join("&");iC.debug("Redirecting to "+c),this._urlOpener(c,r)},e.prototype._handleCodeFlow=function(e){return eP(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,l,c,d,f;return eT(this,function(h){switch(h.label){case 0:if(t=((0,iv.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r,n=eO(t,2),i=n[0],o=n[1];return eE(eE({},e),((r={})[i]=o,r))},{code:void 0}).code,r=(0,iv.parse)(e).pathname||"/",n=(0,iv.parse)(this._config.redirectSignIn).pathname||"/",!t||r!==n)return[2];return iA("codeFlow",{},"Retrieving tokens from "+(i="https://"+this._config.domain+"/oauth2/token")),a=eE({grant_type:"authorization_code",code:t,client_id:eR(this._config)?this._cognitoClientId:this._config.clientID,redirect_uri:eR(this._config)?this._config.redirectSignIn:this._config.redirectUri},(o=i_())?{code_verifier:o}:{}),iC.debug("Calling token endpoint: "+i+" with",a),s=Object.entries(a).map(function(e){var t=eO(e,2),r=t[0],n=t[1];return encodeURIComponent(r)+"="+encodeURIComponent(n)}).join("&"),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s})];case 1:return[4,h.sent().json()];case 2:if(l=(u=h.sent()).access_token,c=u.refresh_token,d=u.id_token,f=u.error)throw Error(f);return[2,{accessToken:l,refreshToken:c,idToken:d}]}})})},e.prototype._handleImplicitFlow=function(e){return eP(this,void 0,void 0,function(){var t,r,n;return eT(this,function(i){return r=(t=((0,iv.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r,n=eO(t,2),i=n[0],o=n[1];return eE(eE({},e),((r={})[i]=o,r))},{id_token:void 0,access_token:void 0})).id_token,n=t.access_token,iA("implicitFlow",{},"Got tokens from "+e),iC.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:n,idToken:r,refreshToken:null}]})})},e.prototype.handleAuthResponse=function(e){return eP(this,void 0,void 0,function(){var t,r,n,i,o,a,s;return eT(this,function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),r=(t=e?eE(eE({},((0,iv.parse)(e).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r=eO(t,2),n=r[0],i=r[1];return e[n]=i,e},{})),((0,iv.parse)(e).query||"").split("&").map(function(e){return e.split("=")}).reduce(function(e,t){var r=eO(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),iC.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,eE.apply(void 0,[eE.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,eE.apply(void 0,[eE.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),iC.debug("Error handling auth response.",s),s;case 6:return[2]}})})},e.prototype._validateState=function(e){if(e){var t=iS(),r=e.state;if(t&&t!==r)throw Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return eP(this,void 0,void 0,function(){var e,t;return eT(this,function(r){return iA("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+(e="https://"+this._config.domain+"/logout?"+Object.entries({client_id:eR(this._config)?this._cognitoClientId:this._config.oauth.clientID,logout_uri:encodeURIComponent(t=eR(this._config)?this._config.redirectSignOut:this._config.returnTo)}).map(function(e){var t=eO(e,2);return t[0]+"="+t[1]}).join("&"))),iC.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 nL.Sha256;t.update(e);var r=t.digestSync(),n=nU.lW.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}(),iP=function(e){if(e$().isBrowser&&window.location)e({url:window.location.href});else if(e$().isNode);else throw Error("Not supported")};(h=ek||(ek={}
65)).DEFAULT_MSG="Authentication Error",h.EMPTY_EMAIL="Email cannot be empty",h.EMPTY_PHONE="Phone number cannot be empty",h.EMPTY_USERNAME="Username cannot be empty",h.INVALID_USERNAME="The username should either be a string or one of the sign in types",h.EMPTY_PASSWORD="Password cannot be empty",h.EMPTY_CODE="Confirmation code cannot be empty",h.SIGN_UP_ERROR="Error creating account",h.NO_MFA="No valid MFA method provided",h.INVALID_MFA="Invalid MFA type",h.EMPTY_CHALLENGE="Challenge response cannot be empty",h.NO_USER_SESSION="Failed to get the session because the user is empty",h.NETWORK_ERROR="Network Error",h.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",h.AUTOSIGNIN_ERROR="Please use your credentials to sign in";var iT=new eM.k("AuthError"),iO=function(e){function t(r){var n=this,i=iR[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,iT.error(n.log),n}return eC(t,e),t}(Error),iI=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 eC(t,e),t}(iO),iR={noConfig:{message:ek.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:ek.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:ek.EMPTY_USERNAME},invalidUsername:{message:ek.INVALID_USERNAME},emptyPassword:{message:ek.EMPTY_PASSWORD},emptyCode:{message:ek.EMPTY_CODE},signUpError:{message:ek.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:ek.NO_MFA},invalidMFA:{message:ek.INVALID_MFA},emptyChallengeResponse:{message:ek.EMPTY_CHALLENGE},noUserSession:{message:ek.NO_USER_SESSION},deviceConfig:{message:ek.DEVICE_CONFIG},networkError:{message:ek.NETWORK_ERROR},autoSignInError:{message:ek.AUTOSIGNIN_ERROR},default:{message:ek.DEFAULT_MSG}},iM=new eM.k("AuthClass"),iD="aws.cognito.signin.user.admin",ij="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",iF=function(e,t,r){eU.dispatch("auth",{event:e,data:t,message:r},"Auth",ij)},iU=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=nT,this.wrapRefreshSessionCallback=function(e){return function(t,r){return r?iF("tokenRefresh",void 0,"New token retrieved"):iF("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),eU.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")}})}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};iM.debug("configure Auth");var r=Object.assign({},this._config,tJ(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 iM.error("The storage in the Auth config is not val
65id!"),Error("Empty storage object");this._storage=m}else a?this._storage=new iy(a):this._storage=e.ssr?new nj:new ez().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 ig(y,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:c,region:u,userPoolId:i,identityPoolId:l,refreshHandlers:d,storage:this._storage,identityPoolRegion:f});var v=s?eR(this._config.oauth)?s:s.awsCognito:void 0;if(v){var b=Object.assign({cognitoClientId:o,UserPoolId:i,domain:v.domain,scopes:v.scope,redirectSignIn:v.redirectSignIn,redirectSignOut:v.redirectSignOut,responseType:v.responseType,Storage:this._storage,urlOpener:v.urlOpener,clientMetadata:h},v.options);this._oAuthHandler=new iE({scopes:b.scopes,config:b,cognitoClientId:b.cognitoClientId});var w={};iP(function(e){var r=e.url;w[r]||(w[r]=!0,t._handleAuthResponse(r))})}return iF("configured",null,"The Auth category has been configured successfully"),this.autoSignInInitiated||"function"!=typeof this._storage.getItem||(this.isTrueStorageValue("amplify-polling-started")&&(iF("autoSignIn_failure",null,g.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 n9({Name:"email",Value:m})),y&&c.push(new n9({Name:"phone_number",Value:y}))}else{if(!e||"object"!=typeof e)return this.rejectAuthError(g.SignUpError);u=e.username,l=e.password,e&&e.clientMetadata?i=e.clientMetadata:this._config.clientMetadata&&(i=this._config.clientMetadata);var v=e.attributes;v&&Object.keys(v).map(function(e){c.push(new n9({Name:e,Value:v[e]}))});var b=e.validationData;b&&(d=[],Object.keys(b).map(function(e){d.push(new n9({Name:e,Value:b[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?(iM.debug("signUp attrs:",c),iM.debug("signUp validation data:",d),new Promise(function(e,t){o.userPool.signUp(u,l,c,d,function(r,n){r?(iF("signUp_failure",r,u+" failed to signup"),t(r)):(iF("signUp",n,u+" has signed up successfully"),f.enabled&&o.handleAutoSignIn(u,l,h,p,n),e(n))},i)})):this.rejectAuthError(g.EmptyPassword):this.rejectAuthError(g.EmptyUsername)}
65,e.prototype.handleAutoSignIn=function(e,t,r,n,i){this.autoSignInInitiated=!0;var o=new nF({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)};eU.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),iF("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 eP(this,void 0,void 0,function(){var n,i,o=this;return eT(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){iF("autoSignIn",n,e.getUsername()+" has signed in successfully"),t&&eU.remove("auth",t),r&&(clearInterval(r),o._storage.removeItem("amplify-polling-started")),o._storage.removeItem("amplify-auto-sign-in")},function(e){iM.error(e),o._storage.removeItem("amplify-auto-sign-in")}))];case 2:return a.sent(),[3,4];case 3:return i=a.sent(),iM.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(g.EmptyUsername);if(!t)return this.rejectAuthError(g.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):(iF("confirmSignUp",n,e+" has been confirmed successfully"),i.isTrueStorageValue("amplify-auto-sign-in")&&!i.autoSignInInitiated&&(iF("autoSignIn_failure",null,g.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(g.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(g.InvalidUsername);void 0!==t&&iM.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(g.EmptyUsername);var a=new nF({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 eP(n,void 0,void 0,function(){var n,a,s,u;return eT(this,function(l){switch(l.label){case 0:iM.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(),iM.debug("succeed to get cognito credentials",n),[3,9];case 4:return a=l.sent(),iM.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,iF("signIn",s,"A user "+e.getUsername()+" has been signed in"),t(s),[3,8];case 7:return u=l.sent(),iM.error("Failed to get the signed in user",u),r(u),[3,8];case 8:return[7];case 9:return[2]}})})}
65,onFailure:function(t){iM.debug("signIn failure",t),iF("signIn_failure",t,e.getUsername()+" failed to signin"),r(t)},customChallenge:function(r){iM.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=r,t(e)},mfaRequired:function(r,n){iM.debug("signIn MFA required"),e.challengeName=r,e.challengeParam=n,t(e)},mfaSetup:function(r,n){iM.debug("signIn mfa setup",r),e.challengeName=r,e.challengeParam=n,t(e)},newPasswordRequired:function(r,n){iM.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:r,requiredAttributes:n},t(e)},totpRequired:function(r,n){iM.debug("signIn totpRequired"),e.challengeName=r,e.challengeParam=n,t(e)},selectMFAType:function(r,n){iM.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){iM.debug("get MFA Options failed",e),r(e);return}iM.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 eP(r,void 0,void 0,function(){var r,s;return eT(this,function(u){switch(u.label){case 0:if(!t)return[3,5];if(iM.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":iM.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 eP(r,void 0,void 0,function(){var r;return eT(this,function(a){switch(a.label){case 0:if(!t)return[3,5];if(iM.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 eP(this,void 0,void 0,function(){var r,n,i,o,a,s,u=this;return eT(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(g.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 iM.debug("no validmfa method provided"),[2,this.rejectAuthError(g.NoMFA)
65];case 7:return[2,new Promise(function(t,n){e.setUserMfaPreference(i,o,function(i,o){if(i)return iM.debug("Set user mfa preference error",i),n(i);iM.debug("Set user mfa success",o),iM.debug("Caching the latest user data into local"),e.getUserData(function(r,i){return eP(u,void 0,void 0,function(){var i;return eT(this,function(a){switch(a.label){case 0:if(!r)return[3,5];if(iM.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];case 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){iM.debug("disable mfa failed",e),r(e);return}iM.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){iM.debug("enable mfa failed",e),r(e);return}iM.debug("enable mfa succeed",n),t(n)})})},e.prototype.setupTOTP=function(e){return new Promise(function(t,r){e.associateSoftwareToken({onFailure:function(e){iM.debug("associateSoftwareToken failed",e),r(e)},associateSecretCode:function(e){iM.debug("associateSoftwareToken success",e),t(e)}})})},e.prototype.verifyTotpToken=function(e,t){iM.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){iM.debug("verifyTotpToken failed",e),i(e)},onSuccess:function(t){n||iF("signIn",e,"A user "+e.getUsername()+" has been signed in"),iF("verify",e,"A user "+e.getUsername()+" has been verified"),iM.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(g.EmptyCode);var o=this;return new Promise(function(a,s){e.sendMFACode(t,{onSuccess:function(t){return eP(i,void 0,void 0,function(){var r,n,i,s;return eT(this,function(u){switch(u.label){case 0:iM.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(),iM.debug("succeed to get cognito credentials",r),[3,10];case 4:return n=u.sent(),iM.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(),iM.debug("cannot get updated Cognito User",s),[3,9];
65case 9:return iF("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 10:return[2]}})})},onFailure:function(e){iM.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(g.EmptyPassword);var o=this;return new Promise(function(a,s){e.completeNewPasswordChallenge(t,r,{onSuccess:function(t){return eP(i,void 0,void 0,function(){var r,n;return eT(this,function(i){switch(i.label){case 0:iM.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(),iM.debug("succeed to get cognito credentials",r),[3,6];case 4:return n=i.sent(),iM.debug("cannot get cognito credentials",n),[3,6];case 5:return o.user=e,iF("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 6:return[2]}})})},onFailure:function(e){iM.debug("completeNewPassword failure",e),iF("completeNewPassword_failure",e,i.user+" failed to complete the new password flow"),s(e)},mfaRequired:function(t,r){iM.debug("signIn MFA required"),e.challengeName=t,e.challengeParam=r,a(e)},mfaSetup:function(t,r){iM.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=r,a(e)},totpRequired:function(t,r){iM.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(g.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 eP(this,void 0,void 0,function(){var e,t,r=this;return eT(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(),iM.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 eP(r,void 0,void 0,function(){var r,i=this;return eT(this,function(o){if(this.userPool){if(!(r=this.userPool.getCurrentUser()))return iM.debug("Failed to get user from user pool"),[2,n(Error("No current user."))];r.getSession(function(o,a){return eP(i,void 0,void 0,function(){var i,a=this;return eT(this,function(s){switch(s.label){case 0:if(!o)return[3,5];if(iM.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{iF("userDeleted",o,"The authenticated user has been deleted."),r.signOut(),a.user=null;try{a.cleanCachedItems()}catch(e){iM.debug("failed to clear cached items")}t?a.oAuthSignOutRedirect(e,n):(iF("signOut",a.user,"A user has been signed out"),e(o))}}),s.label=6;case 6:return[2]}})})})}else iM.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?(iF("updateUserAttributes_failure",e,"Failed to update attributes"),s(e)):(iF("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.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)},e.prototype.cleanUpInvalidSession=function(e){return eP(this,void 0,void 0,function(){var t=this;return eT(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(),iM.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 iF("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 eP(t,void 0,void 0,function(){var t,i,o,a,s,u=this;return eT(this,function(l){switch(l.label){case 0:if(!this.isOAuthInProgress())return[3,2];return iM.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise(function(e){var t=setTimeout(function(){iM.debug("OAuth signIn in progress timeout"),eU.remove("auth",r),e()},1e4);function r(n){var i=n.payload.event;("cognitoHostedUI"===i||"cognitoHostedUI_failure"===i)&&(iM.debug("OAuth signIn resolved: "+i),clearTimeout(t),eU.remove("auth",r),e())}eU.listen("auth",r)}
65)];case 1:l.sent(),l.label=2;case 2:if(!(t=this.userPool.getCurrentUser()))return iM.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(iD))return iM.debug("Unable to get the user data because the "+iD+" is not in the scopes of the access token"),[2,r(t)];return t.getUserData(function(e,i){return eP(u,void 0,void 0,function(){var o,a,s,u,l,c;return eT(this,function(d){switch(d.label){case 0:if(!e)return[3,7];if(iM.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 n9(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 iM.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 eP(this,void 0,void 0,function(){var t,r,n,i,o;return eT(this,function(a){switch(a.label){case 0:iM.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(),iM.debug("Failed to sync cache info into memory",r),r;case 4:try{(n=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(t=eE(eE({},n.user),{token:n.token}))}catch(e){iM.debug("cannot load federated user from auth storage")}if(!t)return[3,5];return this.user=t,iM.debug("get current authenticated federated user",this.user),[2,this.user];case 5:iM.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())&&iM.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"),iM.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(iM.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){iM.debug("Failed to get the current session",e),r(e)})}).catch(function(e){iM.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 eP(this,void 0,void 0,function(){var t,r,n=this;return eT(this,function(i){switch(i.label){case 0:if(!e)return iM.debug("the user is null"),[2,this.rejectAuthError(g.NoUserSession)];t=this._config.clientMetadata,0===this.inflightSessionPromiseCounter&&(this.inflightSessionPromise=new Promise(function(r,i){e.getSession(function(t,o){return eP(n,void 0,void 0,function(){var n;return eT(this,function(a){switch(a.label){case 0:if(!t)return[3,5];if(iM.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 iM.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 eP(this,void 0,void 0,function(){var e,t,r=this;return eT(this,function(n){switch(n.label){case 0:iM.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(),iM.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){iM.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 iM.debug("getting session success",e),r.Credentials.set(e,"session")}
65).catch(function(){return iM.debug("getting guest credentials"),r.Credentials.set(null,"guest")})]}})})},e.prototype.currentCredentials=function(){return iM.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(g.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 eP(this,void 0,void 0,function(){var r,n,i=this;return eT(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(),iM.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){iM.debug("user global sign out",t);var a=i._config.clientMetadata;t.getSession(function(e,a){return eP(i,void 0,void 0,function(){var i,a=this;return eT(this,function(s){switch(s.label){case 0:if(!e)return[3,5];if(iM.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(iM.debug("global sign out success"),!n)return r();a.oAuthSignOutRedirect(r,o)},onFailure:function(e){return iM.debug("global sign out failed",e),o(e)}}),[2]}})})},{clientMetadata:a})}else iM.debug("user sign out",t),t.signOut(function(){if(!n)return r();i.oAuthSignOutRedirect(r,o)})})]}})})},e.prototype.oAuthSignOutRedirect=function(e,t){e$().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 eP(this,void 0,void 0,function(){var t;return eT(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return r.sent(),[3,3];case 2:return r.sent(),iM.debug("failed to clear cached items"),[3,3];case 3:if(!this.userPool)return[3,7];if(!(t=this.userPool.getCurrentUser()))return[3,5];return[4,this.cognitoIdentitySignOut(e,t)];case 4:return r.sent(),[3,6];case 5:iM.debug("no current Cognito user"),r.label=6;case 6:return[3,8];case 7:iM.debug("no Cognito User pool"),r.label=8;case 8:return iF("signOut",this.user,"A user has been signed out"),this.user=null,[2]}})})},e.prototype.cleanCachedItems=function(){return eP(this,void 0,void 0,function(){return eT(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?(iM.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(g.EmptyUsername);var r=this.createCognitoUser(e);return new Promise(function(n,i){r.forgotPassword({onSuccess:function(){n()},onFailure:function(t){iM.debug("forgot password failure",t),iF("forgotPassword_failure",t,e+" forgotPassword failed"),i(t)},inputVerificationCode:function(t){iF("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(g.EmptyUsername);if(!t)return this.rejectAuthError(g.EmptyCode);if(!r)return this.rejectAuthError(g.EmptyPassword);var i=this.createCognitoUser(e);return new Promise(function(o,a){i.confirmPassword(t,r,{onSuccess:function(t){iF("forgotPasswordSubmit",i,e+" forgotPasswordSubmit successful"),o(t)}
65,onFailure:function(t){iF("forgotPasswordSubmit_failure",t,e+" forgotPasswordSubmit failed"),a(t)}},n)})},e.prototype.currentUserInfo=function(){return eP(this,void 0,void 0,function(){var e,t,r,n,i,o,a;return eT(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 iM.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(),iM.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(),iM.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 eP(this,void 0,void 0,function(){var n,i,o,a,s,u,l,c,d,f,h;return eT(this,function(g){switch(g.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(!(eI(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=eI(n=e||{provider:p.Cognito})?n.provider:n.customProvider,eI(n),o=n.customState,this._config.userPoolId&&(a=eR(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,s=eR(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))&&iM.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=g.sent(),[4,this.currentAuthenticatedUser()];
65case 3:return iF("signIn",h=g.sent(),"A user "+h.username+" has been signed in"),iM.debug("federated sign in credentials",f),[2,f];case 4:return[2]}})})},e.prototype._handleAuthResponse=function(e){return eP(this,void 0,void 0,function(){var t,r,n,i,o,a,s,u,l,c,d,f,h;return eT(this,function(p){switch(p.label){case 0:if(this.oAuthFlowInProgress)return iM.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(iF("parsingCallbackUrl",{url:e},"The callback url is being parsed"),t=e||(e$().isBrowser?window.location.href:""),r=!!((0,iv.parse)(t).query||"").split("&").map(function(e){return e.split("=")}).find(function(e){var t=eO(e,1)[0];return"code"===t||"error"===t}),n=!!((0,iv.parse)(t).hash||"#").substr(1).split("&").map(function(e){return e.split("=")}).find(function(e){var t=eO(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 n3({IdToken:new n1({IdToken:a}),RefreshToken:new n2({RefreshToken:s}),AccessToken:new nQ({AccessToken:o})}),c=void 0,!this._config.identityPoolId)return[3,5];return[4,this.Credentials.set(l,"session")];case 4:c=p.sent(),iM.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({},null,this._config.oauth.redirectSignIn),iF("signIn",f,"A user "+f.getUsername()+" has been signed in"),iF("cognitoHostedUI",f,"A user "+f.getUsername()+" has been signed in via Cognito Hosted UI"),d&&iF("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(),iM.debug("Error in cognito hosted auth response",h),window&&void 0!==window.history&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),iF("signIn_failure",h,"The OAuth response flow failed"),iF("cognitoHostedUI_failure",h,"A failure occurred when returning to the Cognito Hosted UI"),iF("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 io(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?g.NoConfig:g.MissingAuthConfig},e.prototype.rejectAuthError=function(e){return Promise.reject(new iO(e))},e.prototype.rejectNoUserPool=function(){var e=this.noUserPoolErrorHandler(this._config);return Promise.reject(new iI(e))},e.prototype.rememberDevice=function(){return eP(this,void 0,void 0,function(){var e,t;return eT(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(),iM.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 iO(g.DeviceConfig)):"NetworkError"===e.code?r(new iO(g.NetworkError)):r(e)}})})]}})})},e.prototype.forgetDevice=function(){return eP(this,void 0,void 0,function(){var e,t;return eT(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(),iM.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 iO(g.DeviceConfig)):"NetworkError"===e.code?r(new iO(g.NetworkError)):r(e)}})})]}})})},e.prototype.fetchDevices=function(){return eP(this,void 0,void 0,function(){var e,t;return eT(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(),iM.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 iO(g.DeviceConfig)):"NetworkError"===e.code?r(new iO(g.NetworkError)):r(e)}})})]}})})},e}())(null);e4.d.register(iU)},31898:function(e,t,r){"use strict";r.d(t,{d:function(){return a}});
65var n=r(26794),i=r(30283),o=new i.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=i.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).forEach(function(e){var r=(0,n.CR)(e,2),i=(r[0],r[1]);Object.keys(i).forEach(function(e){t._modules[e]&&(i[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}())},30283:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var n,i,o=r(26794),a={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5};(n=i||(i={})).DEBUG="DEBUG",n.ERROR="ERROR",n.INFO="INFO",n.WARN="WARN",n.VERBOSE="VERBOSE";var s=function(){function e(e,t){void 0===t&&(t=i.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,n,s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];var l=this.level;e.LOG_LEVEL&&(l=e.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(l=window.LOG_LEVEL);var c=a[l];if(a[t]>=c){var d=console.log.bind(console);t===i.ERROR&&console.error&&(d=console.error.bind(console)),t===i.WARN&&console.warn&&(d=console.warn.bind(console));var f="["+t+"] "+this._ts()+" "+this.name,h="";if(1===s.length&&"string"==typeof s[0])d(h=f+" - "+s[0]);else if(1===s.length)h=f+" "+s[0],d(f,s[0]);else if("string"==typeof s[0]){var p=s.slice(1);1===p.length&&(p=p[0]),h=f+" - "+s[0]+" "+p,d(f+" - "+s[0],p)}else h=f+" "+s,d(f,s);try{for(var g=(0,o.XA)(this._pluggables),m=g.next();!m.done;m=g.next()){var y=m.value,v={message:h,timestamp:Date.now()};y.pushLogs([v])}}catch(e){r={error:e}}finally{try{m&&!m.done&&(n=g.return)&&n.call(g)}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,(0,o.fl)([i.INFO],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,(0,o.fl)([i.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,(0,o.fl)([i.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,(0,o.fl)([i.ERROR],e))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,(0,o.fl)([i.DEBUG],e))},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,(0,o.fl)([i.VERBOSE],e))},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}()},26794:function(e,t,r){"use strict";r.d(t,{CR:function(){return l},Jh:function(){return s},XA:function(){return u},ZT:function(){return i},fl:function(){return c},mG:function(){return a},pi:function(){return o}});/*! *****************************************************************************
66Copyright (c) Microsoft Corporation.
67
68Permission to use, copy, modify, and/or distribute this software for any
69purpose with or without fee is hereby granted.
70
71THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
72REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
73AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
74INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
75LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
76OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
77PERFORMANCE OF THIS SOFTWARE.
78***************************************************************************** */var n=function(e,t){return(n=Object.
78setPrototypeOf||({__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,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 s(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 u(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 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(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}},94751:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83546:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},73144:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46135:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94519:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];t.isMsWindow=function(e){if("MSInputMethodContext"in e&&"msCrypto"in e&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,i=t.subtle;return r.map(function(e){return i[e]}).concat(n).every(function(e){return"function"==typeof e})}return!1}},65148:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(38232);n.__exportStar(r(94751),t),n.__exportStar(r(83546),t),n.__exportStar(r(73144),t),n.__exportStar(r(46135),t),n.__exportStar(r(94519),t)},38232:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return S},__await:function(){return v},__awaiter:function(){return c},__classPrivateFieldGet:function(){return A},__classPrivateFieldSet:function(){return C},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return k},__importStar:function(){return _}
vendor: 6,126 bytes, lines 78-91
78,__makeTemplateObject:function(){return x},__metadata:function(){return l},__param:function(){return u},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************
79Copyright (c) Microsoft Corporation.
80
81Permission to use, copy, modify, and/or distribute this software for any
82purpose with or without fee is hereby granted.
83
84THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
85REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
86AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
87INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
88LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
89OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
90PERFORMANCE OF THIS SOFTWARE.
91***************************************************************************** */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 g(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 m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(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 v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(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 v?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 w(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:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function S(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 x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
91function _(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 k(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},11666:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},85710:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(53469),i=r(27002),o=r(8583),a=r(37680),s=r(65148),u=r(69874),l=function(){function e(e){(0,a.supportsWebCrypto)((0,u.locateWindow)())?this.hash=new i.Sha256(e):(0,s.isMsWindow)((0,u.locateWindow)())?this.hash=new n.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}();t.Sha256=l},53469:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(93281),i=r(11666),o=r(33184),a=r(69874),s=function(){function e(e){e?(this.operation=new Promise(function(t,r){var n=(0,a.locateWindow)().msCrypto.subtle.importKey("raw",u(e),i.SHA_256_HMAC_ALGO,!1,["sign"]);n.oncomplete=function(){n.result&&t(n.result),r(Error("ImportKey completed without importing key."))},n.onerror=function(){r(Error("ImportKey failed to import key."))}}).then(function(e){return(0,a.locateWindow)().msCrypto.subtle.sign(i.SHA_256_HMAC_ALGO,e)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,a.locateWindow)().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;(0,n.isEmptyData)(e)||(this.operation=this.operation.then(function(r){return r.onerror=function(){t.operation=Promise.reject(Error("Error encountered updating hash"))},r.process(u(e)),r}),this.operation.catch(function(){}))},e.prototype.digest=function(){return this.operation.then(function(e){return new Promise(function(t,r){e.onerror=function(){r(Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),r(Error("Error encountered finalizing hash"))},e.finish()})})},e}();function u(e){return"string"==typeof e?(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},90298:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0,(0,r(3403).__exportStar)(r(85710),t);var n=r(53469);Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return n.Sha256}});var i=r(27002);Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return i.Sha256}})},93281: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}},27002:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(67936),i=r(11666),o=r(69874),a=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise(function(t,r){(0,o.locateWindow)().crypto.subtle.importKey("raw",(0,n.convertToBuffer)(e),i.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,r)}),this.key.catch(function(){}))}return e.prototype.update=function(e){if(!(0,n.isEmptyData)(e)){var t=(0,n.convertToBuffer)(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then(function(t){return(0,o.locateWindow)().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then(function(e){return new Uint8Array(e)})}):(0,n.isEmptyData)(this.toHash)?Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,o.locateWindow)().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)}).then(function(e){return Promise.resolve(new Uint8Array(e))})},e}();t.Sha256=a},3403:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return S},__await:function(){return v},__awaiter:function(){return c},__classPrivateFieldGet:function(){return A},__classPrivateFieldSet:function(){return C},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return k},__importStar:function(){return _}
vendor: 6,126 bytes, lines 91-104
91,__makeTemplateObject:function(){return x},__metadata:function(){return l},__param:function(){return u},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************
92Copyright (c) Microsoft Corporation.
93
94Permission to use, copy, modify, and/or distribute this software for any
95purpose with or without fee is hereby granted.
96
97THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
98REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
99AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
100INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
101LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
102OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
103PERFORMANCE OF THIS SOFTWARE.
104***************************************************************************** */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 g(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 m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(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 v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(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 v?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 w(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:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function S(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 x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
104function _(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 k(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},16717:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var n=r(44669),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 g=(((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,m=((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+g|0,a=o,o=i,i=r,r=g+m|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},44669: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},8583:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(0,r(54007).__exportStar)(r(99681),t)},99681:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var n=r(54007),i=r(44669),o=r(16717),a=r(67936),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},54007:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return S},__await:function(){return v},__awaiter:function(){return c},__classPrivateFieldGet:function(){return A},__classPrivateFieldSet:function(){return C},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return k},__importStar:function(){return _}
vendor: 6,126 bytes, lines 104-117
104,__makeTemplateObject:function(){return x},__metadata:function(){return l},__param:function(){return u},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************
105Copyright (c) Microsoft Corporation.
106
107Permission to use, copy, modify, and/or distribute this software for any
108purpose with or without fee is hereby granted.
109
110THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
111REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
112AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
113INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
114LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
115OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
116PERFORMANCE OF THIS SOFTWARE.
117***************************************************************************** */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 g(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 m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(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 v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(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 v?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 w(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:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function S(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 x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
117function _(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 k(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},37680:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r(44141).__exportStar(r(130),t)},130:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsWebCrypto=void 0;var n=r(44141),i=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function o(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function a(e){return e&&i.every(function(t){return"function"==typeof e[t]})}t.supportsWebCrypto=function(e){return!!o(e)&&"object"==typeof e.crypto.subtle&&a(e.crypto.subtle)},t.supportsSecureRandom=o,t.supportsSubtleCrypto=a,t.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,function(){var t;return n.__generator(this,function(r){switch(r.label){case 0:if(!a(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===r.sent().byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}})})}},44141:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return w},__asyncGenerator:function(){return b},__asyncValues:function(){return S},__await:function(){return v},__awaiter:function(){return c},__classPrivateFieldGet:function(){return A},__classPrivateFieldSet:function(){return C},__createBinding:function(){return f},__decorate:function(){return s},__exportStar:function(){return h},__extends:function(){return i},__generator:function(){return d},__importDefault:function(){return k},__importStar:function(){return _}
vendor: 6,126 bytes, lines 117-130
117,__makeTemplateObject:function(){return x},__metadata:function(){return l},__param:function(){return u},__read:function(){return g},__rest:function(){return a},__spread:function(){return m},__spreadArrays:function(){return y},__values:function(){return p}});/*! *****************************************************************************
118Copyright (c) Microsoft Corporation.
119
120Permission to use, copy, modify, and/or distribute this software for any
121purpose with or without fee is hereby granted.
122
123THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
124REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
125AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
126INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
127LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
128OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
129PERFORMANCE OF THIS SOFTWARE.
130***************************************************************************** */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 g(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 m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(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 v(e){return this instanceof v?(this.v=e,this):new v(e)}function b(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 v?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 w(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:v(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function S(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 x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
130function _(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 k(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},80821:function(e,t,r){"use strict";var n=r(35994).lW;Object.defineProperty(t,"__esModule",{value:!0}),t.convertToBuffer=void 0;var i=r(33184),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)}},67936: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(80821);Object.defineProperty(t,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var i=r(37379);Object.defineProperty(t,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=r(30151);Object.defineProperty(t,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=r(38242);Object.defineProperty(t,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})},37379: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}},30151: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])}},38242: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)}},69874:function(e,t,r){"use strict";r.r(t),r.d(t,{locateWindow:function(){return i}});let n={};function i(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:n}},33184:function(e,t,r){"use strict";r.r(t),r.d(t,{fromUtf8:function(){return o},toUtf8:function(){return a}});var n=function(e){for(var t=[],r=0,n=e.length;r<n;r++){var i=e.charCodeAt(r);if(i<128)t.push(i);else if(i<2048)t.push(i>>6|192,63&i|128);else if(r+1<e.length&&(64512&i)==55296&&(64512&e.charCodeAt(r+1))==56320){var o=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)},i=function(e){for(var t="",r=0,n=e.length;r<n;r++){var i=e[r];i<128?t+=String.fromCharCode(i):192<=i&&i<224?t+=String.fromCharCode((31&i)<<6|63&e[++r]):240<=i&&i<365?t+=decodeURIComponent("%"+[i,e[++r],e[++r],e[++r]].map(function(e){return e.toString(16)}).join("%")):t+=String.fromCharCode((15&i)<<12|(63&e[++r])<<6|63&e[++r])}return t},o=function(e){return"function"==typeof TextEncoder?new TextEncoder().encode(e):n(e)},a=function(e){return"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(e):i(e)}},90430:function(e,t,r){"use strict";r.d(t,{Z:function(){return W}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}
vendor: 7,083 bytes, line 130
130var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,a=Object.assign;function s(e,t,r){return e.replace(t,r)}function u(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function c(e,t,r){return e.slice(t,r)}function d(e){return e.length}function f(e,t){return t.push(e),e}var h=1,p=1,g=0,m=0,y=0,v="";function b(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:h,column:p,length:a,return:""}}function w(e,t){return a(b("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=m<g?l(v,m++):0,p++,10===y&&(p=1,h++),y}function x(){return l(v,m)}function _(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 k(e){return h=p=1,g=d(v=e),m=0,[]}function A(e){var t,r;return(t=m-1,r=function e(t){for(;S();)switch(y){case t:return m;case 34:case 39:34!==t&&39!==t&&e(y);break;case 40:41===t&&e(t);break;case 92:S()}return m}(91===e?e+2:40===e?e+1:e),c(v,t,r)).trim()}var C="-ms-",E="-moz-",P="-webkit-",T="comm",O="rule",I="decl",R="@keyframes";function M(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function D(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case T:return"";case R:return e.return=e.value+"{"+M(e.children,n)+"}";case O:e.value=e.props.join(",")}return d(r=M(e.children,n))?e.return=e.value+"{"+r+"}":""}function j(e,t,r,n,o,a,u,l,d,f,h){for(var p=o-1,g=0===o?a:[""],m=g.length,y=0,v=0,w=0;y<n;++y)for(var S=0,x=c(e,p+1,p=i(v=u[y])),_=e;S<m;++S)(_=(v>0?g[S]+" "+x:s(x,/&\f/g,g[S])).trim())&&(d[w++]=_);return b(e,t,r,0===o?O:l,d,f,h)}function F(e,t,r,n){return b(e,t,r,I,c(e,0,n),c(e,n+1,-1),n)}var U=function(e,t,r){for(var n=0,i=0;n=i,i=x(),38===n&&12===i&&(t[r]=1),!_(i);)S();return c(v,e,m)},B=function(e,t){var r=-1,n=44;do switch(_(n)){case 0:38===n&&12===x()&&(t[r]=1),e[r]+=U(m-1,t,r);break;case 2:e[r]+=A(n);break;case 4:if(44===n){e[++r]=58===x()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=o(n)}while(n=S());return e},L=function(e,t){var r;return r=B(k(e),t),v="",r},z=new WeakMap,N=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||z.get(r))&&!n){z.set(e,!0);for(var i=[],o=L(t,i),a=r.props,s=0,u=0;s<o.length;s++)for(var l=0;l<a.length;l++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[l]):a[l]+" "+o[s]}}},V=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},$=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case I:e.return=function e(t,r){switch(45^l(t,0)?(((r<<2^l(t,0))<<2^l(t,1))<<2^l(t,2))<<2^l(t,3):0){case 5103:return P+"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 P+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return P+t+E+t+C+t+t;case 6828:case 4268:return P+t+C+t+t;case 6165:return P+t+C+"flex-"+t+t;case 5187:return P+t+s(t,/(\w+).+(:[^]+)/,P+"box-$1$2"+C+"flex-$1$2")+t;case 5443:return P+t+C+"flex-item-"+s(t,/flex-|-self/,"")+t;case 4675:return P+t+C+"flex-line-pack"+s(t,/align-content|flex-|-self/,"")+t;case 5548:return P+t+C+s(t,"shrink","negative")+t;case 5292:return P+t+C+s(t,"basis","preferred-size")+t;case 6060:return P+"box-"+s(t,"-grow","")+P+t+C+s(t,"grow","positive")+t;case 4554:return P+s(t,/([^-])(transform)/g,"$1"+P+"$2")+t;case 6187:return s(s(s(t,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),t,"")+t;case 5495:case 3959:return s(t,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return s(s(t,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+C+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+t+t;case 4095:case 3583:case 4068:case 2532:return s(t,/(.+)-inline(.+)/,P+"$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(d(t)-1-r>6)switch(l(t,r+1)){case 109:if(45!==l(t,r+4))break;case 102:return s(t,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+E+(108==l(t,r+3)?"$3":"$2-$3"))+t;case 115:return~u(t,"stretch")?e(s(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==l(t,r+1))break;case 6444:switch(l(t,d(t)-3-(~u(t,"!important")&&10))){case 107:return s(t,":",":"+P)+t;case 101:return s(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(45===l(t,14)?"inline-":"")+"box$3$1"+P+"$2$3$1"+C+"$2box$3")+t}break;case 5936:switch(l(t,r+11)){case 114:return P+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return P+t+C+s(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return P+t+C+s(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return P+t+C+t+t}return t}(e.value,e.length);break;case R:return M([w(e,{value:s(e.value,"@","@"+P)})],n);case O:if(e.length)return e.props.map(function(t){var r;switch(r=t,(r=/(::plac\w+|:read-\w+)/.exec(r))?r[0]:r){case":read-only":case":read-write":return M([w(e,{props:[s(t,/:(read-\w+)/,":"+E+"$1")]})],n);case"::placeholder":return M([w(e,{props:[s(t,/:(plac\w+)/,":"+P+"input-$1")]}),w(e,{props:[s(t,/:(plac\w+)/,":"+E+"$1")]}),w(e,{props:[s(t,/:(plac\w+)/,C+"input-$1")]})],n)}return""}).join("")}}],W=function(e){var t,r,i,a,g,w=e.key;if("css"===w){var C=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(C,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var E=e.stylisPlugins||$,P={},O=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+w+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)P[t[r]]=!0;O.push(e)});var I=(r=(t=[N,V].concat(E,[D,(i=function(e){g.insert(e)},function(e){!e.root&&(e=e.return)&&i(e)})])).length,function(e,n,i,o){for(var a="",s=0;s<r;s++)a+=t[s](e,n,i,o)||"";return a}),R=function(e){var t,r;return M((r=function e(t,r,n,i,a,g,w,k,C){for(var E,P=0,O=0,I=w,R=0,M=0,D=0,U=1,B=1,L=1,z=0,N="",V=a,$=g,W=i,q=N;B;)switch(D=z,z=S()){case 40:if(108!=D&&58==l(q,I-1)){-1!=u(q+=s(A(z),"&","&\f"),"&\f")&&(L=-1);break}case 34:case 39:case 91:q+=A(z);break;case 9:case 10:case 13:case 32:q+=function(e){for(;y=x();)if(y<33)S();else break;return _(e)>2||_(y)>3?"":" "}(D);break;case 92:q+=function(e,t){for(var r;--t&&S()&&!(y<48)&&!(y>102)&&(!(y>57)||!(y<65))&&(!(y>
13070)||!(y<97)););return r=m+(t<6&&32==x()&&32==S()),c(v,e,r)}(m-1,7);continue;case 47:switch(x()){case 42:case 47:f(b(E=function(e,t){for(;S();)if(e+y===57)break;else if(e+y===84&&47===x())break;return"/*"+c(v,t,m-1)+"*"+o(47===e?e:S())}(S(),m),r,n,T,o(y),c(E,2,-2),0),C);break;default:q+="/"}break;case 123*U:k[P++]=d(q)*L;case 125*U:case 59:case 0:switch(z){case 0:case 125:B=0;case 59+O:-1==L&&(q=s(q,/\f/g,"")),M>0&&d(q)-I&&f(M>32?F(q+";",i,n,I-1):F(s(q," ","")+";",i,n,I-2),C);break;case 59:q+=";";default:if(f(W=j(q,r,n,P,O,a,k,N,V=[],$=[],I),g),123===z){if(0===O)e(q,r,W,W,V,g,I,k,$);else switch(99===R&&110===l(q,3)?100:R){case 100:case 108:case 109:case 115:e(t,W,W,i&&f(j(t,W,W,0,0,a,k,N,a,V=[],I),$),a,$,I,k,i?V:$);break;default:e(q,W,W,W,[""],$,0,k,$)}}}P=O=M=0,U=L=1,N=q="",I=w;break;case 58:I=1+d(q),M=D;default:if(U<1){if(123==z)--U;else if(125==z&&0==U++&&125==(y=m>0?l(v,--m):0,p--,10===y&&(p=1,h--),y))continue}switch(q+=o(z),z*U){case 38:L=O>0?1:(q+="\f",-1);break;case 44:k[P++]=(d(q)-1)*L,L=1;break;case 64:45===x()&&(q+=A(S())),R=x(),O=I=d(N=q+=function(e){for(;!_(x());)S();return c(v,e,m)}(m)),z++;break;case 45:45===D&&2==d(q)&&(U=0)}}return g}("",null,null,null,[""],t=k(t=e),0,[0],t),v="",r),I)},U={key:w,sheet:new n({key:w,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:P,registered:{},insert:function(e,t,r,n){g=r,R(e?e+"{"+t.styles+"}":t.styles),n&&(U.inserted[t.name]=!0)}};return U.sheet.hydrate(O),U}},9231:function(e,t,r){"use strict";function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}r.d(t,{Z:function(){return n}})},63534:function(e,t,r){"use strict";r.d(t,{T:function(){return c},a:function(){return f},i:function(){return s},w:function(){return l}});var n=r(51776),i=r(90430),o=r(35408),a=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}};r(58297),r(28551);var s=!0,u=n.createContext("undefined"!=typeof HTMLElement?(0,i.Z)({key:"css"}):null);u.Provider;var l=function(e){return(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(u),r)})};s||(l=function(e){return function(t){var r=(0,n.useContext)(u);return null===r?(r=(0,i.Z)({key:"css"}),n.createElement(u.Provider,{value:r},e(t,r))):e(t,r)}});var c=n.createContext({}),d=a(function(e){return a(function(t){return"function"==typeof t?t(e):(0,o.Z)({},e,t)})}),f=function(e){var t=n.useContext(c);return e.theme!==t&&(t=d(t)(e.theme)),n.createElement(c.Provider,{value:t},e.children)}},13327:function(e,t,r){"use strict";r.d(t,{F4:function(){return c},xB:function(){return u}});var n=r(63534),i=r(51776),o=r(71377),a=r(28551),s=r(58297);r(90430),r(76558);var u=(0,n.w)(function(e,t){var r=e.styles,u=(0,s.O)([r],void 0,i.useContext(n.T));if(!n.i){for(var l,c=u.name,d=u.styles,f=u.next;void 0!==f;)c+=" "+f.name,d+=f.styles,f=f.next;var h=!0===t.compat,p=t.insert("",{name:c,styles:d},t.sheet,h);return h?null:i.createElement("style",((l={})["data-emotion"]=t.key+"-global "+c,l.dangerouslySetInnerHTML={__html:p},l.nonce=t.sheet.nonce,l))}var g=i.useRef();return(0,a.j)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),g.current=[r,n],function(){r.flush()}},[t]),(0,a.j)(function(){var e=g.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==u.next&&(0,o.My)(t,u.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",u,r,!1)},[t,u.name]),null});function l(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.O)(t)}var c=function(){var e=l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},58297:function(e,t,r){"use strict";r.d(t,{O:function(){return p}});var n,i={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,msGr
130idRow: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},o=r(9231),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)(function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()}),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===i[e]||u(e)||"number"!=typeof t||0===t?t:t+"px"};function f(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=f(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?n+=o+"{"+t[a]+"}":l(a)&&(n+=c(o)+":"+d(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)l(a[s])&&(n+=c(o)+":"+d(o,a[s])+";");else{var u=f(e,t,a);switch(o){case"animation":case"animationName":n+=c(o)+":"+u+";";break;default:n+=o+"{"+u+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var o=n,a=r(e);return n=o,f(e,t,a)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var h=/label:\s*([^\s;\n{]+)\s*(;|$)/g,p=function(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i,o=!0,a="";n=void 0;var s=e[0];null==s||void 0===s.raw?(o=!1,a+=f(r,t,s)):a+=s[0];for(var u=1;u<e.length;u++)a+=f(r,t,e[u]),o&&(a+=s[u]);h.lastIndex=0;for(var l="";null!==(i=h.exec(a));)l+="-"+i[1];return{name:function(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*1540483477+((t>>>16)*59797<<16)^(65535&r)*1540483477+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*1540483477+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}(a)+l,styles:a,next:n}}},28551:function(e,t,r){"use strict";r.d(t,{L:function(){return a},j:function(){return s}});var n,i=r(51776),o=!!(n||(n=r.t(i,2))).useInsertionEffect&&(n||(n=r.t(i,2))).useInsertionEffect,a=o||function(e){return e()},s=o||i.useLayoutEffect},71377:function(e,t,r){"use strict";function n(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}r.d(t,{My:function(){return o},fp:function(){return n},hC:function(){return i}});var i=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},o=function(e,t,r){i(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}}},88946: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>
130s?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},68436:function(e){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,(function(t){return e[t]}).bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),o=e.getVersionPrecision(r),a=Math.max(i,o),s=0,u=e.map([t,r],function(t){var r=a-e.getVersionPrecision(t),n=t+Array(r+1).join(".0");return e.map(n.split("."),function(e){return Array(20-e.length).join("0")+e}).reverse()});for(n&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return -1}},e.map=function(e,t){var r,n=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r<e.length;r+=1)n.push(t(e[r]));return n},e.find=function(e,t){var r,n;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(r=0,n=e.length;r<n;r+=1){var i=e[r];if(t(i,r))return i}},e.assign=function(e){for(var t,r,n=e,i=arguments.length,o=Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(o));for(t=0,r=o.length;t<r;t+=1)(function(){var e=o[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){n[t]=e[t]})})();return e},e.getBrowserAlias=function(e){return n.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return n.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,r){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(91))&&n.__esModule?n:{default:n},o=r(18),a=function(){function e(){}return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e,[{key:"BROWSER_MAP",get:function(){return o.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return o.ENGINE_MAP}},{key:"OS_MAP",get:function(){return o.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return o.PLATFORMS_MAP}}]),e}();t.default=a,e.exports=t.default},91:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=u(r(92)),i=u(r(93)),o=u(r(94)),a=u(r(95)),s=u(r(17));
vendor: 5,515 bytes, line 130
130function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(n.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some(function(t){return e.test(t)});throw Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,r={},n=0,i={},o=0;if(Object.keys(e).forEach(function(t){var a=e[t];"string"==typeof a?(i[t]=a,o+=1):"object"==typeof a&&(r[t]=a,n+=1)}),n>0){var a=Object.keys(r),u=s.default.find(a,function(e){return t.isOS(e)});if(u){var l=this.satisfies(r[u]);if(void 0!==l)return l}var c=s.default.find(a,function(e){return t.isPlatform(e)});if(c){var d=this.satisfies(r[c]);if(void 0!==d)return d}}if(o>0){var f=Object.keys(i),h=s.default.find(f,function(e){return t.isBrowser(e,!0)});if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(s.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:whale
vendor: 9,522 bytes, line 130
130)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(o,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(o,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:o.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:o.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:o.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:o.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:o.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:o.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:o.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:o.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:[/googlebot/i],describe:function(){return{type:
vendor: 3,890 bytes, lines 130-134
130"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},o=r(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:o.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:o.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:o.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:o.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:o.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:o.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})},35994:function(e,t,r){"use strict";/*!
131 * The buffer module from node.js, for the browser.
132 *
133 * @author   Feross Aboukhadijeh <http://feross.org>
134 * @license  MIT
135 */var n=r(88946),i=r(59983),o=r(42192);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&&(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 g(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 b(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 m(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}
135else 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:v(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):v(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(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 b(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 w(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 S(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 x(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 _(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 k(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function A(e,t,r,n,o){return o||k(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function C(e,t,r,n,o){return o||k(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.lW=u,t.h2=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}}(),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)m(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)m(this,t,t+3),m(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)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.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.h2;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,g,m=this.length-t;if((void 0===r||r>m)&&(r=m),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,I(P(e,this.length-u),this,u,l);case"ascii":return c=t,d=r,I(T(e),this,c,d);case"latin1":case"binary":return i=this,o=e,a=t,s=r,I(T(o),i,a,s);case"base64":return f=t,h=r,I(O(e),this,f,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p=t,g=r,I(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,g);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||w(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||w(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||w(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||w(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||w(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||w(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||w(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||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){t||w(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||w(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||w(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||w(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||w(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||w(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;S(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;S(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||S(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||S(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||S(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||S(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):_(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||S(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):_(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);S(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);S(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||S(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||S(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):x(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||S(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):x(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||S(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):_(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||S(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):_(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return A(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return A(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return C(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return C(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 E=/[^+\/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)}
135else 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 T(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(E,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function I(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}},42192:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},20273:function(e,t){"use strict";/*!
136 * cookie
137 * Copyright(c) 2012-2014 Roman Shtylman
138 * Copyright(c) 2015 Douglas Christopher Wilson
139 * MIT Licensed
140 */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 invalid");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 invali
140d");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]+$/},76558:function(e,t,r){"use strict";var n=r(31961),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return n.isMemo(e)?a:s[e.$$typeof]||i}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var i=h(r);i&&i!==p&&e(t,i,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=u(t),g=u(r),m=0;m<a.length;++m){var y=a[m];if(!o[y]&&!(n&&n[y])&&!(g&&g[y])&&!(s&&s[y])){var v=f(r,y);try{l(t,y,v)}catch(e){}}}}return t}},59983: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,g=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*g}},21999: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}
140)+/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()},89924:function(e,t,r){e=r.nmd(e);var n,i,o,a,s,u,l,c,d,f,h="__lodash_hash_undefined__",p="[object Arguments]",g="[object Function]",m="[object Object]",y=/^\[object .+?Constructor\]$/,v=/^(?:0|[1-9]\d*)$/,b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[p]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b[g]=b["[object Map]"]=b["[object Number]"]=b[m]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;var w="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,S="object"==typeof self&&self&&self.Object===Object&&self,x=w||S||Function("return this")(),_=t&&!t.nodeType&&t,k=_&&e&&!e.nodeType&&e,A=k&&k.exports===_,C=A&&w.process,E=function(){try{var e=k&&k.require&&k.require("util").types;if(e)return e;return C&&C.binding&&C.binding("util")}catch(e){}}(),P=E&&E.isTypedArray,T=Array.prototype,O=Function.prototype,I=Object.prototype,R=x["__core-js_shared__"],M=O.toString,D=I.hasOwnProperty,j=(u=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+u:"",F=I.toString,U=M.call(Object),B=RegExp("^"+M.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=A?x.Buffer:void 0,z=x.Symbol,N=x.Uint8Array,V=L?L.allocUnsafe:void 0,$=(l=Object.getPrototypeOf,c=Object,function(e){return l(c(e))}),W=Object.create,q=I.propertyIsEnumerable,H=T.splice,G=z?z.toStringTag:void 0,K=function(){try{var e=ef(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),J=L?L.isBuffer:void 0,Y=Math.max,Z=Date.now,X=ef(x,"Map"),Q=ef(Object,"create"),ee=function(){function e(){}return function(t){if(!ek(t))return{};if(W)return W(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function et(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 er(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 en(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 ei(e){var t=this.__data__=new er(e);this.size=t.size}function eo(e,t,r){(void 0===r||ey(e[t],r))&&(void 0!==r||t in e)||es(e,t,r)}function ea(e,t){for(var r=e.length;r--;)if(ey(e[r][0],t))return r;return -1}function es(e,t,r){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}et.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},et.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},et.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return r===h?void 0:r}return D.call(t,e)?t[e]:void 0},et.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:D.call(t,e)},et.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?h:t,this},er.prototype.clear=function(){this.__data__=[],this.size=0},er.prototype.delete=function(e){var t=this.__data__,r=ea(t,e);return!(r<0)&&(r==t.length-1?t.pop():H.call(t,r,1),--this.size,!0)},er.prototype.get=function(e){var t=this.__data__,r=ea(t,e);return r<0?void 0:t[r][1]},er.prototype.has=function(e){return ea(this.__data__,e)>-1},er.prototype.set=function(e,t){var r=this.__data__,n=ea(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},en.prototype.clear=function(){this.size=0,this.__data__={hash:new et,map:new(X||er),string:new et}},en.prototype.delete=function(e){var t=ed(this,e).delete(e);return this.size-=t?1:0,t},en.prototype.get=function(e){return ed(this,e).get(e)},en.prototype.has=function(e){return ed(this,e).has(e)},en.prototype.set=function(e,t){var r=ed(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ei.prototype.clear=function(){this.__data__=new er,this.size=0},ei.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ei.prototype.get=function(e){return this.__data__.get(e)},ei.prototype.has=function(e){return this.__data__.has(e)},ei.prototype.set=function(e,t){var r=this.__data__;if(r instanceof er){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new en(n)}return r.set(e,t),this.size=r.size,this};var eu=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a--;){var s=o[++n];if(!1===t(i[s],s,i))break}return e};
140function el(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":G&&G in Object(e)?function(e){var t=D.call(e,G),r=e[G];try{e[G]=void 0;var n=!0}catch(e){}var i=F.call(e);return n&&(t?e[G]=r:delete e[G]),i}(e):F.call(e)}function ec(e){return eA(e)&&el(e)==p}function ed(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 ef(e,t){var r=null==e?void 0:e[t];return!(!ek(r)||j&&j in r)&&(ex(r)?B:y).test(function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(r))?r:void 0}function eh(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&v.test(e))&&e>-1&&e%1==0&&e<t}function ep(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||I;return e===r}function eg(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var em=(n=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:eT,i=0,o=0,function(){var e=Z(),t=16-(e-o);if(o=e,t>0){if(++i>=800)return arguments[0]}else i=0;return n.apply(void 0,arguments)});function ey(e,t){return e===t||e!=e&&t!=t}var ev=ec(function(){return arguments}())?ec:function(e){return eA(e)&&D.call(e,"callee")&&!q.call(e,"callee")},eb=Array.isArray;function ew(e){return null!=e&&e_(e.length)&&!ex(e)}var eS=J||function(){return!1};function ex(e){if(!ek(e))return!1;var t=el(e);return t==g||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function e_(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function ek(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eA(e){return null!=e&&"object"==typeof e}var eC=P?function(e){return P(e)}:function(e){return eA(e)&&e_(e.length)&&!!b[el(e)]};function eE(e){return ew(e)?function(e,t){var r=eb(e),n=!r&&ev(e),i=!r&&!n&&eS(e),o=!r&&!n&&!i&&eC(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var l in e)(t||D.call(e,l))&&!(a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||eh(l,u)))&&s.push(l);return s}(e,!0):function(e){if(!ek(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=ep(e),r=[];for(var n in e)"constructor"==n&&(t||!D.call(e,n))||r.push(n);return r}(e)}var eP=(d=function(e,t,r,n){!function e(t,r,n,i,o){t!==r&&eu(r,function(a,s){if(o||(o=new ei),ek(a))(function(e,t,r,n,i,o,a){var s=eg(e,r),u=eg(t,r),l=a.get(u);if(l){eo(e,r,l);return}var c=o?o(s,u,r+"",e,t,a):void 0,d=void 0===c;if(d){var f,h,p=eb(u),g=!p&&eS(u),y=!p&&!g&&eC(u);c=u,p||g||y?eb(s)?c=s:eA(s)&&ew(s)?c=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}(s):g?(d=!1,c=function(e,t){if(t)return e.slice();var r=e.length,n=V?V(r):new e.constructor(r);return e.copy(n),n}(u,!0)):y?(d=!1,h=new(f=u.buffer).constructor(f.byteLength),new N(h).set(new N(f)),c=new u.constructor(h,u.byteOffset,u.length)):c=[]:function(e){if(!eA(e)||el(e)!=m)return!1;var t=$(e);if(null===t)return!0;var r=D.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&M.call(r)==U}(u)||ev(u)?(c=s,ev(s)?c=function(e,t,r,n){var i=!r;r||(r={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),i?es(r,s,u):function(e,t,r){var n=e[t];D.call(e,t)&&ey(n,r)&&(void 0!==r||t in e)||es(e,t,r)}(r,s,u)}return r}(s,eE(s)):(!ek(s)||ex(s))&&(c="function"!=typeof u.constructor||ep(u)?{}:ee($(u)))):d=!1}d&&(a.set(u,c),i(c,u,n,o,a),a.delete(u)),eo(e,r,c)})(t,r,s,n,e,i,o);else{var u=i?i(eg(t,s),a,s+"",t,r,o):void 0;void 0===u&&(u=a),eo(t,s,u)}},eE)}(e,t,r,n)},em((a=f=function(e,t){var r=-1,n=t.length,i=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(i=d.length>3&&"function"==typeof i?(n--,i):void 0,o&&function(e,t,r){if(!ek(r))return!1;var n=typeof t;return("number"==n?!!(ew(r)&&eh(t,r.length)):"string"==n&&(t in r))&&ey(r[t],e)}(t[0],t[1],o)&&(i=n<3?void 0:i,n=1),e=Object(e);++r<n;){var a=t[r];a&&d(e,a,r,i)}return e},s=Y((s=void 0,a.length-1),0),function(){for(var e=arguments,t=-1,r=Y(e.length-s,0),n=Array(r);++t<r;)n[t]=e[s+t];t=-1;for(var i=Array(s+1);++t<s;)i[t]=e[t];return i[s]=eT(n),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(a,this,i)}),f+""));function eT(e){return e}e.exports=eP},37915:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});
140var n=r(51776),i=r(33906),o=r(73442),a=r(81730),s=r(28757),u=function(){return(u=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)},l=(0,n.createContext)({ns:{},config:{}});function c(e){var t,r,c=e.lang,d=e.namespaces,f=e.children,h=e.config,p=(0,s.Z)().lang,g=(0,i.useRouter)()||{},m=g.locale,y=g.defaultLocale,v=(0,n.useContext)(l),b=u(u(u({},"undefined"==typeof window?{}:(null===(r=null===(t=window.__NEXT_DATA__)||void 0===t?void 0:t.props)||void 0===r?void 0:r.__namespaces)||{}),v.ns),void 0===d?{}:d),w=c||p||m||y||"",S=u(u({},v.config),void 0===h?{}:h),x=(S.localesToIgnore||["default"]).includes(w),_=new Intl.PluralRules(x?void 0:w),k=(0,a.Z)({config:S,allNamespaces:b,pluralRules:_,lang:w});return n.createElement(o.Z.Provider,{value:{lang:w,t:k}},n.createElement(l.Provider,{value:{ns:b,config:S}},f))}var d=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())})},f=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])}}},h=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))};function p(e){return e.reduce(function(e,t){return e.concat(t)},[])}var g=r(46407),m=function(){return(m=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)},y=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])}}},v=function(){return(v=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)},b=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])}}};function w(e,t){var i=this;function o(r){var i,o,a=t.defaultLocale;return n.createElement(c,{lang:(null===(i=r.pageProps)||void 0===i?void 0:i.__lang)||r.__lang||a,namespaces:(null===(o=r.pageProps)||void 0===o?void 0:o.__namespaces)||r.__namespaces,config:t},n.createElement(e,v({},r)))}return void 0===t&&(t={}),t.isLoader||!1===t.loader||console.warn('\uD83D\uDEA8 [next-translate] You can remove the "appWithI18n" HoC on the _app.js, unless you set "loader: false" in your i18n config file.'),"function"==typeof t.staticsHoc&&t.staticsHoc(o,e),"undefined"==typeof window?r.g.i18nConfig=t:window.i18nConfig=t,t.skipInitialProps||(o.getInitialProps=function(n){var o,a,s;return o=void 0,a=void 0,s=function(){var i,o,a;return b(this,function(s){switch(s.label){case 0:if(i=v(v({},n.ctx||{}),n||{}),o={pageProps:{}},!e.getInitialProps)return[3,2];return[4,e.getInitialProps(n)];case 1:o=s.sent()||{},s.label=2;case 2:return a=[v({},o)],[4,function(e){var t,n,i,o,a,s;return void 0===e&&(e={}),i=this,o=void 0,a=void 0,s=function(){var i,o,a,s,u,l;return y(this,function(c){switch(c.label){case 0:var y;if(o=(i=m(m({},("undefined"==typeof window?r.g:window).i18nConfig),e)).localesToIgnore||["default"],a=(null===(t=i.req)||void 0===t?void 0:t.locale)||i.locale||(null===(n=i.router)||void 0===n?void 0:n.locale)||i.defaultLocale||"",!i.pathname)return console.warn('\uD83D\uDEA8 [next-translate] You forgot to pass the "pathname" inside "loadNamespaces" configuration'),[2,{__lang:a}];if(o.includes(a))return[2,{__lang:a}];return i.loaderName||!1===i.loader||console.warn('\uD83D\uDEA8 [next-translate] You can remove the "loadNamespaces" helper, unless you set "loader: false" in your i18n config file.'),void 0===(y=i.pathname.replace(/\/index$/,""))&&(y=""),[4,function(e,t,r){var n=e.pages,i=void 0===n?{}:n;return d(this,void 0,void 0,function(){var e,n,o,a,s,u,l,c=this;return f(this,function(g){switch(g.label){case 0:return e="rgx:",n=function(e){return d(c,void 0,void 0,function(){return f(this,function(t){return[2,"function"==typeof e?e(r):e||[]]})})},o=Object.keys(i).reduce(function(r,o){return o.substring(0,e.length)===e&&new RegExp(o.replace(e,"")).test(t)&&r.push(n(i[o])),r},[]),a=[[]],[4,n(i["*"])];case 1:return s=[h.apply(void 0,a.concat([g.sent(),!0]))],[4,n(i[t])];case 2:return u=[h.apply(void 0,s.concat([g.sent(),!0]))],l=p,[4,Promise.all(o)];case 3:return[2,h.apply(void 0,u.concat([l.apply(void 0,[g.sent()]),!0]))]}})})}(i,s=(y.length>1&&y.endsWith("/")?y.slice(0,-1):y)||"/",i)];case 1:return[4,Promise.all((u=c.sent()).map(function(e){return"function"==typeof i.loadLocaleFrom?i.loadLocaleFrom(a,e).catch(function(){return{}}):Promise.resolve({})}))];case 2:return l=c.sent()||[],function(e,t){var r=t.page,n=t.lang,i=t.namespaces;if(!1!==e.logBuild&&"undefined"==typeof window){var o=null==g.env.NODE_DISABLE_COLORS&&null==g.env.NO_COLOR&&"dumb"!==g.env.TERM&&"0"!==g.env.FORCE_COLOR,a=function(e){return o?"\x1b[36m".concat(e,"\x1b[0m"):e};console.log(a("next-translate"),"- compiled page:",a(r),"- locale:",a(n),"- namespaces:",a(i.join(", ")),"- used loader:",a(e.loaderName||"-"))}}(i,{page:s,lang:a,namespaces:u}),[2,{__lang:a,__namespaces:u.reduce(function(e,t,r){return e[t]=l[r]||null,e},{})}]}})},new(a||(a=Promise))(function(e,t){function r(e){try{u(s.next(e))}catch(e){t(e)}}function n(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var i;t.done?e(t.value):((i=t.value)instanceof a?i:new a(function(e){e(i)})).then(r,n)}u((s=s.apply(i,o||[])).next())})}(v(v(v({},i),t),{loaderName:"getInitialProps"}))];case 3:return[2,v.apply(void 0,a.concat([s.sent()]))]}})},new(a||(a=Promise))(function(e,t){function r(e){try{u(s.next(e))}catch(e){t(e)}}function n(e){try{u(s.throw(e))}catch(e){t(e)}}function u(t){var i;t.done?e(t.value):((i=t.value)instanceof a?i:new a(function(e){e(i)})).then(r,n)}u((s=s.apply(i,o||[])).next())})}),o}},73442:function(e,t,r){"use strict";var n,i=r(51776);"function"==typeof i.createContext&&(n=(0,i.createContext)({t:function(e){return Array.isArray(e)?e[0]:e},lang:""})),t.Z=n},81730:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});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){var t=e.config,r=e.allNamespaces,i=e.pluralRules,u=e.lang,l=t.logger,c=void 0===l?s:l,d=t.allowEmptyStrings,f=void 0===d||d,h=function(e,r){return Array.isArray(e)?e.map(function(e){return h(e,r)}):e instanceof Object?function e(t){var r=t.obj,n=t.query,i=t.config,o=t.lang;return n&&0!==Object.keys(n).length&&Object.keys(r).forEach(function(t){r[t]instanceof Object&&e({obj:r[t],query:n,config:i,lang:o}),"string"==typeof r[t]&&(r[t]=a({text:r[t],query:n,config:i,lang:o}))}),r}({obj:e,query:r,config:t,lang:u}):a({text:e,query:r,config:t,lang:u})},p=function(e,a,s){void 0===e&&(e="");var u,l=Array.isArray(e)?e[0]:e,d=t.nsSeparator,g=t.loggerEnvironment,m=void 0===g?"browser":g,y=function(e,t){if(!t)return{i18nKey:e};var r=e.indexOf(t);return r<0?{i18nKey:e}:{namespace:e.slice(0,r),i18nKey:e.slice(r+t.length)}}(l,void 0===d?":":d),v=y.i18nKey,b=y.namespace,w=void 0===b?null!==(u=null==s?void 0:s.ns)&&void 0!==u?u:t.defaultNS:b,S=w&&r[w]||{},x=function(e,t,r,n,i){if(!i||"number"!=typeof i.count)return r;var a="".concat(r,"_").concat(i.count);if(void 0!==o(t,a,n))return a;var s="".concat(r,"_").concat(e.select(i.count));if(void 0!==o(t,s,n))return s;var u="".concat(r,".").concat(i.count);if(void 0!==o(t,u,n))return u;var l="".concat(r,".").concat(e.select(i.count));return void 0!==o(t,l,n)?l:r}(i,S,v,t,a),_=o(S,x,t,s),k="object"==typeof _?JSON.parse(JSON.stringify(_)):_,A=void 0===k||"object"==typeof k&&!Object.keys(k).length||""===k&&!f,C="string"==typeof(null==s?void 0:s.fallback)?[s.fallback]:(null==s?void 0:s.fallback)||[];
140if(A&&("both"===m||m===("undefined"==typeof window?"node":"browser"))&&c({namespace:w,i18nKey:v}),A&&Array.isArray(C)&&C.length){var E=C[0],P=C.slice(1);if("string"==typeof E)return p(E,a,n(n({},s),{fallback:P}))}return A&&s&&s.hasOwnProperty("default")&&!(null==C?void 0:C.length)?s.default?h(s.default,a):s.default:A?l:h(k,a)};return p}function o(e,t,r,n){void 0===t&&(t=""),void 0===n&&(n={returnObjects:!1});var i=(r||{}).keySeparator,o=void 0===i?".":i,a=o?t.split(o):[t];if(t===o&&n.returnObjects)return e;var s=a.reduce(function(e,t){if("string"==typeof e)return{};var r=e[t];return r||("string"==typeof r?r:{})},e);if("string"==typeof s||s instanceof Object&&n.returnObjects)return s}function a(e){var t=e.text,r=e.query,n=e.config,i=e.lang;if(!t||!r)return t||"";var o=function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},a=n.interpolation||{},s=a.format,u=void 0===s?null:s,l=a.prefix,c=void 0===l?"{{":l,d=a.suffix,f=void 0===d?"}}":d,h=""===f?"":"(?:[\\s,]+([\\w-]*))?\\s*".concat(o(f));return Object.keys(r).reduce(function(e,t){var n=RegExp("".concat(o(c),"\\s*").concat(t).concat(h),"gm");return e.replace(n,function(e,n){return n&&u?u(r[t],n,i):r[t]})},t)}function s(e){e.namespace,e.i18nKey}},28757:function(e,t,r){"use strict";r.d(t,{Z:function(){return d}});var n=r(51776),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)};function o(e,t){return"string"!=typeof t?e:function(r,n,o){return e(r,n,i({ns:t},o))}}var a=r(73442),s=r(81730),u=function(){return(u=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 l(e){var t=(0,n.useContext)(a.Z);return(0,n.useMemo)(function(){return u(u({},t),{t:o(t.t,e)})},[t,e])}function c(e){var t=globalThis.__NEXT_TRANSLATE__||{},r=t.lang,n=t.namespaces,i=(globalThis.i18nConfig.localesToIgnore||["default"]).includes(r);return{t:o((0,s.Z)({config:globalThis.i18nConfig,allNamespaces:n,pluralRules:new Intl.PluralRules(i?void 0:r),lang:r}),e),lang:r}}function d(e){return(globalThis.__NEXT_TRANSLATE__?c:l)(e)}},16472:function(e,t,r){e.exports=r(79945)},96796:function(e){"use strict";let t=self.fetch.bind(self);e.exports=t,e.exports.default=e.exports},46407: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(26046)},52574:function(e,t,r){!function(){var t={452:function(e){"use strict";e.exports=r(97884)}},n={};function i(e){var r=n[e];if(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(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function a(e){"string"==typeof e&&(e=v(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?v(e):e;e="object"==typeof e?a(e):e;var n=v(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=v,f.prototype.format=a,f.prototype.resolve=d,f.prototype.resolveObject=d;var h=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,y=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(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);
140e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),y.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(g),s=m.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]+)(?=\/|$)/),v=d&&d[1],b=new f,w="",S="";try{c=new URL(e)}catch(t){w=t,l||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{c=new URL(e,u)}catch(e){return b.protocol=l,b.href=l,b}}b.slashes=s&&!S,b.host="w.w"===c.host?"":c.host,b.hostname="w.w"===c.hostname?"":c.hostname.replace(/(\[|\])/g,""),b.protocol=w?l||null:c.protocol,b.search=c.search.replace(/\\/g,"%5C"),b.hash=c.hash.replace(/\\/g,"%5C");var x=e.split("#");!b.search&&~x[0].indexOf("?")&&(b.search="?"),b.hash||""!==x[1]||(b.hash="#"),b.query=t?r.decode(c.search.substr(1)):b.search.substr(1),b.pathname=S+(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:"===b.protocol&&"blank"===b.pathname&&(b.protocol="",b.pathname=""),w&&"/"!==e[0]&&(b.pathname=b.pathname.substr(1)),l&&!h.test(l)&&"/"!==e.slice(-1)&&"/"===b.pathname&&(b.pathname=""),b.path=b.pathname+b.search,b.auth=[c.username,c.password].map(decodeURIComponent).filter(Boolean).join(":"),b.port=c.port,v&&!b.host.endsWith(v)&&(b.host+=v,b.port=v.slice(1)),b.href=S?""+b.pathname+b.search+b.hash:a(b);var _=/^(file)/.test(b.href)?["host","hostname"]:[];return Object.keys(b).forEach(function(e){~_.indexOf(e)||(b[e]=b[e]||null)}),b}t.parse=v,t.format=a,t.resolve=d,t.resolveObject=function(e,t){return v(d(e,t))},t.Url=f}(),e.exports=o}()},26046: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}()},97884:function(e){!function(){"use strict";var t,r={815:function(e){e.exports=function(e,r,n,i){r=r||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(r);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var u=e.length;s>0&&u>s&&(u=s);for(var l=0;l<u;++l){var c,d,f,h,p=e[l].replace(a,"%20"),g=p.indexOf(n);(g>=0?(c=p.substr(0,g),d=p.substr(g+1)):(c=p,d=""),f=decodeURIComponent(c),h=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(o,f))?t(o[f])?o[f].push(h):o[f]=[o[f],h]:o[f]=h}return o};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){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,o,a,s){return(o=o||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(i(e),function(i){var s=encodeURIComponent(t(i))+a;return r(e[i])?n(e[i],function(e){return s+encodeURIComponent(t(e))}).join(o):s+encodeURIComponent(t(e[i]))}).join(o):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}},a=!0;try{r[e](o,o.exports,i),a=!1}finally{a&&delete n[e]}return o.exports}i.ab="//";var o={};(t=o).decode=t.parse=i(815),t.encode=t.stringify=i(577),e.exports=o}()},20150:function(e,t,r){e.exports=r(22267)},33906:function(e,t,r){e.exports=r(98058)},34825:function(e){var t="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;
vendor: 4,593 bytes, lines 140-147
140if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,u,l,c;if(o.constructor!==a.constructor)return!1;if(Array.isArray(o)){if((s=o.length)!=a.length)return!1;for(u=s;0!=u--;)if(!e(o[u],a[u]))return!1;return!0}if(r&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(c=o.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;for(c=o.entries();!(u=c.next()).done;)if(!e(u.value[1],a.get(u.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(c=o.entries();!(u=c.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if((s=o.length)!=a.length)return!1;for(u=s;0!=u--;)if(o[u]!==a[u])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&"function"==typeof o.valueOf&&"function"==typeof a.valueOf)return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&"function"==typeof o.toString&&"function"==typeof a.toString)return o.toString()===a.toString();if((s=(l=Object.keys(o)).length)!==Object.keys(a).length)return!1;for(u=s;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,l[u]))return!1;if(t&&o instanceof Element)return!1;for(u=s;0!=u--;)if(("_owner"!==l[u]&&"__v"!==l[u]&&"__o"!==l[u]||!o.$$typeof)&&!e(o[l[u]],a[l[u]]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},64476:function(e,t){"use strict";/** @license React v16.13.1
141 * react-is.production.min.js
142 *
143 * Copyright (c) Facebook, Inc. and its affiliates.
144 *
145 * This source code is licensed under the MIT license found in the
146 * LICENSE file in the root directory of this source tree.
147 */var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case l:case f:case m:case g:case u:return e;default:return t}}case i:return t}}}function x(e){return S(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=u,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||S(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return S(e)===l},t.isContextProvider=function(e){return S(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return S(e)===f},t.isFragment=function(e){return S(e)===o},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===s},t.isStrictMode=function(e){return S(e)===a},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===u||e.$$typeof===l||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},31961:function(e,t,r){"use strict";e.exports=r(64476)},66305:function(e,t,r){var n=r(56809),i=r(69397),o=i;o.v1=n,o.v4=i,e.exports=o},65485:function(e){for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0;return[t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],"-",t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]],t[e[n++]]].join("")}},96374:function(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);
147if(t){var r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=Array(16);e.exports=function(){for(var e,t=0;t<16;t++)(3&t)==0&&(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},56809:function(e,t,r){var n,i,o=r(96374),a=r(65485),s=0,u=0;e.exports=function(e,t,r){var l=t&&r||0,c=t||[],d=(e=e||{}).node||n,f=void 0!==e.clockseq?e.clockseq:i;if(null==d||null==f){var h=o();null==d&&(d=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==f&&(f=i=(h[6]<<8|h[7])&16383)}var p=void 0!==e.msecs?e.msecs:new Date().getTime(),g=void 0!==e.nsecs?e.nsecs:u+1,m=p-s+(g-u)/1e4;if(m<0&&void 0===e.clockseq&&(f=f+1&16383),(m<0||p>s)&&void 0===e.nsecs&&(g=0),g>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,u=g,i=f;var y=((268435455&(p+=122192928e5))*1e4+g)%4294967296;c[l++]=y>>>24&255,c[l++]=y>>>16&255,c[l++]=y>>>8&255,c[l++]=255&y;var v=p/4294967296*1e4&268435455;c[l++]=v>>>8&255,c[l++]=255&v,c[l++]=v>>>24&15|16,c[l++]=v>>>16&255,c[l++]=f>>>8|128,c[l++]=255&f;for(var b=0;b<6;++b)c[l+b]=d[b];return t||a(c)}},69397:function(e,t,r){var n=r(96374),i=r(65485);e.exports=function(e,t,r){var o=t&&r||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||n)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},6840:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return r(66533)}])},66533:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return aI},queryClient:function(){return aT}});var n,i,o,a,s,u,l,c,d,f,h,p,g,m,y,v,b,w,S,x,_,k,A,C=r(36734),E=r(50608),P=r(37915);r(93814),r(22876),r(58514);let T={region:"eu-central-1",userPoolId:"eu-central-1_zcOFVXsqb",userPoolWebClientId:"7vsrr1pf51r5k4cpah64102890",oauth:{domain:"auth.api.bme.devz.hu",scope:["email","openid"],redirectSignIn:"http://localhost:3000/",redirectSignOut:"http://localhost:3000/",responseType:"code"}};var O=r(13327),I=String.raw,R=I`
148  :root,
149  :host {
150    --chakra-vh: 100vh;
151  }
152
153  @supports (height: -webkit-fill-available) {
154    :root,
155    :host {
156      --chakra-vh: -webkit-fill-available;
157    }
158  }
159
160  @supports (height: -moz-fill-available) {
161    :root,
162    :host {
163      --chakra-vh: -moz-fill-available;
164    }
165  }
166
167  @supports (height: 100dvh) {
168    :root,
169    :host {
170      --chakra-vh: 100dvh;
171    }
172  }
173`,M=()=>(0,C.jsx)(O.xB,{styles:R}),D=({scope:e=""})=>(0,C.jsx)(O.xB,{styles:I`
174      html {
175        line-height: 1.5;
176        -webkit-text-size-adjust: 100%;
177        font-family: system-ui, sans-serif;
178        -webkit-font-smoothing: antialiased;
179        text-rendering: optimizeLegibility;
180        -moz-osx-font-smoothing: grayscale;
181        touch-action: manipulation;
182      }
183
184      body {
185        position: relative;
186        min-height: 100%;
187        margin: 0;
188        font-feature-settings: "kern";
189      }
190
191      ${e} :where(*, *::before, *::after) {
192        border-width: 0;
193        border-style: solid;
194        box-sizing: border-box;
195        word-wrap: break-word;
196      }
197
198      main {
199        display: block;
200      }
201
202      ${e} hr {
203        border-top-width: 1px;
204        box-sizing: content-box;
205        height: 0;
206        overflow: visible;
207      }
208
209      ${e} :where(pre, code, kbd,samp) {
210        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
211        font-size: 1em;
212      }
213
214      ${e} a {
215        background-color: transparent;
216        color: inherit;
217        text-decoration: inherit;
218      }
219
220      ${e} abbr[title] {
221        border-bottom: none;
222        text-decoration: underline;
223        -webkit-text-decoration: underline dotted;
224        text-decoration: underline dotted;
225      }
226
227      ${e} :where(b, strong) {
228        font-weight: bold;
229      }
230
231      ${e} small {
232        font-size: 80%;
233      }
234
235      ${e} :where(sub,sup) {
236        font-size: 75%;
237        line-height: 0;
238        position: relative;
239        vertical-align: baseline;
240      }
241
242      ${e} sub {
243        bottom: -0.25em;
244      }
245
246      ${e} sup {
247        top: -0.5em;
248      }
249
250      ${e} img {
251        border-style: none;
252      }
253
254      ${e} :where(button, input, optgroup, select, textarea) {
255        font-family: inherit;
256        font-size: 100%;
257        line-height: 1.15;
258        margin: 0;
259      }
260
261      ${e} :where(button, input) {
262        overflow: visible;
263      }
264
265      ${e} :where(button, select) {
266        text-transform: none;
267      }
268
269      ${e} :where(
270          button::-moz-focus-inner,
271          [type="button"]::-moz-focus-inner,
272          [type="reset"]::-moz-focus-inner,
273          [type="submit"]::-moz-focus-inner
274        ) {
275        border-style: none;
276        padding: 0;
277      }
278
279      ${e} fieldset {
280        padding: 0.35em 0.75em 0.625em;
281      }
282
283      ${e} legend {
284        box-sizing: border-box;
285        color: inherit;
286        display: table;
287        max-width: 100%;
288        padding: 0;
289        white-space: normal;
290      }
291
292      ${e} progress {
293        vertical-align: baseline;
294      }
295
296      ${e} textarea {
297        overflow: auto;
298      }
299
300      ${e}
300 :where([type="checkbox"], [type="radio"]) {
301        box-sizing: border-box;
302        padding: 0;
303      }
304
305      ${e} input[type="number"]::-webkit-inner-spin-button,
306      ${e} input[type="number"]::-webkit-outer-spin-button {
307        -webkit-appearance: none !important;
308      }
309
310      ${e} input[type="number"] {
311        -moz-appearance: textfield;
312      }
313
314      ${e} input[type="search"] {
315        -webkit-appearance: textfield;
316        outline-offset: -2px;
317      }
318
319      ${e} input[type="search"]::-webkit-search-decoration {
320        -webkit-appearance: none !important;
321      }
322
323      ${e} ::-webkit-file-upload-button {
324        -webkit-appearance: button;
325        font: inherit;
326      }
327
328      ${e} details {
329        display: block;
330      }
331
332      ${e} summary {
333        display: list-item;
334      }
335
336      template {
337        display: none;
338      }
339
340      [hidden] {
341        display: none !important;
342      }
343
344      ${e} :where(
345          blockquote,
346          dl,
347          dd,
348          h1,
349          h2,
350          h3,
351          h4,
352          h5,
353          h6,
354          hr,
355          figure,
356          p,
357          pre
358        ) {
359        margin: 0;
360      }
361
362      ${e} button {
363        background: transparent;
364        padding: 0;
365      }
366
367      ${e} fieldset {
368        margin: 0;
369        padding: 0;
370      }
371
372      ${e} :where(ol, ul) {
373        margin: 0;
374        padding: 0;
375      }
376
377      ${e} textarea {
378        resize: vertical;
379      }
380
381      ${e} :where(button, [role="button"]) {
382        cursor: pointer;
383      }
384
385      ${e} button::-moz-focus-inner {
386        border: 0 !important;
387      }
388
389      ${e} table {
390        border-collapse: collapse;
391      }
392
393      ${e} :where(h1, h2, h3, h4, h5, h6) {
394        font-size: inherit;
395        font-weight: inherit;
396      }
397
398      ${e} :where(button, input, optgroup, select, textarea) {
399        padding: 0;
400        line-height: inherit;
401        color: inherit;
402      }
403
404      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
405        display: block;
406      }
407
408      ${e} :where(img, video) {
409        max-width: 100%;
410        height: auto;
411      }
412
413      [data-js-focus-visible]
414        :focus:not([data-focus-visible-added]):not(
415          [data-focus-visible-disabled]
416        ) {
417        outline: none;
418        box-shadow: none;
419      }
420
421      ${e} select::-ms-expand {
422        display: none;
423      }
424
425      ${R}
426    `}),j=r(82803),F=r(84402),U=r(52889),B={light:"chakra-ui-light",dark:"chakra-ui-dark"},L="chakra-ui-color-mode",z={ssr:!1,type:"localStorage",get(e){let t;if(!(null==globalThis?void 0:globalThis.document))return e;try{t=localStorage.getItem(L)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(L,e)}catch(e){}}},N=r(64857),V=r(51776),$=()=>{};function W(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function q(e){let{value:t,children:r,options:{useSystemColorMode:n,initialColorMode:i,disableTransitionOnChange:o}={},colorModeManager:a=z}=e,s="dark"===i?"dark":"light",[u,l]=(0,V.useState)(()=>W(a,s)),[c,d]=(0,V.useState)(()=>W(a)),{getSystemTheme:f,setClassName:h,setDataset:p,addListener:g}=(0,V.useMemo)(()=>(function(e={}){let{preventTransition:t=!0}=e,r={setDataset:e=>{let n=t?r.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==n||n()},setClassName(e){document.body.classList.add(e?B.dark:B.light),document.body.classList.remove(e?B.light:B.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;let n=null!=(t=r.query().matches)?t:"dark"===e;return n?"dark":"light"},addListener(e){let t=r.query(),n=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},preventTransition(){let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return r})({preventTransition:o}),[o]),m="system"!==i||u?u:c,y=(0,V.useCallback)(e=>{let t="system"===e?f():e;l(t),h("dark"===t),p(t),a.set(t)},[a,f,h,p]);(0,N.G)(()=>{"system"===i&&d(f())},[]),(0,V.useEffect)(()=>{let e=a.get();if(e){y(e);return}if("system"===i){y("system");return}y(s)},[a,s,i,y]);let v=(0,V.useCallback)(()=>{y("dark"===m?"light":"dark")},[m,y]);
426(0,V.useEffect)(()=>{if(n)return g(y)},[n,g,y]);let b=(0,V.useMemo)(()=>({colorMode:null!=t?t:m,toggleColorMode:t?$:v,setColorMode:t?$:y,forced:void 0!==t}),[m,v,y,t]);return(0,C.jsx)(U.kc.Provider,{value:b,children:r})}q.displayName="ColorModeProvider";var H=r(58461),G=e=>{let{children:t,colorModeManager:r,portalZIndex:n,resetScope:i,resetCSS:o=!0,theme:a={},environment:s,cssVarsRoot:u,disableEnvironment:l,disableGlobalStyle:c}=e,d=(0,C.jsx)(H.u,{environment:s,disabled:l,children:t});return(0,C.jsx)(F.f6,{theme:a,cssVarsRoot:u,children:(0,C.jsxs)(q,{colorModeManager:r,options:a.config,children:[o?(0,C.jsx)(D,{scope:i}):(0,C.jsx)(M,{}),!c&&(0,C.jsx)(F.ZL,{}),n?(0,C.jsx)(j.h,{zIndex:n,children:d}):d]})})},K={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},J={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Y={...J,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Z={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...K,sizes:Y,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dar
426k-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:J,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},X=r(47471),{defineMultiStyleConfig:Q,definePartsStyle:ee}=(0,X.D)(["stepper","step","title","description","indicator","separator","icon","number"]),et=(0,X.gJ)("stepper-indicator-size"),er=(0,X.gJ)("stepper-icon-size"),en=(0,X.gJ)("stepper-title-font-size"),ei=(0,X.gJ)("stepper-description-font-size"),eo=(0,X.gJ)("stepper-accent-color"),ea=Q({baseStyle:ee(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[eo.variable]:`colors.${e}.500`,_dark:{[eo.variable]:`colors.${e}.200`}},title:{fontSize:en.reference,fontWeight:"medium"},description:{fontSize:ei.reference,color:"chakra-subtle-text"},number:{fontSize:en.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:er.reference,height:er.reference},indicator:{flexShrink:0,borderRadius:"full",width:et.reference,height:et.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:eo.reference},"&[data-status=complete]":{bg:eo.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:eo.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${et.reference} - 8px)`,top:`calc(${et.reference} + 4px)`,insetStart:`calc(${et.reference} / 2 - 1px)`}}})),sizes:{xs:ee({stepper:{[et.variable]:"sizes.4",[er.variable]:"sizes.3",[en.variable]:"fontSizes.xs",[ei.variable]:"fontSizes.xs"}}),sm:ee({stepper:{[et.variable]:"sizes.6",[er.variable]:"sizes.4",[en.variable]:"fontSizes.sm",[ei.variable]:"fontSizes.xs"}}),md:ee({stepper:{[et.variable]:"sizes.8",[er.variable]:"sizes.5",[en.variable]:"fontSizes.md",[ei.variable]:"fontSizes.sm"}}),lg:ee({stepper:{[et.variable]:"sizes.10",[er.variable]:"sizes.6",[en.variable]:"fontSizes.lg",[ei.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function es(e,t={}){let r=!1;function n(t){let r=["container","root"].includes(null!=t?t:"")?[e]:[e,t],n=r.filter(Boolean).join("__"),i=`chakra-${n}`,o={className:i,selector:`.${i}`,toString:()=>t};return o}return{parts:function(...i){for(let e of(!function(){if(!r){r=!0;return}throw Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}(),i))t[e]=n(e);return es(e,t)},toPart:n,extend:function(...r){for(let e of r)e in t||(t[e]=n(e));return es(e,t)},selectors:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){let e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var eu=es("accordion").parts("root","container","button","panel").extend("icon"),el=es("alert").parts("title","description","container").extend("icon","spinner"),ec=es("avatar").parts("label","badge","container").extend("excessLabel","group"),ed=es("breadcrumb").parts("link","item","container").extend("separator");es("button").parts();var ef=es("checkbox").parts("control","icon","container").extend("label");es("progress").parts("track","filledTrack").extend("label");var eh=es("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ep=es("editable").parts("preview","input","textarea"),eg=es("form").parts("container","requiredIndicator","helperText"),em=es("formError").parts("text","icon"),ey=es("input").parts("addon","field","element"),ev=es("list").parts("container","item","icon"),eb=es("menu").parts("button","list","item").extend("groupTitle","command","divider"),ew=es("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),eS=es("numberinput").parts("root","field","stepperGroup","stepper");es("pininput").parts("field");var ex=es("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),e_=es("progress").parts("label","filledTrack","track"),ek=es("radio").parts("container","control","label"),eA=es("select").parts("field","icon"),eC=es("slider").parts("container","track","thumb","filledTrack","mark"),eE=es("stat").parts("container","label","helpText","number","icon"),eP=es("switch").parts("container","track","thumb"),eT=es("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),eO=es("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),eI=es("tag").parts("container","label","closeButton"),eR=es("card").parts("container","header","body","footer");function eM(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:Number.isInteger(parseFloat(e.toString()))?e:t.replace(".","\\.")}function eD(e,t){var r,n;let i=function(e,t=""){return`--${function(e,t=""){return[t,eM(e)].filter(
426Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:i,reference:(r="string"==typeof(n=null==t?void 0:t.fallback)?n:null==n?void 0:n.reference,`var(${eM(i)}${r?`, ${r}`:""})`)}}var ej=r(40629);function eF(e){return(0,ej.Kn)(e)&&e.reference?e.reference:String(e)}var eU=(e,...t)=>t.map(eF).join(` ${e} `).replace(/calc/g,""),eB=(...e)=>`calc(${eU("+",...e)})`,eL=(...e)=>`calc(${eU("-",...e)})`,ez=(...e)=>`calc(${eU("*",...e)})`,eN=(...e)=>`calc(${eU("/",...e)})`,eV=e=>{let t=eF(e);return null==t||Number.isNaN(parseFloat(t))?ez(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},e$=Object.assign(e=>({add:(...t)=>e$(eB(e,...t)),subtract:(...t)=>e$(eL(e,...t)),multiply:(...t)=>e$(ez(e,...t)),divide:(...t)=>e$(eN(e,...t)),negate:()=>e$(eV(e)),toString:()=>e.toString()}),{add:eB,subtract:eL,multiply:ez,divide:eN,negate:eV}),{defineMultiStyleConfig:eW,definePartsStyle:eq}=(0,X.D)(eP.keys),eH=eD("switch-track-width"),eG=eD("switch-track-height"),eK=eD("switch-track-diff"),eJ=e$.subtract(eH,eG),eY=eD("switch-thumb-x"),eZ=eD("switch-bg"),eX=(0,X.k0)(e=>{let{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[eH.reference],height:[eG.reference],transitionProperty:"common",transitionDuration:"fast",[eZ.variable]:"colors.gray.300",_dark:{[eZ.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[eZ.variable]:`colors.${t}.500`,_dark:{[eZ.variable]:`colors.${t}.200`}},bg:eZ.reference}}),eQ=(0,X.k0)({bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[eG.reference],height:[eG.reference],_checked:{transform:`translateX(${eY.reference})`}}),e0=eW({baseStyle:eq(e=>({container:{[eK.variable]:eJ,[eY.variable]:eK.reference,_rtl:{[eY.variable]:e$(eK).negate().toString()}},track:eX(e),thumb:eQ})),sizes:{sm:eq({container:{[eH.variable]:"1.375rem",[eG.variable]:"sizes.3"}}),md:eq({container:{[eH.variable]:"1.875rem",[eG.variable]:"sizes.4"}}),lg:eq({container:{[eH.variable]:"2.875rem",[eG.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function e1(e,t){return r=>"dark"===r.colorMode?t:e}function e2(e){let{orientation:t,vertical:r,horizontal:n}=e;return t?"vertical"===t?r:n:{}}var{defineMultiStyleConfig:e5,definePartsStyle:e4}=(0,X.D)(eT.keys),e3=e4({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),e6=(0,X.k0)({"&[data-is-numeric=true]":{textAlign:"end"}}),e8=e5({baseStyle:e3,variants:{simple:e4(e=>{let{colorScheme:t}=e;return{th:{color:e1("gray.600","gray.400")(e),borderBottom:"1px",borderColor:e1(`${t}.100`,`${t}.700`)(e),...e6},td:{borderBottom:"1px",borderColor:e1(`${t}.100`,`${t}.700`)(e),...e6},caption:{color:e1("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:e4(e=>{let{colorScheme:t}=e;return{th:{color:e1("gray.600","gray.400")(e),borderBottom:"1px",borderColor:e1(`${t}.100`,`${t}.700`)(e),...e6},td:{borderBottom:"1px",borderColor:e1(`${t}.100`,`${t}.700`)(e),...e6},caption:{color:e1("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:e1(`${t}.100`,`${t}.700`)(e)},td:{background:e1(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:(0,X.k0)({})},sizes:{sm:e4({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:e4({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:e4({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function e7(e,t,r){return Math.min(Math.max(e,r),t)}
426var e9=class extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}};function te(e){if("string"!=typeof e)throw new e9(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=tu.test(e)?function(e){let t=e.toLowerCase().trim(),r=tr[function(e){let t=5381,r=e.length;for(;r;)t=33*t^e.charCodeAt(--r);return(t>>>0)%2341}(t)];if(!r)throw new e9(e);return`#${r}`}(e):e;let r=ti.exec(t);if(r){let e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(tn(e,2),16)),parseInt(tn(e[3]||"f",2),16)/255]}let n=to.exec(t);if(n){let e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}let i=ta.exec(t);if(i){let e=Array.from(i).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}let o=ts.exec(t);if(o){let[t,r,n,i]=Array.from(o).slice(1).map(parseFloat);if(e7(0,100,r)!==r||e7(0,100,n)!==n)throw new e9(e);return[...tc(t,r,n),Number.isNaN(i)?1:i]}throw new e9(e)}let tt=e=>parseInt(e.replace(/_/g,""),36),tr="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{let r=tt(t.substring(0,3)),n=tt(t.substring(3)).toString(16),i="";for(let e=0;e<6-n.length;e++)i+="0";return e[r]=`${i}${n}`,e},{}),tn=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),ti=RegExp(`^#${tn("([a-f0-9])",3)}([a-f0-9])?$`,"i"),to=RegExp(`^#${tn("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ta=RegExp(`^rgba?\\(\\s*(\\d+)\\s*${tn(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),ts=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,tu=/^[a-z]+$/i,tl=e=>Math.round(255*e),tc=(e,t,r)=>{let n=r/100;if(0===t)return[n,n,n].map(tl);let i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*(t/100),a=o*(1-Math.abs(i%2-1)),s=0,u=0,l=0;i>=0&&i<1?(s=o,u=a):i>=1&&i<2?(s=a,u=o):i>=2&&i<3?(u=o,l=a):i>=3&&i<4?(u=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);let c=n-o/2,d=s+c,f=u+c,h=l+c;return[d,f,h].map(tl)};var td=e=>0===Object.keys(e).length,tf=(e,t,r)=>{let n=function(e,t,r,n,i){for(t=t.split?t.split("."):t,n=0;n<t.length;n++)e=e?e[t[n]]:i;return e===i?r:e}(e,`colors.${t}`,t);try{return!function(e){let[t,r,n,i]=te(e),o=e=>{let t=e7(0,255,e).toString(16);return 1===t.length?`0${t}`:t};o(t),o(r),o(n),i<1&&o(Math.round(255*i))}(n),n}catch{return null!=r?r:"#000000"}},th=(e,t,r)=>{var n;return null!=(n=(0,X.K1)(e,"colors",t))?n:r},tp=e=>{let[t,r,n]=te(e);return(299*t+587*r+114*n)/1e3},tg=e=>t=>{let r=tf(t,e),n=tp(r);return n<128?"dark":"light"},tm=e=>t=>"dark"===tg(e)(t),ty=(e,t)=>r=>{let n=tf(r,e);return function(e,t){let[r,n,i,o]=te(e);return`rgba(${e7(0,255,r).toFixed()}, ${e7(0,255,n).toFixed()}, ${e7(0,255,i).toFixed()}, ${parseFloat(e7(0,1,o-t).toFixed(3))})`}(n,1-t)};function tv(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(
427    45deg,
428    ${t} 25%,
429    transparent 25%,
430    transparent 50%,
431    ${t} 50%,
432    ${t} 75%,
433    transparent 75%,
434    transparent
435  )`,backgroundSize:`${e} ${e}`}}var tb=()=>`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}
435`,tw=(0,X.gJ)("tabs-color"),tS=(0,X.gJ)("tabs-bg"),tx=(0,X.gJ)("tabs-border-color"),{defineMultiStyleConfig:t_,definePartsStyle:tk}=(0,X.D)(eO.keys),tA=(0,X.k0)(e=>{let{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}}),tC=(0,X.k0)(e=>{let{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}}),tE=(0,X.k0)(e=>{let{align:t="start",orientation:r}=e;return{justifyContent:({end:"flex-end",center:"center",start:"flex-start"})[t],flexDirection:"vertical"===r?"column":"row"}}),tP=(0,X.k0)({p:4}),tT=t_({baseStyle:tk(e=>({root:tA(e),tab:tC(e),tablist:tE(e),tabpanel:tP})),sizes:{sm:tk({tab:{py:1,px:4,fontSize:"sm"}}),md:tk({tab:{fontSize:"md",py:2,px:4}}),lg:tk({tab:{fontSize:"lg",py:3,px:4}})},variants:{line:tk(e=>{let{colorScheme:t,orientation:r}=e,n="vertical"===r,i=n?"borderStart":"borderBottom";return{tablist:{[i]:"2px solid",borderColor:"inherit"},tab:{[i]:"2px solid",borderColor:"transparent",[n?"marginStart":"marginBottom"]:"-2px",_selected:{[tw.variable]:`colors.${t}.600`,_dark:{[tw.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[tS.variable]:"colors.gray.200",_dark:{[tS.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:tw.reference,bg:tS.reference}}}),enclosed:tk(e=>{let{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[tx.variable]:"transparent",_selected:{[tw.variable]:`colors.${t}.600`,[tx.variable]:"colors.white",_dark:{[tw.variable]:`colors.${t}.300`,[tx.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:tx.reference},color:tw.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"enclosed-colored":tk(e=>{let{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[tS.variable]:"colors.gray.50",_dark:{[tS.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[tS.variable]:"colors.white",[tw.variable]:`colors.${t}.600`,_dark:{[tS.variable]:"colors.gray.800",[tw.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:tw.reference,bg:tS.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),"soft-rounded":tk(e=>{let{colorScheme:t,theme:r}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:tf(r,`${t}.700`),bg:tf(r,`${t}.100`)}}}}),"solid-rounded":tk(e=>{let{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[tw.variable]:"colors.gray.600",_dark:{[tw.variable]:"inherit"},_selected:{[tw.variable]:"colors.white",[tS.variable]:`colors.${t}.600`,_dark:{[tw.variable]:"colors.gray.800",[tS.variable]:`colors.${t}.300`}},color:tw.reference,bg:tS.reference}}}),unstyled:tk({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),tO=(0,X._6)("badge",["bg","color","shadow"]),tI=(0,X.k0)({px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:tO.bg.reference,color:tO.color.reference,boxShadow:tO.shadow.reference}),tR=(0,X.k0)(e=>{let{colorScheme:t,theme:r}=e,n=ty(`${t}.500`,.6)(r);return{[tO.bg.variable]:`colors.${t}.500`,[tO.color.variable]:"colors.white",_dark:{[tO.bg.variable]:n,[tO.color.variable]:"colors.whiteAlpha.800"}}}),tM=(0,X.k0)(e=>{let{colorScheme:t,theme:r}=e,n=ty(`${t}.200`,.16)(r);return{[tO.bg.variable]:`colors.${t}.100`,[tO.color.variable]:`colors.${t}.800`,_dark:{[tO.bg.variable]:n,[tO.color.variable]:`colors.${t}.200`}}}),tD=(0,X.k0)(e=>{let{colorScheme:t,theme:r}=e,n=ty(`${t}.200`,.8)(r);return{[tO.color.variable]:`colors.${t}.500`,_dark:{[tO.color.variable]:n},[tO.shadow.variable]:`inset 0 0 0px 1px ${tO.color.reference}`}}),tj=(0,X.fj)({baseStyle:tI,variants:{solid:tR,subtle:tM,outline:tD},defaultProps:{variant:"subtle",colorScheme:"gray"}}),{defineMultiStyleConfig:tF,definePartsStyle:tU}=(0,X.D)(eI.keys),tB=(0,X.gJ)("tag-bg"),tL=(0,X.gJ)("tag-color"),tz=(0,X.gJ)("tag-shadow"),tN=(0,X.gJ)("tag-min-height"),tV=(0,X.gJ)("tag-min-width"),t$=(0,X.gJ)("tag-font-size"),tW=(0,X.gJ)("tag-padding-inline"),tq=tU({container:(0,X.k0)({fontWeight:"medium",lineHeight:1.2,outline:0,[tL.variable]:tO.color.reference,[tB.variable]:tO.bg.reference,[tz.variable]:tO.shadow.reference,color:tL.reference,bg:tB.reference,boxShadow:tz.reference,borderRadius:"md",minH:tN.reference,minW:tV.reference,fontSize:t$.reference,px:tW.reference,_focusVisible:{[tz.variable]:"shadows.outline"}}),label:(0,X.k0)({lineHeight:1.2,overflow:"visible"}),closeButton:(0,X.k0)({fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}})}),tH={sm:tU({container:{[tN.variable]:"sizes.5",[tV.variable]:"sizes.5",[t$.variable]:"fontSizes.xs",[tW.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:tU({container:{[tN.variable]:"sizes.6",[tV.variable]:"sizes.6",[t$.variable]:"fontSizes.sm",[tW.variable]:"space.2"}}),lg:tU({container:{[tN.variable]:"sizes.8",[tV.variable]:"sizes.8",[t$.variable]:"fontSizes.md",[tW.variable]:"space.3"}})},tG=tF({variants:{subtle:tU(e=>{var t;return{container:null==(t=tj.variants)?void 0:t.subtle(e)}}),solid:tU(e=>{var t;return{container:null==(t=tj.variants)?void 0:t.solid(e)}}),outline:tU(e=>{var t;return{container:null==(t=tj.variants)?void 0:t.outline(e)}})},baseStyle:tq,sizes:tH,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:tK,defineMultiStyleConfig:tJ}=(0,X.D)(ey.keys),tY=tK({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),tZ={lg:(0,X.k0)({fontSize:"lg",px:"4",h:"12",borderRadius:"md"}),md:(0,X.k0)({fontSize:"md",px:"4",h:"10",borderRadius:"md"}),sm:(0,X.k0)({fontSize:"sm",px:"3",h:"8",borderRadius:"sm"}),xs:(0,X.k0)({fontSize:"xs",px:"2",h:"6",borderRadius:"sm"})};function tX(e){let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||e1("blue.500","blue.300")(e),errorBorderColor:r||e1("red.500","red.300")(e)}}var tQ=tJ({baseStyle:tY,sizes:{lg:tK({field:tZ.lg,addon:tZ.lg}),md:tK({field:tZ.md,addon:tZ.md}),sm:tK({field:tZ.sm,addon:tZ.sm}
435),xs:tK({field:tZ.xs,addon:tZ.xs})},variants:{outline:tK(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tX(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:e1("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:th(t,n),boxShadow:`0 0 0 1px ${th(t,n)}`},_focusVisible:{zIndex:1,borderColor:th(t,r),boxShadow:`0 0 0 1px ${th(t,r)}`}},addon:{border:"1px solid",borderColor:e1("inherit","whiteAlpha.50")(e),bg:e1("gray.100","whiteAlpha.300")(e)}}}),filled:tK(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tX(e);return{field:{border:"2px solid",borderColor:"transparent",bg:e1("gray.100","whiteAlpha.50")(e),_hover:{bg:e1("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:th(t,n)},_focusVisible:{bg:"transparent",borderColor:th(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:e1("gray.100","whiteAlpha.50")(e)}}}),flushed:tK(e=>{let{theme:t}=e,{focusBorderColor:r,errorBorderColor:n}=tX(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:th(t,n),boxShadow:`0px 1px 0px 0px ${th(t,n)}`},_focusVisible:{borderColor:th(t,r),boxShadow:`0px 1px 0px 0px ${th(t,r)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),unstyled:tK({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),t0=(0,X.k0)({...null==(n=tQ.baseStyle)?void 0:n.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),t1={outline:(0,X.k0)(e=>{var t,r;return null!=(r=null==(t=tQ.variants)?void 0:t.outline(e).field)?r:{}}),flushed:(0,X.k0)(e=>{var t,r;return null!=(r=null==(t=tQ.variants)?void 0:t.flushed(e).field)?r:{}}),filled:(0,X.k0)(e=>{var t,r;return null!=(r=null==(t=tQ.variants)?void 0:t.filled(e).field)?r:{}}),unstyled:null!=(o=null==(i=tQ.variants)?void 0:i.unstyled.field)?o:{}},t2={xs:null!=(s=null==(a=tQ.sizes)?void 0:a.xs.field)?s:{},sm:null!=(l=null==(u=tQ.sizes)?void 0:u.sm.field)?l:{},md:null!=(d=null==(c=tQ.sizes)?void 0:c.md.field)?d:{},lg:null!=(h=null==(f=tQ.sizes)?void 0:f.lg.field)?h:{}},t5=(0,X.fj)({baseStyle:t0,sizes:t2,variants:t1,defaultProps:{size:"md",variant:"outline"}}),t4=eD("tooltip-bg"),t3=eD("tooltip-fg"),t6=eD("popper-arrow-bg"),t8=(0,X.k0)({bg:t4.reference,color:t3.reference,[t4.variable]:"colors.gray.700",[t3.variable]:"colors.whiteAlpha.900",_dark:{[t4.variable]:"colors.gray.300",[t3.variable]:"colors.gray.9
43500"},[t6.variable]:t4.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}),t7=(0,X.fj)({baseStyle:t8}),{defineMultiStyleConfig:t9,definePartsStyle:re}=(0,X.D)(e_.keys),rt=(0,X.k0)(e=>{let{colorScheme:t,theme:r,isIndeterminate:n,hasStripe:i}=e,o=e1(tv(),tv("1rem","rgba(0,0,0,0.1)"))(e),a=e1(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(
436    to right,
437    transparent 0%,
438    ${th(r,a)} 50%,
439    transparent 100%
440  )`;return{...!n&&i&&o,...n?{bgImage:s}:{bgColor:a}}}),rr=(0,X.k0)({lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"}),rn=(0,X.k0)(e=>({bg:e1("gray.100","whiteAlpha.300")(e)})),ri=(0,X.k0)(e=>({transitionProperty:"common",transitionDuration:"slow",...rt(e)})),ro=re(e=>({label:rr,filledTrack:ri(e),track:rn(e)})),ra=t9({sizes:{xs:re({track:{h:"1"}}),sm:re({track:{h:"2"}}),md:re({track:{h:"3"}}),lg:re({track:{h:"4"}})},baseStyle:ro,defaultProps:{size:"md",colorScheme:"blue"}}),rs=e=>"function"==typeof e;function ru(e,...t){return rs(e)?e(...t):e}var{definePartsStyle:rl,defineMultiStyleConfig:rc}=(0,X.D)(ef.keys),rd=(0,X.gJ)("checkbox-size"),rf=(0,X.k0)(e=>{let{colorScheme:t}=e;return{w:rd.reference,h:rd.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:e1(`${t}.500`,`${t}.200`)(e),borderColor:e1(`${t}.500`,`${t}.200`)(e),color:e1("white","gray.900")(e),_hover:{bg:e1(`${t}.600`,`${t}.300`)(e),borderColor:e1(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:e1("gray.200","transparent")(e),bg:e1("gray.200","whiteAlpha.300")(e),color:e1("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:e1(`${t}.500`,`${t}.200`)(e),borderColor:e1(`${t}.500`,`${t}.200`)(e),color:e1("white","gray.900")(e)},_disabled:{bg:e1("gray.100","whiteAlpha.100")(e),borderColor:e1("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:e1("red.500","red.300")(e)}}}),rh=(0,X.k0)({_disabled:{cursor:"not-allowed"}}),rp=(0,X.k0)({userSelect:"none",_disabled:{opacity:.4}}),rg=(0,X.k0)({transitionProperty:"transform",transitionDuration:"normal"}),rm=rc({baseStyle:rl(e=>({icon:rg,container:rh,control:ru(rf,e),label:rp})),sizes:{sm:rl({control:{[rd.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:rl({control:{[rd.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:rl({control:{[rd.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:ry,definePartsStyle:rv}=(0,X.D)(ek.keys),rb=(0,X.k0)(e=>{var t;let r=null==(t=ru(rm.baseStyle,e))?void 0:t.control;return{...r,borderRadius:"full",_checked:{...null==r?void 0:r._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}}),rw=ry({baseStyle:rv(e=>{var t,r;return{label:null==(t=rm.baseStyle)?void 0:t.call(rm,e).label,container:null==(r=rm.baseStyle)?void 0:r.call(rm,e).container,control:rb(e)}}),sizes:{md:rv({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:rv({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:rv({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:rS,definePartsStyle:rx}
440=(0,X.D)(eA.keys),r_=(0,X.gJ)("select-bg"),rk=rx({field:(0,X.k0)({...null==(p=tQ.baseStyle)?void 0:p.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:r_.reference,[r_.variable]:"colors.white",_dark:{[r_.variable]:"colors.gray.700"},"> option, > optgroup":{bg:r_.reference}}),icon:(0,X.k0)({width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}})}),rA=(0,X.k0)({paddingInlineEnd:"8"}),rC=rS({baseStyle:rk,sizes:{lg:{...null==(g=tQ.sizes)?void 0:g.lg,field:{...null==(m=tQ.sizes)?void 0:m.lg.field,...rA}},md:{...null==(y=tQ.sizes)?void 0:y.md,field:{...null==(v=tQ.sizes)?void 0:v.md.field,...rA}},sm:{...null==(b=tQ.sizes)?void 0:b.sm,field:{...null==(w=tQ.sizes)?void 0:w.sm.field,...rA}},xs:{...null==(S=tQ.sizes)?void 0:S.xs,field:{...null==(x=tQ.sizes)?void 0:x.xs.field,...rA},icon:{insetEnd:"1"}}},variants:tQ.variants,defaultProps:tQ.defaultProps}),rE=(0,X.gJ)("skeleton-start-color"),rP=(0,X.gJ)("skeleton-end-color"),rT=(0,X.k0)({[rE.variable]:"colors.gray.100",[rP.variable]:"colors.gray.400",_dark:{[rE.variable]:"colors.gray.800",[rP.variable]:"colors.gray.600"},background:rE.reference,borderColor:rP.reference,opacity:.7,borderRadius:"sm"}),rO=(0,X.fj)({baseStyle:rT}),rI=(0,X.gJ)("skip-link-bg"),rR=(0,X.k0)({borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[rI.variable]:"colors.white",_dark:{[rI.variable]:"colors.gray.700"},bg:rI.reference}}),rM=(0,X.fj)({baseStyle:rR}),{defineMultiStyleConfig:rD,definePartsStyle:rj}=(0,X.D)(eC.keys),rF=(0,X.gJ)("slider-thumb-size"),rU=(0,X.gJ)("slider-track-size"),rB=(0,X.gJ)("slider-bg"),rL=(0,X.k0)(e=>{let{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...e2({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}}),rz=(0,X.k0)(e=>{let t=e2({orientation:e.orientation,horizontal:{h:rU.reference},vertical:{w:rU.reference}});return{...t,overflow:"hidden",borderRadius:"sm",[rB.variable]:"colors.gray.200",_dark:{[rB.variable]:"colors.whiteAlpha.200"},_disabled:{[rB.variable]:"colors.gray.300",_dark:{[rB.variable]:"colors.whiteAlpha.300"}},bg:rB.reference}}),rN=(0,X.k0)(e=>{let{orientation:t}=e,r=e2({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}});return{...r,w:rF.reference,h:rF.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}}),rV=(0,X.k0)(e=>{let{colorScheme:t}=e;return{width:"inherit",height:"inherit",[rB.variable]:`colors.${t}.500`,_dark:{[rB.variable]:`colors.${t}.200`},bg:rB.reference}}),r$=rD({baseStyle:rj(e=>({container:rL(e),track:rz(e),thumb:rN(e),filledTrack:rV(e)})),sizes:{lg:rj({container:{[rF.variable]:"sizes.4",[rU.variable]:"sizes.1"}}),md:rj({container:{[rF.variable]:"sizes.3.5",[rU.variable]:"sizes.1"}}),sm:rj({container:{[rF.variable]:"sizes.2.5",[rU.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),rW=eD("spinner-size"),rq=(0,X.k0)({width:[rW.reference],height:[rW.reference]}),rH={xs:(0,X.k0)({[rW.variable]:"sizes.3"}),sm:(0,X.k0)({[rW.variable]:"sizes.4"}),md:(0,X.k0)({[rW.variable]:"sizes.6"}),lg:(0,X.k0)({[rW.variable]:"sizes.8"}),xl:(0,X.k0)({[rW.variable]:"sizes.12"})},rG=(0,X.fj)({baseStyle:rq,sizes:rH,defaultProps:{size:"md"}}),{defineMultiStyleConfig:rK,definePartsStyle:rJ}=(0,X.D)(eE.keys),rY=rK({baseStyle:rJ({container:{},label:(0,X.k0)({fontWeight:"medium"}),helpText:(0,X.k0)({opacity:.8,marginBottom:"2"}),number:(0,X.k0)({verticalAlign:"baseline",fontWeight:"semibold"}),icon:(0,X.k0)({marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"})}),sizes:{md:rJ({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),rZ=(0,X.gJ)("kbd-bg"),rX=(0,X.k0)({[rZ.variable]:"colors.gray.100",_dark:{[rZ.variable]:"colors.whiteAlpha.100"},bg:rZ.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}),rQ=(0,X.fj)({baseStyle:rX}),r0=(0,X.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-
440out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}),r1=(0,X.fj)({baseStyle:r0}),{defineMultiStyleConfig:r2,definePartsStyle:r5}=(0,X.D)(ev.keys),r4=r2({baseStyle:r5({icon:(0,X.k0)({marginEnd:"2",display:"inline",verticalAlign:"text-bottom"})})}),{defineMultiStyleConfig:r3,definePartsStyle:r6}=(0,X.D)(eb.keys),r8=(0,X.gJ)("menu-bg"),r7=(0,X.gJ)("menu-shadow"),r9=(0,X.k0)({[r8.variable]:"#fff",[r7.variable]:"shadows.sm",_dark:{[r8.variable]:"colors.gray.700",[r7.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:r8.reference,boxShadow:r7.reference}),ne=(0,X.k0)({py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[r8.variable]:"colors.gray.100",_dark:{[r8.variable]:"colors.whiteAlpha.100"}},_active:{[r8.variable]:"colors.gray.200",_dark:{[r8.variable]:"colors.whiteAlpha.200"}},_expanded:{[r8.variable]:"colors.gray.100",_dark:{[r8.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:r8.reference}),nt=(0,X.k0)({mx:4,my:2,fontWeight:"semibold",fontSize:"sm"}),nr=(0,X.k0)({opacity:.6}),nn=(0,X.k0)({border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}),ni=r3({baseStyle:r6({button:(0,X.k0)({transitionProperty:"common",transitionDuration:"normal"}),list:r9,item:ne,groupTitle:nt,command:nr,divider:nn})}),{defineMultiStyleConfig:no,definePartsStyle:na}=(0,X.D)(ew.keys),ns=(0,X.gJ)("modal-bg"),nu=(0,X.gJ)("modal-shadow"),nl=(0,X.k0)({bg:"blackAlpha.600",zIndex:"modal"}),nc=(0,X.k0)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===r?"hidden":"auto",overscrollBehaviorY:"none"}}),nd=(0,X.k0)(e=>{let{isCentered:t,scrollBehavior:r}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===r?"calc(100% - 7.5rem)":void 0,[ns.variable]:"colors.white",[nu.variable]:"shadows.lg",_dark:{[ns.variable]:"colors.gray.700",[nu.variable]:"shadows.dark-lg"},bg:ns.reference,boxShadow:nu.reference}}),nf=(0,X.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),nh=(0,X.k0)({position:"absolute",top:"2",insetEnd:"3"}),np=(0,X.k0)(e=>{let{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}}),ng=(0,X.k0)({px:"6",py:"4"});function nm(e){return"full"===e?na({dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}):na({dialog:{maxW:e}})}var ny=no({baseStyle:na(e=>({overlay:nl,dialogContainer:ru(nc,e),dialog:ru(nd,e),header:nf,closeButton:nh,body:ru(np,e),footer:ng})),sizes:{xs:nm("xs"),sm:nm("sm"),md:nm("md"),lg:nm("lg"),xl:nm("xl"),"2xl":nm("2xl"),"3xl":nm("3xl"),"4xl":nm("4xl"),"5xl":nm("5xl"),"6xl":nm("6xl"),full:nm("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:nv,definePartsStyle:nb}=(0,X.D)(eS.keys),nw=eD("number-input-stepper-width"),nS=eD("number-input-input-padding"),nx=e$(nw).add("0.5rem").toString(),n_=eD("number-input-bg"),nk=eD("number-input-color"),nA=eD("number-input-border-color"),nC=(0,X.k0)({[nw.variable]:"sizes.6",[nS.variable]:nx}),nE=(0,X.k0)(e=>{var t,r;return null!=(r=null==(t=ru(tQ.baseStyle,e))?void 0:t.field)?r:{}}),nP=(0,X.k0)({width:nw.reference}),nT=(0,X.k0)({borderStart:"1px solid",borderStartColor:nA.reference,color:nk.reference,bg:n_.reference,[nk.variable]:"colors.chakra-body-text",[nA.variable]:"colors.chakra-border-color",_dark:{[nk.variable]:"colors.whiteAlpha.800",[nA.variable]:"colors.whiteAlpha.300"},_active:{[n_.variable]:"colors.gray.200",_dark:{[n_.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}});function nO(e){var t,r,n;let i=null==(t=tQ.sizes)?void 0:t[e],o={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(n=null==(r=i.field)?void 0:r.fontSize)?n:"md",s=K.fontSizes[a];return nb({field:{...i.field,paddingInlineEnd:nS.reference,verticalAlign:"top"},stepper:{fontSize:e$(s).multiply(.75).toString(),_first:{borderTopEndRadius:o[e]},_last:{borderBottomEndRadius:o[e],mt:"-1px",borderTopWidth:1}}})}var nI=nv({baseStyle:nb(e=>{var t;return{root:nC,field:null!=(t=ru(nE,e))?t:{},stepperGroup:nP,stepper:nT}}
440),sizes:{xs:nO("xs"),sm:nO("sm"),md:nO("md"),lg:nO("lg")},variants:tQ.variants,defaultProps:tQ.defaultProps}),nR=(0,X.k0)({...null==(_=tQ.baseStyle)?void 0:_.field,textAlign:"center"}),nM={lg:(0,X.k0)({fontSize:"lg",w:12,h:12,borderRadius:"md"}),md:(0,X.k0)({fontSize:"md",w:10,h:10,borderRadius:"md"}),sm:(0,X.k0)({fontSize:"sm",w:8,h:8,borderRadius:"sm"}),xs:(0,X.k0)({fontSize:"xs",w:6,h:6,borderRadius:"sm"})},nD={outline:(0,X.k0)(e=>{var t,r,n;return null!=(n=null==(r=ru(null==(t=tQ.variants)?void 0:t.outline,e))?void 0:r.field)?n:{}}),flushed:(0,X.k0)(e=>{var t,r,n;return null!=(n=null==(r=ru(null==(t=tQ.variants)?void 0:t.flushed,e))?void 0:r.field)?n:{}}),filled:(0,X.k0)(e=>{var t,r,n;return null!=(n=null==(r=ru(null==(t=tQ.variants)?void 0:t.filled,e))?void 0:r.field)?n:{}}),unstyled:null!=(A=null==(k=tQ.variants)?void 0:k.unstyled.field)?A:{}},nj=(0,X.fj)({baseStyle:nR,sizes:nM,variants:nD,defaultProps:tQ.defaultProps}),{defineMultiStyleConfig:nF,definePartsStyle:nU}=(0,X.D)(ex.keys),nB=eD("popper-bg"),nL=eD("popper-arrow-bg"),nz=eD("popper-arrow-shadow-color"),nN=nF({baseStyle:nU({popper:(0,X.k0)({zIndex:10}),content:(0,X.k0)({[nB.variable]:"colors.white",bg:nB.reference,[nL.variable]:nB.reference,[nz.variable]:"colors.gray.200",_dark:{[nB.variable]:"colors.gray.700",[nz.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}}),header:(0,X.k0)({px:3,py:2,borderBottomWidth:"1px"}),body:(0,X.k0)({px:3,py:2}),footer:(0,X.k0)({px:3,py:2,borderTopWidth:"1px"}),closeButton:(0,X.k0)({position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2})})}),{definePartsStyle:nV,defineMultiStyleConfig:n$}=(0,X.D)(eh.keys),nW=(0,X.gJ)("drawer-bg"),nq=(0,X.gJ)("drawer-box-shadow");function nH(e){return"full"===e?nV({dialog:{maxW:"100vw",h:"100vh"}}):nV({dialog:{maxW:e}})}var nG=(0,X.k0)({bg:"blackAlpha.600",zIndex:"overlay"}),nK=(0,X.k0)({display:"flex",zIndex:"modal",justifyContent:"center"}),nJ=(0,X.k0)(e=>{let{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[nW.variable]:"colors.white",[nq.variable]:"shadows.lg",_dark:{[nW.variable]:"colors.gray.700",[nq.variable]:"shadows.dark-lg"},bg:nW.reference,boxShadow:nq.reference}}),nY=(0,X.k0)({px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"}),nZ=(0,X.k0)({position:"absolute",top:"2",insetEnd:"3"}),nX=(0,X.k0)({px:"6",py:"2",flex:"1",overflow:"auto"}),nQ=(0,X.k0)({px:"6",py:"4"}),n0=n$({baseStyle:nV(e=>({overlay:nG,dialogContainer:nK,dialog:ru(nJ,e),header:nY,closeButton:nZ,body:nX,footer:nQ})),sizes:{xs:nH("xs"),sm:nH("md"),md:nH("lg"),lg:nH("2xl"),xl:nH("4xl"),full:nH("full")},defaultProps:{size:"xs"}}),{definePartsStyle:n1,defineMultiStyleConfig:n2}=(0,X.D)(ep.keys),n5=n2({baseStyle:n1({preview:(0,X.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"}),input:(0,X.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}),textarea:(0,X.k0)({borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}})})}),{definePartsStyle:n4,defineMultiStyleConfig:n3}=(0,X.D)(eg.keys),n6=(0,X.gJ)("form-control-color"),n8=n3({baseStyle:n4({container:{width:"100%",position:"relative"},requiredIndicator:(0,X.k0)({marginStart:"1",[n6.variable]:"colors.red.500",_dark:{[n6.variable]:"colors.red.300"},color:n6.reference}),helperText:(0,X.k0)({mt:"2",[n6.variable]:"colors.gray.600",_dark:{[n6.variable]:"colors.whiteAlpha.600"},color:n6.reference,lineHeight:"normal",fontSize:"sm"})})}),{definePartsStyle:n7,defineMultiStyleConfig:n9}=(0,X.D)(em.keys),ie=(0,X.gJ)("form-error-color"),it=n9({baseStyle:n7({text:(0,X.k0)({[ie.variable]:"colors.red.500",_dark:{[ie.variable]:"colors.red.300"},color:ie.reference,mt:"2",fontSize:"sm",lineHeight:"normal"}),icon:(0,X.k0)({marginEnd:"0.5em",[ie.variable]:"colors.red.500",_dark:{[ie.variable]:"colors.red.300"},color:ie.reference})})}),ir=(0,X.k0)({fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}),ii=(0,X.fj)({baseStyle:ir}),io=(0,X.k0)({fontFamily:"heading",fontWeight:"bold"}
440),ia={"4xl":(0,X.k0)({fontSize:["6xl",null,"7xl"],lineHeight:1}),"3xl":(0,X.k0)({fontSize:["5xl",null,"6xl"],lineHeight:1}),"2xl":(0,X.k0)({fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]}),xl:(0,X.k0)({fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]}),lg:(0,X.k0)({fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]}),md:(0,X.k0)({fontSize:"xl",lineHeight:1.2}),sm:(0,X.k0)({fontSize:"md",lineHeight:1.2}),xs:(0,X.k0)({fontSize:"sm",lineHeight:1.2})},is=(0,X.fj)({baseStyle:io,sizes:ia,defaultProps:{size:"xl"}}),{defineMultiStyleConfig:iu,definePartsStyle:il}=(0,X.D)(ed.keys),ic=(0,X.gJ)("breadcrumb-link-decor"),id=iu({baseStyle:il({link:(0,X.k0)({transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:ic.reference,[ic.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[ic.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}})})}),ih=(0,X.k0)({lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}}),ip=(0,X.k0)(e=>{let{colorScheme:t,theme:r}=e;if("gray"===t)return{color:e1("gray.800","whiteAlpha.900")(e),_hover:{bg:e1("gray.100","whiteAlpha.200")(e)},_active:{bg:e1("gray.200","whiteAlpha.300")(e)}};let n=ty(`${t}.200`,.12)(r),i=ty(`${t}.200`,.24)(r);return{color:e1(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:e1(`${t}.50`,n)(e)},_active:{bg:e1(`${t}.100`,i)(e)}}}),ig=(0,X.k0)(e=>{let{colorScheme:t}=e,r=e1("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?r:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...ru(ip,e)}}),im={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},iy=(0,X.k0)(e=>{var t;let{colorScheme:r}=e;if("gray"===r){let t=e1("gray.100","whiteAlpha.200")(e);return{bg:t,color:e1("gray.800","whiteAlpha.900")(e),_hover:{bg:e1("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:e1("gray.300","whiteAlpha.400")(e)}}}let{bg:n=`${r}.500`,color:i="white",hoverBg:o=`${r}.600`,activeBg:a=`${r}.700`}=null!=(t=im[r])?t:{},s=e1(n,`${r}.200`)(e);return{bg:s,color:e1(i,"gray.800")(e),_hover:{bg:e1(o,`${r}.300`)(e),_disabled:{bg:s}},_active:{bg:e1(a,`${r}.400`)(e)}}}),iv=(0,X.k0)(e=>{let{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:e1(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:e1(`${t}.700`,`${t}.500`)(e)}}}),ib=(0,X.k0)({bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}),iw={lg:(0,X.k0)({h:"12",minW:"12",fontSize:"lg",px:"6"}),md:(0,X.k0)({h:"10",minW:"10",fontSize:"md",px:"4"}),sm:(0,X.k0)({h:"8",minW:"8",fontSize:"sm",px:"3"}),xs:(0,X.k0)({h:"6",minW:"6",fontSize:"xs",px:"2"})},iS=(0,X.fj)({baseStyle:ih,variants:{ghost:ip,outline:ig,solid:iy,link:iv,unstyled:ib},sizes:iw,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}}),{definePartsStyle:ix,defineMultiStyleConfig:i_}=(0,X.D)(eR.keys),ik=(0,X.gJ)("card-bg"),iA=(0,X.gJ)("card-padding"),iC=(0,X.gJ)("card-shadow"),iE=(0,X.gJ)("card-radius"),iP=(0,X.gJ)("card-border-width","0"),iT=(0,X.gJ)("card-border-color"),iO=ix({container:{[ik.variable]:"colors.chakra-body-bg",backgroundColor:ik.reference,boxShadow:iC.reference,borderRadius:iE.reference,color:"chakra-body-text",borderWidth:iP.reference,borderColor:iT.reference},body:{padding:iA.reference,flex:"1 1 0%"},header:{padding:iA.reference},footer:{padding:iA.reference}}),iI={sm:ix({container:{[iE.variable]:"radii.base",[iA.variable]:"space.3"}}),md:ix({container:{[iE.variable]:"radii.md",[iA.variable]:"space.5"}}),lg:ix({container:{[iE.variable]:"radii.xl",[iA.variable]:"space.7"}})},iR=i_({baseStyle:iO,variants:{elevated:ix({container:{[iC.variable]:"shadows.base",_dark:{[ik.variable]:"colors.gray.700"}}}),outline:ix({container:{[iP.variable]:"1px",[iT.variable]:"colors.chakra-border-color"}}),filled:ix({container:{[ik.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[iA.variable]:0},header:{[iA.variable]:0},footer:{[iA.variable]:0}}},sizes:iI,defaultProps:{variant:"elevated",size:"md"}}),iM=eD("close-button-size"),iD=eD("close-button-bg"),ij=(0,X.k0)({w:[i
440M.reference],h:[iM.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[iD.variable]:"colors.blackAlpha.100",_dark:{[iD.variable]:"colors.whiteAlpha.100"}},_active:{[iD.variable]:"colors.blackAlpha.200",_dark:{[iD.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:iD.reference}),iF={lg:(0,X.k0)({[iM.variable]:"sizes.10",fontSize:"md"}),md:(0,X.k0)({[iM.variable]:"sizes.8",fontSize:"xs"}),sm:(0,X.k0)({[iM.variable]:"sizes.6",fontSize:"2xs"})},iU=(0,X.fj)({baseStyle:ij,sizes:iF,defaultProps:{size:"md"}}),{variants:iB,defaultProps:iL}=tj,iz=(0,X.k0)({fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:tO.bg.reference,color:tO.color.reference,boxShadow:tO.shadow.reference}),iN=(0,X.fj)({baseStyle:iz,variants:iB,defaultProps:iL}),iV=(0,X.k0)({w:"100%",mx:"auto",maxW:"prose",px:"4"}),i$=(0,X.fj)({baseStyle:iV}),iW=(0,X.k0)({opacity:.6,borderColor:"inherit"}),iq=(0,X.k0)({borderStyle:"solid"}),iH=(0,X.k0)({borderStyle:"dashed"}),iG=(0,X.fj)({baseStyle:iW,variants:{solid:iq,dashed:iH},defaultProps:{variant:"solid"}}),{definePartsStyle:iK,defineMultiStyleConfig:iJ}=(0,X.D)(eu.keys),iY=iJ({baseStyle:iK({container:(0,X.k0)({borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}}),button:(0,X.k0)({transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"}),panel:(0,X.k0)({pt:"2",px:"4",pb:"5"}),icon:(0,X.k0)({fontSize:"1.25em"})})}),{definePartsStyle:iZ,defineMultiStyleConfig:iX}=(0,X.D)(el.keys),iQ=(0,X.gJ)("alert-fg"),i0=(0,X.gJ)("alert-bg");function i1(e){let{theme:t,colorScheme:r}=e,n=ty(`${r}.200`,.16)(t);return{light:`colors.${r}.100`,dark:n}}var i2=iX({baseStyle:iZ({container:{bg:i0.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:iQ.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:iQ.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:iZ(e=>{let{colorScheme:t}=e,r=i1(e);return{container:{[iQ.variable]:`colors.${t}.500`,[i0.variable]:r.light,_dark:{[iQ.variable]:`colors.${t}.200`,[i0.variable]:r.dark}}}}),"left-accent":iZ(e=>{let{colorScheme:t}=e,r=i1(e);return{container:{[iQ.variable]:`colors.${t}.500`,[i0.variable]:r.light,_dark:{[iQ.variable]:`colors.${t}.200`,[i0.variable]:r.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:iQ.reference}}}),"top-accent":iZ(e=>{let{colorScheme:t}=e,r=i1(e);return{container:{[iQ.variable]:`colors.${t}.500`,[i0.variable]:r.light,_dark:{[iQ.variable]:`colors.${t}.200`,[i0.variable]:r.dark},pt:"2",borderTopWidth:"4px",borderTopColor:iQ.reference}}}),solid:iZ(e=>{let{colorScheme:t}=e;return{container:{[iQ.variable]:"colors.white",[i0.variable]:`colors.${t}
440.500`,_dark:{[iQ.variable]:"colors.gray.900",[i0.variable]:`colors.${t}.200`},color:iQ.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:i5,defineMultiStyleConfig:i4}=(0,X.D)(ec.keys),i3=(0,X.gJ)("avatar-border-color"),i6=(0,X.gJ)("avatar-bg"),i8=(0,X.gJ)("avatar-font-size"),i7=(0,X.gJ)("avatar-size"),i9=(0,X.k0)({borderRadius:"full",border:"0.2em solid",borderColor:i3.reference,[i3.variable]:"white",_dark:{[i3.variable]:"colors.gray.800"}}),oe=(0,X.k0)({bg:i6.reference,fontSize:i8.reference,width:i7.reference,height:i7.reference,lineHeight:"1",[i6.variable]:"colors.gray.200",_dark:{[i6.variable]:"colors.whiteAlpha.400"}}),ot=(0,X.k0)(e=>{let{name:t,theme:r}=e,n=t?function(e){var t;let r=tb();return!e||td(e)?r:e.string&&e.colors?function(e,t){let r=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)r=e.charCodeAt(t)+((r<<5)-r),r&=r;return r=(r%t.length+t.length)%t.length,t[r]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let r=0;r<e.length;r+=1)t=e.charCodeAt(r)+((t<<5)-t),t&=t;let r="#";for(let e=0;e<3;e+=1){let n=t>>8*e&255;r+=`00${n.toString(16)}`.substr(-2)}return r}(e.string):e.colors&&!e.string?(t=e.colors)[Math.floor(Math.random()*t.length)]:r}({string:t}):"colors.gray.400",i=tm(n)(r),o="white";return i||(o="gray.800"),{bg:i6.reference,fontSize:i8.reference,color:o,borderColor:i3.reference,verticalAlign:"top",width:i7.reference,height:i7.reference,"&:not([data-loaded])":{[i6.variable]:n},[i3.variable]:"colors.white",_dark:{[i3.variable]:"colors.gray.800"}}}),or=(0,X.k0)({fontSize:i8.reference,lineHeight:"1"});function on(e){let t="100%"!==e?Y[e]:void 0;return i5({container:{[i7.variable]:null!=t?t:e,[i8.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[i7.variable]:null!=t?t:e,[i8.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var oi=i4({baseStyle:i5(e=>({badge:ru(i9,e),excessLabel:ru(oe,e),container:ru(ot,e),label:or})),sizes:{"2xs":on(4),xs:on(6),sm:on(8),md:on(12),lg:on(16),xl:on(24),"2xl":on(32),full:on("100%")},defaultProps:{size:"md"}}),oo={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},oa={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},os={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},ou={semanticTokens:oo,direction:"ltr",...Z,components:{Accordion:iY,Alert:i2,Avatar:oi,Badge:tj,Breadcrumb:id,Button:iS,Checkbox:rm,CloseButton:iU,Code:iN,Container:i$,Divider:iG,Drawer:n0,Editable:n5,Form:n8,FormError:it,FormLabel:ii,Heading:is,Input:tQ,Kbd:rQ,Link:r1,List:r4,Menu:ni,Modal:ny,NumberInput:nI,PinInput:nj,Popover:nN,Progress:ra,Radio:rw,Select:rC,Skeleton:rO,SkipLink:rM,Slider:r$,Spinner:rG,Stat:rY,Switch:e0,Table:e8,Tabs:tT,Tag:tG,Textarea:t5,Tooltip:t7,Card:iR,Stepper:ea},styles:oa,config:os},ol={semanticTokens:oo,direction:"ltr",components:{},...Z,styles:oa,config:os},oc=r(33368),od=e=>function({children:t,theme:r=e,toastOptions:n,...i}){return(0,C.jsxs)(G,{theme:r,...i,children:[(0,C.jsx)(oc.Qi,{value:null==n?void 0:n.defaultOptions,children:t}),(0,C.jsx)(oc.VW,{...n})]})},of=od(ou);od(ol);var oh=r(154),op=r(73488),og=r(57557),om=r(67183),oy=r(6343);class ov extends oy.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||op._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||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?null!=n?n:Date.now():0,error:null,errorUpdate
440Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let r=(0,oh.oE)(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(oh.ZT).catch(oh.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,oh.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.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.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n,i,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);let a=(0,oh.G9)(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};u(s);let l=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:l};u(c),null==(r=this.options.behavior)||r.onFetch(c),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=c.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(o=c.fetchOptions)?void 0:o.meta});let d=e=>{if((0,om.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,om.DV)(e)){var t,r,n,i;null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,om.Mz)({fn:c.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,r,n,i;if(void 0===e){d(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;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,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:(0,om.Kw)(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if((0,om.DV)(i)&&i.revert&&this.revertState)return{...this.revertState};
440return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),og.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}var ob=r(9685);class ow extends ob.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;let i=t.queryKey,o=null!=(n=t.queryHash)?n:(0,oh.Rm)(i,t),a=this.get(o);return a||(a=new ov({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){og.V.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[r]=(0,oh.I6)(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find(e=>(0,oh._x)(r,e))}findAll(e,t){let[r]=(0,oh.I6)(e,t);return Object.keys(r).length>0?this.queries.filter(e=>(0,oh._x)(r,e)):this.queries}notify(e){og.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){og.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){og.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}var oS=r(24223);class ox extends ob.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){let n=new oS.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){og.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>(0,oh.X7)(e,t))}findAll(e){return this.mutations.filter(t=>(0,oh.X7)(e,t))}notify(e){og.V.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>
440e.state.isPaused);return og.V.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(oh.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}var o_=r(3545),ok=r(82281);function oA(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}var oC=r(74783),oE=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"],oP=r(89924);function oT(e){return"function"==typeof e}var oO=e=>function(...t){var r;let n=[...t],i=t[t.length-1];return(r=i,(0,ej.Kn)(r)&&oE.every(e=>Object.prototype.hasOwnProperty.call(r,e))&&n.length>1)?n=n.slice(0,n.length-1):i=e,(function(...e){return t=>e.reduce((e,t)=>t(e),t)})(...n.map(e=>t=>oT(e)?e(t):function(...e){return oP({},...e,oR)}(t,e)))(i)},oI=oO(ou);function oR(e,t,r,n){if((oT(e)||oT(t))&&Object.prototype.hasOwnProperty.call(n,r))return(...r)=>{let n=oT(e)?e(...r):e,i=oT(t)?t(...r):t;return oP({},n,i,oR)}}oO(ol);var oM={baseStyle:{fontFamily:"body",fontWeight:"bold",letterSpacing:"normal",color:"brand.neutral.900",gap:1,shadow:1,borderRadius:8,_hover:{shadow:2},_active:{transform:"scale(0.95)"}},sizes:{sm:{padding:"6px 12px",fontSize:"sm",lineHeight:"normal"},md:{padding:["10px, 14px","12px 16px"],fontSize:["xs","sm"],lineHeight:"normal"},lg:{padding:"16px 16px",fontSize:"md",lineHeight:"normal"}},variants:{yellow:{bg:"brand.secondary.500",color:"brand.neutral.900",_hover:{bg:"brand.secondary.600",color:"brand.neutral.900"},_active:{bg:"brand.secondary.500",color:"brand.neutral.900"},_disabled:{bg:"brand.secondary.400",color:"brand.neutral.900"}},green:{bg:"brand.secondary.500",color:"brand.neutral.900",_hover:{bg:"brand.secondary.600",color:"brand.neutral.900"},_active:{bg:"brand.secondary.500",color:"brand.neutral.900"},_disabled:{bg:"brand.secondary.400",color:"brand.neutral.900"}},darkYellow:{bg:"brand.secondary.700",color:"white",_hover:{bg:"brand.secondary.800"},_active:{bg:"brand.secondary.700"},_disabled:{bg:"brand.secondary.400"}},darkGreen:{bg:"brand.primary.700",color:"white",_hover:{bg:"brand.primary.800"},_active:{bg:"brand.primary.700"},_disabled:{bg:"brand.primary.400"}},LighterYellow:{bg:"brand.secondary.400",color:"brand.neutral.900",_hover:{bg:"brand.secondary.500",color:"brand.neutral.900"},_active:{bg:"brand.secondary.400",color:"brand.neutral.900"},_disabled:{bg:"brand.secondary.300",color:"brand.neutral.900"}},LighterGreen:{bg:"brand.secondary.400",color:"brand.neutral.900",_hover:{bg:"brand.secondary.500",color:"brand.neutral.900"},_active:{bg:"brand.secondary.400",color:"brand.neutral.900"},_disabled:{bg:"brand.secondary.300",color:"brand.neutral.900"}},primary:{bg:"brand.primary.500",color:"white",_hover:{bg:"brand.primary.700"},_active:{bg:"brand.primary.500"},_disabled:{bg:"brand.surface.100",color:"brand.neutral.400"}},secondary:{bg:"white",color:"brand.primary.500",border:"1px solid",borderColor:"brand.primary.500",_hover:{color:"white",bg:"brand.primary.700"},_active:{color:"white",bg:"brand.primary.500"},_disabled:{bg:"brand.surface.100",color:"brand.neutral.400",borderWidth:0,_hover:{color:"brand.neutral.400"}}},tertiary:{bg:"white",color:"brand.surface.900",border:"1px solid",borderColor:"brand.neutral.300",_hover:{borderColor:"brand.neutral.400"},_disabled:{bg:"brand.surface.100",color:"brand.neutral.400",borderWidth:0}},ghost:{color:"brand.surface.900",border:"1px solid",borderColor:"transparent",shadow:0,_hover:{bg:"white",borderColor:"brand.neutral.400",color:"black"},_active:{bg:"white"},_disabled:{bg:"brand.surface.100",color:"brand.neutral.400",borderWidth:0}},ghostOnDark:{bg:"whiteAlpha.200",color:"white",border:"1px solid",borderColor:"transparent",shadow:0,_hover:{bg:"white",borderColor:"brand.neutral.400",color:"black"},_active:{bg:"white"},_disabled:{bg:"brand.surface.100",color:"brand.neutral.400",borderWidth:0}}},defaultProps:{size:"md"}};let oD={display:"flex",flex:1,flexWrap:"wrap",alignItems:"center"},oj={display:"block",textAlign:"start"},oF={h:"auto",minW:30,pr:1},oU=e=>({bgColor:"transparent",appearance:"none",flex:1,outline:0}),oB={display:"flex",alignItems:"center"},oL={fontWeight:"semibold"},oz={display:"inline",h:"full",border:0,borderColor:"inherit",my:1,opacity:.8},oN=e=>({list:{bg:e1("white","gray.700")(e),boxShadow:e1("sm","dark-lg")(e),color:"inherit",w:"full",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",maxH:"64",overflowY:"auto",overscrollBehaviorY:"contain"},selectedList:oD,item:{cursor:"pointer",transition:"background 50ms ease-out",_focus:{bg:e1("gray.50","whiteAlpha.100")(e),boxShadow:"outline"},_active:{bg:e1("gray.50","whiteAlpha.100")(e)},_expanded:{bg:e1("gray.50","whiteAlpha.100")(e)},_selected:{bg:e1("gray.100","whiteAlpha.300")(e)},_disabled:{opacity:.4,cursor:"not-allowed"}},selectedItem:{borderRadius:"4",bg:"brand.neutral.50",color:"brand.surface.900",fontWeight:"bold",colorscheme:e.colorscheme},button:{variant:"ghost",_hover:{bg:e1("gray.200","whiteAlpha.300")(e)},_focus:{bg:e1("gray.200","whiteAlpha.300")(e),boxShadow:"outline"},_active:{bg:e1("gray.100","whiteAlpha.100")(e)},colorscheme:e.colorscheme},actionGroup:oB,control:oF,input:oU(e),groupTitle:oL,divider:oz,label:oj});var oV={defaultProps:{size:"md"},parts:["item","selectedItem","list","textList","selectedList","actionGroup","control","input","button","groupTitle","divider","label"],sizes:{sm:{control:{minH:8,spacing:1}
440,input:{p:"px"},actionGroup:{spacing:"0"},item:{py:1,px:2},textList:{py:0,px:1},selectedItem:{m:"px"},selectedList:{py:"px"},groupTitle:{mx:2,my:1,fontSize:"sm"}},md:{control:{minH:"48px",spacing:1},input:{p:"2px"},actionGroup:{spacing:"0"},item:{py:2,px:3},textList:{p:1},selectedItem:{m:"2px"},selectedList:{py:"2px"},groupTitle:{mx:4,my:2,fontSize:"sm"}},lg:{control:{minH:12,spacing:2},input:{p:1},actionGroup:{spacing:"0"},item:{py:2,px:3},textList:{py:1,px:2},selectedItem:{m:1},selectedList:{py:1},groupTitle:{mx:4,my:2,fontSize:"sm"}}},baseStyle:oN},o$={},oW={baseStyle:{control:{borderColor:"brand.primary.800",borderWidth:2,_checked:{bg:"brand.primary.500",borderColor:"brand.primary.600"},_hover:{bg:"brand.primary.400 !important",borderColor:"brand.primary.600 !important"},_disabled:{bg:"brand.primary.100 !important",borderColor:"brand.primary.100 !important"}}}},oq={parts:["th","td"],baseStyle:{th:{borderWidth:1},td:{borderWidth:1}}};let{definePartsStyle:oH,defineMultiStyleConfig:oG}=(0,X.D)(ey.keys),oK=oH({field:{width:"100%",minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),oJ={lg:(0,X.k0)({fontSize:"md",px:"3",py:"2",height:"48px"}),md:(0,X.k0)({fontSize:"md",px:"4",py:"3",height:"40px"})},oY={lg:oH({field:oJ.lg,addon:oJ.lg}),md:oH({field:oJ.md,addon:oJ.md})},oZ=e=>{let{focusBorderColor:t,errorBorderColor:r}=e;return{focusBorderColor:t||e1("brand.primary.500","brand.primary.300")(e),errorBorderColor:r||e1("red.500","red.300")(e)}},oX=oH(e=>{let{focusBorderColor:t,errorBorderColor:r}=oZ(e);return{field:{border:"1px solid",borderColor:"brand.neutral.400",bg:"inherit",color:"brand.surface.900",_hover:{borderColor:"brand.neutral.300"},_readOnly:{bg:"brand.neutral.100",borderColor:"brand.neutral.300",boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:r},_focusVisible:{zIndex:1,borderColor:t,boxShadow:"none !important",borderWidth:1}},addon:{border:"1px solid",borderColor:"inherit",bg:"inherit"},element:{color:"brand.neutral.400",height:"100%",width:"auto",_groupFocusWithin:{color:"brand.surface.900"}}}});var oQ=oG({baseStyle:oK,sizes:oY,variants:{outline:oX},defaultProps:{size:"lg",variant:"outline"}}),o0={baseStyle:{fontFamily:"body",fontWeight:"medium",letterSpacing:"normal",color:"brand.surface.900"}},o1={baseStyle:{letterSpacing:"normal"}},o2={baseStyle:{control:{borderColor:"brand.primary.800",_checked:{bg:"brand.primary.500",borderColor:"brand.primary.600"},_hover:{bg:"brand.primary.400 !important",borderColor:"brand.primary.600 !important"}}}},o5={baseStyle:{letterSpacing:"wide"},variants:{primary:{fontSize:"32px",fontWeight:"bold",color:"brand.neutral.900",_hover:{},_active:{},_disabled:{}}}},o4={...oQ};let{defineMultiStyleConfig:o3,definePartsStyle:o6}=(0,X.D)(["stepper","step","title","description","indicator","separator","icon","number"]),o8=(0,X.gJ)("stepper-indicator-size"),o7=(0,X.gJ)("stepper-icon-size"),o9=(0,X.gJ)("stepper-title-font-size"),ae=(0,X.gJ)("stepper-description-font-size"),at=(0,X.gJ)("stepper-accent-color"),ar=o6(e=>{let{colorScheme:t}=e;return{stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[at.variable]:"colors.".concat(t,".500"),_dark:{[at.variable]:"colors.".concat(t,".200")}},title:{fontSize:o9.reference,fontWeight:"medium"},description:{fontSize:ae.reference,color:"chakra-subtle-text"},number:{fontSize:o9.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:o7.reference,height:o7.reference},indicator:{flexShrink:0,borderRadius:"full",width:o8.reference,height:o8.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:at.reference},"&[data-status=complete]":{bg:at.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:at.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:"calc(100% - ".concat(o8.reference," - 8px)"),top:"calc(".concat(o8.reference," + 4px)"),insetStart:"calc(".concat(o8.reference," / 2 - 1px)")}}}}),an=o3({baseStyle:ar,sizes:{xs:o6({stepper:{[o8.variable]:"sizes.4",[o7.variable]:"sizes.3",[o9.variable]:"fontSizes.xs",[ae.variable]:"fontSizes.xs"}}),sm:o6({stepper:{[o8.variable]:"sizes.6",[o7.variable]:"sizes.4",[o9.variable]:"fontSizes.sm",[ae.variable]:"fontSizes.xs"}}),md:o6({stepper:{[o8.variable]:"sizes.8",[o7.variable]:"sizes.5",[o9.variable]:"fontSizes.md",[ae.variable]:"fontSizes.sm"}}),lg:o6({stepper:{[o8.variable]:"sizes.10",[o7.variable]:"sizes.6",[o9.variable]:"fontSizes.lg",[ae.variable]:"fontSizes.md"}})},defaultProps:{size:"lg",colorScheme:"brand.primary"}});var ai={global:{body:{},a:{},".tinyMCE":{"> div":{display:"inline-block"},"a, a:link, a:visited":{color:"brand.primary.500 !important",textDecoration:"underline",_hover:{bg:"inherit",color:"brand.primary.400 !important"}},"p, span, div":{color:"inherit !important"},h1:{fontFamily:"heading",fontSize:"32px",fontWeight:700,my:"24px",color:"brand.surface.900"},h2:{fontFamily:"heading",fontSize:"24px",fontWeight:700,my:"24px",color:"brand.surface.900"},h3:{fontFamily:"heading",fontSize:"24px",fontWeight:700,my:"24px",color:"brand.primary.600",lineHeight:"130%"},h4:{fontFamily:"heading",fontSize:"18px",fontWeight:700,mb:"4",mt:"4",letterSpacing:"0.3px",borderBottom:"1px solid",borderColor:"brand.neutral.200",color:"brand.primary.500",pb:"12px",lineHeight:"120%",my:"24px"},p:{fontFamily:"body",my:"10px"},"ul,ol":{pl:"3ch"},img:{borderRadius:"md"},"figure.image":{display:"inline-block"},"figure.align-left":{float:["none","none","left"],marginRight:[0,0,"20px"]},"figure.align-right":{float:["none","none","right"],marginLeft:[
4400,0,"20px"]},"figure.image figcaption":{fontSize:"xs",color:"grey.500",mt:"4px"},"figure.image img":{objectFit:"cover"},"div.table-wrap":{width:"100%",overflowX:"auto"},table:{borderWidth:"1px",borderColor:"grey.400",borderCollapse:"collapse",my:"10px",bg:"grey.300",maxW:"700px"},td:{p:"5px",borderWidth:"1px",borderColor:"grey.400"},blockquote:{border:0,fontSize:"lg",fontWeight:"semibold",fontStyle:"italic",margin:"1.5rem 1rem 1.5rem 1rem",maxWidth:"800px",px:[0,0,"4rem"],py:["2rem","2rem",0],position:"relative"},"blockquote::before":{color:"grey.400",content:'"""',fontFamily:"serif",fontStyle:"italic",fontSize:"8em",left:"-0.18em",top:"-0.5em",pointerEvents:"none",position:"absolute"},iframe:{maxW:"100%",maxH:["300px","400px","unset"]}}}},ao={transparent:"transparent",current:"currentColor",black:"#2e2e2e",white:"#ffffff",brand:{primary:{100:"#e6eef6",200:"#b3cde3",300:"#80acd0",400:"#4d8bbd",500:"#034b88",600:"#023c6d",700:"#022d52",800:"#011e37",900:"#010f1b"},secondary:{100:"#fff8e6",200:"#ffedb3",300:"#ffe180",400:"#ffd64d",500:"#ffcf37",600:"#d4ab2d",700:"#a88722",800:"#7d6318",900:"#52400f"},surface:{100:"#EAEAED",200:"#D4D6DB",300:"#AAADB6",400:"#7F8392",500:"#555A6D",600:"#2A3149",700:"#22273A",800:"#191D2C",900:"#11141D"},neutral:{25:"#FCFCFD",50:"#F8F8F9",100:"#EFEFEF",200:"#E0E0E0",300:"#C8C8C8",400:"#A0A0A0",500:"#848484",600:"#6A6A6A",700:"#4F4F4F",800:"#353535",900:"#1A1A1A"},accent1:{100:"#E8F6EE",200:"#D1EEDD",300:"#A3DDBC",400:"#5DC389",500:"#18A957",600:"#11763D",700:"#0A4423",800:"#052211",900:"#021109"},success:{100:"#E8F6EE",200:"#D1EEDD",300:"#A3DDBC",400:"#5DC389",500:"#18A957",600:"#11763D",700:"#0A4423",800:"#052211",900:"#021109"},warning:{100:"#FFF8EB",200:"#FFF1D7",300:"#FFE4AF",400:"#FFCF74",500:"#FFBB38",600:"#B38327",700:"#664B16",800:"#33250B",900:"#191306"},error:{100:"#FCE8EC",200:"#F9D0D9",300:"#F2A2B3",400:"#E95C7B",500:"#DF1642",600:"#9C0F2E",700:"#59091A",800:"#2D040D",900:"#160207"},info:{100:"#EBF0F9",200:"#C2D3ED",300:"#9AB6E1",400:"#7198D4",500:"#346CC2",600:"#2A569B",700:"#1F4174",800:"#152B4E",900:"#0A1627"}}},aa={body:"'Now', sans-serif",heading:"'Now', sans-serif",mono:"Inter, monospace"},as={tighter:"-0.05em",tight:"-0.025em",normal:"0.0125em",wide:"0.019em",wider:"0.05em",widest:"0.1em"},au={0:"",1:"0px 1px 3px rgba(0, 0, 0, 0.12)",2:"0px 12px 16px rgba(0, 0, 0, 0.08)",3:"0px 20px 24px rgba(0, 0, 0, 0.08)",4:"0px 28px 32px rgba(0, 0, 0, 0.06)",5:"0px 26px 40px rgba(0, 0, 0, 0.12)",xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},al={space:{px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"}};let{definePartsStyle:ac,defineMultiStyleConfig:ad}=(0,X.D)(eP.keys),af=ac({container:{},thumb:{},track:{_checked:{bg:"brand.primary.500"}}}),ah=ad({baseStyle:af}),ap={baseStyle:{maxWidth:"1440px",px:"1rem",py:"1rem"},sizes:{},variants:{},defaultProps:{}},ag=new Set(["success","warning","error"]),am=(e,t)=>{if(!t)return{...e};let r={...e};for(let e of Object.keys(t)){if("name"===e)continue;let n=t[e];if(!n)continue;let i=e.startsWith("c")?e.slice(1):e;r[i]=n}return r},ay=e=>{var t,r;let n=ao.brand,i={};for(let r of null!==(t=null==e?void 0:e.palettes)&&void 0!==t?t:[])(null==r?void 0:r.name)&&(i[r.name]=r);let o=new Set([...Object.keys(n),...Object.keys(i)]),a={};for(let e of o){let t=ag.has(e)?void 0:i[e];a[e]=am(null!==(r=n[e])&&void 0!==r?r:{},t)}return a},av=e=>({...ao,brand:ay(e)}),ab=e=>{if(!e||!/fonts\.googleapis\.com\/css/.test(e))return null;let t=e.match(/[?&]family=([^:&]+)/);if(!t)return null;let r=decodeURIComponent(t[1].replace(/\+/g," ")).trim();return r||null},aw=e=>"'".concat(e,"', sans-serif"),aS=e=>{let t=ab(null==e?void 0:e.fontImportUrl),r=t?aw(t):null;return{...aa,body:(null==e?void 0:e.bodyFont)||r||aa.body,heading:(null==e?void 0:e.headingFont)||r||aa.heading}},ax=e=>{let t=av(e),r=aS(e);return oI({textStyles:{h1:{fontSize:["48px","72px"],fontWeight:"bold",color:"red",lineHeight:"110%",letterSpacing:"-2%"},h2:{fontSize:["32px","48px"],fontWeight:"bold",color:"white"},fontSizes:{xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}}
440,spacing:al,shadows:au,fonts:r,letterSpacings:as,styles:ai,colors:t,components:{Button:oM,Container:ap,Checkbox:oW,Input:oQ,FormLabel:o0,Text:o1,Heading:o5,Radio:o2,MultiSelect:oV,Textarea:o$,Table:oq,Switch:ah,Select:o4,Stepper:an}})};r(72717),ax();var a_=r(16472),ak=r.n(a_),aA=r(20150),aC=r.n(aA),aE=r(80297),aP=r(31898);let aT=new class{constructor(e={}){this.queryCache=e.queryCache||new ow,this.mutationCache=e.mutationCache||new ox,this.logger=e.logger||op._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=o_.j.subscribe(()=>{o_.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ok.N.subscribe(()=>{ok.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[r]=(0,oh.I6)(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){let n=(0,oh._v)(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let r=t.data;return[e,r]})}setQueryData(e,t,r){let n=this.queryCache.find(e),i=null==n?void 0:n.state.data,o=(0,oh.SE)(t,i);if(void 0===o)return;let a=(0,oh._v)(e),s=this.defaultQueryOptions(a);return this.queryCache.build(this,s).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return og.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){let[r]=(0,oh.I6)(e,t),n=this.queryCache;og.V.batch(()=>{n.findAll(r).forEach(e=>{n.remove(e)})})}resetQueries(e,t,r){let[n,i]=(0,oh.I6)(e,t,r),o=this.queryCache,a={type:"active",...n};return og.V.batch(()=>(o.findAll(n).forEach(e=>{e.reset()}),this.refetchQueries(a,i)))}cancelQueries(e,t,r){let[n,i={}]=(0,oh.I6)(e,t,r);void 0===i.revert&&(i.revert=!0);let o=og.V.batch(()=>this.queryCache.findAll(n).map(e=>e.cancel(i)));return Promise.all(o).then(oh.ZT).catch(oh.ZT)}invalidateQueries(e,t,r){let[n,i]=(0,oh.I6)(e,t,r);return og.V.batch(()=>{var e,t;if(this.queryCache.findAll(n).forEach(e=>{e.invalidate()}),"none"===n.refetchType)return Promise.resolve();let r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)})}refetchQueries(e,t,r){let[n,i]=(0,oh.I6)(e,t,r),o=og.V.batch(()=>this.queryCache.findAll(n).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})})),a=Promise.all(o).then(oh.ZT);return null!=i&&i.throwOnError||(a=a.catch(oh.ZT)),a}fetchQuery(e,t,r){let n=(0,oh._v)(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);let o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(oh.ZT).catch(oh.ZT)}fetchInfiniteQuery(e,t,r){let n=(0,oh._v)(e,t,r);return n.behavior={onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,o,a,s;let u;let l=null==(t=e.fetchOptions)?void 0:null==(r=t.meta)?void 0:r.refetchPage,c=null==(n=e.fetchOptions)?void 0:null==(i=n.meta)?void 0:i.fetchMore,d=null==c?void 0:c.pageParam,f=(null==c?void 0:c.direction)==="forward",h=(null==c?void 0:c.direction)==="backward",p=(null==(o=e.state.data)?void 0:o.pages)||[],g=(null==(a=e.state.data)?void 0:a.pageParams)||[],m=g,y=!1,v=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?y=!0:null==(r=e.signal)||r.addEventListener("abort",()=>{y=!0}),e.signal}})},b=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),w=(e,t,r,n)=>(m=n?[t,...m]:[...m,t],n?[r,...e]:[...e,r]),S=(t,r,n,i)=>{if(y)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};v(o);let a=b(o),s=Promise.resolve(a).then(e=>w(t,n,e,i));return s};if(p.length){if(f){let t=void 0!==d,r=t?d:oA(e.options,p);u=S(p,t,r)}else if(h){let t=void 0!==d,r=t?d:null==(s=e.options).getPreviousPageParam?void 0:s.getPreviousPageParam(p[0],p);u=S(p,t,r,!0)}else{m=[];let t=void 0===e.options.getNextPageParam,r=!l||!p[0]||l(p[0],0,p);u=r?S([],t,g[0]):Promise.resolve(w([],g[0],p[0]));for(let r=1;r<p.length;r++)u=u.then(n=>{let i=!l||!p[r]||l(p[r],r,p);if(i){let i=t?g[r]:oA(e.options,n);return S(n,t,i)}return Promise.resolve(w(n,g[r],p[r]))})}}else u=S([]);let x=u.then(e=>({pages:e,pageParams:m}));return x}}},this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(oh.ZT).catch(oh.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let r=this.queryDefaults.find(t=>(0,oh.yF)(e)===(0,oh.yF)(t.queryKey));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>(0,oh.to)(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let r=this.mutationDefaults.find(t=>(0,oh.yF)(e)===(0,oh.yF)(t.mutationKey));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>(0,oh.to)(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=(0,oh.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchInterval:!1}}});function aO(e){let{Component:t,pageProps:r,siteTheme:n}=e,i=null==r?void 0:r.siteTheme,[o]=(0,V.useState)(null!=i?i:n),a=(0,V.useMemo)(()=>ax(o),[o]),s=null==o?void 0:o.fontImportUrl,u=a.colors.brand.primary["500"];return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(aC(),{children:[(0,C.jsx)("meta",{name:"theme-color",content:u}),(0,C.jsx)("meta",{name:"msapplication-TileColor",content:u}),s?(0,C.jsx)("link",{rel:"stylesheet",href:s}):null]}),(0,C.jsx)(of,{theme:a,children:(0,C.jsx)(aE.Ho,{children:(0,C.jsx)(oC.aH,{client:aT,children:(0,C.jsx)(t,{...r})})})})]})}aP.d.configure({Auth:{region:T.region,userPoolId:T.userPoolId,userPoolWebClientId:T.userPoolWebClientId,oauth:{domain:"https://auth.api.bme.devz.hu",scope:["email","openid"],redirectSignIn:"http://localhost:3000/",redirectSignOut:"http://localhost:3000/",responseType:"code"}}}),aO.getInitialProps=async e=>{let t=await ak().getInitialProps(e);return t};var aI=(0,P.Z)(aO,{...E,isLoader:!0,skipInitialProps:!0,loadLocaleFrom:(e,t)=>r(30242)("./".concat(e,"/").concat(t)).then(e=>e.default)})},11869:function(e,t,r){"use strict";r.d(t,{C7:function(){return i},L4:function(){return o},Z6:function(){return n}});let n={register:"/regisztracio",registerSuccess:"/regisztracio/siker",login:"/bejelentkezes",profileSetup:"/profil-beallitas",resetPassword:"/elfelejtett-jelszo",newPassword:"/u
440j-jelszo",profile:"/profiladatok",home:"/",exhibitors:"/kiallitok",forExhibitors:"/kiallitoknak",forExhibitorsExtras:"/kiallitoknak/extrak",jobOffers:"/allasajanlatok",preparationDays:"/felkeszito-napok",press:"/p/rolunk",contactUs:"/kapcsolat",jobApplications:"/jelentkezesek",gdpr:"/p/adatvedelmi-tajekoztato",cms_login:"/kiallito",cms_register:"/kiallito/regisztracio",cms_register_success:"/kiallito/regisztracio/siker",cms_reset_password:"/kiallito/elfelejtett-jelszo",cms_new_password:"/kiallito/uj-jelszo",cms_register_done:"/kiallito/regisztracio/koszonjuk",cms_online_extras:"/kiallito/online-extrak",cms_jobs:"/kiallito/fooldal/allasok",cms_jobs_details:"/kiallito/fooldal/allasok/reszletek",cms_jobs_applicants:"/kiallito/fooldal/allasok/jelentkezok",cms_home:"/kiallito/fooldal",cms_profile:"/kiallito/fooldal/profiladatok",cms_reservations:"/kiallito/fooldal/foglalasok",cms_page_settings:"/kiallito/fooldal/aloldal",cms_data_register:"/kiallito/fooldal/adatok-kitoltese",cms_booth_reservation:"/kiallito/stand",cms_booth_reservation_preview:"/kiallito/stand/osszegzes",cms_booth_reservation_summary:"/kiallito/stand/reszletek",cms_extras:"/kiallito/extrak",cms_promotional_resources:"/kiallito/promocios-anyagok"},i="https://allasborze.s3.eu-central-1.amazonaws.com",o="https://d3eoo8t1sayskz.cloudfront.net"},80297:function(e,t,r){"use strict";r.d(t,{GD:function(){return i},Ho:function(){return p},aC:function(){return g}});var n,i,o=r(36734),a=r(51776),s=r(74831),u=r(97955),l=r(33906),c=r(14603),d=r(28757),f=r(35994).lW;(n=i||(i={})).ROLE_PARTNER="ROLE_PARTNER",n.ROLE_VISITOR="ROLE_VISITOR",n.ROLE_ADMIN="ROLE_ADMIN";let h=(0,a.createContext)({}),p=e=>{let{children:t}=e,{t:r}=(0,d.Z)("errors/apiErrors"),[n,p]=(0,a.useState)(!1),[g,m]=(0,a.useState)(!1),[y,v]=(0,a.useState)(),[b,w]=(0,a.useState)([]),S=(0,l.useRouter)(),x=(0,c.p)(),_=(0,a.useCallback)(()=>{p(!1),w([]),v(void 0),sessionStorage.removeItem("X-Partner-Id")},[]),k=(0,a.useCallback)((e,t)=>{p(!0),w(t)},[]),A=(0,a.useCallback)((e,t)=>{if(e.includes(i.ROLE_ADMIN)){if(t)sessionStorage.setItem("X-Partner-Id",t),v(t);else{let e=sessionStorage.getItem("X-Partner-Id");e&&v(e)}}},[]),C=async(e,t,r)=>{let n=await u.g.signIn(e,t);if(null==n||!n.signInUserSession)return _(),null;{var i;let e=n.signInUserSession.accessToken.jwtToken,t=null!==(i=n.signInUserSession.accessToken.payload["cognito:groups"])&&void 0!==i?i:[];return k(e,t),A(t,r),console.log("tkn :>> ",n),t}},E=async(e,t)=>{let r=await u.g.signUp({username:e,password:t});return!!r},P=async e=>await u.g.resendSignUp(e),T=async(e,t)=>await u.g.confirmSignUp(e,t),O=async(e,t)=>{let r=await u.g.currentAuthenticatedUser(),n=await u.g.changePassword(r,e,t);return n},I=async e=>{try{let t=await u.g.forgotPassword(e);return t}catch(t){await u.g.resendSignUp(e)}},R=async(e,t,r)=>await u.g.forgotPasswordSubmit(e,t,r),M=async()=>{await u.g.signOut(),_()},D=(0,a.useCallback)(async()=>{let e=null;try{let t=await u.g.currentSession();e=t.getAccessToken().getJwtToken()}catch(e){return n&&p(!1),null}return e},[n]);return(0,a.useEffect)(()=>{let e=async()=>{try{var e;let t=await D();if(!t){_(),m(!0);return}let r=null!==(e=JSON.parse(f.from(t.split(".")[1],"base64").toString("utf-8"))["cognito:groups"])&&void 0!==e?e:[];k(t,r),A(r,S.query.IMPERSONATE_PARTNER_ID),m(!0)}catch(e){console.log(e)}};e()},[k,_,D,A,S.query.IMPERSONATE_PARTNER_ID]),(0,a.useEffect)(()=>{g||(s.Wf.interceptors.request.use(async e=>{var t;let r=!(null===(t=e.url)||void 0===t?void 0:t.startsWith("/public/")),n=r?await D():void 0;e&&e.headers&&n&&(e.headers.Authorization="Bearer ".concat(n),e.headers.Accept="application/json");let i=sessionStorage.getItem("X-Partner-Id");return i&&(e.headers["X-Partner-ID"]=i),e}),s.Wf.interceptors.response.use(e=>e,e=>{var t,n,i,o;return(null===(t=e.response)||void 0===t?void 0:null===(n=t.data)||void 0===n?void 0:null===(i=n.errorModel)||void 0===i?void 0:i.errorCode)&&x({title:r("ERROR"),description:r(null===(o=e.response)||void 0===o?void 0:o.data.errorModel.errorCode)||"Ismeretlen hiba",status:"error",duration:5e3,isClosable:!0}),Promise.reject(e)}))},[D,g,r,x]),(0,o.jsx)(h.Provider,{value:{isAuthenticated:n,isInitialized:g,xPartnerId:y,register:E,login:C,logout:M,resendEmail:P,confirmSignUp:T,resetPassword:I,changePassword:O,resetPasswordSubmit:R,roles:b},children:t})},g=()=>(0,a.useContext)(h)},74831:function(e,t,r){"use strict";r.d(t,{Wf:function(){return i},zq:function(){return o}}),r(11869);var n=r(90044);let i=n.Z.create({baseURL:"/api-proxy"}),o=e=>i(e).then(e=>{let{data:t}=e;return t})},72717:function(e,t,r){"use strict";r.d(t,{PR:function(){return o}}),r(11869);var n=r(90044);let i=n.Z.create({baseURL:"/cms-proxy"}),o=e=>i(e).then(e=>{let{data:t}=e;return t})},58514:function(){},93814:function(){},22876:function(){},56249:function(){},35408: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];
440for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}r.d(t,{Z:function(){return n}})},15774:function(e,t,r){"use strict";r.d(t,{uZ:function(){return u},Hm:function(){return c},TR:function(){return h},XO:function(){return p},oX:function(){return l},uL:function(){return d}});var n=r(81769),i=r(36734);function o(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var a=r(15891),s=r(76350),[u,l]=(0,a.k)({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[c,d]=(0,a.k)({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),f={info:{icon:function(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:o,colorScheme:"orange"},success:{icon:function(e){return(0,i.jsx)(n.J,{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:o,colorScheme:"red"},loading:{icon:s.$,colorScheme:"blue"}};function h(e){return f[e].colorScheme}function p(e){return f[e].icon}},11685:function(e,t,r){"use strict";r.d(t,{b:function(){return c}});var n=r(15774),i=r(40629),o=r(11876),a=r(47471),s=r(47208),u=r(90977),l=r(36734),c=(0,o.G)(function(e,t){var r;let{status:o="info",addRole:c=!0,...d}=(0,a.Lr)(e),f=null!=(r=e.colorScheme)?r:(0,n.TR)(o),h=(0,s.jC)("Alert",{...e,colorScheme:f}),p={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...h.container};return(0,l.jsx)(n.uZ,{value:{status:o},children:(0,l.jsx)(n.Hm,{value:h,children:(0,l.jsx)(u.m.div,{"data-status":o,role:c?"alert":void 0,ref:t,...d,className:(0,i.cx)("chakra-alert",e.className),__css:p})})})});c.displayName="Alert"},94353:function(e,t,r){"use strict";r.d(t,{z:function(){return s}});var n=r(15774),i=r(40629),o=r(90977),a=r(36734);function s(e){let{status:t}=(0,n.oX)(),r=(0,n.XO)(t),s=(0,n.uL)(),u="loading"===t?s.spinner:s.icon;return(0,a.jsx)(o.m.span,{display:"inherit","data-status":t,...e,className:(0,i.cx)("chakra-alert__icon",e.className),__css:u,children:e.children||(0,a.jsx)(r,{h:"100%",w:"100%"})})}s.displayName="AlertIcon"},48327:function(e,t,r){"use strict";r.d(t,{P:function(){return c}});var n=r(81769),i=r(11876),o=r(47208),a=r(47471),s=r(90977),u=r(36734);function l(e){return(0,u.jsx)(n.J,{focusable:"false","aria-hidden":!0,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
44011.823a.25.25,0,0,1,0,.354Z"})})}var c=(0,i.G)(function(e,t){let r=(0,o.mq)("CloseButton",e),{children:n,isDisabled:i,__css:c,...d}=(0,a.Lr)(e);return(0,u.jsx)(s.m.button,{type:"button","aria-label":"Close",ref:t,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...r,...c},...d,children:n||(0,u.jsx)(l,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},52889:function(e,t,r){"use strict";r.d(t,{If:function(){return o},kc:function(){return i}});var n=r(51776),i=(0,n.createContext)({});function o(){let e=(0,n.useContext)(i);if(void 0===e)throw Error("useColorMode must be used within a ColorModeProvider");return e}i.displayName="ColorModeContext"},81769:function(e,t,r){"use strict";r.d(t,{J:function(){return l}});var n=r(11876),i=r(47208),o=r(90977),a=r(40629),s=r(36734),u={path:(0,s.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,s.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,s.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},l=(0,n.G)((e,t)=>{let{as:r,viewBox:n,color:l="currentColor",focusable:c=!1,children:d,className:f,__css:h,...p}=e,g=(0,a.cx)("chakra-icon",f),m=(0,i.mq)("Icon",e),y={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:l,...h,...m},v={ref:t,focusable:c,className:g,__css:y},b=null!=n?n:u.viewBox;if(r&&"string"!=typeof r)return(0,s.jsx)(o.m.svg,{as:r,...v,...p});let w=null!=d?d:u.path;return(0,s.jsx)(o.m.svg,{verticalAlign:"middle",viewBox:b,...v,...p,children:w})});l.displayName="Icon"},82803:function(e,t,r){"use strict";r.d(t,{L:function(){return a},h:function(){return s}});var n=r(15891),i=r(36734),[o,a]=(0,n.k)({strict:!1,name:"PortalManagerContext"});function s(e){let{children:t,zIndex:r}=e;return(0,i.jsx)(o,{value:{zIndex:r},children:t})}s.displayName="PortalManager"},75855:function(e,t,r){"use strict";r.d(t,{h:function(){return g}});var n=r(82803),i=r(64857),o=r(15891),a=r(70257),s=r(51776),u=r(36734),[l,c]=(0,o.k)({strict:!1,name:"PortalContext"}),d="chakra-portal",f=e=>(0,u.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),h=e=>{let{appendToParentPortal:t,children:r}
440=e,[o,h]=(0,s.useState)(null),p=(0,s.useRef)(null),[,g]=(0,s.useState)({});(0,s.useEffect)(()=>g({}),[]);let m=c(),y=(0,n.L)();(0,i.G)(()=>{if(!o)return;let e=o.ownerDocument,r=t&&null!=m?m:e.body;if(!r)return;p.current=e.createElement("div"),p.current.className=d,r.appendChild(p.current),g({});let n=p.current;return()=>{r.contains(n)&&r.removeChild(n)}},[o]);let v=(null==y?void 0:y.zIndex)?(0,u.jsx)(f,{zIndex:null==y?void 0:y.zIndex,children:r}):r;return p.current?(0,a.createPortal)((0,u.jsx)(l,{value:p.current,children:v}),p.current):(0,u.jsx)("span",{ref:e=>{e&&h(e)}})},p=e=>{let{children:t,containerRef:r,appendToParentPortal:n}=e,o=r.current,c=null!=o?o:"undefined"!=typeof window?document.body:void 0,f=(0,s.useMemo)(()=>{let e=null==o?void 0:o.ownerDocument.createElement("div");return e&&(e.className=d),e},[o]),[,h]=(0,s.useState)({});return((0,i.G)(()=>h({}),[]),(0,i.G)(()=>{if(f&&c)return c.appendChild(f),()=>{c.removeChild(f)}},[f,c]),c&&f)?(0,a.createPortal)((0,u.jsx)(l,{value:n?f:null,children:t}),f):null};function g(e){let t={appendToParentPortal:!0,...e},{containerRef:r,...n}=t;return r?(0,u.jsx)(p,{containerRef:r,...n}):(0,u.jsx)(h,{...n})}g.className=d,g.selector=".chakra-portal",g.displayName="Portal"},15891:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(51776);function i(e={}){let{name:t,strict:r=!0,hookName:i="useContext",providerName:o="Provider",errorMessage:a,defaultValue:s}=e,u=(0,n.createContext)(s);return u.displayName=t,[u.Provider,function e(){var t;let s=(0,n.useContext)(u);if(!s&&r){let r=Error(null!=a?a:`${i} returned \`undefined\`. Seems you forgot to wrap component within ${o}`);throw r.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,r,e),r}return s},u]}},58461:function(e,t,r){"use strict";r.d(t,{O:function(){return s},u:function(){return u}});var n=r(64857),i=r(51776),o=r(36734),a=(0,i.createContext)({getDocument:()=>document,getWindow:()=>window});function s({defer:e}={}){let[,t]=(0,i.useReducer)(e=>e+1,0);return(0,n.G)(()=>{e&&t()},[e]),(0,i.useContext)(a)}function u(e){let{children:t,environment:r,disabled:n}=e,s=(0,i.useRef)(null),u=(0,i.useMemo)(()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=s.current)?void 0:e.ownerDocument.defaultView)?t:window}},[r]);return(0,o.jsxs)(a.Provider,{value:u,children:[t,(!n||!r)&&(0,o.jsx)("span",{id:"__chakra_env",hidden:!0,ref:s})]})}a.displayName="EnvironmentContext",u.displayName="EnvironmentProvider"},8173:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var n=r(51776);function i(e,t=[]){let r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current=e}),(0,n.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},t)}},64857:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(51776),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},1706:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(51776);function i(e,t){let r=(0,n.useRef)(!1),i=(0,n.useRef)(!1);(0,n.useEffect)(()=>{let t=r.current,n=t&&i.current;if(n)return e();i.current=!0},t),(0,n.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}},58261:function(e,t,r){"use strict";r.d(t,{k:function(){return i}});var n=r(51776);function i(e={}){let{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=e,o=(0,n.createContext)(void 0);return o.displayName=i,[o.Provider,function e(){var i;let a=(0,n.useContext)(o);if(!a&&t){let t=Error(r);throw t.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,t,e),t}return a},o]}},40629:function(e,t,r){"use strict";r.d(t,{Kn:function(){return i},PB:function(){return u},PP:function(){return d},Pu:function(){return a},Qm:function(){return l},ZK:function(){return o},cx:function(){return n},v0:function(){return c}});var n=(...e)=>e.filter(Boolean).join(" ");function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}var o=e=>{let{condition:t,message:r}=e};function a(e,...t){return s(e)?e(...t):e}var s=e=>"function"==typeof e,u=e=>e?"":void 0,l=e=>!!e||void 0;function c(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}
440function d(...e){return function(t){e.forEach(e=>{null==e||e(t)})}}},76350:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(13327),i=r(11876),o=r(47208),a=r(47471),s=r(90977),u=r(40629),l=r(36734),c=(0,n.F4)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),d=(0,i.G)((e,t)=>{let r=(0,o.mq)("Spinner",e),{label:n="Loading...",thickness:i="2px",speed:d="0.45s",emptyColor:f="transparent",className:h,...p}=(0,a.Lr)(e),g=(0,u.cx)("chakra-spinner",h),m={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:i,borderBottomColor:f,borderLeftColor:f,animation:`${c} ${d} linear infinite`,...r};return(0,l.jsx)(s.m.div,{ref:t,__css:m,className:g,...p,children:n&&(0,l.jsx)(s.m.span,{srOnly:!0,children:n})})});d.displayName="Spinner"},47471:function(e,t,r){"use strict";r.d(t,{D:function(){return eI},K1:function(){return eM},Lr:function(){return eD},Ud:function(){return eR},ZR:function(){return ek},_6:function(){return er},c0:function(){return eb},cC:function(){return ex},fj:function(){return eO},gJ:function(){return et},iv:function(){return eP},k0:function(){return eT},oE:function(){return eS}});var n=r(40629),i=r(89924),o=e=>/!(important)?$/.test(e),a=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e,s=(e,t)=>r=>{let i=String(t),s=o(i),u=a(i),l=e?`${e}.${u}`:u,c=(0,n.Kn)(r.__cssMap)&&l in r.__cssMap?r.__cssMap[l].varRef:t;return c=a(c),s?`${c} !important`:c};function u(e){let{scale:t,transform:r,compose:n}=e,i=(e,i)=>{var o;let a=s(t,e)(i),u=null!=(o=null==r?void 0:r(a,i))?o:a;return n&&(u=n(u,i)),u};return i}var l=(...e)=>t=>e.reduce((e,t)=>t(e),t);function c(e,t){return r=>{let n={property:r,scale:e};return n.transform=u({scale:e,transform:t}),n}}var d=({rtl:e,ltr:t})=>r=>"rtl"===r.direction?e:t,f=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],h={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:"var(--chakra-blur) var(--chakra-brightness) var(--chakra-contrast) var(--chakra-grayscale) var(--chakra-hue-rotate) var(--chakra-invert) var(--chakra-saturate) var(--chakra-sepia) var(--chakra-drop-shadow)"},p={backdropFilter:"var(--chakra-backdrop-blur) var(--chakra-backdrop-brightness) var(--chakra-backdrop-contrast) var(--chakra-backdrop-grayscale) var(--chakra-backdrop-hue-rotate) var(--chakra-backdrop-invert) var(--chakra-backdrop-opacity) var(--chakra-backdrop-saturate) var(--chakra-backdrop-sepia)","--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},g={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},m={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},y=new Set(Object.values(m)),v=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),b=e=>e.trim(),w=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),S=e=>{let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}},x=e=>t=>`${e}(${t})`,_={filter:e=>"auto"!==e?e:h,backdropFilter:e=>"auto"!==e?e:p,ring:e=>({"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":_.px(e),boxShadow:"var(--chakra-ring-offset-shadow), var(--chakra-ring-shadow), var(--chakra-shadow, 0 0 #0000)"}),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...f].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...f].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;let{unitless:t}=S(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:`${100*e}%`,float:(e,t)=>
440"rtl"===t.direction?({left:"right",right:"left"})[e]:e,degree(e){if(/^var\(--.+\)$/.test(e)||null==e)return e;let t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>(function(e,t){if(null==e||v.has(e))return e;let r=w(e)||v.has(e);if(!r)return`url('${e}')`;let n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),i=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!i||!o)return e;let a=i.includes("-gradient")?i:`${i}-gradient`,[s,...u]=o.split(",").map(b).filter(Boolean);if((null==u?void 0:u.length)===0)return e;let l=s in m?m[s]:s;u.unshift(l);let c=u.map(e=>{if(y.has(e))return e;let r=e.indexOf(" "),[n,i]=-1!==r?[e.substr(0,r),e.substr(r+1)]:[e],o=w(i)?i:i&&i.split(" "),a=`colors.${n}`,s=a in t.__cssMap?t.__cssMap[a].varRef:n;return o?[s,...Array.isArray(o)?o:[o]].join(" "):s});return`${a}(${c.join(", ")})`})(e,null!=t?t:{}),blur:x("blur"),opacity:x("opacity"),brightness:x("brightness"),contrast:x("contrast"),dropShadow:x("drop-shadow"),grayscale:x("grayscale"),hueRotate:x("hue-rotate"),invert:x("invert"),saturate:x("saturate"),sepia:x("sepia"),bgImage(e){if(null==e)return e;let t=w(e)||v.has(e);return t?e:`url(${e})`},outline(e){let t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;let{space:r,divide:n}=null!=(t=g[e])?t:{},i={flexDirection:e};return r&&(i[r]=1),n&&(i[n]=1),i}},k={borderWidths:c("borderWidths"),borderStyles:c("borderStyles"),colors:c("colors"),borders:c("borders"),gradients:c("gradients",_.gradient),radii:c("radii",_.px),space:c("space",l(_.vh,_.px)),spaceT:c("space",l(_.vh,_.px)),degreeT:e=>({property:e,transform:_.degree}),prop:(e,t,r)=>({property:e,scale:t,...t&&{transform:u({scale:t,transform:r})}}),propT:(e,t)=>({property:e,transform:t}),sizes:c("sizes",l(_.vh,_.px)),sizesT:c("sizes",l(_.vh,_.fraction)),shadows:c("shadows"),logical:function(e){let{property:t,scale:r,transform:n}=e;return{scale:r,property:d(t),transform:r?u({scale:r,compose:n}):n}},blur:c("blur",_.blur)},A={background:k.colors("background"),backgroundColor:k.colors("backgroundColor"),backgroundImage:k.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:_.bgClip},bgSize:k.prop("backgroundSize"),bgPosition:k.prop("backgroundPosition"),bg:k.colors("background"),bgColor:k.colors("backgroundColor"),bgPos:k.prop("backgroundPosition"),bgRepeat:k.prop("backgroundRepeat"),bgAttachment:k.prop("backgroundAttachment"),bgGradient:k.gradients("backgroundImage"),bgClip:{transform:_.bgClip}};Object.assign(A,{bgImage:A.backgroundImage,bgImg:A.backgroundImage});var C={border:k.borders("border"),borderWidth:k.borderWidths("borderWidth"),borderStyle:k.borderStyles("borderStyle"),borderColor:k.colors("borderColor"),borderRadius:k.radii("borderRadius"),borderTop:k.borders("borderTop"),borderBlockStart:k.borders("borderBlockStart"),borderTopLeftRadius:k.radii("borderTopLeftRadius"),borderStartStartRadius:k.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:k.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:k.radii("borderTopRightRadius"),borderStartEndRadius:k.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:k.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:k.borders("borderRight"),borderInlineEnd:k.borders("borderInlineEnd"),borderBottom:k.borders("borderBottom"),borderBlockEnd:k.borders("borderBlockEnd"),borderBottomLeftRadius:k.radii("borderBottomLeftRadius"),borderBottomRightRadius:k.radii("borderBottomRightRadius"),borderLeft:k.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:k.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:k.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:k.borders(["borderLeft","borderRight"]),borderInline:k.borders("borderInline"),borderY:k.borders(["borderTop","borderBottom"]),borderBlock:k.borders("borderBlock"),borderTopWidth:k.borderWidths("borderTopWidth"),borderBlockStartWidth:k.borderWidths("borderBlockStartWidth"),borderTopColor:k.colors("borderTopColor"),borderBlockStartColor:k.colors("borderBlockStartColor"),borderTopStyle:k.borderStyles("borderTopStyle"),borderBlockStartStyle:k.borderStyles("borderBlockStartStyle"),borderBottomWidth:k.borderWidths("borderBottomWidth"),borderBlockEndWidth:k.borderWidths("borderBlockEndWidth"),borderBottomColor:k.colors("borderBottomColor"),borderBlockEndColor:k.colors("borderBlockEndColor"),borderBottomStyle:k.borderStyles("borderBottomStyle"),borderBlockEndStyle:k.borderStyles("borderBlockEndStyle"),borderLeftWidth:k.borderWidths("borderLeftWidth"),borderInlineStartWidth:k.borderWidths("borderInlineStartWidth"),borderLeftColor:k.colors("borderLeftColor"),borderInlineStartColor:k.colors("borderInlineStartColor"),borderLeftStyle:k.borderStyles("borderLeftStyle"),borderInlineStartStyle:k.borderStyles("borderInlineStartStyle"),borderRightWidth:k.borderWidths("borderRightWidth"),borderInlineEndWidth:k.borderWidths("borderInlineEndWidth"),borderRightColor:k.colors("borderRightColor"),borderInlineEndColor:k.colors("borderInlineEndColor"),borderRightStyle:k.borderStyles("borderRightStyle"),borderInlineEndStyle:k.borderStyles("borderInlineEndStyle"),borderTopRadius:k.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:k.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:k.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:k.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(C,{rounded:C.borderRadius,roundedTop:C.borderTopRadius,roundedTopLeft:C.borderTopLeftRadius,roundedTopRight:C.borderTopRightRadius,roundedTopStart:C.borderStartStartRadius,roundedTopEnd:C.borderStartEndRadius,roundedBottom:C.borderBottomRadius,roundedBottomLeft:C.borderBottomLeftRadius,roundedBottomRight:C.borderBottomRightRadius,roundedBottomStart:C.borderEndStartRadius,roundedBottomEnd:C.borderEndEndRadius,roundedLeft:C.borderLeftRadius,roundedRight:C.borderRightRadius,roundedStart:C.borderInlineStartRadius,roundedEnd:C.borderInlineEndRadius,borderStart:C.borderInlineStart,borderEnd:C.borderInlineEnd,borderTopStartRadius:C.borderStartStartRadius,borderTopEndRadius:C.borderStartEndRadius,borderBottomStartRadius:C.borderEndStartRadius,borderBottomEndRadius:C.borderEndEndRadius,borderStartRadius:C.borderInlineStartRadius,borderEndRadius:C.borderInlineEndRadius,borderStartWidth:C.borderInlineStartWidth,borderEndWidth:C.borderInlineEndWidth,borderStartColor:C.borderInlineStartColor,borderEndColor:C.borderInlineEndColor,borderStartStyle:C.borderInlineStartStyle,borderEndStyle:C.borderInlineEndStyle});var E={color:k.colors("color"),textColor:k.colors("color"),fill:k.colors("fill"),stroke:k.colors("stroke")}
440,P={boxShadow:k.shadows("boxShadow"),mixBlendMode:!0,blendMode:k.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:k.prop("backgroundBlendMode"),opacity:!0};Object.assign(P,{shadow:P.boxShadow});var T={filter:{transform:_.filter},blur:k.blur("--chakra-blur"),brightness:k.propT("--chakra-brightness",_.brightness),contrast:k.propT("--chakra-contrast",_.contrast),hueRotate:k.degreeT("--chakra-hue-rotate"),invert:k.propT("--chakra-invert",_.invert),saturate:k.propT("--chakra-saturate",_.saturate),dropShadow:k.propT("--chakra-drop-shadow",_.dropShadow),backdropFilter:{transform:_.backdropFilter},backdropBlur:k.blur("--chakra-backdrop-blur"),backdropBrightness:k.propT("--chakra-backdrop-brightness",_.brightness),backdropContrast:k.propT("--chakra-backdrop-contrast",_.contrast),backdropHueRotate:k.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:k.propT("--chakra-backdrop-invert",_.invert),backdropSaturate:k.propT("--chakra-backdrop-saturate",_.saturate)},O={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:_.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:k.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:k.space("gap"),rowGap:k.space("rowGap"),columnGap:k.space("columnGap")};Object.assign(O,{flexDir:O.flexDirection});var I={gridGap:k.space("gridGap"),gridColumnGap:k.space("gridColumnGap"),gridRowGap:k.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},R={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:_.outline},outlineOffset:!0,outlineColor:k.colors("outlineColor")},M={width:k.sizesT("width"),inlineSize:k.sizesT("inlineSize"),height:k.sizes("height"),blockSize:k.sizes("blockSize"),boxSize:k.sizes(["width","height"]),minWidth:k.sizes("minWidth"),minInlineSize:k.sizes("minInlineSize"),minHeight:k.sizes("minHeight"),minBlockSize:k.sizes("minBlockSize"),maxWidth:k.sizes("maxWidth"),maxInlineSize:k.sizes("maxInlineSize"),maxHeight:k.sizes("maxHeight"),maxBlockSize:k.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n.minW)?i:e,a=`@media screen and (min-width: ${o})`;return{[a]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var r,n,i;let o=null!=(i=null==(n=null==(r=t.__breakpoints)?void 0:r.get(e))?void 0:n._minW)?i:e,a=`@media screen and (max-width: ${o})`;return{[a]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:k.propT("float",_.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(M,{w:M.width,h:M.height,minW:M.minWidth,maxW:M.maxWidth,minH:M.minHeight,maxH:M.maxHeight,overscroll:M.overscrollBehavior,overscrollX:M.overscrollBehaviorX,overscrollY:M.overscrollBehaviorY});var D={listStyleType:!0,listStylePosition:!0,listStylePos:k.prop("listStylePosition"),listStyleImage:!0,listStyleImg:k.prop("listStyleImage")},j=(e=>{let t=new WeakMap,r=(r,n,i,o)=>{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s};return r})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e}),F={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},U={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},B=(e,t,r)=>{let n={},i=j(e,t,{});for(let e in i){let t=e in r&&null!=r[e];t||(n[e]=i[e])}return n},L={position:!0,pos:k.prop("position"),zIndex:k.prop("zIndex","zIndices"),inset:k.spaceT("inset"),insetX:k.spaceT(["left","right"]),insetInline:k.spaceT("insetInline"),insetY:k.spaceT(["top","bottom"]),insetBlock:k.spaceT("insetBlock"),top:k.spaceT("top"),insetBlockStart:k.spaceT("insetBlockStart"),bottom:k.spaceT("bottom"),insetBlockEnd:k.spaceT("insetBlockEnd"),left:k.spaceT("left"),insetInlineStart:k.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:k.spaceT("right"),insetInlineEnd:k.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(L,{insetStart:L.insetInlineStart,insetEnd:L.insetInlineEnd});var z={ring:{transform:_.ring}
440,ringColor:k.colors("--chakra-ring-color"),ringOffset:k.prop("--chakra-ring-offset-width"),ringOffsetColor:k.colors("--chakra-ring-offset-color"),ringInset:k.prop("--chakra-ring-inset")},N={margin:k.spaceT("margin"),marginTop:k.spaceT("marginTop"),marginBlockStart:k.spaceT("marginBlockStart"),marginRight:k.spaceT("marginRight"),marginInlineEnd:k.spaceT("marginInlineEnd"),marginBottom:k.spaceT("marginBottom"),marginBlockEnd:k.spaceT("marginBlockEnd"),marginLeft:k.spaceT("marginLeft"),marginInlineStart:k.spaceT("marginInlineStart"),marginX:k.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:k.spaceT("marginInline"),marginY:k.spaceT(["marginTop","marginBottom"]),marginBlock:k.spaceT("marginBlock"),padding:k.space("padding"),paddingTop:k.space("paddingTop"),paddingBlockStart:k.space("paddingBlockStart"),paddingRight:k.space("paddingRight"),paddingBottom:k.space("paddingBottom"),paddingBlockEnd:k.space("paddingBlockEnd"),paddingLeft:k.space("paddingLeft"),paddingInlineStart:k.space("paddingInlineStart"),paddingInlineEnd:k.space("paddingInlineEnd"),paddingX:k.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:k.space("paddingInline"),paddingY:k.space(["paddingTop","paddingBottom"]),paddingBlock:k.space("paddingBlock")};Object.assign(N,{m:N.margin,mt:N.marginTop,mr:N.marginRight,me:N.marginInlineEnd,marginEnd:N.marginInlineEnd,mb:N.marginBottom,ml:N.marginLeft,ms:N.marginInlineStart,marginStart:N.marginInlineStart,mx:N.marginX,my:N.marginY,p:N.padding,pt:N.paddingTop,py:N.paddingY,px:N.paddingX,pb:N.paddingBottom,pl:N.paddingLeft,ps:N.paddingInlineStart,paddingStart:N.paddingInlineStart,pr:N.paddingRight,pe:N.paddingInlineEnd,paddingEnd:N.paddingInlineEnd});var V={textDecorationColor:k.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:k.shadows("textShadow")},$={clipPath:!0,transform:k.propT("transform",_.transform),transformOrigin:!0,translateX:k.spaceT("--chakra-translate-x"),translateY:k.spaceT("--chakra-translate-y"),skewX:k.degreeT("--chakra-skew-x"),skewY:k.degreeT("--chakra-skew-y"),scaleX:k.prop("--chakra-scale-x"),scaleY:k.prop("--chakra-scale-y"),scale:k.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:k.degreeT("--chakra-rotate")},W={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:k.prop("transitionDuration","transition.duration"),transitionProperty:k.prop("transitionProperty","transition.property"),transitionTimingFunction:k.prop("transitionTimingFunction","transition.easing")},q={fontFamily:k.prop("fontFamily","fonts"),fontSize:k.prop("fontSize","fontSizes",_.px),fontWeight:k.prop("fontWeight","fontWeights"),lineHeight:k.prop("lineHeight","lineHeights"),letterSpacing:k.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},H={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:k.spaceT("scrollMargin"),scrollMarginTop:k.spaceT("scrollMarginTop"),scrollMarginBottom:k.spaceT("scrollMarginBottom"),scrollMarginLeft:k.spaceT("scrollMarginLeft"),scrollMarginRight:k.spaceT("scrollMarginRight"),scrollMarginX:k.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:k.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:k.spaceT("scrollPadding"),scrollPaddingTop:k.spaceT("scrollPaddingTop"),scrollPaddingBottom:k.spaceT("scrollPaddingBottom"),scrollPaddingLeft:k.spaceT("scrollPaddingLeft"),scrollPaddingRight:k.spaceT("scrollPaddingRight"),scrollPaddingX:k.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:k.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function G(e){return(0,n.Kn)(e)&&e.reference?e.reference:String(e)}var K=(e,...t)=>t.map(G).join(` ${e} `).replace(/calc/g,""),J=(...e)=>`calc(${K("+",...e)})`,Y=(...e)=>`calc(${K("-",...e)})`,Z=(...e)=>`calc(${K("*",...e)})`,X=(...e)=>`calc(${K("/",...e)})`,Q=e=>{let t=G(e);return null==t||Number.isNaN(parseFloat(t))?Z(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},ee=Object.assign(e=>({add:(...t)=>ee(J(e,...t)),subtract:(...t)=>ee(Y(e,...t)),multiply:(...t)=>ee(Z(e,...t)),divide:(...t)=>ee(X(e,...t)),negate:()=>ee(Q(e)),toString:()=>e.toString()}),{add:J,subtract:Y,multiply:Z,divide:X,negate:Q});function et(e,t,r){let n=function(e,t=""){return function(e){let t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return(function(e){if(e.includes("\\."))return e;let t=!Number.isInteger(parseFloat(e.toString()));return t?e.replace(".","\\."):e})(t).replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}
440(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}(e,r);return{variable:n,reference:`var(${n}${t?`, ${t}`:""})`}}function er(e,t){let r={};for(let n of t){if(Array.isArray(n)){let[t,i]=n;r[t]=et(`${e}-${t}`,i);continue}r[n]=et(`${e}-${n}`)}return r}function en(e){if(null==e)return e;let{unitless:t}=function(e){let t=parseFloat(e.toString()),r=e.toString().replace(String(t),"");return{unitless:!r,value:t,unit:r}}(e);return t||"number"==typeof e?`${e}px`:e}var ei=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,eo=e=>Object.fromEntries(Object.entries(e).sort(ei));function ea(e){let t=eo(e);return Object.assign(Object.values(t),t)}function es(e){var t;return e?"number"==typeof(e=null!=(t=en(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function eu(e,t){let r=["@media screen"];return e&&r.push("and",`(min-width: ${en(e)})`),t&&r.push("and",`(max-width: ${en(t)})`),r.join(" ")}var el={hover:(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,focus:(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,focusVisible:(e,t)=>`${e}:focus-visible ${t}`,focusWithin:(e,t)=>`${e}:focus-within ${t}`,active:(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,disabled:(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,invalid:(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,checked:(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,indeterminate:(e,t)=>`${e}:indeterminate ${t}, ${e}[aria-checked=mixed] ${t}, ${e}[data-indeterminate] ${t}`,readOnly:(e,t)=>`${e}:read-only ${t}, ${e}[readonly] ${t}, ${e}[data-read-only] ${t}`,expanded:(e,t)=>`${e}:read-only ${t}, ${e}[aria-expanded=true] ${t}, ${e}[data-expanded] ${t}`,placeholderShown:(e,t)=>`${e}:placeholder-shown ${t}`},ec=e=>ef(t=>e(t,"&"),"[role=group]","[data-group]",".group"),ed=e=>ef(t=>e(t,"~ &"),"[data-peer]",".peer"),ef=(e,...t)=>t.map(e).join(", "),eh={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:ec(el.hover),_peerHover:ed(el.hover),_groupFocus:ec(el.focus),_peerFocus:ed(el.focus),_groupFocusVisible:ec(el.focusVisible),_peerFocusVisible:ed(el.focusVisible),_groupActive:ec(el.active),_peerActive:ed(el.active),_groupDisabled:ec(el.disabled),_peerDisabled:ed(el.disabled),_groupInvalid:ec(el.invalid),_peerInvalid:ed(el.invalid),_groupChecked:ec(el.checked),_peerChecked:ed(el.checked),_groupFocusWithin:ec(el.focusWithin),_peerFocusWithin:ed(el.focusWithin),_peerPlaceholderShown:ed(el.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},ep=Object.keys(eh);function eg(e,t){return et(String(e).replace(/\./g,"-"),void 0,t)}function em(e,t,r={}){let{stop:n,getKey:i}=r;return function e(r,o=[]){var a;if("object"==typeof r&&null!=r&&!Array.isArray(r)||Array.isArray(r)){let s={};for(let[u,l]of Object.entries(r)){let c=null!=(a=null==i?void 0:i(u))?a:u,d=[...o,c];if(null==n?void 0:n(r,d))return t(r,o);
440s[c]=e(l,d)}return s}return t(r,o)}(e)}var ey=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],ev=e=>ep.includes(e)||"default"===e;function eb(e){var t;let r=function(e){let{__cssMap:t,__cssVars:r,__breakpoints:n,...i}=e;return i}(e),o=function(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}(r,ey),a=r.semanticTokens,s=function({tokens:e,semanticTokens:t}){let r={};return em(e,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!1,value:e})}),em(t,(e,t)=>{null!=e&&(r[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(ev)}),r}({tokens:o,semanticTokens:a}),u=null==(t=r.config)?void 0:t.cssVarPrefix,{cssMap:l,cssVars:c}=function(e,t){let r={},o={};for(let[a,s]of Object.entries(e)){let{isSemantic:u,value:l}=s,{variable:c,reference:d}=eg(a,null==t?void 0:t.cssVarPrefix);if(!u){if(a.startsWith("space")){let e=a.split("."),[t,...r]=e,n=`${t}.-${r.join(".")}`,i=ee.negate(l),s=ee.negate(d);o[n]={value:i,var:c,varRef:s}}r[c]=l,o[a]={value:l,var:c,varRef:d};continue}let f=r=>{let n=String(a).split(".")[0],i=[n,r].join("."),o=e[i];if(!o)return r;let{reference:s}=eg(i,null==t?void 0:t.cssVarPrefix);return s},h=(0,n.Kn)(l)?l:{default:l};r=i(r,Object.entries(h).reduce((e,[t,r])=>{var n;if(!r)return e;let i=f(`${r}`);if("default"===t)return e[c]=i,e;let o=null!=(n=null==eh?void 0:eh[t])?n:t;return e[o]={[c]:i},e},{})),o[a]={value:d,var:c,varRef:d}}return{cssVars:r,cssMap:o}}(s,{cssVarPrefix:u});return Object.assign(r,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...c},__cssMap:l,__breakpoints:function(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";let r=ea(e),i=Object.entries(e).sort(ei).map(([e,t],r,n)=>{var i;let[,o]=null!=(i=n[r+1])?i:[];return o=parseFloat(o)>0?es(o):void 0,{_minW:es(t),breakpoint:e,minW:t,maxW:o,maxWQuery:eu(null,o),minWQuery:eu(t),minMaxQuery:eu(t,o)}}),o=function(e){let t=Object.keys(eo(e));return new Set(t)}(e),a=Array.from(o.values());return{keys:o,normalized:r,isResponsive(e){let t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:eo(e),asArray:ea(e),details:i,get:e=>i.find(t=>t.breakpoint===e),media:[null,...r.map(e=>
440eu(e)).slice(1)],toArrayValue(e){if(!(0,n.Kn)(e))throw Error("toArrayValue: value must be an object");let t=a.map(t=>{var r;return null!=(r=e[t])?r:null});for(;null===function(e){let t=null==e?0:e.length;return t?e[t-1]:void 0}(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw Error("toObjectValue: value must be an array");return e.reduce((e,t,r)=>{let n=a[r];return null!=n&&null!=t&&(e[n]=t),e},{})}}}(r.breakpoints)}),r}var ew=i({},A,C,E,O,M,T,z,R,I,{srOnly:{transform:e=>!0===e?F:"focusable"===e?U:{}},layerStyle:{processResult:!0,transform:(e,t,r)=>B(t,`layerStyles.${e}`,r)},textStyle:{processResult:!0,transform:(e,t,r)=>B(t,`textStyles.${e}`,r)},apply:{processResult:!0,transform:(e,t,r)=>B(t,e,r)}},L,P,N,H,q,V,$,D,W),eS=Object.keys(Object.assign({},N,M,O,I,L)),ex=[...Object.keys(ew),...ep],e_={...ew,...eh},ek=e=>e in e_,eA=e=>t=>{if(!t.__breakpoints)return e;let{isResponsive:r,toArrayValue:i,media:o}=t.__breakpoints,a={};for(let s in e){let u=(0,n.Pu)(e[s],t);if(null==u)continue;if(!Array.isArray(u=(0,n.Kn)(u)&&r(u)?i(u):u)){a[s]=u;continue}let l=u.slice(0,o.length).length;for(let e=0;e<l;e+=1){let t=null==o?void 0:o[e];if(!t){a[s]=u[e];continue}a[t]=a[t]||{},null!=u[e]&&(a[t][s]=u[e])}}return a},eC=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!/^var\(--.+\)$/.test(t),eE=(e,t)=>{var r,n;if(null==t)return t;let i=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.varRef},o=e=>{var t;return null!=(t=i(e))?t:e},[a,s]=function(e){let t=[],r="",n=!1;for(let i=0;i<e.length;i++){let o=e[i];"("===o?(n=!0,r+=o):")"===o?(n=!1,r+=o):","!==o||n?r+=o:(t.push(r),r="")}return(r=r.trim())&&t.push(r),t}(t);return t=null!=(n=null!=(r=i(a))?r:o(s))?n:o(t)},eP=e=>t=>{let r=function(e){let{configs:t={},pseudos:r={},theme:o}=e,a=(e,s=!1)=>{var u,l,c;let d=(0,n.Pu)(e,o),f=eA(d)(o),h={};for(let e in f){let p=f[e],g=(0,n.Pu)(p,o);e in r&&(e=r[e]),eC(e,g)&&(g=eE(o,g));let m=t[e];if(!0===m&&(m={property:e}),(0,n.Kn)(g)){h[e]=null!=(u=h[e])?u:{},h[e]=i({},h[e],a(g,!0));continue}let y=null!=(c=null==(l=null==m?void 0:m.transform)?void 0:l.call(m,g,o,d))?c:g;y=(null==m?void 0:m.processResult)?a(y,!0):y;let v=(0,n.Pu)(null==m?void 0:m.property,o);if(!s&&(null==m?void 0:m.static)){let e=(0,n.Pu)(m.static,o);h=i({},h,e)}if(v&&Array.isArray(v)){for(let e of v)h[e]=y;continue}if(v){"&"===v&&(0,n.Kn)(y)?h=i({},h,y):h[v]=y;continue}if((0,n.Kn)(y)){h=i({},h,y);continue}h[e]=y}return h};return a}({theme:t,pseudos:eh,configs:ew});return r(e)};function eT(e){return e}function eO(e){return e}function eI(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function eR(e){return t=>{var r;let{variant:o,size:a,theme:s}=t,u=function(e){let t=e.__breakpoints;return function(e,r,o,a){var s,u,l;if(!t)return;let c={},d=(l=t.toArrayValue,Array.isArray(o)?o:(0,n.Kn)(o)?l(o):null!=o?[o]:void 0);if(!d)return c;let f=d.length,h=1===f,p=!!e.parts;for(let o=0;o<f;o++){let l=t.details[o],f=t.details[function(e,t){for(let r=t+1;r<e.length;r++)if(null!=e[r])return r;return -1}(d,o)],g=eu(l.minW,null==f?void 0:f._minW),m=(0,n.Pu)(null==(s=e[r])?void 0:s[d[o]],a);if(m){if(p){null==(u=e.parts)||u.forEach(e=>{i(c,{[e]:h?m[e]:{[g]:m[e]}})});continue}if(!p){h?i(c,m):c[g]=m;continue}c[g]=m}}return c}}(s);return i({},(0,n.Pu)(null!=(r=e.baseStyle)?r:{},t),u(e,"sizes",a,t),u(e,"variants",o,t))}}function eM(e,t,r){var n,i,o;return null!=(o=null==(i=null==(n=e.__cssMap)?void 0:n[`${t}.${r}`])?void 0:i.varRef)?o:r}function eD(e){return function(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}(e,["styleConfig","size","variant","colorScheme"])}},90977:function(e,t,r){"use strict";r.d(t,{m:function(){return P}});var n,i=r(47471),o=new Set([...i.cC,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),a=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function s(e){return a.has(e)||!o.has(e)}var u=r(52889),l=r(53302),c=r(30543),d=r(35408),f=r(51776),h=r(9231),p=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
440ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,g=(0,h.Z)(function(e){return p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)}),m=r(63534),y=r(71377),v=r(58297),b=r(28551),w=function(e){return"theme"!==e},S=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?g:w},x=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},_=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return(0,y.hC)(t,r,n),(0,b.L)(function(){return(0,y.My)(t,r,n)}),null},k=(function e(t,r){var n,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=x(t,r,o),u=s||S(a),l=!u("as");return function(){var c=arguments,h=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&h.push("label:"+n+";"),null==c[0]||void 0===c[0].raw)h.push.apply(h,c);else{h.push(c[0][0]);for(var p=c.length,g=1;g<p;g++)h.push(c[g],c[0][g])}var b=(0,m.w)(function(e,t,r){var n=l&&e.as||a,o="",c=[],d=e;if(null==e.theme){for(var p in d={},e)d[p]=e[p];d.theme=f.useContext(m.T)}"string"==typeof e.className?o=(0,y.fp)(t.registered,c,e.className):null!=e.className&&(o=e.className+" ");var g=(0,v.O)(h.concat(c),t.registered,d);o+=t.key+"-"+g.name,void 0!==i&&(o+=" "+i);var b=l&&void 0===s?S(n):u,w={};for(var x in e)(!l||"as"!==x)&&b(x)&&(w[x]=e[x]);return w.className=o,w.ref=r,f.createElement(f.Fragment,null,f.createElement(_,{cache:t,serialized:g,isStringTag:"string"==typeof n}),f.createElement(n,w))});return b.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=h,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return"."+i}}),b.withComponent=function(t,n){return e(t,(0,d.Z)({},r,n,{shouldForwardProp:x(b,n,!0)})).apply(void 0,h)},b}}).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){k[e]=k(e)});var A=null!=(n=k.default)?n:k,C=({baseStyle:e})=>t=>{let{theme:r,css:n,__css:o,sx:a,...s}=t,u=(0,l.lw)(s,(e,t)=>(0,i.ZR)(t)),d=(0,c.Pu)(e,t),f=function(e,...t){if(null==e)throw TypeError("Cannot convert undefined or null to object");let r={...e};for(let e of t)if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in r&&delete r[t],r[t]=e[t]);return r}({},o,d,(0,l.YU)(u),a),h=(0,i.iv)(f)(t.theme);return n?[h,n]:h};function E(e,t){let{baseStyle:r,...n}=null!=t?t:{};n.shouldForwardProp||(n.shouldForwardProp=s);let i=C({baseStyle:r}
440),o=A(e,n)(i),a=f.forwardRef(function(e,t){let{colorMode:r,forced:n}=(0,u.If)();return f.createElement(o,{ref:t,"data-theme":n?r:void 0,...e})});return a}var P=function(){let e=new Map;return new Proxy(E,{apply:(e,t,r)=>E(...r),get:(t,r)=>(e.has(r)||e.set(r,E(r)),e.get(r))})}()},84402:function(e,t,r){"use strict";r.d(t,{Fo:function(){return p},ZL:function(){return y},eC:function(){return m},f6:function(){return f},yK:function(){return g}});var n=r(52889),i=r(58261),o=r(47471),a=r(53302),s=r(30543),u=r(63534),l=r(13327),c=r(51776),d=r(36734);function f(e){let{cssVarsRoot:t,theme:r,children:n}=e,i=(0,c.useMemo)(()=>(0,o.c0)(r),[r]);return(0,d.jsxs)(u.a,{theme:i,children:[(0,d.jsx)(h,{root:t}),n]})}function h({root:e=":host, :root"}){let t=[e,"[data-theme]"].join(",");return(0,d.jsx)(l.xB,{styles:e=>({[t]:e.__cssVars})})}var[p,g]=(0,i.k)({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function m(e){return(0,i.k)({name:`${e}StylesContext`,errorMessage:`useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<${e} />" `})}function y(){let{colorMode:e}=(0,n.If)();return(0,d.jsx)(l.xB,{styles:t=>{let r=(0,a.Wf)(t,"styles.global"),n=(0,s.Pu)(r,{theme:t,colorMode:e});if(!n)return;let i=(0,o.iv)(n)(t);return i}})}},24511:function(e,t,r){"use strict";r.d(t,{LP:function(){return s},dQ:function(){return a},uP:function(){return o}});var n=r(40136),i=r(52889);function o(){let e=(0,i.If)(),t=(0,n.F)();return{...e,theme:t}}function a(e,t,r){let i=(0,n.F)();return s(e,t,r)(i)}function s(e,t,r){let n=Array.isArray(t)?t:[t],i=Array.isArray(r)?r:[r];return r=>{let o=i.filter(Boolean),a=n.map((t,n)=>{var i,a;if("breakpoints"===e)return function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__breakpoints)?void 0:r.asArray)?void 0:n[t]};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,t,null!=(i=o[n])?i:t);let s=`${e}.${t}`;return function(e,t,r){var n,i;if(null==t)return t;let o=t=>{var r,n;return null==(n=null==(r=e.__cssMap)?void 0:r[t])?void 0:n.value};return null!=(i=null!=(n=o(t))?n:o(r))?i:r}(r,s,null!=(a=o[n])?a:t)});return Array.isArray(t)?a:a[0]}}},40136:function(e,t,r){"use strict";r.d(t,{F:function(){return o}});var n=r(63534),i=r(51776);function o(){let e=(0,i.useContext)(n.T);if(!e)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return e}},11876:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(51776);function i(e){return(0,n.forwardRef)(e)}},47208:function(e,t,r){"use strict";r.d(t,{jC:function(){return d},mq:function(){return c}});var n=r(24511),i=r(47471),o=r(53302),a=r(89924),s=r(51776),u=r(34825);function l(e,t={}){var r;let{styleConfig:l,...c}=t,{theme:d,colorMode:f}=(0,n.uP)(),h=e?(0,o.Wf)(d,`components.${e}`):void 0,p=l||h,g=a({theme:d,colorMode:f},null!=(r=null==p?void 0:p.defaultProps)?r:{},(0,o.YU)((0,o.CE)(c,["children"]))),m=(0,s.useRef)({});if(p){let e=(0,i.Ud)(p),t=e(g),r=u(m.current,t);r||(m.current=t)}return m.current}function c(e,t={}){return l(e,t)}function d(e,t={}){return l(e,t)}},14603:function(e,t,r){"use strict";r.d(t,{p:function(){return s}});var n=r(33368),i=r(9413),o=r(24511),a=r(51776);function s(e){let{theme:t}=(0,o.uP)(),r=(0,n.OX)();return(0,a.useMemo)(()=>(0,i.Cj)(t.direction,{...r,...e}),[e,t.direction,r])}},82709:function(e,t,r){"use strict";r.d(t,{Dn:function(){return i},IW:function(){return s},sv:function(){return a},ym:function(){return o}});var n=(e,t)=>e.find(e=>e.id===t);function i(e,t){let r=o(e,t),n=r?e[r].findIndex(e=>e.id===t):-1;return{position:r,index:n}}function o(e,t){for(let[r,i]of Object.entries(e))if(n(i,t))return r}function a(e){let t=e.includes("right"),r=e.includes("left"),n="center";return t&&(n="flex-end"),r&&(n="flex-start"),{display:"flex",flexDirection:"column",alignItems:n}}function s(e){let t=e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,r=e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,n=e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",i=e.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:t,bottom:r,right:n,left:i}}},9413:function(e,t,r){"use strict";r.d(t,{Cj:function(){return v},fp:function(){return p}});var n=r(82709),i=r(11685),o=r(94353),a=r(15774),s=r(40629),u=r(11876),l=r(90977),c=r(36734),d=(0,u.G)(function(e,t){let r=(0,a.uL)(),{status:n}=(0,a.oX)();return(0,c.jsx)(l.m.div,{ref:t,"data-status":n,...e,className:(0,s.cx)("chakra-alert__title",e.className),__css:r.title})});d.displayName="AlertTitle";var f=(0,u.G)(function(e,t){let r=(0,a.uL)(),{status:n}=(0,a.oX)(),i={display:"inline",...r.description};return(0,c.jsx)(l.m.div,{ref:t,"data-status":n,...e,className:(0,s.cx)("chakra-alert__desc",e.className),__css:i})});f.displayName="AlertDescription";var h=r(48327),p=function(e){let t=e,r=new Set,i=e=>
440{t=e(t),r.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(r.add(t),()=>{i(()=>e),r.delete(t)}),removeToast:(e,t)=>{i(r=>({...r,[t]:r[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{let r=function(e,t={}){var r,n;g+=1;let i=null!=(r=t.id)?r:g,o=null!=(n=t.position)?n:"bottom";return{id:i,message:e,position:o,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>p.removeToast(String(i),o),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:n,id:o}=r;return i(e=>{var t,i;let o=n.includes("top"),a=o?[r,...null!=(t=e[n])?t:[]]:[...null!=(i=e[n])?i:[],r];return{...e,[n]:a}}),o},update:(e,t)=>{e&&i(r=>{let i={...r},{position:o,index:a}=(0,n.Dn)(i,e);return o&&-1!==a&&(i[o][a]={...i[o][a],...t,message:y(t)}),i})},closeAll:({positions:e}={})=>{i(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,r)=>(e[r]=t[r].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{i(t=>{let r=(0,n.ym)(t,e);return r?{...t,[r]:t[r].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>!!(0,n.Dn)(p.getState(),e).position}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),g=0,m=e=>{let{status:t,variant:r="solid",id:n,title:a,isClosable:s,onClose:u,description:p,colorScheme:g,icon:m}=e,y=n?{root:`toast-${n}`,title:`toast-${n}-title`,description:`toast-${n}-description`}:void 0;return(0,c.jsxs)(i.b,{addRole:!1,status:t,variant:r,id:null==y?void 0:y.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:g,children:[(0,c.jsx)(o.z,{children:m}),(0,c.jsxs)(l.m.div,{flex:"1",maxWidth:"100%",children:[a&&(0,c.jsx)(d,{id:null==y?void 0:y.title,children:a}),p&&(0,c.jsx)(f,{id:null==y?void 0:y.description,display:"block",children:p})]}),s&&(0,c.jsx)(h.P,{size:"sm",onClick:u,position:"absolute",insetEnd:1,top:1})]})};function y(e={}){let{render:t,toastComponent:r=m}=e,n=n=>"function"==typeof t?t({...n,...e}):(0,c.jsx)(r,{...n,...e});return n}function v(e,t){let r=r=>{var n;return{...t,...r,position:function(e,t){var r;let n=null!=e?e:"bottom",i={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[n];return null!=(r=null==i?void 0:i[t])?r:n}(null!=(n=null==r?void 0:r.position)?n:null==t?void 0:t.position,e)}},n=e=>{let t=r(e),n=y(t);return p.notify(n,t)};return n.update=(e,t)=>{p.update(e,r(t))},n.promise=(e,t)=>{let r=n({...t.loading,status:"loading",duration:null});e.then(e=>n.update(r,{status:"success",duration:5e3,...(0,s.Pu)(t.success,e)})).catch(e=>n.update(r,{status:"error",duration:5e3,...(0,s.Pu)(t.error,e)}))},n.closeAll=p.closeAll,n.close=p.close,n.isActive=p.isActive,n}},33368:function(e,t,r){"use strict";r.d(t,{Qi:function(){return y},VW:function(){return b},OX:function(){return v}});var n=r(82709),i=r(51776),o=r(8173),a=r(1706),s=r(40629),u=r(72164),l=r(17149),c=r(90977),d=r(36734),f={initial:e=>{let{position:t}=e,r=["top","bottom"].includes(t)?"y":"x",n=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(n=1),{opacity:0,[r]:24*n}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},h=(0,i.memo)(e=>{let{id:t,message:r,onCloseComplete:h,onRequestRemove:p,requestClose:g=!1,position:m="bottom",duration:y=5e3,containerStyle:v,motionVariants:b=f,toastSpacing:w="0.5rem"}=e,[S,x]=(0,i.useState)(y),_=(0,u.hO)();(0,a.r)(()=>{_||null==h||h()},[_]),(0,a.r)(()=>{x(y)},[y]);let k=()=>x(null),A=()=>x(y),C=()=>{_&&p()};(0,i.useEffect)(()=>{_&&g&&p()},[_,g,p]),function(e,t){let r=(0,o.W)(e);(0,i.useEffect)(()=>{if(null==t)return;let e=null;return e=window.setTimeout(()=>{r()},t),()=>{e&&window.clearTimeout(e)}},[t,r])}(C,S);let E=(0,i.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:w,...v}),[v,w]),P=(0,i.useMemo)(()=>(0,n.sv)(m),[m]);return(0,d.jsx)(l.E.div,{layout:!0,className:"chakra-toast",variants:b,initial:"initial",animate:"animate",exit:"exit",onHoverStart:k,onHoverEnd:A,custom:{position:m},style:P,children:(0,d.jsx)(c.m.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:E,children:(0,s.Pu)(r,{id:t,onClose:C})})})});h.displayName="ToastComponent";var p=r(9413),g=r(19850),m=r(75855),[y,v]=(0,r(15891).k)({name:"ToastOptionsContext",strict:!1}),b=e=>{let t=(0,i.useSyncExternalStore)(p.fp.subscribe,p.fp.getState,p.fp.getState),{motionVariants:r,component:o=h,portalProps:a}=e,s=Object.keys(t),u=s.map(e=>{let i=t[e];return(0,d.jsx)("div",{role:"region","aria-live":"polite",id:`chakra-toast-manager-${e}`,style:(0,n.IW)(e),children:(0,d.jsx)(g.M,{initial:!1,children:i.map(e=>(0,d.jsx)(o,{motionVariants:r,...e},e.id))})},e)});return(0,d.jsx)(m.h,{...a,children:u})}},30543:function(e,t,r){"use strict";r.d(t,{Pu:function(){return i},v0:function(){return o}});var n=r(45714);function i(e,...t){return(0,n.mf)(e)?e(...t):e}function o(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}},45714:function(e,t,r){"use strict";function n(e){return"function"==typeof e}r.d(t,{mf:function(){return n}})},53302:function(e,t,r){"use strict";function n(e,t){let r={};return Object.keys(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),r}r.d(t,{CE:function(){return n},Wf:function(){return i},YU:function(){return a},lw:function(){return o}}),r(89924);var i=(e=>{let t=new WeakMap,r=(r,n,i,o)=>
440{if(void 0===r)return e(r,n,i);t.has(r)||t.set(r,new Map);let a=t.get(r);if(a.has(n))return a.get(n);let s=e(r,n,i,o);return a.set(n,s),s};return r})(function(e,t,r,n){let i="string"==typeof t?t.split("."):[t];for(n=0;n<i.length&&e;n+=1)e=e[i[n]];return void 0===e?r:e});function o(e,t){let r={};return Object.keys(e).forEach(n=>{let i=e[n],o=t(i,n,e);o&&(r[n]=i)}),r}var a=e=>o(e,e=>null!=e)},3545:function(e,t,r){"use strict";r.d(t,{j:function(){return a}});var n=r(9685),i=r(154);class o extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused=e,e&&this.onFocus()}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}let a=new o},73488:function(e,t,r){"use strict";r.d(t,{_:function(){return n}});let n=console},24223:function(e,t,r){"use strict";r.d(t,{R:function(){return u},m:function(){return s}});var n=r(73488),i=r(57557),o=r(6343),a=r(67183);class s extends o.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||n._,this.observers=[],this.state=e.state||u(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,r,n,i,o,s,u,l,c,d,f,h,p,g,m,y,v,b,w;let S="loading"===this.state.status;try{if(!S){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(l=(c=this.mutationCache.config).onMutate)?void 0:l.call(c,this.state.variables,this));let e=await (null==(d=(f=this.options).onMutate)?void 0:d.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let h=await (()=>{var e;return this.retryer=(0,a.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,h,this.state.variables,this.state.context,this)),await (null==(r=(n=this.options).onSuccess)?void 0:r.call(n,h,this.state.variables,this.state.context)),await (null==(i=(o=this.mutationCache.config).onSettled)?void 0:i.call(o,h,null,this.state.variables,this.state.context,this)),await (null==(s=(u=this.options).onSettled)?void 0:s.call(u,h,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:h}),h}catch(e){try{throw await (null==(h=(p=this.mutationCache.config).onError)?void 0:h.call(p,e,this.state.variables,this.state.context,this)),await (null==(g=(m=this.options).onError)?void 0:g.call(m,e,this.state.variables,this.state.context)),await (null==(y=(v=this.mutationCache.config).onSettled)?void 0:y.call(v,void 0,e,this.state.variables,this.state.context,this)),await (null==(b=(w=this.options).onSettled)?void 0:b.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(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};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,a.Kw)(this.options.networkMode),status:"loading",variables:e.variables};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,isPau
440sed:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),i.V.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function u(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},57557:function(e,t,r){"use strict";r.d(t,{V:function(){return i}});var n=r(154);let i=function(){let e=[],t=0,r=e=>{e()},i=e=>{e()},o=e=>{let r;t++;try{r=e()}finally{--t||u()}return r},a=i=>{t?e.push(i):(0,n.A4)(()=>{r(i)})},s=e=>(...t)=>{a(()=>{e(...t)})},u=()=>{let t=e;e=[],t.length&&(0,n.A4)(()=>{i(()=>{t.forEach(e=>{r(e)})})})},l=e=>{r=e},c=e=>{i=e};return{batch:o,batchCalls:s,schedule:a,setNotifyFunction:l,setBatchNotifyFunction:c}}()},82281:function(e,t,r){"use strict";r.d(t,{N:function(){return s}});var n=r(9685),i=r(154);let o=["online","offline"];class a extends n.l{constructor(){super(),this.setup=e=>{if(!i.sk&&window.addEventListener){let t=()=>e();return o.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{o.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online=e,e&&this.onOnline()}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}}let s=new a},6343:function(e,t,r){"use strict";r.d(t,{F:function(){return i}});var n=r(154);class i{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:n.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},67183:function(e,t,r){"use strict";r.d(t,{DV:function(){return l},Kw:function(){return s},Mz:function(){return c}});var n=r(3545),i=r(82281),o=r(154);function a(e){return Math.min(1e3*2**e,3e4)}function s(e){return(null!=e?e:"online")!=="online"||i.N.isOnline()}class u{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function l(e){return e instanceof u}function c(e){let t,r,l,c=!1,d=0,f=!1,h=new Promise((e,t)=>{r=e,l=t}),p=t=>{f||(b(new u(t)),null==e.abort||e.abort())},g=()=>{c=!0},m=()=>{c=!1},y=()=>!n.j.isFocused()||"always"!==e.networkMode&&!i.N.isOnline(),v=n=>{f||(f=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},b=r=>{f||(f=!0,null==e.onError||e.onError(r),null==t||t(),l(r))},w=()=>new Promise(r=>{t=e=>{let t=f||!y();return t&&r(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,f||null==e.onContinue||e.onContinue()}),S=()=>{let t;if(!f){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(v).catch(t=>{var r,n;if(f)return;let i=null!=(r=e.retry)?r:3,s=null!=(n=e.retryDelay)?n:a,u="function"==typeof s?s(d,t):s,l=!0===i||"number"==typeof i&&d<i||"function"==typeof i&&i(d,t);if(c||!l){b(t);return}d++,null==e.onFail||e.onFail(d,t),(0,o.Gh)(u).then(()=>{if(y())return w()}).then(()=>{c?b(t):S()})})}};return s(e.networkMode)?S():w().then(S),{promise:h,cancel:p,continue:()=>{let e=null==t?void 0:t();return e?h:Promise.resolve()},cancelRetry:g,continueRetry:m}}},9685:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});class n{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},154:function(e,t,r){"use strict";r.d(t,{A4:function(){return _},G9:function(){return k},Gh:function(){return x},I6:function(){return c},Kp:function(){return s},PN:function(){return a},Rm:function(){return h},SE:function(){return o},VS:function(){return y},X7:function(){return f},ZT:function(){return i},_v:function(){return u},_x:function(){return d},lV:function(){return l},oE:function(){return A},sk:function(){return n},to:function(){return g},yF:function(){return p}});let n="undefined"==typeof window||"Deno"in window;function i(){}function o(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t,r){return S(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function l(e,t,r){return S(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}function c(e,t,r){return S(e)?[{...t,queryKey:e},r]:[e||{},t]}function d(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(S(a)){if(n){if(t.queryHash!==h(a,t.options))return!1}else{if(!m(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)&&(void 0===i||i===t.state.fetchStatus)&&(!o||!!o(t))}function f(e,t){let{exact:r,fetching:n,predicate:i,mutationKey:o}=e;if(S(o)){if(!t.options.mutationKey)return!1;if(r){if(p(t.options.mutationKey)!==p(o))return!1}else{if(!m(t.options.mutationKey,o))return!1}}return("boolean"!=typeof n||"loading"===t.state.status===n)&&(!i||!!i(t))}function h(e,t){let r=(null==t?void 0:t.queryKeyHashFn)||p;return r(e)}function p(e){return JSON.stringify(e,(e,t)=>b(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function g(e,t){return m(e,t)}function m(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!m(e[r],t[r]))}function y(e,t){if(e&&!t||t&&!e)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function b(e){if(!w(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(w(r)&&r.hasOwnProperty("isPrototypeOf"))}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){return Array.isArray(e)}function x(e){return new Promise(t=>{setTimeout(t,e)})}function _(e){x(0).then(e)}function k(){if("function"==typeof AbortController)return new AbortController}function A(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?function e(t,r){if(t===r)return t;let n=v(t)&&v(r);if(n||b(t)&&b(r)){let i=n?t.length:Object.keys(t).length,o=n?r:Object.keys(r),a=o.length,s=n?[]:{},u=0;for(let i=0;i<a;i++){let a=n?i:o[i];
440s[a]=e(t[a],r[a]),s[a]===t[a]&&u++}return i===a&&u===i?t:s}return r}(e,t):t}},74783:function(e,t,r){"use strict";r.d(t,{NL:function(){return s},aH:function(){return u}});var n=r(51776);let i=n.createContext(void 0),o=n.createContext(!1);function a(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=i),window.ReactQueryClientContext):i)}let s=({context:e}={})=>{let t=n.useContext(a(e,n.useContext(o)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},u=({client:e,children:t,context:r,contextSharing:i=!1})=>{n.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let s=a(r,i);return n.createElement(o.Provider,{value:!r&&i},n.createElement(s.Provider,{value:e},t))}},90044:function(e,t,r){"use strict";let n;function i(e,t){return function(){return e.apply(t,arguments)}}r.d(t,{Z:function(){return e7}});let{toString:o}=Object.prototype,{getPrototypeOf:a}=Object,s=(et=Object.create(null),e=>{let t=o.call(e);return et[t]||(et[t]=t.slice(8,-1).toLowerCase())}),u=e=>(e=e.toLowerCase(),t=>s(t)===e),l=e=>t=>typeof t===e,{isArray:c}=Array,d=l("undefined"),f=u("ArrayBuffer"),h=l("string"),p=l("function"),g=l("number"),m=e=>null!==e&&"object"==typeof e,y=e=>{if("object"!==s(e))return!1;let t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},v=u("Date"),b=u("File"),w=u("Blob"),S=u("FileList"),x=e=>m(e)&&p(e.pipe),_=e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||p(e.append)&&("formdata"===(t=s(e))||"object"===t&&p(e.toString)&&"[object FormData]"===e.toString()))},k=u("URLSearchParams"),A=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function C(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),c(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;for(n=0;n<a;n++)i=o[n],t.call(null,e[i],i,e)}}}function E(e,t){let r;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,T=e=>!d(e)&&e!==P,O=(e,t,r,{allOwnKeys:n}={})=>(C(t,(t,n)=>{r&&p(t)?e[n]=i(t,r):e[n]=t},{allOwnKeys:n}),e),I=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),R=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},M=(e,t,r,n)=>{let i,o,s;let u={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!u[s]&&(t[s]=e[s],u[s]=!0);e=!1!==r&&a(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},D=(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},j=e=>{if(!e)return null;if(c(e))return e;let t=e.length;if(!g(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},F=(er="undefined"!=typeof Uint8Array&&a(Uint8Array),e=>er&&e instanceof er),U=(e,t)=>{let r;let n=e&&e[Symbol.iterator],i=n.call(e);for(;(r=i.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},B=(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},L=u("HTMLFormElement"),z=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),N=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),V=u("RegExp"),$=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};C(r,(r,i)=>{!1!==t(r,i,e)&&(n[i]=r)}),Object.defineProperties(e,n)},W=e=>{$(e,(t,r)=>{if(p(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(p(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},q=(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(c(e)?e:String(e).split(t)),r},H=()=>{},G=(e,t)=>Number.isFinite(e=+e)?e:t,K="abcdefghijklmnopqrstuvwxyz",J="0123456789",Y={DIGIT:J,ALPHA:K,ALPHA_DIGIT:K+K.toUpperCase()+J},Z=(e=16,t=Y.ALPHA_DIGIT)=>{let r="",{length:n}=t;
440for(;e--;)r+=t[Math.random()*n|0];return r},X=e=>{let t=Array(10),r=(e,n)=>{if(m(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;let i=c(e)?[]:{};return C(e,(e,t)=>{let o=r(e,n+1);d(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},Q=u("AsyncFunction"),ee=e=>e&&(m(e)||p(e))&&p(e.then)&&p(e.catch);var et,er,en={isArray:c,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:_,isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:h,isNumber:g,isBoolean:e=>!0===e||!1===e,isObject:m,isPlainObject:y,isUndefined:d,isDate:v,isFile:b,isBlob:w,isRegExp:V,isFunction:p,isStream:x,isURLSearchParams:k,isTypedArray:F,isFileList:S,forEach:C,merge:function e(){let{caseless:t}=T(this)&&this||{},r={},n=(n,i)=>{let o=t&&E(r,i)||i;y(r[o])&&y(n)?r[o]=e(r[o],n):y(n)?r[o]=e({},n):c(n)?r[o]=n.slice():r[o]=n};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&C(arguments[e],n);return r},extend:O,trim:A,stripBOM:I,inherits:R,toFlatObject:M,kindOf:s,kindOfTest:u,endsWith:D,toArray:j,forEachEntry:U,matchAll:B,isHTMLForm:L,hasOwnProperty:N,hasOwnProp:N,reduceDescriptors:$,freezeMethods:W,toObjectSet:q,toCamelCase:z,noop:H,toFiniteNumber:G,findKey:E,global:P,isContextDefined:T,ALPHABET:Y,generateString:Z,isSpecCompliantForm:function(e){return!!(e&&p(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:X,isAsyncFn:Q,isThenable:ee};function ei(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i)}en.inherits(ei,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:en.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let eo=ei.prototype,ea={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ea[e]={value:e}}),Object.defineProperties(ei,ea),Object.defineProperty(eo,"isAxiosError",{value:!0}),ei.from=(e,t,r,n,i,o)=>{let a=Object.create(eo);return en.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),ei.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var es=r(35994).lW;function eu(e){return en.isPlainObject(e)||en.isArray(e)}function el(e){return en.endsWith(e,"[]")?e.slice(0,-2):e}function ec(e,t,r){return e?e.concat(t).map(function(e,t){return e=el(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let ed=en.toFlatObject(en,{},null,function(e){return/^is[A-Z]/.test(e)});var ef=function(e,t,r){if(!en.isObject(e))throw TypeError("target must be an object");t=t||new FormData,r=en.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!en.isUndefined(t[e])});let n=r.metaTokens,i=r.visitor||c,o=r.dots,a=r.indexes,s=r.Blob||"undefined"!=typeof Blob&&Blob,u=s&&en.isSpecCompliantForm(t);if(!en.isFunction(i))throw TypeError("visitor must be a function");function l(e){if(null===e)return"";if(en.isDate(e))return e.toISOString();if(!u&&en.isBlob(e))throw new ei("Blob is not supported. Use a Buffer instead.");return en.isArrayBuffer(e)||en.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):es.from(e):e}function c(e,r,i){let s=e;if(e&&!i&&"object"==typeof e){if(en.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(en.isArray(e)&&(u=e,en.isArray(u)&&!u.some(eu))||(en.isFileList(e)||en.endsWith(r,"[]"))&&(s=en.toArray(e)))return r=el(r),s.forEach(function(e,n){en.isUndefined(e)||null===e||t.append(!0===a?ec([r],n,o):null===a?r:r+"[]",l(e))}),!1}}return!!eu(e)||(t.append(ec(i,r,o),l(e)),!1)}let d=[],f=Object.assign(ed,{defaultVisitor:c,convertValue:l,isVisitable:eu});if(!en.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!en.isUndefined(r)){if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));
440d.push(r),en.forEach(r,function(r,o){let a=!(en.isUndefined(r)||null===r)&&i.call(t,r,en.isString(o)?o.trim():o,n,f);!0===a&&e(r,n?n.concat(o):[o])}),d.pop()}}(e),t};function eh(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ep(e,t){this._pairs=[],e&&ef(e,this,t)}let eg=ep.prototype;function em(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ey(e,t,r){let n;if(!t)return e;let i=r&&r.encode||em,o=r&&r.serialize;if(n=o?o(t,r):en.isURLSearchParams(t)?t.toString():new ep(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}eg.append=function(e,t){this._pairs.push([e,t])},eg.toString=function(e){let t=e?function(t){return e.call(this,t,eh)}:eh;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var ev=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){en.forEach(this.handlers,function(t){null!==t&&e(t)})}},eb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ew="undefined"!=typeof URLSearchParams?URLSearchParams:ep,eS="undefined"!=typeof FormData?FormData:null,ex="undefined"!=typeof Blob?Blob:null;let e_=("undefined"==typeof navigator||"ReactNative"!==(n=navigator.product)&&"NativeScript"!==n&&"NS"!==n)&&"undefined"!=typeof window&&"undefined"!=typeof document,ek="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var eA={isBrowser:!0,classes:{URLSearchParams:ew,FormData:eS,Blob:ex},isStandardBrowserEnv:e_,isStandardBrowserWebWorkerEnv:ek,protocols:["http","https","file","blob","url","data"]},eC=function(e){if(en.isFormData(e)&&en.isFunction(e.entries)){let t={};return en.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let o=t[i++],a=Number.isFinite(+o),s=i>=t.length;if(o=!o&&en.isArray(n)?n.length:o,s)return en.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r,!a;n[o]&&en.isObject(n[o])||(n[o]=[]);let u=e(t,r,n[o],i);return u&&en.isArray(n[o])&&(n[o]=function(e){let t,r;let n={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)n[r=i[t]]=e[r];return n}(n[o])),!a}(en.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let eE={"Content-Type":void 0},eP={transitional:eb,adapter:["xhr","http"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=en.isObject(e);o&&en.isHTMLForm(e)&&(e=new FormData(e));let a=en.isFormData(e);if(a)return i&&i?JSON.stringify(eC(e)):e;if(en.isArrayBuffer(e)||en.isBuffer(e)||en.isStream(e)||en.isFile(e)||en.isBlob(e))return e;if(en.isArrayBufferView(e))return e.buffer;if(en.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var s,u;return(s=e,u=this.formSerializer,ef(s,new eA.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return eA.isNode&&en.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},u))).toString()}if((r=en.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return ef(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,r){if(en.isString(e))try{return(0,JSON.parse)(e),en.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eP.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&en.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw ei.from(e,ei.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eA.classes.FormData,Blob:eA.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};
440en.forEach(["delete","get","head"],function(e){eP.headers[e]={}}),en.forEach(["post","put","patch"],function(e){eP.headers[e]=en.merge(eE)});let eT=en.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eO=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&eT[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let eI=Symbol("internals");function eR(e){return e&&String(e).trim().toLowerCase()}function eM(e){return!1===e||null==e?e:en.isArray(e)?e.map(eM):String(e)}let eD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ej(e,t,r,n,i){if(en.isFunction(n))return n.call(this,t,r);if(i&&(t=r),en.isString(t)){if(en.isString(n))return -1!==t.indexOf(n);if(en.isRegExp(n))return n.test(t)}}class eF{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=eR(t);if(!i)throw Error("header name must be a non-empty string");let o=en.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(n[o||t]=eM(e))}let o=(e,t)=>en.forEach(e,(e,r)=>i(e,r,t));return en.isPlainObject(e)||e instanceof this.constructor?o(e,t):en.isString(e)&&(e=e.trim())&&!eD(e)?o(eO(e),t):null!=e&&i(t,e,r),this}get(e,t){if(e=eR(e)){let r=en.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
440for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(en.isFunction(t))return t.call(this,e,r);if(en.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eR(e)){let r=en.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ej(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=eR(e)){let i=en.findKey(r,e);i&&(!t||ej(r,r[i],i,t))&&(delete r[i],n=!0)}}return en.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||ej(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return en.forEach(this,(n,i)=>{let o=en.findKey(r,i);if(o){t[o]=eM(n),delete t[i];return}let a=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();a!==i&&delete t[i],t[a]=eM(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return en.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&en.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[eI]=this[eI]={accessors:{}},r=t.accessors,n=this.prototype;function i(e){let t=eR(e);r[t]||(!function(e,t){let r=en.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(n,e),r[t]=!0)}return en.isArray(e)?e.forEach(i):i(e),this}}function eU(e,t){let r=this||eP,n=t||r,i=eF.from(n.headers),o=n.data;return en.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function eB(e){return!!(e&&e.__CANCEL__)}function eL(e,t,r){ei.call(this,null==e?"canceled":e,ei.ERR_CANCELED,t,r),this.name="CanceledError"}eF.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),en.freezeMethods(eF.prototype),en.freezeMethods(eF),en.inherits(eL,ei,{__CANCEL__:!0});var ez=eA.isStandardBrowserEnv?{write:function(e,t,r,n,i,o){let a=[];a.push(e+"="+encodeURIComponent(t)),en.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),en.isString(n)&&a.push("path="+n),en.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function eN(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e:t}var eV=eA.isStandardBrowserEnv?function(){let e;let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(e){let n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=n(window.location.href),function(t){let r=en.isString(t)?n(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0},e$=function(e,t){let r;e=e||10;let n=Array(e),i=Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){let u=Date.now(),l=i[a];r||(r=u),n[o]=s,i[o]=u;let c=a,d=0;for(;c!==o;)d+=n[c++],c%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),u-r<t)return;let f=l&&u-l;return f?Math.round(1e3*d/f):void 0}};function eW(e,t){let r=0,n=e$(50,250);return i=>{let o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-r,u=n(s);r=o;let l={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:i};l[t?"download":"upload"]=!0,e(l)}}let eq="undefined"!=typeof XMLHttpRequest;var eH=eq&&function(e){return new Promise(function(t,r){let n,i=e.data,o=eF.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(n),e.signal&&e.signal.removeEventListener("abort",n)}en.isFormData(i)&&(eA.isStandardBrowserEnv||eA.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){let t=e.auth.username||"",r=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+r))}let l=eN(e.baseURL,e.url);function c(){if(!u)return;let n=eF.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),i=a&&"text"!==a&&"json"!==a?u.response:u.responseText,o={data:i,status:u.status,statusText:u.statusText,headers:n,config:e,request:u};!function(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ei("Request failed with status code "+r.status,[ei.ERR_BAD_REQUEST,ei.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}(function(e){t(e),s()},function(e){r(e),s()},o),u=null}if(u.open(e.method.toUpperCase(),ey(l,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=c:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(c)},u.onabort=function(){u&&(r(new ei("Request aborted",ei.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new ei("Network Error",ei.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||eb;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new ei(t,n.clarifyTimeoutError?ei.ETIMEDOUT:ei.ECONNABORTED,e,u)),u=null},eA.isStandardBrowserEnv){let t=(e.withCredentials||eV(l))&&e.xsrfCookieName&&ez.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===i&&o.setContentType(null),"setRequestHeader"in u&&en.forEac
440h(o.toJSON(),function(e,t){u.setRequestHeader(t,e)}),en.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&u.addEventListener("progress",eW(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",eW(e.onUploadProgress)),(e.cancelToken||e.signal)&&(n=t=>{u&&(r(!t||t.type?new eL(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(n),e.signal&&(e.signal.aborted?n():e.signal.addEventListener("abort",n)));let d=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(l);if(d&&-1===eA.protocols.indexOf(d)){r(new ei("Unsupported protocol "+d+":",ei.ERR_BAD_REQUEST,e));return}u.send(i||null)})};let eG={http:null,xhr:eH};en.forEach(eG,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});var eK={getAdapter:e=>{let t,r;e=en.isArray(e)?e:[e];let{length:n}=e;for(let i=0;i<n&&(t=e[i],!(r=en.isString(t)?eG[t.toLowerCase()]:t));i++);if(!r){if(!1===r)throw new ei(`Adapter ${t} is not supported by the environment`,"ERR_NOT_SUPPORT");throw Error(en.hasOwnProp(eG,t)?`Adapter '${t}' is not available in the build`:`Unknown adapter '${t}'`)}if(!en.isFunction(r))throw TypeError("adapter is not a function");return r},adapters:eG};function eJ(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eL(null,e)}function eY(e){eJ(e),e.headers=eF.from(e.headers),e.data=eU.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=eK.getAdapter(e.adapter||eP.adapter);return t(e).then(function(t){return eJ(e),t.data=eU.call(e,e.transformResponse,t),t.headers=eF.from(t.headers),t},function(t){return!eB(t)&&(eJ(e),t&&t.response&&(t.response.data=eU.call(e,e.transformResponse,t.response),t.response.headers=eF.from(t.response.headers))),Promise.reject(t)})}let eZ=e=>e instanceof eF?e.toJSON():e;function eX(e,t){t=t||{};let r={};function n(e,t,r){return en.isPlainObject(e)&&en.isPlainObject(t)?en.merge.call({caseless:r},e,t):en.isPlainObject(t)?en.merge({},t):en.isArray(t)?t.slice():t}function i(e,t,r){return en.isUndefined(t)?en.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function o(e,t){if(!en.isUndefined(t))return n(void 0,t)}function a(e,t){return en.isUndefined(t)?en.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(eZ(e),eZ(t),!0)};return en.forEach(Object.keys(Object.assign({},e,t)),function(n){let o=u[n]||i,a=o(e[n],t[n],n);en.isUndefined(a)&&o!==s||(r[n]=a)}),r}let eQ="1.4.0",e0={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e0[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let e1={};e0.transitional=function(e,t,r){function n(e,t){return"[Axios v"+eQ+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new ei(n(i," has been removed"+(t?" in "+t:"")),ei.ERR_DEPRECATED);return t&&!e1[i]&&(e1[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}};var e2={assertOptions:function(e,t,r){if("object"!=typeof e)throw new ei("options must be an object",ei.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],a=t[o];if(a){let t=e[o],r=void 0===t||a(t,o,e);if(!0!==r)throw new ei("option "+o+" must be "+r,ei.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ei("Unknown option "+o,ei.ERR_BAD_OPTION)}},validators:e0};let e5=e2.validators;class e4{constructor(e){this.defaults=e,this.interceptors={request:new ev,response:new ev}}request(e,t){let r,n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=eX(this.defaults,t);let{transitional:o,paramsSerializer:a,headers:s}=t;void 0!==o&&e2.assertOptions(o,{silentJSONParsing:e5.transitional(e5.boolean),forcedJSONParsing:e5.transitional(e5.boolean),clarifyTimeoutError:e5.transitional(e5.boolean)}
440,!1),null!=a&&(en.isFunction(a)?t.paramsSerializer={serialize:a}:e2.assertOptions(a,{encode:e5.function,serialize:e5.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(r=s&&en.merge(s.common,s[t.method]))&&en.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=eF.concat(r,s);let u=[],l=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(l=l&&e.synchronous,u.unshift(e.fulfilled,e.rejected))});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let d=0;if(!l){let e=[eY.bind(this),void 0];for(e.unshift.apply(e,u),e.push.apply(e,c),i=e.length,n=Promise.resolve(t);d<i;)n=n.then(e[d++],e[d++]);return n}i=u.length;let f=t;for(d=0;d<i;){let e=u[d++],t=u[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=eY.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,i=c.length;d<i;)n=n.then(c[d++],c[d++]);return n}getUri(e){e=eX(this.defaults,e);let t=eN(e.baseURL,e.url);return ey(t,e.params,e.paramsSerializer)}}en.forEach(["delete","get","head","options"],function(e){e4.prototype[e]=function(t,r){return this.request(eX(r||{},{method:e,url:t,data:(r||{}).data}))}}
440),en.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(eX(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}e4.prototype[e]=t(),e4.prototype[e+"Form"]=t(!0)});class e3{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eL(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;let t=new e3(function(t){e=t});return{token:t,cancel:e}}}let e6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
440alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(e6).forEach(([e,t])=>{e6[t]=e});let e8=function e(t){let r=new e4(t),n=i(e4.prototype.request,r);return en.extend(n,e4.prototype,r,{allOwnKeys:!0}),en.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eX(t,r))},n}(eP);e8.Axios=e4,e8.CanceledError=eL,e8.CancelToken=e3,e8.isCancel=eB,e8.VERSION=eQ,e8.toFormData=ef,e8.AxiosError=ei,e8.Cancel=e8.CanceledError,e8.all=function(e){return Promise.all(e)},e8.spread=function(e){return function(t){return e.apply(null,t)}},e8.isAxiosError=function(e){return en.isObject(e)&&!0===e.isAxiosError},e8.mergeConfig=eX,e8.AxiosHeaders=eF,e8.formToJSON=e=>eC(en.isHTMLForm(e)?new FormData(e):e),e8.HttpStatusCode=e6,e8.default=e8;var e7=e8},19850:function(e,t,r){"use strict";r.d(t,{M:function(){return m}});var n=r(51776),i=r(89029),o=r(91966);function a(){let e=(0,n.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var s=r(59404),u=r(90636);class l extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let r=(0,n.useId)(),i=(0,n.useRef)(null),o=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:e,height:n,top:a,left:s}=o.current;if(t||!i.current||!e||!n)return;i.current.dataset.motionPopId=r;let u=document.createElement("style");return document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
441          [data-motion-pop-id="${r}"] {
442            position: absolute !important;
443            width: ${e}px !important;
444            height: ${n}px !important;
445            top: ${a}px !important;
446            left: ${s}px !important;
447          }
448        `),()=>{document.head.removeChild(u)}},[t]),n.createElement(l,{isPresent:t,childRef:i,sizeRef:o},n.cloneElement(e,{ref:i}))}let d=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:o,presenceAffectsLayout:a,mode:l})=>{let d=(0,u.h)(f),h=(0,n.useId)(),p=(0,n.useMemo)(()=>({id:h,initial:t,isPresent:r,custom:o,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;i&&i()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?void 0:[r]);return(0,n.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[r]),n.useEffect(()=>{r||d.size||!i||i()},[r]),"popLayout"===l&&(e=n.createElement(c,{isPresent:r},e)),n.createElement(s.O.Provider,{value:p},e)};function f(){return new Map}var h=r(67254),p=r(51755);let g=e=>e.key||"",m=({children:e,custom:t,initial:r=!0,onExitComplete:s,exitBeforeEnter:u,presenceAffectsLayout:l=!0,mode:c="sync"})=>{var f;(0,p.k)(!u,"Replace exitBeforeEnter with mode='wait'");let m=(0,n.useContext)(h.p).forceRender||function(){let e=a(),[t,r]=(0,n.useState)(0),o=(0,n.useCallback)(()=>{e.current&&r(t+1)},[t]),s=(0,n.useCallback)(()=>i.Wi.postRender(o),[o]);return[s,t]}()[0],y=a(),v=function(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}(e),b=v,w=(0,n.useRef)(new Map).current,S=(0,n.useRef)(b),x=(0,n.useRef)(new Map).current,_=(0,n.useRef)(!0);if((0,o.L)(()=>
448{_.current=!1,function(e,t){e.forEach(e=>{let r=g(e);t.set(r,e)})}(v,x),S.current=b}),f=()=>{_.current=!0,x.clear(),w.clear()},(0,n.useEffect)(()=>()=>f(),[]),_.current)return n.createElement(n.Fragment,null,b.map(e=>n.createElement(d,{key:g(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:l,mode:c},e)));b=[...b];let k=S.current.map(g),A=v.map(g),C=k.length;for(let e=0;e<C;e++){let t=k[e];-1!==A.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===c&&w.size&&(b=[]),w.forEach((e,r)=>{if(-1!==A.indexOf(r))return;let i=x.get(r);if(!i)return;let o=k.indexOf(r),a=e;if(!a){let e=()=>{x.delete(r),w.delete(r);let e=S.current.findIndex(e=>e.key===r);if(S.current.splice(e,1),!w.size){if(S.current=v,!1===y.current)return;m(),s&&s()}};a=n.createElement(d,{key:g(i),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:l,mode:c},i),w.set(r,a)}b.splice(o,0,a)}),b=b.map(e=>{let t=e.key;return w.has(t)?e:n.createElement(d,{key:g(e),isPresent:!0,presenceAffectsLayout:l,mode:c},e)}),n.createElement(n.Fragment,null,w.size?b:b.map(e=>(0,n.cloneElement)(e)))}},72164:function(e,t,r){"use strict";r.d(t,{hO:function(){return a},oO:function(){return o}});var n=r(51776),i=r(59404);function o(){let e=(0,n.useContext)(i.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:o}=e,a=(0,n.useId)();(0,n.useEffect)(()=>o(a),[]);let s=()=>r&&r(a);return!t&&r?[!1,s]:[!0]}function a(){var e;return null===(e=(0,n.useContext)(i.O))||e.isPresent}},67254:function(e,t,r){"use strict";r.d(t,{p:function(){return i}});var n=r(51776);let i=(0,n.createContext)({})},59404:function(e,t,r){"use strict";r.d(t,{O:function(){return i}});var n=r(51776);let i=(0,n.createContext)(null)},14373:function(e,t,r){"use strict";r.d(t,{w:function(){return n}});let n={delta:0,timestamp:0,isProcessing:!1}},89029:function(e,t,r){"use strict";r.d(t,{Pn:function(){return f},Wi:function(){return d},S6:function(){return s}});var n=r(14373);let i=!0,o=!1,a=["read","update","preRender","render","postRender"],s=a.reduce((e,t)=>(e[t]=function(e){let t=[],r=[],n=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let u=s&&i,l=u?t:r;return o&&a.add(e),-1===l.indexOf(e)&&(l.push(e),u&&i&&(n=t.length)),e},cancel:e=>{let t=r.indexOf(e);-1!==t&&r.splice(t,1),a.delete(e)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length)for(let r=0;r<n;r++){let n=t[r];n(u),a.has(n)&&(s.schedule(n),e())}i=!1,o&&(o=!1,s.process(u))}};return s}(()=>o=!0),e),{}),u=e=>s[e].process(n.w),l=e=>{o=!1,n.w.delta=i?1e3/60:Math.max(Math.min(e-n.w.timestamp,40),1),n.w.timestamp=e,n.w.isProcessing=!0,a.forEach(u),n.w.isProcessing=!1,o&&(i=!1,requestAnimationFrame(l))},c=()=>{o=!0,i=!0,n.w.isProcessing||requestAnimationFrame(l)},d=a.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,n=!1)=>(o||c(),r.schedule(e,t,n)),e},{});function f(e){a.forEach(t=>s[t].cancel(e))}},17149:function(e,t,r){"use strict";r.d(t,{E:function(){return iF}});var n,i=r(51776);let o=(0,i.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),a=(0,i.createContext)({});var s=r(59404),u=r(91966);let l=(0,i.createContext)({strict:!1});function c(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function d(e){return"string"==typeof e||Array.isArray(e)}function f(e){return"object"==typeof e&&"function"==typeof e.start}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...h];function g(e){return f(e.animate)||p.some(t=>d(e[t]))}function m(e){return!!(g(e)||e.variants)}function y(e){return Array.isArray(e)?e.join(" "):e}let v={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},b={};for(let e in v)b[e]={isEnabled:t=>v[e].some(e=>!!t[e])};var w=r(86608),S=r(67254);let x=(0,i.createContext)({}),_=Symbol.for("motionComponentSymbol"),k=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function A(e){if("string"!=typeof e||e.includes("-"));else if(k.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let C={},E=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],P=new Set(E);function T(e,{layout:t,layoutId:r}){return P.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!C[e]||"opacity"===e)}let O=e=>!!(e&&e.getVelocity),I={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},R=E.length,M=e=>t=>"string"==typeof t&&t.startsWith(e),D=M("--"),j=M("var(--"),F=(e,t)=>t&&"number"==typeof e?t.transform(e):e,U=(e,t,r)=>
448Math.min(Math.max(r,e),t),B={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},L={...B,transform:e=>U(0,1,e)},z={...B,default:1},N=e=>Math.round(1e5*e)/1e5,V=/(-)?([\d]*\.?[\d])+/g,$=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,W=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function q(e){return"string"==typeof e}let H=e=>({test:t=>q(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),G=H("deg"),K=H("%"),J=H("px"),Y=H("vh"),Z=H("vw"),X={...K,parse:e=>K.parse(e)/100,transform:e=>K.transform(100*e)},Q={...B,transform:Math.round},ee={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,radius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,size:J,top:J,right:J,bottom:J,left:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:z,scaleX:z,scaleY:z,scaleZ:z,skew:G,skewX:G,skewY:G,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:L,originX:X,originY:X,originZ:J,zIndex:Q,fillOpacity:L,strokeOpacity:L,numOctaves:Q};function et(e,t,r,n){let{style:i,vars:o,transform:a,transformOrigin:s}=e,u=!1,l=!1,c=!0;for(let e in t){let r=t[e];if(D(e)){o[e]=r;continue}let n=ee[e],d=F(r,n);if(P.has(e)){if(u=!0,a[e]=d,!c)continue;r!==(n.default||0)&&(c=!1)}else e.startsWith("origin")?(l=!0,s[e]=d):i[e]=d}if(!t.transform&&(u||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let t=0;t<R;t++){let r=E[t];if(void 0!==e[r]){let t=I[r]||r;o+=`${t}(${e[r]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(e,n?"":o):r&&n&&(o="none"),o}(e.transform,r,c,n):i.transform&&(i.transform="none")),l){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let er=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function en(e,t,r){for(let n in t)O(t[n])||T(n,r)||(e[n]=t[n])}function ei(e,t,r){let n={},o=function(e,t,r){let n=e.style||{},o={};return en(o,n,e),Object.assign(o,function({transformTemplate:e},t,r){return(0,i.useMemo)(()=>{let n=er();return et(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),e.transformValues?e.transformValues(o):o}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}let eo=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function ea(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||eo.has(e)}let es=e=>!ea(e);try{(n=require("@emotion/is-prop-valid").default)&&(es=e=>e.startsWith("on")?!ea(e):n(e))}catch(e){}function eu(e,t,r){return"string"==typeof e?e:J.transform(t+r*e)}let el={offset:"stroke-dashoffset",array:"stroke-dasharray"},ec={offset:"strokeDashoffset",array:"strokeDasharray"};function ed(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:u=0,...l},c,d,f){if(et(e,l,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:h,style:p,dimensions:g}=e;h.transform&&(g&&(p.transform=h.transform),delete h.transform),g&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,r){let n=eu(t,e.x,e.width),i=eu(r,e.y,e.height);return`${n} ${i}`}(g,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==r&&(h.y=r),void 0!==n&&(h.scale=n),void 0!==a&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?el:ec;e[o.offset]=J.transform(-n);let a=J.transform(t),s=J.transform(r);e[o.array]=`${a} ${s}`}(h,a,s,u,!1)}let ef=()=>({...er(),attrs:{}}),eh=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ep(e,t,r,n){let o=(0,i.useMemo)(()=>{let r=ef();return ed(r,t,{enableHardwareAcceleration:!1},eh(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};en(t,e.style,e),o.style={...t,...o.style}}return o}let eg=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function em(e,{style:t,vars:r},n,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(o,r[o])}let ey=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ev(e,t,r,n){for(let r in em(e,t,void 0,n),t.attrs)e.setAttribute(ey.has(r)?r:eg(r),t.attrs[r])}function eb(e,t){let{style:r}=e,n={};for(let i in r)(O(r[i])||t.style&&O(t.style[i])||T(i,e))&&(n[i]=r[i]);return n}function ew(e,t){let r=eb(e,t);for(let n in e)if(O(e[n])||O(t[n])){let t=-1!==E.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[t]=e[n]}return r}function eS(e,t,r,n={},i={}){return"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==r?r:e.custom,n,i)),t}
448var ex=r(90636);let e_=e=>Array.isArray(e),ek=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eA=e=>e_(e)?e[e.length-1]||0:e;function eC(e){let t=O(e)?e.get():e;return ek(t)?t.toValue():t}let eE=e=>(t,r)=>{let n=(0,i.useContext)(a),o=(0,i.useContext)(s.O),u=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let a={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=eC(o[e]);let{initial:a,animate:s}=e,u=g(e),l=m(e);t&&l&&!u&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;let d=c?s:a;if(d&&"boolean"!=typeof d&&!f(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=eS(e,t);if(!r)return;let{transitionEnd:n,transition:o,...a}=r;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(a.mount=e=>r(n,e,a)),a})(e,t,n,o);return r?u():(0,ex.h)(u)},eP={useVisualState:eE({scrapeMotionValuesFromProps:ew,createRenderState:ef,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}ed(r,n,{enableHardwareAcceleration:!1},eh(t.tagName),e.transformTemplate),ev(t,r)}})},eT={useVisualState:eE({scrapeMotionValuesFromProps:eb,createRenderState:er})};function eO(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let eI=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function eR(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let eM=e=>t=>eI(t)&&e(t,eR(t));function eD(e,t,r,n){return eO(e,t,eM(r),n)}let ej=(e,t)=>r=>t(e(r)),eF=(...e)=>e.reduce(ej);function eU(e){let t=null;return()=>{let r=()=>{t=null};return null===t&&(t=e,r)}}let eB=eU("dragHorizontal"),eL=eU("dragVertical");function ez(e){let t=!1;if("y"===e)t=eL();else if("x"===e)t=eB();else{let e=eB(),r=eL();e&&r?t=()=>{e(),r()}
448:(e&&e(),r&&r())}return t}function eN(){let e=ez(!0);return!e||(e(),!1)}class eV{constructor(e){this.isMounted=!1,this.node=e}update(){}}var e$=r(89029);function eW(e,t){let r="onHover"+(t?"Start":"End"),n=(n,i)=>{if("touch"===n.type||eN())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&e$.Wi.update(()=>o[r](n,i))};return eD(e.current,"pointer"+(t?"enter":"leave"),n,{passive:!e.getProps()[r]})}let eq=(e,t)=>!!t&&(e===t||eq(e,t.parentElement));var eH=r(29663);function eG(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,eR(r))}let eK=new WeakMap,eJ=new WeakMap,eY=e=>{let t=eK.get(e.target);t&&t(e)},eZ=e=>{e.forEach(eY)},eX={some:0,all:1};function eQ(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function e0(e,t,r){let n=e.getProps();return eS(n,t,void 0!==r?r:n.custom,function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}let e1="data-"+eg("framerAppearId");var e2=r(51755);let e5=e=>1e3*e,e4=e=>e/1e3,e3={current:!1},e6=e=>Array.isArray(e)&&"number"==typeof e[0],e8=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,e7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e8([0,.65,.55,1]),circOut:e8([.55,0,1,.45]),backIn:e8([.31,.01,.66,-.59]),backOut:e8([.33,1.53,.69,.99])},e9={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},te={},tt={};for(let e in e9)tt[e]=()=>(void 0===te[e]&&(te[e]=e9[e]()),te[e]);let tr=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tn(e,t,r,n){if(e===t&&r===n)return eH.Z;let i=t=>(function(e,t,r,n,i){let o,a;let s=0;do(o=tr(a=t+(r-t)/2,n,i)-e)>0?r=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,r);return e=>0===e||1===e?e:tr(i(e),t,n)}let ti=tn(.42,0,1,1),to=tn(0,0,.58,1),ta=tn(.42,0,.58,1),ts=e=>Array.isArray(e)&&"number"!=typeof e[0],tu=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tl=e=>t=>1-e(1-t),tc=e=>1-Math.sin(Math.acos(e)),td=tl(tc),tf=tu(td),th=tn(.33,1.53,.69,.99),tp=tl(th),tg=tu(tp),tm=e=>(e*=2)<1?.5*tp(e):.5*(2-Math.pow(2,-10*(e-1))),ty={linear:eH.Z,easeIn:ti,easeInOut:ta,easeOut:to,circIn:tc,circInOut:tf,circOut:td,backIn:tp,backInOut:tg,backOut:th,anticipate:tm},tv=e=>{if(Array.isArray(e)){(0,e2.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return tn(t,r,n,i)}return"string"==typeof e?((0,e2.k)(void 0!==ty[e],`Invalid easing type '${e}'`),ty[e]):e},tb=(e,t)=>r=>!!(q(r)&&W.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),tw=(e,t,r)=>n=>{if(!q(n))return n;let[i,o,a,s]=n.match(V);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},tS=e=>U(0,255,e),tx={...B,transform:e=>Math.round(tS(e))},t_={test:tb("rgb","red"),parse:tw("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tx.transform(e)+", "+tx.transform(t)+", "+tx.transform(r)+", "+N(L.transform(n))+")"},tk={test:tb("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:t_.transform},tA={test:tb("hsl","hue"),parse:tw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+K.transform(N(t))+", "+K.transform(N(r))+", "+N(L.transform(n))+")"},tC={test:e=>t_.test(e)||tk.test(e)||tA.test(e),parse:e=>t_.test(e)?t_.parse(e):tA.test(e)?tA.parse(e):tk.parse(e),transform:e=>q(e)?e:e.hasOwnProperty("red")?t_.transform(e):tA.transform(e)},tE=(e,t,r)=>-r*e+r*t+e;function tP(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}let tT=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},tO=[tk,t_,tA],tI=e=>tO.find(t=>t.test(e));function tR(e){let t=tI(e);(0,e2.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===tA&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,a=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;i=tP(s,n,e+1/3),o=tP(s,n,e),a=tP(s,n,e-1/3)}else i=o=a=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:n}}(r)),r}let tM=(e,t)=>{let r=tR(e),n=tR(t),i={...r};return e=>(i.red=tT(r.red,n.red,e),i.green=tT(r.green,n.green,e),i.blue=tT(r.blue,n.blue,e),i.alpha=tE(r.alpha,n.alpha,e),t_.transform(i))}
448,tD={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:eH.Z},tj={regex:$,countKey:"Colors",token:"${c}",parse:tC.parse},tF={regex:V,countKey:"Numbers",token:"${n}",parse:B.parse};function tU(e,{regex:t,countKey:r,token:n,parse:i}){let o=e.tokenised.match(t);o&&(e["num"+r]=o.length,e.tokenised=e.tokenised.replace(t,n),e.values.push(...o.map(i)))}function tB(e){let t=e.toString(),r={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&tU(r,tD),tU(r,tj),tU(r,tF),r}function tL(e){return tB(e).values}function tz(e){let{values:t,numColors:r,numVars:n,tokenised:i}=tB(e),o=t.length;return e=>{let t=i;for(let i=0;i<o;i++)t=i<n?t.replace(tD.token,e[i]):i<n+r?t.replace(tj.token,tC.transform(e[i])):t.replace(tF.token,N(e[i]));return t}}let tN=e=>"number"==typeof e?0:e,tV={test:function(e){var t,r;return isNaN(e)&&q(e)&&((null===(t=e.match(V))||void 0===t?void 0:t.length)||0)+((null===(r=e.match($))||void 0===r?void 0:r.length)||0)>0},parse:tL,createTransformer:tz,getAnimatableNone:function(e){let t=tL(e),r=tz(e);return r(t.map(tN))}},t$=(e,t)=>r=>`${r>0?t:e}`;function tW(e,t){return"number"==typeof e?r=>tE(e,t,r):tC.test(e)?tM(e,t):e.startsWith("var(")?t$(e,t):tG(e,t)}let tq=(e,t)=>{let r=[...e],n=r.length,i=e.map((e,r)=>tW(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}},tH=(e,t)=>{let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=tW(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}},tG=(e,t)=>{let r=tV.createTransformer(t),n=tB(e),i=tB(t),o=n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers;return o?eF(tq(n.values,i.values),r):((0,e2.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),t$(e,t))},tK=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tJ=(e,t)=>r=>tE(e,t,r);function tY(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if((0,e2.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let n=[],i=r||function(e){if("number"==typeof e);else if("string"==typeof e)return tC.test(e)?tM:tG;else if(Array.isArray(e))return tq;else if("object"==typeof e)return tH;return tJ}(e[0]),o=e.length-1;for(let r=0;r<o;r++){let o=i(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||eH.Z:t;o=eF(e,o)}n.push(o)}return n}(t,n,i),s=a.length,u=t=>{let r=0;if(s>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=tK(e[r],e[r+1],t);return a[r](n)};return r?t=>u(U(e[0],e[o-1],t)):u}function tZ({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=ts(n)?n.map(tv):tv(n),o={done:!1,value:t[0]},a=(r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=tK(0,t,n);e.push(tE(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),s=tY(a,t,{ease:Array.isArray(i)?i:t.map(()=>i||ta).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}function tX(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?n*(1e3/i):0}function tQ(e,t){return e*Math.sqrt(1-t*t)}let t0=["duration","bounce"],t1=["stiffness","damping","mass"];function t2(e,t){return t.some(t=>void 0!==e[t])}function t5({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:u,damping:l,mass:c,velocity:d,duration:f,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!t2(e,t1)&&t2(e,t0)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;(0,e2.K)(e<=e5(10),"Spring duration must be 10 seconds or less");let a=1-t;a=U(.05,1,a),e=U(.01,10,e4(e)),a<1?(i=t=>{let n=t*a,i=n*e,o=tQ(t,a);return .001-(n-r)/o*Math.exp(-i)},o=t=>{let n=t*a,o=n*e,s=Math.pow(a,2)*Math.pow(t,2)*e,u=tQ(Math.pow(t,2),a),l=-i(t)+.001>0?-1:1;return l*((o*r+r-s)*Math.exp(-o))/u}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let s=5/e,u=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,s);if(e=e5(e),isNaN(u))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(u,2)*n;
448return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,velocity:0,mass:1}).isResolvedFromDuration=!0}return t}(n),p=d?-e4(d):0,g=l/(2*Math.sqrt(u*c)),m=a-o,y=e4(Math.sqrt(u/c)),v=5>Math.abs(m);if(r||(r=v?.01:2),t||(t=v?.005:.5),g<1){let e=tQ(y,g);i=t=>a-Math.exp(-g*y*t)*((p+g*y*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}else if(1===g)i=e=>a-Math.exp(-y*e)*(m+(p+y*m)*e);else{let e=y*Math.sqrt(g*g-1);i=t=>{let r=Math.min(e*t,300);return a-Math.exp(-g*y*t)*((p+g*y*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:h&&f||null,next:e=>{let n=i(e);if(h)s.done=e>=f;else{let o=p;0!==e&&(o=g<1?tX(i,e,n):0);let u=Math.abs(o)<=r,l=Math.abs(a-n)<=t;s.done=u&&l}return s.value=s.done?a:n,s}}}function t4({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:u,restDelta:l=.5,restSpeed:c}){let d,f;let h=e[0],p={done:!1,value:h},g=e=>void 0!==s&&e<s||void 0!==u&&e>u,m=e=>void 0===s?u:void 0===u?s:Math.abs(s-e)<Math.abs(u-e)?s:u,y=r*t,v=h+y,b=void 0===a?v:a(v);b!==v&&(y=b-h);let w=e=>-y*Math.exp(-e/n),S=e=>b+w(e),x=e=>{let t=w(e),r=S(e);p.done=Math.abs(t)<=l,p.value=p.done?b:r},_=e=>{g(p.value)&&(d=e,f=t5({keyframes:[p.value,m(p.value)],velocity:tX(S,e,p.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return _(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,x(e),_(e)),void 0!==d&&e>d)?f.next(e-d):(t||x(e),p)}}}var t3=r(14373);let t6=e=>{let t=({timestamp:t})=>e(t);return{start:()=>e$.Wi.update(t,!0),stop:()=>(0,e$.Pn)(t),now:()=>t3.w.isProcessing?t3.w.timestamp:performance.now()}};function t8(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}let t7={decay:t4,inertia:t4,tween:tZ,keyframes:tZ,spring:t5};function t9({autoplay:e=!0,delay:t=0,driver:r=t6,keyframes:n,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",onPlay:u,onStop:l,onComplete:c,onUpdate:d,...f}){let h,p,g,m,y,v=1,b=!1,w=()=>{h&&h(),p=new Promise(e=>{h=e})};w();let S=t7[i]||tZ;S!==tZ&&"number"!=typeof n[0]&&(m=tY([0,100],n,{clamp:!1}),n=[0,100]);let x=S({...f,keyframes:n});"mirror"===s&&(y=S({...f,keyframes:[...n].reverse(),velocity:-(f.velocity||0)}));let _="idle",k=null,A=null,C=null;null===x.calculatedDuration&&o&&(x.calculatedDuration=t8(x));let{calculatedDuration:E}=x,P=1/0,T=1/0;null!==E&&(T=(P=E+a)*(o+1)-a);let O=0,I=e=>{if(null===A)return;v>0&&(A=Math.min(A,e)),O=null!==k?k:(e-A)*v;let r=O-t,i=r<0;O=Math.max(r,0),"finished"===_&&null===k&&(O=T);let u=O,l=x;if(o){let e=O/P,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,o+1);let n=!!(t%2);n&&("reverse"===s?(r=1-r,a&&(r-=a/P)):"mirror"===s&&(l=y));let i=U(0,1,r);O>T&&(i="reverse"===s&&n?1:0),u=i*P}let c=i?{done:!1,value:n[0]}:l.next(u);m&&(c.value=m(c.value));let{done:f}=c;i||null===E||(f=O>=T);let h=null===k&&("finished"===_||"running"===_&&f||v<0&&O<=0);return d&&d(c.value),h&&D(),c},R=()=>{g&&g.stop(),g=void 0},M=()=>{_="idle",R(),w(),A=C=null},D=()=>{_="finished",c&&c(),R(),w()},j=()=>
448{if(b)return;g||(g=r(I));let e=g.now();u&&u(),null!==k?A=e-k:A&&"finished"!==_||(A=e),C=A,k=null,_="running",g.start()};e&&j();let F={then:(e,t)=>p.then(e,t),get time(){return e4(O)},set time(newTime){O=newTime=e5(newTime),null===k&&g&&0!==v?A=g.now()-newTime/v:k=newTime},get duration(){let e=null===x.calculatedDuration?t8(x):x.calculatedDuration;return e4(e)},get speed(){return v},set speed(newSpeed){if(newSpeed===v||!g)return;v=newSpeed,F.time=e4(O)},get state(){return _},play:j,pause:()=>{_="paused",k=O},stop:()=>{b=!0,"idle"!==_&&(_="idle",l&&l(),M())},cancel:()=>{null!==C&&I(C),M()},complete:()=>{_="finished"},sample:e=>(A=0,I(e))};return F}let re=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),rt=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function e(t){return!!(!t||"string"==typeof t&&e7[t]||e6(t)||Array.isArray(t)&&t.every(e))}(t.ease),rr={type:"spring",stiffness:500,damping:25,restSpeed:10},rn=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ri={type:"keyframes",duration:.8},ro={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ra=(e,{keyframes:t})=>t.length>2?ri:P.has(e)?e.startsWith("scale")?rn(t[1]):rr:ro,rs=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tV.test(t)||"0"===t)&&!t.startsWith("url(")),ru=new Set(["brightness","contrast","saturate","opacity"]);function rl(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(V)||[];if(!n)return e;let i=r.replace(n,""),o=ru.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let rc=/([a-z-]*)\(.*?\)/g,rd={...tV,getAnimatableNone:e=>{let t=e.match(rc);return t?t.map(rl).join(" "):e}},rf={...ee,color:tC,backgroundColor:tC,outlineColor:tC,fill:tC,stroke:tC,borderColor:tC,borderTopColor:tC,borderRightColor:tC,borderBottomColor:tC,borderLeftColor:tC,filter:rd,WebkitFilter:rd},rh=e=>rf[e];function rp(e,t){let r=rh(e);return r!==rd&&(r=tV),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let rg=e=>/^0[^.\s]+$/.test(e);function rm(e,t){return e[t]||e.default||e}let ry=(e,t,r,n={})=>i=>{let o=rm(n,e)||{},a=o.delay||n.delay||0,{elapsed:s=0}=n;s-=e5(a);let u=function(e,t,r,n){let i,o;let a=rs(t,r);i=Array.isArray(r)?[...r]:[null,r];let s=void 0!==n.from?n.from:e.get(),u=[];for(let e=0;e<i.length;e++){var l;null===i[e]&&(i[e]=0===e?s:i[e-1]),("number"==typeof(l=i[e])?0===l:null!==l?"none"===l||"0"===l||rg(l):void 0)&&u.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(o=i[e])}if(a&&u.length&&o)for(let e=0;e<u.length;e++){let r=u[e];i[r]=rp(t,o)}return i}(t,e,r,o),l=u[0],c=u[u.length-1],d=rs(e,l),f=rs(e,c);(0,e2.K)(d===f,`You are trying to animate ${e} from "${l}" to "${c}". ${l} is not an animatable value - to enable this animation set ${l} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:u,velocity:t.getVelocity(),ease:"easeOut",...o,delay:-s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:u,elapsed:l,...c}){return!!Object.keys(c).length}(o)&&(h={...h,...ra(e,h)}),h.duration&&(h.duration=e5(h.duration)),h.repeatDelay&&(h.repeatDelay=e5(h.repeatDelay)),!d||!f||e3.current||!1===o.type)return function({keyframes:e,delay:t,onUpdate:r,onComplete:n}){let i=()=>(r&&r(e[e.length-1]),n&&n(),{time:0,speed:1,duration:0,play:eH.Z,pause:eH.Z,stop:eH.Z,then:e=>(e(),Promise.resolve()),cancel:eH.Z,complete:eH.Z});return t?t9({keyframes:[0,1],duration:0,delay:t,onComplete:i}):i()}(h);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let r=function(e,t,{onUpdate:r,onComplete:n,...i}){let o,a;let s=tt.waapi()&&re.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type;if(!s)return!1;let u=!1,l=()=>{a=new Promise(e=>{o=e})};l();let{keyframes:c,duration:d=300,ease:f,times:h}=i;if(rt(t,i)){let e=t9({...i,repeat:0,delay:0}),t={done:!1,value:c[0]},r=[],n=0;for(;!t.done&&n<2e4;)r.push((t=e.sample(n)).value),n+=10;h=void 0,c=r,d=n-10,f="linear"}let p=function(e,t,r,{delay:n=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:u}={}){let l={[t]:r};u&&(l.offset=u);let c=function e(t){if(t)return e6(t)?e8(t):Array.isArray(t)?t.map(e):e7[t]}(s);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...i,duration:d,ease:f,times:h}),g=()=>p.cancel(),m=()=>{e$.Wi.update(g),o(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:r="loop"}){let n=t&&"loop"!==r&&t%2==1?0:e.length-1;return e[n]}(c,i)),n&&n(),m()},{then:(e,t)=>a.then(e,t),get time(){return e4(p.currentTime||0)},set time(newTime){p.currentTime=e5(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return e4(d)},play:()=>{u||(p.play(),(0,e$.Pn)(g))},pause:()=>p.pause(),stop:()=>
448{if(u=!0,"idle"===p.playState)return;let{currentTime:t}=p;if(t){let r=t9({...i,autoplay:!1});e.setWithVelocity(r.sample(t-10).value,r.sample(t).value,10)}m()},complete:()=>p.finish(),cancel:m}}(t,e,h);if(r)return r}return t9(h)};function rv(e){return!!(O(e)&&e.add)}let rb=e=>/^\-?\d*\.?\d+$/.test(e);function rw(e,t){-1===e.indexOf(t)&&e.push(t)}function rS(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class rx{constructor(){this.subscriptions=[]}add(e){return rw(this.subscriptions,e),()=>rS(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let r_=e=>!isNaN(parseFloat(e));class rk{constructor(e,t={}){this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:r,timestamp:n}=t3.w;this.lastUpdated!==n&&(this.timeDelta=r,this.lastUpdated=n,e$.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>e$.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=r_(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new rx);let r=this.events[e].add(t);return"change"===e?()=>{r(),e$.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function rA(e,t){return new rk(e,t)}let rC=e=>t=>t.test(e),rE=[B,J,K,G,Z,Y,{test:e=>"auto"===e,parse:e=>e}],rP=e=>rE.find(rC(e)),rT=[...rE,tC,tV],rO=e=>rT.find(rC(e));function rI(e,t,{delay:r=0,transitionOverride:n,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t),u=e.getValue("willChange");n&&(o=n);let l=[],c=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let n=e.getValue(t),i=s[t];if(!n||void 0===i||c&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(c,t))continue;let a={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!n.hasAnimated){let r=e.getProps()[e1];r&&(a.elapsed=window.HandoffAppearAnimations(r,t,n,e$.Wi))}n.start(ry(t,n,i,e.shouldReduceMotion&&P.has(t)?{type:!1}:a));let d=n.animation;rv(u)&&(u.add(t),d.then(()=>u.remove(t))),l.push(d)}return a&&Promise.all(l).then(()=>{a&&function(e,t){let r=e0(e,t),{transitionEnd:n={},transition:i={},...o}=r?e.makeTargetAnimatable(r,!1):{};for(let t in o={...o,...n}){var a;let r=eA(o[t]);a=t,e.hasValue(a)?e.getValue(a).set(r):e.addValue(a,rA(r))}}(e,a)}),l}function rR(e,t,r={}){let n=e0(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);let o=n?()=>Promise.all(rI(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*n,u=1===i?(e=0)=>e*n:(e=0)=>s-e*n;
448return Array.from(e.variantChildren).sort(rM).forEach((e,n)=>{e.notify("AnimationStart",t),a.push(rR(e,t,{...o,delay:r+u(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:s}=i;if(!s)return Promise.all([o(),a(r.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function rM(e,t){return e.sortNodePosition(t)}let rD=[...h].reverse(),rj=h.length;function rF(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let rU=0,rB=(e,t)=>Math.abs(e-t);class rL{constructor(e,t,{transformPagePoint:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rV(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){let r=rB(e.x,t.x),n=rB(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:n}=e,{timestamp:i}=t3.w;this.history.push({...n,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rz(t,this.transformPagePoint),e$.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:r,onSessionEnd:n}=this.handlers,i=rV("pointercancel"===e.type?this.lastMoveEventInfo:rz(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!eI(e))return;this.handlers=t,this.transformPagePoint=r;let n=eR(e),i=rz(n,this.transformPagePoint),{point:o}=i,{timestamp:a}=t3.w;this.history=[{...o,timestamp:a}];let{onSessionStart:s}=t;s&&s(e,rV(i,this.history)),this.removeListeners=eF(eD(window,"pointermove",this.handlePointerMove),eD(window,"pointerup",this.handlePointerUp),eD(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,e$.Pn)(this.updatePoint)}}function rz(e,t){return t?{point:t(e.point)}:e}function rN(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rV({point:e},t){return{point:e,delta:rN(e,r$(t)),offset:rN(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=r$(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>e5(.1)));)r--;if(!n)return{x:0,y:0};let o=e4(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function r$(e){return e[e.length-1]}function rW(e){return e.max-e.min}function rq(e,t=0,r=.01){return Math.abs(e-t)<=r}function rH(e,t,r,n=.5){e.origin=n,e.originPoint=tE(t.min,t.max,e.origin),e.scale=rW(r)/rW(t),(rq(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=tE(r.min,r.max,e.origin)-e.originPoint,(rq(e.translate)||isNaN(e.translate))&&(e.translate=0)}function rG(e,t,r,n){rH(e.x,t.x,r.x,n?n.originX:void 0),rH(e.y,t.y,r.y,n?n.originY:void 0)}function rK(e,t,r){e.min=r.min+t.min,e.max=e.min+rW(t)}function rJ(e,t,r){e.min=t.min-r.min,e.max=e.min+rW(t)}function rY(e,t,r){rJ(e.x,t.x,r.x),rJ(e.y,t.y,r.y)}function rZ(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rX(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function rQ(e,t,r){return{min:r0(e,t),max:r0(e,r)}}function r0(e,t){return"number"==typeof e?e:e[t]||0}let r1=()=>({translate:0,scale:1,origin:0,originPoint:0}),r2=()=>({x:r1(),y:r1()}),r5=()=>({min:0,max:0}),r4=()=>({x:r5(),y:r5()});function r3(e){return[e("x"),e("y")]}function r6({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function r8(e){return void 0===e||1===e}function r7({scale:e,scaleX:t,scaleY:r}){return!r8(e)||!r8(t)||!r8(r)}function r9(e){return r7(e)||ne(e)||e.z||e.rotate||e.rotateX||e.rotateY}function ne(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function nt(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function nr(e,t=0,r=1,n,i){e.min=nt(e.min,t,r,n,i),e.max=nt(e.max,t,r,n,i)}function nn(e,{x:t,y:r}){nr(e.x,t.translate,t.scale,t.originPoint),nr(e.y,r.translate,r.scale,r.originPoint)}function ni(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function no(e,t){e.min=e.min+t,e.max=e.max+t}function na(e,t,[r,n,i]){let o=void 0!==t[i]?t[i]:.5,a=tE(e.min,e.max,o);nr(e,t[r],t[n],a,t.scale)}let ns=["x","scaleX","originX"],nu=["y","scaleY","originY"];function nl(e,t){na(e.x,t,ns),na(e.y,t,nu)}function nc(e,t){return r6(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}let nd=new WeakMap;
448class nf{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=r4(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let n=e=>{this.stopAnimation(),t&&this.snapToCursor(eR(e,"page").point)},i=(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=ez(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),r3(e=>{let t=this.getAxisMotionValue(e).get()||0;if(K.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=rW(n);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&e$.Wi.update(()=>i(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},o=(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:a}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},a=(e,t)=>this.stop(e,t);this.panSession=new rL(e,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&e$.Wi.update(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!nh(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?tE(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?tE(r,e,n.max):Math.min(e,r)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:r}=this.visualElement.projection||{},n=this.constraints;e&&c(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:rZ(e.x,r,i),y:rZ(e.y,t,n)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rQ(e,"left","right"),y:rQ(e,"top","bottom")}}(t),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&r3(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!c(t))return!1;let n=t.current;(0,e2.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,r){let n=nc(e,r),{scroll:i}=t;return i&&(no(n.x,i.offset.x),no(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),a={x:rX((e=i.layout.layoutBox).x,o.x),y:rX(e.y,o.y)};if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=r6(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},u=r3(a=>{if(!nh(a,t,this.currentDirection))return;let u=s&&s[a]||{};o&&(u={min:0,max:0});let l={type:"inertia",velocity:r?e[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(a,l)});return Promise.all(u).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return r.start(ry(e,r,0,t))}stopAnimation(){r3(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),n=r[t];return n||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){r3(t=>{let{drag:r}=this.getProps();if(!nh(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[t];i.set(e[t]-tE(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!c(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};r3(e=>{let t=this.getAxisMotionValue(e);if(t){let r=t.get();n[e]=function(e,t){let r=.5,n=rW(e),i=rW(t);return i>n?r=tK(t.min,t.max-n,e.min):n>i&&(r=tK(e.min,e.max-i,t.min)),U(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),r3(t=>{if(!nh(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];r.set(tE(i,o,n[t]))})}addListeners(){if(!this.visualElement.current)return;nd.set(this.visualElement,this);let e=this.visualElement.current,t=eD(e,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();c(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),r();let o=eO(window,"resize",()=>this.scalePositionWithinConstraints()),a=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(r3(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),a&&a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function nh(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}let np=e=>(t,r)=>{e&&e$.Wi.update(()=>e(t,r))};var ng=r(72164);let nm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ny(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let nv={correct:(e,t)=>
448{if(!t.target)return e;if("string"==typeof e){if(!J.test(e))return e;e=parseFloat(e)}let r=ny(e,t.target.x),n=ny(e,t.target.y);return`${r}% ${n}%`}};class nb extends i.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;Object.assign(C,nS),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||e$.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nw(e){let[t,r]=(0,ng.oO)(),n=(0,i.useContext)(S.p);return i.createElement(nb,{...e,layoutGroup:n,switchLayoutGroup:(0,i.useContext)(x),isPresent:t,safeToRemove:r})}let nS={borderRadius:{...nv,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nv,borderTopRightRadius:nv,borderBottomLeftRadius:nv,borderBottomRightRadius:nv,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=tV.parse(e);if(n.length>5)return e;let i=tV.createTransformer(e),o="number"!=typeof n[0]?1:0,a=r.x.scale*t.x,s=r.y.scale*t.y;n[0+o]/=a,n[1+o]/=s;let u=tE(a,s,.5);return"number"==typeof n[2+o]&&(n[2+o]/=u),"number"==typeof n[3+o]&&(n[3+o]/=u),i(n)}}},nx=["TopLeft","TopRight","BottomLeft","BottomRight"],n_=nx.length,nk=e=>"string"==typeof e?parseFloat(e):e,nA=e=>"number"==typeof e||J.test(e);function nC(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nE=nT(0,.5,td),nP=nT(.5,.95,eH.Z);function nT(e,t,r){return n=>n<e?0:n>t?1:r(tK(e,t,n))}function nO(e,t){e.min=t.min,e.max=t.max}function nI(e,t){nO(e.x,t.x),nO(e.y,t.y)}function nR(e,t,r,n,i){return e-=t,e=n+1/r*(e-n),void 0!==i&&(e=n+1/i*(e-n)),e}function nM(e,t,[r,n,i],o,a){!function(e,t=0,r=1,n=.5,i,o=e,a=e){if(K.test(t)){t=parseFloat(t);let e=tE(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let s=tE(o.min,o.max,n);e===o&&(s-=t),e.min=nR(e.min,t,r,s,i),e.max=nR(e.max,t,r,s,i)}(e,t[r],t[n],t[i],t.scale,o,a)}let nD=["x","scaleX","originX"],nj=["y","scaleY","originY"];function nF(e,t,r,n){nM(e.x,t,nD,r?r.x:void 0,n?n.x:void 0),nM(e.y,t,nj,r?r.y:void 0,n?n.y:void 0)}function nU(e){return 0===e.translate&&1===e.scale}function nB(e){return nU(e.x)&&nU(e.y)}function nL(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function nz(e){return rW(e.x)/rW(e.y)}class nN{constructor(){this.members=[]}add(e){rw(this.members,e),e.scheduleRender()}remove(e){if(rS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}
448scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nV(e,t,r){let n="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(n=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:e,rotateX:t,rotateY:i}=r;e&&(n+=`rotate(${e}deg) `),t&&(n+=`rotateX(${t}deg) `),i&&(n+=`rotateY(${i}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(n+=`scale(${a}, ${s})`),n||"none"}let n$=(e,t)=>e.depth-t.depth;class nW{constructor(){this.children=[],this.isDirty=!1}add(e){rw(this.children,e),this.isDirty=!0}remove(e){rS(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(n$),this.isDirty=!1,this.children.forEach(e)}}let nq=["","X","Y","Z"],nH=0,nG={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function nK({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=nH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{nG.totalNodes=nG.resolvedTargetDeltas=nG.recalculatedProjection=0,this.nodes.forEach(nZ),this.nodes.forEach(n4),this.nodes.forEach(n3),this.nodes.forEach(nX),window.MotionDebug&&window.MotionDebug.record(nG)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new nW)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new rx),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=performance.now(),n=({timestamp:i})=>{let o=i-r;o>=t&&((0,e$.Pn)(n),e(o-t))};return e$.Wi.read(n,!0),()=>(0,e$.Pn)(n)}(n,250),nm.hasAnimatedSinceResize&&(nm.hasAnimatedSinceResize=!1,this.nodes.forEach(n5))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||it,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),u=!this.targetLayout||!nL(this.targetLayout,n)||r,l=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,l);let t={...rm(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||n5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,e$.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
448h(n6),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;let e=this.isUpdateBlocked();if(e){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n0);return}this.isUpdating||this.nodes.forEach(n1),this.isUpdating=!1,this.nodes.forEach(n2),this.nodes.forEach(nJ),this.nodes.forEach(nY),this.clearAllSnapshots();let t=performance.now();t3.w.delta=U(0,1e3/60,t-t3.w.timestamp),t3.w.timestamp=t,t3.w.isProcessing=!0,e$.S6.update.process(t3.w),e$.S6.preRender.process(t3.w),e$.S6.render.process(t3.w),t3.w.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(nQ),this.sharedNodes.forEach(n8)}scheduleUpdateProjection(){e$.Wi.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){e$.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){let t=this.path[e];t.updateScroll()}let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=r4(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!nB(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;e&&(t||r9(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),ir((t=n).x),ir(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return r4();let t=e.measureViewportBox(),{scroll:r}=this.root;return r&&(no(t.x,r.offset.x),no(t.y,r.offset.y)),t}removeElementScroll(e){let t=r4();nI(t,e);for(let r=0;r<this.path.length;r++){let n=this.path[r],{scroll:i,options:o}=n;if(n!==this.root&&i&&o.layoutScroll){if(i.isRoot){nI(t,e);let{scroll:r}=this.root;r&&(no(t.x,-r.offset.x),no(t.y,-r.offset.y))}no(t.x,i.offset.x),no(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let r=r4();nI(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&nl(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),r9(n.latestValues)&&nl(r,n.latestValues)}return r9(this.latestValues)&&nl(r,this.latestValues),r}removeTransform(e){let t=r4();nI(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!r9(r.latestValues))continue;r7(r.latestValues)&&r.updateSnapshot();let n=r4(),i=r.measurePageBox();nI(n,i),nF(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return r9(this.latestValues)&&nF(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==t3.w.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let a=!!this.resumingFrom||this!==o,s=!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget);if(s)return;let{layout:u,layoutId:l}=this.options;if(this.layout&&(u||l)){if(this.resolvedRelativeTargetAt=t3.w.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r4(),this.relativeTargetOrigin=r4(),rY(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=r4(),this.targetWithTransforms=r4()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,rK(r.x,n.x,i.x),rK(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nI(this.target,this.layout.layoutBox),nn(this.target,this.targetDelta)):nI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=r4(),this.relativeTargetOrigin=r4(),rY(this.relativeTargetOrigin,this.target,e.target),nI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nG.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||r7(this.parent.latestValues)||ne(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===t3.w.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nI(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){let i,o;let a=r.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=r[s]).projectionDelta;let a=i.instance;(!a||!a.style||"contents"!==a.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nl(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nn(e,o)),n&&r9(i.latestValues)&&nl(e,i.latestValues))}t.x=ni(t.x),t.y=ni(t.y)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox);let{target:u}=t;if(!u){this.projectionTransform&&(this.projectionDelta=r2(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=r2(),this.projectionDeltaWithTransform=r2());let l=this.projectionTransform;rG(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=nV(this.projectionDelta,this.treeScale),(this.projectionTransform!==l||this.treeScale.x!==a||this.treeScale.y!==s)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),nG.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},a=r2();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=r4(),u=n?n.source:void 0,l=this.layout?this.layout.source:void 0,c=u!==l,d=this.getStack(),f=!d||d.members.length<=1,h=!!(c&&!f&&!0===this.options.crossfade&&!this.path.some(ie));this.animationProgress=0,this.mixTargetDelta=t=>{var n,u;let l=t/1e3;n7(a.x,e.x,l),n7(a.y,e.y,l),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rY(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),n=this.relativeTarget,u=this.relativeTargetOrigin,n9(n.x,u.x,s.x,l),n9(n.y,u.y,s.y,l),r&&nL(this.relativeTarget,r)&&(this.isProjectionDirty=!1),r||(r=r4()),nI(r,this.relativeTarget)),c&&(this.animationValues=o,function(e,t,r,n,i,o){i?(e.opacity=tE(0,void 0!==r.opacity?r.opacity:1,nE(n)),e.opacityExit=tE(void 0!==t.opacity?t.opacity:1,0,nP(n))):o&&(e.opacity=tE(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<n_;i++){let o=`border${nx[i]}Radius`,a=nC(t,o),s=nC(r,o);if(void 0===a&&void 0===s)continue;a||(a=0),s||(s=0);let u=0===a||0===s||nA(a)===nA(s);u?(e[o]=Math.max(tE(nk(a),nk(s),n),0),(K.test(s)||K.test(a))&&(e[o]+="%")):e[o]=s}(t.rotate||r.rotate)&&(e.rotate=tE(t.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,l,h,f)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=l},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,e$.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=e$.Wi.update(()=>{nm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=O(e)?e:rA(e);return n.start(ry("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ii(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||r4();let t=rW(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=rW(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}nI(t,r),nl(t,i),rG(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
448)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nN);let r=this.sharedNodes.get(e);r.add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.rotate||r.rotateX||r.rotateY||r.rotateZ)&&(t=!0),!t)return;let n={};for(let t=0;t<nq.length;t++){let i="rotate"+nq[t];r[i]&&(n[i]=r[i],e.setStaticValue(i,0))}for(let t in e.render(),n)e.setStaticValue(t,n[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,r;let n={};if(!this.instance||this.isSVG)return n;if(!this.isVisible)return{visibility:"hidden"};n.visibility="";let i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=eC(e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eC(e.pointerEvents)||""),this.hasProjected&&!r9(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=nV(this.projectionDeltaWithTransform,this.treeScale,a),i&&(n.transform=i(a,n.transform));let{x:s,y:u}=this.projectionDelta;for(let e in n.transformOrigin=`${100*s.origin}% ${100*u.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,C){if(void 0===a[e])continue;let{correct:t,applyTo:r}=C[e],i="none"===n.transform?a[e]:t(a[e],o);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=o===this?eC(e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(n0),this.root.sharedNodes.clear()}}}function nJ(e){e.updateLayout()}function nY(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,o=r.source!==e.layout.source;"size"===i?r3(e=>{let n=o?r.measuredBox[e]:r.layoutBox[e],i=rW(n);n.min=t[e].min,n.max=n.min+i}):ii(i,r.layoutBox,t)&&r3(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],a=rW(t[n]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)});let a=r2();rG(a,t,r.layoutBox);let s=r2();o?rG(s,e.applyTransform(n,!0),r.measuredBox):rG(s,t,r.layoutBox);let u=!nB(a),l=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let a=r4();rY(a,r.layoutBox,i.layoutBox);let s=r4();rY(s,t,o.layoutBox),nL(a,s)||(l=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nZ(e){nG.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nQ(e){e.clearSnapshot()}function n0(e){e.clearMeasurements()}function n1(e){e.isLayoutDirty=!1}function n2(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function n5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function n4(e){e.resolveTargetDelta()}function n3(e){e.calcProjection()}function n6(e){e.resetRotation()}function n8(e){e.removeLeadSnapshot()}function n7(e,t,r){e.translate=tE(t.translate,0,r),e.scale=tE(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function n9(e,t,r,n){e.min=tE(t.min,r.min,n),e.max=tE(t.max,r.max,n)}function ie(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let it={duration:.45,ease:[.4,0,.1,1]};function ir(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function ii(e,t,r){return"position"===e||"preserve-aspect"===e&&!rq(nz(t),nz(r),.2)}let io=nK({attachResizeListener:(e,t)=>eO(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ia={current:void 0},is=nK({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ia.current){let e=new io({});e.mount(window),e.setOptions({layoutScroll:!0}),ia.current=e}return ia.current},resetTransform:(e,t)=>
448{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),iu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function il(e,t,r=1){(0,e2.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,i]=function(e){let t=iu.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);return o?o.trim():j(i)?il(i,t,r+1):i}let ic=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),id=e=>ic.has(e),ih=e=>Object.keys(e).some(id),ip=e=>e===B||e===J,ig=(e,t)=>parseFloat(e.split(", ")[t]),im=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/);if(i)return ig(i[1],t);{let t=n.match(/^matrix\((.+)\)$/);return t?ig(t[1],e):0}},iy=new Set(["x","y","z"]),iv=E.filter(e=>!iy.has(e)),ib={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:im(4,13),y:im(5,14)},iw=(e,t,r)=>{let n=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),{display:a}=o,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),r.forEach(e=>{s[e]=ib[e](n,o)}),t.render();let u=t.measureViewportBox();return r.forEach(r=>{let n=t.getValue(r);n&&n.jump(s[r]),e[r]=ib[r](u,o)}),e},iS=(e,t,r={},n={})=>{t={...t},n={...n};let i=Object.keys(t).filter(id),o=[],a=!1,s=[];if(i.forEach(i=>{let u;let l=e.getValue(i);if(!e.hasValue(i))return;let c=r[i],d=rP(c),f=t[i];if(e_(f)){let e=f.length,t=null===f[0]?1:0;d=rP(c=f[t]);for(let r=t;r<e&&null!==f[r];r++)u?(0,e2.k)(rP(f[r])===u,"All keyframes must be of the same type"):(u=rP(f[r]),(0,e2.k)(u===d||ip(d)&&ip(u),"Keyframes must be of the same dimension as the current value"))}else u=rP(f);if(d!==u){if(ip(d)&&ip(u)){let e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof f?t[i]=parseFloat(f):Array.isArray(f)&&u===J&&(t[i]=f.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==u?void 0:u.transform)&&(0===c||0===f)?0===c?l.set(u.transform(c)):t[i]=d.transform(f):(a||(o=function(e){let t=[];return iv.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),s.push(i),n[i]=void 0!==n[i]?n[i]:t[i],l.jump(f))}}),!s.length)return{target:t,transitionEnd:n};{let r=s.indexOf("height")>=0?window.pageYOffset:null,i=iw(t,e,s);return o.length&&o.forEach(([t,r])=>{e.getValue(t).set(r)}),e.render(),w.j&&null!==r&&window.scrollTo({top:r}),{target:i,transitionEnd:n}}},ix=(e,t,r,n)=>{var i,o;let a=function(e,{...t},r){let n=e.current;if(!(n instanceof Element))return{target:t,transitionEnd:r};for(let i in r&&(r={...r}),e.values.forEach(e=>{let t=e.get();if(!j(t))return;let r=il(t,n);r&&e.set(r)}),t){let e=t[i];if(!j(e))continue;let o=il(e,n);o&&(t[i]=o,r||(r={}),void 0===r[i]&&(r[i]=e))}return{target:t,transitionEnd:r}}(e,t,n);return t=a.target,n=a.transitionEnd,i=t,o=n,ih(i)?iS(e,i,r,o):{target:i,transitionEnd:o}},i_={current:null},ik={current:!1},iA=new WeakMap,iC=Object.keys(b),iE=iC.length,iP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iT=p.length;class iO{constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>e$.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:s}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=o,this.isControllingVariants=g(t),this.isVariantNode=m(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...l}=this.scrapeMotionValuesFromProps(t,{});for(let e in l){let t=l[e];void 0!==a[e]&&O(t)&&(t.set(a[e],!1),rv(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,iA.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
448h((e,t)=>this.bindToMotionValue(t,e)),ik.current||function(){if(ik.current=!0,w.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>i_.current=e.matches;e.addListener(t),t()}else i_.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||i_.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in iA.delete(this.current),this.projection&&this.projection.unmount(),(0,e$.Pn)(this.notifyUpdate),(0,e$.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let r=P.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&e$.Wi.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,a;for(let e=0;e<iE;e++){let r=iC[e],{isEnabled:n,Feature:i,ProjectionNode:s,MeasureLayout:u}=b[r];s&&(o=s),n(t)&&(!this.features[r]&&i&&(this.features[r]=new i(this)),u&&(a=u))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:e,layout:r,drag:n,dragConstraints:a,layoutScroll:s,layoutRoot:u}=t;this.projection.setOptions({layoutId:e,layout:r,alwaysMeasureLayout:!!n||a&&c(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:s,layoutRoot:u})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):r4()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<iP.length;t++){let r=iP[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){let{willChange:n}=t;for(let i in t){let o=t[i],a=r[i];if(O(o))e.addValue(i,o),rv(n)&&n.add(i);else if(O(a))e.addValue(i,rA(o,{owner:e})),rv(n)&&n.remove(i);else if(a!==o){if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,rA(void 0!==t?t:o,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<iT;e++){let r=p[e],n=this.props[r];(d(n)||!1===n)&&(t[r]=n)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=rA(t,{owner:this}),this.addValue(e,r)),r}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:r}=this.props,n="string"==typeof r||"object"==typeof r?null===(t=eS(this.props,r))||void 0===t?void 0:t[e]:void 0;if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||O(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new rx),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class iI extends iO{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...r},{transformValues:n},i){let o=function(e,t,r){let n={};for(let i in e){let e=function(e,t){if(!t)return;let r=t[e]||t.default||t;return r.from}(i,t);if(void 0!==e)n[i]=e;else{let e=r.getValue(i);e&&(n[i]=e.get())}}return n}(r,e||{},this);if(n&&(t&&(t=n(t)),r&&(r=n(r)),o&&(o=n(o))),i){!function(e,t,r){var n,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],u=t[a],l=null;Array.isArray(u)&&(l=u[0]),null===l&&(l=null!==(i=null!==(n=r[a])&&void 0!==n?n:e.readValue(a))&&void 0!==i?i:t[a]),null!=l&&("string"==typeof l&&(rb(l)||rg(l))?l=parseFloat(l):!rO(l)&&tV.test(u)&&(l=rp(a,u)),e.addValue(a,rA(l,{owner:e})),void 0===r[a]&&(r[a]=l),null!==l&&e.setBaseTarget(a,l))}}(this,r,o);let e=ix(this,r,o,t);t=e.transitionEnd,r=e.target}return{transition:e,transitionEnd:t,...r}}}class iR extends iI{readValueFromInstance(e,t){if(P.has(t)){let e=rh(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(D(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return nc(e,t)}build(e,t,r,n){et(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t){return eb(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;O(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){em(e,t,r,n)}}class iM extends iI{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(P.has(t)){let e=rh(t);return e&&e.default||0}return t=ey.has(t)?t:eg(t),e.getAttribute(t)}measureInstanceViewportBox(){return r4()}scrapeMotionValuesFromProps(e,t){return ew(e,t)}
448build(e,t,r,n){ed(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){ev(e,t,r,n)}mount(e){this.isSVGTag=eh(e.tagName),super.mount(e)}}let iD=(e,t)=>A(e)?new iM(t,{enableHardwareAcceleration:!1}):new iR(t,{enableHardwareAcceleration:!0}),ij={animation:{Feature:class extends eV{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){let i=t.map(t=>rR(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=rR(e,t,r);else{let i="function"==typeof t?e0(e,t,r.custom):t;n=Promise.all(rI(e,i,r))}return n.then(()=>e.notify("AnimationComplete",t))})(e,t,r))),r={animate:rF(!0),whileInView:rF(),whileHover:rF(),whileTap:rF(),whileDrag:rF(),whileFocus:rF(),exit:rF()},n=!0,i=(t,r)=>{let n=e0(e,r);if(n){let{transition:e,transitionEnd:r,...i}=n;t={...t,...i,...r}}return t};function o(o,a){let s=e.getProps(),u=e.getVariantContext(!0)||{},l=[],c=new Set,h={},p=1/0;for(let t=0;t<rj;t++){var g;let m=rD[t],y=r[m],v=void 0!==s[m]?s[m]:u[m],b=d(v),w=m===a?y.isActive:null;!1===w&&(p=t);let S=v===u[m]&&v!==s[m]&&b;if(S&&n&&e.manuallyAnimateOnMount&&(S=!1),y.protectedKeys={...h},!y.isActive&&null===w||!v&&!y.prevProp||f(v)||"boolean"==typeof v)continue;let x=(g=y.prevProp,"string"==typeof v?v!==g:!!Array.isArray(v)&&!eQ(v,g)),_=x||m===a&&y.isActive&&!S&&b||t>p&&b,k=Array.isArray(v)?v:[v],A=k.reduce(i,{});!1===w&&(A={});let{prevResolvedValues:C={}}=y,E={...C,...A},P=e=>{_=!0,c.delete(e),y.needsAnimating[e]=!0};for(let e in E){let t=A[e],r=C[e];h.hasOwnProperty(e)||(t!==r?e_(t)&&e_(r)?!eQ(t,r)||x?P(e):y.protectedKeys[e]=!0:void 0!==t?P(e):c.add(e):void 0!==t&&c.has(e)?P(e):y.protectedKeys[e]=!0)}y.prevProp=v,y.prevResolvedValues=A,y.isActive&&(h={...h,...A}),n&&e.blockInitialAnimation&&(_=!1),_&&!S&&l.push(...k.map(e=>({animation:e,options:{type:m,...o}})))}if(c.size){let t={};
448c.forEach(r=>{let n=e.getBaseTarget(r);void 0!==n&&(t[r]=n)}),l.push({animation:t})}let m=!!l.length;return n&&!1===s.initial&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,n,i){var a;if(r[t].isActive===n)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let s=o(i,t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),f(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends eV{constructor(){super(...arguments),this.id=rU++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e,{custom:null!=r?r:this.node.getProps().custom});t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends eV{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:eX[n]},a=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=t?r:n;o&&o(e)};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;eJ.has(r)||eJ.set(r,{});let n=eJ.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(eZ,{root:e,...t})),n[i]}(t);return eK.set(e,r),n.observe(e),()=>{eK.delete(e),n.unobserve(e)}}(this.node.current,o,a)}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends eV{constructor(){super(...arguments),this.removeStartListeners=eH.Z,this.removeEndListeners=eH.Z,this.removeAccessibleListeners=eH.Z,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;let r=this.node.getProps(),n=(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n}=this.node.getProps();e$.Wi.update(()=>{eq(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)})},i=eD(window,"pointerup",n,{passive:!(r.onTap||r.onPointerUp)}),o=eD(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=eF(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=e=>{if("Enter"!==e.key||this.isPressing)return;let t=e=>{"Enter"===e.key&&this.checkPressEnd()&&eG("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&e$.Wi.update(()=>r(e,t))})};this.removeEndListeners(),this.removeEndListeners=eO(this.node.current,"keyup",t),eG("down",(e,t)=>{this.startPress(e,t)})},t=eO(this.node.current,"keydown",e),r=()=>{this.isPressing&&eG("cancel",(e,t)=>this.cancelPress(e,t))},n=eO(this.node.current,"blur",r);this.removeAccessibleListeners=eF(t,n)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&e$.Wi.update(()=>r(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eN()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&e$.Wi.update(()=>r(e,t))}mount(){let e=this.node.getProps(),t=eD(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=eO(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eF(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends eV{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eF(eO(this.node.current,"focus",()=>this.onFocus()),eO(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends eV{mount(){this.unmount=eF(eW(this.node,!0),eW(this.node,!1))}unmount(){}}},pan:{Feature:class extends eV{constructor(){super(...arguments),this.removePointerDownListener=eH.Z}onPointerDown(e){this.session=new rL(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:np(e),onStart:np(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&e$.Wi.update(()=>n(e,t))}}}mount(){this.removePointerDownListener=eD(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends eV{constructor(e){super(e),this.removeGroupControls=eH.Z,this.removeListeners=eH.Z,this.controls=new nf(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eH.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:is,MeasureLayout:nw},layout:{ProjectionNode:is,MeasureLayout:nw}},iF=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:f}){e&&function(e){for(let t in e)b[t]={...b[t],...e[t]}}(e);let h=(0,i.forwardRef)(function(h,p){var m,v;let b;let _={...(0,i.useContext)(o),...h,layoutId:function({layoutId:e}){let t=(0,i.useContext)(S.p).id;return t&&void 0!==e?t+"-"+e:e}(h)},{isStatic:k}=_,A=function(e){let{initial:t,animate:r}=function(e,t){if(g(e)){let{initial:t,animate:r}=e;return{initial:!1===t||d(t)?t:void 0,animate:d(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,i.useContext)(a));return(0,i.useMemo)(()=>({initial:t,animate:r}),[y(t),y(r)])}(h),C=n(h,k);if(!k&&w.j){A.visualElement=function(e,t,r,n){let{visualElement:c}=(0,i.useContext)(a),d=(0,i.useContext)(l),f=(0,i.useContext)(s.O),h=(0,i.useContext)(o).reducedMotion,p=(0,i.useRef)();n=n||d.renderer,!p.current&&n&&(p.current=n(e,{visualState:t,parent:c,props:r,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:h}));let g=p.current;(0,i.useInsertionEffect)(()=>{g&&g.update(r,f)}),(0,u.L)(()=>{g&&g.render()}),(0,i.useEffect)(()=>{g&&g.updateFeatures()});let m=window.HandoffAppearAnimations?u.L:i.useEffect;return m(()=>{g&&g.animationState&&g.animationState.animateChanges()}),g}(f,C,_,t);let r=(0,i.useContext)(x),n=(0,i.useContext)(l).strict;A.visualElement&&(b=A.visualElement.loadFeatures(_,n,e,r))}return i.createElement(a.Provider,{value:A},b&&A.visualElement?i.createElement(b,{visualElement:A.visualElement,..._}):null,r(f,h,(m=A.visualElement,v=p,(0,i.useCallback)(e=>{e&&C.mount&&C.mount(e),m&&(e?m.mount(e):m.unmount()),v&&("function"==typeof v?v(e):c(v)&&(v.current=e))},[m])),C,k,A.visualElement))});return h[_]=f,h}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},r,n){let o=A(e)?eP:eT;return{...o,preloadedFeatures:r,useRender:function(e=!1){let t=(t,r,n,{latestValues:o},a)=>{let s=A(t)?ep:ei,u=s(r,o,a,t),l=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(es(i)||!0===r&&ea(i)||!t&&!ea(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),c={...l,...u,ref:n},{children:d}=r,f=(0,i.useMemo)(()=>O(d)?d.get():d,[d]);return(0,i.createElement)(t,{...c,children:f})};return t}(t),createVisualElement:n,Component:e}})(e,t,ij,iD))},51755:function(e,t,r){"use strict";r.d(t,{K:function(){return i},k:function(){return o}});var n=r(29663);let i=n.Z,o=n.Z},86608:function(e,t,r){"use strict";r.d(t,{j:function(){return n}});let n="undefined"!=typeof document},29663:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=e=>e},90636:function(e,t,r){"use strict";r.d(t,{h:function(){return i}});var n=r(51776);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},91966:function(e,t,r){"use strict";r.d(t,{L:function(){return o}});var n=r(51776),i=r(86608);let o=i.j?n.useLayoutEffect:n.useEffect},65482:function(e,t,r){"use strict";r.d(t,{CR:function(){return c},Jh:function(){return l},ZT:function(){return i},_T:function(){return a},ev:function(){return d},gn:function(){return s},mG:function(){return u},pi:function(){return o}});
448var 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){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,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 l(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 c(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 d(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},50608:function(e){"use strict";e.exports=JSON.parse('{"locales":["hu","en"],"defaultLocale":"hu","localeDetection":false,"pages":{"*":["landing/common","errors/awsErrors","errors/apiErrors"],"/":["landing/home"],"/kapcsolat":["landing/contact"],"/kiallitok":["landing/exhibitors"],"/kiallitok/[id]":["landing/exhibitors"],"/jelentkezesek":["landing/apply"],"/profiladatok":["landing/profil"],"/allasajanlatok":["landing/jobOffers"],"/allasajanlatok/[id]":["landing/jobOffers"],"/felkeszito-napok":["landing/prepdays"],"/sajto":["landing/press"],"/adatkezelesi-szabalyzat":["landing/cookie"],"/kiallitoknak":["landing/exhibitors","landing/home","landing/forExhibitors"],"/kiallitoknak/extrak":["landing/exhibitors"],"/kiallito":["partner/common","partner/home"],"/kiallito/regisztracio":["partner/common","partner/home"],"/kiallito/regisztracio/koszonjuk":["partner/common","partner/home"],"/kiallito/regisztracio/siker":["partner/common","partner/home"],"/kiallito/elfelejtett-jelszo":["partner/common","partner/home"],"/kiallito/uj-jelszo":["partner/common","partner/home"],"/kiallito/fooldal":["partner/common","partner/mainPage"],"/kiallito/fooldal/aloldal":["partner/common","partner/mainPage"],"/kiallito/fooldal/adatok-kitoltese":["partner/common","partner/mainPage"],"/kiallito/fooldal/profiladatok":["partner/common","partner/mainPage"],"/kiallito/fooldal/foglalasok":["partner/common","partner/mainPage"],"/kiallito/fooldal/foglalasok/[...eventApplicationId]":["partner/common","partner/mainPage"],"/kiallito/fooldal/allasok":["partner/common","partner/mainPage"],"/kiallito/fooldal/allasok/jelentkezok/[...jobOfferId]":["partner/common","partner/mainPage"],"/kiallito/fooldal/allasok/reszletek/[...eventApplicationId]":["partner/common","partner/mainPage"],"/kiallito/stand":["partner/common","partner/booth","partner/extras"],"/kiallito/stand/osszegzes":["partner/common","partner/booth","partner/mainPage"],"/kiallito/stand/reszletek":["partner/common","partner/booth","partner/mainPage"],"/kiallito/extrak":["partner/common","partner/extras","partner/mainPage"],"/kiallito/online-extrak":["partner/common","partner/extras"],"/kiallito/promocios-anyagok":["partner/common","partner/promotional"]}}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[9774,179],function(){return t(6840),t(98058)}),_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.