diff --git a/frontend/dist/assets/favicon-mIwGY38U.ico b/frontend/dist/assets/favicon-mIwGY38U.ico new file mode 100644 index 0000000..76ca3ef Binary files /dev/null and b/frontend/dist/assets/favicon-mIwGY38U.ico differ diff --git a/frontend/dist/assets/favicon-z4qTaQsf.ico b/frontend/dist/assets/favicon-z4qTaQsf.ico deleted file mode 100644 index 5382fb3..0000000 Binary files a/frontend/dist/assets/favicon-z4qTaQsf.ico and /dev/null differ diff --git a/frontend/dist/assets/index-pGFNy7-M.js b/frontend/dist/assets/index-0RRBOsyE.js similarity index 78% rename from frontend/dist/assets/index-pGFNy7-M.js rename to frontend/dist/assets/index-0RRBOsyE.js index d302982..68158a5 100644 --- a/frontend/dist/assets/index-pGFNy7-M.js +++ b/frontend/dist/assets/index-0RRBOsyE.js @@ -76,7 +76,7 @@ Error generating stack: `+o.message+` `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&xS[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},mf=Symbol("internals");function Br(e){return e&&String(e).trim().toLowerCase()}function Lo(e){return e===!1||e==null?e:P.isArray(e)?e.map(Lo):String(e)}function ES(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 jS=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ml(e,t,n,r,s){if(P.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function NS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function CS(e,t){const n=P.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 Qi{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,u,c){const d=Br(u);if(!d)throw new Error("header name must be a non-empty string");const f=P.findKey(s,d);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||u]=Lo(l))}const i=(l,u)=>P.forEach(l,(c,d)=>o(c,d,u));return P.isPlainObject(t)||t instanceof this.constructor?i(t,n):P.isString(t)&&(t=t.trim())&&!jS(t)?i(SS(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=Br(t),t){const r=P.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return ES(s);if(P.isFunction(n))return n.call(this,s,r);if(P.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Br(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Ml(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=Br(i),i){const l=P.findKey(r,i);l&&(!n||Ml(r,r[l],l,n))&&(delete r[l],s=!0)}}return P.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||Ml(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return P.forEach(this,(s,o)=>{const i=P.findKey(r,o);if(i){n[i]=Lo(s),delete n[o];return}const l=t?NS(o):String(o).trim();l!==o&&delete n[o],n[l]=Lo(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&P.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[mf]=this[mf]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=Br(i);r[l]||(CS(s,i),r[l]=!0)}return P.isArray(t)?t.forEach(o):o(t),this}}Qi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(Qi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(Qi);const Jt=Qi;function zl(e,t){const n=this||yc,r=t||n,s=Jt.from(r.headers);let o=r.data;return P.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Jh(e){return!!(e&&e.__CANCEL__)}function Ws(e,t,n){V.call(this,e??"canceled",V.ERR_CANCELED,t,n),this.name="CanceledError"}P.inherits(Ws,V,{__CANCEL__:!0});function _S(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const PS=At.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];P.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),P.isString(r)&&i.push("path="+r),P.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 kS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Yh(e,t){return e&&!kS(t)?RS(e,t):t}const bS=At.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 l=P.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function OS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function TS(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(u){const c=Date.now(),d=r[o];i||(i=c),n[s]=u,r[s]=c;let f=o,y=0;for(;f!==s;)y+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,u=r(l),c=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:u||void 0,estimated:u&&i&&c?(i-o)/u:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const IS=typeof XMLHttpRequest<"u",LS=IS&&function(e){return new Promise(function(n,r){let s=e.data;const o=Jt.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,u;function c(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let d;if(P.isFormData(s)){if(At.hasStandardBrowserEnv||At.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[g,...S]=d?d.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([g||"multipart/form-data",...S].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",S=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(g+":"+S))}const y=Yh(e.baseURL,e.url);f.open(e.method.toUpperCase(),qh(y,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function x(){if(!f)return;const g=Jt.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};_S(function(m){n(m),c()},function(m){r(m),c()},h),f=null}if("onloadend"in f?f.onloadend=x:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(x)},f.onabort=function(){f&&(r(new V("Request aborted",V.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new V("Network Error",V.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let S=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Kh;e.timeoutErrorMessage&&(S=e.timeoutErrorMessage),r(new V(S,h.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,e,f)),f=null},At.hasStandardBrowserEnv&&(l&&P.isFunction(l)&&(l=l(e)),l||l!==!1&&bS(y))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&PS.read(e.xsrfCookieName);g&&o.set(e.xsrfHeaderName,g)}s===void 0&&o.setContentType(null),"setRequestHeader"in f&&P.forEach(o.toJSON(),function(S,h){f.setRequestHeader(h,S)}),P.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",hf(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",hf(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=g=>{f&&(r(!g||g.type?new Ws(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const v=OS(y);if(v&&At.protocols.indexOf(v)===-1){r(new V("Unsupported protocol "+v+":",V.ERR_BAD_REQUEST,e));return}f.send(s||null)})},Xa={http:oS,xhr:LS};P.forEach(Xa,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const yf=e=>`- ${e}`,DS=e=>P.isFunction(e)||e===null||e===!1,Gh={getAdapter:e=>{e=P.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : `+o.map(yf).join(` -`):" "+yf(o[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Xa};function Fl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ws(null,e)}function vf(e){return Fl(e),e.headers=Jt.from(e.headers),e.data=zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gh.getAdapter(e.adapter||yc.adapter)(e).then(function(r){return Fl(e),r.data=zl.call(e,e.transformResponse,r),r.headers=Jt.from(r.headers),r},function(r){return Jh(r)||(Fl(e),r&&r.response&&(r.response.data=zl.call(e,e.transformResponse,r.response),r.response.headers=Jt.from(r.response.headers))),Promise.reject(r)})}const gf=e=>e instanceof Jt?e.toJSON():e;function kr(e,t){t=t||{};const n={};function r(c,d,f){return P.isPlainObject(c)&&P.isPlainObject(d)?P.merge.call({caseless:f},c,d):P.isPlainObject(d)?P.merge({},d):P.isArray(d)?d.slice():d}function s(c,d,f){if(P.isUndefined(d)){if(!P.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function o(c,d){if(!P.isUndefined(d))return r(void 0,d)}function i(c,d){if(P.isUndefined(d)){if(!P.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={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:l,headers:(c,d)=>s(gf(c),gf(d),!0)};return P.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||s,y=f(e[d],t[d],d);P.isUndefined(y)&&f!==l||(n[d]=y)}),n}const Zh="1.6.5",vc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wf={};vc.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Zh+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new V(s(i," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!wf[i]&&(wf[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function AS(e,t,n){if(typeof e!="object")throw new V("options must be an object",V.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 l=e[o],u=l===void 0||i(l,o,e);if(u!==!0)throw new V("option "+o+" must be "+u,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+o,V.ERR_BAD_OPTION)}}const Ja={assertOptions:AS,validators:vc},sn=Ja.validators;class yi{constructor(t){this.defaults=t,this.interceptors={request:new pf,response:new pf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=kr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Ja.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),s!=null&&(P.isFunction(s)?n.paramsSerializer={serialize:s}:Ja.assertOptions(s,{encode:sn.function,serialize:sn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&P.merge(o.common,o[n.method]);o&&P.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Jt.concat(i,o);const l=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,y;if(!u){const v=[vf.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);f{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(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new Ws(o,i,l),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 gc(function(s){t=s}),cancel:t}}}const MS=gc;function zS(e){return function(n){return e.apply(null,n)}}function FS(e){return P.isObject(e)&&e.isAxiosError===!0}const Ya={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(Ya).forEach(([e,t])=>{Ya[t]=e});const $S=Ya;function ey(e){const t=new Do(e),n=Lh(Do.prototype.request,t);return P.extend(n,Do.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ey(kr(e,s))},n}const M=ey(yc);M.Axios=Do;M.CanceledError=Ws;M.CancelToken=MS;M.isCancel=Jh;M.VERSION=Zh;M.toFormData=Ki;M.AxiosError=V;M.Cancel=M.CanceledError;M.all=function(t){return Promise.all(t)};M.spread=zS;M.isAxiosError=FS;M.mergeConfig=kr;M.AxiosHeaders=Jt;M.formToJSON=e=>Xh(P.isHTMLForm(e)?new FormData(e):e);M.getAdapter=Gh.getAdapter;M.HttpStatusCode=$S;M.default=M;const US=(e,t)=>async n=>{try{n(Bw());const r={headers:{"Content-type":"application/json"}},{data:s}=await M.post("/api/users/login",{username:e,password:t},r);n(fc(s)),localStorage.setItem("userInfo",JSON.stringify(s))}catch(r){n(Hw(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},BS=()=>e=>{localStorage.removeItem("userInfo"),e(Ww()),e(Xw()),e(ox())},HS=(e,t,n,r)=>async s=>{try{s(lx());const o={headers:{"Content-type":"application/json"}},{data:i}=await M.post("/api/users/register",{username:e,email:t,password:n,password_confirm:r},o);s(ax(i)),s(fc(i)),localStorage.setItem("userInfo",JSON.stringify(i))}catch(o){s(ux(o.response&&o.response.data.detail?o.response.data.detail:o.message))}},ty=e=>async(t,n)=>{try{t(qw());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.get(`/api/users/${e}`,s);t(Kw(o))}catch(r){t(Qw(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},WS=e=>async(t,n)=>{try{t(Yw());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put("/api/users/update",e,s);t(Gw(o)),t(fc(o)),localStorage.setItem("userInfo",JSON.stringify(o))}catch(r){t(Zw(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},VS=()=>async(e,t)=>{try{e(dx());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.get("/api/users/",r);e(fx(s))}catch(n){e(px(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},qS=e=>async(t,n)=>{try{t(hx());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.delete(`/api/users/delete/${e}/`,s);t(yx(o))}catch(r){t(vx(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},KS=e=>async(t,n)=>{try{t(xx());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put(`/api/users/update/${e.id}/`,e,s);t(Sx(o))}catch(r){t(Ex(r.response&&r.response.data.detail?r.response.data.detail:r.message))}};function QS(e){return oc({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"},child:[]}]})(e)}const ny=pe({name:"products",initialState:{loading:!1,products:[],page:null,pages:null,error:null},reducers:{fetchProductsStart:e=>{e.loading=!0},fetchProductsSuccess:(e,t)=>{e.loading=!1,e.products=t.payload.products,e.page=t.payload.page,e.pages=t.payload.pages},fetchProductsFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{fetchProductsStart:XS,fetchProductsSuccess:JS,fetchProductsFailure:YS}=ny.actions,GS=ny.reducer,ry=pe({name:"productDetail",initialState:{loading:!1,product:[],smallImages:[],error:null},reducers:{fetchProductDetailStart:e=>{e.loading=!0},fetchProductDetailSuccess:(e,t)=>{e.loading=!1,e.product=t.payload,e.smallImages=t.payload.images,e.error=null},fetchProductDetailFailure:(e,t)=>{e.loading=!1,e.product=null,e.error=t.payload}}}),{fetchProductDetailStart:ZS,fetchProductDetailSuccess:sy,fetchProductDetailFailure:e2}=ry.actions,t2=ry.reducer,oy=pe({name:"productReviewCreate",initialState:{loading:!1,success:!1,error:null},reducers:{createReviewStart:e=>{e.loading=!0},createReviewSuccess:e=>{e.loading=!1,e.success=!0},createReviewFailure:(e,t)=>{e.loading=!1,e.error=t.payload},resetProductReview:e=>{e.success=!1,e.error=null}}}),{createReviewStart:n2,createReviewSuccess:r2,createReviewFailure:s2,resetProductReview:xf}=oy.actions,o2=oy.reducer,iy=pe({name:"productDelete",initialState:{loading:!1,success:!1,error:null},reducers:{productDeleteStart:e=>{e.loading=!0},productDeleteSuccess:e=>{e.loading=!1,e.success=!0,e.error=null},productDeleteFailure:(e,t)=>{e.loading=!1,e.error=t.payload},productDeleteReset:e=>{e.success=!1,e.error=null}}}),{productDeleteStart:i2,productDeleteSuccess:l2,productDeleteFailure:a2,productDeleteReset:u2}=iy.actions,c2=iy.reducer,ly=pe({name:"productUpdate",initialState:{loading:!1,success:!1,error:!1},reducers:{productUpdateStart:e=>{e.loading=!0},productUpdateSuccess:e=>{e.loading=!1,e.success=!0},productUpdateFailure:(e,t)=>{e.loading=!1,e.error=t.payload},productUpdateReset:e=>{e.error=!1,e.success=!1}}}),{productUpdateStart:d2,productUpdateSuccess:f2,productUpdateFailure:p2,productUpdateReset:m2}=ly.actions,h2=ly.reducer,ay=pe({name:"productCreate",initialState:{loading:!1,success:!1,product:{},error:null},reducers:{productCreateStart:e=>{e.loading=!0},productCreateSuccess:(e,t)=>{e.loading=!1,e.product=t.payload,e.success=!0,e.error=null},productCreateFailure:(e,t)=>{e.loading=!1,e.error=t.payload},productCreateReset:e=>{e.success=!1,e.error=null,e.product={}}}}),{productCreateStart:y2,productCreateSuccess:v2,productCreateFailure:g2,productCreateReset:w2}=ay.actions,x2=ay.reducer,uy=pe({name:"products",initialState:{loading:!1,categories:[],error:null},reducers:{fetchCategoriesStart:e=>{e.loading=!0},fetchCategoriesSuccess:(e,t)=>{e.loading=!1,e.categories=t.payload,e.error=null},fetchCategoriesFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{fetchCategoriesStart:S2,fetchCategoriesSuccess:E2,fetchCategoriesFailure:j2}=uy.actions,N2=uy.reducer,cy=pe({name:"productTop",initialState:{loading:!1,products:[],error:null},reducers:{fetchTopProductsStart:e=>{e.loading=!0},fetchTopProductsSuccess:(e,t)=>{e.loading=!1,e.products=t.payload},fetchTopProductsFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{fetchTopProductsStart:C2,fetchTopProductsSuccess:_2,fetchTopProductsFailure:P2}=cy.actions,k2=cy.reducer,vi=(e="")=>async t=>{try{t(XS());const{data:n}=await M.get(`/api/products${e}`);t(JS(n))}catch(n){t(YS(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},R2=()=>async e=>{try{e(C2());const{data:t}=await M.get("/api/products/top/");e(_2(t))}catch(t){e(P2(t.response&&t.response.data.detail?t.response.data.detail:t.message))}},Ga=e=>async t=>{try{t(ZS());const{data:n}=await M.get(`/api/products/detail/${e}`);t(sy(n))}catch(n){t(e2(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},b2=(e,t)=>async(n,r)=>{try{n(n2());const{userInfo:{user:s}}=r(),o={headers:{"Content-type":"application/json",Authorization:`Bearer ${s.token}`}},{data:i}=await M.post(`/api/products/${e}/review/`,t,o);n(r2(i))}catch(s){n(s2(s.response&&s.response.data.detail?s.response.data.detail:s.message))}},O2=e=>async(t,n)=>{try{t(i2());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.delete(`/api/products/delete/${e}/`,s);t(l2(o))}catch(r){t(a2(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},T2=e=>async(t,n)=>{try{t(d2());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put(`/api/products/update/${e.id}/`,e,s);t(f2(o)),t(sy(o))}catch(r){t(p2(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},I2=()=>async(e,t)=>{try{e(y2());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.post("/api/products/create/",{},r);e(v2(s))}catch(n){e(g2(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},dy=()=>async e=>{try{e(S2());const{data:t}=await M.get("/api/products/categories");e(E2(t))}catch(t){e(j2(t.response&&t.response.data.detail?t.response.data.detail:t.message))}},L2=()=>{const e=_e(),t=F(d=>d.userInfo),{user:n}=t,r=F(d=>d.cart),{cartItems:s}=r,o=F(d=>d.cart.orderValues),[i,l]=j.useState(!1),u=()=>{const d=document.activeElement;d&&(d==null||d.blur())},c=()=>{e(BS())};return j.useEffect(()=>{e(To())},[e,s]),j.useEffect(()=>{e(dy())},[e]),a.jsxs("div",{className:"h-20 sticky px-4 md:px-16 mx-auto z-10 shadow-sm top-0 bg-gray-50",children:[a.jsxs("div",{className:"flex items-center justify-between py-4 relative",children:[a.jsx("div",{className:"flex items-center",children:a.jsx("div",{className:"avatar w-12",children:a.jsxs(Y,{to:"/",className:"flex items-center",children:[a.jsx("img",{src:"/static/images/logo.png",alt:""}),a.jsx("span",{className:"hidden xl:inline-block font-extrabold",children:"BLIZZR"})]})})}),a.jsx("div",{className:"max-md:hidden w-[70%]",children:a.jsx(Qd,{})}),a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsxs("div",{className:"dropdown dropdown-end",children:[a.jsx("div",{tabIndex:0,role:"button",className:"btn btn-ghost btn-circle",children:a.jsxs("div",{className:"indicator",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"})}),s.length!==0&&a.jsx("span",{className:"badge badge-sm indicator-item",children:s.length})]})}),a.jsx("div",{tabIndex:0,className:"mt-3 z-[1] card card-compact dropdown-content w-52 bg-base-100 shadow",children:a.jsxs("div",{className:"card-body",children:[s.length>1?a.jsxs("span",{className:"font-bold text-lg",children:[s.length," Items"]}):a.jsxs("span",{className:"font-bold text-lg",children:[s.length," Item"]}),a.jsxs("span",{className:"text-info",children:["Subtotal: ",o&&`$${o.subtotal}`]}),a.jsx("div",{className:"card-actions",onClick:u,children:a.jsx(Y,{to:"/cart",className:"btn btn-block",children:"View cart"})})]})})]}),a.jsxs("div",{className:"dropdown dropdown-end",children:[a.jsx("div",{tabIndex:0,role:"button",className:"btn btn-ghost btn-circle avatar",children:a.jsx("div",{className:"",children:a.jsx(QS,{className:"text-2xl"})})}),a.jsxs("ul",{tabIndex:0,className:"menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52",children:[a.jsx("li",{children:a.jsx(Y,{to:"/profile",className:"justify-between",onClick:u,children:"Profile"})}),n&&n.isAdmin&&a.jsx("li",{children:a.jsxs("details",{children:[a.jsx("summary",{children:"Admin"}),a.jsxs("ul",{className:"p-2 bg-base-100 rounded-t-none",onClick:u,children:[a.jsx("li",{children:a.jsx(Y,{to:"/admin/users",children:"Users"})}),a.jsx("li",{children:a.jsx(Y,{to:"/admin/productlist",children:"Products"})}),a.jsx("li",{children:a.jsx(Y,{to:"/admin/orderlist",children:"Orders"})})]})]})}),n?a.jsx("li",{onClick:c,children:a.jsx(Y,{onClick:u,children:"Logout"})}):a.jsx("li",{onClick:u,children:a.jsx(Y,{to:"/login",children:"Login"})})]})]}),a.jsx("span",{onClick:()=>l(!i),className:"p-[9px] bg-gray-100 rounded-full md:hidden",children:a.jsx(y1,{className:`transition ease-in duration-150 ${i?"rotate-180":"0"}`})})]})]}),a.jsxs("div",{className:`md:hidden ${i?"pb-4 px-5 bg-gray-50":"h-0 invisible opacity-0"}`,children:[a.jsxs("ul",{className:"flex flex-col text-[15px] opacity-75 px-2",children:[a.jsx("li",{children:a.jsx(Y,{to:"/",className:"py-3 inline-block w-full",children:"Home"})}),a.jsx("li",{children:a.jsx(Y,{to:"/",onClick:c,className:"py-3 inline-block w-full",children:"Logout"})})]}),a.jsx("div",{className:"flex items-center bg-gray-100 p-2 rounded-lg my-4 py-3",children:a.jsx(Qd,{})})]})]})};function fy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Hn=e=>typeof e=="string",it=e=>typeof e=="function",Ao=e=>Hn(e)||it(e)?e:null,Za=e=>j.isValidElement(e)||Hn(e)||it(e)||Is(e);function D2(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function Xi(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:s=!0,collapseDuration:o=300}=e;return function(i){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:y,playToast:x}=i;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,S=j.useRef(0);return j.useLayoutEffect(()=>{const h=f.current,p=v.split(" "),m=w=>{w.target===f.current&&(x(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),S.current===0&&w.type!=="animationcancel"&&h.classList.remove(...p))};h.classList.add(...p),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),j.useEffect(()=>{const h=f.current,p=()=>{h.removeEventListener("animationend",p),s?D2(h,d,o):d()};y||(c?p():(S.current=1,h.className+=` ${g}`,h.addEventListener("animationend",p)))},[y]),B.createElement(B.Fragment,null,l)}}function Sf(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Be=new Map;let Ls=[];const eu=new Set,A2=e=>eu.forEach(t=>t(e)),py=()=>Be.size>0;function my(e,t){var n;if(t)return!((n=Be.get(t))==null||!n.isToastActive(e));let r=!1;return Be.forEach(s=>{s.isToastActive(e)&&(r=!0)}),r}function hy(e,t){Za(e)&&(py()||Ls.push({content:e,options:t}),Be.forEach(n=>{n.buildToast(e,t)}))}function Ef(e,t){Be.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function M2(e){const{subscribe:t,getSnapshot:n,setProps:r}=j.useRef(function(o){const i=o.containerId||1;return{subscribe(l){const u=function(d,f,y){let x=1,v=0,g=[],S=[],h=[],p=f;const m=new Map,w=new Set,E=()=>{h=Array.from(m.values()),w.forEach(C=>C())},_=C=>{S=C==null?[]:S.filter(k=>k!==C),E()},N=C=>{const{toastId:k,onOpen:O,updateId:I,children:re}=C.props,Ee=I==null;C.staleId&&m.delete(C.staleId),m.set(k,C),S=[...S,C.props.toastId].filter(me=>me!==C.staleId),E(),y(Sf(C,Ee?"added":"updated")),Ee&&it(O)&&O(j.isValidElement(re)&&re.props)};return{id:d,props:p,observe:C=>(w.add(C),()=>w.delete(C)),toggle:(C,k)=>{m.forEach(O=>{k!=null&&k!==O.props.toastId||it(O.toggle)&&O.toggle(C)})},removeToast:_,toasts:m,clearQueue:()=>{v-=g.length,g=[]},buildToast:(C,k)=>{if((W=>{let{containerId:se,toastId:ie,updateId:je}=W;const he=se?se!==d:d!==1,Ke=m.has(ie)&&je==null;return he||Ke})(k))return;const{toastId:O,updateId:I,data:re,staleId:Ee,delay:me}=k,Fe=()=>{_(O)},qe=I==null;qe&&v++;const Pe={...p,style:p.toastStyle,key:x++,...Object.fromEntries(Object.entries(k).filter(W=>{let[se,ie]=W;return ie!=null})),toastId:O,updateId:I,data:re,closeToast:Fe,isIn:!1,className:Ao(k.className||p.toastClassName),bodyClassName:Ao(k.bodyClassName||p.bodyClassName),progressClassName:Ao(k.progressClassName||p.progressClassName),autoClose:!k.isLoading&&(b=k.autoClose,L=p.autoClose,b===!1||Is(b)&&b>0?b:L),deleteToast(){const W=m.get(O),{onClose:se,children:ie}=W.props;it(se)&&se(j.isValidElement(ie)&&ie.props),y(Sf(W,"removed")),m.delete(O),v--,v<0&&(v=0),g.length>0?N(g.shift()):E()}};var b,L;Pe.closeButton=p.closeButton,k.closeButton===!1||Za(k.closeButton)?Pe.closeButton=k.closeButton:k.closeButton===!0&&(Pe.closeButton=!Za(p.closeButton)||p.closeButton);let D=C;j.isValidElement(C)&&!Hn(C.type)?D=j.cloneElement(C,{closeToast:Fe,toastProps:Pe,data:re}):it(C)&&(D=C({closeToast:Fe,toastProps:Pe,data:re}));const q={content:D,props:Pe,staleId:Ee};p.limit&&p.limit>0&&v>p.limit&&qe?g.push(q):Is(me)?setTimeout(()=>{N(q)},me):N(q)},setProps(C){p=C},setToggle:(C,k)=>{m.get(C).toggle=k},isToastActive:C=>S.some(k=>k===C),getSnapshot:()=>p.newestOnTop?h.reverse():h}}(i,o,A2);Be.set(i,u);const c=u.observe(l);return Ls.forEach(d=>hy(d.content,d.options)),Ls=[],()=>{c(),Be.delete(i)}},setProps(l){var u;(u=Be.get(i))==null||u.setProps(l)},getSnapshot(){var l;return(l=Be.get(i))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const s=j.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!s)return[];const i=new Map;return s.forEach(l=>{const{position:u}=l.props;i.has(u)||i.set(u,[]),i.get(u).push(l)}),Array.from(i,l=>o(l[0],l[1]))},isToastActive:my,count:s==null?void 0:s.length}}function z2(e){const[t,n]=j.useState(!1),[r,s]=j.useState(!1),o=j.useRef(null),i=j.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var y,x;function v(){n(!0)}function g(){n(!1)}function S(m){const w=o.current;i.canDrag&&w&&(i.didMove=!0,t&&g(),i.delta=e.draggableDirection==="x"?m.clientX-i.start:m.clientY-i.start,i.start!==m.clientX&&(i.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function h(){document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",h);const m=o.current;if(i.canDrag&&i.didMove&&m){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(x=Be.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||x.setToggle(y.id,y.fn),j.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",v),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const p={onPointerDown:function(m){if(e.draggable===!0||e.draggable===m.pointerType){i.didMove=!1,document.addEventListener("pointermove",S),document.addEventListener("pointerup",h);const w=o.current;i.canCloseOnClick=!0,i.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(i.start=m.clientX,i.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(i.start=m.clientY,i.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:w,bottom:E,left:_,right:N}=o.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=_&&m.clientX<=N&&m.clientY>=w&&m.clientY<=E?g():v()}};return l&&u&&(p.onMouseEnter=g,e.stacked||(p.onMouseLeave=v)),f&&(p.onClick=m=>{d&&d(m),i.canCloseOnClick&&c()}),{playToast:v,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:p}}function F2(e){let{delay:t,isRunning:n,closeToast:r,type:s="default",hide:o,className:i,style:l,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:y}=e;const x=o||u&&c===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=hn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":d}),S=it(i)?i({rtl:d,type:s,defaultClassName:g}):hn(g,i),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&r()}};return B.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},B.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${s}`}),B.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:S,style:v,...h}))}let $2=1;const yy=()=>""+$2++;function U2(e){return e&&(Hn(e.toastId)||Is(e.toastId))?e.toastId:yy()}function os(e,t){return hy(e,t),t.toastId}function gi(e,t){return{...t,type:t&&t.type||e,toastId:U2(t)}}function ho(e){return(t,n)=>os(t,gi(e,n))}function Z(e,t){return os(e,gi("default",t))}Z.loading=(e,t)=>os(e,gi("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Z.promise=function(e,t,n){let r,{pending:s,error:o,success:i}=t;s&&(r=Hn(s)?Z.loading(s,n):Z.loading(s.render,{...n,...s}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,y)=>{if(f==null)return void Z.dismiss(r);const x={type:d,...l,...n,data:y},v=Hn(f)?{render:f}:f;return r?Z.update(r,{...x,...v}):Z(v.render,{...x,...v}),y},c=it(e)?e():e;return c.then(d=>u("success",i,d)).catch(d=>u("error",o,d)),c},Z.success=ho("success"),Z.info=ho("info"),Z.error=ho("error"),Z.warning=ho("warning"),Z.warn=Z.warning,Z.dark=(e,t)=>os(e,gi("default",{theme:"dark",...t})),Z.dismiss=function(e){(function(t){var n;if(py()){if(t==null||Hn(n=t)||Is(n))Be.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Be.get(t.containerId);r?r.removeToast(t.id):Be.forEach(s=>{s.removeToast(t.id)})}}else Ls=Ls.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Z.clearWaitingQueue=function(e){e===void 0&&(e={}),Be.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Z.isActive=my,Z.update=function(e,t){t===void 0&&(t={});const n=((r,s)=>{var o;let{containerId:i}=s;return(o=Be.get(i||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:s}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:yy()};o.toastId!==e&&(o.staleId=e);const i=o.render||s;delete o.render,os(i,o)}},Z.done=e=>{Z.update(e,{progress:1})},Z.onChange=function(e){return eu.add(e),()=>{eu.delete(e)}},Z.play=e=>Ef(!0,e),Z.pause=e=>Ef(!1,e);const B2=typeof window<"u"?j.useLayoutEffect:j.useEffect,yo=e=>{let{theme:t,type:n,isLoading:r,...s}=e;return B.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...s})},$l={info:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return B.createElement("div",{className:"Toastify__spinner"})}},H2=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:s,playToast:o}=z2(e),{closeButton:i,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:x,position:v,className:g,style:S,bodyClassName:h,bodyStyle:p,progressClassName:m,progressStyle:w,updateId:E,role:_,progress:N,rtl:C,toastId:k,deleteToast:O,isIn:I,isLoading:re,closeOnClick:Ee,theme:me}=e,Fe=hn("Toastify__toast",`Toastify__toast-theme--${me}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":Ee}),qe=it(g)?g({rtl:C,position:v,type:d,defaultClassName:Fe}):hn(Fe,g),Pe=function(q){let{theme:W,type:se,isLoading:ie,icon:je}=q,he=null;const Ke={theme:W,type:se};return je===!1||(it(je)?he=je({...Ke,isLoading:ie}):j.isValidElement(je)?he=j.cloneElement(je,Ke):ie?he=$l.spinner():(er=>er in $l)(se)&&(he=$l[se](Ke))),he}(e),b=!!N||!u,L={closeToast:y,type:d,theme:me};let D=null;return i===!1||(D=it(i)?i(L):j.isValidElement(i)?j.cloneElement(i,L):function(q){let{closeToast:W,theme:se,ariaLabel:ie="close"}=q;return B.createElement("button",{className:`Toastify__close-button Toastify__close-button--${se}`,type:"button",onClick:je=>{je.stopPropagation(),W(je)},"aria-label":ie},B.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},B.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(L)),B.createElement(x,{isIn:I,done:O,position:v,preventExitTransition:n,nodeRef:r,playToast:o},B.createElement("div",{id:k,onClick:c,"data-in":I,className:qe,...s,style:S,ref:r},B.createElement("div",{...I&&{role:_},className:it(h)?h({type:d}):hn("Toastify__toast-body",h),style:p},Pe!=null&&B.createElement("div",{className:hn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!re})},Pe),B.createElement("div",null,l)),D,B.createElement(F2,{...E&&!b?{key:`pb-${E}`}:{},rtl:C,theme:me,delay:u,isRunning:t,isIn:I,closeToast:y,hide:f,type:d,style:w,className:m,controlledProgress:b,progress:N||0})))},Ji=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},W2=Xi(Ji("bounce",!0));Xi(Ji("slide",!0));Xi(Ji("zoom"));Xi(Ji("flip"));const V2={position:"top-right",transition:W2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function q2(e){let t={...V2,...e};const n=e.stacked,[r,s]=j.useState(!0),o=j.useRef(null),{getToastToRender:i,isToastActive:l,count:u}=M2(t),{className:c,style:d,rtl:f,containerId:y}=t;function x(g){const S=hn("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return it(c)?c({position:g,rtl:f,defaultClassName:S}):hn(S,Ao(c))}function v(){n&&(s(!0),Z.play())}return B2(()=>{if(n){var g;const S=o.current.querySelectorAll('[data-in="true"]'),h=12,p=(g=t.position)==null?void 0:g.includes("top");let m=0,w=0;Array.from(S).reverse().forEach((E,_)=>{const N=E;N.classList.add("Toastify__toast--stacked"),_>0&&(N.dataset.collapsed=`${r}`),N.dataset.pos||(N.dataset.pos=p?"top":"bot");const C=m*(r?.2:1)+(r?0:h*_);N.style.setProperty("--y",`${p?C:-1*C}px`),N.style.setProperty("--g",`${h}`),N.style.setProperty("--s",""+(1-(r?w:0))),m+=N.offsetHeight,w+=.025})}},[r,u,n]),B.createElement("div",{ref:o,className:"Toastify",id:y,onMouseEnter:()=>{n&&(s(!1),Z.pause())},onMouseLeave:v},i((g,S)=>{const h=S.length?{...d}:{...d,pointerEvents:"none"};return B.createElement("div",{className:x(g),style:h,key:`container-${g}`},S.map(p=>{let{content:m,props:w}=p;return B.createElement(H2,{...w,stacked:n,collapseAll:v,isIn:l(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},m)}))}))}var vy={exports:{}},K2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Q2=K2,X2=Q2;function gy(){}function wy(){}wy.resetWarningCache=gy;var J2=function(){function e(r,s,o,i,l,u){if(u!==X2){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wy,resetWarningCache:gy};return n.PropTypes=n,n};vy.exports=J2();var Yi=vy.exports;const fe=Of(Yi),K=({children:e,color:t})=>a.jsxs("div",{role:"alert",className:`alert ${t} my-1`,children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-current shrink-0 w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),a.jsx("div",{className:"p-2",children:e})]});K.propTypes={children:fe.oneOfType([fe.string,fe.node]),color:fe.string};const tu=(e,t)=>async(n,r)=>{try{n(Iw());const{data:s}=await M.get(`/api/products/detail/${e}`);n(Lw({product:s.id,name:s.name,image:s.images[0],price:s.price,countInStock:s.countInStock,qty:t})),localStorage.setItem("cartItems",JSON.stringify(r().cart.cartItems))}catch(s){n(Dw(s.response&&s.response.data.detail?s.response.data.detail:s.message))}},Y2=e=>(t,n)=>{t(Aw(e)),localStorage.setItem("cartItems",JSON.stringify(n().cart.cartItems))},G2=e=>t=>{t(Mw(e)),localStorage.setItem("shippingAddress",JSON.stringify(e))},Z2=e=>t=>{t(zw(e)),localStorage.setItem("paymentMethod",JSON.stringify(e))},eE=()=>{const e=F(y=>y.cart),{cartItems:t}=e,n=F(y=>y.userInfo),{user:r}=n;function s(){return new URLSearchParams(Ut().search)}const{id:o}=Us(),i=Te(),l=s(),u=_e(),c=Number(l.get("qty"));j.useEffect(()=>{o&&(u(tu(o,c)),u(To()))},[u,o,c]);const d=y=>{u(Y2(y)),u(To())},f=()=>{r?(i("/shipping"),u(To())):i("/login?redirect=shipping")};return a.jsxs("div",{className:"mx-auto md:mt-8 mt-3 px-16",children:[a.jsxs("button",{onClick:()=>i(-1),className:"btn btn-ghost md:mb-8",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),"Go Back"]}),a.jsx("h1",{className:"text-3xl mb-4 py-5 font-bold",children:"SHOPPING CART"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start gap-8",children:[a.jsx("div",{className:"md:w-[65%] w-full",children:t.length===0?a.jsxs(K,{color:"bg-blue-100",children:["Your cart is empty ",a.jsx(Y,{to:"/",className:"hover:underline",children:" Go Back"})]}):a.jsx("ul",{className:"list-none p-0",children:t.map(y=>a.jsx("li",{className:"mb-4 border-b border-gray-200",children:a.jsxs("div",{className:"flex flex-wrap items-center justify-between",children:[a.jsx("div",{className:"w-full sm:w-1/6 mb-2 sm:mb-0 flex items-start align-top",children:a.jsx("img",{src:y.image,alt:y.name,className:"w-full h-auto"})}),a.jsx("div",{className:"w-full sm:w-2/6 mb-2 sm:mb-0 flex items-start align-top",children:a.jsx(Y,{to:`/product/${y.product}`,className:"hover:underline pl-2",children:y.name})}),a.jsxs("div",{className:"w-full sm:w-1/6 mb-2 sm:mb-0",children:["$",(y.price*y.qty).toFixed(2)]}),a.jsx("div",{className:"w-full sm:w-1/6 mb-2 sm:mb-0",children:a.jsx("select",{value:y.qty,onChange:x=>u(tu(y.product,Number(x.target.value))),className:"select select-sm select-bordered w-full",children:[...Array(Math.abs(y.countInStock)).keys()].map(x=>a.jsx("option",{value:x+1,children:x+1},x+1))})}),a.jsx("div",{className:"w-full sm:w-1/12 mb-2 sm:mb-0 flex items-center justify-end",children:a.jsx("button",{type:"button",className:"hover:text-red-700 focus:outline-none",onClick:()=>d(y.product),children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})})]})},y.product))})}),a.jsx("div",{className:"md:w-[30%] w-full flex items-center justify-center",children:a.jsx("div",{className:"p-6 w-full",children:a.jsxs("ul",{className:"list-none p-0",children:[a.jsxs("li",{className:"mb-4 border-b border-gray-200 py-3",children:[a.jsxs("h2",{className:"text-xl font-semibold mb-2",children:["SUBTOTAL (",t.reduce((y,x)=>y+x.qty,0)," ITEMS)"]}),a.jsxs("span",{className:"text-lg font-semibold",children:["$",t.reduce((y,x)=>y+x.qty*x.price,0).toFixed(2)]})]}),a.jsx("li",{className:"text-center text-lg",children:a.jsx("button",{type:"button",className:"w-full btn",disabled:t.length===0,onClick:f,children:"Proceed to Checkout"})})]})})})]})]})},ge=()=>a.jsx("div",{className:"flex items-center justify-center h-screen",children:a.jsx("span",{className:"loading loading-spinner loading-lg"})});function wc({pages:e,page:t,keyword:n=""}){return n&&(n=n.split("?keyword=")[1].split("&")[0]),e>1&&a.jsx("nav",{className:"flex justify-start my-4",children:a.jsx("div",{className:"join",children:[...Array(e).keys()].map(r=>a.jsx("div",{className:"page-item",children:a.jsx(Y,{to:{search:`?keyword=${n}&page=${r+1}`},className:`${r+1===t&&"btn-active"} px-4 py-2 checked join-item btn btn-square`,children:r+1})},r+1))})})}wc.propTypes={page:fe.number,pages:fe.number,keyword:fe.string};var xy={},xc={};Object.defineProperty(xc,"__esModule",{value:!0});var St=function(){function e(t,n){var r=[],s=!0,o=!1,i=void 0;try{for(var l=t[Symbol.iterator](),u;!(s=(u=l.next()).done)&&(r.push(u.value),!(n&&r.length===n));s=!0);}catch(c){o=!0,i=c}finally{try{!s&&l.return&&l.return()}finally{if(o)throw i}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();xc.default=tE;var Et=j;function tE(e){var t=(0,Et.useState)(e.count),n=St(t,2),r=n[0],s=n[1],o=(0,Et.useState)(e.size),i=St(o,2),l=i[0],u=i[1],c=(0,Et.useState)(e.char),d=St(c,2),f=d[0],y=d[1],x=(0,Et.useState)(e.color),v=St(x,2),g=v[0],S=v[1],h=(0,Et.useState)(e.activeColor),p=St(h,2),m=p[0],w=p[1],E=(0,Et.useState)(e.isHalf),_=St(E,2),N=_[0],C=_[1],k=(0,Et.useState)(e.edit),O=St(k,2),I=O[0],re=O[1],Ee=(0,Et.useState)(e.emptyIcon),me=St(Ee,2),Fe=me[0],qe=me[1],Pe=(0,Et.useState)(e.halfIcon),b=St(Pe,2),L=b[0],D=b[1],q=(0,Et.useState)(e.filledIcon),W=St(q,2),se=W[0],ie=W[1],je=(0,Et.useState)(e.a11y),he=St(je,2),Ke=he[0],er=he[1],sl={count:r,size:l,char:f,color:g,activeColor:m,isHalf:N,edit:I,emptyIcon:Fe,halfIcon:L,filledIcon:se,a11y:Ke};function ol(Qe){s(Qe.count),u(Qe.size),y(Qe.char),S(Qe.color),w(Qe.activeColor),C(Qe.isHalf),re(Qe.edit),qe(Qe.emptyIcon),D(Qe.halfIcon),ie(Qe.filledIcon),er(Qe.a11y)}return[sl,ol]}var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});var nE=Object.assign||function(e){for(var t=1;te instanceof Jt?e.toJSON():e;function kr(e,t){t=t||{};const n={};function r(c,d,f){return P.isPlainObject(c)&&P.isPlainObject(d)?P.merge.call({caseless:f},c,d):P.isPlainObject(d)?P.merge({},d):P.isArray(d)?d.slice():d}function s(c,d,f){if(P.isUndefined(d)){if(!P.isUndefined(c))return r(void 0,c,f)}else return r(c,d,f)}function o(c,d){if(!P.isUndefined(d))return r(void 0,d)}function i(c,d){if(P.isUndefined(d)){if(!P.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function l(c,d,f){if(f in t)return r(c,d);if(f in e)return r(void 0,c)}const u={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:l,headers:(c,d)=>s(gf(c),gf(d),!0)};return P.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=u[d]||s,y=f(e[d],t[d],d);P.isUndefined(y)&&f!==l||(n[d]=y)}),n}const Zh="1.6.5",vc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const wf={};vc.transitional=function(t,n,r){function s(o,i){return"[Axios v"+Zh+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new V(s(i," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!wf[i]&&(wf[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function AS(e,t,n){if(typeof e!="object")throw new V("options must be an object",V.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 l=e[o],u=l===void 0||i(l,o,e);if(u!==!0)throw new V("option "+o+" must be "+u,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+o,V.ERR_BAD_OPTION)}}const Ja={assertOptions:AS,validators:vc},sn=Ja.validators;class yi{constructor(t){this.defaults=t,this.interceptors={request:new pf,response:new pf}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=kr(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Ja.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),s!=null&&(P.isFunction(s)?n.paramsSerializer={serialize:s}:Ja.assertOptions(s,{encode:sn.function,serialize:sn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&P.merge(o.common,o[n.method]);o&&P.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),n.headers=Jt.concat(i,o);const l=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(u=u&&g.synchronous,l.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,y;if(!u){const v=[vf.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,c),y=v.length,d=Promise.resolve(n);f{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(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new Ws(o,i,l),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 gc(function(s){t=s}),cancel:t}}}const MS=gc;function zS(e){return function(n){return e.apply(null,n)}}function FS(e){return P.isObject(e)&&e.isAxiosError===!0}const Ya={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(Ya).forEach(([e,t])=>{Ya[t]=e});const $S=Ya;function ey(e){const t=new Do(e),n=Lh(Do.prototype.request,t);return P.extend(n,Do.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return ey(kr(e,s))},n}const M=ey(yc);M.Axios=Do;M.CanceledError=Ws;M.CancelToken=MS;M.isCancel=Jh;M.VERSION=Zh;M.toFormData=Ki;M.AxiosError=V;M.Cancel=M.CanceledError;M.all=function(t){return Promise.all(t)};M.spread=zS;M.isAxiosError=FS;M.mergeConfig=kr;M.AxiosHeaders=Jt;M.formToJSON=e=>Xh(P.isHTMLForm(e)?new FormData(e):e);M.getAdapter=Gh.getAdapter;M.HttpStatusCode=$S;M.default=M;const US=(e,t)=>async n=>{try{n(Bw());const r={headers:{"Content-type":"application/json"}},{data:s}=await M.post("/api/users/login",{username:e,password:t},r);n(fc(s)),localStorage.setItem("userInfo",JSON.stringify(s))}catch(r){n(Hw(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},BS=()=>e=>{localStorage.removeItem("userInfo"),e(Ww()),e(Xw()),e(ox())},HS=(e,t,n,r)=>async s=>{try{s(lx());const o={headers:{"Content-type":"application/json"}},{data:i}=await M.post("/api/users/register",{username:e,email:t,password:n,password_confirm:r},o);s(ax(i)),s(fc(i)),localStorage.setItem("userInfo",JSON.stringify(i))}catch(o){s(ux(o.response&&o.response.data.detail?o.response.data.detail:o.message))}},ty=e=>async(t,n)=>{try{t(qw());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.get(`/api/users/${e}`,s);t(Kw(o))}catch(r){t(Qw(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},WS=e=>async(t,n)=>{try{t(Yw());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put("/api/users/update",e,s);t(Gw(o)),t(fc(o)),localStorage.setItem("userInfo",JSON.stringify(o))}catch(r){t(Zw(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},VS=()=>async(e,t)=>{try{e(dx());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.get("/api/users/",r);e(fx(s))}catch(n){e(px(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},qS=e=>async(t,n)=>{try{t(hx());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.delete(`/api/users/delete/${e}/`,s);t(yx(o))}catch(r){t(vx(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},KS=e=>async(t,n)=>{try{t(xx());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put(`/api/users/update/${e.id}/`,e,s);t(Sx(o))}catch(r){t(Ex(r.response&&r.response.data.detail?r.response.data.detail:r.message))}};function QS(e){return oc({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M858.5 763.6a374 374 0 0 0-80.6-119.5 375.63 375.63 0 0 0-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 0 0-80.6 119.5A371.7 371.7 0 0 0 136 901.8a8 8 0 0 0 8 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 0 0 8-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"},child:[]}]})(e)}const ny=pe({name:"products",initialState:{loading:!1,products:[],page:null,pages:null,error:null},reducers:{fetchProductsStart:e=>{e.loading=!0},fetchProductsSuccess:(e,t)=>{e.loading=!1,e.products=t.payload.products,e.page=t.payload.page,e.pages=t.payload.pages},fetchProductsFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{fetchProductsStart:XS,fetchProductsSuccess:JS,fetchProductsFailure:YS}=ny.actions,GS=ny.reducer,ry=pe({name:"productDetail",initialState:{loading:!1,product:[],smallImages:[],error:null},reducers:{fetchProductDetailStart:e=>{e.loading=!0},fetchProductDetailSuccess:(e,t)=>{e.loading=!1,e.product=t.payload,e.smallImages=t.payload.images,e.error=null},fetchProductDetailFailure:(e,t)=>{e.loading=!1,e.product=null,e.error=t.payload}}}),{fetchProductDetailStart:ZS,fetchProductDetailSuccess:sy,fetchProductDetailFailure:e2}=ry.actions,t2=ry.reducer,oy=pe({name:"productReviewCreate",initialState:{loading:!1,success:!1,error:null},reducers:{createReviewStart:e=>{e.loading=!0},createReviewSuccess:e=>{e.loading=!1,e.success=!0},createReviewFailure:(e,t)=>{e.loading=!1,e.error=t.payload},resetProductReview:e=>{e.success=!1,e.error=null}}}),{createReviewStart:n2,createReviewSuccess:r2,createReviewFailure:s2,resetProductReview:xf}=oy.actions,o2=oy.reducer,iy=pe({name:"productDelete",initialState:{loading:!1,success:!1,error:null},reducers:{productDeleteStart:e=>{e.loading=!0},productDeleteSuccess:e=>{e.loading=!1,e.success=!0,e.error=null},productDeleteFailure:(e,t)=>{e.loading=!1,e.error=t.payload},productDeleteReset:e=>{e.success=!1,e.error=null}}}),{productDeleteStart:i2,productDeleteSuccess:l2,productDeleteFailure:a2,productDeleteReset:u2}=iy.actions,c2=iy.reducer,ly=pe({name:"productUpdate",initialState:{loading:!1,success:!1,error:!1},reducers:{productUpdateStart:e=>{e.loading=!0},productUpdateSuccess:e=>{e.loading=!1,e.success=!0},productUpdateFailure:(e,t)=>{e.loading=!1,e.error=t.payload},productUpdateReset:e=>{e.error=!1,e.success=!1}}}),{productUpdateStart:d2,productUpdateSuccess:f2,productUpdateFailure:p2,productUpdateReset:m2}=ly.actions,h2=ly.reducer,ay=pe({name:"productCreate",initialState:{loading:!1,success:!1,product:{},error:null},reducers:{productCreateStart:e=>{e.loading=!0},productCreateSuccess:(e,t)=>{e.loading=!1,e.product=t.payload,e.success=!0,e.error=null},productCreateFailure:(e,t)=>{e.loading=!1,e.error=t.payload},productCreateReset:e=>{e.success=!1,e.error=null,e.product={}}}}),{productCreateStart:y2,productCreateSuccess:v2,productCreateFailure:g2,productCreateReset:w2}=ay.actions,x2=ay.reducer,uy=pe({name:"products",initialState:{loading:!1,categories:[],error:null},reducers:{fetchCategoriesStart:e=>{e.loading=!0},fetchCategoriesSuccess:(e,t)=>{e.loading=!1,e.categories=t.payload,e.error=null},fetchCategoriesFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{fetchCategoriesStart:S2,fetchCategoriesSuccess:E2,fetchCategoriesFailure:j2}=uy.actions,N2=uy.reducer,cy=pe({name:"productTop",initialState:{loading:!1,products:[],error:null},reducers:{fetchTopProductsStart:e=>{e.loading=!0},fetchTopProductsSuccess:(e,t)=>{e.loading=!1,e.products=t.payload},fetchTopProductsFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{fetchTopProductsStart:C2,fetchTopProductsSuccess:_2,fetchTopProductsFailure:P2}=cy.actions,k2=cy.reducer,vi=(e="")=>async t=>{try{t(XS());const{data:n}=await M.get(`/api/products${e}`);t(JS(n))}catch(n){t(YS(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},R2=()=>async e=>{try{e(C2());const{data:t}=await M.get("/api/products/top/");e(_2(t))}catch(t){e(P2(t.response&&t.response.data.detail?t.response.data.detail:t.message))}},Ga=e=>async t=>{try{t(ZS());const{data:n}=await M.get(`/api/products/detail/${e}`);t(sy(n))}catch(n){t(e2(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},b2=(e,t)=>async(n,r)=>{try{n(n2());const{userInfo:{user:s}}=r(),o={headers:{"Content-type":"application/json",Authorization:`Bearer ${s.token}`}},{data:i}=await M.post(`/api/products/${e}/review/`,t,o);n(r2(i))}catch(s){n(s2(s.response&&s.response.data.detail?s.response.data.detail:s.message))}},O2=e=>async(t,n)=>{try{t(i2());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.delete(`/api/products/delete/${e}/`,s);t(l2(o))}catch(r){t(a2(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},T2=e=>async(t,n)=>{try{t(d2());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put(`/api/products/update/${e.id}/`,e,s);t(f2(o)),t(sy(o))}catch(r){t(p2(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},I2=()=>async(e,t)=>{try{e(y2());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.post("/api/products/create/",{},r);e(v2(s))}catch(n){e(g2(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},dy=()=>async e=>{try{e(S2());const{data:t}=await M.get("/api/products/categories");e(E2(t))}catch(t){e(j2(t.response&&t.response.data.detail?t.response.data.detail:t.message))}},L2=()=>{const e=_e(),t=F(d=>d.userInfo),{user:n}=t,r=F(d=>d.cart),{cartItems:s}=r,o=F(d=>d.cart.orderValues),[i,l]=j.useState(!1),u=()=>{const d=document.activeElement;d&&(d==null||d.blur())},c=()=>{e(BS())};return j.useEffect(()=>{e(To())},[e,s]),j.useEffect(()=>{e(dy())},[e]),a.jsxs("div",{className:"h-20 sticky px-4 md:px-16 mx-auto z-10 shadow-sm top-0 bg-gray-50",children:[a.jsxs("div",{className:"flex items-center justify-between py-4 relative",children:[a.jsx("div",{className:"flex items-center",children:a.jsxs(Y,{to:"/",className:"flex items-center gap-3",children:[a.jsx("img",{src:"/static/images/logo_1.png",alt:"",className:"w-12 h-12"}),a.jsx("span",{className:"hidden xl:inline-block font-extrabold text-xl",children:"BLIZZR"})]})}),a.jsx("div",{className:"max-md:hidden w-[70%]",children:a.jsx(Qd,{})}),a.jsxs("div",{className:"flex items-center space-x-4",children:[a.jsxs("div",{className:"dropdown dropdown-end",children:[a.jsx("div",{tabIndex:0,role:"button",className:"btn btn-ghost btn-circle",children:a.jsxs("div",{className:"indicator",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"})}),s.length!==0&&a.jsx("span",{className:"badge badge-sm indicator-item",children:s.length})]})}),a.jsx("div",{tabIndex:0,className:"mt-3 z-[1] card card-compact dropdown-content w-52 bg-base-100 shadow",children:a.jsxs("div",{className:"card-body",children:[s.length>1?a.jsxs("span",{className:"font-bold text-lg",children:[s.length," Items"]}):a.jsxs("span",{className:"font-bold text-lg",children:[s.length," Item"]}),a.jsxs("span",{className:"text-info",children:["Subtotal: ",o&&`$${o.subtotal}`]}),a.jsx("div",{className:"card-actions",onClick:u,children:a.jsx(Y,{to:"/cart",className:"btn btn-block",children:"View cart"})})]})})]}),a.jsxs("div",{className:"dropdown dropdown-end",children:[a.jsx("div",{tabIndex:0,role:"button",className:"btn btn-ghost btn-circle avatar",children:a.jsx("div",{className:"",children:a.jsx(QS,{className:"text-2xl"})})}),a.jsxs("ul",{tabIndex:0,className:"menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52",children:[a.jsx("li",{children:a.jsx(Y,{to:"/profile",className:"justify-between",onClick:u,children:"Profile"})}),n&&n.isAdmin&&a.jsx("li",{children:a.jsxs("details",{children:[a.jsx("summary",{children:"Admin"}),a.jsxs("ul",{className:"p-2 bg-base-100 rounded-t-none",onClick:u,children:[a.jsx("li",{children:a.jsx(Y,{to:"/admin/users",children:"Users"})}),a.jsx("li",{children:a.jsx(Y,{to:"/admin/productlist",children:"Products"})}),a.jsx("li",{children:a.jsx(Y,{to:"/admin/orderlist",children:"Orders"})})]})]})}),n?a.jsx("li",{onClick:c,children:a.jsx(Y,{onClick:u,children:"Logout"})}):a.jsx("li",{onClick:u,children:a.jsx(Y,{to:"/login",children:"Login"})})]})]}),a.jsx("span",{onClick:()=>l(!i),className:"p-[9px] bg-gray-100 rounded-full md:hidden",children:a.jsx(y1,{className:`transition ease-in duration-150 ${i?"rotate-180":"0"}`})})]})]}),a.jsxs("div",{className:`md:hidden ${i?"pb-4 px-5 bg-gray-50":"h-0 invisible opacity-0"}`,children:[a.jsxs("ul",{className:"flex flex-col text-[15px] opacity-75 px-2",children:[a.jsx("li",{children:a.jsx(Y,{to:"/",className:"py-3 inline-block w-full",children:"Home"})}),a.jsx("li",{children:a.jsx(Y,{to:"/",onClick:c,className:"py-3 inline-block w-full",children:"Logout"})})]}),a.jsx("div",{className:"flex items-center bg-gray-100 p-2 rounded-lg my-4 py-3",children:a.jsx(Qd,{})})]})]})};function fy(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;ttypeof e=="number"&&!isNaN(e),Hn=e=>typeof e=="string",it=e=>typeof e=="function",Ao=e=>Hn(e)||it(e)?e:null,Za=e=>j.isValidElement(e)||Hn(e)||it(e)||Is(e);function D2(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:s}=e;requestAnimationFrame(()=>{s.minHeight="initial",s.height=r+"px",s.transition=`all ${n}ms`,requestAnimationFrame(()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)})})}function Xi(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:s=!0,collapseDuration:o=300}=e;return function(i){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:y,playToast:x}=i;const v=r?`${t}--${u}`:t,g=r?`${n}--${u}`:n,S=j.useRef(0);return j.useLayoutEffect(()=>{const h=f.current,p=v.split(" "),m=w=>{w.target===f.current&&(x(),h.removeEventListener("animationend",m),h.removeEventListener("animationcancel",m),S.current===0&&w.type!=="animationcancel"&&h.classList.remove(...p))};h.classList.add(...p),h.addEventListener("animationend",m),h.addEventListener("animationcancel",m)},[]),j.useEffect(()=>{const h=f.current,p=()=>{h.removeEventListener("animationend",p),s?D2(h,d,o):d()};y||(c?p():(S.current=1,h.className+=` ${g}`,h.addEventListener("animationend",p)))},[y]),B.createElement(B.Fragment,null,l)}}function Sf(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Be=new Map;let Ls=[];const eu=new Set,A2=e=>eu.forEach(t=>t(e)),py=()=>Be.size>0;function my(e,t){var n;if(t)return!((n=Be.get(t))==null||!n.isToastActive(e));let r=!1;return Be.forEach(s=>{s.isToastActive(e)&&(r=!0)}),r}function hy(e,t){Za(e)&&(py()||Ls.push({content:e,options:t}),Be.forEach(n=>{n.buildToast(e,t)}))}function Ef(e,t){Be.forEach(n=>{t!=null&&t!=null&&t.containerId?(t==null?void 0:t.containerId)===n.id&&n.toggle(e,t==null?void 0:t.id):n.toggle(e,t==null?void 0:t.id)})}function M2(e){const{subscribe:t,getSnapshot:n,setProps:r}=j.useRef(function(o){const i=o.containerId||1;return{subscribe(l){const u=function(d,f,y){let x=1,v=0,g=[],S=[],h=[],p=f;const m=new Map,w=new Set,E=()=>{h=Array.from(m.values()),w.forEach(C=>C())},_=C=>{S=C==null?[]:S.filter(k=>k!==C),E()},N=C=>{const{toastId:k,onOpen:O,updateId:I,children:re}=C.props,Ee=I==null;C.staleId&&m.delete(C.staleId),m.set(k,C),S=[...S,C.props.toastId].filter(me=>me!==C.staleId),E(),y(Sf(C,Ee?"added":"updated")),Ee&&it(O)&&O(j.isValidElement(re)&&re.props)};return{id:d,props:p,observe:C=>(w.add(C),()=>w.delete(C)),toggle:(C,k)=>{m.forEach(O=>{k!=null&&k!==O.props.toastId||it(O.toggle)&&O.toggle(C)})},removeToast:_,toasts:m,clearQueue:()=>{v-=g.length,g=[]},buildToast:(C,k)=>{if((W=>{let{containerId:se,toastId:ie,updateId:je}=W;const he=se?se!==d:d!==1,Ke=m.has(ie)&&je==null;return he||Ke})(k))return;const{toastId:O,updateId:I,data:re,staleId:Ee,delay:me}=k,Fe=()=>{_(O)},qe=I==null;qe&&v++;const Pe={...p,style:p.toastStyle,key:x++,...Object.fromEntries(Object.entries(k).filter(W=>{let[se,ie]=W;return ie!=null})),toastId:O,updateId:I,data:re,closeToast:Fe,isIn:!1,className:Ao(k.className||p.toastClassName),bodyClassName:Ao(k.bodyClassName||p.bodyClassName),progressClassName:Ao(k.progressClassName||p.progressClassName),autoClose:!k.isLoading&&(b=k.autoClose,L=p.autoClose,b===!1||Is(b)&&b>0?b:L),deleteToast(){const W=m.get(O),{onClose:se,children:ie}=W.props;it(se)&&se(j.isValidElement(ie)&&ie.props),y(Sf(W,"removed")),m.delete(O),v--,v<0&&(v=0),g.length>0?N(g.shift()):E()}};var b,L;Pe.closeButton=p.closeButton,k.closeButton===!1||Za(k.closeButton)?Pe.closeButton=k.closeButton:k.closeButton===!0&&(Pe.closeButton=!Za(p.closeButton)||p.closeButton);let D=C;j.isValidElement(C)&&!Hn(C.type)?D=j.cloneElement(C,{closeToast:Fe,toastProps:Pe,data:re}):it(C)&&(D=C({closeToast:Fe,toastProps:Pe,data:re}));const q={content:D,props:Pe,staleId:Ee};p.limit&&p.limit>0&&v>p.limit&&qe?g.push(q):Is(me)?setTimeout(()=>{N(q)},me):N(q)},setProps(C){p=C},setToggle:(C,k)=>{m.get(C).toggle=k},isToastActive:C=>S.some(k=>k===C),getSnapshot:()=>p.newestOnTop?h.reverse():h}}(i,o,A2);Be.set(i,u);const c=u.observe(l);return Ls.forEach(d=>hy(d.content,d.options)),Ls=[],()=>{c(),Be.delete(i)}},setProps(l){var u;(u=Be.get(i))==null||u.setProps(l)},getSnapshot(){var l;return(l=Be.get(i))==null?void 0:l.getSnapshot()}}}(e)).current;r(e);const s=j.useSyncExternalStore(t,n,n);return{getToastToRender:function(o){if(!s)return[];const i=new Map;return s.forEach(l=>{const{position:u}=l.props;i.has(u)||i.set(u,[]),i.get(u).push(l)}),Array.from(i,l=>o(l[0],l[1]))},isToastActive:my,count:s==null?void 0:s.length}}function z2(e){const[t,n]=j.useState(!1),[r,s]=j.useState(!1),o=j.useRef(null),i=j.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:u,closeToast:c,onClick:d,closeOnClick:f}=e;var y,x;function v(){n(!0)}function g(){n(!1)}function S(m){const w=o.current;i.canDrag&&w&&(i.didMove=!0,t&&g(),i.delta=e.draggableDirection==="x"?m.clientX-i.start:m.clientY-i.start,i.start!==m.clientX&&(i.canCloseOnClick=!1),w.style.transform=`translate3d(${e.draggableDirection==="x"?`${i.delta}px, var(--y)`:`0, calc(${i.delta}px + var(--y))`},0)`,w.style.opacity=""+(1-Math.abs(i.delta/i.removalDistance)))}function h(){document.removeEventListener("pointermove",S),document.removeEventListener("pointerup",h);const m=o.current;if(i.canDrag&&i.didMove&&m){if(i.canDrag=!1,Math.abs(i.delta)>i.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();m.style.transition="transform 0.2s, opacity 0.2s",m.style.removeProperty("transform"),m.style.removeProperty("opacity")}}(x=Be.get((y={id:e.toastId,containerId:e.containerId,fn:n}).containerId||1))==null||x.setToggle(y.id,y.fn),j.useEffect(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||g(),window.addEventListener("focus",v),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[e.pauseOnFocusLoss]);const p={onPointerDown:function(m){if(e.draggable===!0||e.draggable===m.pointerType){i.didMove=!1,document.addEventListener("pointermove",S),document.addEventListener("pointerup",h);const w=o.current;i.canCloseOnClick=!0,i.canDrag=!0,w.style.transition="none",e.draggableDirection==="x"?(i.start=m.clientX,i.removalDistance=w.offsetWidth*(e.draggablePercent/100)):(i.start=m.clientY,i.removalDistance=w.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(m){const{top:w,bottom:E,left:_,right:N}=o.current.getBoundingClientRect();m.nativeEvent.type!=="touchend"&&e.pauseOnHover&&m.clientX>=_&&m.clientX<=N&&m.clientY>=w&&m.clientY<=E?g():v()}};return l&&u&&(p.onMouseEnter=g,e.stacked||(p.onMouseLeave=v)),f&&(p.onClick=m=>{d&&d(m),i.canCloseOnClick&&c()}),{playToast:v,pauseToast:g,isRunning:t,preventExitTransition:r,toastRef:o,eventHandlers:p}}function F2(e){let{delay:t,isRunning:n,closeToast:r,type:s="default",hide:o,className:i,style:l,controlledProgress:u,progress:c,rtl:d,isIn:f,theme:y}=e;const x=o||u&&c===0,v={...l,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused"};u&&(v.transform=`scaleX(${c})`);const g=hn("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${y}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":d}),S=it(i)?i({rtl:d,type:s,defaultClassName:g}):hn(g,i),h={[u&&c>=1?"onTransitionEnd":"onAnimationEnd"]:u&&c<1?null:()=>{f&&r()}};return B.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":x},B.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${y} Toastify__progress-bar--${s}`}),B.createElement("div",{role:"progressbar","aria-hidden":x?"true":"false","aria-label":"notification timer",className:S,style:v,...h}))}let $2=1;const yy=()=>""+$2++;function U2(e){return e&&(Hn(e.toastId)||Is(e.toastId))?e.toastId:yy()}function os(e,t){return hy(e,t),t.toastId}function gi(e,t){return{...t,type:t&&t.type||e,toastId:U2(t)}}function ho(e){return(t,n)=>os(t,gi(e,n))}function Z(e,t){return os(e,gi("default",t))}Z.loading=(e,t)=>os(e,gi("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),Z.promise=function(e,t,n){let r,{pending:s,error:o,success:i}=t;s&&(r=Hn(s)?Z.loading(s,n):Z.loading(s.render,{...n,...s}));const l={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(d,f,y)=>{if(f==null)return void Z.dismiss(r);const x={type:d,...l,...n,data:y},v=Hn(f)?{render:f}:f;return r?Z.update(r,{...x,...v}):Z(v.render,{...x,...v}),y},c=it(e)?e():e;return c.then(d=>u("success",i,d)).catch(d=>u("error",o,d)),c},Z.success=ho("success"),Z.info=ho("info"),Z.error=ho("error"),Z.warning=ho("warning"),Z.warn=Z.warning,Z.dark=(e,t)=>os(e,gi("default",{theme:"dark",...t})),Z.dismiss=function(e){(function(t){var n;if(py()){if(t==null||Hn(n=t)||Is(n))Be.forEach(r=>{r.removeToast(t)});else if(t&&("containerId"in t||"id"in t)){const r=Be.get(t.containerId);r?r.removeToast(t.id):Be.forEach(s=>{s.removeToast(t.id)})}}else Ls=Ls.filter(r=>t!=null&&r.options.toastId!==t)})(e)},Z.clearWaitingQueue=function(e){e===void 0&&(e={}),Be.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},Z.isActive=my,Z.update=function(e,t){t===void 0&&(t={});const n=((r,s)=>{var o;let{containerId:i}=s;return(o=Be.get(i||1))==null?void 0:o.toasts.get(r)})(e,t);if(n){const{props:r,content:s}=n,o={delay:100,...r,...t,toastId:t.toastId||e,updateId:yy()};o.toastId!==e&&(o.staleId=e);const i=o.render||s;delete o.render,os(i,o)}},Z.done=e=>{Z.update(e,{progress:1})},Z.onChange=function(e){return eu.add(e),()=>{eu.delete(e)}},Z.play=e=>Ef(!0,e),Z.pause=e=>Ef(!1,e);const B2=typeof window<"u"?j.useLayoutEffect:j.useEffect,yo=e=>{let{theme:t,type:n,isLoading:r,...s}=e;return B.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...s})},$l={info:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return B.createElement(yo,{...e},B.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return B.createElement("div",{className:"Toastify__spinner"})}},H2=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:s,playToast:o}=z2(e),{closeButton:i,children:l,autoClose:u,onClick:c,type:d,hideProgressBar:f,closeToast:y,transition:x,position:v,className:g,style:S,bodyClassName:h,bodyStyle:p,progressClassName:m,progressStyle:w,updateId:E,role:_,progress:N,rtl:C,toastId:k,deleteToast:O,isIn:I,isLoading:re,closeOnClick:Ee,theme:me}=e,Fe=hn("Toastify__toast",`Toastify__toast-theme--${me}`,`Toastify__toast--${d}`,{"Toastify__toast--rtl":C},{"Toastify__toast--close-on-click":Ee}),qe=it(g)?g({rtl:C,position:v,type:d,defaultClassName:Fe}):hn(Fe,g),Pe=function(q){let{theme:W,type:se,isLoading:ie,icon:je}=q,he=null;const Ke={theme:W,type:se};return je===!1||(it(je)?he=je({...Ke,isLoading:ie}):j.isValidElement(je)?he=j.cloneElement(je,Ke):ie?he=$l.spinner():(er=>er in $l)(se)&&(he=$l[se](Ke))),he}(e),b=!!N||!u,L={closeToast:y,type:d,theme:me};let D=null;return i===!1||(D=it(i)?i(L):j.isValidElement(i)?j.cloneElement(i,L):function(q){let{closeToast:W,theme:se,ariaLabel:ie="close"}=q;return B.createElement("button",{className:`Toastify__close-button Toastify__close-button--${se}`,type:"button",onClick:je=>{je.stopPropagation(),W(je)},"aria-label":ie},B.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},B.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(L)),B.createElement(x,{isIn:I,done:O,position:v,preventExitTransition:n,nodeRef:r,playToast:o},B.createElement("div",{id:k,onClick:c,"data-in":I,className:qe,...s,style:S,ref:r},B.createElement("div",{...I&&{role:_},className:it(h)?h({type:d}):hn("Toastify__toast-body",h),style:p},Pe!=null&&B.createElement("div",{className:hn("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!re})},Pe),B.createElement("div",null,l)),D,B.createElement(F2,{...E&&!b?{key:`pb-${E}`}:{},rtl:C,theme:me,delay:u,isRunning:t,isIn:I,closeToast:y,hide:f,type:d,style:w,className:m,controlledProgress:b,progress:N||0})))},Ji=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},W2=Xi(Ji("bounce",!0));Xi(Ji("slide",!0));Xi(Ji("zoom"));Xi(Ji("flip"));const V2={position:"top-right",transition:W2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function q2(e){let t={...V2,...e};const n=e.stacked,[r,s]=j.useState(!0),o=j.useRef(null),{getToastToRender:i,isToastActive:l,count:u}=M2(t),{className:c,style:d,rtl:f,containerId:y}=t;function x(g){const S=hn("Toastify__toast-container",`Toastify__toast-container--${g}`,{"Toastify__toast-container--rtl":f});return it(c)?c({position:g,rtl:f,defaultClassName:S}):hn(S,Ao(c))}function v(){n&&(s(!0),Z.play())}return B2(()=>{if(n){var g;const S=o.current.querySelectorAll('[data-in="true"]'),h=12,p=(g=t.position)==null?void 0:g.includes("top");let m=0,w=0;Array.from(S).reverse().forEach((E,_)=>{const N=E;N.classList.add("Toastify__toast--stacked"),_>0&&(N.dataset.collapsed=`${r}`),N.dataset.pos||(N.dataset.pos=p?"top":"bot");const C=m*(r?.2:1)+(r?0:h*_);N.style.setProperty("--y",`${p?C:-1*C}px`),N.style.setProperty("--g",`${h}`),N.style.setProperty("--s",""+(1-(r?w:0))),m+=N.offsetHeight,w+=.025})}},[r,u,n]),B.createElement("div",{ref:o,className:"Toastify",id:y,onMouseEnter:()=>{n&&(s(!1),Z.pause())},onMouseLeave:v},i((g,S)=>{const h=S.length?{...d}:{...d,pointerEvents:"none"};return B.createElement("div",{className:x(g),style:h,key:`container-${g}`},S.map(p=>{let{content:m,props:w}=p;return B.createElement(H2,{...w,stacked:n,collapseAll:v,isIn:l(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},m)}))}))}var vy={exports:{}},K2="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Q2=K2,X2=Q2;function gy(){}function wy(){}wy.resetWarningCache=gy;var J2=function(){function e(r,s,o,i,l,u){if(u!==X2){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:wy,resetWarningCache:gy};return n.PropTypes=n,n};vy.exports=J2();var Yi=vy.exports;const fe=Of(Yi),K=({children:e,color:t})=>a.jsxs("div",{role:"alert",className:`alert ${t} my-1`,children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:"stroke-current shrink-0 w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),a.jsx("div",{className:"p-2",children:e})]});K.propTypes={children:fe.oneOfType([fe.string,fe.node]),color:fe.string};const tu=(e,t)=>async(n,r)=>{try{n(Iw());const{data:s}=await M.get(`/api/products/detail/${e}`);n(Lw({product:s.id,name:s.name,image:s.images[0],price:s.price,countInStock:s.countInStock,qty:t})),localStorage.setItem("cartItems",JSON.stringify(r().cart.cartItems))}catch(s){n(Dw(s.response&&s.response.data.detail?s.response.data.detail:s.message))}},Y2=e=>(t,n)=>{t(Aw(e)),localStorage.setItem("cartItems",JSON.stringify(n().cart.cartItems))},G2=e=>t=>{t(Mw(e)),localStorage.setItem("shippingAddress",JSON.stringify(e))},Z2=e=>t=>{t(zw(e)),localStorage.setItem("paymentMethod",JSON.stringify(e))},eE=()=>{const e=F(y=>y.cart),{cartItems:t}=e,n=F(y=>y.userInfo),{user:r}=n;function s(){return new URLSearchParams(Ut().search)}const{id:o}=Us(),i=Te(),l=s(),u=_e(),c=Number(l.get("qty"));j.useEffect(()=>{o&&(u(tu(o,c)),u(To()))},[u,o,c]);const d=y=>{u(Y2(y)),u(To())},f=()=>{r?(i("/shipping"),u(To())):i("/login?redirect=shipping")};return a.jsxs("div",{className:"mx-auto md:mt-8 mt-3 px-16",children:[a.jsxs("button",{onClick:()=>i(-1),className:"btn btn-ghost md:mb-8",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),"Go Back"]}),a.jsx("h1",{className:"text-3xl mb-4 py-5 font-bold",children:"SHOPPING CART"}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start gap-8",children:[a.jsx("div",{className:"md:w-[65%] w-full",children:t.length===0?a.jsxs(K,{color:"bg-blue-100",children:["Your cart is empty ",a.jsx(Y,{to:"/",className:"hover:underline",children:" Go Back"})]}):a.jsx("ul",{className:"list-none p-0",children:t.map(y=>a.jsx("li",{className:"mb-4 border-b border-gray-200",children:a.jsxs("div",{className:"flex flex-wrap items-center justify-between",children:[a.jsx("div",{className:"w-full sm:w-1/6 mb-2 sm:mb-0 flex items-start align-top",children:a.jsx("img",{src:y.image,alt:y.name,className:"w-full h-auto"})}),a.jsx("div",{className:"w-full sm:w-2/6 mb-2 sm:mb-0 flex items-start align-top",children:a.jsx(Y,{to:`/product/${y.product}`,className:"hover:underline pl-2",children:y.name})}),a.jsxs("div",{className:"w-full sm:w-1/6 mb-2 sm:mb-0",children:["$",(y.price*y.qty).toFixed(2)]}),a.jsx("div",{className:"w-full sm:w-1/6 mb-2 sm:mb-0",children:a.jsx("select",{value:y.qty,onChange:x=>u(tu(y.product,Number(x.target.value))),className:"select select-sm select-bordered w-full",children:[...Array(Math.abs(y.countInStock)).keys()].map(x=>a.jsx("option",{value:x+1,children:x+1},x+1))})}),a.jsx("div",{className:"w-full sm:w-1/12 mb-2 sm:mb-0 flex items-center justify-end",children:a.jsx("button",{type:"button",className:"hover:text-red-700 focus:outline-none",onClick:()=>d(y.product),children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})})]})},y.product))})}),a.jsx("div",{className:"md:w-[30%] w-full flex items-center justify-center",children:a.jsx("div",{className:"p-6 w-full",children:a.jsxs("ul",{className:"list-none p-0",children:[a.jsxs("li",{className:"mb-4 border-b border-gray-200 py-3",children:[a.jsxs("h2",{className:"text-xl font-semibold mb-2",children:["SUBTOTAL (",t.reduce((y,x)=>y+x.qty,0)," ITEMS)"]}),a.jsxs("span",{className:"text-lg font-semibold",children:["$",t.reduce((y,x)=>y+x.qty*x.price,0).toFixed(2)]})]}),a.jsx("li",{className:"text-center text-lg",children:a.jsx("button",{type:"button",className:"w-full btn",disabled:t.length===0,onClick:f,children:"Proceed to Checkout"})})]})})})]})]})},ge=()=>a.jsx("div",{className:"flex items-center justify-center h-screen",children:a.jsx("span",{className:"loading loading-spinner loading-lg"})});function wc({pages:e,page:t,keyword:n=""}){return n&&(n=n.split("?keyword=")[1].split("&")[0]),e>1&&a.jsx("nav",{className:"flex justify-start my-4",children:a.jsx("div",{className:"join",children:[...Array(e).keys()].map(r=>a.jsx("div",{className:"page-item",children:a.jsx(Y,{to:{search:`?keyword=${n}&page=${r+1}`},className:`${r+1===t&&"btn-active"} px-4 py-2 checked join-item btn btn-square`,children:r+1})},r+1))})})}wc.propTypes={page:fe.number,pages:fe.number,keyword:fe.string};var xy={},xc={};Object.defineProperty(xc,"__esModule",{value:!0});var St=function(){function e(t,n){var r=[],s=!0,o=!1,i=void 0;try{for(var l=t[Symbol.iterator](),u;!(s=(u=l.next()).done)&&(r.push(u.value),!(n&&r.length===n));s=!0);}catch(c){o=!0,i=c}finally{try{!s&&l.return&&l.return()}finally{if(o)throw i}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();xc.default=tE;var Et=j;function tE(e){var t=(0,Et.useState)(e.count),n=St(t,2),r=n[0],s=n[1],o=(0,Et.useState)(e.size),i=St(o,2),l=i[0],u=i[1],c=(0,Et.useState)(e.char),d=St(c,2),f=d[0],y=d[1],x=(0,Et.useState)(e.color),v=St(x,2),g=v[0],S=v[1],h=(0,Et.useState)(e.activeColor),p=St(h,2),m=p[0],w=p[1],E=(0,Et.useState)(e.isHalf),_=St(E,2),N=_[0],C=_[1],k=(0,Et.useState)(e.edit),O=St(k,2),I=O[0],re=O[1],Ee=(0,Et.useState)(e.emptyIcon),me=St(Ee,2),Fe=me[0],qe=me[1],Pe=(0,Et.useState)(e.halfIcon),b=St(Pe,2),L=b[0],D=b[1],q=(0,Et.useState)(e.filledIcon),W=St(q,2),se=W[0],ie=W[1],je=(0,Et.useState)(e.a11y),he=St(je,2),Ke=he[0],er=he[1],sl={count:r,size:l,char:f,color:g,activeColor:m,isHalf:N,edit:I,emptyIcon:Fe,halfIcon:L,filledIcon:se,a11y:Ke};function ol(Qe){s(Qe.count),u(Qe.size),y(Qe.char),S(Qe.color),w(Qe.activeColor),C(Qe.isHalf),re(Qe.edit),qe(Qe.emptyIcon),D(Qe.halfIcon),ie(Qe.filledIcon),er(Qe.a11y)}return[sl,ol]}var Sc={};Object.defineProperty(Sc,"__esModule",{value:!0});var nE=Object.assign||function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wi(e)}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LE=function(t){return t.hasOwnProperty("key")},Nc=function(e){bE(n,e);var t=OE(n);function n(r){var s;return kE(this,n),s=t.call(this,r),Ae($e(s),"itemsWrapperRef",void 0),Ae($e(s),"itemsListRef",void 0),Ae($e(s),"thumbsRef",void 0),Ae($e(s),"setItemsWrapperRef",function(o){s.itemsWrapperRef=o}),Ae($e(s),"setItemsListRef",function(o){s.itemsListRef=o}),Ae($e(s),"setThumbsRef",function(o,i){s.thumbsRef||(s.thumbsRef=[]),s.thumbsRef[i]=o}),Ae($e(s),"updateSizes",function(){if(!(!s.props.children||!s.itemsWrapperRef||!s.thumbsRef)){var o=jt.Children.count(s.props.children),i=s.itemsWrapperRef.clientWidth,l=s.props.thumbWidth?s.props.thumbWidth:(0,CE.outerWidth)(s.thumbsRef[0]),u=Math.floor(i/l),c=u0&&(i=0),c===f&&i<0&&(i=0);var y=s.itemsWrapperRef.clientWidth,x=c+100/(y/i);return s.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(v){s.itemsListRef.style[v]=(0,Nf.default)(x,"%",s.props.axis)}),!0}),Ae($e(s),"slideRight",function(o){s.moveTo(s.state.firstItem-(typeof o=="number"?o:1))}),Ae($e(s),"slideLeft",function(o){s.moveTo(s.state.firstItem+(typeof o=="number"?o:1))}),Ae($e(s),"moveTo",function(o){o=o<0?0:o,o=o>=s.state.lastPosition?s.state.lastPosition:o,s.setState({firstItem:o})}),s.state={selectedItem:r.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},s}return RE(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(s){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==s.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,vo.default)().addEventListener("resize",this.updateSizes),(0,vo.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,vo.default)().removeEventListener("resize",this.updateSizes),(0,vo.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(s){var o=s;return s>=this.state.lastPosition&&(o=this.state.lastPosition),s1,i=this.state.showArrows&&this.state.firstItem>0,l=this.state.showArrows&&this.state.firstItemi);if(l)return o<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?r.itemListStyle=(0,zt.setPosition)(-(i+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):r.itemListStyle=(0,zt.setPosition)(-(i+2)*100,t.axis):o>i&&(r.itemListStyle=(0,zt.setPosition)(0,t.axis)),r;var u=(0,zt.getPosition)(s,t),c=(0,WE.default)(u,"%",t.axis),d=t.transitionTime+"ms";return r.itemListStyle={WebkitTransform:c,msTransform:c,OTransform:c,transform:c},n.swiping||(r.itemListStyle=Mn(Mn({},r.itemListStyle),{},{WebkitTransitionDuration:d,MozTransitionDuration:d,OTransitionDuration:d,transitionDuration:d,msTransitionDuration:d})),r};Mt.slideAnimationHandler=KE;var QE=function(t,n,r,s){var o={},i=n.axis==="horizontal",l=Cy.Children.count(n.children),u=0,c=(0,zt.getPosition)(r.selectedItem,n),d=n.infiniteLoop?(0,zt.getPosition)(l-1,n)-100:(0,zt.getPosition)(l-1,n),f=i?t.x:t.y,y=f;c===u&&f>0&&(y=0),c===d&&f<0&&(y=0);var x=c+100/(r.itemSize/y),v=Math.abs(f)>n.swipeScrollTolerance;return n.infiniteLoop&&v&&(r.selectedItem===0&&x>-100?x-=l*100:r.selectedItem===l-1&&x<-l*100&&(x+=l*100)),(!n.preventMovementUntilSwipeScrollTolerance||v||r.swipeMovementStarted)&&(r.swipeMovementStarted||s({swipeMovementStarted:!0}),o.itemListStyle=(0,zt.setPosition)(x,n.axis)),v&&!r.cancelClick&&s({cancelClick:!0}),o};Mt.slideSwipeAnimationHandler=QE;var XE=function(t,n){var r=(0,zt.getPosition)(n.selectedItem,t),s=(0,zt.setPosition)(r,t.axis);return{itemListStyle:s}};Mt.slideStopSwipingHandler=XE;var JE=function(t,n){var r=t.transitionTime+"ms",s="ease-in-out",o={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:s,msTransitionTimingFunction:s,MozTransitionTimingFunction:s,WebkitTransitionTimingFunction:s,OTransitionTimingFunction:s};return n.swiping||(o=Mn(Mn({},o),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:o,selectedStyle:Mn(Mn({},o),{},{opacity:1,position:"relative"}),prevStyle:Mn({},o)}};Mt.fadeAnimationHandler=JE;Object.defineProperty(Zi,"__esModule",{value:!0});Zi.default=void 0;var J=ZE(j),YE=Qs(jc),qt=Qs(Vs),GE=Qs(qs),go=Qs(nl),wo=Qs(Ks),Xr=rt,xi=Mt;function Qs(e){return e&&e.__esModule?e:{default:e}}function _y(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return _y=function(){return e},e}function ZE(e){if(e&&e.__esModule)return e;if(e===null||as(e)!=="object"&&typeof e!="function")return{default:e};var t=_y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var o=r?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}function as(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?as=function(n){return typeof n}:as=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},as(e)}function su(){return su=Object.assign||function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Si(e)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cc=function(e){nj(n,e);var t=rj(n);function n(r){var s;ej(this,n),s=t.call(this,r),z($(s),"thumbsRef",void 0),z($(s),"carouselWrapperRef",void 0),z($(s),"listRef",void 0),z($(s),"itemsRef",void 0),z($(s),"timer",void 0),z($(s),"animationHandler",void 0),z($(s),"setThumbsRef",function(i){s.thumbsRef=i}),z($(s),"setCarouselWrapperRef",function(i){s.carouselWrapperRef=i}),z($(s),"setListRef",function(i){s.listRef=i}),z($(s),"setItemsRef",function(i,l){s.itemsRef||(s.itemsRef=[]),s.itemsRef[l]=i}),z($(s),"autoPlay",function(){J.Children.count(s.props.children)<=1||(s.clearAutoPlay(),s.props.autoPlay&&(s.timer=setTimeout(function(){s.increment()},s.props.interval)))}),z($(s),"clearAutoPlay",function(){s.timer&&clearTimeout(s.timer)}),z($(s),"resetAutoPlay",function(){s.clearAutoPlay(),s.autoPlay()}),z($(s),"stopOnHover",function(){s.setState({isMouseEntered:!0},s.clearAutoPlay)}),z($(s),"startOnLeave",function(){s.setState({isMouseEntered:!1},s.autoPlay)}),z($(s),"isFocusWithinTheCarousel",function(){return s.carouselWrapperRef?!!((0,go.default)().activeElement===s.carouselWrapperRef||s.carouselWrapperRef.contains((0,go.default)().activeElement)):!1}),z($(s),"navigateWithKeyboard",function(i){if(s.isFocusWithinTheCarousel()){var l=s.props.axis,u=l==="horizontal",c={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},d=u?c.ArrowRight:c.ArrowDown,f=u?c.ArrowLeft:c.ArrowUp;d===i.keyCode?s.increment():f===i.keyCode&&s.decrement()}}),z($(s),"updateSizes",function(){if(!(!s.state.initialized||!s.itemsRef||s.itemsRef.length===0)){var i=s.props.axis==="horizontal",l=s.itemsRef[0];if(l){var u=i?l.clientWidth:l.clientHeight;s.setState({itemSize:u}),s.thumbsRef&&s.thumbsRef.updateSizes()}}}),z($(s),"setMountState",function(){s.setState({hasMount:!0}),s.updateSizes()}),z($(s),"handleClickItem",function(i,l){if(J.Children.count(s.props.children)!==0){if(s.state.cancelClick){s.setState({cancelClick:!1});return}s.props.onClickItem(i,l),i!==s.state.selectedItem&&s.setState({selectedItem:i})}}),z($(s),"handleOnChange",function(i,l){J.Children.count(s.props.children)<=1||s.props.onChange(i,l)}),z($(s),"handleClickThumb",function(i,l){s.props.onClickThumb(i,l),s.moveTo(i)}),z($(s),"onSwipeStart",function(i){s.setState({swiping:!0}),s.props.onSwipeStart(i)}),z($(s),"onSwipeEnd",function(i){s.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),s.props.onSwipeEnd(i),s.clearAutoPlay(),s.state.autoPlay&&s.autoPlay()}),z($(s),"onSwipeMove",function(i,l){s.props.onSwipeMove(l);var u=s.props.swipeAnimationHandler(i,s.props,s.state,s.setState.bind($(s)));return s.setState(Nt({},u)),!!Object.keys(u).length}),z($(s),"decrement",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;s.moveTo(s.state.selectedItem-(typeof i=="number"?i:1))}),z($(s),"increment",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;s.moveTo(s.state.selectedItem+(typeof i=="number"?i:1))}),z($(s),"moveTo",function(i){if(typeof i=="number"){var l=J.Children.count(s.props.children)-1;i<0&&(i=s.props.infiniteLoop?l:0),i>l&&(i=s.props.infiniteLoop?0:l),s.selectItem({selectedItem:i}),s.state.autoPlay&&s.state.isMouseEntered===!1&&s.resetAutoPlay()}}),z($(s),"onClickNext",function(){s.increment(1)}),z($(s),"onClickPrev",function(){s.decrement(1)}),z($(s),"onSwipeForward",function(){s.increment(1),s.props.emulateTouch&&s.setState({cancelClick:!0})}),z($(s),"onSwipeBackwards",function(){s.decrement(1),s.props.emulateTouch&&s.setState({cancelClick:!0})}),z($(s),"changeItem",function(i){return function(l){(!(0,Xr.isKeyboardEvent)(l)||l.key==="Enter")&&s.moveTo(i)}}),z($(s),"selectItem",function(i){s.setState(Nt({previousItem:s.state.selectedItem},i),function(){s.setState(s.animationHandler(s.props,s.state))}),s.handleOnChange(i.selectedItem,J.Children.toArray(s.props.children)[i.selectedItem])}),z($(s),"getInitialImage",function(){var i=s.props.selectedItem,l=s.itemsRef&&s.itemsRef[i],u=l&&l.getElementsByTagName("img")||[];return u[0]}),z($(s),"getVariableItemHeight",function(i){var l=s.itemsRef&&s.itemsRef[i];if(s.state.hasMount&&l&&l.children.length){var u=l.children[0].getElementsByTagName("img")||[];if(u.length>0){var c=u[0];if(!c.complete){var d=function x(){s.forceUpdate(),c.removeEventListener("load",x)};c.addEventListener("load",d)}}var f=u[0]||l.children[0],y=f.clientHeight;return y>0?y:null}return null});var o={initialized:!1,previousItem:r.selectedItem,selectedItem:r.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:r.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return s.animationHandler=typeof r.animationHandler=="function"&&r.animationHandler||r.animationHandler==="fade"&&xi.fadeAnimationHandler||xi.slideAnimationHandler,s.state=Nt(Nt({},o),s.animationHandler(r,o)),s}return tj(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(s,o){!s.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!s.autoFocus&&this.props.autoFocus&&this.forceFocus(),o.swiping&&!this.state.swiping&&this.setState(Nt({},this.props.stopSwipingHandler(this.props,this.state))),(s.selectedItem!==this.props.selectedItem||s.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),s.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var s=this;this.bindEvents(),this.state.autoPlay&&J.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var o=s.getInitialImage();o&&!o.complete?o.addEventListener("load",s.setMountState):s.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var s=this.carouselWrapperRef;this.props.stopOnHover&&s&&(s.addEventListener("mouseenter",this.stopOnHover),s.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var s=this.carouselWrapperRef;this.props.stopOnHover&&s&&(s.removeEventListener("mouseenter",this.stopOnHover),s.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,wo.default)().addEventListener("resize",this.updateSizes),(0,wo.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,go.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,wo.default)().removeEventListener("resize",this.updateSizes),(0,wo.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var s=this.getInitialImage();s&&s.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,go.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var s;(s=this.carouselWrapperRef)===null||s===void 0||s.focus()}},{key:"renderItems",value:function(s){var o=this;return this.props.children?J.Children.map(this.props.children,function(i,l){var u=l===o.state.selectedItem,c=l===o.state.previousItem,d=u&&o.state.selectedStyle||c&&o.state.prevStyle||o.state.slideStyle||{};o.props.centerMode&&o.props.axis==="horizontal"&&(d=Nt(Nt({},d),{},{minWidth:o.props.centerSlidePercentage+"%"})),o.state.swiping&&o.state.swipeMovementStarted&&(d=Nt(Nt({},d),{},{pointerEvents:"none"}));var f={ref:function(x){return o.setItemsRef(x,l)},key:"itemKey"+l+(s?"clone":""),className:qt.default.ITEM(!0,l===o.state.selectedItem,l===o.state.previousItem),onClick:o.handleClickItem.bind(o,l,i),style:d};return J.default.createElement("li",f,o.props.renderItem(i,{isSelected:l===o.state.selectedItem,isPrevious:l===o.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var s=this,o=this.props,i=o.showIndicators,l=o.labels,u=o.renderIndicator,c=o.children;return i?J.default.createElement("ul",{className:"control-dots"},J.Children.map(c,function(d,f){return u&&u(s.changeItem(f),f===s.state.selectedItem,f,l.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?J.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,J.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||J.Children.count(this.props.children)===0?null:J.default.createElement(GE.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var s=this;if(!this.props.children||J.Children.count(this.props.children)===0)return null;var o=this.props.swipeable&&J.Children.count(this.props.children)>1,i=this.props.axis==="horizontal",l=this.props.showArrows&&J.Children.count(this.props.children)>1,u=l&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,c=l&&(this.state.selectedItem{const e=_e(),t=F(o=>o.topProducts),{products:n,loading:r,error:s}=t;return j.useEffect(()=>{e(R2())},[e]),a.jsx("div",{className:"w-full mt-1 mx-auto px-16",children:r?a.jsx(ge,{}):s?a.jsx(K,{variant:"danger",children:s}):a.jsx("div",{className:"relative overflow-hidden",children:a.jsx(Ey.Carousel,{showArrows:!0,autoPlay:!0,interval:3e3,infiniteLoop:!0,showThumbs:!1,showStatus:!1,showIndicators:!1,children:n.map((o,i)=>a.jsx("div",{className:"relative w-full flex items-center justify-center bg-slate-600 rounded-none",children:a.jsxs(Y,{to:`/product/${o.id}`,className:"flex flex-col h-[400px] items-center justify-center gap-3",children:[a.jsxs("div",{className:"text-3xl font-bold text-slate-50",children:[o.name," $",o.price]}),a.jsx("img",{src:o.images[0],className:"border rounded-full transition duration-500 ease-in-out transform hover:scale-105",alt:o.name,style:{width:"300px",height:"300px"}})]})},i))})})})},aj=()=>{const e=_e(),t=F(y=>y.products),{error:n,loading:r,products:s,page:o,pages:i}=t,[l]=l1(),u=l.get("keyword");let d=Ut().search;const f=s&&!r&&!n&&s.length===0;return j.useEffect(()=>{e(vi(d))},[e,d]),a.jsxs("div",{className:"",children:[!u&&a.jsx(lj,{}),a.jsx("h1",{className:"text-2xl font-extrabold px-4 md:px-8 lg:px-16 my-4",children:"LATEST PRODUCTS"}),r?a.jsx(ge,{}):n?a.jsx("div",{className:"px-16 mx-auto",children:a.jsx(K,{color:"bg-red-100",children:n})}):f?a.jsx("div",{className:"mt-0 py-32 px-16 mx-auto",children:a.jsx(K,{color:"bg-blue-100",children:"No Items Found"})}):a.jsxs("div",{className:"mt-5",children:[a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8 px-4 md:px-8 lg:px-16 mx-auto",children:s&&s.map(y=>a.jsx("div",{className:"mb-8",children:a.jsx(Sy,{product:y})},y.id))}),a.jsx("div",{className:"px-16 mx-auto",children:a.jsx(wc,{page:o,pages:i,keyword:d,selectedCategory:d})})]})]})},uj=()=>{const[e,t]=j.useState(""),[n,r]=j.useState(""),s=_e(),o=Te(),i=F(f=>f.userInfo),{error:l,loading:u,user:c}=i,d=f=>{f.preventDefault(),s(US(e,n))};return j.useEffect(()=>{c&&c.token&&o("/")},[o,c]),a.jsxs("div",{className:"max-w-md mx-auto md:mt-28 mt-20 p-6 mb-28 card rounded shadow-md",children:[a.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Sign In"}),l&&a.jsx(K,{color:"bg-red-100",children:l}),u&&a.jsx(ge,{}),a.jsxs("form",{onSubmit:d,children:[a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Username"})}),a.jsx("input",{type:"text",id:"username",className:"input input-bordered w-full",placeholder:"Enter Username",value:e,onChange:f=>t(f.target.value),required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Password"})}),a.jsx("input",{type:"password",id:"password",className:"input input-bordered w-full",placeholder:"Enter Password",value:n,onChange:f=>r(f.target.value),required:!0})]}),a.jsx("button",{type:"submit",className:"w-full btn",children:"Sign In"})]}),a.jsx("div",{className:"py-3 text-center",children:a.jsxs("p",{children:["New Customer? ",a.jsx(Y,{to:"/register",className:"text-blue-500 hover:underline",children:"Register"})]})})]})},Py=pe({name:"orderCreate",initialState:{loading:!1,success:!1,order:{},error:null},reducers:{orderCreateStart:e=>{e.loading=!0},orderCreateSuccess:(e,t)=>{e.loading=!1,e.success=!0,e.order=t.payload},orderCreateFailure:(e,t)=>{e.loading=!1,e.error=t.payload,e.success=!1},orderCreateReset:e=>{e.order={},e.success=!1}}}),{orderCreateStart:cj,orderCreateSuccess:dj,orderCreateFailure:fj,orderCreateReset:pj}=Py.actions,mj=Py.reducer,ky=pe({name:"orderDetail",initialState:{loading:!0,orderItems:null,shippingAddress:{}},reducers:{orderDetailsRequest:e=>{e.loading=!0},orderDetailsSuccess:(e,t)=>{e.loading=!1,e.orderItems=t.payload},orderDetailsFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{orderDetailsRequest:hj,orderDetailsSuccess:yj,orderDetailsFailure:vj}=ky.actions,gj=ky.reducer,Ry=pe({name:"orderPay",initialState:{loading:!1,success:!1,error:null},reducers:{orderPayStart:e=>{e.loading=!0},orderPaySuccess:e=>{e.loading=!1,e.success=!0,e.error=null},orderPayFailure:(e,t)=>{e.loading=!1,e.product=null,e.error=t.payload},orderPayReset:e=>{e.loading=!1,e.success=!1}}}),{orderPayStart:wj,orderPaySuccess:xj,orderPayFailure:Sj,orderPayReset:Ej}=Ry.actions,jj=Ry.reducer,by=pe({name:"orderDeliver",initialState:{loading:!1,success:null,error:null},reducers:{orderDeliverRequest:e=>{e.loading=!0},orderDeliverSuccess:(e,t)=>{e.loading=!1,e.success=t.payload},orderDeliverFailure:(e,t)=>{e.loading=!1,e.error=t.payload},orderDeliverReset:e=>{e.success=null,e.error=null}}}),{orderDeliverRequest:Nj,orderDeliverSuccess:Cj,orderDeliverFailure:_j,orderDeliverReset:Pj}=by.actions,kj=by.reducer,Oy=pe({name:"orderList",initialState:{loading:!1,orders:[],error:null},reducers:{orderListRequest:e=>{e.loading=!0},orderListSuccess:(e,t)=>{e.loading=!1,e.orders=t.payload,e.error=null},orderListFailure:(e,t)=>{e.loading=!1,e.orders=null,e.error=t.payload},orderListReset:e=>{e.loading=!1,e.orders=[]}}}),{orderListRequest:Rj,orderListSuccess:bj,orderListFailure:Oj,orderListReset:aN}=Oy.actions,Tj=Oy.reducer,Ij=e=>async(t,n)=>{try{t(cj());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.post("/api/orders/add/",e,s);t(dj(o)),t(Fw()),t($w()),localStorage.removeItem("cartItems")}catch(r){t(fj(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},Lj=e=>async(t,n)=>{try{t(hj());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.get(`/api/orders/${e}`,s);t(yj(o))}catch(r){t(vj(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},Dj=(e,t)=>async(n,r)=>{try{n(wj());const{userInfo:{user:s}}=r(),o={headers:{"Content-type":"application/json",Authorization:`Bearer ${s.token}`}},{data:i}=await M.put(`/api/orders/${e}/pay`,t,o);n(xj(i))}catch(s){n(Sj(s.response&&s.response.data.detail?s.response.data.detail:s.message))}},Aj=()=>async(e,t)=>{try{e(nx());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.get("/api/orders/myorders",r);e(rx(s))}catch(n){e(sx(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},Mj=e=>async(t,n)=>{try{t(Nj());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put(`/api/orders/${e.id}/deliver`,{},s);t(Cj(o))}catch(r){t(_j(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},zj=()=>async(e,t)=>{try{e(Rj());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.get("/api/orders/",r);e(bj(s))}catch(n){e(Oj(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},Fj=()=>{const e=_e(),t=Te(),n=F(u=>u.userInfo),{user:r}=n,s=F(u=>u.orderList),{loading:o,error:i,orders:l}=s;return j.useEffect(()=>{r&&r.isAdmin?e(zj()):t("/login")},[e,t,r]),a.jsxs("div",{className:"mx-auto px-16 mt-8 overflow-x-auto",children:[a.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Orders"}),o?a.jsx(ge,{}):i?a.jsx(K,{variant:"danger",children:i}):a.jsx("div",{children:a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"User"}),a.jsx("th",{children:"Date"}),a.jsx("th",{children:"Total"}),a.jsx("th",{children:"Paid"}),a.jsx("th",{children:"Delivered"})]})}),a.jsx("tbody",{children:l&&l.map(u=>a.jsxs("tr",{className:"hover",children:[a.jsx("td",{className:"px-4 py-2",children:u.id}),a.jsx("td",{className:"px-4 py-2",children:u.user.username}),a.jsx("td",{children:u.createdAt.substring(0,10)}),a.jsx("td",{className:"px-4 py-2",children:u.totalPrice}),a.jsx("td",{children:u.isPaid?a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"})}):""}),a.jsx("td",{children:u.isDelivered?a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"})}):""}),a.jsx("td",{className:"px-4 py-2",children:a.jsx(Y,{to:`/order/${u.id}`,className:"btn",children:"Detail"})})]},u.id))})]})})]})};var _c={};Object.defineProperty(_c,"__esModule",{value:!0});var Ty=_c.PayPalButton=void 0,Bl=Pc(j),$j=Pc(Vm),U=Pc(Yi);function Pc(e){return e&&e.__esModule?e:{default:e}}function Mo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mo=function(n){return typeof n}:Mo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mo(e)}function iu(){return iu=Object.assign||function(e){for(var t=1;t"u"||window.paypal===void 0))return null;var y=window.paypal.Buttons.driver("react",{React:Bl.default,ReactDOM:$j.default}),x=o&&!l?function(v,g){return r.createOrder(v,g)}:function(v,g){return l(v,g)};return Bl.default.createElement(y,iu({},this.props,{createOrder:u?void 0:x,createSubscription:u,onApprove:i?function(v,g){return r.onApprove(v,g)}:function(v,g){return c(v,g)},style:d}))}},{key:"addPaypalSdk",value:function(){var r=this,s=this.props,o=s.options,i=s.onButtonReady,l=[];Object.keys(o).forEach(function(c){var d=c.split(/(?=[A-Z])/).join("-").toLowerCase();l.push("".concat(d,"=").concat(o[c]))});var u=document.createElement("script");u.type="text/javascript",u.src="https://www.paypal.com/sdk/js?".concat(l.join("&")),u.async=!0,u.onload=function(){r.setState({isSdkReady:!0}),i&&i()},u.onerror=function(){throw new Error("Paypal SDK could not be loaded.")},document.body.appendChild(u)}}]),t}(Bl.default.Component);Ty=_c.PayPalButton=kc;Iy(kc,"propTypes",{amount:U.default.oneOfType([U.default.number,U.default.string]),currency:U.default.oneOfType([U.default.number,U.default.string]),shippingPreference:U.default.string,onSuccess:U.default.func,catchError:U.default.func,onError:U.default.func,createOrder:U.default.func,createSubscription:U.default.func,onApprove:U.default.func,style:U.default.object,options:U.default.shape({clientId:U.default.string,merchantId:U.default.string,currency:U.default.oneOfType([U.default.number,U.default.string]),intent:U.default.string,commit:U.default.oneOfType([U.default.bool,U.default.string]),vault:U.default.oneOfType([U.default.bool,U.default.string]),component:U.default.string,disableFunding:U.default.string,disableCard:U.default.string,integrationDate:U.default.string,locale:U.default.string,buyerCountry:U.default.string,debug:U.default.oneOfType([U.default.bool,U.default.string])}),onButtonReady:U.default.func});Iy(kc,"defaultProps",{style:{},options:{clientId:"sb",currency:"USD"},shippingPreference:"GET_FROM_FILE"});const qj=()=>{const e=Te(),t=_e(),{id:n}=Us(),r=F(w=>w.orderDetail),{orderItems:s,error:o,loading:i}=r;console.log(s);const l=F(w=>w.orderDeliver),{loading:u,success:c}=l,d=F(w=>w.orderPay),{loading:f,success:y}=d,x=F(w=>w.userInfo),{user:v}=x,g=w=>{t(Dj(n,w))},S=()=>{t(Mj(s))},[h,p]=j.useState(!1),m=()=>{const w=document.createElement("script");w.type="text/javascript",w.src="https://www.paypal.com/sdk/js?client-id=ARSAwBrnsoPldPewr2wudeBcE3MWvxAEDmgAhnpyXkIrXqzTNLZDOSUPlJphGQHV8hrlPwRfKt_65_Uz",w.async=!0,w.onload=()=>{p(!0)},document.body.appendChild(w)};return j.useEffect(()=>{v||e("/login"),!s||s.id!==Number(n)||y||c?(t(Lj(n)),t(pj()),t(Ej()),t(Pj())):s.isPaid||(window.paypal?p(!0):m())},[t,e,v,s,y,c,n]),i?a.jsx(ge,{}):o?a.jsx(K,{color:"bg-red-100",children:o}):a.jsxs("div",{className:"mx-auto mt-8 px-16",children:[a.jsxs("h1",{className:"text-2xl font-bold",children:["Order: ",s.id]}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start",children:[a.jsx("div",{className:"md:w-[65%] w-full mb-8 sm:mb-0 pr-4",children:a.jsxs("div",{className:"divide-y divide-gray-200",children:[a.jsxs("div",{className:"py-4",children:[a.jsx("h2",{className:"text-xl font-bold py-3",children:"SHIPPING"}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Name: "})," ",s.user.username]}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Email: "}),a.jsx("a",{href:`mailto:${s.user.email}`,children:s.user.email})]}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Shipping: "}),s.shippingAddress.address,", ",s.shippingAddress.city," ",s.shippingAddress.postalCode,", ",s.shippingAddress.country]}),s.isDelivered?a.jsxs(K,{color:"bg-green-100",children:["Delivered on ",s.deliveredAt.substring(0,10)]}):a.jsx(K,{color:"bg-yellow-100",children:"Not Delivered"})]}),a.jsxs("div",{className:"py-4",children:[a.jsx("h2",{className:"text-xl font-bold py-3",children:"PAYMENT METHOD"}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Method: "}),s.paymentMethod]}),s.isPaid?a.jsxs(K,{color:"bg-green-100",children:["Paid on ",s.paidAt.substring(0,10)]}):a.jsx(K,{color:"bg-yellow-100",children:"Not Paid"})]}),a.jsxs("div",{className:"py-4",children:[a.jsx("h2",{className:"text-xl font-bold py-3",children:"ORDER ITEMS"}),s.orderItems.length===0?a.jsx(K,{color:"bg-blue-100",children:"Order is empty"}):a.jsx("div",{className:"divide-y divide-gray-200",children:s.orderItems.map((w,E)=>a.jsxs("div",{className:`flex items-center gap-1 mb-4 ${E!==s.orderItems.length-1?"border-b border-gray-300 pb-4":""}`,children:[a.jsx("div",{className:"w-1/12",children:a.jsx("img",{src:w.image,alt:w.name,className:"w-full rounded"})}),a.jsx("div",{className:"w-8/12",children:a.jsx(Y,{to:`/product/${w.product}`,children:w.name})}),a.jsxs("div",{className:"w-3/12",children:[a.jsxs("span",{className:"hidden md:inline",children:[w.qty," X $",w.price," = "]}),"$",(w.qty*w.price).toFixed(2)]})]},E))})]})]})}),a.jsx("div",{className:"w-full md:w-[30%] card rounded shadow-md h-full p-5",children:a.jsxs("div",{className:"card",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{children:a.jsx("h2",{className:"text-xl font-bold",children:"ORDER SUMMARY"})}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Items:"})}),s&&!o&&!i&&a.jsxs("div",{children:["$",s.orderItems.reduce((w,E)=>w+E.price*E.qty,0).toFixed(2)]})]}),a.jsx("hr",{className:"my-1"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Shipping:"})}),a.jsxs("div",{children:["$",s.shippingPrice]})]}),a.jsx("hr",{className:"my-1"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Tax:"})}),a.jsxs("div",{children:["$",s.taxPrice]})]}),a.jsx("hr",{className:"my-1"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Total:"})}),a.jsxs("div",{children:["$",s.totalPrice]})]}),!s.isPaid&&a.jsxs("div",{children:[f&&a.jsx(ge,{}),h?a.jsx(Ty,{amount:s.totalPrice,onSuccess:g}):a.jsx(ge,{})]})]}),u&&a.jsx(ge,{}),v&&v.isAdmin&&s.isPaid&&!s.isDelivered&&a.jsx("div",{children:a.jsx("button",{type:"button",className:"btn btn-block",onClick:S,children:"Mark As Delivered"})})]})})]})]})},rl=({step1:e,step2:t,step3:n,step4:r})=>a.jsx("div",{className:"md:flex hidden items-center justify-center mt-12 ",children:a.jsxs("ul",{className:"steps text-md w-2/5 mx-auto",children:[a.jsx("li",{className:`step ${e?"step-primary":""}`,children:e?a.jsx(Y,{to:"/login",className:"hover:underline",children:"Login"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Login"})}),a.jsx("li",{className:`step ${t?"step-primary":""}`,children:t?a.jsx(Y,{to:"/shipping",children:"Shipping"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Shipping"})}),a.jsx("li",{className:`step ${n?"step-primary":""}`,children:n?a.jsx(Y,{to:"/payment",children:"Payment"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Payment"})}),a.jsx("li",{className:`step ${r?"step-primary":""}`,children:r?a.jsx(Y,{to:"/placeorder",children:"Place Order"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Place Order"})})]})});rl.propTypes={step1:fe.string,step2:fe.string,step3:fe.string,step4:fe.string};const Kj=()=>{const e=F(l=>l.cart),{shippingAddress:t}=e,n=Te(),r=_e(),[s,o]=j.useState("PayPal");t.address||n("/shipping");const i=l=>{l.preventDefault(),r(Z2(s)),n("/placeorder")};return a.jsxs("div",{className:"container mx-auto p-4 min-h-screen",children:[a.jsx(rl,{step1:"step-primary",step2:"step-primary",step3:"step-primary"}),a.jsx("h1",{className:"text-2xl font-bold pb-3 max-w-md mx-auto md:mt-14 mt-20",children:"SELECT METHOD"}),a.jsxs("form",{onSubmit:i,className:"max-w-md mx-auto my-6",children:[a.jsx("div",{className:"mb-4",children:a.jsx("div",{className:"mt-1",children:a.jsxs("label",{className:"inline-flex items-center",children:[a.jsx("input",{type:"radio",name:"radio-1",className:"radio radio-primary",onChange:()=>o("PayPal"),checked:!0}),a.jsx("span",{className:"ml-2",children:"PayPal or Credit Card"})]})})}),a.jsx("button",{type:"submit",className:"btn",children:"Continue"})]})]})},Qj=()=>{const e=_e(),t=Te(),n=F(c=>c.orderCreate),{order:r,error:s,success:o}=n,i=F(c=>c.cart.orderValues),l=F(c=>c.cart),u=()=>{e(Ij({orderItems:l.cartItems,shippingAddress:l.shippingAddress,paymentMethod:l.paymentMethod,itemsPrice:i.itemsPrice,shippingPrice:i.shippingPrice,taxPrice:i.taxPrice,totalPrice:i.totalPrice}))};return j.useEffect(()=>{l.paymentMethod||t("/payment"),o&&t(`/order/${r.id}`)},[r,e,o,t,l,s]),a.jsxs("div",{className:"mx-auto px-16",children:[a.jsx(rl,{step1:"step-primary",step2:"step-primary",step3:"step-primary",step4:"step-primary"}),a.jsxs("div",{className:"flex flex-col md:flex-row md:mt-14 mt-20 justify-between items-start",children:[a.jsxs("div",{className:"md:w-[65%] w-full mb-8 sm:mb-0 pr-4",children:[a.jsxs("div",{className:"py-5 border-b border-gray-300",children:[a.jsx("h2",{className:"md:text-2xl text-xl font-bold mb-2",children:"SHIPPING"}),a.jsxs("p",{className:"mt-2 md:py-3 py-0",children:[a.jsx("strong",{children:"Shipping: "}),l.shippingAddress.address,", ",l.shippingAddress.city," ",l.shippingAddress.postalCode,", ",l.shippingAddress.country]})]}),a.jsxs("div",{className:"py-5 border-b border-gray-300",children:[a.jsx("h2",{className:"md:text-2xl text-xl font-bold mb-2",children:"PAYMENT METHOD"}),a.jsxs("p",{className:"mt-2 md:py-3 py-0",children:[a.jsx("strong",{children:"Method: "}),l.paymentMethod]})]}),a.jsxs("div",{className:"py-5",children:[a.jsx("h2",{className:"md:text-2xl text-xl font-bold mb-2 py-3",children:"ORDER ITEMS"}),l.cartItems.length===0?a.jsxs(K,{color:"bg-blue-100",children:["Your cart is empty ",a.jsx(Y,{to:"/",className:"hover:underline",children:"Go Back"})]}):a.jsx("div",{className:"mt-3 lg:w-[90%] w-full",children:l.cartItems.map((c,d)=>a.jsxs("div",{className:`flex items-center gap-1 mb-4 ${d!==l.cartItems.length-1?"border-b border-gray-300 pb-4":""}`,children:[a.jsx("div",{className:"w-12 sm:w-16",children:a.jsx("img",{src:c.image,alt:c.name,className:"w-full"})}),a.jsx("div",{className:"ml-2 sm:ml-4",children:a.jsx(Y,{to:`/product/${c.product}`,className:"text-sm sm:text-base hover:underline",children:c.name})}),a.jsxs("div",{className:"ml-auto text-sm sm:text-base",children:[a.jsxs("span",{className:"hidden md:inline",children:[c.qty," X $",c.price," = "]}),(c.qty*c.price).toFixed(2)]})]},d))})]})]}),a.jsx("div",{className:"w-full md:w-[30%] card rounded shadow-md h-full",children:a.jsxs("div",{className:"m-4",children:[a.jsx("div",{className:"mb-4 md:text-2xl text-xl font-bold",children:"ORDER SUMMARY"}),i&&a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between py-1 ",children:[a.jsx("div",{children:"Items:"}),a.jsxs("div",{children:["$",i.itemsPrice]})]}),a.jsx("hr",{className:"pt-2"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:"Shipping:"}),a.jsxs("div",{children:["$",i.shippingPrice]})]}),a.jsx("hr",{className:"pt-2"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:"Tax:"}),a.jsxs("div",{children:["$",i.taxPrice]})]}),a.jsx("hr",{className:"pt-2"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:"Total:"}),a.jsxs("div",{children:["$",i.totalPrice]})]})]}),a.jsx("div",{className:"mt-4",children:s&&a.jsx(K,{color:"bg-red-100",children:s})}),a.jsx("div",{className:"mt-4",children:a.jsx("button",{type:"button",className:"w-full btn",disabled:l.cartItems.length===0,onClick:u,children:"Place Order"})})]})})]})]})},Xj=()=>{const{id:e}=Us(),t=_e(),n=Te(),r=F(k=>k.userInfo),{user:s}=r,o=F(k=>k.productDetail),{error:i,loading:l,product:u,smallImages:c}=o,d=F(k=>k.productReview),{error:f,loading:y,success:x}=d,[v,g]=j.useState((u==null?void 0:u.main_image)||null),[S,h]=j.useState(0),[p,m]=j.useState(""),[w,E]=j.useState(1);j.useEffect(()=>{x&&(t(xf()),t(Ga(e))),(u==null?void 0:u.id)!==e&&(t(xf()),t(Ga(e)))},[t,u==null?void 0:u.review,e,u==null?void 0:u.id,x]),j.useEffect(()=>{g(c[0])},[c]);const _=k=>{g(k)},N=k=>{k.preventDefault(),t(b2(e,{rating:S,comment:p})),m("")};j.useEffect(()=>{window.scrollTo(0,0)},[]);const C=()=>{n(`/cart/${e}?qty=${w}`)};return a.jsxs("div",{className:"md:mt-8 mt-3 mx-auto px-16 min-h-screen",children:[a.jsxs("button",{onClick:()=>n(-1),className:"btn btn-ghost mb-8",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),"Go Back"]}),l?a.jsx(ge,{}):i?a.jsx(K,{color:"bg-red-100",children:i}):a.jsxs("div",{children:[a.jsxs("div",{className:"flex flex-col md:flex-row justify-between gap-8",children:[a.jsxs("div",{className:"md:w-2/5",children:[a.jsx("div",{children:a.jsx("img",{src:v,alt:u.name,className:"w-full md:h-96 object-contain"})}),a.jsx("div",{className:"w-full p-1 flex mt-2 justify-between",children:c.length>1&&c.map((k,O)=>a.jsx("img",{src:k,alt:`Thumbnail ${O+1}`,className:"w-[23%] h-auto cursor-pointer object-contain",onClick:()=>_(k)},O))})]}),a.jsx("div",{className:"md:w-1/4 mx-4",children:a.jsxs("ul",{className:"list-none p-0",children:[a.jsx("li",{children:a.jsx("h2",{className:"text-2xl font-bold mb-8",children:u.name})}),a.jsx("hr",{className:"pb-1"}),a.jsx("li",{children:a.jsx(is,{value:parseInt(u.rating,10),edit:!1,text:`${u.numReviews} reviews`,onChange:k=>h(k),color:"#f8e825"})}),a.jsx("hr",{className:"py-1 mt-1"}),a.jsxs("li",{children:["Price: $",u.price]}),a.jsx("hr",{className:"py-1 mt-2"}),a.jsxs("li",{children:["Description: ",u.description]})]})}),a.jsx("div",{className:"md:w-1/4 mx-0",children:a.jsxs("ul",{className:"list-none p-0",children:[a.jsxs("li",{className:"flex justify-between",children:[a.jsx("span",{children:"Price:"}),a.jsxs("strong",{children:["$",(u.price*w).toFixed(2)]})]}),a.jsx("hr",{className:"mt-2 pb-2"}),a.jsxs("li",{className:"flex justify-between",children:[a.jsx("span",{children:"Status:"}),u.countInStock>0?"In Stock":"Out of Stock"]}),a.jsx("hr",{className:"mt-2 pb-2"}),u.countInStock>0&&a.jsxs("li",{className:"flex justify-between",children:[a.jsx("span",{children:"Qty"}),a.jsx("select",{value:w,onChange:k=>E(k.target.value),className:"select select-sm select-bordered w-2/6 max-w-xs",children:[...Array(u.countInStock).keys()].map(k=>a.jsx("option",{value:k+1,children:k+1},k+1))})]}),a.jsxs("li",{children:[a.jsx("hr",{className:"mt-2 pb-2"}),a.jsx("button",{className:"w-full btn",disabled:u.countInStock===0,type:"button",onClick:C,children:"Add to Cart"})]})]})})]}),a.jsx("div",{className:"flex flex-col md:flex-row justify-between gap-8",children:a.jsxs("div",{className:"md:w-2/5",children:[a.jsx("h3",{className:"text-xl font-bold py-8",children:"Reviews"}),u&&u.reviews&&u.reviews.length===0&&a.jsx(K,{color:"bg-blue-100",children:"No Reviews"}),a.jsx("div",{className:"mx-0 mb-5",children:a.jsx("ul",{className:"list-none p-0",children:u&&u.reviews&&u.reviews.map(k=>a.jsxs("li",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("p",{className:"font-semibold text-lg",children:k.name}),a.jsx("span",{className:"text-gray-500",children:k.createdAt.substring(0,10)})]}),a.jsx(is,{value:parseInt(k.rating,10),edit:!1}),a.jsx("p",{className:"mt-4 text-gray-800",children:k.comment}),a.jsx("hr",{className:"my-3 border-t border-gray-300"})]},k.id))})}),a.jsx("h3",{className:"text-xl font-bold py-2",children:"Write A Review"}),x&&a.jsx(K,{color:"bg-blue-100",children:"Review Submitted"}),f&&a.jsx(K,{color:"bg-red-100",children:f}),s?a.jsxs("form",{onSubmit:N,className:"mb-5",children:[a.jsx(is,{setRating:h}),a.jsx("div",{className:"form-group",children:a.jsx("textarea",{value:p,placeholder:"Review",className:"textarea textarea-bordered textarea-md w-full my-2",onChange:k=>m(k.target.value)})}),y?a.jsxs("button",{disabled:!0,className:"btn w-2/6",children:[a.jsx("span",{className:"loading loading-spinner"}),"Submitting"]}):a.jsx("button",{className:"btn w-2/6",type:"submit",children:"Submit"})]}):a.jsxs(K,{color:"bg-blue-100",children:["Please ",a.jsx(Y,{to:"/login",children:"login"})," to write a review"]})]})})]})]})},Jj=()=>{const[e,t]=j.useState(""),[n,r]=j.useState(0),[s,o]=j.useState(""),[i,l]=j.useState(""),[u,c]=j.useState(""),[d,f]=j.useState(0),[y,x]=j.useState(""),{id:v}=Us(),g=_e(),S=Te(),h=F(I=>I.productDetail),{error:p,loading:m,product:w}=h,E=F(I=>I.productUpdate),{error:_,loading:N,success:C}=E,k=I=>{I.preventDefault(),g(T2({id:v,name:e,price:n,image:s,brand:i,category:u,countInStock:d,description:y}))},O=async(I,re)=>{const Ee=I.target.files[0],me=new FormData;console.log(re),me.append(re,Ee),me.append("product_id",v);try{const Fe={headers:{"Content-Type":"multipart/form-data"}},{data:qe}=await M.post("/api/products/upload/",me,Fe);o(qe),Z.success("Image Uploaded")}catch{Z.error("Something went wrong")}};return j.useEffect(()=>{C?(g(m2()),g(vi()),S("/admin/productlist")):!w.name||w.id!==Number(v)?g(Ga(v)):(t(w.name),r(w.price),o(w.image),l(w.brand),c(w.category),f(w.countInStock),x(w.description))},[g,w,v,S,C]),a.jsx("div",{className:"mt-8 px-16 mx-auto",children:a.jsxs("div",{className:"mt-4",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Edit Product"}),N&&a.jsx(ge,{}),_&&a.jsx(K,{color:alert-p,children:_.payload}),m?a.jsx(ge,{}):p?a.jsx(K,{variant:"danger",children:p}):a.jsxs("form",{onSubmit:k,className:"my-4",children:[a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-600",children:"Name"}),a.jsx("input",{type:"text",id:"name",placeholder:"Enter name",value:e,onChange:I=>t(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"price",className:"block text-sm font-medium text-gray-600",children:"Price"}),a.jsx("input",{type:"number",id:"price",placeholder:"Enter price",value:n,onChange:I=>r(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image",className:"block text-sm font-medium text-gray-600",children:"Main Image"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>{O(I,"main_image")},className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image_1",className:"block text-sm font-medium text-gray-600",children:"Image_1"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>O(I,"image_1"),className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image_2",className:"block text-sm font-medium text-gray-600",children:"Image_2"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>O(I,"image_2"),className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image_3",className:"block text-sm font-medium text-gray-600",children:"Image_3"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>O(I,"image_3"),className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"brand",className:"block text-sm font-medium text-gray-600",children:"Brand"}),a.jsx("input",{type:"text",id:"brand",placeholder:"Enter Brand",value:i,onChange:I=>l(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"category",className:"block text-sm font-medium text-gray-600",children:"Category"}),a.jsx("input",{type:"text",id:"category",placeholder:"Category",value:u,onChange:I=>c(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"countInStock",className:"block text-sm font-medium text-gray-600",children:"Count in Stock"}),a.jsx("input",{type:"text",id:"countInStock",placeholder:"countInStock",value:d,onChange:I=>f(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-gray-600",children:"Description"}),a.jsx("input",{type:"textarea",id:"description",placeholder:"Description",value:y,onChange:I=>x(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsx("button",{type:"submit",className:"btn max-w-50",children:"Update"})]})]})})},Yj=()=>{const e=_e(),t=Te();let r=Ut().search||"";const s=F(N=>N.userInfo),{user:o}=s,i=F(N=>N.products),{loading:l,error:u,products:c,pages:d,page:f}=i,y=F(N=>N.productDelete),{loading:x,error:v,success:g}=y,S=F(N=>N.productCreate),{loading:h,error:p,success:m,product:w}=S,E=()=>{e(I2())},_=N=>{window.confirm("Are you sure you want to delete this product?")&&e(O2(N))};return j.useEffect(()=>{e(w2()),e(vi(r)),e(dy()),o&&!o.isAdmin&&t("/login"),m&&t(`/admin/product/${w.id}/edit`),(g||r)&&(e(vi(r)),e(u2()))},[e,g,t,m,w.id,o,r]),a.jsxs("div",{className:"mx-auto px-16 mt-8 overflow-x-auto",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Products"}),a.jsx("div",{className:"ml-auto",children:a.jsx("div",{className:"card-actions flex items-center justify-between",children:a.jsxs("button",{className:"btn btn-sm btn-outline",onClick:E,children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),"Create Product"]})})})]}),x&&a.jsx(ge,{}),v&&a.jsx(K,{color:"{alert-error}",children:v}),h&&a.jsx(ge,{}),p&&a.jsx(K,{color:"{alert-error}",children:p}),l?a.jsx(ge,{}):u?a.jsx(K,{variant:"danger",children:u}):a.jsxs("div",{children:[a.jsxs("table",{className:"table table-zebra",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"NAME"}),a.jsx("th",{children:"PRICE"}),a.jsx("th",{children:"CATEGORY"}),a.jsx("th",{children:"BRAND"}),a.jsx("th",{})]})}),a.jsx("tbody",{children:c&&c.map(N=>a.jsxs("tr",{children:[a.jsx("td",{className:"px-4 py-2",children:N.id}),a.jsx("td",{className:"px-4 py-2",children:N.name}),a.jsxs("td",{className:"px-4 py-2",children:["$",N.price]}),a.jsx("td",{className:"px-4 py-2",children:N.category}),a.jsx("td",{className:"px-4 py-2",children:N.brand}),a.jsxs("td",{className:"px-4 py-2 flex flex-row justify-center gap-1",children:[a.jsx(Y,{to:`/admin/product/${N.id}/edit`,className:"join-item btn btn-square",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),a.jsx("div",{className:"join-item btn btn-square",onClick:()=>_(N.id),children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})]},N.id))})]}),a.jsx(wc,{pages:d,page:f,isAdmin:!0,keyword:r})]})]})},Gj=()=>{const e=Te(),t=_e(),n=F(k=>k.userDetail),{error:r,loading:s,userDetail:o}=n,i=F(k=>k.userInfo),{user:l}=i,u=F(k=>k.userUpdate),{success:c}=u,d=F(k=>k.userOrders),{loading:f,error:y,orders:x}=d,[v,g]=j.useState(o&&o.username||""),[S,h]=j.useState(o&&o.email||""),[p,m]=j.useState(""),[w,E]=j.useState(""),[_,N]=j.useState("");j.useEffect(()=>{l||e("/login"),l&&(!o||l.id!==o.id||c?(t(ty("profile")),t(ex()),t(Aj())):(g(o.username),h(o.email)))},[t,o,l,e,c]);const C=k=>{k.preventDefault(),p!=w?N("Passwords do not match"):(t(WS({id:o.id,username:v,email:S,password:p})),N(""))};return a.jsx("div",{children:a.jsxs("div",{className:"flex flex-wrap justify-between mt-10 mx-auto px-16",children:[a.jsxs("div",{className:"md:w-[30%] w-full",children:[a.jsx("h2",{className:"text-2xl font-bold",children:"PROFILE"}),_&&a.jsx(K,{color:"alert-error",children:_}),r&&a.jsx(K,{color:"alert-error",children:r}),s&&a.jsx(ge,{}),a.jsxs("form",{onSubmit:C,className:"mt-4",children:[a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Name"})}),a.jsx("input",{required:!0,type:"text",placeholder:"Enter name",value:v,onChange:k=>g(k.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Email"})}),a.jsx("input",{required:!0,type:"email",placeholder:"Enter Email",value:S,onChange:k=>h(k.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Password"})}),a.jsx("input",{type:"password",placeholder:"Enter Password",value:p,onChange:k=>m(k.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Confirm Password"})}),a.jsx("input",{type:"password",placeholder:"Confirm Password",value:w,onChange:k=>E(k.target.value),className:"input input-bordered w-full"})]}),a.jsx("button",{type:"submit",className:"btn w-full mb-10",children:"Update"})]})]}),a.jsxs("div",{className:"md:w-[65%] w-full",children:[a.jsx("h2",{className:"text-2xl font-bold mb-4",children:"MY ORDERS"}),f?a.jsx(ge,{}):y?a.jsx(K,{color:"bg-red-100",children:y}):a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"Date"}),a.jsx("th",{className:"text-center",children:"Total"}),a.jsx("th",{className:"text-center",children:"Paid"}),a.jsx("th",{className:"text-center",children:"Delivered"})]})}),a.jsx("tbody",{children:x&&x.map(k=>a.jsxs("tr",{children:[a.jsx("td",{className:"px-4 py-2",children:k.id}),a.jsx("td",{className:"px-4 py-2",children:k.createdAt.substring(0,10)}),a.jsxs("td",{className:"px-4 py-2 text-center",children:["$",k.totalPrice]}),a.jsx("td",{className:"px-4 py-2 text-center",children:k.isPaid?k.paidAt.substring(0,10):a.jsx("i",{className:"fas fa-times text-red-500"})}),a.jsx("td",{className:"px-4 py-2 text-center",children:a.jsx(Y,{to:`/order/${k.id}`,children:a.jsx("button",{className:"btn",children:"Details"})})})]},k.id))})]})]})]})})},Zj=()=>{const e=_e(),t=Te(),n=F(N=>N.userInfo),{error:r,loading:s,user:o}=n,i=F(N=>N.userRegister),{errorRegister:l,loadingRegister:u}=i,[c,d]=j.useState(""),[f,y]=j.useState(""),[x,v]=j.useState(""),[g,S]=j.useState(""),[h,p]=j.useState("");function m(){return new URLSearchParams(Ut().search)}const E=m().get("redirect")??"/",_=N=>{N.preventDefault(),g!=h?v("Passwords do not match"):e(HS(c,f,g,h))};return j.useEffect(()=>{o&&o.token&&t(E)},[t,o,E]),a.jsx("div",{children:a.jsx("div",{className:"flex justify-center items-center h-screen",children:a.jsx("div",{className:"w-full md:w-1/2 lg:w-1/3 mt-20 mb-10",children:a.jsxs("form",{onSubmit:_,className:"bg-white shadow-md rounded p-8",children:[a.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Sign Up"}),x&&a.jsx(K,{color:"bg-red-100",children:x}),l||r&&a.jsx(K,{color:"bg-red-100",children:l}),u||s&&a.jsx(ge,{}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Name"})}),a.jsx("input",{required:!0,type:"name",placeholder:"Enter name",value:c,onChange:N=>d(N.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Email Address"})}),a.jsx("input",{required:!0,type:"email",placeholder:"Enter Email",value:f,onChange:N=>y(N.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Password"})}),a.jsx("input",{required:!0,type:"password",placeholder:"Enter Password",value:g,onChange:N=>S(N.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Confirm Password"})}),a.jsx("input",{required:!0,type:"password",placeholder:"Confirm Password",value:h,onChange:N=>p(N.target.value),className:"input input-bordered w-full"})]}),a.jsx("button",{type:"submit",className:"w-full btn",children:"Register"}),a.jsxs("div",{className:"mt-3 text-center",children:[a.jsx("span",{className:"text-gray-600",children:"Have an Account? "}),a.jsx(Y,{to:E?`/login?redirect=${E}`:"/login",className:"text-blue-500",children:"Sign In"})]})]})})})})},eN=()=>{const e=F(h=>h.cart),{shippingAddress:t}=e||{},{address:n,city:r,postalCode:s,country:o}=t||{},i=_e(),l=Te(),[u,c]=j.useState(n||""),[d,f]=j.useState(r||""),[y,x]=j.useState(s||""),[v,g]=j.useState(o||""),S=h=>{h.preventDefault(),i(G2({address:u,city:d,postalCode:y,country:v})),l("/payment")};return a.jsxs(a.Fragment,{children:[a.jsx(rl,{step1:"step-primary",step2:"step-primary"}),a.jsx("h1",{className:"text-2xl font-bold pb-3 max-w-md mx-auto md:mt-14 mt-4",children:"SHIPPING"}),a.jsx("div",{className:"max-w-md mb-5 mx-auto p-6 card rounded shadow-md",children:a.jsxs("form",{onSubmit:S,children:[a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Address"})}),a.jsx("input",{type:"text",id:"address",placeholder:"Enter address",value:u,onChange:h=>c(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"City"})}),a.jsx("input",{type:"text",id:"city",placeholder:"Enter city",value:d,onChange:h=>f(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Postal Code"})}),a.jsx("input",{type:"text",id:"postalCode",placeholder:"Enter postal code",value:y,onChange:h=>x(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Country"})}),a.jsx("input",{type:"text",id:"country",placeholder:"Enter country",value:v,onChange:h=>g(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsx("button",{type:"submit",className:"w-full btn",children:"Continue"})]})})]})},tN=()=>{const{id:e}=Us(),t=Te(),[n,r]=j.useState(""),[s,o]=j.useState(""),[i,l]=j.useState(!1),u=_e(),c=F(p=>p.userDetail),{error:d,loading:f,userDetail:y}=c,x=F(p=>p.userUpdateAdmin),{error:v,loading:g,success:S}=x;j.useEffect(()=>{S?(u(jx()),t("/admin/users")):!y||y.id!==Number(e)?u(ty(e)):(r(y.username),o(y.email),l(y.isAdmin))},[y,e,S,t]);const h=p=>{p.preventDefault(),u(KS({id:y.id,username:n,email:s,isAdmin:i}))};return a.jsxs("div",{className:"px-16 mx-auto mt-1 mb-2",children:[a.jsxs("button",{onClick:()=>t(-1),className:"btn btn-ghost mb-8",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),"Go Back"]}),a.jsxs("div",{className:"mt-4",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Edit User"}),g&&a.jsx(ge,{}),v&&a.jsx(K,{variant:"danger",children:v}),f?a.jsx(ge,{}):d?a.jsx(K,{variant:"danger",children:d}):a.jsxs("form",{onSubmit:h,className:"mt-4",children:[a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"username",className:"block text-sm font-medium text-gray-600",children:"username"}),a.jsx("input",{type:"text",id:"username",placeholder:"Enter username",value:n,onChange:p=>r(p.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-600",children:"Email Address"}),a.jsx("input",{type:"email",id:"email",placeholder:"Enter Email",value:s,onChange:p=>o(p.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("input",{type:"checkbox",id:"isadmin",className:"mr-2 focus:ring-blue-500",checked:i,onChange:p=>l(p.target.checked)}),a.jsx("label",{htmlFor:"isadmin",className:"text-sm font-medium text-gray-600",children:"Is Admin"})]}),a.jsx("button",{type:"submit",className:"bg-blue-500 text-white px-4 py-2 rounded-md",children:"Update"})]})]})]})},nN=()=>{const e=_e(),t=Te(),n=F(f=>f.userList),{loading:r,error:s,users:o}=n,i=F(f=>f.userInfo),{user:l}=i,u=F(f=>f.userDelete),{success:c}=u,d=f=>{window.confirm("Are you sure you want to delete this user?")&&(e(qS(f)),e(gx()))};return j.useEffect(()=>{l&&l.isAdmin?e(VS()):t("/login")},[e,l,t,c]),a.jsxs("div",{className:"mx-auto px-16 mt-8 overflow-x-auto",children:[a.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Users"}),r?a.jsx(ge,{}):s?a.jsx(K,{color:"alert-error",children:s}):a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"NAME"}),a.jsx("th",{children:"EMAIL"}),a.jsx("th",{children:"ADMIN"}),a.jsx("th",{})]})}),a.jsx("tbody",{children:o&&o.map(f=>a.jsxs("tr",{className:"hover",children:[a.jsx("td",{className:"px-4 py-2",children:f.id}),a.jsx("td",{className:"px-4 py-2",children:f.username}),a.jsx("td",{className:"px-4 py-2",children:f.email}),a.jsx("td",{className:"px-4 py-2",children:f.isAdmin?a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"})}):""}),a.jsxs("td",{className:"px-4 py-2 flex flex-row justify-center gap-1",children:[a.jsx(Y,{to:`/admin/user/${f.id}/edit`,className:"join-item btn btn-square",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),a.jsx("div",{className:"join-item btn btn-square",onClick:()=>d(f.id),children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})]},f.id))})]})]})},rN=()=>a.jsxs(r1,{children:[a.jsx(q2,{hideProgressBar:!0,position:"bottom-right"}),a.jsx(L2,{}),a.jsxs(J0,{children:[a.jsx(De,{path:"/",exact:!0,Component:aj}),a.jsx(De,{path:"/product/:id",Component:Xj}),a.jsx(De,{path:"/cart/:id?",Component:eE}),a.jsx(De,{path:"/shipping",Component:eN}),a.jsx(De,{path:"/payment",Component:Kj}),a.jsx(De,{path:"/placeorder",Component:Qj}),a.jsx(De,{path:"/order/:id",Component:qj}),a.jsx(De,{path:"/profile",Component:Gj}),a.jsx(De,{path:"/register",Component:Zj}),a.jsx(De,{path:"/login",Component:uj}),a.jsx(De,{path:"/admin/users",Component:nN}),a.jsx(De,{path:"/admin/user/:id/edit",Component:tN}),a.jsx(De,{path:"/admin/productlist",Component:Yj}),a.jsx(De,{path:"/admin/product/:id/edit",Component:Jj}),a.jsx(De,{path:"/admin/orderlist",Component:Fj})]}),a.jsx(a1,{})]}),sN=ch({products:GS,productDetail:t2,productReview:o2,userInfo:Vw,cart:Uw,orderCreate:mj,orderDetail:gj,orderPay:jj,userDetail:Jw,userUpdate:tx,userOrders:ix,userRegister:cx,orderDeliver:kj,userList:mx,userDelete:wx,userUpdateAdmin:Nx,productDelete:c2,productUpdate:h2,productCreate:x2,orderList:Tj,categories:N2,topProducts:k2}),oN=Sw({reducer:sN,middleware:e=>e().concat(Sh)});Wl.createRoot(document.getElementById("root")).render(a.jsx(z1,{store:oN,children:a.jsx(rN,{})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},wi(e)}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LE=function(t){return t.hasOwnProperty("key")},Nc=function(e){bE(n,e);var t=OE(n);function n(r){var s;return kE(this,n),s=t.call(this,r),Ae($e(s),"itemsWrapperRef",void 0),Ae($e(s),"itemsListRef",void 0),Ae($e(s),"thumbsRef",void 0),Ae($e(s),"setItemsWrapperRef",function(o){s.itemsWrapperRef=o}),Ae($e(s),"setItemsListRef",function(o){s.itemsListRef=o}),Ae($e(s),"setThumbsRef",function(o,i){s.thumbsRef||(s.thumbsRef=[]),s.thumbsRef[i]=o}),Ae($e(s),"updateSizes",function(){if(!(!s.props.children||!s.itemsWrapperRef||!s.thumbsRef)){var o=jt.Children.count(s.props.children),i=s.itemsWrapperRef.clientWidth,l=s.props.thumbWidth?s.props.thumbWidth:(0,CE.outerWidth)(s.thumbsRef[0]),u=Math.floor(i/l),c=u0&&(i=0),c===f&&i<0&&(i=0);var y=s.itemsWrapperRef.clientWidth,x=c+100/(y/i);return s.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(v){s.itemsListRef.style[v]=(0,Nf.default)(x,"%",s.props.axis)}),!0}),Ae($e(s),"slideRight",function(o){s.moveTo(s.state.firstItem-(typeof o=="number"?o:1))}),Ae($e(s),"slideLeft",function(o){s.moveTo(s.state.firstItem+(typeof o=="number"?o:1))}),Ae($e(s),"moveTo",function(o){o=o<0?0:o,o=o>=s.state.lastPosition?s.state.lastPosition:o,s.setState({firstItem:o})}),s.state={selectedItem:r.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},s}return RE(n,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(s){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==s.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,vo.default)().addEventListener("resize",this.updateSizes),(0,vo.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,vo.default)().removeEventListener("resize",this.updateSizes),(0,vo.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(s){var o=s;return s>=this.state.lastPosition&&(o=this.state.lastPosition),s1,i=this.state.showArrows&&this.state.firstItem>0,l=this.state.showArrows&&this.state.firstItemi);if(l)return o<0?t.centerMode&&t.centerSlidePercentage&&t.axis==="horizontal"?r.itemListStyle=(0,zt.setPosition)(-(i+2)*t.centerSlidePercentage-(100-t.centerSlidePercentage)/2,t.axis):r.itemListStyle=(0,zt.setPosition)(-(i+2)*100,t.axis):o>i&&(r.itemListStyle=(0,zt.setPosition)(0,t.axis)),r;var u=(0,zt.getPosition)(s,t),c=(0,WE.default)(u,"%",t.axis),d=t.transitionTime+"ms";return r.itemListStyle={WebkitTransform:c,msTransform:c,OTransform:c,transform:c},n.swiping||(r.itemListStyle=Mn(Mn({},r.itemListStyle),{},{WebkitTransitionDuration:d,MozTransitionDuration:d,OTransitionDuration:d,transitionDuration:d,msTransitionDuration:d})),r};Mt.slideAnimationHandler=KE;var QE=function(t,n,r,s){var o={},i=n.axis==="horizontal",l=Cy.Children.count(n.children),u=0,c=(0,zt.getPosition)(r.selectedItem,n),d=n.infiniteLoop?(0,zt.getPosition)(l-1,n)-100:(0,zt.getPosition)(l-1,n),f=i?t.x:t.y,y=f;c===u&&f>0&&(y=0),c===d&&f<0&&(y=0);var x=c+100/(r.itemSize/y),v=Math.abs(f)>n.swipeScrollTolerance;return n.infiniteLoop&&v&&(r.selectedItem===0&&x>-100?x-=l*100:r.selectedItem===l-1&&x<-l*100&&(x+=l*100)),(!n.preventMovementUntilSwipeScrollTolerance||v||r.swipeMovementStarted)&&(r.swipeMovementStarted||s({swipeMovementStarted:!0}),o.itemListStyle=(0,zt.setPosition)(x,n.axis)),v&&!r.cancelClick&&s({cancelClick:!0}),o};Mt.slideSwipeAnimationHandler=QE;var XE=function(t,n){var r=(0,zt.getPosition)(n.selectedItem,t),s=(0,zt.setPosition)(r,t.axis);return{itemListStyle:s}};Mt.slideStopSwipingHandler=XE;var JE=function(t,n){var r=t.transitionTime+"ms",s="ease-in-out",o={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:s,msTransitionTimingFunction:s,MozTransitionTimingFunction:s,WebkitTransitionTimingFunction:s,OTransitionTimingFunction:s};return n.swiping||(o=Mn(Mn({},o),{},{WebkitTransitionDuration:r,MozTransitionDuration:r,OTransitionDuration:r,transitionDuration:r,msTransitionDuration:r})),{slideStyle:o,selectedStyle:Mn(Mn({},o),{},{opacity:1,position:"relative"}),prevStyle:Mn({},o)}};Mt.fadeAnimationHandler=JE;Object.defineProperty(Zi,"__esModule",{value:!0});Zi.default=void 0;var J=ZE(j),YE=Qs(jc),qt=Qs(Vs),GE=Qs(qs),go=Qs(nl),wo=Qs(Ks),Xr=rt,xi=Mt;function Qs(e){return e&&e.__esModule?e:{default:e}}function _y(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return _y=function(){return e},e}function ZE(e){if(e&&e.__esModule)return e;if(e===null||as(e)!=="object"&&typeof e!="function")return{default:e};var t=_y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var o=r?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}function as(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?as=function(n){return typeof n}:as=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},as(e)}function su(){return su=Object.assign||function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Si(e)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cc=function(e){nj(n,e);var t=rj(n);function n(r){var s;ej(this,n),s=t.call(this,r),z($(s),"thumbsRef",void 0),z($(s),"carouselWrapperRef",void 0),z($(s),"listRef",void 0),z($(s),"itemsRef",void 0),z($(s),"timer",void 0),z($(s),"animationHandler",void 0),z($(s),"setThumbsRef",function(i){s.thumbsRef=i}),z($(s),"setCarouselWrapperRef",function(i){s.carouselWrapperRef=i}),z($(s),"setListRef",function(i){s.listRef=i}),z($(s),"setItemsRef",function(i,l){s.itemsRef||(s.itemsRef=[]),s.itemsRef[l]=i}),z($(s),"autoPlay",function(){J.Children.count(s.props.children)<=1||(s.clearAutoPlay(),s.props.autoPlay&&(s.timer=setTimeout(function(){s.increment()},s.props.interval)))}),z($(s),"clearAutoPlay",function(){s.timer&&clearTimeout(s.timer)}),z($(s),"resetAutoPlay",function(){s.clearAutoPlay(),s.autoPlay()}),z($(s),"stopOnHover",function(){s.setState({isMouseEntered:!0},s.clearAutoPlay)}),z($(s),"startOnLeave",function(){s.setState({isMouseEntered:!1},s.autoPlay)}),z($(s),"isFocusWithinTheCarousel",function(){return s.carouselWrapperRef?!!((0,go.default)().activeElement===s.carouselWrapperRef||s.carouselWrapperRef.contains((0,go.default)().activeElement)):!1}),z($(s),"navigateWithKeyboard",function(i){if(s.isFocusWithinTheCarousel()){var l=s.props.axis,u=l==="horizontal",c={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},d=u?c.ArrowRight:c.ArrowDown,f=u?c.ArrowLeft:c.ArrowUp;d===i.keyCode?s.increment():f===i.keyCode&&s.decrement()}}),z($(s),"updateSizes",function(){if(!(!s.state.initialized||!s.itemsRef||s.itemsRef.length===0)){var i=s.props.axis==="horizontal",l=s.itemsRef[0];if(l){var u=i?l.clientWidth:l.clientHeight;s.setState({itemSize:u}),s.thumbsRef&&s.thumbsRef.updateSizes()}}}),z($(s),"setMountState",function(){s.setState({hasMount:!0}),s.updateSizes()}),z($(s),"handleClickItem",function(i,l){if(J.Children.count(s.props.children)!==0){if(s.state.cancelClick){s.setState({cancelClick:!1});return}s.props.onClickItem(i,l),i!==s.state.selectedItem&&s.setState({selectedItem:i})}}),z($(s),"handleOnChange",function(i,l){J.Children.count(s.props.children)<=1||s.props.onChange(i,l)}),z($(s),"handleClickThumb",function(i,l){s.props.onClickThumb(i,l),s.moveTo(i)}),z($(s),"onSwipeStart",function(i){s.setState({swiping:!0}),s.props.onSwipeStart(i)}),z($(s),"onSwipeEnd",function(i){s.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),s.props.onSwipeEnd(i),s.clearAutoPlay(),s.state.autoPlay&&s.autoPlay()}),z($(s),"onSwipeMove",function(i,l){s.props.onSwipeMove(l);var u=s.props.swipeAnimationHandler(i,s.props,s.state,s.setState.bind($(s)));return s.setState(Nt({},u)),!!Object.keys(u).length}),z($(s),"decrement",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;s.moveTo(s.state.selectedItem-(typeof i=="number"?i:1))}),z($(s),"increment",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;s.moveTo(s.state.selectedItem+(typeof i=="number"?i:1))}),z($(s),"moveTo",function(i){if(typeof i=="number"){var l=J.Children.count(s.props.children)-1;i<0&&(i=s.props.infiniteLoop?l:0),i>l&&(i=s.props.infiniteLoop?0:l),s.selectItem({selectedItem:i}),s.state.autoPlay&&s.state.isMouseEntered===!1&&s.resetAutoPlay()}}),z($(s),"onClickNext",function(){s.increment(1)}),z($(s),"onClickPrev",function(){s.decrement(1)}),z($(s),"onSwipeForward",function(){s.increment(1),s.props.emulateTouch&&s.setState({cancelClick:!0})}),z($(s),"onSwipeBackwards",function(){s.decrement(1),s.props.emulateTouch&&s.setState({cancelClick:!0})}),z($(s),"changeItem",function(i){return function(l){(!(0,Xr.isKeyboardEvent)(l)||l.key==="Enter")&&s.moveTo(i)}}),z($(s),"selectItem",function(i){s.setState(Nt({previousItem:s.state.selectedItem},i),function(){s.setState(s.animationHandler(s.props,s.state))}),s.handleOnChange(i.selectedItem,J.Children.toArray(s.props.children)[i.selectedItem])}),z($(s),"getInitialImage",function(){var i=s.props.selectedItem,l=s.itemsRef&&s.itemsRef[i],u=l&&l.getElementsByTagName("img")||[];return u[0]}),z($(s),"getVariableItemHeight",function(i){var l=s.itemsRef&&s.itemsRef[i];if(s.state.hasMount&&l&&l.children.length){var u=l.children[0].getElementsByTagName("img")||[];if(u.length>0){var c=u[0];if(!c.complete){var d=function x(){s.forceUpdate(),c.removeEventListener("load",x)};c.addEventListener("load",d)}}var f=u[0]||l.children[0],y=f.clientHeight;return y>0?y:null}return null});var o={initialized:!1,previousItem:r.selectedItem,selectedItem:r.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:r.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return s.animationHandler=typeof r.animationHandler=="function"&&r.animationHandler||r.animationHandler==="fade"&&xi.fadeAnimationHandler||xi.slideAnimationHandler,s.state=Nt(Nt({},o),s.animationHandler(r,o)),s}return tj(n,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(s,o){!s.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!s.autoFocus&&this.props.autoFocus&&this.forceFocus(),o.swiping&&!this.state.swiping&&this.setState(Nt({},this.props.stopSwipingHandler(this.props,this.state))),(s.selectedItem!==this.props.selectedItem||s.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),s.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var s=this;this.bindEvents(),this.state.autoPlay&&J.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var o=s.getInitialImage();o&&!o.complete?o.addEventListener("load",s.setMountState):s.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var s=this.carouselWrapperRef;this.props.stopOnHover&&s&&(s.addEventListener("mouseenter",this.stopOnHover),s.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var s=this.carouselWrapperRef;this.props.stopOnHover&&s&&(s.removeEventListener("mouseenter",this.stopOnHover),s.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,wo.default)().addEventListener("resize",this.updateSizes),(0,wo.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,go.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,wo.default)().removeEventListener("resize",this.updateSizes),(0,wo.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var s=this.getInitialImage();s&&s.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,go.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var s;(s=this.carouselWrapperRef)===null||s===void 0||s.focus()}},{key:"renderItems",value:function(s){var o=this;return this.props.children?J.Children.map(this.props.children,function(i,l){var u=l===o.state.selectedItem,c=l===o.state.previousItem,d=u&&o.state.selectedStyle||c&&o.state.prevStyle||o.state.slideStyle||{};o.props.centerMode&&o.props.axis==="horizontal"&&(d=Nt(Nt({},d),{},{minWidth:o.props.centerSlidePercentage+"%"})),o.state.swiping&&o.state.swipeMovementStarted&&(d=Nt(Nt({},d),{},{pointerEvents:"none"}));var f={ref:function(x){return o.setItemsRef(x,l)},key:"itemKey"+l+(s?"clone":""),className:qt.default.ITEM(!0,l===o.state.selectedItem,l===o.state.previousItem),onClick:o.handleClickItem.bind(o,l,i),style:d};return J.default.createElement("li",f,o.props.renderItem(i,{isSelected:l===o.state.selectedItem,isPrevious:l===o.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var s=this,o=this.props,i=o.showIndicators,l=o.labels,u=o.renderIndicator,c=o.children;return i?J.default.createElement("ul",{className:"control-dots"},J.Children.map(c,function(d,f){return u&&u(s.changeItem(f),f===s.state.selectedItem,f,l.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?J.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,J.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||J.Children.count(this.props.children)===0?null:J.default.createElement(GE.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var s=this;if(!this.props.children||J.Children.count(this.props.children)===0)return null;var o=this.props.swipeable&&J.Children.count(this.props.children)>1,i=this.props.axis==="horizontal",l=this.props.showArrows&&J.Children.count(this.props.children)>1,u=l&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,c=l&&(this.state.selectedItem{const e=_e(),t=F(o=>o.topProducts),{products:n,loading:r,error:s}=t;return j.useEffect(()=>{e(R2())},[e]),a.jsx("div",{className:"w-full mt-1 mx-auto px-16",children:r?a.jsx(ge,{}):s?a.jsx(K,{variant:"danger",children:s}):a.jsx("div",{className:"relative overflow-hidden",children:a.jsx(Ey.Carousel,{showArrows:!0,autoPlay:!0,interval:3e3,infiniteLoop:!0,showThumbs:!1,showStatus:!1,showIndicators:!1,children:n.map((o,i)=>a.jsx("div",{className:"relative w-full flex items-center justify-center bg-slate-600 rounded-none",children:a.jsxs(Y,{to:`/product/${o.id}`,className:"flex flex-col h-[400px] items-center justify-center gap-3",children:[a.jsxs("div",{className:"text-3xl font-bold text-slate-50",children:[o.name," $",o.price]}),a.jsx("img",{src:o.images[0],className:"border rounded-full transition duration-500 ease-in-out transform hover:scale-105",alt:o.name,style:{width:"300px",height:"300px"}})]})},i))})})})},aj=()=>{const e=_e(),t=F(y=>y.products),{error:n,loading:r,products:s,page:o,pages:i}=t,[l]=l1(),u=l.get("keyword");let d=Ut().search;const f=s&&!r&&!n&&s.length===0;return j.useEffect(()=>{e(vi(d))},[e,d]),a.jsxs("div",{className:"",children:[!u&&a.jsx(lj,{}),a.jsx("h1",{className:"text-2xl font-extrabold px-4 md:px-8 lg:px-16 my-4 py-10",children:"LATEST PRODUCTS"}),r?a.jsx(ge,{}):n?a.jsx("div",{className:"px-16 mx-auto",children:a.jsx(K,{color:"bg-red-100",children:n})}):f?a.jsx("div",{className:"mt-0 py-32 px-16 mx-auto",children:a.jsx(K,{color:"bg-blue-100",children:"No Items Found"})}):a.jsxs("div",{className:"mt-5",children:[a.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-8 px-4 md:px-8 lg:px-16 mx-auto",children:s&&s.map(y=>a.jsx("div",{className:"mb-8",children:a.jsx(Sy,{product:y})},y.id))}),a.jsx("div",{className:"px-16 mx-auto",children:a.jsx(wc,{page:o,pages:i,keyword:d,selectedCategory:d})})]})]})},uj=()=>{const[e,t]=j.useState(""),[n,r]=j.useState(""),s=_e(),o=Te(),i=F(f=>f.userInfo),{error:l,loading:u,user:c}=i,d=f=>{f.preventDefault(),s(US(e,n))};return j.useEffect(()=>{c&&c.token&&o("/")},[o,c]),a.jsxs("div",{className:"max-w-md mx-auto md:mt-28 mt-20 p-6 mb-28 card rounded shadow-md",children:[a.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Sign In"}),l&&a.jsx(K,{color:"bg-red-100",children:l}),u&&a.jsx(ge,{}),a.jsxs("form",{onSubmit:d,children:[a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Username"})}),a.jsx("input",{type:"text",id:"username",className:"input input-bordered w-full",placeholder:"Enter Username",value:e,onChange:f=>t(f.target.value),required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Password"})}),a.jsx("input",{type:"password",id:"password",className:"input input-bordered w-full",placeholder:"Enter Password",value:n,onChange:f=>r(f.target.value),required:!0})]}),a.jsx("button",{type:"submit",className:"w-full btn",children:"Sign In"})]}),a.jsx("div",{className:"py-3 text-center",children:a.jsxs("p",{children:["New Customer? ",a.jsx(Y,{to:"/register",className:"text-blue-500 hover:underline",children:"Register"})]})})]})},Py=pe({name:"orderCreate",initialState:{loading:!1,success:!1,order:{},error:null},reducers:{orderCreateStart:e=>{e.loading=!0},orderCreateSuccess:(e,t)=>{e.loading=!1,e.success=!0,e.order=t.payload},orderCreateFailure:(e,t)=>{e.loading=!1,e.error=t.payload,e.success=!1},orderCreateReset:e=>{e.order={},e.success=!1}}}),{orderCreateStart:cj,orderCreateSuccess:dj,orderCreateFailure:fj,orderCreateReset:pj}=Py.actions,mj=Py.reducer,ky=pe({name:"orderDetail",initialState:{loading:!0,orderItems:null,shippingAddress:{}},reducers:{orderDetailsRequest:e=>{e.loading=!0},orderDetailsSuccess:(e,t)=>{e.loading=!1,e.orderItems=t.payload},orderDetailsFailure:(e,t)=>{e.loading=!1,e.error=t.payload}}}),{orderDetailsRequest:hj,orderDetailsSuccess:yj,orderDetailsFailure:vj}=ky.actions,gj=ky.reducer,Ry=pe({name:"orderPay",initialState:{loading:!1,success:!1,error:null},reducers:{orderPayStart:e=>{e.loading=!0},orderPaySuccess:e=>{e.loading=!1,e.success=!0,e.error=null},orderPayFailure:(e,t)=>{e.loading=!1,e.product=null,e.error=t.payload},orderPayReset:e=>{e.loading=!1,e.success=!1}}}),{orderPayStart:wj,orderPaySuccess:xj,orderPayFailure:Sj,orderPayReset:Ej}=Ry.actions,jj=Ry.reducer,by=pe({name:"orderDeliver",initialState:{loading:!1,success:null,error:null},reducers:{orderDeliverRequest:e=>{e.loading=!0},orderDeliverSuccess:(e,t)=>{e.loading=!1,e.success=t.payload},orderDeliverFailure:(e,t)=>{e.loading=!1,e.error=t.payload},orderDeliverReset:e=>{e.success=null,e.error=null}}}),{orderDeliverRequest:Nj,orderDeliverSuccess:Cj,orderDeliverFailure:_j,orderDeliverReset:Pj}=by.actions,kj=by.reducer,Oy=pe({name:"orderList",initialState:{loading:!1,orders:[],error:null},reducers:{orderListRequest:e=>{e.loading=!0},orderListSuccess:(e,t)=>{e.loading=!1,e.orders=t.payload,e.error=null},orderListFailure:(e,t)=>{e.loading=!1,e.orders=null,e.error=t.payload},orderListReset:e=>{e.loading=!1,e.orders=[]}}}),{orderListRequest:Rj,orderListSuccess:bj,orderListFailure:Oj,orderListReset:aN}=Oy.actions,Tj=Oy.reducer,Ij=e=>async(t,n)=>{try{t(cj());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.post("/api/orders/add/",e,s);t(dj(o)),t(Fw()),t($w()),localStorage.removeItem("cartItems")}catch(r){t(fj(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},Lj=e=>async(t,n)=>{try{t(hj());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.get(`/api/orders/${e}`,s);t(yj(o))}catch(r){t(vj(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},Dj=(e,t)=>async(n,r)=>{try{n(wj());const{userInfo:{user:s}}=r(),o={headers:{"Content-type":"application/json",Authorization:`Bearer ${s.token}`}},{data:i}=await M.put(`/api/orders/${e}/pay`,t,o);n(xj(i))}catch(s){n(Sj(s.response&&s.response.data.detail?s.response.data.detail:s.message))}},Aj=()=>async(e,t)=>{try{e(nx());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.get("/api/orders/myorders",r);e(rx(s))}catch(n){e(sx(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},Mj=e=>async(t,n)=>{try{t(Nj());const{userInfo:{user:r}}=n(),s={headers:{"Content-type":"application/json",Authorization:`Bearer ${r.token}`}},{data:o}=await M.put(`/api/orders/${e.id}/deliver`,{},s);t(Cj(o))}catch(r){t(_j(r.response&&r.response.data.detail?r.response.data.detail:r.message))}},zj=()=>async(e,t)=>{try{e(Rj());const{userInfo:{user:n}}=t(),r={headers:{"Content-type":"application/json",Authorization:`Bearer ${n.token}`}},{data:s}=await M.get("/api/orders/",r);e(bj(s))}catch(n){e(Oj(n.response&&n.response.data.detail?n.response.data.detail:n.message))}},Fj=()=>{const e=_e(),t=Te(),n=F(u=>u.userInfo),{user:r}=n,s=F(u=>u.orderList),{loading:o,error:i,orders:l}=s;return j.useEffect(()=>{r&&r.isAdmin?e(zj()):t("/login")},[e,t,r]),a.jsxs("div",{className:"mx-auto px-16 mt-8 overflow-x-auto",children:[a.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Orders"}),o?a.jsx(ge,{}):i?a.jsx(K,{variant:"danger",children:i}):a.jsx("div",{children:a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"User"}),a.jsx("th",{children:"Date"}),a.jsx("th",{children:"Total"}),a.jsx("th",{children:"Paid"}),a.jsx("th",{children:"Delivered"})]})}),a.jsx("tbody",{children:l&&l.map(u=>a.jsxs("tr",{className:"hover",children:[a.jsx("td",{className:"px-4 py-2",children:u.id}),a.jsx("td",{className:"px-4 py-2",children:u.user.username}),a.jsx("td",{children:u.createdAt.substring(0,10)}),a.jsx("td",{className:"px-4 py-2",children:u.totalPrice}),a.jsx("td",{children:u.isPaid?a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"})}):""}),a.jsx("td",{children:u.isDelivered?a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"})}):""}),a.jsx("td",{className:"px-4 py-2",children:a.jsx(Y,{to:`/order/${u.id}`,className:"btn",children:"Detail"})})]},u.id))})]})})]})};var _c={};Object.defineProperty(_c,"__esModule",{value:!0});var Ty=_c.PayPalButton=void 0,Bl=Pc(j),$j=Pc(Vm),U=Pc(Yi);function Pc(e){return e&&e.__esModule?e:{default:e}}function Mo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mo=function(n){return typeof n}:Mo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mo(e)}function iu(){return iu=Object.assign||function(e){for(var t=1;t"u"||window.paypal===void 0))return null;var y=window.paypal.Buttons.driver("react",{React:Bl.default,ReactDOM:$j.default}),x=o&&!l?function(v,g){return r.createOrder(v,g)}:function(v,g){return l(v,g)};return Bl.default.createElement(y,iu({},this.props,{createOrder:u?void 0:x,createSubscription:u,onApprove:i?function(v,g){return r.onApprove(v,g)}:function(v,g){return c(v,g)},style:d}))}},{key:"addPaypalSdk",value:function(){var r=this,s=this.props,o=s.options,i=s.onButtonReady,l=[];Object.keys(o).forEach(function(c){var d=c.split(/(?=[A-Z])/).join("-").toLowerCase();l.push("".concat(d,"=").concat(o[c]))});var u=document.createElement("script");u.type="text/javascript",u.src="https://www.paypal.com/sdk/js?".concat(l.join("&")),u.async=!0,u.onload=function(){r.setState({isSdkReady:!0}),i&&i()},u.onerror=function(){throw new Error("Paypal SDK could not be loaded.")},document.body.appendChild(u)}}]),t}(Bl.default.Component);Ty=_c.PayPalButton=kc;Iy(kc,"propTypes",{amount:U.default.oneOfType([U.default.number,U.default.string]),currency:U.default.oneOfType([U.default.number,U.default.string]),shippingPreference:U.default.string,onSuccess:U.default.func,catchError:U.default.func,onError:U.default.func,createOrder:U.default.func,createSubscription:U.default.func,onApprove:U.default.func,style:U.default.object,options:U.default.shape({clientId:U.default.string,merchantId:U.default.string,currency:U.default.oneOfType([U.default.number,U.default.string]),intent:U.default.string,commit:U.default.oneOfType([U.default.bool,U.default.string]),vault:U.default.oneOfType([U.default.bool,U.default.string]),component:U.default.string,disableFunding:U.default.string,disableCard:U.default.string,integrationDate:U.default.string,locale:U.default.string,buyerCountry:U.default.string,debug:U.default.oneOfType([U.default.bool,U.default.string])}),onButtonReady:U.default.func});Iy(kc,"defaultProps",{style:{},options:{clientId:"sb",currency:"USD"},shippingPreference:"GET_FROM_FILE"});const qj=()=>{const e=Te(),t=_e(),{id:n}=Us(),r=F(w=>w.orderDetail),{orderItems:s,error:o,loading:i}=r;console.log(s);const l=F(w=>w.orderDeliver),{loading:u,success:c}=l,d=F(w=>w.orderPay),{loading:f,success:y}=d,x=F(w=>w.userInfo),{user:v}=x,g=w=>{t(Dj(n,w))},S=()=>{t(Mj(s))},[h,p]=j.useState(!1),m=()=>{const w=document.createElement("script");w.type="text/javascript",w.src="https://www.paypal.com/sdk/js?client-id=ARSAwBrnsoPldPewr2wudeBcE3MWvxAEDmgAhnpyXkIrXqzTNLZDOSUPlJphGQHV8hrlPwRfKt_65_Uz",w.async=!0,w.onload=()=>{p(!0)},document.body.appendChild(w)};return j.useEffect(()=>{v||e("/login"),!s||s.id!==Number(n)||y||c?(t(Lj(n)),t(pj()),t(Ej()),t(Pj())):s.isPaid||(window.paypal?p(!0):m())},[t,e,v,s,y,c,n]),i?a.jsx(ge,{}):o?a.jsx(K,{color:"bg-red-100",children:o}):a.jsxs("div",{className:"mx-auto mt-8 px-16",children:[a.jsxs("h1",{className:"text-2xl font-bold",children:["Order: ",s.id]}),a.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start",children:[a.jsx("div",{className:"md:w-[65%] w-full mb-8 sm:mb-0 pr-4",children:a.jsxs("div",{className:"divide-y divide-gray-200",children:[a.jsxs("div",{className:"py-4",children:[a.jsx("h2",{className:"text-xl font-bold py-3",children:"SHIPPING"}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Name: "})," ",s.user.username]}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Email: "}),a.jsx("a",{href:`mailto:${s.user.email}`,children:s.user.email})]}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Shipping: "}),s.shippingAddress.address,", ",s.shippingAddress.city," ",s.shippingAddress.postalCode,", ",s.shippingAddress.country]}),s.isDelivered?a.jsxs(K,{color:"bg-green-100",children:["Delivered on ",s.deliveredAt.substring(0,10)]}):a.jsx(K,{color:"bg-yellow-100",children:"Not Delivered"})]}),a.jsxs("div",{className:"py-4",children:[a.jsx("h2",{className:"text-xl font-bold py-3",children:"PAYMENT METHOD"}),a.jsxs("p",{className:"py-2",children:[a.jsx("strong",{children:"Method: "}),s.paymentMethod]}),s.isPaid?a.jsxs(K,{color:"bg-green-100",children:["Paid on ",s.paidAt.substring(0,10)]}):a.jsx(K,{color:"bg-yellow-100",children:"Not Paid"})]}),a.jsxs("div",{className:"py-4",children:[a.jsx("h2",{className:"text-xl font-bold py-3",children:"ORDER ITEMS"}),s.orderItems.length===0?a.jsx(K,{color:"bg-blue-100",children:"Order is empty"}):a.jsx("div",{className:"divide-y divide-gray-200",children:s.orderItems.map((w,E)=>a.jsxs("div",{className:`flex items-center gap-1 mb-4 ${E!==s.orderItems.length-1?"border-b border-gray-300 pb-4":""}`,children:[a.jsx("div",{className:"w-1/12",children:a.jsx("img",{src:w.image,alt:w.name,className:"w-full rounded"})}),a.jsx("div",{className:"w-8/12",children:a.jsx(Y,{to:`/product/${w.product}`,children:w.name})}),a.jsxs("div",{className:"w-3/12",children:[a.jsxs("span",{className:"hidden md:inline",children:[w.qty," X $",w.price," = "]}),"$",(w.qty*w.price).toFixed(2)]})]},E))})]})]})}),a.jsx("div",{className:"w-full md:w-[30%] card rounded shadow-md h-full p-5",children:a.jsxs("div",{className:"card",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{children:a.jsx("h2",{className:"text-xl font-bold",children:"ORDER SUMMARY"})}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Items:"})}),s&&!o&&!i&&a.jsxs("div",{children:["$",s.orderItems.reduce((w,E)=>w+E.price*E.qty,0).toFixed(2)]})]}),a.jsx("hr",{className:"my-1"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Shipping:"})}),a.jsxs("div",{children:["$",s.shippingPrice]})]}),a.jsx("hr",{className:"my-1"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Tax:"})}),a.jsxs("div",{children:["$",s.taxPrice]})]}),a.jsx("hr",{className:"my-1"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:a.jsx("span",{children:"Total:"})}),a.jsxs("div",{children:["$",s.totalPrice]})]}),!s.isPaid&&a.jsxs("div",{children:[f&&a.jsx(ge,{}),h?a.jsx(Ty,{amount:s.totalPrice,onSuccess:g}):a.jsx(ge,{})]})]}),u&&a.jsx(ge,{}),v&&v.isAdmin&&s.isPaid&&!s.isDelivered&&a.jsx("div",{children:a.jsx("button",{type:"button",className:"btn btn-block",onClick:S,children:"Mark As Delivered"})})]})})]})]})},rl=({step1:e,step2:t,step3:n,step4:r})=>a.jsx("div",{className:"md:flex hidden items-center justify-center mt-12 ",children:a.jsxs("ul",{className:"steps text-md w-2/5 mx-auto",children:[a.jsx("li",{className:`step ${e?"step-primary":""}`,children:e?a.jsx(Y,{to:"/login",className:"hover:underline",children:"Login"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Login"})}),a.jsx("li",{className:`step ${t?"step-primary":""}`,children:t?a.jsx(Y,{to:"/shipping",children:"Shipping"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Shipping"})}),a.jsx("li",{className:`step ${n?"step-primary":""}`,children:n?a.jsx(Y,{to:"/payment",children:"Payment"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Payment"})}),a.jsx("li",{className:`step ${r?"step-primary":""}`,children:r?a.jsx(Y,{to:"/placeorder",children:"Place Order"}):a.jsx("span",{className:"text-gray-500 cursor-not-allowed",children:"Place Order"})})]})});rl.propTypes={step1:fe.string,step2:fe.string,step3:fe.string,step4:fe.string};const Kj=()=>{const e=F(l=>l.cart),{shippingAddress:t}=e,n=Te(),r=_e(),[s,o]=j.useState("PayPal");t.address||n("/shipping");const i=l=>{l.preventDefault(),r(Z2(s)),n("/placeorder")};return a.jsxs("div",{className:"container mx-auto p-4 min-h-screen",children:[a.jsx(rl,{step1:"step-primary",step2:"step-primary",step3:"step-primary"}),a.jsx("h1",{className:"text-2xl font-bold pb-3 max-w-md mx-auto md:mt-14 mt-20",children:"SELECT METHOD"}),a.jsxs("form",{onSubmit:i,className:"max-w-md mx-auto my-6",children:[a.jsx("div",{className:"mb-4",children:a.jsx("div",{className:"mt-1",children:a.jsxs("label",{className:"inline-flex items-center",children:[a.jsx("input",{type:"radio",name:"radio-1",className:"radio radio-primary",onChange:()=>o("PayPal"),checked:!0}),a.jsx("span",{className:"ml-2",children:"PayPal or Credit Card"})]})})}),a.jsx("button",{type:"submit",className:"btn",children:"Continue"})]})]})},Qj=()=>{const e=_e(),t=Te(),n=F(c=>c.orderCreate),{order:r,error:s,success:o}=n,i=F(c=>c.cart.orderValues),l=F(c=>c.cart),u=()=>{e(Ij({orderItems:l.cartItems,shippingAddress:l.shippingAddress,paymentMethod:l.paymentMethod,itemsPrice:i.itemsPrice,shippingPrice:i.shippingPrice,taxPrice:i.taxPrice,totalPrice:i.totalPrice}))};return j.useEffect(()=>{l.paymentMethod||t("/payment"),o&&t(`/order/${r.id}`)},[r,e,o,t,l,s]),a.jsxs("div",{className:"mx-auto px-16",children:[a.jsx(rl,{step1:"step-primary",step2:"step-primary",step3:"step-primary",step4:"step-primary"}),a.jsxs("div",{className:"flex flex-col md:flex-row md:mt-14 mt-20 justify-between items-start",children:[a.jsxs("div",{className:"md:w-[65%] w-full mb-8 sm:mb-0 pr-4",children:[a.jsxs("div",{className:"py-5 border-b border-gray-300",children:[a.jsx("h2",{className:"md:text-2xl text-xl font-bold mb-2",children:"SHIPPING"}),a.jsxs("p",{className:"mt-2 md:py-3 py-0",children:[a.jsx("strong",{children:"Shipping: "}),l.shippingAddress.address,", ",l.shippingAddress.city," ",l.shippingAddress.postalCode,", ",l.shippingAddress.country]})]}),a.jsxs("div",{className:"py-5 border-b border-gray-300",children:[a.jsx("h2",{className:"md:text-2xl text-xl font-bold mb-2",children:"PAYMENT METHOD"}),a.jsxs("p",{className:"mt-2 md:py-3 py-0",children:[a.jsx("strong",{children:"Method: "}),l.paymentMethod]})]}),a.jsxs("div",{className:"py-5",children:[a.jsx("h2",{className:"md:text-2xl text-xl font-bold mb-2 py-3",children:"ORDER ITEMS"}),l.cartItems.length===0?a.jsxs(K,{color:"bg-blue-100",children:["Your cart is empty ",a.jsx(Y,{to:"/",className:"hover:underline",children:"Go Back"})]}):a.jsx("div",{className:"mt-3 lg:w-[90%] w-full",children:l.cartItems.map((c,d)=>a.jsxs("div",{className:`flex items-center gap-1 mb-4 ${d!==l.cartItems.length-1?"border-b border-gray-300 pb-4":""}`,children:[a.jsx("div",{className:"w-12 sm:w-16",children:a.jsx("img",{src:c.image,alt:c.name,className:"w-full"})}),a.jsx("div",{className:"ml-2 sm:ml-4",children:a.jsx(Y,{to:`/product/${c.product}`,className:"text-sm sm:text-base hover:underline",children:c.name})}),a.jsxs("div",{className:"ml-auto text-sm sm:text-base",children:[a.jsxs("span",{className:"hidden md:inline",children:[c.qty," X $",c.price," = "]}),(c.qty*c.price).toFixed(2)]})]},d))})]})]}),a.jsx("div",{className:"w-full md:w-[30%] card rounded shadow-md h-full",children:a.jsxs("div",{className:"m-4",children:[a.jsx("div",{className:"mb-4 md:text-2xl text-xl font-bold",children:"ORDER SUMMARY"}),i&&a.jsxs("div",{children:[a.jsxs("div",{className:"flex justify-between py-1 ",children:[a.jsx("div",{children:"Items:"}),a.jsxs("div",{children:["$",i.itemsPrice]})]}),a.jsx("hr",{className:"pt-2"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:"Shipping:"}),a.jsxs("div",{children:["$",i.shippingPrice]})]}),a.jsx("hr",{className:"pt-2"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:"Tax:"}),a.jsxs("div",{children:["$",i.taxPrice]})]}),a.jsx("hr",{className:"pt-2"}),a.jsxs("div",{className:"flex justify-between py-1",children:[a.jsx("div",{children:"Total:"}),a.jsxs("div",{children:["$",i.totalPrice]})]})]}),a.jsx("div",{className:"mt-4",children:s&&a.jsx(K,{color:"bg-red-100",children:s})}),a.jsx("div",{className:"mt-4",children:a.jsx("button",{type:"button",className:"w-full btn",disabled:l.cartItems.length===0,onClick:u,children:"Place Order"})})]})})]})]})},Xj=()=>{const{id:e}=Us(),t=_e(),n=Te(),r=F(k=>k.userInfo),{user:s}=r,o=F(k=>k.productDetail),{error:i,loading:l,product:u,smallImages:c}=o,d=F(k=>k.productReview),{error:f,loading:y,success:x}=d,[v,g]=j.useState((u==null?void 0:u.main_image)||null),[S,h]=j.useState(0),[p,m]=j.useState(""),[w,E]=j.useState(1);j.useEffect(()=>{x&&(t(xf()),t(Ga(e))),(u==null?void 0:u.id)!==e&&(t(xf()),t(Ga(e)))},[t,u==null?void 0:u.review,e,u==null?void 0:u.id,x]),j.useEffect(()=>{g(c[0])},[c]);const _=k=>{g(k)},N=k=>{k.preventDefault(),t(b2(e,{rating:S,comment:p})),m("")};j.useEffect(()=>{window.scrollTo(0,0)},[]);const C=()=>{n(`/cart/${e}?qty=${w}`)};return a.jsxs("div",{className:"md:mt-8 mt-3 mx-auto px-16 min-h-screen",children:[a.jsxs("button",{onClick:()=>n(-1),className:"btn btn-ghost mb-8",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),"Go Back"]}),l?a.jsx(ge,{}):i?a.jsx(K,{color:"bg-red-100",children:i}):a.jsxs("div",{children:[a.jsxs("div",{className:"flex flex-col md:flex-row justify-between gap-8",children:[a.jsxs("div",{className:"md:w-2/5",children:[a.jsx("div",{children:a.jsx("img",{src:v,alt:u.name,className:"w-full md:h-96 object-contain"})}),a.jsx("div",{className:"w-full p-1 flex mt-2 justify-between",children:c.length>1&&c.map((k,O)=>a.jsx("img",{src:k,alt:`Thumbnail ${O+1}`,className:"w-[23%] h-auto cursor-pointer object-contain",onClick:()=>_(k)},O))})]}),a.jsx("div",{className:"md:w-1/4 mx-4",children:a.jsxs("ul",{className:"list-none p-0",children:[a.jsx("li",{children:a.jsx("h2",{className:"text-2xl font-bold mb-8",children:u.name})}),a.jsx("hr",{className:"pb-1"}),a.jsx("li",{children:a.jsx(is,{value:parseInt(u.rating,10),edit:!1,text:`${u.numReviews} reviews`,onChange:k=>h(k),color:"#f8e825"})}),a.jsx("hr",{className:"py-1 mt-1"}),a.jsxs("li",{children:["Price: $",u.price]}),a.jsx("hr",{className:"py-1 mt-2"}),a.jsxs("li",{children:["Description: ",u.description]})]})}),a.jsx("div",{className:"md:w-1/4 mx-0",children:a.jsxs("ul",{className:"list-none p-0",children:[a.jsxs("li",{className:"flex justify-between",children:[a.jsx("span",{children:"Price:"}),a.jsxs("strong",{children:["$",(u.price*w).toFixed(2)]})]}),a.jsx("hr",{className:"mt-2 pb-2"}),a.jsxs("li",{className:"flex justify-between",children:[a.jsx("span",{children:"Status:"}),u.countInStock>0?"In Stock":"Out of Stock"]}),a.jsx("hr",{className:"mt-2 pb-2"}),u.countInStock>0&&a.jsxs("li",{className:"flex justify-between",children:[a.jsx("span",{children:"Qty"}),a.jsx("select",{value:w,onChange:k=>E(k.target.value),className:"select select-sm select-bordered w-2/6 max-w-xs",children:[...Array(u.countInStock).keys()].map(k=>a.jsx("option",{value:k+1,children:k+1},k+1))})]}),a.jsxs("li",{children:[a.jsx("hr",{className:"mt-2 pb-2"}),a.jsx("button",{className:"w-full btn",disabled:u.countInStock===0,type:"button",onClick:C,children:"Add to Cart"})]})]})})]}),a.jsx("div",{className:"flex flex-col md:flex-row justify-between gap-8",children:a.jsxs("div",{className:"md:w-2/5",children:[a.jsx("h3",{className:"text-xl font-bold py-8",children:"Reviews"}),u&&u.reviews&&u.reviews.length===0&&a.jsx(K,{color:"bg-blue-100",children:"No Reviews"}),a.jsx("div",{className:"mx-0 mb-5",children:a.jsx("ul",{className:"list-none p-0",children:u&&u.reviews&&u.reviews.map(k=>a.jsxs("li",{className:"mb-6",children:[a.jsxs("div",{className:"flex items-center justify-between mb-2",children:[a.jsx("p",{className:"font-semibold text-lg",children:k.name}),a.jsx("span",{className:"text-gray-500",children:k.createdAt.substring(0,10)})]}),a.jsx(is,{value:parseInt(k.rating,10),edit:!1}),a.jsx("p",{className:"mt-4 text-gray-800",children:k.comment}),a.jsx("hr",{className:"my-3 border-t border-gray-300"})]},k.id))})}),a.jsx("h3",{className:"text-xl font-bold py-2",children:"Write A Review"}),x&&a.jsx(K,{color:"bg-blue-100",children:"Review Submitted"}),f&&a.jsx(K,{color:"bg-red-100",children:f}),s?a.jsxs("form",{onSubmit:N,className:"mb-5",children:[a.jsx(is,{setRating:h}),a.jsx("div",{className:"form-group",children:a.jsx("textarea",{value:p,placeholder:"Review",className:"textarea textarea-bordered textarea-md w-full my-2",onChange:k=>m(k.target.value)})}),y?a.jsxs("button",{disabled:!0,className:"btn w-2/6",children:[a.jsx("span",{className:"loading loading-spinner"}),"Submitting"]}):a.jsx("button",{className:"btn w-2/6",type:"submit",children:"Submit"})]}):a.jsxs(K,{color:"bg-blue-100",children:["Please ",a.jsx(Y,{to:"/login",children:"login"})," to write a review"]})]})})]})]})},Jj=()=>{const[e,t]=j.useState(""),[n,r]=j.useState(0),[s,o]=j.useState(""),[i,l]=j.useState(""),[u,c]=j.useState(""),[d,f]=j.useState(0),[y,x]=j.useState(""),{id:v}=Us(),g=_e(),S=Te(),h=F(I=>I.productDetail),{error:p,loading:m,product:w}=h,E=F(I=>I.productUpdate),{error:_,loading:N,success:C}=E,k=I=>{I.preventDefault(),g(T2({id:v,name:e,price:n,image:s,brand:i,category:u,countInStock:d,description:y}))},O=async(I,re)=>{const Ee=I.target.files[0],me=new FormData;console.log(re),me.append(re,Ee),me.append("product_id",v);try{const Fe={headers:{"Content-Type":"multipart/form-data"}},{data:qe}=await M.post("/api/products/upload/",me,Fe);o(qe),Z.success("Image Uploaded")}catch{Z.error("Something went wrong")}};return j.useEffect(()=>{C?(g(m2()),g(vi()),S("/admin/productlist")):!w.name||w.id!==Number(v)?g(Ga(v)):(t(w.name),r(w.price),o(w.image),l(w.brand),c(w.category),f(w.countInStock),x(w.description))},[g,w,v,S,C]),a.jsx("div",{className:"mt-8 px-16 mx-auto",children:a.jsxs("div",{className:"mt-4",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Edit Product"}),N&&a.jsx(ge,{}),_&&a.jsx(K,{color:alert-p,children:_.payload}),m?a.jsx(ge,{}):p?a.jsx(K,{variant:"danger",children:p}):a.jsxs("form",{onSubmit:k,className:"my-4",children:[a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"name",className:"block text-sm font-medium text-gray-600",children:"Name"}),a.jsx("input",{type:"text",id:"name",placeholder:"Enter name",value:e,onChange:I=>t(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"price",className:"block text-sm font-medium text-gray-600",children:"Price"}),a.jsx("input",{type:"number",id:"price",placeholder:"Enter price",value:n,onChange:I=>r(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image",className:"block text-sm font-medium text-gray-600",children:"Main Image"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>{O(I,"main_image")},className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image_1",className:"block text-sm font-medium text-gray-600",children:"Image_1"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>O(I,"image_1"),className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image_2",className:"block text-sm font-medium text-gray-600",children:"Image_2"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>O(I,"image_2"),className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"image_3",className:"block text-sm font-medium text-gray-600",children:"Image_3"}),a.jsx("input",{type:"file",id:"image-file",label:"Choose File",onChange:I=>O(I,"image_3"),className:"mt-2"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"brand",className:"block text-sm font-medium text-gray-600",children:"Brand"}),a.jsx("input",{type:"text",id:"brand",placeholder:"Enter Brand",value:i,onChange:I=>l(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"category",className:"block text-sm font-medium text-gray-600",children:"Category"}),a.jsx("input",{type:"text",id:"category",placeholder:"Category",value:u,onChange:I=>c(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"countInStock",className:"block text-sm font-medium text-gray-600",children:"Count in Stock"}),a.jsx("input",{type:"text",id:"countInStock",placeholder:"countInStock",value:d,onChange:I=>f(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-gray-600",children:"Description"}),a.jsx("input",{type:"textarea",id:"description",placeholder:"Description",value:y,onChange:I=>x(I.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsx("button",{type:"submit",className:"btn max-w-50",children:"Update"})]})]})})},Yj=()=>{const e=_e(),t=Te();let r=Ut().search||"";const s=F(N=>N.userInfo),{user:o}=s,i=F(N=>N.products),{loading:l,error:u,products:c,pages:d,page:f}=i,y=F(N=>N.productDelete),{loading:x,error:v,success:g}=y,S=F(N=>N.productCreate),{loading:h,error:p,success:m,product:w}=S,E=()=>{e(I2())},_=N=>{window.confirm("Are you sure you want to delete this product?")&&e(O2(N))};return j.useEffect(()=>{e(w2()),e(vi(r)),e(dy()),o&&!o.isAdmin&&t("/login"),m&&t(`/admin/product/${w.id}/edit`),(g||r)&&(e(vi(r)),e(u2()))},[e,g,t,m,w.id,o,r]),a.jsxs("div",{className:"mx-auto px-16 mt-8 overflow-x-auto",children:[a.jsxs("div",{className:"flex items-center",children:[a.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Products"}),a.jsx("div",{className:"ml-auto",children:a.jsx("div",{className:"card-actions flex items-center justify-between",children:a.jsxs("button",{className:"btn btn-sm btn-outline",onClick:E,children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"})}),"Create Product"]})})})]}),x&&a.jsx(ge,{}),v&&a.jsx(K,{color:"{alert-error}",children:v}),h&&a.jsx(ge,{}),p&&a.jsx(K,{color:"{alert-error}",children:p}),l?a.jsx(ge,{}):u?a.jsx(K,{variant:"danger",children:u}):a.jsxs("div",{children:[a.jsxs("table",{className:"table table-zebra",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"NAME"}),a.jsx("th",{children:"PRICE"}),a.jsx("th",{children:"CATEGORY"}),a.jsx("th",{children:"BRAND"}),a.jsx("th",{})]})}),a.jsx("tbody",{children:c&&c.map(N=>a.jsxs("tr",{children:[a.jsx("td",{className:"px-4 py-2",children:N.id}),a.jsx("td",{className:"px-4 py-2",children:N.name}),a.jsxs("td",{className:"px-4 py-2",children:["$",N.price]}),a.jsx("td",{className:"px-4 py-2",children:N.category}),a.jsx("td",{className:"px-4 py-2",children:N.brand}),a.jsxs("td",{className:"px-4 py-2 flex flex-row justify-center gap-1",children:[a.jsx(Y,{to:`/admin/product/${N.id}/edit`,className:"join-item btn btn-square",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),a.jsx("div",{className:"join-item btn btn-square",onClick:()=>_(N.id),children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})]},N.id))})]}),a.jsx(wc,{pages:d,page:f,isAdmin:!0,keyword:r})]})]})},Gj=()=>{const e=Te(),t=_e(),n=F(k=>k.userDetail),{error:r,loading:s,userDetail:o}=n,i=F(k=>k.userInfo),{user:l}=i,u=F(k=>k.userUpdate),{success:c}=u,d=F(k=>k.userOrders),{loading:f,error:y,orders:x}=d,[v,g]=j.useState(o&&o.username||""),[S,h]=j.useState(o&&o.email||""),[p,m]=j.useState(""),[w,E]=j.useState(""),[_,N]=j.useState("");j.useEffect(()=>{l||e("/login"),l&&(!o||l.id!==o.id||c?(t(ty("profile")),t(ex()),t(Aj())):(g(o.username),h(o.email)))},[t,o,l,e,c]);const C=k=>{k.preventDefault(),p!=w?N("Passwords do not match"):(t(WS({id:o.id,username:v,email:S,password:p})),N(""))};return a.jsx("div",{children:a.jsxs("div",{className:"flex flex-wrap justify-between mt-10 mx-auto px-16",children:[a.jsxs("div",{className:"md:w-[30%] w-full",children:[a.jsx("h2",{className:"text-2xl font-bold",children:"PROFILE"}),_&&a.jsx(K,{color:"alert-error",children:_}),r&&a.jsx(K,{color:"alert-error",children:r}),s&&a.jsx(ge,{}),a.jsxs("form",{onSubmit:C,className:"mt-4",children:[a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Name"})}),a.jsx("input",{required:!0,type:"text",placeholder:"Enter name",value:v,onChange:k=>g(k.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Email"})}),a.jsx("input",{required:!0,type:"email",placeholder:"Enter Email",value:S,onChange:k=>h(k.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Password"})}),a.jsx("input",{type:"password",placeholder:"Enter Password",value:p,onChange:k=>m(k.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Confirm Password"})}),a.jsx("input",{type:"password",placeholder:"Confirm Password",value:w,onChange:k=>E(k.target.value),className:"input input-bordered w-full"})]}),a.jsx("button",{type:"submit",className:"btn w-full mb-10",children:"Update"})]})]}),a.jsxs("div",{className:"md:w-[65%] w-full",children:[a.jsx("h2",{className:"text-2xl font-bold mb-4",children:"MY ORDERS"}),f?a.jsx(ge,{}):y?a.jsx(K,{color:"bg-red-100",children:y}):a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"Date"}),a.jsx("th",{className:"text-center",children:"Total"}),a.jsx("th",{className:"text-center",children:"Paid"}),a.jsx("th",{className:"text-center",children:"Delivered"})]})}),a.jsx("tbody",{children:x&&x.map(k=>a.jsxs("tr",{children:[a.jsx("td",{className:"px-4 py-2",children:k.id}),a.jsx("td",{className:"px-4 py-2",children:k.createdAt.substring(0,10)}),a.jsxs("td",{className:"px-4 py-2 text-center",children:["$",k.totalPrice]}),a.jsx("td",{className:"px-4 py-2 text-center",children:k.isPaid?k.paidAt.substring(0,10):a.jsx("i",{className:"fas fa-times text-red-500"})}),a.jsx("td",{className:"px-4 py-2 text-center",children:a.jsx(Y,{to:`/order/${k.id}`,children:a.jsx("button",{className:"btn",children:"Details"})})})]},k.id))})]})]})]})})},Zj=()=>{const e=_e(),t=Te(),n=F(N=>N.userInfo),{error:r,loading:s,user:o}=n,i=F(N=>N.userRegister),{errorRegister:l,loadingRegister:u}=i,[c,d]=j.useState(""),[f,y]=j.useState(""),[x,v]=j.useState(""),[g,S]=j.useState(""),[h,p]=j.useState("");function m(){return new URLSearchParams(Ut().search)}const E=m().get("redirect")??"/",_=N=>{N.preventDefault(),g!=h?v("Passwords do not match"):e(HS(c,f,g,h))};return j.useEffect(()=>{o&&o.token&&t(E)},[t,o,E]),a.jsx("div",{children:a.jsx("div",{className:"flex justify-center items-center h-screen",children:a.jsx("div",{className:"w-full md:w-1/2 lg:w-1/3 mt-20 mb-10",children:a.jsxs("form",{onSubmit:_,className:"bg-white shadow-md rounded p-8",children:[a.jsx("h1",{className:"mb-4 text-2xl font-bold",children:"Sign Up"}),x&&a.jsx(K,{color:"bg-red-100",children:x}),l||r&&a.jsx(K,{color:"bg-red-100",children:l}),u||s&&a.jsx(ge,{}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Name"})}),a.jsx("input",{required:!0,type:"name",placeholder:"Enter name",value:c,onChange:N=>d(N.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Email Address"})}),a.jsx("input",{required:!0,type:"email",placeholder:"Enter Email",value:f,onChange:N=>y(N.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Password"})}),a.jsx("input",{required:!0,type:"password",placeholder:"Enter Password",value:g,onChange:N=>S(N.target.value),className:"input input-bordered w-full"})]}),a.jsxs("div",{className:"mb-2 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Confirm Password"})}),a.jsx("input",{required:!0,type:"password",placeholder:"Confirm Password",value:h,onChange:N=>p(N.target.value),className:"input input-bordered w-full"})]}),a.jsx("button",{type:"submit",className:"w-full btn",children:"Register"}),a.jsxs("div",{className:"mt-3 text-center",children:[a.jsx("span",{className:"text-gray-600",children:"Have an Account? "}),a.jsx(Y,{to:E?`/login?redirect=${E}`:"/login",className:"text-blue-500",children:"Sign In"})]})]})})})})},eN=()=>{const e=F(h=>h.cart),{shippingAddress:t}=e||{},{address:n,city:r,postalCode:s,country:o}=t||{},i=_e(),l=Te(),[u,c]=j.useState(n||""),[d,f]=j.useState(r||""),[y,x]=j.useState(s||""),[v,g]=j.useState(o||""),S=h=>{h.preventDefault(),i(G2({address:u,city:d,postalCode:y,country:v})),l("/payment")};return a.jsxs(a.Fragment,{children:[a.jsx(rl,{step1:"step-primary",step2:"step-primary"}),a.jsx("h1",{className:"text-2xl font-bold pb-3 max-w-md mx-auto md:mt-14 mt-4",children:"SHIPPING"}),a.jsx("div",{className:"max-w-md mb-5 mx-auto p-6 card rounded shadow-md",children:a.jsxs("form",{onSubmit:S,children:[a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Address"})}),a.jsx("input",{type:"text",id:"address",placeholder:"Enter address",value:u,onChange:h=>c(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"City"})}),a.jsx("input",{type:"text",id:"city",placeholder:"Enter city",value:d,onChange:h=>f(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Postal Code"})}),a.jsx("input",{type:"text",id:"postalCode",placeholder:"Enter postal code",value:y,onChange:h=>x(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsxs("div",{className:"mb-4 form-control w-full",children:[a.jsx("div",{className:"label",children:a.jsx("span",{className:"label-text font-medium",children:"Country"})}),a.jsx("input",{type:"text",id:"country",placeholder:"Enter country",value:v,onChange:h=>g(h.target.value),className:"input input-bordered w-full",required:!0})]}),a.jsx("button",{type:"submit",className:"w-full btn",children:"Continue"})]})})]})},tN=()=>{const{id:e}=Us(),t=Te(),[n,r]=j.useState(""),[s,o]=j.useState(""),[i,l]=j.useState(!1),u=_e(),c=F(p=>p.userDetail),{error:d,loading:f,userDetail:y}=c,x=F(p=>p.userUpdateAdmin),{error:v,loading:g,success:S}=x;j.useEffect(()=>{S?(u(jx()),t("/admin/users")):!y||y.id!==Number(e)?u(ty(e)):(r(y.username),o(y.email),l(y.isAdmin))},[y,e,S,t]);const h=p=>{p.preventDefault(),u(KS({id:y.id,username:n,email:s,isAdmin:i}))};return a.jsxs("div",{className:"px-16 mx-auto mt-1 mb-2",children:[a.jsxs("button",{onClick:()=>t(-1),className:"btn btn-ghost mb-8",children:[a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"})}),"Go Back"]}),a.jsxs("div",{className:"mt-4",children:[a.jsx("h1",{className:"text-2xl font-bold",children:"Edit User"}),g&&a.jsx(ge,{}),v&&a.jsx(K,{variant:"danger",children:v}),f?a.jsx(ge,{}):d?a.jsx(K,{variant:"danger",children:d}):a.jsxs("form",{onSubmit:h,className:"mt-4",children:[a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"username",className:"block text-sm font-medium text-gray-600",children:"username"}),a.jsx("input",{type:"text",id:"username",placeholder:"Enter username",value:n,onChange:p=>r(p.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-600",children:"Email Address"}),a.jsx("input",{type:"email",id:"email",placeholder:"Enter Email",value:s,onChange:p=>o(p.target.value),className:"mt-1 p-2 w-full border rounded-md focus:outline-none focus:border-blue-500"})]}),a.jsxs("div",{className:"mb-4",children:[a.jsx("input",{type:"checkbox",id:"isadmin",className:"mr-2 focus:ring-blue-500",checked:i,onChange:p=>l(p.target.checked)}),a.jsx("label",{htmlFor:"isadmin",className:"text-sm font-medium text-gray-600",children:"Is Admin"})]}),a.jsx("button",{type:"submit",className:"bg-blue-500 text-white px-4 py-2 rounded-md",children:"Update"})]})]})]})},nN=()=>{const e=_e(),t=Te(),n=F(f=>f.userList),{loading:r,error:s,users:o}=n,i=F(f=>f.userInfo),{user:l}=i,u=F(f=>f.userDelete),{success:c}=u,d=f=>{window.confirm("Are you sure you want to delete this user?")&&(e(qS(f)),e(gx()))};return j.useEffect(()=>{l&&l.isAdmin?e(VS()):t("/login")},[e,l,t,c]),a.jsxs("div",{className:"mx-auto px-16 mt-8 overflow-x-auto",children:[a.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Users"}),r?a.jsx(ge,{}):s?a.jsx(K,{color:"alert-error",children:s}):a.jsxs("table",{className:"table",children:[a.jsx("thead",{children:a.jsxs("tr",{children:[a.jsx("th",{children:"ID"}),a.jsx("th",{children:"NAME"}),a.jsx("th",{children:"EMAIL"}),a.jsx("th",{children:"ADMIN"}),a.jsx("th",{})]})}),a.jsx("tbody",{children:o&&o.map(f=>a.jsxs("tr",{className:"hover",children:[a.jsx("td",{className:"px-4 py-2",children:f.id}),a.jsx("td",{className:"px-4 py-2",children:f.username}),a.jsx("td",{className:"px-4 py-2",children:f.email}),a.jsx("td",{className:"px-4 py-2",children:f.isAdmin?a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"})}):""}),a.jsxs("td",{className:"px-4 py-2 flex flex-row justify-center gap-1",children:[a.jsx(Y,{to:`/admin/user/${f.id}/edit`,className:"join-item btn btn-square",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})})}),a.jsx("div",{className:"join-item btn btn-square",onClick:()=>d(f.id),children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})})})]})]},f.id))})]})]})},rN=()=>a.jsxs(r1,{children:[a.jsx(q2,{hideProgressBar:!0,position:"bottom-right"}),a.jsx(L2,{}),a.jsxs(J0,{children:[a.jsx(De,{path:"/",exact:!0,Component:aj}),a.jsx(De,{path:"/product/:id",Component:Xj}),a.jsx(De,{path:"/cart/:id?",Component:eE}),a.jsx(De,{path:"/shipping",Component:eN}),a.jsx(De,{path:"/payment",Component:Kj}),a.jsx(De,{path:"/placeorder",Component:Qj}),a.jsx(De,{path:"/order/:id",Component:qj}),a.jsx(De,{path:"/profile",Component:Gj}),a.jsx(De,{path:"/register",Component:Zj}),a.jsx(De,{path:"/login",Component:uj}),a.jsx(De,{path:"/admin/users",Component:nN}),a.jsx(De,{path:"/admin/user/:id/edit",Component:tN}),a.jsx(De,{path:"/admin/productlist",Component:Yj}),a.jsx(De,{path:"/admin/product/:id/edit",Component:Jj}),a.jsx(De,{path:"/admin/orderlist",Component:Fj})]}),a.jsx(a1,{})]}),sN=ch({products:GS,productDetail:t2,productReview:o2,userInfo:Vw,cart:Uw,orderCreate:mj,orderDetail:gj,orderPay:jj,userDetail:Jw,userUpdate:tx,userOrders:ix,userRegister:cx,orderDeliver:kj,userList:mx,userDelete:wx,userUpdateAdmin:Nx,productDelete:c2,productUpdate:h2,productCreate:x2,orderList:Tj,categories:N2,topProducts:k2}),oN=Sw({reducer:sN,middleware:e=>e().concat(Sh)});Wl.createRoot(document.getElementById("root")).render(a.jsx(z1,{store:oN,children:a.jsx(rN,{})})); diff --git a/frontend/dist/assets/index-Ait0vhS3.css b/frontend/dist/assets/index-DlVmWXCE.css similarity index 89% rename from frontend/dist/assets/index-Ait0vhS3.css rename to frontend/dist/assets/index-DlVmWXCE.css index a63aa3a..278b509 100644 --- a/frontend/dist/assets/index-Ait0vhS3.css +++ b/frontend/dist/assets/index-DlVmWXCE.css @@ -1 +1 @@ -:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.carousel .control-arrow,.carousel.carousel-slider .control-arrow{transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:""}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{transition:all .15s ease-in;transform:translateZ(0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:#0003}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-moz-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-moz-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:.25;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px #000000e6;background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,.9);color:#fff}.carousel:hover .slide .legend{opacity:1}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .89824 .06192 275.75;--ac: .15352 .0368 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .4912 .3096 275.75;--s: .6971 .329 342.55;--sc: .9871 .0106 342.55;--a: .7676 .184 183.61;--n: .321785 .02476 255.701624;--nc: .894994 .011585 252.096176;--b1: 1 0 0;--b2: .961151 0 0;--b3: .924169 .00108 197.137559;--bc: .278078 .029596 256.847952}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .13138 .0392 275.75;--sc: .1496 .052 342.55;--ac: .14902 .0334 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .6569 .196 275.75;--s: .748 .26 342.55;--a: .7451 .167 183.61;--n: .313815 .021108 254.139175;--nc: .746477 .0216 264.435964;--b1: .253267 .015896 252.417568;--b2: .232607 .013807 253.100675;--b3: .211484 .01165 254.087939;--bc: .746477 .0216 264.435964}}[data-theme=light]{color-scheme:light;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .89824 .06192 275.75;--ac: .15352 .0368 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .4912 .3096 275.75;--s: .6971 .329 342.55;--sc: .9871 .0106 342.55;--a: .7676 .184 183.61;--n: .321785 .02476 255.701624;--nc: .894994 .011585 252.096176;--b1: 1 0 0;--b2: .961151 0 0;--b3: .924169 .00108 197.137559;--bc: .278078 .029596 256.847952}[data-theme=dark]{color-scheme:dark;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .13138 .0392 275.75;--sc: .1496 .052 342.55;--ac: .14902 .0334 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .6569 .196 275.75;--s: .748 .26 342.55;--a: .7451 .167 183.61;--n: .313815 .021108 254.139175;--nc: .746477 .0216 264.435964;--b1: .253267 .015896 252.417568;--b2: .232607 .013807 253.100675;--b3: .211484 .01165 254.087939;--bc: .746477 .0216 264.435964}[data-theme=cupcake]{color-scheme:light;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .152344 .017892 200.026556;--sc: .15787 .020249 356.29965;--ac: .158762 .029206 78.618794;--nc: .847148 .013247 313.189598;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: .76172 .089459 200.026556;--s: .789351 .101246 356.29965;--a: .793811 .146032 78.618794;--n: .235742 .066235 313.189598;--b1: .977882 .00418 56.375637;--b2: .939822 .007638 61.449292;--b3: .915861 .006811 53.440502;--bc: .235742 .066235 313.189598;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .7rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.alert{display:grid;width:100%;grid-auto-flow:row;align-content:flex-start;align-items:center;justify-items:center;gap:1rem;text-align:center;border-radius:var(--rounded-box, 1rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));padding:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));background-color:var(--alert-bg)}@media (min-width: 640px){.alert{grid-auto-flow:column;grid-template-columns:auto minmax(auto,1fr);justify-items:start;text-align:start}}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}@media (hover:hover){.link-hover:hover{text-decoration-line:underline}.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.radio-primary:hover{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)))}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.btn{display:inline-flex;height:3rem;min-height:3rem;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-color:transparent;border-color:oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity));padding-left:1rem;padding-right:1rem;text-align:center;font-size:.875rem;line-height:1em;gap:.5rem;font-weight:600;text-decoration-line:none;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;transition-property:color,background-color,border-color,opacity,box-shadow,transform;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:var(--fallback-bc,oklch(var(--bc)/1));background-color:oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity));--tw-bg-opacity: 1;--tw-border-opacity: 1}.btn-disabled,.btn[disabled],.btn:disabled{pointer-events:none}.btn-square{height:3rem;width:3rem;padding:0}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}:where(.btn:is(input[type=checkbox])),:where(.btn:is(input[type=radio])){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.dropdown{position:relative;display:inline-block}.dropdown>*:not(summary):focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{position:absolute}.dropdown:is(:not(details)) .dropdown-content{visibility:hidden;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s}.dropdown-end .dropdown-content{inset-inline-end:0px}.dropdown-left .dropdown-content{bottom:auto;inset-inline-end:100%;top:0;transform-origin:right}.dropdown-right .dropdown-content{bottom:auto;inset-inline-start:100%;top:0;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:focus-within .dropdown-content{visibility:visible;opacity:1}@media (hover: hover){.dropdown.dropdown-hover:hover .dropdown-content{visibility:visible;opacity:1}.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:hover{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn:hover{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity, 1)) 90%,black)}}@supports not (color: oklch(0 0 0)){.btn:hover{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}}.btn.glass:hover{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost:hover{border-color:transparent}@supports (color: oklch(0 0 0)){.btn-ghost:hover{background-color:var(--fallback-bc,oklch(var(--bc)/.2))}}.btn-outline:hover{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary:hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn-outline.btn-secondary:hover{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-secondary:hover{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}}.btn-outline.btn-accent:hover{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-accent:hover{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}}.btn-outline.btn-success:hover{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-success:hover{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}}.btn-outline.btn-info:hover{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-info:hover{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}}.btn-outline.btn-warning:hover{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-warning:hover{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}}.btn-outline.btn-error:hover{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-error:hover{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn-disabled:hover,.btn[disabled]:hover,.btn:disabled:hover{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}@supports (color: color-mix(in oklab,black,black)){.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.dropdown.dropdown-hover:hover .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{cursor:pointer;outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0 0 0)){:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}}.dropdown:is(details) summary::-webkit-details-marker{display:none}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;-moz-column-gap:1rem;column-gap:1rem;row-gap:2.5rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.rating{position:relative;display:inline-flex}.rating :where(input){cursor:pointer;border-radius:0;animation:rating-pop var(--animation-input, .25s) ease-out;height:1.5rem;width:1.5rem;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-bg-opacity: 1}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.steps{display:inline-grid;grid-auto-flow:column;overflow:hidden;overflow-x:auto;counter-reset:step;grid-auto-columns:1fr}.steps .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-columns:auto;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-rows:40px 1fr;place-items:center;text-align:center;min-width:4rem}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table-zebra tbody tr:nth-child(2n) :where(.table-pin-cols tr th){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.textarea{min-height:3rem;flex-shrink:1;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.alert-error{border-color:var(--fallback-er,oklch(var(--er)/.2));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-er,oklch(var(--er)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-border-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale, .97))}@supports not (color: oklch(0 0 0)){.btn{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}.btn-primary{--btn-color: var(--fallback-p)}}@supports (color: color-mix(in oklab,black,black)){.btn-active{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b3)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b3)) / var(--tw-border-opacity, 1)) 90%,black)}.btn-outline.btn-primary.btn-active{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}.btn-outline.btn-secondary.btn-active{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}.btn-outline.btn-accent.btn-active{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}.btn-outline.btn-success.btn-active{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}.btn-outline.btn-info.btn-active{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}.btn-outline.btn-warning.btn-active{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}.btn-outline.btn-error.btn-active{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn-primary{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));outline-color:var(--fallback-p,oklch(var(--p)/1))}@supports (color: oklch(0 0 0)){.btn-primary{--btn-color: var(--p)}}.btn.glass{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{border-color:transparent;background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.btn-link.btn-active{border-color:transparent;background-color:transparent;text-decoration-line:underline}.btn-outline{border-color:currentColor;background-color:transparent;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn-outline.btn-active{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.btn-outline.btn-primary.btn-active{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn-outline.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)))}.btn-outline.btn-secondary.btn-active{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.btn-outline.btn-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.btn-outline.btn-accent.btn-active{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.btn-outline.btn-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity)))}.btn-outline.btn-success.btn-active{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.btn-outline.btn-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.btn-outline.btn-info.btn-active{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.btn-outline.btn-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))}.btn-outline.btn-warning.btn-active{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.btn-outline.btn-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.btn-outline.btn-error.btn-active{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.btn.btn-disabled,.btn[disabled],.btn:disabled{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}.dropdown.dropdown-open .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.footer-title{margin-bottom:.5rem;font-weight:700;text-transform:uppercase;opacity:.6}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input::-webkit-date-and-time-value{text-align:inherit}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join-item:focus{isolation:isolate}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.\!loading{pointer-events:none!important;display:inline-block!important;aspect-ratio:1 / 1!important;width:1.5rem!important;background-color:currentColor!important;-webkit-mask-size:100%!important;mask-size:100%!important;-webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;-webkit-mask-position:center!important;mask-position:center!important;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important;mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}.loading{pointer-events:none;display:inline-block;aspect-ratio:1 / 1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-spinner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-lg{width:2.5rem}:where(.menu li:empty){--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;content:""}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):is(summary):not(.active):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:"";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}.radio:focus{box-shadow:none}.radio:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-image:none;animation:radiomark var(--animation-input, .2s) ease-out;box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}.radio-primary{--chkbg: var(--p);--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)))}.radio-primary:focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}.radio-primary:checked,.radio-primary[aria-checked=true]{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}.rating input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.rating .rating-hidden{width:.5rem;background-color:transparent}.rating input[type=radio]:checked{background-image:none}.rating input:checked~input,.rating input[aria-checked=true]~input{--tw-bg-opacity: .2}.rating input:focus-visible{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;transform:translateY(-.125em)}.rating input:active:focus{animation:none;transform:translateY(-.125em)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}.steps .step:before{top:0;grid-column-start:1;grid-row-start:1;height:.5rem;width:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));content:"";margin-inline-start:-100%}.steps .step:after{content:counter(step);counter-increment:step;z-index:1;position:relative;grid-column-start:1;grid-row-start:1;display:grid;height:2rem;width:2rem;place-items:center;place-self:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.steps .step:first-child:before{content:none}.steps .step[data-content]:after{content:attr(data-content)}.steps .step-neutral+.step-neutral:before,.steps .step-neutral:after{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.steps .step-primary+.step-primary:before,.steps .step-primary:after{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.steps .step-secondary+.step-secondary:before,.steps .step-secondary:after{--tw-bg-opacity: 1;background-color:var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.steps .step-accent+.step-accent:before,.steps .step-accent:after{--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.steps .step-info+.step-info:before{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)))}.steps .step-info:after{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.steps .step-success+.step-success:before{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)))}.steps .step-success:after{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.steps .step-warning+.step-warning:before{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)))}.steps .step-warning:after{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.steps .step-error+.step-error:before{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)))}.steps .step-error:after{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}:is([dir=rtl] .table){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.active,.table-zebra tr.active:nth-child(2n),.table-zebra-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.table :where(thead,tbody) :where(tr:not(:last-child)),.table :where(thead,tbody) :where(tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.textarea-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea-disabled,.textarea:disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea:disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea:disabled::placeholder,.textarea[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.glass,.glass.btn-active{border:none;-webkit-backdrop-filter:blur(var(--glass-blur, 40px));backdrop-filter:blur(var(--glass-blur, 40px));background-color:transparent;background-image:linear-gradient(135deg,rgb(255 255 255 / var(--glass-opacity, 30%)),#0000),linear-gradient(var(--glass-reflex-degree, 100deg),rgb(255 255 255 / var(--glass-reflex-opacity, 10%)) 25%,rgb(0 0 0 / 0%) 25%);box-shadow:0 0 0 1px rgb(255 255 255 / var(--glass-border-opacity, 10%)) inset,0 0 0 2px #0000000d;text-shadow:0 1px rgb(0 0 0 / var(--glass-text-shadow-opacity, 5%))}@media (hover: hover){.glass.btn-active{border:none;-webkit-backdrop-filter:blur(var(--glass-blur, 40px));backdrop-filter:blur(var(--glass-blur, 40px));background-color:transparent;background-image:linear-gradient(135deg,rgb(255 255 255 / var(--glass-opacity, 30%)),#0000),linear-gradient(var(--glass-reflex-degree, 100deg),rgb(255 255 255 / var(--glass-reflex-opacity, 10%)) 25%,rgb(0 0 0 / 0%) 25%);box-shadow:0 0 0 1px rgb(255 255 255 / var(--glass-border-opacity, 10%)) inset,0 0 0 2px #0000000d;text-shadow:0 1px rgb(0 0 0 / var(--glass-text-shadow-opacity, 5%))}}.badge-sm{height:1rem;font-size:.75rem;line-height:1rem;padding-left:.438rem;padding-right:.438rem}.btn-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem}.btn-block{width:100%}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-md){height:3rem;width:3rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.indicator :where(.indicator-item){bottom:auto;inset-inline-end:0px;inset-inline-start:auto;top:0;--tw-translate-y: -50%;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item)){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-start)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-center)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-end)){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){bottom:0;top:auto;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){bottom:50%;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){bottom:auto;top:0;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.select-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:2rem;font-size:.875rem;line-height:2rem}[dir=rtl] .select-sm{padding-left:2rem;padding-right:.75rem}.steps-horizontal .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));place-items:center;text-align:center}.steps-vertical .step{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr))}.textarea-md{padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .toast:where(.toast-center)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.menu-sm :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu-sm :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem}.menu-sm .menu-title{padding:.5rem .75rem}.steps-horizontal .step{grid-template-rows:40px 1fr;grid-template-columns:auto;min-width:4rem}.steps-horizontal .step:before{height:.5rem;width:100%;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));content:"";margin-inline-start:-100%}:is([dir=rtl] .steps-horizontal .step):before{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.steps-vertical .step{gap:.5rem;grid-template-columns:40px 1fr;grid-template-rows:auto;min-height:4rem;justify-items:start}.steps-vertical .step:before{height:100%;width:.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));margin-inline-start:50%}:is([dir=rtl] .steps-vertical .step):before{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.invisible{visibility:hidden}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.z-\[1\]{z-index:1}.m-4{margin:1rem}.mx-0{margin-left:0;margin-right:0}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-28{margin-bottom:7rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-0{height:0px}.h-20{height:5rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-\[400px\]{height:400px}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-1\/12{width:8.333333%}.w-12{width:3rem}.w-2\/5{width:40%}.w-2\/6{width:33.333333%}.w-3\/12{width:25%}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-8\/12{width:66.666667%}.w-80{width:20rem}.w-\[23\%\]{width:23%}.w-\[70\%\]{width:70%}.w-full{width:100%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-box{border-radius:var(--rounded-box, 1rem)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.bg-base-200{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.stroke-current{stroke:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[9px\]{padding:9px}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[15px\]{font-size:15px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-blue-500{caret-color:#3b82f6}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.placeholder\:font-light::-moz-placeholder{font-weight:300}.placeholder\:font-light::placeholder{font-weight:300}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}@media not all and (min-width: 768px){.max-md\:hidden{display:none}}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:ml-4{margin-left:1rem}.sm\:w-1\/12{width:8.333333%}.sm\:w-1\/6{width:16.666667%}.sm\:w-16{width:4rem}.sm\:w-2\/6{width:33.333333%}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mb-8{margin-bottom:2rem}.md\:mt-14{margin-top:3.5rem}.md\:mt-28{margin-top:7rem}.md\:mt-8{margin-top:2rem}.md\:inline{display:inline}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-96{height:24rem}.md\:w-1\/2{width:50%}.md\:w-1\/4{width:25%}.md\:w-2\/5{width:40%}.md\:w-\[30\%\]{width:30%}.md\:w-\[65\%\]{width:65%}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:p-2{padding:.5rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.lg\:w-1\/3{width:33.333333%}.lg\:w-\[90\%\]{width:90%}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width: 1280px){.xl\:inline-block{display:inline-block}} +:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.carousel .control-arrow,.carousel.carousel-slider .control-arrow{transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:""}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{transition:all .15s ease-in;transform:translateZ(0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:#0003}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-moz-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-moz-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:.25;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px #000000e6;background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,.9);color:#fff}.carousel:hover .slide .legend{opacity:1}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color: oklch(0 0 0)){:root{color-scheme:light;--fallback-p: #491eff;--fallback-pc: #d4dbff;--fallback-s: #ff41c7;--fallback-sc: #fff9fc;--fallback-a: #00cfbd;--fallback-ac: #00100d;--fallback-n: #2b3440;--fallback-nc: #d7dde4;--fallback-b1: #ffffff;--fallback-b2: #e5e6e6;--fallback-b3: #e5e6e6;--fallback-bc: #1f2937;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--fallback-p: #7582ff;--fallback-pc: #050617;--fallback-s: #ff71cf;--fallback-sc: #190211;--fallback-a: #00c7b5;--fallback-ac: #000e0c;--fallback-n: #2a323c;--fallback-nc: #a6adbb;--fallback-b1: #1d232a;--fallback-b2: #191e24;--fallback-b3: #15191e;--fallback-bc: #a6adbb;--fallback-in: #00b3f0;--fallback-inc: #000000;--fallback-su: #00ca92;--fallback-suc: #000000;--fallback-wa: #ffc22d;--fallback-wac: #000000;--fallback-er: #ff6f70;--fallback-erc: #000000}}}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .89824 .06192 275.75;--ac: .15352 .0368 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .4912 .3096 275.75;--s: .6971 .329 342.55;--sc: .9871 .0106 342.55;--a: .7676 .184 183.61;--n: .321785 .02476 255.701624;--nc: .894994 .011585 252.096176;--b1: 1 0 0;--b2: .961151 0 0;--b3: .924169 .00108 197.137559;--bc: .278078 .029596 256.847952}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .13138 .0392 275.75;--sc: .1496 .052 342.55;--ac: .14902 .0334 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .6569 .196 275.75;--s: .748 .26 342.55;--a: .7451 .167 183.61;--n: .313815 .021108 254.139175;--nc: .746477 .0216 264.435964;--b1: .253267 .015896 252.417568;--b2: .232607 .013807 253.100675;--b3: .211484 .01165 254.087939;--bc: .746477 .0216 264.435964}}[data-theme=light]{color-scheme:light;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .89824 .06192 275.75;--ac: .15352 .0368 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .4912 .3096 275.75;--s: .6971 .329 342.55;--sc: .9871 .0106 342.55;--a: .7676 .184 183.61;--n: .321785 .02476 255.701624;--nc: .894994 .011585 252.096176;--b1: 1 0 0;--b2: .961151 0 0;--b3: .924169 .00108 197.137559;--bc: .278078 .029596 256.847952}[data-theme=dark]{color-scheme:dark;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .13138 .0392 275.75;--sc: .1496 .052 342.55;--ac: .14902 .0334 183.61;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: .6569 .196 275.75;--s: .748 .26 342.55;--a: .7451 .167 183.61;--n: .313815 .021108 254.139175;--nc: .746477 .0216 264.435964;--b1: .253267 .015896 252.417568;--b2: .232607 .013807 253.100675;--b3: .211484 .01165 254.087939;--bc: .746477 .0216 264.435964}[data-theme=cupcake]{color-scheme:light;--in: .7206 .191 231.6;--su: 64.8% .15 160;--wa: .8471 .199 83.87;--er: .7176 .221 22.18;--pc: .152344 .017892 200.026556;--sc: .15787 .020249 356.29965;--ac: .158762 .029206 78.618794;--nc: .847148 .013247 313.189598;--inc: 0 0 0;--suc: 0 0 0;--wac: 0 0 0;--erc: 0 0 0;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-focus-scale: .95;--border-btn: 1px;--p: .76172 .089459 200.026556;--s: .789351 .101246 356.29965;--a: .793811 .146032 78.618794;--n: .235742 .066235 313.189598;--b1: .977882 .00418 56.375637;--b2: .939822 .007638 61.449292;--b3: .915861 .006811 53.440502;--bc: .235742 .066235 313.189598;--rounded-btn: 1.9rem;--tab-border: 2px;--tab-radius: .7rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.alert{display:grid;width:100%;grid-auto-flow:row;align-content:flex-start;align-items:center;justify-items:center;gap:1rem;text-align:center;border-radius:var(--rounded-box, 1rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));padding:1rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-b2,oklch(var(--b2)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1));background-color:var(--alert-bg)}@media (min-width: 640px){.alert{grid-auto-flow:column;grid-template-columns:auto minmax(auto,1fr);justify-items:start;text-align:start}}.avatar{position:relative;display:inline-flex}.avatar>div{display:block;aspect-ratio:1 / 1;overflow:hidden}.avatar img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;height:1.25rem;font-size:.875rem;line-height:1.25rem;width:-moz-fit-content;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-radius:var(--rounded-badge, 1.9rem);border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}@media (hover:hover){.link-hover:hover{text-decoration-line:underline}.label a:hover{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.radio-primary:hover{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)))}.table tr.hover:hover,.table tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.hover:hover,.table-zebra tr.hover:nth-child(2n):hover{--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}}.btn{display:inline-flex;height:3rem;min-height:3rem;flex-shrink:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-radius:var(--rounded-btn, .5rem);border-color:transparent;border-color:oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity));padding-left:1rem;padding-right:1rem;text-align:center;font-size:.875rem;line-height:1em;gap:.5rem;font-weight:600;text-decoration-line:none;transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1);border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;transition-property:color,background-color,border-color,opacity,box-shadow,transform;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:var(--fallback-bc,oklch(var(--bc)/1));background-color:oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity));--tw-bg-opacity: 1;--tw-border-opacity: 1}.btn-disabled,.btn[disabled],.btn:disabled{pointer-events:none}.btn-square{height:3rem;width:3rem;padding:0}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}:where(.btn:is(input[type=checkbox])),:where(.btn:is(input[type=radio])){width:auto;-webkit-appearance:none;-moz-appearance:none;appearance:none}.btn:is(input[type=checkbox]):after,.btn:is(input[type=radio]):after{--tw-content: attr(aria-label);content:var(--tw-content)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;border-radius:var(--rounded-box, 1rem);--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));opacity:.75}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;-o-object-fit:cover;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.checkbox{flex-shrink:0;--chkbg: var(--fallback-bc,oklch(var(--bc)/1));--chkfg: var(--fallback-b1,oklch(var(--b1)/1));height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.dropdown{position:relative;display:inline-block}.dropdown>*:not(summary):focus{outline:2px solid transparent;outline-offset:2px}.dropdown .dropdown-content{position:absolute}.dropdown:is(:not(details)) .dropdown-content{visibility:hidden;opacity:0;transform-origin:top;--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s}.dropdown-end .dropdown-content{inset-inline-end:0px}.dropdown-left .dropdown-content{bottom:auto;inset-inline-end:100%;top:0;transform-origin:right}.dropdown-right .dropdown-content{bottom:auto;inset-inline-start:100%;top:0;transform-origin:left}.dropdown-bottom .dropdown-content{bottom:auto;top:100%;transform-origin:top}.dropdown-top .dropdown-content{bottom:100%;top:auto;transform-origin:bottom}.dropdown-end.dropdown-right .dropdown-content,.dropdown-end.dropdown-left .dropdown-content{bottom:0;top:auto}.dropdown.dropdown-open .dropdown-content,.dropdown:not(.dropdown-hover):focus .dropdown-content,.dropdown:focus-within .dropdown-content{visibility:visible;opacity:1}@media (hover: hover){.dropdown.dropdown-hover:hover .dropdown-content{visibility:visible;opacity:1}.btm-nav>*.disabled:hover,.btm-nav>*[disabled]:hover{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:hover{--tw-border-opacity: 1;border-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn:hover{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b2)) / var(--tw-border-opacity, 1)) 90%,black)}}@supports not (color: oklch(0 0 0)){.btn:hover{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}}.btn.glass:hover{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost:hover{border-color:transparent}@supports (color: oklch(0 0 0)){.btn-ghost:hover{background-color:var(--fallback-bc,oklch(var(--bc)/.2))}}.btn-outline:hover{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary:hover{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-primary:hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.btn-outline.btn-secondary:hover{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-secondary:hover{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}}.btn-outline.btn-accent:hover{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-accent:hover{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}}.btn-outline.btn-success:hover{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-success:hover{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}}.btn-outline.btn-info:hover{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-info:hover{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}}.btn-outline.btn-warning:hover{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-warning:hover{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}}.btn-outline.btn-error:hover{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}@supports (color: color-mix(in oklab,black,black)){.btn-outline.btn-error:hover{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn-disabled:hover,.btn[disabled]:hover,.btn:disabled:hover{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}@supports (color: color-mix(in oklab,black,black)){.btn:is(input[type=checkbox]:checked):hover,.btn:is(input[type=radio]:checked):hover{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}}.dropdown.dropdown-hover:hover .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{cursor:pointer;outline:2px solid transparent;outline-offset:2px}@supports (color: oklch(0 0 0)){:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(.active):hover,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(.active):hover{background-color:var(--fallback-bc,oklch(var(--bc)/.1))}}}.dropdown:is(details) summary::-webkit-details-marker{display:none}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;-moz-column-gap:1rem;column-gap:1rem;row-gap:2.5rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.form-control{display:flex;flex-direction:column}.label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.indicator{position:relative;display:inline-flex;width:-moz-max-content;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));white-space:nowrap}.input{flex-shrink:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.join{display:inline-flex;align-items:stretch;border-radius:var(--rounded-btn, .5rem)}.join :where(.join-item){border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:not(:first-child):not(:last-child),.join *:not(:first-child):not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0;border-end-start-radius:0;border-start-start-radius:0}.join .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .join-item{border-start-end-radius:0;border-end-end-radius:0}.join .dropdown .join-item:first-child:not(:last-child),.join *:first-child:not(:last-child) .dropdown .join-item{border-start-end-radius:inherit;border-end-end-radius:inherit}.join :where(.join-item:first-child:not(:last-child)),.join :where(*:first-child:not(:last-child) .join-item){border-end-start-radius:inherit;border-start-start-radius:inherit}.join .join-item:last-child:not(:first-child),.join *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0}.join :where(.join-item:last-child:not(:first-child)),.join :where(*:last-child:not(:first-child) .join-item){border-start-end-radius:inherit;border-end-end-radius:inherit}@supports not selector(:has(*)){:where(.join *){border-radius:inherit}}@supports selector(:has(*)){:where(.join *:has(.join-item)){border-radius:inherit}}.link{cursor:pointer;text-decoration-line:underline}.link-hover{text-decoration-line:none}.menu{display:flex;flex-direction:column;flex-wrap:wrap;font-size:.875rem;line-height:1.25rem;padding:.5rem}.menu :where(li ul){position:relative;white-space:nowrap;margin-inline-start:1rem;padding-inline-start:.5rem}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){display:grid;grid-auto-flow:column;align-content:flex-start;align-items:center;gap:.5rem;grid-auto-columns:minmax(auto,max-content) auto max-content;-webkit-user-select:none;-moz-user-select:none;user-select:none}.menu li.disabled{cursor:not-allowed;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--fallback-bc,oklch(var(--bc)/.3))}.menu :where(li>.menu-dropdown:not(.menu-dropdown-show)){display:none}:where(.menu li){position:relative;display:flex;flex-shrink:0;flex-direction:column;flex-wrap:wrap;align-items:stretch}:where(.menu li) .badge{justify-self:end}.radio{flex-shrink:0;--chkbg: var(--bc);height:1.5rem;width:1.5rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:9999px;border-width:1px;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-border-opacity: .2}.rating{position:relative;display:inline-flex}.rating :where(input){cursor:pointer;border-radius:0;animation:rating-pop var(--animation-input, .25s) ease-out;height:1.5rem;width:1.5rem;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-bg-opacity: 1}.select{display:inline-flex;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:3rem;min-height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)));background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16.1px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.steps{display:inline-grid;grid-auto-flow:column;overflow:hidden;overflow-x:auto;counter-reset:step;grid-auto-columns:1fr}.steps .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-columns:auto;grid-template-rows:repeat(2,minmax(0,1fr));grid-template-rows:40px 1fr;place-items:center;text-align:center;min-width:4rem}.table{position:relative;width:100%;border-radius:var(--rounded-box, 1rem);text-align:left;font-size:.875rem;line-height:1.25rem}.table :where(.table-pin-rows thead tr){position:sticky;top:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-rows tfoot tr){position:sticky;bottom:0;z-index:1;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table :where(.table-pin-cols tr th){position:sticky;left:0;right:0;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.table-zebra tbody tr:nth-child(2n) :where(.table-pin-cols tr th){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.textarea{min-height:3rem;flex-shrink:1;padding:.5rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2;border-radius:var(--rounded-btn, .5rem);border-width:1px;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.toast{position:fixed;display:flex;min-width:-moz-fit-content;min-width:fit-content;flex-direction:column;white-space:nowrap;gap:.5rem;padding:1rem}.alert-error{border-color:var(--fallback-er,oklch(var(--er)/.2));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)));--alert-bg: var(--fallback-er,oklch(var(--er)/1));--alert-bg-mix: var(--fallback-b1,oklch(var(--b1)/1))}.avatar-group :where(.avatar){overflow:hidden;border-radius:9999px;border-width:4px;--tw-border-opacity: 1;border-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-border-opacity)))}.btm-nav>*.disabled,.btm-nav>*[disabled]{pointer-events:none;--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:button-pop 0s ease-out;transform:scale(var(--btn-focus-scale, .97))}@supports not (color: oklch(0 0 0)){.btn{background-color:var(--btn-color, var(--fallback-b2));border-color:var(--btn-color, var(--fallback-b2))}.btn-primary{--btn-color: var(--fallback-p)}}@supports (color: color-mix(in oklab,black,black)){.btn-active{background-color:color-mix(in oklab,oklch(var(--btn-color, var(--b3)) / var(--tw-bg-opacity, 1)) 90%,black);border-color:color-mix(in oklab,oklch(var(--btn-color, var(--b3)) / var(--tw-border-opacity, 1)) 90%,black)}.btn-outline.btn-primary.btn-active{background-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-p,oklch(var(--p)/1)) 90%,black)}.btn-outline.btn-secondary.btn-active{background-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-s,oklch(var(--s)/1)) 90%,black)}.btn-outline.btn-accent.btn-active{background-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-a,oklch(var(--a)/1)) 90%,black)}.btn-outline.btn-success.btn-active{background-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-su,oklch(var(--su)/1)) 90%,black)}.btn-outline.btn-info.btn-active{background-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-in,oklch(var(--in)/1)) 90%,black)}.btn-outline.btn-warning.btn-active{background-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-wa,oklch(var(--wa)/1)) 90%,black)}.btn-outline.btn-error.btn-active{background-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black);border-color:color-mix(in oklab,var(--fallback-er,oklch(var(--er)/1)) 90%,black)}}.btn:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px}.btn-primary{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)));outline-color:var(--fallback-p,oklch(var(--p)/1))}@supports (color: oklch(0 0 0)){.btn-primary{--btn-color: var(--p)}}.btn.glass{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-color:currentColor}.btn-ghost.btn-active{border-color:transparent;background-color:var(--fallback-bc,oklch(var(--bc)/.2))}.btn-link.btn-active{border-color:transparent;background-color:transparent;text-decoration-line:underline}.btn-outline{border-color:currentColor;background-color:transparent;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.btn-outline.btn-active{--tw-border-opacity: 1;border-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-b1,oklch(var(--b1)/var(--tw-text-opacity)))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:var(--fallback-p,oklch(var(--p)/var(--tw-text-opacity)))}.btn-outline.btn-primary.btn-active{--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn-outline.btn-secondary{--tw-text-opacity: 1;color:var(--fallback-s,oklch(var(--s)/var(--tw-text-opacity)))}.btn-outline.btn-secondary.btn-active{--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.btn-outline.btn-accent{--tw-text-opacity: 1;color:var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity)))}.btn-outline.btn-accent.btn-active{--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.btn-outline.btn-success{--tw-text-opacity: 1;color:var(--fallback-su,oklch(var(--su)/var(--tw-text-opacity)))}.btn-outline.btn-success.btn-active{--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.btn-outline.btn-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.btn-outline.btn-info.btn-active{--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.btn-outline.btn-warning{--tw-text-opacity: 1;color:var(--fallback-wa,oklch(var(--wa)/var(--tw-text-opacity)))}.btn-outline.btn-warning.btn-active{--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.btn-outline.btn-error{--tw-text-opacity: 1;color:var(--fallback-er,oklch(var(--er)/var(--tw-text-opacity)))}.btn-outline.btn-error.btn-active{--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}.btn.btn-disabled,.btn[disabled],.btn:disabled{--tw-border-opacity: 0;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-bg-opacity: .2;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));--tw-text-opacity: .2}.btn:is(input[type=checkbox]:checked),.btn:is(input[type=radio]:checked){--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.btn:is(input[type=checkbox]:checked):focus-visible,.btn:is(input[type=radio]:checked):focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .98))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered{border-width:1px;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.checkbox:focus{box-shadow:none}.checkbox:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-color:var(--chkbg);background-image:linear-gradient(-45deg,transparent 65%,var(--chkbg) 65.99%),linear-gradient(45deg,transparent 75%,var(--chkbg) 75.99%),linear-gradient(-45deg,var(--chkbg) 40%,transparent 40.99%),linear-gradient(45deg,var(--chkbg) 30%,var(--chkfg) 30.99%,var(--chkfg) 40%,transparent 40.99%),linear-gradient(-45deg,var(--chkfg) 50%,var(--chkbg) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-out;background-image:linear-gradient(90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(-90deg,transparent 80%,var(--chkbg) 80%),linear-gradient(0deg,var(--chkbg) 43%,var(--chkfg) 43%,var(--chkfg) 57%,var(--chkbg) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}.dropdown.dropdown-open .dropdown-content,.dropdown:focus .dropdown-content,.dropdown:focus-within .dropdown-content{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.footer-title{margin-bottom:.5rem;font-weight:700;text-transform:uppercase;opacity:.6}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.input input:focus{outline:2px solid transparent;outline-offset:2px}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input:focus,.input:focus-within{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.input-disabled,.input:disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));color:var(--fallback-bc,oklch(var(--bc)/.4))}.input-disabled::-moz-placeholder,.input:disabled::-moz-placeholder,.input[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input-disabled::placeholder,.input:disabled::placeholder,.input[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.input::-webkit-date-and-time-value{text-align:inherit}.join>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.join-item:focus{isolation:isolate}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.\!loading{pointer-events:none!important;display:inline-block!important;aspect-ratio:1 / 1!important;width:1.5rem!important;background-color:currentColor!important;-webkit-mask-size:100%!important;mask-size:100%!important;-webkit-mask-repeat:no-repeat!important;mask-repeat:no-repeat!important;-webkit-mask-position:center!important;mask-position:center!important;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important;mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}.loading{pointer-events:none;display:inline-block;aspect-ratio:1 / 1;width:1.5rem;background-color:currentColor;-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-spinner{-webkit-mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E");mask-image:url("data:image/svg+xml,%3Csvg width='24' height='24' stroke='%23000' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.spinner_V8m1%7Btransform-origin:center;animation:spinner_zKoa 2s linear infinite%7D.spinner_V8m1 circle%7Bstroke-linecap:round;animation:spinner_YpZS 1.5s ease-out infinite%7D%40keyframes spinner_zKoa%7B100%25%7Btransform:rotate(360deg)%7D%7D%40keyframes spinner_YpZS%7B0%25%7Bstroke-dasharray:0 150;stroke-dashoffset:0%7D47.5%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-16%7D95%25%2C100%25%7Bstroke-dasharray:42 150;stroke-dashoffset:-59%7D%7D%3C%2Fstyle%3E%3Cg class='spinner_V8m1'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='none' stroke-width='3'%3E%3C%2Fcircle%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.loading-lg{width:2.5rem}:where(.menu li:empty){--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;margin:.5rem 1rem;height:1px}.menu :where(li ul):before{position:absolute;bottom:.75rem;inset-inline-start:0px;top:.75rem;width:1px;--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));opacity:.1;content:""}.menu :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.5rem 1rem;text-align:start;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.2s;text-wrap:balance}:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>*:not(ul):not(details):not(.menu-title)):is(summary):not(.active):focus-visible,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active).focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):not(summary):not(.active):focus,:where(.menu li:not(.menu-title):not(.disabled)>details>summary:not(.menu-title)):is(summary):not(.active):focus-visible{cursor:pointer;background-color:var(--fallback-bc,oklch(var(--bc)/.1));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));outline:2px solid transparent;outline-offset:2px}.menu li>*:not(ul):not(.menu-title):not(details):active,.menu li>*:not(ul):not(.menu-title):not(details).active,.menu li>details>summary:active{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.menu :where(li>details>summary)::-webkit-details-marker{display:none}.menu :where(li>details>summary):after,.menu :where(li>.menu-dropdown-toggle):after{justify-self:end;display:block;margin-top:-.5rem;height:.5rem;width:.5rem;transform:rotate(45deg);transition-property:transform,margin-top;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);content:"";transform-origin:75% 75%;box-shadow:2px 2px;pointer-events:none}.menu :where(li>details[open]>summary):after,.menu :where(li>.menu-dropdown-toggle.menu-dropdown-show):after{transform:rotate(225deg);margin-top:0}.mockup-browser .mockup-browser-toolbar .input{position:relative;margin-left:auto;margin-right:auto;display:block;height:1.75rem;width:24rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));padding-left:2rem;direction:ltr}.mockup-browser .mockup-browser-toolbar .input:before{content:"";position:absolute;left:.5rem;top:50%;aspect-ratio:1 / 1;height:.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:2px;border-color:currentColor;opacity:.6}.mockup-browser .mockup-browser-toolbar .input:after{content:"";position:absolute;left:1.25rem;top:50%;height:.5rem;--tw-translate-y: 25%;--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-radius:9999px;border-width:1px;border-color:currentColor;opacity:.6}@keyframes modal-pop{0%{opacity:0}}@keyframes progress-loading{50%{background-position-x:-115%}}.radio:focus{box-shadow:none}.radio:focus-visible{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/1))}.radio:checked,.radio[aria-checked=true]{--tw-bg-opacity: 1;background-color:var(--fallback-bc,oklch(var(--bc)/var(--tw-bg-opacity)));background-image:none;animation:radiomark var(--animation-input, .2s) ease-out;box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}.radio-primary{--chkbg: var(--p);--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)))}.radio-primary:focus-visible{outline-color:var(--fallback-p,oklch(var(--p)/1))}.radio-primary:checked,.radio-primary[aria-checked=true]{--tw-border-opacity: 1;border-color:var(--fallback-p,oklch(var(--p)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.radio:disabled{cursor:not-allowed;opacity:.2}@keyframes radiomark{0%{box-shadow:0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 12px var(--fallback-b1,oklch(var(--b1)/1)) inset}50%{box-shadow:0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 3px var(--fallback-b1,oklch(var(--b1)/1)) inset}to{box-shadow:0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset,0 0 0 4px var(--fallback-b1,oklch(var(--b1)/1)) inset}}.rating input{-moz-appearance:none;appearance:none;-webkit-appearance:none}.rating .rating-hidden{width:.5rem;background-color:transparent}.rating input[type=radio]:checked{background-image:none}.rating input:checked~input,.rating input[aria-checked=true]~input{--tw-bg-opacity: .2}.rating input:focus-visible{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1);transition-duration:.3s;transform:translateY(-.125em)}.rating input:active:focus{animation:none;transform:translateY(-.125em)}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.select-disabled,.select:disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: .2}.select-disabled::-moz-placeholder,.select:disabled::-moz-placeholder,.select[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-disabled::placeholder,.select:disabled::placeholder,.select[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}@keyframes skeleton{0%{background-position:150%}to{background-position:-50%}}.steps .step:before{top:0;grid-column-start:1;grid-row-start:1;height:.5rem;width:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)));content:"";margin-inline-start:-100%}.steps .step:after{content:counter(step);counter-increment:step;z-index:1;position:relative;grid-column-start:1;grid-row-start:1;display:grid;height:2rem;width:2rem;place-items:center;place-self:center;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.steps .step:first-child:before{content:none}.steps .step[data-content]:after{content:attr(data-content)}.steps .step-neutral+.step-neutral:before,.steps .step-neutral:after{--tw-bg-opacity: 1;background-color:var(--fallback-n,oklch(var(--n)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-nc,oklch(var(--nc)/var(--tw-text-opacity)))}.steps .step-primary+.step-primary:before,.steps .step-primary:after{--tw-bg-opacity: 1;background-color:var(--fallback-p,oklch(var(--p)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-pc,oklch(var(--pc)/var(--tw-text-opacity)))}.steps .step-secondary+.step-secondary:before,.steps .step-secondary:after{--tw-bg-opacity: 1;background-color:var(--fallback-s,oklch(var(--s)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-sc,oklch(var(--sc)/var(--tw-text-opacity)))}.steps .step-accent+.step-accent:before,.steps .step-accent:after{--tw-bg-opacity: 1;background-color:var(--fallback-a,oklch(var(--a)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-ac,oklch(var(--ac)/var(--tw-text-opacity)))}.steps .step-info+.step-info:before{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)))}.steps .step-info:after{--tw-bg-opacity: 1;background-color:var(--fallback-in,oklch(var(--in)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-inc,oklch(var(--inc)/var(--tw-text-opacity)))}.steps .step-success+.step-success:before{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)))}.steps .step-success:after{--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-suc,oklch(var(--suc)/var(--tw-text-opacity)))}.steps .step-warning+.step-warning:before{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)))}.steps .step-warning:after{--tw-bg-opacity: 1;background-color:var(--fallback-wa,oklch(var(--wa)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-wac,oklch(var(--wac)/var(--tw-text-opacity)))}.steps .step-error+.step-error:before{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)))}.steps .step-error:after{--tw-bg-opacity: 1;background-color:var(--fallback-er,oklch(var(--er)/var(--tw-bg-opacity)));--tw-text-opacity: 1;color:var(--fallback-erc,oklch(var(--erc)/var(--tw-text-opacity)))}:is([dir=rtl] .table){text-align:right}.table :where(th,td){padding:.75rem 1rem;vertical-align:middle}.table tr.active,.table tr.active:nth-child(2n),.table-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.table-zebra tr.active,.table-zebra tr.active:nth-child(2n),.table-zebra-zebra tbody tr:nth-child(2n){--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)))}.table :where(thead,tbody) :where(tr:not(:last-child)),.table :where(thead,tbody) :where(tr:first-child:last-child){border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)))}.table :where(thead,tfoot){white-space:nowrap;font-size:.75rem;line-height:1rem;font-weight:700;color:var(--fallback-bc,oklch(var(--bc)/.6))}.textarea-bordered{border-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea:focus{box-shadow:none;border-color:var(--fallback-bc,oklch(var(--bc)/.2));outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:var(--fallback-bc,oklch(var(--bc)/.2))}.textarea-disabled,.textarea:disabled,.textarea[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-border-opacity)));--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)));--tw-text-opacity: .2}.textarea-disabled::-moz-placeholder,.textarea:disabled::-moz-placeholder,.textarea[disabled]::-moz-placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.textarea-disabled::placeholder,.textarea:disabled::placeholder,.textarea[disabled]::placeholder{color:var(--fallback-bc,oklch(var(--bc)/var(--tw-placeholder-opacity)));--tw-placeholder-opacity: .2}.toast>*{animation:toast-pop .25s ease-out}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.glass,.glass.btn-active{border:none;-webkit-backdrop-filter:blur(var(--glass-blur, 40px));backdrop-filter:blur(var(--glass-blur, 40px));background-color:transparent;background-image:linear-gradient(135deg,rgb(255 255 255 / var(--glass-opacity, 30%)),#0000),linear-gradient(var(--glass-reflex-degree, 100deg),rgb(255 255 255 / var(--glass-reflex-opacity, 10%)) 25%,rgb(0 0 0 / 0%) 25%);box-shadow:0 0 0 1px rgb(255 255 255 / var(--glass-border-opacity, 10%)) inset,0 0 0 2px #0000000d;text-shadow:0 1px rgb(0 0 0 / var(--glass-text-shadow-opacity, 5%))}@media (hover: hover){.glass.btn-active{border:none;-webkit-backdrop-filter:blur(var(--glass-blur, 40px));backdrop-filter:blur(var(--glass-blur, 40px));background-color:transparent;background-image:linear-gradient(135deg,rgb(255 255 255 / var(--glass-opacity, 30%)),#0000),linear-gradient(var(--glass-reflex-degree, 100deg),rgb(255 255 255 / var(--glass-reflex-opacity, 10%)) 25%,rgb(0 0 0 / 0%) 25%);box-shadow:0 0 0 1px rgb(255 255 255 / var(--glass-border-opacity, 10%)) inset,0 0 0 2px #0000000d;text-shadow:0 1px rgb(0 0 0 / var(--glass-text-shadow-opacity, 5%))}}.badge-sm{height:1rem;font-size:.75rem;line-height:1rem;padding-left:.438rem;padding-right:.438rem}.btn-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:.75rem;font-size:.875rem}.btn-block{width:100%}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-md){height:3rem;width:3rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.indicator :where(.indicator-item){bottom:auto;inset-inline-end:0px;inset-inline-start:auto;top:0;--tw-translate-y: -50%;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item)){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-start)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-center)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .indicator :where(.indicator-item.indicator-end)){--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){bottom:0;top:auto;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){bottom:50%;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){bottom:auto;top:0;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.join.join-vertical{flex-direction:column}.join.join-vertical .join-item:first-child:not(:last-child),.join.join-vertical *:first-child:not(:last-child) .join-item{border-end-start-radius:0;border-end-end-radius:0;border-start-start-radius:inherit;border-start-end-radius:inherit}.join.join-vertical .join-item:last-child:not(:first-child),.join.join-vertical *:last-child:not(:first-child) .join-item{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-end-end-radius:inherit}.join.join-horizontal{flex-direction:row}.join.join-horizontal .join-item:first-child:not(:last-child),.join.join-horizontal *:first-child:not(:last-child) .join-item{border-end-end-radius:0;border-start-end-radius:0;border-end-start-radius:inherit;border-start-start-radius:inherit}.join.join-horizontal .join-item:last-child:not(:first-child),.join.join-horizontal *:last-child:not(:first-child) .join-item{border-end-start-radius:0;border-start-start-radius:0;border-end-end-radius:inherit;border-start-end-radius:inherit}.select-sm{height:2rem;min-height:2rem;padding-left:.75rem;padding-right:2rem;font-size:.875rem;line-height:2rem}[dir=rtl] .select-sm{padding-left:2rem;padding-right:.75rem}.steps-horizontal .step{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));place-items:center;text-align:center}.steps-vertical .step{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(1,minmax(0,1fr))}.textarea-md{padding:.75rem 1rem;font-size:.875rem;line-height:1.25rem;line-height:2}:where(.toast){bottom:0;inset-inline-end:0px;inset-inline-start:auto;top:auto;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-start){inset-inline-end:auto;inset-inline-start:0px;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-center){inset-inline-end:50%;inset-inline-start:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:is([dir=rtl] .toast:where(.toast-center)){--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-end){inset-inline-end:0px;inset-inline-start:auto;--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-bottom){bottom:0;top:auto;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-middle){bottom:auto;top:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.toast:where(.toast-top){bottom:auto;top:0;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.avatar.online:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-su,oklch(var(--su)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.avatar.offline:before{content:"";position:absolute;z-index:10;display:block;border-radius:9999px;--tw-bg-opacity: 1;background-color:var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity)));outline-style:solid;outline-width:2px;outline-color:var(--fallback-b1,oklch(var(--b1)/1));width:15%;height:15%;top:7%;right:7%}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.join.join-vertical>:where(*:not(:first-child)){margin-left:0;margin-right:0;margin-top:-1px}.join.join-horizontal>:where(*:not(:first-child)){margin-top:0;margin-bottom:0;margin-inline-start:-1px}.menu-sm :where(li:not(.menu-title)>*:not(ul):not(details):not(.menu-title)),.menu-sm :where(li:not(.menu-title)>details>summary:not(.menu-title)){border-radius:var(--rounded-btn, .5rem);padding:.25rem .75rem;font-size:.875rem;line-height:1.25rem}.menu-sm .menu-title{padding:.5rem .75rem}.steps-horizontal .step{grid-template-rows:40px 1fr;grid-template-columns:auto;min-width:4rem}.steps-horizontal .step:before{height:.5rem;width:100%;--tw-translate-x: 0px;--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));content:"";margin-inline-start:-100%}:is([dir=rtl] .steps-horizontal .step):before{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.steps-vertical .step{gap:.5rem;grid-template-columns:40px 1fr;grid-template-rows:auto;min-height:4rem;justify-items:start}.steps-vertical .step:before{height:100%;width:.5rem;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));margin-inline-start:50%}:is([dir=rtl] .steps-vertical .step):before{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.invisible{visibility:hidden}.relative{position:relative}.sticky{position:sticky}.top-0{top:0}.z-10{z-index:10}.z-\[1\]{z-index:1}.m-4{margin:1rem}.mx-0{margin-left:0;margin-right:0}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-28{margin-bottom:7rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-0{height:0px}.h-12{height:3rem}.h-20{height:5rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-\[400px\]{height:400px}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-1\/12{width:8.333333%}.w-12{width:3rem}.w-2\/5{width:40%}.w-2\/6{width:33.333333%}.w-3\/12{width:25%}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-8\/12{width:66.666667%}.w-80{width:20rem}.w-\[23\%\]{width:23%}.w-\[70\%\]{width:70%}.w-full{width:100%}.max-w-md{max-width:28rem}.max-w-xs{max-width:20rem}.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-8{gap:2rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-box{border-radius:var(--rounded-box, 1rem)}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity)))}.bg-base-200{--tw-bg-opacity: 1;background-color:var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity)))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-slate-600{--tw-bg-opacity: 1;background-color:rgb(71 85 105 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity))}.stroke-current{stroke:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[9px\]{padding:9px}.px-16{padding-left:4rem;padding-right:4rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-32{padding-top:8rem;padding-bottom:8rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.align-top{vertical-align:top}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[15px\]{font-size:15px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-base-content{--tw-text-opacity: 1;color:var(--fallback-bc,oklch(var(--bc)/var(--tw-text-opacity)))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-info{--tw-text-opacity: 1;color:var(--fallback-in,oklch(var(--in)/var(--tw-text-opacity)))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-slate-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.caret-blue-500{caret-color:#3b82f6}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-150{transition-duration:.15s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.placeholder\:font-light::-moz-placeholder{font-weight:300}.placeholder\:font-light::placeholder{font-weight:300}.placeholder\:text-gray-600::-moz-placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.placeholder\:text-gray-600::placeholder{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity))}@media not all and (min-width: 768px){.max-md\:hidden{display:none}}@media (min-width: 640px){.sm\:mb-0{margin-bottom:0}.sm\:ml-4{margin-left:1rem}.sm\:w-1\/12{width:8.333333%}.sm\:w-1\/6{width:16.666667%}.sm\:w-16{width:4rem}.sm\:w-2\/6{width:33.333333%}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:text-base{font-size:1rem;line-height:1.5rem}}@media (min-width: 768px){.md\:mb-8{margin-bottom:2rem}.md\:mt-14{margin-top:3.5rem}.md\:mt-28{margin-top:7rem}.md\:mt-8{margin-top:2rem}.md\:inline{display:inline}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-96{height:24rem}.md\:w-1\/2{width:50%}.md\:w-1\/4{width:25%}.md\:w-2\/5{width:40%}.md\:w-\[30\%\]{width:30%}.md\:w-\[65\%\]{width:65%}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:p-2{padding:.5rem}.md\:px-16{padding-left:4rem;padding-right:4rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:py-3{padding-top:.75rem;padding-bottom:.75rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.lg\:w-1\/3{width:33.333333%}.lg\:w-\[90\%\]{width:90%}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:px-16{padding-left:4rem;padding-right:4rem}}@media (min-width: 1280px){.xl\:inline-block{display:inline-block}} diff --git a/frontend/dist/favicon.ico b/frontend/dist/favicon.ico index 5382fb3..76ca3ef 100644 Binary files a/frontend/dist/favicon.ico and b/frontend/dist/favicon.ico differ diff --git a/frontend/dist/images/logo_1.png b/frontend/dist/images/logo_1.png new file mode 100644 index 0000000..ac2009d Binary files /dev/null and b/frontend/dist/images/logo_1.png differ diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 3b9353d..7cb89b8 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -3,10 +3,10 @@ - + Blizzr - - + +