From 1e2c64d67ac60aab6729c39e857544a530b57e82 Mon Sep 17 00:00:00 2001 From: saladilakshman <103055304+saladilakshman@users.noreply.github.com> Date: Sat, 9 Mar 2024 23:55:45 +0530 Subject: [PATCH] Updates --- assets/exercise-J8FIblSv.js | 6 ++++++ assets/exercise-obFx-0z2.js | 6 ------ assets/{index-eYoCcVS1.js => index-ntPwLium.js} | 2 +- index.html | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 assets/exercise-J8FIblSv.js delete mode 100644 assets/exercise-obFx-0z2.js rename assets/{index-eYoCcVS1.js => index-ntPwLium.js} (99%) diff --git a/assets/exercise-J8FIblSv.js b/assets/exercise-J8FIblSv.js new file mode 100644 index 0000000..2a776f4 --- /dev/null +++ b/assets/exercise-J8FIblSv.js @@ -0,0 +1,6 @@ +import{r as N,j as u,L as J,T as R,G as fe,B as w,k as Qe,a as W,u as Ze,P as _e,S as U,C as pe,b as $e,I as v,d as je,c as Oe,e as et,f as tt,g as nt,h as rt}from"./index-ntPwLium.js";const st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAcWSURBVHgBzVrdVdtKEJ6Rf/J43QHKCSZ5w3RgKgipAFNBSAVABZAKgApwKgAqgLzlBnKiVHCVtyS2tPeb2dVaNjZoHfkkcxD6W+3Oz87Mt7NmWgGZOO7Qs+aAcloj4o57muL6I41GQ06SlGompprJvHoVU55d4jLGkcy8ts9+jbYhTEI1UpPqpjw7sGezzff3V+VXTsgbarVOcbtNNVL9gjD1yfAtjUcJplg89e7HD6J2a4g2O1Qz1S+IktkBw7Uz+xitRhDmIabWh7nvIn5Nxvy9FvFObsSh83O+uz+b225jHe95x2x0v9bp9BHVRfl4QBKVTP4ePjJc2C5qnhGbd7iSEF2bZeoThElyQ0qj7JDv7m4XNvv0KSFuiqAdWK9DNVGNgjjm2u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hcUP9Q7tovAyUl4G9mK9hcEgldtEQH69CI3bIzNDQ26eKcQvmF6OhQcHiRZVh02YoTDFk2kQZq1f5o9Fzfy9hL2ww0FdQ52RxIEgAtmlTMZr/KyPz2d346rIHBw7IFJgZqP4vo62NPmQkpeOxeBm3eg1ITLRgaMCAi59NnUIjb+uU/uVxIBpMGnLVQe7QZMrSvPij04n3j5jIrsopR7AwClmk48ed/Cuj35N++aUiOPz1XzaF+zv8iNl5Uq+KCkUUrsJVs3Dm5lkc98pFRUFkIqp9PLvja355s10SToccEFaYVPjaZVIHo961m0jABcDwMKlrqjqjk39AaWqk0xjfHYu1a1V8c530uY90OMkpXWpUMRewILEWsfNMGB2RZ/T19UJ8m9hmUb8DUvSlUAZX+q4AAAAASUVORK5CYII=";function Te(e,t){return function(){return e.apply(t,arguments)}}const{toString:at}=Object.prototype,{getPrototypeOf:ie}=Object,K=(e=>t=>{const n=at.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),O=e=>(e=e.toLowerCase(),t=>K(t)===e),X=e=>t=>typeof t===e,{isArray:B}=Array,D=X("undefined");function ct(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ce=O("ArrayBuffer");function lt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ce(e.buffer),t}const ut=X("string"),S=X("function"),ke=X("number"),Y=e=>e!==null&&typeof e=="object",dt=e=>e===!0||e===!1,I=e=>{if(K(e)!=="object")return!1;const t=ie(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ft=O("Date"),pt=O("File"),ht=O("Blob"),mt=O("FileList"),At=e=>Y(e)&&S(e.pipe),yt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||S(e.append)&&((t=K(e))==="formdata"||t==="object"&&S(e.toString)&&e.toString()==="[object FormData]"))},gt=O("URLSearchParams"),bt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),B(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ue=e=>!D(e)&&e!==Ne;function te(){const{caseless:e}=Ue(this)&&this||{},t={},n=(r,s)=>{const o=e&&Pe(t,s)||s;I(t[o])&&I(r)?t[o]=te(t[o],r):I(r)?t[o]=te({},r):B(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(q(t,(s,o)=>{n&&S(s)?e[o]=Te(s,n):e[o]=s},{allOwnKeys:r}),e),wt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Et=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},St=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ie(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},jt=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!ke(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ot=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ie(Uint8Array)),Tt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ct=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},kt=O("HTMLFormElement"),Pt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nt=O("RegExp"),Fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ut=e=>{Fe(e,(t,n)=>{if(S(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(S(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ft=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return B(e)?r(e):r(String(e).split(t)),n},Bt=()=>{},Lt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Z="abcdefghijklmnopqrstuvwxyz",me="0123456789",Be={DIGIT:me,ALPHA:Z,ALPHA_DIGIT:Z+Z.toUpperCase()+me},Dt=(e=16,t=Be.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function qt(e){return!!(e&&S(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const zt=e=>{const t=new Array(10),n=(r,s)=>{if(Y(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=B(r)?[]:{};return q(r,(i,c)=>{const p=n(i,s+1);!D(p)&&(o[c]=p)}),t[s]=void 0,o}}return r};return n(e,0)},It=O("AsyncFunction"),Mt=e=>e&&(Y(e)||S(e))&&S(e.then)&&S(e.catch),a={isArray:B,isArrayBuffer:Ce,isBuffer:ct,isFormData:yt,isArrayBufferView:lt,isString:ut,isNumber:ke,isBoolean:dt,isObject:Y,isPlainObject:I,isUndefined:D,isDate:ft,isFile:pt,isBlob:ht,isRegExp:Nt,isFunction:S,isStream:At,isURLSearchParams:gt,isTypedArray:Ot,isFileList:mt,forEach:q,merge:te,extend:xt,trim:bt,stripBOM:wt,inherits:Et,toFlatObject:St,kindOf:K,kindOfTest:O,endsWith:Rt,toArray:jt,forEachEntry:Tt,matchAll:Ct,isHTMLForm:kt,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:Fe,freezeMethods:Ut,toObjectSet:Ft,toCamelCase:Pt,noop:Bt,toFiniteNumber:Lt,findKey:Pe,global:Ne,isContextDefined:Ue,ALPHABET:Be,generateString:Dt,isSpecCompliantForm:qt,toJSONObject:zt,isAsyncFn:It,isThenable:Mt};function A(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(A,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Le=A.prototype,De={};["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=>{De[e]={value:e}});Object.defineProperties(A,De);Object.defineProperty(Le,"isAxiosError",{value:!0});A.from=(e,t,n,r,s,o)=>{const i=Object.create(Le);return a.toFlatObject(e,i,function(p){return p!==Error.prototype},c=>c!=="isAxiosError"),A.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Ht=null;function ne(e){return a.isPlainObject(e)||a.isArray(e)}function qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ae(e,t,n){return e?e.concat(t).map(function(s,o){return s=qe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function vt(e){return a.isArray(e)&&!e.some(ne)}const Vt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function G(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,b){return!a.isUndefined(b[m])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,p=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function f(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(!p&&a.isBlob(h))throw new A("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?p&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,m,b){let x=h;if(h&&!b&&typeof h=="object"){if(a.endsWith(m,"{}"))m=r?m:m.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&vt(h)||(a.isFileList(h)||a.endsWith(m,"[]"))&&(x=a.toArray(h)))return m=qe(m),x.forEach(function(k,Ge){!(a.isUndefined(k)||k===null)&&t.append(i===!0?Ae([m],Ge,o):i===null?m:m+"[]",f(k))}),!1}return ne(h)?!0:(t.append(Ae(b,m,o),f(h)),!1)}const l=[],y=Object.assign(Vt,{defaultVisitor:d,convertValue:f,isVisitable:ne});function E(h,m){if(!a.isUndefined(h)){if(l.indexOf(h)!==-1)throw Error("Circular reference detected in "+m.join("."));l.push(h),a.forEach(h,function(x,C){(!(a.isUndefined(x)||x===null)&&s.call(t,x,a.isString(C)?C.trim():C,m,y))===!0&&E(x,m?m.concat(C):[C])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ae(e,t){this._pairs=[],e&&G(e,this,t)}const ze=ae.prototype;ze.append=function(t,n){this._pairs.push([t,n])};ze.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Jt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ie(e,t,n){if(!t)return e;const r=n&&n.encode||Jt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ge{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Wt=typeof URLSearchParams<"u"?URLSearchParams:ae,Kt=typeof FormData<"u"?FormData:null,Xt=typeof Blob<"u"?Blob:null,Yt={isBrowser:!0,classes:{URLSearchParams:Wt,FormData:Kt,Blob:Xt},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",Gt=(e=>He&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:Gt,hasStandardBrowserWebWorkerEnv:Qt},Symbol.toStringTag,{value:"Module"})),j={...Zt,...Yt};function _t(e,t){return G(e,new j.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return j.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function $t(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function en(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,p?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=en(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t($t(r),s,n,0)}),n}return null}function tn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ce={transitional:Me,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ve(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _t(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return G(c?{"files[]":t}:t,p&&new p,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),tn(t)):t}],transformResponse:[function(t){const n=this.transitional||ce.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?A.from(c,A.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ce.headers[e]={}});const le=ce,nn=a.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"]),rn=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&nn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},be=Symbol("internals");function L(e){return e&&String(e).trim().toLowerCase()}function M(e){return e===!1||e==null?e:a.isArray(e)?e.map(M):String(e)}function sn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const on=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function _(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function an(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class Q{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,p,f){const d=L(p);if(!d)throw new Error("header name must be a non-empty string");const l=a.findKey(s,d);(!l||s[l]===void 0||f===!0||f===void 0&&s[l]!==!1)&&(s[l||p]=M(c))}const i=(c,p)=>a.forEach(c,(f,d)=>o(f,d,p));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!on(t)?i(rn(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=L(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return sn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=L(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||_(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=L(i),i){const c=a.findKey(r,i);c&&(!n||_(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||_(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=M(s),delete n[o];return}const c=t?an(o):String(o).trim();c!==o&&delete n[o],n[c]=M(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[be]=this[be]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=L(i);r[c]||(cn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}Q.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(Q.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(Q);const T=Q;function $(e,t){const n=this||le,r=t||n,s=T.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ve(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,A,{__CANCEL__:!0});function ln(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const un=j.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Je(e,t){return e&&!dn(t)?fn(e,t):t}const pn=j.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function hn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(p){const f=Date.now(),d=r[o];i||(i=f),n[s]=p,r[s]=f;let l=o,y=0;for(;l!==s;)y+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),f-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,c=o-n,p=r(c),f=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:p||void 0,estimated:p&&i&&f?(i-o)/p:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const An=typeof XMLHttpRequest<"u",yn=An&&function(e){return new Promise(function(n,r){let s=e.data;const o=T.from(e.headers).normalize();let{responseType:i,withXSRFToken:c}=e,p;function f(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}let d;if(a.isFormData(s)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[m,...b]=d?d.split(";").map(x=>x.trim()).filter(Boolean):[];o.setContentType([m||"multipart/form-data",...b].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+b))}const y=Je(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ie(y,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function E(){if(!l)return;const m=T.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),x={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:m,config:e,request:l};ln(function(k){n(k),f()},function(k){r(k),f()},x),l=null}if("onloadend"in l?l.onloadend=E:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(E)},l.onabort=function(){l&&(r(new A("Request aborted",A.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new A("Network Error",A.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||Me;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),r(new A(b,x.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,l)),l=null},j.hasStandardBrowserEnv&&(c&&a.isFunction(c)&&(c=c(e)),c||c!==!1&&pn(y))){const m=e.xsrfHeaderName&&e.xsrfCookieName&&un.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&a.forEach(o.toJSON(),function(b,x){l.setRequestHeader(x,b)}),a.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",xe(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",xe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(p=m=>{l&&(r(!m||m.type?new z(null,e,l):m),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p)));const h=hn(y);if(h&&j.protocols.indexOf(h)===-1){r(new A("Unsupported protocol "+h+":",A.ERR_BAD_REQUEST,e));return}l.send(s||null)})},re={http:Ht,xhr:yn};a.forEach(re,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const we=e=>`- ${e}`,gn=e=>a.isFunction(e)||e===null||e===!1,We={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(we).join(` +`):" "+we(o[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:re};function ee(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function Ee(e){return ee(e),e.headers=T.from(e.headers),e.data=$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),We.getAdapter(e.adapter||le.adapter)(e).then(function(r){return ee(e),r.data=$.call(e,e.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return Ve(r)||(ee(e),r&&r.response&&(r.response.data=$.call(e,e.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const Se=e=>e instanceof T?e.toJSON():e;function F(e,t){t=t||{};const n={};function r(f,d,l){return a.isPlainObject(f)&&a.isPlainObject(d)?a.merge.call({caseless:l},f,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(f,d,l){if(a.isUndefined(d)){if(!a.isUndefined(f))return r(void 0,f,l)}else return r(f,d,l)}function o(f,d){if(!a.isUndefined(d))return r(void 0,d)}function i(f,d){if(a.isUndefined(d)){if(!a.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function c(f,d,l){if(l in t)return r(f,d);if(l in e)return r(void 0,f)}const p={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(f,d)=>s(Se(f),Se(d),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(d){const l=p[d]||s,y=l(e[d],t[d],d);a.isUndefined(y)&&l!==c||(n[d]=y)}),n}const Ke="1.6.7",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Re={};ue.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Ke+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new A(s(i," has been removed"+(n?" in "+n:"")),A.ERR_DEPRECATED);return n&&!Re[i]&&(Re[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function bn(e,t,n){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],p=c===void 0||i(c,o,e);if(p!==!0)throw new A("option "+o+" must be "+p,A.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new A("Unknown option "+o,A.ERR_BAD_OPTION)}}const se={assertOptions:bn,validators:ue},P=se.validators;class V{constructor(t){this.defaults=t,this.interceptors={request:new ge,response:new ge}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=F(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&se.assertOptions(r,{silentJSONParsing:P.transitional(P.boolean),forcedJSONParsing:P.transitional(P.boolean),clarifyTimeoutError:P.transitional(P.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:se.assertOptions(s,{encode:P.function,serialize:P.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=T.concat(i,o);const c=[];let p=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(p=p&&m.synchronous,c.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let d,l=0,y;if(!p){const h=[Ee.bind(this),void 0];for(h.unshift.apply(h,c),h.push.apply(h,f),y=h.length,d=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new z(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new de(function(s){t=s}),cancel:t}}}const xn=de;function wn(e){return function(n){return e.apply(null,n)}}function En(e){return a.isObject(e)&&e.isAxiosError===!0}const oe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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(oe).forEach(([e,t])=>{oe[t]=e});const Sn=oe;function Xe(e){const t=new H(e),n=Te(H.prototype.request,t);return a.extend(n,H.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Xe(F(e,s))},n}const g=Xe(le);g.Axios=H;g.CanceledError=z;g.CancelToken=xn;g.isCancel=Ve;g.VERSION=Ke;g.toFormData=G;g.AxiosError=A;g.Cancel=g.CanceledError;g.all=function(t){return Promise.all(t)};g.spread=wn;g.isAxiosError=En;g.mergeConfig=F;g.AxiosHeaders=T;g.formToJSON=e=>ve(a.isHTMLForm(e)?new FormData(e):e);g.getAdapter=We.getAdapter;g.HttpStatusCode=Sn;g.default=g;const Rn=({videosearchtext:e})=>{const[t,n]=N.useState([]),[r,s]=N.useState(!0),[o,i]=N.useState(!1);return N.useEffect(()=>{(async()=>{const p={method:"GET",url:"https://youtube-search-and-download.p.rapidapi.com/search",params:{query:e},headers:{"X-RapidAPI-Key":Qe.youtube,"X-RapidAPI-Host":"youtube-search-and-download.p.rapidapi.com"}};try{const f=await g.request(p);n(f.data.contents),s(!1),i(!1)}catch(f){console.error(f),n([]),s(!1),i(!0)}})()},[e]),u.jsxs(u.Fragment,{children:[r&&u.jsx(J,{}),o&&u.jsx(R,{variant:"h4",color:"inherit",textAlign:"center",sx:{paddingBlockStart:4},children:"Oops!something went wrong"}),u.jsx(fe,{container:!0,spacing:5,rowSapcing:4,children:t.slice(0,6).map((c,p)=>{var y;const{title:f,videoId:d,thumbnails:l}=c.video;return console.log(f),u.jsx(fe,{item:!0,xs:12,sm:12,lg:4,sx:{marginBlockStart:4},children:u.jsxs(w,{component:"a",href:`https://www.youtube.com/watch?v=${d}`,sx:{textDecoration:"none",color:"inherit"},children:[u.jsx(w,{component:"img",alt:"",src:(y=l[0])==null?void 0:y.url,sx:{width:"100%",height:"100%",borderRadius:1.8}}),u.jsx(R,{variant:"h6",children:f})]})},p)})})]})},Ye=({Id:e,gifurl:t,name:n,muscles:r})=>{const{isMobile:s,appStyles:o}=N.useContext(W),i=Ze();return u.jsx(u.Fragment,{children:u.jsxs(_e,{sx:o.paper,onClick:()=>{i(`/${e}`),document.documentElement.scrollTo({top:0,behavior:"smooth"})},children:[u.jsx(w,{component:"img",alt:"",src:t,sx:{minWidth:"100%",objectFit:"contain"},loading:"lazy"}),u.jsxs(U,{direction:"row",justifyContent:"center",alignItems:"center",sx:{paddingInlineStart:2},spacing:2,children:[u.jsx(pe,{label:r[0],size:"small",sx:o.gymbutton,id:"gym-element"}),u.jsx(pe,{label:r[1],size:"small",sx:{...o.gymbutton,display:r[1]?"":"none",backgroundColor:"#fdaaaa"}})]}),u.jsx(R,{variant:s?"body2":"h6",sx:o.gymtext,children:n})]})})},jn=({targetname:e})=>{const{isMobile:t,scroll_navigation:n}=N.useContext(W),{data:r,isLoading:s,isError:o}=$e(e);return u.jsxs(u.Fragment,{children:[s&&u.jsx(J,{}),o&&u.jsx(R,{variant:"h4",children:"Oops! something went wrong"}),u.jsx("div",{style:{position:"relative"},children:u.jsx(U,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:2,sx:{marginBlockStart:1,overflow:t?"scroll":"hidden"},className:"target-types",children:r&&u.jsxs(u.Fragment,{children:[r.map(i=>{const{id:c,gifUrl:p,name:f,secondaryMuscles:d}=i;return u.jsx(Ye,{Id:c,gifurl:p,name:f,muscles:d},c)}),!t&&u.jsxs(U,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,sx:{position:"absolute",right:2,bottom:-32},children:[u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>n(".target-types",-700),children:u.jsx(je,{})}),u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>n(".target-types",700),children:u.jsx(Oe,{})})]})]})})})]})},On=({equipmentname:e})=>{const{data:t,isLoading:n,isError:r}=et(e),{isMobile:s,scroll_navigation:o}=N.useContext(W);return u.jsxs(u.Fragment,{children:[n&&u.jsx(J,{}),r&&u.jsx(R,{variant:"h4",children:"Oops! something went wrong"}),t&&u.jsxs(w,{position:"relative",sx:{width:"100%"},children:[u.jsx(U,{direction:"row",justifyContent:"flex-start",alignItems:"center",className:"equipment-types",sx:{overflow:s?"scroll":"hidden",paddingBottom:2,marginBlockStart:1},spacing:2,children:t.map(i=>{const{id:c,gifUrl:p,name:f,secondaryMuscles:d}=i;return u.jsx(Ye,{gifurl:p,name:f,muscles:d},c)})}),!s&&u.jsxs(U,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,sx:{position:"absolute",right:2},children:[u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>o(".equipment-types",-700),children:u.jsx(je,{})}),u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>o(".equipment-types",700),children:u.jsx(Oe,{})})]})]})]})},Cn=()=>{const{isMobile:e}=N.useContext(W),{exercisetype:t}=tt(),{data:n,isError:r,isLoading:s}=nt(t),o=[{src:st,name:n==null?void 0:n.bodyPart},{src:ot,name:n==null?void 0:n.equipment},{src:it,name:n==null?void 0:n.target}];return u.jsxs(rt,{sx:{p:2,marginBlockEnd:5},children:[u.jsxs(w,{sx:{paddingBlockStart:5},children:[s&&u.jsx(J,{}),r&&u.jsx(R,{variant:"h5",children:"Opps! something went wrong"}),n&&u.jsxs(U,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:5,flexWrap:e?"wrap":"nowrap",children:[u.jsx(w,{children:u.jsx(w,{component:"img",alt:"",src:n.gifUrl})}),u.jsxs(w,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-around",alignItems:"baseline"},children:[u.jsxs(R,{variant:"h6",color:"inherit",sx:{width:"100%",wordBreak:"break-word"},children:["Exercises keep you strong. ",n.name," is one of the best exercises to target your quads.It will help you improve mood and gain energy."]}),u.jsx(U,{direction:"column",justifyContent:"center",alignItems:"baseline",spacing:2,sx:{alignSelf:"start",paddingBlockStart:5},children:Array.from(o,({src:i,name:c},p)=>u.jsxs(w,{sx:{display:"flex",justifyContent:"center",alignItems:"center",gap:2},children:[u.jsx(w,{component:"img",alt:"",src:i,sx:{width:"100%",backgroundColor:"pink",borderRadius:"50%",p:1}}),u.jsx(R,{variant:"h6",sx:{whiteSpace:"nowrap"},children:c})]},p))})]})]})]}),u.jsxs(w,{sx:{paddingBlockStart:12},children:[u.jsxs(R,{variant:"h4",children:["Youtube videos realted to ",u.jsx("span",{id:"marker",children:n==null?void 0:n.name})]}),u.jsx(Rn,{videosearchtext:n==null?void 0:n.name})]}),u.jsxs(w,{sx:{marginBlockStart:15,width:"100%"},children:[u.jsxs(R,{variant:"h4",children:["Similar ",u.jsx("span",{id:"marker",children:"Target Muscle"})," Exercises"]}),u.jsx(jn,{targetname:n==null?void 0:n.target})]}),u.jsxs(w,{sx:{marginBlockStart:12},children:[u.jsxs(R,{variant:"h4",children:["Similar ",u.jsx("span",{id:"marker",children:"Equipment"})," Exercises"]}),u.jsx(On,{equipmentname:n==null?void 0:n.equipment})]})]})};export{Cn as default}; diff --git a/assets/exercise-obFx-0z2.js b/assets/exercise-obFx-0z2.js deleted file mode 100644 index 1c6193a..0000000 --- a/assets/exercise-obFx-0z2.js +++ /dev/null @@ -1,6 +0,0 @@ -import{r as U,j as u,G as fe,B as w,T as R,k as Qe,a as J,u as Ze,P as _e,S as N,C as pe,b as $e,L as oe,I as v,d as Oe,c as je,e as et,f as tt,g as nt,h as rt}from"./index-eYoCcVS1.js";const st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAcWSURBVHgBzVrdVdtKEJ6Rf/J43QHKCSZ5w3RgKgipAFNBSAVABZAKgApwKgAqgLzlBnKiVHCVtyS2tPeb2dVaNjZoHfkkcxD6W+3Oz87Mt7NmWgGZOO7Qs+aAcloj4o57muL6I41GQ06SlGompprJvHoVU55d4jLGkcy8ts9+jbYhTEI1UpPqpjw7sGezzff3V+VXTsgbarVOcbtNNVL9gjD1yfAtjUcJplg89e7HD6J2a4g2O1Qz1S+IktkBw7Uz+xitRhDmIabWh7nvIn5Nxvy9FvFObsSh83O+uz+b225jHe95x2x0v9bp9BHVRfl4QBKVTP4ePjJc2C5qnhGbd7iSEF2bZeoThElyQ0qj7JDv7m4XNvv0KSFuiqAdWK9DNVGNgjjm2u1Ts77eX9TMdLs9yrJTvfk1PqOaqDZBVNNZ/gas9uDQF5rd5zakCxw9WGOv7qRYK4nG4cgG59MH7za6p/puNr/UQLVDFCEwe4bTLrR+hfM74KuUnrWPbdjlD/z5818cfmUqNZs9vWGARQPHZ8VWN0iOaGBsMJCrwofG46Su6fXbFlGmIt7F5WD6hbmiRnMP1oDPRB1BvcBYFwphpukMyfN8FpeF0tKCaAKU6FMwVs4fEQ/wHxkcwFCmlVCr1bGODhyWoa2OjqnG0Vv7PabhaLR0AFhKkBJURy4wSHC8X0a7M1C+TFMQ3lnzUpXA0WttsWS2Xy78WiZl0C1o8gGm0lAcNbY1HCPM+gPt5zIplpT2QhbiB1OwsztHjYs8gPt4XjsV5uHCaiFJe/S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AAAAASUVORK5CYII=";function Te(e,t){return function(){return e.apply(t,arguments)}}const{toString:at}=Object.prototype,{getPrototypeOf:ie}=Object,K=(e=>t=>{const n=at.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),j=e=>(e=e.toLowerCase(),t=>K(t)===e),W=e=>t=>typeof t===e,{isArray:B}=Array,D=W("undefined");function ct(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ce=j("ArrayBuffer");function lt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ce(e.buffer),t}const ut=W("string"),S=W("function"),Pe=W("number"),X=e=>e!==null&&typeof e=="object",dt=e=>e===!0||e===!1,I=e=>{if(K(e)!=="object")return!1;const t=ie(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ft=j("Date"),pt=j("File"),ht=j("Blob"),mt=j("FileList"),At=e=>X(e)&&S(e.pipe),yt=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||S(e.append)&&((t=K(e))==="formdata"||t==="object"&&S(e.toString)&&e.toString()==="[object FormData]"))},bt=j("URLSearchParams"),gt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function q(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),B(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ue=e=>!D(e)&&e!==Ne;function ee(){const{caseless:e}=Ue(this)&&this||{},t={},n=(r,s)=>{const o=e&&ke(t,s)||s;I(t[o])&&I(r)?t[o]=ee(t[o],r):I(r)?t[o]=ee({},r):B(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(q(t,(s,o)=>{n&&S(s)?e[o]=Te(s,n):e[o]=s},{allOwnKeys:r}),e),wt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Et=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},St=(e,t,n,r)=>{let s,o,i;const c={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&ie(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Rt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ot=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!Pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},jt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ie(Uint8Array)),Tt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},Ct=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Pt=j("HTMLFormElement"),kt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),he=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nt=j("RegExp"),Fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};q(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},Ut=e=>{Fe(e,(t,n)=>{if(S(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(S(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ft=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return B(e)?r(e):r(String(e).split(t)),n},Bt=()=>{},Lt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Q="abcdefghijklmnopqrstuvwxyz",me="0123456789",Be={DIGIT:me,ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+me},Dt=(e=16,t=Be.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function qt(e){return!!(e&&S(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const zt=e=>{const t=new Array(10),n=(r,s)=>{if(X(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=B(r)?[]:{};return q(r,(i,c)=>{const f=n(i,s+1);!D(f)&&(o[c]=f)}),t[s]=void 0,o}}return r};return n(e,0)},It=j("AsyncFunction"),Mt=e=>e&&(X(e)||S(e))&&S(e.then)&&S(e.catch),a={isArray:B,isArrayBuffer:Ce,isBuffer:ct,isFormData:yt,isArrayBufferView:lt,isString:ut,isNumber:Pe,isBoolean:dt,isObject:X,isPlainObject:I,isUndefined:D,isDate:ft,isFile:pt,isBlob:ht,isRegExp:Nt,isFunction:S,isStream:At,isURLSearchParams:bt,isTypedArray:jt,isFileList:mt,forEach:q,merge:ee,extend:xt,trim:gt,stripBOM:wt,inherits:Et,toFlatObject:St,kindOf:K,kindOfTest:j,endsWith:Rt,toArray:Ot,forEachEntry:Tt,matchAll:Ct,isHTMLForm:Pt,hasOwnProperty:he,hasOwnProp:he,reduceDescriptors:Fe,freezeMethods:Ut,toObjectSet:Ft,toCamelCase:kt,noop:Bt,toFiniteNumber:Lt,findKey:ke,global:Ne,isContextDefined:Ue,ALPHABET:Be,generateString:Dt,isSpecCompliantForm:qt,toJSONObject:zt,isAsyncFn:It,isThenable:Mt};function A(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(A,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:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Le=A.prototype,De={};["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=>{De[e]={value:e}});Object.defineProperties(A,De);Object.defineProperty(Le,"isAxiosError",{value:!0});A.from=(e,t,n,r,s,o)=>{const i=Object.create(Le);return a.toFlatObject(e,i,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),A.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Ht=null;function te(e){return a.isPlainObject(e)||a.isArray(e)}function qe(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ae(e,t,n){return e?e.concat(t).map(function(s,o){return s=qe(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function vt(e){return a.isArray(e)&&!e.some(te)}const Vt=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function Y(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,g){return!a.isUndefined(g[h])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function m(p){if(p===null)return"";if(a.isDate(p))return p.toISOString();if(!f&&a.isBlob(p))throw new A("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(p)||a.isTypedArray(p)?f&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,h,g){let x=p;if(p&&!g&&typeof p=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),p=JSON.stringify(p);else if(a.isArray(p)&&vt(p)||(a.isFileList(p)||a.endsWith(h,"[]"))&&(x=a.toArray(p)))return h=qe(h),x.forEach(function(P,Ge){!(a.isUndefined(P)||P===null)&&t.append(i===!0?Ae([h],Ge,o):i===null?h:h+"[]",m(P))}),!1}return te(p)?!0:(t.append(Ae(g,h,o),m(p)),!1)}const l=[],b=Object.assign(Vt,{defaultVisitor:d,convertValue:m,isVisitable:te});function E(p,h){if(!a.isUndefined(p)){if(l.indexOf(p)!==-1)throw Error("Circular reference detected in "+h.join("."));l.push(p),a.forEach(p,function(x,C){(!(a.isUndefined(x)||x===null)&&s.call(t,x,a.isString(C)?C.trim():C,h,b))===!0&&E(x,h?h.concat(C):[C])}),l.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return E(e),t}function ye(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ae(e,t){this._pairs=[],e&&Y(e,this,t)}const ze=ae.prototype;ze.append=function(t,n){this._pairs.push([t,n])};ze.toString=function(t){const n=t?function(r){return t.call(this,r,ye)}:ye;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Jt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ie(e,t,n){if(!t)return e;const r=n&&n.encode||Jt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ae(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class be{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Me={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Kt=typeof URLSearchParams<"u"?URLSearchParams:ae,Wt=typeof FormData<"u"?FormData:null,Xt=typeof Blob<"u"?Blob:null,Yt={isBrowser:!0,classes:{URLSearchParams:Kt,FormData:Wt,Blob:Xt},protocols:["http","https","file","blob","url","data"]},He=typeof window<"u"&&typeof document<"u",Gt=(e=>He&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Qt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:He,hasStandardBrowserEnv:Gt,hasStandardBrowserWebWorkerEnv:Qt},Symbol.toStringTag,{value:"Module"})),O={...Zt,...Yt};function _t(e,t){return Y(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function $t(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function en(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&a.isArray(s)?s.length:i,f?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!c):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=en(s[i])),!c)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t($t(r),s,n,0)}),n}return null}function tn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ce={transitional:Me,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(ve(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _t(t,this.formSerializer).toString();if((c=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Y(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),tn(t)):t}],transformResponse:[function(t){const n=this.transitional||ce.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?A.from(c,A.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ce.headers[e]={}});const le=ce,nn=a.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"]),rn=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&nn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},ge=Symbol("internals");function L(e){return e&&String(e).trim().toLowerCase()}function M(e){return e===!1||e==null?e:a.isArray(e)?e.map(M):String(e)}function sn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const on=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Z(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function an(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function cn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class G{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(c,f,m){const d=L(f);if(!d)throw new Error("header name must be a non-empty string");const l=a.findKey(s,d);(!l||s[l]===void 0||m===!0||m===void 0&&s[l]!==!1)&&(s[l||f]=M(c))}const i=(c,f)=>a.forEach(c,(m,d)=>o(m,d,f));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!on(t)?i(rn(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=L(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return sn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=L(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Z(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=L(i),i){const c=a.findKey(r,i);c&&(!n||Z(r,r[c],c,n))&&(delete r[c],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||Z(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=M(s),delete n[o];return}const c=t?an(o):String(o).trim();c!==o&&delete n[o],n[c]=M(s),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[ge]=this[ge]={accessors:{}}).accessors,s=this.prototype;function o(i){const c=L(i);r[c]||(cn(s,i),r[c]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}G.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(G.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(G);const T=G;function _(e,t){const n=this||le,r=t||n,s=T.from(r.headers);let o=r.data;return a.forEach(e,function(c){o=c.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Ve(e){return!!(e&&e.__CANCEL__)}function z(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(z,A,{__CANCEL__:!0});function ln(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const un=O.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function dn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function fn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Je(e,t){return e&&!dn(t)?fn(e,t):t}const pn=O.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const c=a.isString(i)?s(i):i;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function hn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function mn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(f){const m=Date.now(),d=r[o];i||(i=m),n[s]=f,r[s]=m;let l=o,b=0;for(;l!==s;)b+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),m-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,c=o-n,f=r(c),m=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:f||void 0,estimated:f&&i&&m?(i-o)/f:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const An=typeof XMLHttpRequest<"u",yn=An&&function(e){return new Promise(function(n,r){let s=e.data;const o=T.from(e.headers).normalize();let{responseType:i,withXSRFToken:c}=e,f;function m(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}let d;if(a.isFormData(s)){if(O.hasStandardBrowserEnv||O.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[h,...g]=d?d.split(";").map(x=>x.trim()).filter(Boolean):[];o.setContentType([h||"multipart/form-data",...g].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(h+":"+g))}const b=Je(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ie(b,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function E(){if(!l)return;const h=T.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),x={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:e,request:l};ln(function(P){n(P),m()},function(P){r(P),m()},x),l=null}if("onloadend"in l?l.onloadend=E:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(E)},l.onabort=function(){l&&(r(new A("Request aborted",A.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new A("Network Error",A.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||Me;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new A(g,x.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,l)),l=null},O.hasStandardBrowserEnv&&(c&&a.isFunction(c)&&(c=c(e)),c||c!==!1&&pn(b))){const h=e.xsrfHeaderName&&e.xsrfCookieName&&un.read(e.xsrfCookieName);h&&o.set(e.xsrfHeaderName,h)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&a.forEach(o.toJSON(),function(g,x){l.setRequestHeader(x,g)}),a.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",xe(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",xe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(f=h=>{l&&(r(!h||h.type?new z(null,e,l):h),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f)));const p=hn(b);if(p&&O.protocols.indexOf(p)===-1){r(new A("Unsupported protocol "+p+":",A.ERR_BAD_REQUEST,e));return}l.send(s||null)})},ne={http:Ht,xhr:yn};a.forEach(ne,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const we=e=>`- ${e}`,bn=e=>a.isFunction(e)||e===null||e===!1,Ke={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : -`+o.map(we).join(` -`):" "+we(o[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ne};function $(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new z(null,e)}function Ee(e){return $(e),e.headers=T.from(e.headers),e.data=_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ke.getAdapter(e.adapter||le.adapter)(e).then(function(r){return $(e),r.data=_.call(e,e.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return Ve(r)||($(e),r&&r.response&&(r.response.data=_.call(e,e.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const Se=e=>e instanceof T?e.toJSON():e;function F(e,t){t=t||{};const n={};function r(m,d,l){return a.isPlainObject(m)&&a.isPlainObject(d)?a.merge.call({caseless:l},m,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(m,d,l){if(a.isUndefined(d)){if(!a.isUndefined(m))return r(void 0,m,l)}else return r(m,d,l)}function o(m,d){if(!a.isUndefined(d))return r(void 0,d)}function i(m,d){if(a.isUndefined(d)){if(!a.isUndefined(m))return r(void 0,m)}else return r(void 0,d)}function c(m,d,l){if(l in t)return r(m,d);if(l in e)return r(void 0,m)}const f={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(m,d)=>s(Se(m),Se(d),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(d){const l=f[d]||s,b=l(e[d],t[d],d);a.isUndefined(b)&&l!==c||(n[d]=b)}),n}const We="1.6.7",ue={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ue[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Re={};ue.transitional=function(t,n,r){function s(o,i){return"[Axios v"+We+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,c)=>{if(t===!1)throw new A(s(i," has been removed"+(n?" in "+n:"")),A.ERR_DEPRECATED);return n&&!Re[i]&&(Re[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function gn(e,t,n){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const c=e[o],f=c===void 0||i(c,o,e);if(f!==!0)throw new A("option "+o+" must be "+f,A.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new A("Unknown option "+o,A.ERR_BAD_OPTION)}}const re={assertOptions:gn,validators:ue},k=re.validators;class V{constructor(t){this.defaults=t,this.interceptors={request:new be,response:new be}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=F(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&re.assertOptions(r,{silentJSONParsing:k.transitional(k.boolean),forcedJSONParsing:k.transitional(k.boolean),clarifyTimeoutError:k.transitional(k.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:re.assertOptions(s,{encode:k.function,serialize:k.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],p=>{delete o[p]}),n.headers=T.concat(i,o);const c=[];let f=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(f=f&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});const m=[];this.interceptors.response.forEach(function(h){m.push(h.fulfilled,h.rejected)});let d,l=0,b;if(!f){const p=[Ee.bind(this),void 0];for(p.unshift.apply(p,c),p.push.apply(p,m),b=p.length,d=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(c=>{r.subscribe(c),o=c}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,c){r.reason||(r.reason=new z(o,i,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new de(function(s){t=s}),cancel:t}}}const xn=de;function wn(e){return function(n){return e.apply(null,n)}}function En(e){return a.isObject(e)&&e.isAxiosError===!0}const se={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent: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(se).forEach(([e,t])=>{se[t]=e});const Sn=se;function Xe(e){const t=new H(e),n=Te(H.prototype.request,t);return a.extend(n,H.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Xe(F(e,s))},n}const y=Xe(le);y.Axios=H;y.CanceledError=z;y.CancelToken=xn;y.isCancel=Ve;y.VERSION=We;y.toFormData=Y;y.AxiosError=A;y.Cancel=y.CanceledError;y.all=function(t){return Promise.all(t)};y.spread=wn;y.isAxiosError=En;y.mergeConfig=F;y.AxiosHeaders=T;y.formToJSON=e=>ve(a.isHTMLForm(e)?new FormData(e):e);y.getAdapter=Ke.getAdapter;y.HttpStatusCode=Sn;y.default=y;const Rn=({videosearchtext:e})=>{const[t,n]=U.useState([]);return U.useEffect(()=>{(async()=>{const s={method:"GET",url:"https://youtube-search-and-download.p.rapidapi.com/search",params:{query:e},headers:{"X-RapidAPI-Key":Qe.youtube,"X-RapidAPI-Host":"youtube-search-and-download.p.rapidapi.com"}};try{const o=await y.request(s);n(o.data.contents)}catch(o){console.error(o)}})()},[e]),u.jsx(fe,{container:!0,spacing:5,rowSapcing:4,children:t.slice(0,6).map((r,s)=>{var f;const{title:o,videoId:i,thumbnails:c}=r.video;return console.log(o),u.jsx(fe,{item:!0,xs:12,sm:12,lg:4,sx:{marginBlockStart:4},children:u.jsxs(w,{component:"a",href:`https://www.youtube.com/watch?v=${i}`,sx:{textDecoration:"none",color:"inherit"},children:[u.jsx(w,{component:"img",alt:"",src:(f=c[0])==null?void 0:f.url,sx:{width:"100%",height:"100%",borderRadius:1.8}}),u.jsx(R,{variant:"h6",children:o})]})},s)})})},Ye=({Id:e,gifurl:t,name:n,muscles:r})=>{const{isMobile:s,appStyles:o}=U.useContext(J),i=Ze();return u.jsx(u.Fragment,{children:u.jsxs(_e,{sx:o.paper,onClick:()=>{i(`/${e}`),document.documentElement.scrollTo({top:0,behavior:"smooth"})},children:[u.jsx(w,{component:"img",alt:"",src:t,sx:{width:{xs:200,sm:320,lg:330},height:{xs:200,sm:300,lg:320},aspectRatio:2/3,objectFit:"cover"}}),u.jsxs(N,{direction:"row",justifyContent:"center",alignItems:"center",sx:{paddingInlineStart:2},spacing:2,children:[u.jsx(pe,{label:r[0],size:"small",sx:o.gymbutton,id:"gym-element"}),u.jsx(pe,{label:r[1],size:"small",sx:{...o.gymbutton,display:r[1]?"":"none",backgroundColor:"#fdaaaa"}})]}),u.jsx(R,{variant:s?"body2":"h6",sx:o.gymtext,children:n})]})})},On=({targetname:e})=>{const{isMobile:t,scroll_navigation:n}=U.useContext(J),{data:r,isLoading:s,isError:o}=$e(e);return u.jsxs(u.Fragment,{children:[s&&u.jsx(oe,{}),o&&u.jsx(R,{variant:"h4",children:"Oops! something went wrong"}),u.jsx("div",{style:{position:"relative"},children:u.jsx(N,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:2,sx:{marginBlockStart:1,overflow:t?"scroll":"hidden"},className:"target-types",children:r&&u.jsxs(u.Fragment,{children:[r.map(i=>{const{id:c,gifUrl:f,name:m,secondaryMuscles:d}=i;return u.jsx(Ye,{Id:c,gifurl:f,name:m,muscles:d},c)}),!t&&u.jsxs(N,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,sx:{position:"absolute",right:2,bottom:-32},children:[u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white"},onClick:()=>n(".target-types",-700),children:u.jsx(Oe,{})}),u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white"},onClick:()=>n(".target-types",700),children:u.jsx(je,{})})]})]})})})]})},jn=({equipmentname:e})=>{const{data:t,isLoading:n,isError:r}=et(e),{isMobile:s,scroll_navigation:o}=U.useContext(J);return u.jsxs(u.Fragment,{children:[n&&u.jsx(oe,{}),r&&u.jsx(R,{variant:"h4",children:"Oops! something went wrong"}),t&&u.jsxs(w,{position:"relative",sx:{width:"100%"},children:[u.jsx(N,{direction:"row",justifyContent:"flex-start",alignItems:"center",className:"equipment-types",sx:{overflow:s?"scroll":"hidden",paddingBottom:2,marginBlockStart:1},spacing:2,children:t.map(i=>{const{id:c,gifUrl:f,name:m,secondaryMuscles:d}=i;return u.jsx(Ye,{gifurl:f,name:m,muscles:d},c)})}),!s&&u.jsxs(N,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,sx:{position:"absolute",right:2},children:[u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white"},onClick:()=>o(".equipment-types",-700),children:u.jsx(Oe,{})}),u.jsx(v,{sx:{backgroundColor:"#ff2625",color:"white"},onClick:()=>o(".equipment-types",700),children:u.jsx(je,{})})]})]})]})},Cn=()=>{const{isMobile:e}=U.useContext(J),{exercisetype:t}=tt(),{data:n,isError:r,isLoading:s}=nt(t),o=[{src:st,name:n==null?void 0:n.bodyPart},{src:ot,name:n==null?void 0:n.equipment},{src:it,name:n==null?void 0:n.target}];return u.jsxs(rt,{sx:{p:2,marginBlockEnd:5},children:[u.jsxs(w,{sx:{paddingBlockStart:5},children:[s&&u.jsx(oe,{}),r&&u.jsx(R,{variant:"h5",children:"Opps! something went wrong"}),n&&u.jsxs(N,{direction:"row",justifyContent:"space-between",alignItems:"center",spacing:5,flexWrap:e?"wrap":"nowrap",children:[u.jsx(w,{children:u.jsx(w,{component:"img",alt:"",src:n.gifUrl})}),u.jsxs(w,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-around",alignItems:"baseline"},children:[u.jsxs(R,{variant:"h6",color:"inherit",sx:{width:"100%",wordBreak:"break-word"},children:["Exercises keep you strong. ",n.name," is one of the best exercises to target your quads.It will help you improve mood and gain energy."]}),u.jsx(N,{direction:"column",justifyContent:"center",alignItems:"baseline",spacing:2,sx:{alignSelf:"start",paddingBlockStart:5},children:Array.from(o,({src:i,name:c},f)=>u.jsxs(w,{sx:{display:"flex",justifyContent:"center",alignItems:"center",gap:2},children:[u.jsx(w,{component:"img",alt:"",src:i,sx:{width:"100%",backgroundColor:"pink",borderRadius:"50%",p:1}}),u.jsx(R,{variant:"h6",sx:{whiteSpace:"nowrap"},children:c})]},f))})]})]})]}),u.jsxs(w,{sx:{paddingBlockStart:12},children:[u.jsxs(R,{variant:"h4",children:["Youtube videos realted to ",u.jsx("span",{id:"marker",children:n==null?void 0:n.name})]}),u.jsx(Rn,{videosearchtext:n==null?void 0:n.name})]}),u.jsxs(w,{sx:{marginBlockStart:15,width:"100%"},children:[u.jsxs(R,{variant:"h4",children:["Similar ",u.jsx("span",{id:"marker",children:"Target Muscle"})," Exercises"]}),u.jsx(On,{targetname:n==null?void 0:n.target})]}),u.jsxs(w,{sx:{marginBlockStart:12},children:[u.jsxs(R,{variant:"h4",children:["Similar ",u.jsx("span",{id:"marker",children:"Equipment"})," Exercises"]}),u.jsx(jn,{equipmentname:n==null?void 0:n.equipment})]})]})};export{Cn as default}; diff --git a/assets/index-eYoCcVS1.js b/assets/index-ntPwLium.js similarity index 99% rename from assets/index-eYoCcVS1.js rename to assets/index-ntPwLium.js index 6fe1a69..7b65a08 100644 --- a/assets/index-eYoCcVS1.js +++ b/assets/index-ntPwLium.js @@ -188,7 +188,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ws=w;function w_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var k_=typeof Object.is=="function"?Object.is:w_,E_=ws.useSyncExternalStore,R_=ws.useRef,P_=ws.useEffect,$_=ws.useMemo,T_=ws.useDebugValue;e1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=R_(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=$_(function(){function a(y){if(!u){if(u=!0,d=y,y=r(y),o!==void 0&&s.hasValue){var g=s.value;if(o(g,y))return p=g}return p=y}if(g=p,k_(d,y))return g;var x=r(y);return o!==void 0&&o(g,x)?g:(d=y,p=x)}var u=!1,d,p,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=E_(e,i[0],i[1]);return P_(function(){s.hasValue=!0,s.value=l},[l]),T_(l),l};Z0.exports=e1;var I_=Z0.exports,Pt="default"in Ro?tn:Ro,Gm=Symbol.for("react-redux-context"),Ym=typeof globalThis<"u"?globalThis:{};function __(){if(!Pt.createContext)return{};const e=Ym[Gm]??(Ym[Gm]=new Map);let t=e.get(Pt.createContext);return t||(t=Pt.createContext(null),e.set(Pt.createContext,t)),t}var ar=__(),O_=()=>{throw new Error("uSES not initialized!")};function Zf(e=ar){return function(){return Pt.useContext(e)}}var t1=Zf(),n1=O_,M_=e=>{n1=e},N_=(e,t)=>e===t;function z_(e=ar){const t=e===ar?t1:Zf(e),n=(r,o={})=>{const{equalityFn:i=N_,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:a,getServerState:u,stabilityCheck:d,identityFunctionCheck:p}=t();Pt.useRef(!0);const f=Pt.useCallback({[r.name](g){return r(g)}}[r.name],[r,d,s.stabilityCheck]),y=n1(a.addNestedSub,l.getState,u||l.getState,f,i);return Pt.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var A_=z_();function r1(e){e()}function L_(){let e=null,t=null;return{clear(){e=null,t=null},notify(){r1(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Xm={notify(){},get:()=>[]};function j_(e,t){let n,r=Xm,o=0,i=!1;function s(x){d();const S=r.subscribe(x);let v=!1;return()=>{v||(v=!0,S(),p())}}function l(){r.notify()}function a(){g.onStateChange&&g.onStateChange()}function u(){return i}function d(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=L_())}function p(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Xm)}function f(){i||(i=!0,d())}function y(){i&&(i=!1,p())}const g={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:a,isSubscribed:u,trySubscribe:f,tryUnsubscribe:y,getListeners:()=>r};return g}var F_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D_=F_?Pt.useLayoutEffect:Pt.useEffect;function Jm(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _i(e,t){if(Jm(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{const u=j_(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),l=Pt.useMemo(()=>e.getState(),[e]);D_(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),l!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,l]);const a=t||ar;return Pt.createElement(a.Provider,{value:s},n)}var W_=B_;function o1(e=ar){const t=e===ar?t1:Zf(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var i1=o1();function U_(e=ar){const t=e===ar?i1:o1(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var V_=U_(),H_=r1;M_(I_.useSyncExternalStoreWithSelector);function Zm(e,t,n,r){const o=w.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}),[e,t,n,r]),i=w.useRef(o);return w.useEffect(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}var Ju=Symbol();function Zu(e){const t=w.useRef(e);return w.useEffect(()=>{_i(t.current,e)||(t.current=e)},[e]),_i(t.current,e)?t.current:e}var eo=WeakMap?new WeakMap:void 0,Q_=({endpointName:e,queryArgs:t})=>{let n="";const r=eo==null?void 0:eo.get(t);if(typeof r=="string")n=r;else{const o=JSON.stringify(t,(i,s)=>vn(s)?Object.keys(s).sort().reduce((l,a)=>(l[a]=s[a],l),{}):s);vn(t)&&(eo==null||eo.set(t,o)),n=o}return`${e}(${n})`},K_=typeof window<"u"&&window.document&&window.document.createElement?w.useLayoutEffect:w.useEffect,q_=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Q0.pending}:e;function G_({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:s},serializeQueryArgs:l,context:a}){const u=i?g=>g():w.useEffect;return{buildQueryHooks:f,buildMutationHook:y,usePrefetch:p};function d(g,x,S){if(x!=null&&x.endpointName&&g.isUninitialized){const{endpointName:k}=x,C=a.endpointDefinitions[k];l({queryArgs:x.originalArgs,endpointDefinition:C,endpointName:k})===l({queryArgs:S,endpointDefinition:C,endpointName:k})&&(x=void 0)}let v=g.isSuccess?g.data:x==null?void 0:x.data;v===void 0&&(v=g.data);const h=v!==void 0,c=g.isLoading,m=!h&&c,b=g.isSuccess||c&&h;return{...g,data:v,currentData:g.data,isFetching:c,isLoading:m,isSuccess:b}}function p(g,x){const S=n(),v=Zu(x);return w.useCallback((h,c)=>S(e.util.prefetch(g,h,{...v,...c})),[g,S,v])}function f(g){const x=(h,{refetchOnReconnect:c,refetchOnFocus:m,refetchOnMountOrArgChange:b,skip:k=!1,pollingInterval:C=0,skipPollingIfUnfocused:E=!1}={})=>{const{initiate:$}=e.endpoints[g],P=n(),_=w.useRef();if(!_.current){const L=P(e.internalActions.internal_getRTKQSubscriptions());_.current=L}const O=Zm(k?wr:h,Q_,a.endpointDefinitions[g],g),N=Zu({refetchOnReconnect:c,refetchOnFocus:m,pollingInterval:C,skipPollingIfUnfocused:E}),M=w.useRef(!1),A=w.useRef();let{queryCacheKey:j,requestId:B}=A.current||{},I=!1;j&&B&&(I=_.current.isRequestSubscribed(j,B));const z=!I&&M.current;return u(()=>{M.current=I}),u(()=>{z&&(A.current=void 0)},[z]),u(()=>{var W;const L=A.current;if(typeof process<"u",O===wr){L==null||L.unsubscribe(),A.current=void 0;return}const Q=(W=A.current)==null?void 0:W.subscriptionOptions;if(!L||L.arg!==O){L==null||L.unsubscribe();const X=P($(O,{subscriptionOptions:N,forceRefetch:b}));A.current=X}else N!==Q&&L.updateSubscriptionOptions(N)},[P,$,b,O,N,z]),w.useEffect(()=>()=>{var L;(L=A.current)==null||L.unsubscribe(),A.current=void 0},[]),w.useMemo(()=>({refetch:()=>{var L;if(!A.current)throw new Error(ut(38));return(L=A.current)==null?void 0:L.refetch()}}),[])},S=({refetchOnReconnect:h,refetchOnFocus:c,pollingInterval:m=0,skipPollingIfUnfocused:b=!1}={})=>{const{initiate:k}=e.endpoints[g],C=n(),[E,$]=w.useState(Ju),P=w.useRef(),_=Zu({refetchOnReconnect:h,refetchOnFocus:c,pollingInterval:m,skipPollingIfUnfocused:b});u(()=>{var A,j;const M=(A=P.current)==null?void 0:A.subscriptionOptions;_!==M&&((j=P.current)==null||j.updateSubscriptionOptions(_))},[_]);const O=w.useRef(_);u(()=>{O.current=_},[_]);const N=w.useCallback(function(M,A=!1){let j;return t(()=>{var B;(B=P.current)==null||B.unsubscribe(),P.current=j=C(k(M,{subscriptionOptions:O.current,forceRefetch:!A})),$(M)}),j},[C,k]);return w.useEffect(()=>()=>{var M;(M=P==null?void 0:P.current)==null||M.unsubscribe()},[]),w.useEffect(()=>{E!==Ju&&!P.current&&N(E,!0)},[E,N]),w.useMemo(()=>[N,E],[N,E])},v=(h,{skip:c=!1,selectFromResult:m}={})=>{const{select:b}=e.endpoints[g],k=Zm(c?wr:h,l,a.endpointDefinitions[g],g),C=w.useRef(),E=w.useMemo(()=>s([b(k),(N,M)=>M,N=>k],d,{memoizeOptions:{resultEqualityCheck:_i}}),[b,k]),$=w.useMemo(()=>m?s([E],m,{devModeChecks:{identityFunctionCheck:"never"}}):E,[E,m]),P=r(N=>$(N,C.current),_i),_=o(),O=E(_.getState(),C.current);return K_(()=>{C.current=O},[O]),P};return{useQueryState:v,useQuerySubscription:x,useLazyQuerySubscription:S,useLazyQuery(h){const[c,m]=S(h),b=v(m,{...h,skip:m===Ju}),k=w.useMemo(()=>({lastArg:m}),[m]);return w.useMemo(()=>[c,b,k],[c,b,k])},useQuery(h,c){const m=x(h,c),b=v(h,{selectFromResult:h===wr||c!=null&&c.skip?void 0:q_,...c}),{data:k,status:C,isLoading:E,isSuccess:$,isError:P,error:_}=b;return w.useDebugValue({data:k,status:C,isLoading:E,isSuccess:$,isError:P,error:_}),w.useMemo(()=>({...b,...m}),[b,m])}}}function y(g){return({selectFromResult:x,fixedCacheKey:S}={})=>{const{select:v,initiate:h}=e.endpoints[g],c=n(),[m,b]=w.useState();w.useEffect(()=>()=>{m!=null&&m.arg.fixedCacheKey||m==null||m.reset()},[m]);const k=w.useCallback(function(Q){const W=c(h(Q,{fixedCacheKey:S}));return b(W),W},[c,h,S]),{requestId:C}=m||{},E=w.useMemo(()=>v({fixedCacheKey:S,requestId:m==null?void 0:m.requestId}),[S,m,v]),$=w.useMemo(()=>x?s([E],x):E,[x,E]),P=r($,_i),_=S==null?m==null?void 0:m.arg.originalArgs:void 0,O=w.useCallback(()=>{t(()=>{m&&b(void 0),S&&c(e.internalActions.removeMutationResult({requestId:C,fixedCacheKey:S}))})},[c,S,m,C]),{endpointName:N,data:M,status:A,isLoading:j,isSuccess:B,isError:I,error:z}=P;w.useDebugValue({endpointName:N,data:M,status:A,isLoading:j,isSuccess:B,isError:I,error:z});const L=w.useMemo(()=>({...P,originalArgs:_,reset:O}),[P,_,O]);return w.useMemo(()=>[k,L],[k,L])}}}function Y_(e){return e.type==="query"}function X_(e){return e.type==="mutation"}function ec(e){return e.replace(e[0],e[0].toUpperCase())}function qs(e,...t){return Object.assign(e,...t)}var J_=Symbol(),Z_=({batch:e=H_,hooks:t={useDispatch:V_,useSelector:A_,useStore:i1},createSelector:n=Qf,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:J_,init(i,{serializeQueryArgs:s},l){const a=i,{buildQueryHooks:u,buildMutationHook:d,usePrefetch:p}=G_({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:s,context:l});return qs(a,{usePrefetch:p}),qs(l,{batch:e}),{injectEndpoint(f,y){if(Y_(y)){const{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:S,useQueryState:v,useQuerySubscription:h}=u(f);qs(a.endpoints[f],{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:S,useQueryState:v,useQuerySubscription:h}),i[`use${ec(f)}Query`]=g,i[`useLazy${ec(f)}Query`]=x}else if(X_(y)){const g=d(f);qs(a.endpoints[f],{useMutation:g}),i[`use${ec(f)}Mutation`]=g}}}}}),eO=c_(C_(),Z_());const tO={exercise:"fa9b2c4aa9msh949ff96d032eea6p1600b2jsn5a3b7c49c42d",youtube:"25b98a5f93mshcfca88d1d3a8f7dp1335eajsn207d61a3e615"},fl=eO({reducerPath:"gymFitness",baseQuery:n_({baseUrl:"https://exercisedb.p.rapidapi.com",prepareHeaders(e){return e.set("X-RapidAPI-Key",tO.exercise),e.set("X-RapidAPI-Host","exercisedb.p.rapidapi.com"),e}}),endpoints:e=>({getGymType:e.query({query:(t,n="100")=>t==="all"?"/exercises?limit=1000":`/exercises/bodyPart/${t}?limit=${n}`}),getSimilarEquipmentExercise:e.query({query:t=>`exercises/equipment/${t}`}),getSimilarExercises:e.query({query:t=>`exercises/target/${t}`}),getExerciseById:e.query({query:t=>`exercises/exercise/${t}`}),getExerciseByName:e.mutation({query:({searchtext:t,limit:n="100"})=>({url:`exercises/name/${t}?limit=${n}`,method:"POST"})})})}),{useGetGymTypeQuery:nO,useGetExerciseByNameMutation:cO,useGetSimilarEquipmentExerciseQuery:dO,useGetExerciseByIdQuery:fO,useGetSimilarExercisesQuery:pO}=fl,rO=()=>T.jsx("div",{className:"loader",children:T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 80",preserveAspectRatio:"xMidYMid",className:"lds-infinity",children:[T.jsx("path",{fill:"none",d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40 C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",stroke:"rgba(255,255,255,0.05)",strokeWidth:"7"}),T.jsx("path",{fill:"none",d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40 C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",stroke:"#CC3F72",strokeWidth:"7",strokeDasharray:"110 8 7 6 5 4 3 2 1 110",children:T.jsx("animate",{attributeName:"stroke-dashoffset",calcMode:"linear",values:"0;256.6",keyTimes:"0;1",dur:"2.3",begin:"0s",repeatCount:"indefinite"})})]})}),oO=()=>{const{isMobile:e,appStyles:t,scroll_navigation:n}=w.useContext(s1),r=["All","Back","Cardio","Chest","Lower Arms","Lower Legs","Neck","Shoulders","Upper Legs","Waist"],[o,i]=w.useState(0),[s,l]=w.useState([0,10]),[a,u]=w.useState("all"),d=pb(),p=()=>{const c=document.querySelector(".element-to-visible");console.log(c),c.scrollIntoView({behavior:"smooth"})},[f,y]=w.useState(""),{isLoading:g,data:x,isError:S}=nO(a),[v,h]=w.useState([]);return w.useEffect(()=>{window.localStorage.setItem("exercises",JSON.stringify(x)),h(x)},[x]),T.jsxs(T.Fragment,{children:[T.jsxs(BR,{sx:{marginBlockStart:e?3:5},children:[T.jsxs(Xr,{direction:"row",justifyContent:"space-between",children:[T.jsxs(wt,{sx:{display:"flex",flexDirection:"column",alignItems:"baseline"},children:[T.jsxs(Xr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:5,children:[T.jsx(wt,{component:"img",alt:"",src:NT}),T.jsx(Xt,{variant:"h6",sx:{borderBottom:"2px solid red"},children:"Home"}),T.jsx(Xt,{variant:"h6",sx:{"&:hover":{cursor:"pointer"}},onClick:p,children:"Exercise"})]}),T.jsxs(wt,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"baseline",gap:4,paddingBlockStart:e?10:18},children:[T.jsx(Xt,{variant:"h5",sx:{color:"#ff2625"},children:"Fitness Club"}),T.jsxs(Xt,{variant:"h3",children:["Sweat, Smile",T.jsx("br",{})," and Repeat"]}),T.jsx(Xt,{variant:"h5",children:"Check out the most effective exercises"}),T.jsx(rm,{variant:"contained",sx:{backgroundColor:"#ff2625"},onClick:p,children:"explore exercises"}),!e&&T.jsx("div",{className:"overlay"})]})]}),!e&&T.jsx(wt,{component:"img",alt:"",src:MT,sx:{width:"50%"}})]}),T.jsxs(Xt,{variant:e?"h4":"h3",textAlign:"center",sx:{marginBlockStart:e?12:15},children:["Awesome Exercises You ",e?"":T.jsx("br",{}),"Should Know"]}),T.jsxs(wt,{sx:{position:"relative",display:"flex",marginBlockStart:8},children:[T.jsx(OT,{type:"search",fullWidth:!0,placeholder:"search exercises",value:f,onChange:c=>{let m=c.target.value;y(m)}}),T.jsx(rm,{variant:"contained",sx:{backgroundColor:"#ff2625",position:"absolute",right:.2,height:"100%",width:e?"25%":150},size:"small",onClick:()=>{if(f){const c=window.localStorage.getItem("exercises"),b=JSON.parse(c).filter(k=>k.name.includes(f));h(b),p()}},children:"Search"})]}),T.jsxs(wt,{sx:{position:"relative"},children:[T.jsx(Xr,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:5,sx:{overflow:"auto",marginBlockStart:8,paddingBottom:2},className:"gym-types",children:Array.from(r,(c,m)=>T.jsx(id,{sx:{minWidth:300,minHeight:250,display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",borderBottomLeftRadius:18,borderTop:m===o?"4px solid red":"","&:hover":{cursor:"pointer"}},onClick:()=>{i(m),u(c.toLowerCase()),p()},children:T.jsxs(wt,{children:[T.jsx(wt,{component:"img",src:zT,alt:"",sx:{width:60,display:"block",margin:"auto"}}),T.jsx(Xt,{variant:"h6",textAlign:"center",sx:{pt:2},children:c})]})},m))}),!e&&T.jsxs(Xr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,sx:{position:"absolute",right:2},children:[T.jsx(Gh,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>n(".gym-types",-700),children:T.jsx($0,{})}),T.jsx(Gh,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>n(".gym-types",700),children:T.jsx(T0,{})})]})]}),T.jsxs(wt,{sx:{marginBlockStart:10},className:"element-to-visible",children:[T.jsx(Xt,{variant:e?"h6":"h4",children:"Showing results"}),g&&T.jsx("div",{children:T.jsx(rO,{})}),S&&T.jsx(Xt,{variant:"h5",textAlign:"center",sx:{paddingTop:3,marginBottom:3},children:"Oops! something went wrong"}),x&&T.jsx(dm,{container:!0,spacing:2,rowSpacing:4,children:v==null?void 0:v.slice(s[0],s[1]).map(c=>{const{id:m,gifUrl:b,name:k,secondaryMuscles:C}=c;return T.jsx(dm,{item:!0,xs:6,sm:6,lg:4,children:T.jsxs(id,{sx:t.paper,onClick:()=>document.startViewTransition(()=>d(`/${m}`)),children:[T.jsx(wt,{component:"img",alt:"",src:b,sx:{width:"100%"}}),T.jsxs(Xr,{direction:e?"column":"row",justifyContent:"center",alignItems:"center",sx:{paddingInlineStart:2},spacing:2,children:[T.jsx(tm,{variant:"contained",size:"small",sx:t.gymbutton,id:"gym-element",label:C[0]}),T.jsx(tm,{label:C[1],variant:"contained",size:"small",sx:{...t.gymbutton,display:C[1]?"":"none",backgroundColor:"#fdaaaa"},id:"gym-element"})]}),T.jsx(Xt,{variant:e?"body1":"h6",sx:t.gymtext,children:k})]})},Number(m))})}),T.jsx(Xr,{direction:"row",justifyContent:"center",alignItems:"center",sx:{marginBlockStart:12},children:T.jsx(uT,{count:(x==null?void 0:x.length)>100?1e3/10:10,size:e?"small":"medium",color:"primary",onChange:(c,m)=>{const b=m*10-10,k=b+10,C=[b,k];console.log(C),l(C)}})})]})]}),T.jsxs(wt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",backgroundColor:"#fff3f4",marginBlockStart:8,gap:2,p:1},children:[T.jsx(wt,{component:"img",alt:"",src:AT}),T.jsx(Xt,{variant:e?"h6":"h5",children:"Thank you 🧡 for showing interest"})]})]})},iO=w.lazy(()=>LS(()=>import("./exercise-obFx-0z2.js"),__vite__mapDeps([]))),s1=w.createContext();function sO(){const e=Uo(),t=BP(e.breakpoints.down("sm")),n={paper:{maxWidth:"100%",marginBlockStart:4,paddingBlockEnd:2,display:"flex",justifyContent:"center",alignItems:"baseline",flexDirection:"column",gap:2,height:"100%","&:hover":{pointer:"cursor"},borderTop:"4px solid red"},gymbutton:{backgroundColor:"#ffa929",color:"white",borderRadius:4,fontSize:t?10:""},gymtext:{paddingInlineStart:t?1:2,"&::first-letter":{textTransform:"uppercase"}}},r=(o,i)=>{document.querySelector(o).scrollBy({top:0,left:i,behavior:"smooth"})};return T.jsx(s1.Provider,{value:{isMobile:t,appStyles:n,scroll_navigation:r},children:T.jsx(Ob,{children:T.jsxs(Tb,{children:[T.jsx(Gc,{path:"/",element:T.jsx(oO,{})}),T.jsx(Gc,{path:"/:exercisetype",element:T.jsx(w.Suspense,{fallback:T.jsx(wt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100svh"},children:T.jsx(FR,{color:"primary"})}),children:T.jsx(iO,{})})})]})})})}const lO=EI({reducer:{[fl.reducerPath]:fl.reducer},middleware:e=>e().concat(fl.middleware)});tc.createRoot(document.getElementById("root")).render(T.jsx(W_,{store:lO,children:T.jsx(sO,{})}));export{wt as B,tm as C,dm as G,Gh as I,rO as L,id as P,Xr as S,Xt as T,s1 as a,pO as b,T0 as c,$0 as d,dO as e,uO as f,fO as g,BR as h,T as j,tO as k,w as r,pb as u}; + */var ws=w;function w_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var k_=typeof Object.is=="function"?Object.is:w_,E_=ws.useSyncExternalStore,R_=ws.useRef,P_=ws.useEffect,$_=ws.useMemo,T_=ws.useDebugValue;e1.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=R_(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=$_(function(){function a(y){if(!u){if(u=!0,d=y,y=r(y),o!==void 0&&s.hasValue){var g=s.value;if(o(g,y))return p=g}return p=y}if(g=p,k_(d,y))return g;var x=r(y);return o!==void 0&&o(g,x)?g:(d=y,p=x)}var u=!1,d,p,f=n===void 0?null:n;return[function(){return a(t())},f===null?void 0:function(){return a(f())}]},[t,n,r,o]);var l=E_(e,i[0],i[1]);return P_(function(){s.hasValue=!0,s.value=l},[l]),T_(l),l};Z0.exports=e1;var I_=Z0.exports,Pt="default"in Ro?tn:Ro,Gm=Symbol.for("react-redux-context"),Ym=typeof globalThis<"u"?globalThis:{};function __(){if(!Pt.createContext)return{};const e=Ym[Gm]??(Ym[Gm]=new Map);let t=e.get(Pt.createContext);return t||(t=Pt.createContext(null),e.set(Pt.createContext,t)),t}var ar=__(),O_=()=>{throw new Error("uSES not initialized!")};function Zf(e=ar){return function(){return Pt.useContext(e)}}var t1=Zf(),n1=O_,M_=e=>{n1=e},N_=(e,t)=>e===t;function z_(e=ar){const t=e===ar?t1:Zf(e),n=(r,o={})=>{const{equalityFn:i=N_,devModeChecks:s={}}=typeof o=="function"?{equalityFn:o}:o,{store:l,subscription:a,getServerState:u,stabilityCheck:d,identityFunctionCheck:p}=t();Pt.useRef(!0);const f=Pt.useCallback({[r.name](g){return r(g)}}[r.name],[r,d,s.stabilityCheck]),y=n1(a.addNestedSub,l.getState,u||l.getState,f,i);return Pt.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var A_=z_();function r1(e){e()}function L_(){let e=null,t=null;return{clear(){e=null,t=null},notify(){r1(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Xm={notify(){},get:()=>[]};function j_(e,t){let n,r=Xm,o=0,i=!1;function s(x){d();const S=r.subscribe(x);let v=!1;return()=>{v||(v=!0,S(),p())}}function l(){r.notify()}function a(){g.onStateChange&&g.onStateChange()}function u(){return i}function d(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=L_())}function p(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Xm)}function f(){i||(i=!0,d())}function y(){i&&(i=!1,p())}const g={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:a,isSubscribed:u,trySubscribe:f,tryUnsubscribe:y,getListeners:()=>r};return g}var F_=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",D_=F_?Pt.useLayoutEffect:Pt.useEffect;function Jm(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function _i(e,t){if(Jm(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{const u=j_(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:o,identityFunctionCheck:i}},[e,r,o,i]),l=Pt.useMemo(()=>e.getState(),[e]);D_(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),l!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,l]);const a=t||ar;return Pt.createElement(a.Provider,{value:s},n)}var W_=B_;function o1(e=ar){const t=e===ar?t1:Zf(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var i1=o1();function U_(e=ar){const t=e===ar?i1:o1(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var V_=U_(),H_=r1;M_(I_.useSyncExternalStoreWithSelector);function Zm(e,t,n,r){const o=w.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}),[e,t,n,r]),i=w.useRef(o);return w.useEffect(()=>{i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}var Ju=Symbol();function Zu(e){const t=w.useRef(e);return w.useEffect(()=>{_i(t.current,e)||(t.current=e)},[e]),_i(t.current,e)?t.current:e}var eo=WeakMap?new WeakMap:void 0,Q_=({endpointName:e,queryArgs:t})=>{let n="";const r=eo==null?void 0:eo.get(t);if(typeof r=="string")n=r;else{const o=JSON.stringify(t,(i,s)=>vn(s)?Object.keys(s).sort().reduce((l,a)=>(l[a]=s[a],l),{}):s);vn(t)&&(eo==null||eo.set(t,o)),n=o}return`${e}(${n})`},K_=typeof window<"u"&&window.document&&window.document.createElement?w.useLayoutEffect:w.useEffect,q_=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:Q0.pending}:e;function G_({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:r,useStore:o},unstable__sideEffectsInRender:i,createSelector:s},serializeQueryArgs:l,context:a}){const u=i?g=>g():w.useEffect;return{buildQueryHooks:f,buildMutationHook:y,usePrefetch:p};function d(g,x,S){if(x!=null&&x.endpointName&&g.isUninitialized){const{endpointName:k}=x,C=a.endpointDefinitions[k];l({queryArgs:x.originalArgs,endpointDefinition:C,endpointName:k})===l({queryArgs:S,endpointDefinition:C,endpointName:k})&&(x=void 0)}let v=g.isSuccess?g.data:x==null?void 0:x.data;v===void 0&&(v=g.data);const h=v!==void 0,c=g.isLoading,m=!h&&c,b=g.isSuccess||c&&h;return{...g,data:v,currentData:g.data,isFetching:c,isLoading:m,isSuccess:b}}function p(g,x){const S=n(),v=Zu(x);return w.useCallback((h,c)=>S(e.util.prefetch(g,h,{...v,...c})),[g,S,v])}function f(g){const x=(h,{refetchOnReconnect:c,refetchOnFocus:m,refetchOnMountOrArgChange:b,skip:k=!1,pollingInterval:C=0,skipPollingIfUnfocused:E=!1}={})=>{const{initiate:$}=e.endpoints[g],P=n(),_=w.useRef();if(!_.current){const L=P(e.internalActions.internal_getRTKQSubscriptions());_.current=L}const O=Zm(k?wr:h,Q_,a.endpointDefinitions[g],g),N=Zu({refetchOnReconnect:c,refetchOnFocus:m,pollingInterval:C,skipPollingIfUnfocused:E}),M=w.useRef(!1),A=w.useRef();let{queryCacheKey:j,requestId:B}=A.current||{},I=!1;j&&B&&(I=_.current.isRequestSubscribed(j,B));const z=!I&&M.current;return u(()=>{M.current=I}),u(()=>{z&&(A.current=void 0)},[z]),u(()=>{var W;const L=A.current;if(typeof process<"u",O===wr){L==null||L.unsubscribe(),A.current=void 0;return}const Q=(W=A.current)==null?void 0:W.subscriptionOptions;if(!L||L.arg!==O){L==null||L.unsubscribe();const X=P($(O,{subscriptionOptions:N,forceRefetch:b}));A.current=X}else N!==Q&&L.updateSubscriptionOptions(N)},[P,$,b,O,N,z]),w.useEffect(()=>()=>{var L;(L=A.current)==null||L.unsubscribe(),A.current=void 0},[]),w.useMemo(()=>({refetch:()=>{var L;if(!A.current)throw new Error(ut(38));return(L=A.current)==null?void 0:L.refetch()}}),[])},S=({refetchOnReconnect:h,refetchOnFocus:c,pollingInterval:m=0,skipPollingIfUnfocused:b=!1}={})=>{const{initiate:k}=e.endpoints[g],C=n(),[E,$]=w.useState(Ju),P=w.useRef(),_=Zu({refetchOnReconnect:h,refetchOnFocus:c,pollingInterval:m,skipPollingIfUnfocused:b});u(()=>{var A,j;const M=(A=P.current)==null?void 0:A.subscriptionOptions;_!==M&&((j=P.current)==null||j.updateSubscriptionOptions(_))},[_]);const O=w.useRef(_);u(()=>{O.current=_},[_]);const N=w.useCallback(function(M,A=!1){let j;return t(()=>{var B;(B=P.current)==null||B.unsubscribe(),P.current=j=C(k(M,{subscriptionOptions:O.current,forceRefetch:!A})),$(M)}),j},[C,k]);return w.useEffect(()=>()=>{var M;(M=P==null?void 0:P.current)==null||M.unsubscribe()},[]),w.useEffect(()=>{E!==Ju&&!P.current&&N(E,!0)},[E,N]),w.useMemo(()=>[N,E],[N,E])},v=(h,{skip:c=!1,selectFromResult:m}={})=>{const{select:b}=e.endpoints[g],k=Zm(c?wr:h,l,a.endpointDefinitions[g],g),C=w.useRef(),E=w.useMemo(()=>s([b(k),(N,M)=>M,N=>k],d,{memoizeOptions:{resultEqualityCheck:_i}}),[b,k]),$=w.useMemo(()=>m?s([E],m,{devModeChecks:{identityFunctionCheck:"never"}}):E,[E,m]),P=r(N=>$(N,C.current),_i),_=o(),O=E(_.getState(),C.current);return K_(()=>{C.current=O},[O]),P};return{useQueryState:v,useQuerySubscription:x,useLazyQuerySubscription:S,useLazyQuery(h){const[c,m]=S(h),b=v(m,{...h,skip:m===Ju}),k=w.useMemo(()=>({lastArg:m}),[m]);return w.useMemo(()=>[c,b,k],[c,b,k])},useQuery(h,c){const m=x(h,c),b=v(h,{selectFromResult:h===wr||c!=null&&c.skip?void 0:q_,...c}),{data:k,status:C,isLoading:E,isSuccess:$,isError:P,error:_}=b;return w.useDebugValue({data:k,status:C,isLoading:E,isSuccess:$,isError:P,error:_}),w.useMemo(()=>({...b,...m}),[b,m])}}}function y(g){return({selectFromResult:x,fixedCacheKey:S}={})=>{const{select:v,initiate:h}=e.endpoints[g],c=n(),[m,b]=w.useState();w.useEffect(()=>()=>{m!=null&&m.arg.fixedCacheKey||m==null||m.reset()},[m]);const k=w.useCallback(function(Q){const W=c(h(Q,{fixedCacheKey:S}));return b(W),W},[c,h,S]),{requestId:C}=m||{},E=w.useMemo(()=>v({fixedCacheKey:S,requestId:m==null?void 0:m.requestId}),[S,m,v]),$=w.useMemo(()=>x?s([E],x):E,[x,E]),P=r($,_i),_=S==null?m==null?void 0:m.arg.originalArgs:void 0,O=w.useCallback(()=>{t(()=>{m&&b(void 0),S&&c(e.internalActions.removeMutationResult({requestId:C,fixedCacheKey:S}))})},[c,S,m,C]),{endpointName:N,data:M,status:A,isLoading:j,isSuccess:B,isError:I,error:z}=P;w.useDebugValue({endpointName:N,data:M,status:A,isLoading:j,isSuccess:B,isError:I,error:z});const L=w.useMemo(()=>({...P,originalArgs:_,reset:O}),[P,_,O]);return w.useMemo(()=>[k,L],[k,L])}}}function Y_(e){return e.type==="query"}function X_(e){return e.type==="mutation"}function ec(e){return e.replace(e[0],e[0].toUpperCase())}function qs(e,...t){return Object.assign(e,...t)}var J_=Symbol(),Z_=({batch:e=H_,hooks:t={useDispatch:V_,useSelector:A_,useStore:i1},createSelector:n=Qf,unstable__sideEffectsInRender:r=!1,...o}={})=>({name:J_,init(i,{serializeQueryArgs:s},l){const a=i,{buildQueryHooks:u,buildMutationHook:d,usePrefetch:p}=G_({api:i,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:r,createSelector:n},serializeQueryArgs:s,context:l});return qs(a,{usePrefetch:p}),qs(l,{batch:e}),{injectEndpoint(f,y){if(Y_(y)){const{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:S,useQueryState:v,useQuerySubscription:h}=u(f);qs(a.endpoints[f],{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:S,useQueryState:v,useQuerySubscription:h}),i[`use${ec(f)}Query`]=g,i[`useLazy${ec(f)}Query`]=x}else if(X_(y)){const g=d(f);qs(a.endpoints[f],{useMutation:g}),i[`use${ec(f)}Mutation`]=g}}}}}),eO=c_(C_(),Z_());const tO={exercise:"fa9b2c4aa9msh949ff96d032eea6p1600b2jsn5a3b7c49c42d",youtube:"25b98a5f93mshcfca88d1d3a8f7dp1335eajsn207d61a3e615"},fl=eO({reducerPath:"gymFitness",baseQuery:n_({baseUrl:"https://exercisedb.p.rapidapi.com",prepareHeaders(e){return e.set("X-RapidAPI-Key",tO.exercise),e.set("X-RapidAPI-Host","exercisedb.p.rapidapi.com"),e}}),endpoints:e=>({getGymType:e.query({query:(t,n="100")=>t==="all"?"/exercises?limit=1000":`/exercises/bodyPart/${t}?limit=${n}`}),getSimilarEquipmentExercise:e.query({query:t=>`exercises/equipment/${t}`}),getSimilarExercises:e.query({query:t=>`exercises/target/${t}`}),getExerciseById:e.query({query:t=>`exercises/exercise/${t}`}),getExerciseByName:e.mutation({query:({searchtext:t,limit:n="100"})=>({url:`exercises/name/${t}?limit=${n}`,method:"POST"})})})}),{useGetGymTypeQuery:nO,useGetExerciseByNameMutation:cO,useGetSimilarEquipmentExerciseQuery:dO,useGetExerciseByIdQuery:fO,useGetSimilarExercisesQuery:pO}=fl,rO=()=>T.jsx("div",{className:"loader",children:T.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 80",preserveAspectRatio:"xMidYMid",className:"lds-infinity",children:[T.jsx("path",{fill:"none",d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40 C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",stroke:"rgba(255,255,255,0.05)",strokeWidth:"7"}),T.jsx("path",{fill:"none",d:"M24.3,30C11.4,30,5,43.3,5,50s6.4,20,19.3,20c19.3,0,32.1-40,51.4-40 C88.6,30,95,43.3,95,50s-6.4,20-19.3,20C56.4,70,43.6,30,24.3,30z",stroke:"#CC3F72",strokeWidth:"7",strokeDasharray:"110 8 7 6 5 4 3 2 1 110",children:T.jsx("animate",{attributeName:"stroke-dashoffset",calcMode:"linear",values:"0;256.6",keyTimes:"0;1",dur:"2.3",begin:"0s",repeatCount:"indefinite"})})]})}),oO=()=>{const{isMobile:e,appStyles:t,scroll_navigation:n}=w.useContext(s1),r=["All","Back","Cardio","Chest","Lower Arms","Lower Legs","Neck","Shoulders","Upper Legs","Waist"],[o,i]=w.useState(0),[s,l]=w.useState([0,10]),[a,u]=w.useState("all"),d=pb(),p=()=>{const c=document.querySelector(".element-to-visible");console.log(c),c.scrollIntoView({behavior:"smooth"})},[f,y]=w.useState(""),{isLoading:g,data:x,isError:S}=nO(a),[v,h]=w.useState([]);return w.useEffect(()=>{window.localStorage.setItem("exercises",JSON.stringify(x)),h(x)},[x]),T.jsxs(T.Fragment,{children:[T.jsxs(BR,{sx:{marginBlockStart:e?3:5},children:[T.jsxs(Xr,{direction:"row",justifyContent:"space-between",children:[T.jsxs(wt,{sx:{display:"flex",flexDirection:"column",alignItems:"baseline"},children:[T.jsxs(Xr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:5,children:[T.jsx(wt,{component:"img",alt:"",src:NT}),T.jsx(Xt,{variant:"h6",sx:{borderBottom:"2px solid red"},children:"Home"}),T.jsx(Xt,{variant:"h6",sx:{"&:hover":{cursor:"pointer"}},onClick:p,children:"Exercise"})]}),T.jsxs(wt,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"baseline",gap:4,paddingBlockStart:e?10:18},children:[T.jsx(Xt,{variant:"h5",sx:{color:"#ff2625"},children:"Fitness Club"}),T.jsxs(Xt,{variant:"h3",children:["Sweat, Smile",T.jsx("br",{})," and Repeat"]}),T.jsx(Xt,{variant:"h5",children:"Check out the most effective exercises"}),T.jsx(rm,{variant:"contained",sx:{backgroundColor:"#ff2625"},onClick:p,children:"explore exercises"}),!e&&T.jsx("div",{className:"overlay"})]})]}),!e&&T.jsx(wt,{component:"img",alt:"",src:MT,sx:{width:"50%"}})]}),T.jsxs(Xt,{variant:e?"h4":"h3",textAlign:"center",sx:{marginBlockStart:e?12:15},children:["Awesome Exercises You ",e?"":T.jsx("br",{}),"Should Know"]}),T.jsxs(wt,{sx:{position:"relative",display:"flex",marginBlockStart:8},children:[T.jsx(OT,{type:"search",fullWidth:!0,placeholder:"search exercises",value:f,onChange:c=>{let m=c.target.value;y(m)}}),T.jsx(rm,{variant:"contained",sx:{backgroundColor:"#ff2625",position:"absolute",right:.2,height:"100%",width:e?"25%":150},size:"small",onClick:()=>{if(f){const c=window.localStorage.getItem("exercises"),b=JSON.parse(c).filter(k=>k.name.includes(f));h(b),p()}},children:"Search"})]}),T.jsxs(wt,{sx:{position:"relative"},children:[T.jsx(Xr,{direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:5,sx:{overflow:"auto",marginBlockStart:8,paddingBottom:2},className:"gym-types",children:Array.from(r,(c,m)=>T.jsx(id,{sx:{minWidth:300,minHeight:250,display:"flex",justifyContent:"center",flexDirection:"column",alignItems:"center",borderBottomLeftRadius:18,borderTop:m===o?"4px solid red":"","&:hover":{cursor:"pointer"}},onClick:()=>{i(m),u(c.toLowerCase()),p()},children:T.jsxs(wt,{children:[T.jsx(wt,{component:"img",src:zT,alt:"",sx:{width:60,display:"block",margin:"auto"},loading:"lazy"}),T.jsx(Xt,{variant:"h6",textAlign:"center",sx:{pt:2},children:c})]})},m))}),!e&&T.jsxs(Xr,{direction:"row",justifyContent:"center",alignItems:"center",spacing:2,sx:{position:"absolute",right:2},children:[T.jsx(Gh,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>n(".gym-types",-700),children:T.jsx($0,{})}),T.jsx(Gh,{sx:{backgroundColor:"#ff2625",color:"white","&:hover":{backgroundColor:"#ff2625",color:"white"}},onClick:()=>n(".gym-types",700),children:T.jsx(T0,{})})]})]}),T.jsxs(wt,{sx:{marginBlockStart:10},className:"element-to-visible",children:[T.jsx(Xt,{variant:e?"h6":"h4",children:"Showing results"}),g&&T.jsx("div",{children:T.jsx(rO,{})}),S&&T.jsx(Xt,{variant:"h5",textAlign:"center",sx:{paddingTop:3,marginBottom:3},children:"Oops! something went wrong"}),x&&T.jsx(dm,{container:!0,spacing:2,rowSpacing:4,children:v==null?void 0:v.slice(s[0],s[1]).map(c=>{const{id:m,gifUrl:b,name:k,secondaryMuscles:C}=c;return T.jsx(dm,{item:!0,xs:6,sm:6,lg:4,children:T.jsxs(id,{sx:t.paper,onClick:()=>document.startViewTransition(()=>d(`/${m}`)),children:[T.jsx(wt,{component:"img",alt:"",src:b,sx:{width:"100%"}}),T.jsxs(Xr,{direction:e?"column":"row",justifyContent:"center",alignItems:"center",sx:{paddingInlineStart:2},spacing:2,children:[T.jsx(tm,{variant:"contained",size:"small",sx:t.gymbutton,id:"gym-element",label:C[0]}),T.jsx(tm,{label:C[1],variant:"contained",size:"small",sx:{...t.gymbutton,display:C[1]?"":"none",backgroundColor:"#fdaaaa"},id:"gym-element"})]}),T.jsx(Xt,{variant:e?"body1":"h6",sx:t.gymtext,children:k})]})},Number(m))})}),T.jsx(Xr,{direction:"row",justifyContent:"center",alignItems:"center",sx:{marginBlockStart:12},children:T.jsx(uT,{count:(x==null?void 0:x.length)>100?1e3/10:10,size:e?"small":"medium",color:"primary",onChange:(c,m)=>{const b=m*10-10,k=b+10,C=[b,k];console.log(C),l(C)}})})]})]}),T.jsxs(wt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",backgroundColor:"#fff3f4",marginBlockStart:8,gap:2,p:1},children:[T.jsx(wt,{component:"img",alt:"",src:AT}),T.jsx(Xt,{variant:e?"h6":"h5",children:"Thank you 🧡 for showing interest"})]})]})},iO=w.lazy(()=>LS(()=>import("./exercise-J8FIblSv.js"),__vite__mapDeps([]))),s1=w.createContext();function sO(){const e=Uo(),t=BP(e.breakpoints.down("sm")),n={paper:{maxWidth:"100%",marginBlockStart:4,paddingBlockEnd:2,display:"flex",justifyContent:"center",alignItems:"baseline",flexDirection:"column",gap:2,height:"100%","&:hover":{pointer:"cursor"},borderTop:"4px solid red"},gymbutton:{backgroundColor:"#ffa929",color:"white",borderRadius:4,fontSize:t?10:""},gymtext:{paddingInlineStart:t?1:2,"&::first-letter":{textTransform:"uppercase"}}},r=(o,i)=>{document.querySelector(o).scrollBy({top:0,left:i,behavior:"smooth"})};return T.jsx(s1.Provider,{value:{isMobile:t,appStyles:n,scroll_navigation:r},children:T.jsx(Ob,{children:T.jsxs(Tb,{children:[T.jsx(Gc,{path:"/",element:T.jsx(oO,{})}),T.jsx(Gc,{path:"/:exercisetype",element:T.jsx(w.Suspense,{fallback:T.jsx(wt,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100svh"},children:T.jsx(FR,{color:"primary"})}),children:T.jsx(iO,{})})})]})})})}const lO=EI({reducer:{[fl.reducerPath]:fl.reducer},middleware:e=>e().concat(fl.middleware)});tc.createRoot(document.getElementById("root")).render(T.jsx(W_,{store:lO,children:T.jsx(sO,{})}));export{wt as B,tm as C,dm as G,Gh as I,rO as L,id as P,Xr as S,Xt as T,s1 as a,pO as b,T0 as c,$0 as d,dO as e,uO as f,fO as g,BR as h,T as j,tO as k,w as r,pb as u}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = [] diff --git a/index.html b/index.html index 788b630..2f3fa79 100644 --- a/index.html +++ b/index.html @@ -9,7 +9,7 @@ /> GoldsGym - +