diff --git a/docs/angular/index.html b/docs/angular/index.html index 1b1337192..94c71bb78 100644 --- a/docs/angular/index.html +++ b/docs/angular/index.html @@ -10,5 +10,5 @@ - + diff --git a/docs/angular/main-OIU5BTJR.js b/docs/angular/main-Y44URTJ6.js similarity index 87% rename from docs/angular/main-OIU5BTJR.js rename to docs/angular/main-Y44URTJ6.js index 241f3cc32..1490f69d1 100644 --- a/docs/angular/main-OIU5BTJR.js +++ b/docs/angular/main-Y44URTJ6.js @@ -1 +1 @@ -import{$ as Kn,$a as sr,A as qe,Aa as z,B as F,Ba as I,C as St,D as $n,E as zn,F as Fn,Fa as Jn,G as j,H as Hn,I as k,Ia as se,Ja as Qn,K as M,L as C,Ma as Xn,N as Bn,Na as er,O as Mt,Oa as B,P as D,Q as b,R as g,Ra as We,S as we,Sa as tr,T as H,Ta as It,Ua as nr,V as Vn,Va as Pt,W as qn,Wa as xt,Xa as rr,Z as kt,Za as Nt,_ as Rt,_a as ir,a as h,aa as Ke,ab as N,b as R,ba as Y,bb as jt,c as xn,ca as Et,cb as Ut,d as Nn,da as Gn,db as Ze,e as vt,ea as Tt,eb as ar,f as yt,fa as Wn,g as W,ga as Ce,h as T,ha as At,i as Z,ia as be,j as x,ja as Ge,jb as or,k as f,kb as Lt,l as ve,la as Zn,lb as lr,m as jn,n as Un,na as Dt,o as w,oa as Se,p as wt,q as A,qa as Ot,r as Ln,ra as Me,s as Ct,sa as $,u as te,v as ne,va as ie,w as ye,x as bt,xa as Yn,y as re,z as _n,za as O}from"./chunk-LTBXVXDY.js";var zt=class extends sr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ft=class n extends zt{static makeCurrent(){ir(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=ci();return i==null?null:ui(i)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ar(document.cookie,e)}},ke=null;function ci(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var di=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ht=new D("EventManagerPlugins"),hr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(a=>a.supports(t)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b($))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},_t="ng-app-id",pr=(()=>{let e=class e{constructor(t,r,s,a={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Lt(a),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${_t}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let a=s.get(t);return a.usage+=r,a.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,a=s?.get(r);if(a?.parentNode===t)return s.delete(r),a.removeAttribute(_t),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(_t,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),a=this.styleRef,o=a.get(r)?.elements;o?o.push(s):a.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(b(N),b(Tt),b(At,8),b(Ce))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),$t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Vt=/%COMP%/g,fr="%COMP%",hi=`_nghost-${fr}`,pi=`_ngcontent-${fr}`,fi=!0,gi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>fi});function mi(n){return pi.replace(Vt,n)}function vi(n){return hi.replace(Vt,n)}function gr(n,e){return e.map(i=>i.replace(Vt,n))}var cr=(()=>{let e=class e{constructor(t,r,s,a,o,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Lt(c),this.defaultRenderer=new Re(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=R(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ee&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:a=new Je(l,d,r,this.appId,p,o,c,v);break;case we.ShadowDom:return new Bt(l,d,t,r,o,c,this.nonce,v);default:a=new Ee(l,d,r,p,o,c,v);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(hr),b(pr),b(Tt),b(gi),b(N),b(Ce),b($),b(At))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Re=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS($t[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ur(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(ur(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new M(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=$t[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=$t[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(be.DashCase|be.Important)?e.style.setProperty(i,t,r&be.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&be.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=Nt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function ur(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Bt=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=gr(r.id,r.styles);for(let d of l){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ee=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?gr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ee{constructor(e,i,t,r,s,a,o,c){let l=r+"-"+t.id;super(e,i,t,s,a,o,c,l),this.contentAttr=mi(l),this.hostAttr=vi(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},yi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),dr=["alt","control","meta","shift"],wi={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let a=e.parseEventName(r),o=e.eventCallback(a.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nt().onAndCancel(t,a.domEventName,o))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let a=e._normalizeKey(r.pop()),o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),dr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),o+=d+".")}),o+=a,r.length!=0||a.length===0)return null;let l={};return l.domEventName=s,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let s=wi[t.key]||t.key,a="";return r.indexOf("code.")>-1&&(s=t.code,a="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),dr.forEach(o=>{if(o!==s){let c=Ci[o];c(t)&&(a+=o+".")}}),a+=s,a===r)}static eventCallback(t,r,s){return a=>{e.matchEventFullKeyCode(a,t)&&s.runGuarded(()=>r(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function mr(n,e){return rr(h({rootComponent:n},Si(e)))}function Si(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:Ei}}function Mi(){Ft.makeCurrent()}function ki(){return new Dt}function Ri(){return Gn(document),document}var Ei=[{provide:Ce,useValue:or},{provide:Wn,useValue:Mi,multi:!0},{provide:N,useFactory:Ri,deps:[]}];var Ti=[{provide:Kn,useValue:"root"},{provide:Dt,useFactory:ki,deps:[]},{provide:Ht,useClass:yi,multi:!0,deps:[N,$,Ce]},{provide:Ht,useClass:bi,multi:!0,deps:[N]},cr,pr,hr,{provide:Zn,useExisting:cr},{provide:lr,useClass:di,deps:[]},[]];function Ai(){return new qt(b(N))}var qt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var m="primary",Fe=Symbol("RouteTitle"),Yt=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function ue(n){return new Yt(n)}function Oi(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.lengtht[s]===r)}else return n===e}function Mr(n){return n.length>0?n[n.length-1]:null}function K(n){return jn(n)?n:Jn(n)?x(Promise.resolve(n)):f(n)}var Pi={exact:Rr,subset:Er},kr={exact:xi,subset:Ni,ignored:()=>!0};function vr(n,e,i){return Pi[i.paths](n.root,e.root,i.matrixParams)&&kr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function xi(n,e){return U(n,e)}function Rr(n,e,i){if(!Q(n.segments,e.segments)||!tt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Rr(n.children[t],e.children[t],i))return!1;return!0}function Ni(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Sr(n[i],e[i]))}function Er(n,e,i){return Tr(n,e,e.segments,i)}function Tr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Q(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!Q(n.segments,i)||!tt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Er(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!Q(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Tr(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>kr[i](n[r].parameters,t.parameters))}var V=class{constructor(e=new y([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){return Li.serialize(this)}},y=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nt(this)}},J=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Dr(this)}};function ji(n,e){return Q(n,e)&&n.every((i,t)=>U(i.parameters,e[t].parameters))}function Q(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function Ui(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===m&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==m&&(i=i.concat(e(r,t)))}),i}var Mn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new it)(),providedIn:"root"});let n=e;return n})(),it=class{parse(e){let i=new Xt(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Te(e.root,!0)}`,t=zi(e.queryParams),r=typeof e.fragment=="string"?`#${_i(e.fragment)}`:"";return`${i}${t}${r}`}},Li=new it;function nt(n){return n.segments.map(e=>Dr(e)).join("/")}function Te(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Te(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Te(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=Ui(n,(t,r)=>r===m?[Te(n.children[m],!1)]:[`${r}:${Te(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Ar(n).replace(/%3B/gi,";")}function _i(n){return encodeURI(n)}function Qt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function yr(n){return rt(n.replace(/\+/g,"%20"))}function Dr(n){return`${Qt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Qt(e)}=${Qt(n[e])}`).join("")}function zi(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Xe(i)}=${Xe(r)}`).join("&"):`${Xe(i)}=${Xe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var Fi=/^[^\/()?;#]+/;function Kt(n){let e=n.match(Fi);return e?e[0]:""}var Hi=/^[^\/()?;=#]+/;function Bi(n){let e=n.match(Hi);return e?e[0]:""}var Vi=/^[^=?&#]+/;function qi(n){let e=n.match(Vi);return e?e[0]:""}var Ki=/^[^&#]+/;function Gi(n){let e=n.match(Ki);return e?e[0]:""}var Xt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[m]=new y(e,i)),t}parseSegment(){let e=Kt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new J(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Bi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Kt(this.remaining);r&&(t=r,this.capture(t))}e[rt(i)]=rt(t)}parseQueryParam(e){let i=qi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let a=Gi(this.remaining);a&&(t=a,this.capture(t))}let r=yr(i),s=yr(t);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Kt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[m]:new y([],a),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new M(4011,!1)}};function Or(n){return n.segments.length>0?new y([],{[m]:n}):n}function Ir(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=Ir(r);if(t===m&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))e[a]=o;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new y(n.segments,e);return Wi(i)}function Wi(n){if(n.numberOfChildren===1&&n.children[m]){let e=n.children[m];return new y(n.segments.concat(e.segments),e.children)}return n}function de(n){return n instanceof V}function Zi(n,e,i=null,t=null){let r=Pr(n);return xr(r,e,i,t)}function Pr(n){let e;function i(s){let a={};for(let c of s.children){let l=i(c);a[c.outlet]=l}let o=new y(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Or(t);return e??r}function xr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Gt(r,r,r,i,t);let s=Yi(e);if(s.toRoot())return Gt(r,r,new y([],{}),i,t);let a=Ji(s,r,n),o=a.processChildren?Oe(a.segmentGroup,a.index,s.commands):jr(a.segmentGroup,a.index,s.commands);return Gt(r,a.segmentGroup,o,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function xe(n){return typeof n=="object"&&n!=null&&n.outlets}function Gt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let a;n===e?a=i:a=Nr(n,e,i);let o=Or(Ir(a));return new V(o,s,r)}function Nr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Nr(s,e,i)}),new y(n.segments,t)}var at=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new M(4003,!1);let r=t.find(xe);if(r&&r!==Mr(t))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new at(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([c,l])=>{o[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,c)=>{c==0&&o==="."||(c==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new at(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Ji(n,e,i){if(n.isAbsolute)return new le(e,!0,0);if(!i)return new le(e,!1,NaN);if(i.parent===null)return new le(i,!0,0);let t=st(n.commands[0])?0:1,r=i.segments.length-1+t;return Qi(i,r,n.numberOfDoubleDots)}function Qi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new M(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function Xi(n){return xe(n[0])?n[0].outlets:{[m]:n}}function jr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Oe(n,e,i);let t=es(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==m)&&n.children[m]&&n.numberOfChildren===1&&n.children[m].segments.length===0){let s=Oe(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=jr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new y(n.segments,r)}}function es(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let a=n.segments[r],o=i[t];if(xe(o))break;let c=`${o}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Cr(c,l,a))return s;t+=2}else{if(!Cr(c,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function en(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=en(new y([],{}),0,t))}),e}function wr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Cr(n,e,i){return n==i.path&&U(e,i.parameters)}var Ie="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},Ne=class extends P{constructor(e,i,t="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},X=class extends P{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},q=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ee=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},je=class extends P{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ot=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nn=class extends P{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},rn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},an=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},on=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ln=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ue=class{},Le=class{constructor(e){this.url=e}};var hn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pt,this.attachRef=null}},pt=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new hn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=pn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=pn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=fn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return fn(e,this._root).map(i=>i.value)}};function pn(n,e){if(n===e.value)return e;for(let i of e.children){let t=pn(n,i);if(t)return t}return null}function fn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=fn(n,i);if(t.length)return t.unshift(e),t}return[]}var E=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function oe(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var ct=class extends lt{constructor(e,i){super(e),this.snapshot=i,Rn(this,e)}toString(){return this.snapshot.toString()}};function Ur(n,e){let i=ns(n,e),t=new T([new J("",{})]),r=new T({}),s=new T({}),a=new T({}),o=new T(""),c=new he(t,r,a,o,s,m,e,i.root);return c.snapshot=i.root,new ct(new E(c,[]),i)}function ns(n,e){let i={},t={},r={},s="",a=new _e([],i,r,s,t,m,e,null,{});return new ut("",new E(a,[]))}var he=class{constructor(e,i,t,r,s,a,o,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Fe]))??f(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(w(e=>ue(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(e=>ue(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:h(h({},e.params),n.params),data:h(h({},e.data),n.data),resolve:h(h(h(h({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:h(h({},n.data),n._resolvedData??{})},r&&_r(r)&&(t.resolve[Fe]=r.title),t}var _e=class{get title(){return this.data?.[Fe]}constructor(e,i,t,r,s,a,o,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},ut=class extends lt{constructor(e,i){super(i),this.url=e,Rn(this,i)}toString(){return Lr(this._root)}};function Rn(n,e){e.value._routerState=n,e.children.forEach(i=>Rn(n,i))}function Lr(n){let e=n.children.length>0?` { ${n.children.map(Lr).join(", ")} } `:"";return`${n.value}${e}`}function Wt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,U(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),U(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),U(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gn(n,e){let i=U(n.params,e.params)&&ji(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||gn(n.parent,e.parent))}function _r(n){return typeof n.title=="string"||n.title===null}var He=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=g(pt),this.location=g(Yn),this.changeDetector=g(Ot),this.environmentInjector=g(Ke),this.inputBinder=g(En,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new mn(t,c,s.injector);this.activated=s.createComponent(o,{index:s.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Vn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qn]});let n=e;return n})(),mn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===he?this.route:e===pt?this.childContexts:this.parent.get(e,i)}},En=new D("");function rs(n,e,i){let t=$e(n,e._root,i?i._root:void 0);return new ct(t,e)}function $e(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=is(n,e,i);return new E(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(o=>$e(n,o)),a}}let t=ss(e.value),r=e.children.map(s=>$e(n,s));return new E(t,r)}}function is(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return $e(n,t,r);return $e(n,t)})}function ss(n){return new he(new T(n.url),new T(n.params),new T(n.queryParams),new T(n.fragment),new T(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function zr(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Fr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Fr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function as(n){return Hr(n)&&de(n.url)}function Hr(n){return n&&n[$r]}var os=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["ng-component"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function ls(n,e){return n.providers&&!n._injector&&(n._injector=er(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Tn(n){let e=n.children&&n.children.map(Tn),i=e?R(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=os),i}function L(n){return n.outlet||m}function cs(n,e){let i=n.filter(t=>L(t)===e);return i.push(...n.filter(t=>L(t)!==e)),i}function Be(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var us=(n,e,i,t)=>w(r=>(new vn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),vn=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Wt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],t),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let a=t.getContext(r.outlet);a&&this.deactivateChildRoutes(e,i,a.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);if(t&&t.outlet){let a=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:o})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new dn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Wt(r),r===s)if(r.component){let a=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,a.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let a=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),Wt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=Be(r.snapshot);a.attachRef=null,a.route=r,a.injector=o,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},dt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ce=class{constructor(e,i){this.component=e,this.route=i}};function ds(n,e,i){let t=n._root,r=e?e._root:null;return Ae(t,r,i,[t.value])}function hs(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function fe(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Bn(n)?n:e.get(n):t}function Ae(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=oe(e);return n.children.forEach(a=>{ps(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Pe(o,i.getContext(a),r)),r}function ps(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=e?e.value:null,o=i?i.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let c=fs(a,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Ae(n,e,o?o.children:null,t,r):Ae(n,e,i,t,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ce(o.outlet.component,a))}else a&&Pe(e,o,r),r.canActivateChecks.push(new dt(t)),s.component?Ae(n,null,o?o.children:null,t,r):Ae(n,null,i,t,r);return r}function fs(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Q(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Q(n.url,e.url)||!U(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(n,e)||!U(n.queryParams,e.queryParams);case"paramsChange":default:return!gn(n,e)}}function Pe(n,e,i){let t=oe(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?Pe(a,e.children.getContext(s),i):Pe(a,null,i):Pe(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ce(e.outlet.component,r)):i.canDeactivateChecks.push(new ce(null,r)):i.canDeactivateChecks.push(new ce(null,r))}function Ve(n){return typeof n=="function"}function gs(n){return typeof n=="boolean"}function ms(n){return n&&Ve(n.canLoad)}function vs(n){return n&&Ve(n.canActivate)}function ys(n){return n&&Ve(n.canActivateChild)}function ws(n){return n&&Ve(n.canDeactivate)}function Cs(n){return n&&Ve(n.canMatch)}function Br(n){return n instanceof Un||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return j(n=>wt(n.map(e=>e.pipe(re(1),Fn(et)))).pipe(w(e=>{for(let i of e)if(i!==!0){if(i===et)return et;if(i===!1||i instanceof V)return i}return!0}),te(e=>e!==et),re(1)))}function bs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?f(R(h({},i),{guardsResult:!0})):Ss(a,t,r,n).pipe(A(o=>o&&gs(o)?Ms(t,s,n,e):f(o)),w(o=>R(h({},i),{guardsResult:o})))})}function Ss(n,e,i,t){return x(n).pipe(A(r=>As(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>Ln(Rs(r.route.parent,t),ks(r.route,t),Ts(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function ks(n,e){return n!==null&&e&&e(new un(n)),f(!0)}function Rs(n,e){return n!==null&&e&&e(new ln(n)),f(!0)}function Es(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let r=t.map(s=>Ct(()=>{let a=Be(e)??i,o=fe(s,a),c=vs(o)?o.canActivate(e,n):Y(a,()=>o(e,n));return K(c).pipe(F())}));return f(r).pipe(pe())}function Ts(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>hs(a)).filter(a=>a!==null).map(a=>Ct(()=>{let o=a.guards.map(c=>{let l=Be(a.node)??i,d=fe(c,l),p=ys(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return K(p).pipe(F())});return f(o).pipe(pe())}));return f(s).pipe(pe())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let a=s.map(o=>{let c=Be(e)??r,l=fe(o,c),d=ws(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return K(d).pipe(F())});return f(a).pipe(pe())}function Ds(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=ms(o)?o.canLoad(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}function Vr(n){return Nn(k(e=>{if(de(e))throw zr(n,e)}),w(e=>e===!0))}function Os(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=Cs(o)?o.canMatch(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}var ze=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return ve(new ze(n))}function Is(n){return ve(new M(4e3,!1))}function Ps(n){return ve(Fr(!1,3))}var yn=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return f(t);if(r.numberOfChildren>1||!r.children[m])return Is(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ht(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new V(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let o=s.substring(1);t[r]=i[o]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),a={};return Object.entries(i.children).forEach(([o,c])=>{a[o]=this.createSegmentGroup(e,c,t,r)}),new y(s,a)}createSegments(e,i,t,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new M(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xs(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=ls(e,t),Os(t,e,i,r).pipe(w(a=>a===!0?s:h({},wn)))):f(s)}function An(n,e,i){if(e.path==="**")return Ns(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},wn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Oi)(i,n,e);if(!r)return h({},wn);let s={};Object.entries(r.posParams??{}).forEach(([o,c])=>{s[o]=c.path});let a=r.consumed.length>0?h(h({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function Ns(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function br(n,e,i,t){return i.length>0&&Ls(n,i,t)?{segmentGroup:new y(e,Us(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&_s(n,i,t)?{segmentGroup:new y(n.segments,js(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function js(n,e,i,t,r){let s={};for(let a of t)if(ft(n,i,a)&&!r[L(a)]){let o=new y([],{});s[L(a)]=o}return h(h({},r),s)}function Us(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&L(t)!==m){let r=new y([],{});i[L(t)]=r}return i}function Ls(n,e,i){return i.some(t=>ft(n,e,t)&&L(t)!==m)}function _s(n,e,i){return i.some(t=>ft(n,e,t))}function ft(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return L(n)!==t&&(t===m||!ft(e,i,n))?!1:An(e,n,i).matched}function zs(n,e,i){return e.length===0&&!n.children[i]}var Cn=class{};function Fs(n,e,i,t,r,s,a="emptyOnly"){return new bn(n,e,i,t,r,a,s).recognize()}var Hs=31,bn=class{constructor(e,i,t,r,s,a,o){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new yn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=br(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(w(i=>{let t=new _e([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new E(t,i),s=new ut("",r),a=Zi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(s._root,null),{state:s,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(ne(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ze?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=kn(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(w(s=>s instanceof E?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return x(r).pipe(ye(s=>{let a=t.children[s],o=cs(i,s);return this.processSegmentGroup(e,o,a,s)}),zn((s,a)=>(s.push(...a),s)),bt(null),$n(),A(s=>{if(s===null)return ae(t);let a=qr(s);return Bs(a),f(a)}))}processSegment(e,i,t,r,s,a){return x(i).pipe(ye(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(ne(c=>{if(c instanceof ze)return f(null);throw c}))),F(o=>!!o),ne(o=>{if(Br(o))return zs(t,r,s)?f(new Cn):ae(t);throw o}))}processSegmentAgainstRoute(e,i,t,r,s,a,o){return $s(t,r,s,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,a):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,a):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=An(i,r,s);if(!o)return ae(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Hs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(A(v=>this.processSegment(e,t,i,v.concat(d),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=xs(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(j(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(j(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=o,S=new _e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,qs(t),L(t),t.component??t._loadedComponent??null,t,Ks(t)),{segmentGroup:ge,slicedSegments:me}=br(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(G=>G===null?null:new E(S,G)));if(c.length===0&&me.length===0)return f(new E(S,[]));let mt=L(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(G=>new E(S,G instanceof E?[G]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?f({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ds(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(k(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ps(i))):f({routes:[],injector:e})}};function Bs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Vs(n){let e=n.value.routeConfig;return e&&e.path===""}function qr(n){let e=[],i=new Set;for(let t of n){if(!Vs(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=qr(t.children);e.push(new E(t.value,r))}return e.filter(t=>!i.has(t))}function qs(n){return n.data||{}}function Ks(n){return n.resolve||{}}function Gs(n,e,i,t,r,s){return A(a=>Fs(n,e,i,t,a.extractedUrl,r,s).pipe(w(({state:o,tree:c})=>R(h({},a),{targetSnapshot:o,urlAfterRedirects:c}))))}function Ws(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),a=new Set;for(let c of s)if(!a.has(c))for(let l of Kr(c))a.add(l);let o=0;return x(a).pipe(ye(c=>s.has(c)?Zs(c,t,n,e):(c.data=kn(c,c.parent,n).resolve,f(void 0))),k(()=>o++),St(1),A(c=>o===a.size?f(i):Z))})}function Kr(n){let e=n.children.map(i=>Kr(i)).flat();return[n,...e]}function Zs(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!_r(r)&&(s[Fe]=r.title),Ys(s,n,e,t).pipe(w(a=>(n._resolvedData=a,n.data=kn(n,n.parent,i).resolve,null)))}function Ys(n,e,i,t){let r=Jt(n);if(r.length===0)return f({});let s={};return x(r).pipe(A(a=>Js(n[a],e,i,t).pipe(F(),k(o=>{s[a]=o}))),St(1),_n(s),ne(a=>Br(a)?Z:ve(a)))}function Js(n,e,i,t){let r=Be(e)??t,s=fe(n,r),a=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return K(a)}function Zt(n){return j(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(e)})}var Gr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(a=>a.outlet===m);return r}getResolvedTitleForRoute(t){return t.data[Fe]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(Qs))(),providedIn:"root"});let n=e;return n})(),Qs=(()=>{let e=class e extends Gr{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(b(qt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),On=new D("ROUTES"),Xs=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=K(t.loadComponent()).pipe(w(Wr),k(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),qe(()=>{this.componentLoaders.delete(t)})),s=new yt(r,()=>new W).pipe(vt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=ea(r,this.compiler,t,this.onLoadEndListener).pipe(qe(()=>{this.childrenLoaders.delete(r)})),o=new yt(a,()=>new W).pipe(vt());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ea(n,e,i,t){return K(n.loadChildren()).pipe(w(Wr),A(r=>r instanceof Xn||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(r=>{t&&t(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(i).injector,a=s.get(On,[],{optional:!0,self:!0}).flat()),{routes:a.map(Tn),injector:s}}))}function ta(n){return n&&typeof n=="object"&&"default"in n}function Wr(n){return ta(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(na))(),providedIn:"root"});let n=e;return n})(),na=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ra=new D("");var ia=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=g(Xs),this.environmentInjector=g(Ke),this.urlSerializer=g(Mn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(En,{optional:!0})!==null,this.titleStrategy=g(Gr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(In),this.createViewTransition=g(ra,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=s=>this.events.next(new an(s)),r=s=>this.events.next(new on(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(R(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new T({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ie,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(a=>a.id!==0),w(a=>R(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),j(a=>{this.currentTransition=a;let o=!1,c=!1;return f(a).pipe(k(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?R(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),j(l=>{let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&p!=="reload"){let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(j(v=>{let S=this.transitions?.getValue();return this.events.next(new Ne(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Gs(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),k(v=>{a.targetSnapshot=v.targetSnapshot,a.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=R(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new ot(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(S)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:v,extractedUrl:S,source:ge,restoredState:me,extras:mt}=l,G=new Ne(v,this.urlSerializer.serialize(S),ge,me);this.events.next(G);let ri=Ur(S,this.rootComponentType).snapshot;return this.currentTransition=a=R(h({},l),{targetSnapshot:ri,urlAfterRedirects:S,extras:R(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(a)}else{let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),k(l=>{let d=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=a=R(h({},l),{guards:ds(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),bs(this.environmentInjector,l=>this.events.next(l)),k(l=>{if(a.guardsResult=l.guardsResult,de(l.guardsResult))throw zr(this.urlSerializer,l.guardsResult);let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),te(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Zt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(k(d=>{let p=new rn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),j(d=>{let p=!1;return f(d).pipe(Ws(this.paramsInheritanceStrategy,this.environmentInjector),k({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),k(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Zt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(k(S=>{p.component=S}),w(()=>{})));for(let S of p.children)v.push(...d(S));return v};return wt(d(l.targetSnapshot.root)).pipe(bt(),re(1))}),Zt(()=>this.afterPreactivation()),j(()=>{let{currentSnapshot:l,targetSnapshot:d}=a,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>a)):f(a)}),w(l=>{let d=rs(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=R(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),k(()=>{this.events.next(new Ue)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),re(1),k({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Hn(this.transitionAbortSubject.pipe(k(l=>{throw l}))),qe(()=>{if(!o&&!c){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),ne(l=>{if(c=!0,Hr(l))this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),as(l)?this.events.next(new Le(l.url)):a.resolve(!1);else{this.events.next(new je(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(d){a.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let a=new q(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function sa(n){return n!==Ie}var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(oa))(),providedIn:"root"});let n=e;return n})(),Sn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},oa=(()=>{let e=class e extends Sn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Zr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(la))(),providedIn:"root"});let n=e;return n})(),la=(()=>{let e=class e extends Zr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Mn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ur(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Ne)this.stateMemento=this.createStateMemento();else if(t instanceof ee)this.rawUrlTree=r.initialUrl;else if(t instanceof ot){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Ue?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof q&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof je?this.restoreHistory(r,!0):t instanceof X&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let a=this.browserPageId,o=h(h({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,a=this.currentPageId-s;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),De=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(De||{});function ca(n,e){n.events.pipe(te(i=>i instanceof X||i instanceof q||i instanceof je||i instanceof ee),w(i=>i instanceof X||i instanceof ee?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),te(i=>i!==De.REDIRECTING),re(1)).subscribe(()=>{e()})}function ua(n){throw n}var da={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ha={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(We),this.stateManager=g(Zr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ia),this.urlSerializer=g(Mn),this.location=g(Ze),this.urlHandlingStrategy=g(In),this._events=new W,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=g(aa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(On,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(En,{optional:!0}),this.eventsSubscription=new xn,this.isNgZoneEnabled=g($)instanceof $&&$.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof X)this.navigated=!0;else if(r instanceof Le){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||sa(s.source)};this.scheduleNavigation(o,Ie,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}fa(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ie,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)}))}navigateToSyncWithBrowser(t,r,s){let a={replaceUrl:!0},o=s?.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,r,o,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Tn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:a,fragment:o,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:o,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Pr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return xr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ie,null,r)}navigate(t,r={skipLocationChange:!1}){return pa(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=h({},da):r===!1?s=h({},ha):s=r,de(t))return vr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return vr(this.currentUrlTree,a,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return a!=null&&(r[s]=a),r},{})}scheduleNavigation(t,r,s,a,o){if(this.disposed)return Promise.resolve(!1);let c,l,d;o?(c=o.resolve,l=o.reject,d=o.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ca(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function pa(n){for(let e=0;ei.\u0275providers)])}function ma(n){return n.routerState.root}function va(){let n=g(Et);return e=>{let i=n.get(Pt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(ya);n.get(wa)===1&&t.initialNavigation(),n.get(Ca,null,Mt.Optional)?.setUpPreloading(),n.get(ga,null,Mt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ya=new D("",{factory:()=>new W}),wa=new D("",{providedIn:"root",factory:()=>1});var Ca=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Jr=["Easy","Medium","Hard"];function _(n){return new Map([...n.entries()].sort((e,i)=>{let t=Jr.indexOf(e[1].difficulty),r=Jr.indexOf(i[1].difficulty);return t-r}))}var ba=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"Easy",developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:"Easy",developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:"Easy",developer:"officialbidisha",tags:[u.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:"Easy",developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[u.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:"Easy",developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:"Easy",developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:"Easy",developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"Medium",developer:"Sukomal07",tags:[],isNew:!0}]]),Sa=_(ba);var Ma=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[u.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:"Easy",developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:"Easy",developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:"Easy",developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:"Easy",developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[u.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:"Easy",developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[u.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:"Easy",developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:"Easy",developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:"Easy",developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:"Easy",developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:"Easy",developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:"Easy",developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:"Easy",developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:"Easy",developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:"Easy",developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:"Medium",developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:"Medium",developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:"Medium",developer:"shruti-sen2004",tags:[u.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:"Medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[u.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:"Medium",developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"Medium",developer:"srijanB7",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:"Medium",developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"Medium",developer:"Kei-K23",tags:[u.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:"Medium",developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:"Medium",developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:"Medium",developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:"Medium",developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}]]),ka=_(Ma);var Ra=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:"Easy",developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"Easy",developer:"Bhushan1019",tags:[u.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"Easy",tags:[u.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"Easy",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"Easy",developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"Easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"Easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"Easy",developer:"deepakrajkranti",tags:[u.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"Easy",developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"Easy",developer:"NikhilJHA01",tags:[u.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"Easy",developer:"rashidtvmr",tags:[u.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"Easy",developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"Easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"Easy",developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:"Easy",developer:"codechitra",tags:[u.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"Medium",developer:"liza",tags:[u.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"Medium",developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"Medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"Medium",developer:"deepakrajkranti",tags:[u.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:"Medium",developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"Medium",developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"Medium",developer:"rashidtvmr",tags:[u.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"Medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"Medium",developer:"AbhilashMadi",tags:[u.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"Medium",developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:"Medium",developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"Hard",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:"Medium",developer:"DeePaK-HeeRaKaRi",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:"Medium",developer:"ayush-dutt-sharma",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"Hard",developer:"rishabhm05",tags:[u.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:"Hard",developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:"Easy",developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:"Medium",developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:"Medium",developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:"Medium",developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:"Medium",developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:"Medium",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:"Easy",developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:"Medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:"Hard",developer:"SujithGunasekaran",tags:[u.interview]}]]),Ea=_(Ra);var Ta=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:"Easy",developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:"Easy",developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"Medium",developer:"arpansaha13",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"Medium",developer:"jaydadhaniya",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"Medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"Medium",developer:"Shardik04",tags:[u.interview]}]]),Aa=_(Ta);var Da=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}]]),Pn=_(Da);var Qr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=xt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=xt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/",this.angularSourceCodeBaseURL="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/angular/src/app/challenges/"}ngOnInit(){this.angularSourceCodeURL=this.angularSourceCodeBaseURL+this.link}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[B],decls:26,vars:4,consts:[[1,"challenge-navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"title"],[1,"right"],[1,"responsive_nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],[1,"cross","mobile"],[1,"menu"],["target","_blank","rel","noreferrer","title","Source Code",1,"source-code",3,"href"],["src","assets/icons/code.svg","alt","source code"],[1,"mobile"],["target","blank","title","Github Repo","href","https://github.com/sadanandpai/frontend-mini-challenges/",1,"github"],["src","assets/icons/github.svg","alt","github repo"]],template:function(r,s){r&1&&(O(0,"nav",0)(1,"div",1)(2,"a",2),se(3," < "),z(),O(4,"a",3),I(5,"img",4),z()(),O(6,"h1",5),se(7),z(),O(8,"div",6)(9,"div",7)(10,"div",8),I(11,"input",9)(12,"div",10)(13,"div",10)(14,"div",10),O(15,"div",11),se(16,"\u2715"),z(),O(17,"section",12)(18,"a",13),I(19,"img",14),O(20,"span",15),se(21,"Source code"),z()(),O(22,"a",16),I(23,"img",17),O(24,"span",15),se(25,"Github Repo"),z()()()()()()()),r&2&&(Se(2),ie("href",s.backURL,Ge),Se(2),ie("href",s.homeURL,Ge),Se(3),Qn(s.title),Se(11),ie("href",s.angularSourceCodeURL,Ge))},styles:[".mobile[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:40px}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile[_ngcontent-%COMP%]{display:block}.challenge-navbar[_ngcontent-%COMP%]{padding:1rem 1rem 1rem .5rem}.challenge-navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.25rem}.right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:block;position:relative;margin-left:2rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.cross[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.25rem;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.line[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.cross[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.cross[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var Xr=(()=>{let e=class e{constructor(){this.title="Challenge",this.link="",this.router=g(gt)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=Pn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[B],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(I(0,"app-navbar",0),O(1,"div",1),I(2,"router-outlet"),z()),r&2&&ie("title",s.title)("link",s.link)},dependencies:[Qr,He],encapsulation:2});let n=e;return n})();var ei=[{path:"",component:Xr,children:[{path:"counter",loadComponent:()=>import("./chunk-P6JRW256.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-2GACWZDO.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-6UZ3QE7S.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-RYO7AHJW.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-QSPVKJQN.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-4P7VNLHJ.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ti={providers:[Yr(ei),{provide:jt,useClass:Ut}]};var ni=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-root"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He]});let n=e;return n})();mr(ni,ti).catch(n=>console.error(n)); +import{$ as Kn,$a as sr,A as qe,Aa as z,B as F,Ba as I,C as St,D as $n,E as zn,F as Fn,Fa as Jn,G as j,H as Hn,I as k,Ia as se,Ja as Qn,K as M,L as C,Ma as Xn,N as Bn,Na as er,O as Mt,Oa as B,P as D,Q as b,R as g,Ra as We,S as we,Sa as tr,T as H,Ta as It,Ua as nr,V as Vn,Va as Pt,W as qn,Wa as xt,Xa as rr,Z as kt,Za as Nt,_ as Rt,_a as ir,a as h,aa as Ke,ab as N,b as R,ba as Y,bb as jt,c as xn,ca as Et,cb as Ut,d as Nn,da as Gn,db as Ze,e as vt,ea as Tt,eb as ar,f as yt,fa as Wn,g as W,ga as Ce,h as T,ha as At,i as Z,ia as be,j as x,ja as Ge,jb as or,k as f,kb as Lt,l as ve,la as Zn,lb as lr,m as jn,n as Un,na as Dt,o as w,oa as Se,p as wt,q as A,qa as Ot,r as Ln,ra as Me,s as Ct,sa as $,u as te,v as ne,va as ie,w as ye,x as bt,xa as Yn,y as re,z as _n,za as O}from"./chunk-LTBXVXDY.js";var zt=class extends sr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ft=class n extends zt{static makeCurrent(){ir(new n)}onAndCancel(e,i,t){return e.addEventListener(i,t),()=>{e.removeEventListener(i,t)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=ci();return i==null?null:ui(i)}resetBaseElement(){ke=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ar(document.cookie,e)}},ke=null;function ci(){return ke=ke||document.querySelector("base"),ke?ke.getAttribute("href"):null}function ui(n){return new URL(n,document.baseURI).pathname}var di=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ht=new D("EventManagerPlugins"),hr=(()=>{let e=class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>{s.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(a=>a.supports(t)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(t,r),r}};e.\u0275fac=function(r){return new(r||e)(b(Ht),b($))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Ye=class{constructor(e){this._doc=e}},_t="ng-app-id",pr=(()=>{let e=class e{constructor(t,r,s,a={}){this.doc=t,this.appId=r,this.nonce=s,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Lt(a),this.resetHostNodes()}addStyles(t){for(let r of t)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(t){for(let r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){let r=this.styleRef;r.get(t)?.elements?.forEach(s=>s.remove()),r.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${_t}="${this.appId}"]`);if(t?.length){let r=new Map;return t.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(t,r){let s=this.styleRef;if(s.has(t)){let a=s.get(t);return a.usage+=r,a.usage}return s.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){let s=this.styleNodesInDOM,a=s?.get(r);if(a?.parentNode===t)return s.delete(r),a.removeAttribute(_t),a;{let o=this.doc.createElement("style");return this.nonce&&o.setAttribute("nonce",this.nonce),o.textContent=r,this.platformIsServer&&o.setAttribute(_t,this.appId),t.appendChild(o),o}}addStyleToHost(t,r){let s=this.getStyleElement(t,r),a=this.styleRef,o=a.get(r)?.elements;o?o.push(s):a.set(r,{elements:[s],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(b(N),b(Tt),b(At,8),b(Ce))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),$t={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Vt=/%COMP%/g,fr="%COMP%",hi=`_nghost-${fr}`,pi=`_ngcontent-${fr}`,fi=!0,gi=new D("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>fi});function mi(n){return pi.replace(Vt,n)}function vi(n){return hi.replace(Vt,n)}function gr(n,e){return e.map(i=>i.replace(Vt,n))}var cr=(()=>{let e=class e{constructor(t,r,s,a,o,c,l,d=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=a,this.doc=o,this.platformId=c,this.ngZone=l,this.nonce=d,this.rendererByCompId=new Map,this.platformIsServer=Lt(c),this.defaultRenderer=new Re(t,o,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===we.ShadowDom&&(r=R(h({},r),{encapsulation:we.Emulated}));let s=this.getOrCreateRenderer(t,r);return s instanceof Je?s.applyToHost(t):s instanceof Ee&&s.applyStyles(),s}getOrCreateRenderer(t,r){let s=this.rendererByCompId,a=s.get(r.id);if(!a){let o=this.doc,c=this.ngZone,l=this.eventManager,d=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,v=this.platformIsServer;switch(r.encapsulation){case we.Emulated:a=new Je(l,d,r,this.appId,p,o,c,v);break;case we.ShadowDom:return new Bt(l,d,t,r,o,c,this.nonce,v);default:a=new Ee(l,d,r,p,o,c,v);break}s.set(r.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(b(hr),b(pr),b(Tt),b(gi),b(N),b(Ce),b($),b(At))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),Re=class{constructor(e,i,t,r){this.eventManager=e,this.doc=i,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS($t[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(ur(e)?e.content:e).appendChild(i)}insertBefore(e,i,t){e&&(ur(e)?e.content:e).insertBefore(i,t)}removeChild(e,i){e&&e.removeChild(i)}selectRootElement(e,i){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new M(-5104,!1);return i||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,t,r){if(r){i=r+":"+i;let s=$t[r];s?e.setAttributeNS(s,i,t):e.setAttribute(i,t)}else e.setAttribute(i,t)}removeAttribute(e,i,t){if(t){let r=$t[t];r?e.removeAttributeNS(r,i):e.removeAttribute(`${t}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,t,r){r&(be.DashCase|be.Important)?e.style.setProperty(i,t,r&be.Important?"important":""):e.style[i]=t}removeStyle(e,i,t){t&be.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,t){e!=null&&(e[i]=t)}setValue(e,i){e.nodeValue=i}listen(e,i,t){if(typeof e=="string"&&(e=Nt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(t))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function ur(n){return n.tagName==="TEMPLATE"&&n.content!==void 0}var Bt=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,c),this.sharedStylesHost=i,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=gr(r.id,r.styles);for(let d of l){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=d,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,t){return super.insertBefore(this.nodeOrShadowRoot(e),i,t)}removeChild(e,i){return super.removeChild(this.nodeOrShadowRoot(e),i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Ee=class extends Re{constructor(e,i,t,r,s,a,o,c){super(e,s,a,o),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=c?gr(c,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Je=class extends Ee{constructor(e,i,t,r,s,a,o,c){let l=r+"-"+t.id;super(e,i,t,s,a,o,c,l),this.contentAttr=mi(l),this.hostAttr=vi(l)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let t=super.createElement(e,i);return super.setAttribute(t,this.contentAttr,""),t}},yi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})(),dr=["alt","control","meta","shift"],wi={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ci={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey},bi=(()=>{let e=class e extends Ye{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,r,s){let a=e.parseEventName(r),o=e.eventCallback(a.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Nt().onAndCancel(t,a.domEventName,o))}static parseEventName(t){let r=t.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let a=e._normalizeKey(r.pop()),o="",c=r.indexOf("code");if(c>-1&&(r.splice(c,1),o="code."),dr.forEach(d=>{let p=r.indexOf(d);p>-1&&(r.splice(p,1),o+=d+".")}),o+=a,r.length!=0||a.length===0)return null;let l={};return l.domEventName=s,l.fullKey=o,l}static matchEventFullKeyCode(t,r){let s=wi[t.key]||t.key,a="";return r.indexOf("code.")>-1&&(s=t.code,a="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),dr.forEach(o=>{if(o!==s){let c=Ci[o];c(t)&&(a+=o+".")}}),a+=s,a===r)}static eventCallback(t,r,s){return a=>{e.matchEventFullKeyCode(a,t)&&s.runGuarded(()=>r(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let n=e;return n})();function mr(n,e){return rr(h({rootComponent:n},Si(e)))}function Si(n){return{appProviders:[...Ti,...n?.providers??[]],platformProviders:Ei}}function Mi(){Ft.makeCurrent()}function ki(){return new Dt}function Ri(){return Gn(document),document}var Ei=[{provide:Ce,useValue:or},{provide:Wn,useValue:Mi,multi:!0},{provide:N,useFactory:Ri,deps:[]}];var Ti=[{provide:Kn,useValue:"root"},{provide:Dt,useFactory:ki,deps:[]},{provide:Ht,useClass:yi,multi:!0,deps:[N,$,Ce]},{provide:Ht,useClass:bi,multi:!0,deps:[N]},cr,pr,hr,{provide:Zn,useExisting:cr},{provide:lr,useClass:di,deps:[]},[]];function Ai(){return new qt(b(N))}var qt=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(r){return new(r||e)(b(N))},e.\u0275prov=C({token:e,factory:function(r){let s=null;return r?s=new r:s=Ai(),s},providedIn:"root"});let n=e;return n})();var m="primary",Fe=Symbol("RouteTitle"),Yt=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function ue(n){return new Yt(n)}function Oi(n,e,i){let t=i.path.split("/");if(t.length>n.length||i.pathMatch==="full"&&(e.hasChildren()||t.lengtht[s]===r)}else return n===e}function Mr(n){return n.length>0?n[n.length-1]:null}function K(n){return jn(n)?n:Jn(n)?x(Promise.resolve(n)):f(n)}var Pi={exact:Rr,subset:Er},kr={exact:xi,subset:Ni,ignored:()=>!0};function vr(n,e,i){return Pi[i.paths](n.root,e.root,i.matrixParams)&&kr[i.queryParams](n.queryParams,e.queryParams)&&!(i.fragment==="exact"&&n.fragment!==e.fragment)}function xi(n,e){return U(n,e)}function Rr(n,e,i){if(!Q(n.segments,e.segments)||!tt(n.segments,e.segments,i)||n.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!n.children[t]||!Rr(n.children[t],e.children[t],i))return!1;return!0}function Ni(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(i=>Sr(n[i],e[i]))}function Er(n,e,i){return Tr(n,e,e.segments,i)}function Tr(n,e,i,t){if(n.segments.length>i.length){let r=n.segments.slice(0,i.length);return!(!Q(r,i)||e.hasChildren()||!tt(r,i,t))}else if(n.segments.length===i.length){if(!Q(n.segments,i)||!tt(n.segments,i,t))return!1;for(let r in e.children)if(!n.children[r]||!Er(n.children[r],e.children[r],t))return!1;return!0}else{let r=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!Q(n.segments,r)||!tt(n.segments,r,t)||!n.children[m]?!1:Tr(n.children[m],e,s,t)}}function tt(n,e,i){return e.every((t,r)=>kr[i](n[r].parameters,t.parameters))}var V=class{constructor(e=new y([],{}),i={},t=null){this.root=e,this.queryParams=i,this.fragment=t}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){return Li.serialize(this)}},y=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nt(this)}},J=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap||(this._parameterMap=ue(this.parameters)),this._parameterMap}toString(){return Dr(this)}};function ji(n,e){return Q(n,e)&&n.every((i,t)=>U(i.parameters,e[t].parameters))}function Q(n,e){return n.length!==e.length?!1:n.every((i,t)=>i.path===e[t].path)}function Ui(n,e){let i=[];return Object.entries(n.children).forEach(([t,r])=>{t===m&&(i=i.concat(e(r,t)))}),Object.entries(n.children).forEach(([t,r])=>{t!==m&&(i=i.concat(e(r,t)))}),i}var Mn=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new it)(),providedIn:"root"});let n=e;return n})(),it=class{parse(e){let i=new Xt(e);return new V(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${Te(e.root,!0)}`,t=zi(e.queryParams),r=typeof e.fragment=="string"?`#${_i(e.fragment)}`:"";return`${i}${t}${r}`}},Li=new it;function nt(n){return n.segments.map(e=>Dr(e)).join("/")}function Te(n,e){if(!n.hasChildren())return nt(n);if(e){let i=n.children[m]?Te(n.children[m],!1):"",t=[];return Object.entries(n.children).forEach(([r,s])=>{r!==m&&t.push(`${r}:${Te(s,!1)}`)}),t.length>0?`${i}(${t.join("//")})`:i}else{let i=Ui(n,(t,r)=>r===m?[Te(n.children[m],!1)]:[`${r}:${Te(t,!1)}`]);return Object.keys(n.children).length===1&&n.children[m]!=null?`${nt(n)}/${i[0]}`:`${nt(n)}/(${i.join("//")})`}}function Ar(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Xe(n){return Ar(n).replace(/%3B/gi,";")}function _i(n){return encodeURI(n)}function Qt(n){return Ar(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rt(n){return decodeURIComponent(n)}function yr(n){return rt(n.replace(/\+/g,"%20"))}function Dr(n){return`${Qt(n.path)}${$i(n.parameters)}`}function $i(n){return Object.keys(n).map(e=>`;${Qt(e)}=${Qt(n[e])}`).join("")}function zi(n){let e=Object.keys(n).map(i=>{let t=n[i];return Array.isArray(t)?t.map(r=>`${Xe(i)}=${Xe(r)}`).join("&"):`${Xe(i)}=${Xe(t)}`}).filter(i=>!!i);return e.length?`?${e.join("&")}`:""}var Fi=/^[^\/()?;#]+/;function Kt(n){let e=n.match(Fi);return e?e[0]:""}var Hi=/^[^\/()?;=#]+/;function Bi(n){let e=n.match(Hi);return e?e[0]:""}var Vi=/^[^=?&#]+/;function qi(n){let e=n.match(Vi);return e?e[0]:""}var Ki=/^[^&#]+/;function Gi(n){let e=n.match(Ki);return e?e[0]:""}var Xt=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new y([],{}):new y([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(t[m]=new y(e,i)),t}parseSegment(){let e=Kt(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new J(rt(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=Bi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let r=Kt(this.remaining);r&&(t=r,this.capture(t))}e[rt(i)]=rt(t)}parseQueryParam(e){let i=qi(this.remaining);if(!i)return;this.capture(i);let t="";if(this.consumeOptional("=")){let a=Gi(this.remaining);a&&(t=a,this.capture(t))}let r=yr(i),s=yr(t);if(e.hasOwnProperty(r)){let a=e[r];Array.isArray(a)||(a=[a],e[r]=a),a.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=Kt(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new M(4010,!1);let s;t.indexOf(":")>-1?(s=t.slice(0,t.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=m);let a=this.parseChildren();i[s]=Object.keys(a).length===1?a[m]:new y([],a),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new M(4011,!1)}};function Or(n){return n.segments.length>0?new y([],{[m]:n}):n}function Ir(n){let e={};for(let t of Object.keys(n.children)){let r=n.children[t],s=Ir(r);if(t===m&&s.segments.length===0&&s.hasChildren())for(let[a,o]of Object.entries(s.children))e[a]=o;else(s.segments.length>0||s.hasChildren())&&(e[t]=s)}let i=new y(n.segments,e);return Wi(i)}function Wi(n){if(n.numberOfChildren===1&&n.children[m]){let e=n.children[m];return new y(n.segments.concat(e.segments),e.children)}return n}function de(n){return n instanceof V}function Zi(n,e,i=null,t=null){let r=Pr(n);return xr(r,e,i,t)}function Pr(n){let e;function i(s){let a={};for(let c of s.children){let l=i(c);a[c.outlet]=l}let o=new y(s.url,a);return s===n&&(e=o),o}let t=i(n.root),r=Or(t);return e??r}function xr(n,e,i,t){let r=n;for(;r.parent;)r=r.parent;if(e.length===0)return Gt(r,r,r,i,t);let s=Yi(e);if(s.toRoot())return Gt(r,r,new y([],{}),i,t);let a=Ji(s,r,n),o=a.processChildren?Oe(a.segmentGroup,a.index,s.commands):jr(a.segmentGroup,a.index,s.commands);return Gt(r,a.segmentGroup,o,i,t)}function st(n){return typeof n=="object"&&n!=null&&!n.outlets&&!n.segmentPath}function xe(n){return typeof n=="object"&&n!=null&&n.outlets}function Gt(n,e,i,t,r){let s={};t&&Object.entries(t).forEach(([c,l])=>{s[c]=Array.isArray(l)?l.map(d=>`${d}`):`${l}`});let a;n===e?a=i:a=Nr(n,e,i);let o=Or(Ir(a));return new V(o,s,r)}function Nr(n,e,i){let t={};return Object.entries(n.children).forEach(([r,s])=>{s===e?t[r]=i:t[r]=Nr(s,e,i)}),new y(n.segments,t)}var at=class{constructor(e,i,t){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=t,e&&t.length>0&&st(t[0]))throw new M(4003,!1);let r=t.find(xe);if(r&&r!==Mr(t))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Yi(n){if(typeof n[0]=="string"&&n.length===1&&n[0]==="/")return new at(!0,0,n);let e=0,i=!1,t=n.reduce((r,s,a)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let o={};return Object.entries(s.outlets).forEach(([c,l])=>{o[c]=typeof l=="string"?l.split("/"):l}),[...r,{outlets:o}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:a===0?(s.split("/").forEach((o,c)=>{c==0&&o==="."||(c==0&&o===""?i=!0:o===".."?e++:o!=""&&r.push(o))}),r):[...r,s]},[]);return new at(i,e,t)}var le=class{constructor(e,i,t){this.segmentGroup=e,this.processChildren=i,this.index=t}};function Ji(n,e,i){if(n.isAbsolute)return new le(e,!0,0);if(!i)return new le(e,!1,NaN);if(i.parent===null)return new le(i,!0,0);let t=st(n.commands[0])?0:1,r=i.segments.length-1+t;return Qi(i,r,n.numberOfDoubleDots)}function Qi(n,e,i){let t=n,r=e,s=i;for(;s>r;){if(s-=r,t=t.parent,!t)throw new M(4005,!1);r=t.segments.length}return new le(t,!1,r-s)}function Xi(n){return xe(n[0])?n[0].outlets:{[m]:n}}function jr(n,e,i){if(n||(n=new y([],{})),n.segments.length===0&&n.hasChildren())return Oe(n,e,i);let t=es(n,e,i),r=i.slice(t.commandIndex);if(t.match&&t.pathIndexs!==m)&&n.children[m]&&n.numberOfChildren===1&&n.children[m].segments.length===0){let s=Oe(n.children[m],e,i);return new y(n.segments,s.children)}return Object.entries(t).forEach(([s,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(r[s]=jr(n.children[s],e,a))}),Object.entries(n.children).forEach(([s,a])=>{t[s]===void 0&&(r[s]=a)}),new y(n.segments,r)}}function es(n,e,i){let t=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let a=n.segments[r],o=i[t];if(xe(o))break;let c=`${o}`,l=t0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Cr(c,l,a))return s;t+=2}else{if(!Cr(c,{},a))return s;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function en(n,e,i){let t=n.segments.slice(0,e),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(e[i]=en(new y([],{}),0,t))}),e}function wr(n){let e={};return Object.entries(n).forEach(([i,t])=>e[i]=`${t}`),e}function Cr(n,e,i){return n==i.path&&U(e,i.parameters)}var Ie="imperative",P=class{constructor(e,i){this.id=e,this.url=i}},Ne=class extends P{constructor(e,i,t="imperative",r=null){super(e,i),this.type=0,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},X=class extends P{constructor(e,i,t){super(e,i),this.urlAfterRedirects=t,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},q=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},ee=class extends P{constructor(e,i,t,r){super(e,i),this.reason=t,this.code=r,this.type=16}},je=class extends P{constructor(e,i,t,r){super(e,i),this.error=t,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},ot=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},tn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},nn=class extends P{constructor(e,i,t,r,s){super(e,i),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},rn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},sn=class extends P{constructor(e,i,t,r){super(e,i),this.urlAfterRedirects=t,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},an=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},on=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},ln=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},cn=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},un=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},dn=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Ue=class{},Le=class{constructor(e){this.url=e}};var hn=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new pt,this.attachRef=null}},pt=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){let s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){let r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new hn,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),lt=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=pn(e,this._root);return i?i.children.map(t=>t.value):[]}firstChild(e){let i=pn(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=fn(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return fn(e,this._root).map(i=>i.value)}};function pn(n,e){if(n===e.value)return e;for(let i of e.children){let t=pn(n,i);if(t)return t}return null}function fn(n,e){if(n===e.value)return[e];for(let i of e.children){let t=fn(n,i);if(t.length)return t.unshift(e),t}return[]}var E=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function oe(n){let e={};return n&&n.children.forEach(i=>e[i.value.outlet]=i),e}var ct=class extends lt{constructor(e,i){super(e),this.snapshot=i,Rn(this,e)}toString(){return this.snapshot.toString()}};function Ur(n,e){let i=ns(n,e),t=new T([new J("",{})]),r=new T({}),s=new T({}),a=new T({}),o=new T(""),c=new he(t,r,a,o,s,m,e,i.root);return c.snapshot=i.root,new ct(new E(c,[]),i)}function ns(n,e){let i={},t={},r={},s="",a=new _e([],i,r,s,t,m,e,null,{});return new ut("",new E(a,[]))}var he=class{constructor(e,i,t,r,s,a,o,c){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=s,this.outlet=a,this.component=o,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(w(l=>l[Fe]))??f(void 0),this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(w(e=>ue(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(e=>ue(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function kn(n,e,i="emptyOnly"){let t,{routeConfig:r}=n;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:h(h({},e.params),n.params),data:h(h({},e.data),n.data),resolve:h(h(h(h({},n.data),e.data),r?.data),n._resolvedData)}:t={params:n.params,data:n.data,resolve:h(h({},n.data),n._resolvedData??{})},r&&_r(r)&&(t.resolve[Fe]=r.title),t}var _e=class{get title(){return this.data?.[Fe]}constructor(e,i,t,r,s,a,o,c,l){this.url=e,this.params=i,this.queryParams=t,this.fragment=r,this.data=s,this.outlet=a,this.component=o,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ue(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ue(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},ut=class extends lt{constructor(e,i){super(i),this.url=e,Rn(this,i)}toString(){return Lr(this._root)}};function Rn(n,e){e.value._routerState=n,e.children.forEach(i=>Rn(n,i))}function Lr(n){let e=n.children.length>0?` { ${n.children.map(Lr).join(", ")} } `:"";return`${n.value}${e}`}function Wt(n){if(n.snapshot){let e=n.snapshot,i=n._futureSnapshot;n.snapshot=i,U(e.queryParams,i.queryParams)||n.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&n.fragmentSubject.next(i.fragment),U(e.params,i.params)||n.paramsSubject.next(i.params),Ii(e.url,i.url)||n.urlSubject.next(i.url),U(e.data,i.data)||n.dataSubject.next(i.data)}else n.snapshot=n._futureSnapshot,n.dataSubject.next(n._futureSnapshot.data)}function gn(n,e){let i=U(n.params,e.params)&&ji(n.url,e.url),t=!n.parent!=!e.parent;return i&&!t&&(!n.parent||gn(n.parent,e.parent))}function _r(n){return typeof n.title=="string"||n.title===null}var He=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=m,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=g(pt),this.location=g(Yn),this.changeDetector=g(Ot),this.environmentInjector=g(Ke),this.inputBinder=g(En,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:r,previousValue:s}=t.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=t;let s=this.location,o=t.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,l=new mn(t,c,s.injector);this.activated=s.createComponent(o,{index:s.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=Vn({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qn]});let n=e;return n})(),mn=class{constructor(e,i,t){this.route=e,this.childContexts=i,this.parent=t}get(e,i){return e===he?this.route:e===pt?this.childContexts:this.parent.get(e,i)}},En=new D("");function rs(n,e,i){let t=$e(n,e._root,i?i._root:void 0);return new ct(t,e)}function $e(n,e,i){if(i&&n.shouldReuseRoute(e.value,i.value.snapshot)){let t=i.value;t._futureSnapshot=e.value;let r=is(n,e,i);return new E(t,r)}else{if(n.shouldAttach(e.value)){let s=n.retrieve(e.value);if(s!==null){let a=s.route;return a.value._futureSnapshot=e.value,a.children=e.children.map(o=>$e(n,o)),a}}let t=ss(e.value),r=e.children.map(s=>$e(n,s));return new E(t,r)}}function is(n,e,i){return e.children.map(t=>{for(let r of i.children)if(n.shouldReuseRoute(t.value,r.value.snapshot))return $e(n,t,r);return $e(n,t)})}function ss(n){return new he(new T(n.url),new T(n.params),new T(n.queryParams),new T(n.fragment),new T(n.data),n.outlet,n.component,n)}var $r="ngNavigationCancelingError";function zr(n,e){let{redirectTo:i,navigationBehaviorOptions:t}=de(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=Fr(!1,0,e);return r.url=i,r.navigationBehaviorOptions=t,r}function Fr(n,e,i){let t=new Error("NavigationCancelingError: "+(n||""));return t[$r]=!0,t.cancellationCode=e,i&&(t.url=i),t}function as(n){return Hr(n)&&de(n.url)}function Hr(n){return n&&n[$r]}var os=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["ng-component"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He],encapsulation:2});let n=e;return n})();function ls(n,e){return n.providers&&!n._injector&&(n._injector=er(n.providers,e,`Route: ${n.path}`)),n._injector??e}function Tn(n){let e=n.children&&n.children.map(Tn),i=e?R(h({},n),{children:e}):h({},n);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==m&&(i.component=os),i}function L(n){return n.outlet||m}function cs(n,e){let i=n.filter(t=>L(t)===e);return i.push(...n.filter(t=>L(t)!==e)),i}function Be(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let e=n.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var us=(n,e,i,t)=>w(r=>(new vn(e,r.targetRouterState,r.currentRouterState,i,t).activate(n),r)),vn=class{constructor(e,i,t,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,t,e),Wt(this.futureState.root),this.activateChildRoutes(i,t,e)}deactivateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{let a=s.value.outlet;this.deactivateRoutes(s,r[a],t),delete r[a]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,t)})}deactivateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let a=t.getContext(r.outlet);a&&this.deactivateChildRoutes(e,i,a.children)}else this.deactivateChildRoutes(e,i,t);else s&&this.deactivateRouteAndItsChildren(i,t)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);if(t&&t.outlet){let a=t.outlet.detach(),o=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:a,route:e,contexts:o})}}deactivateRouteAndOutlet(e,i){let t=i.getContext(e.value.outlet),r=t&&e.value.component?t.children:i,s=oe(e);for(let a of Object.keys(s))this.deactivateRouteAndItsChildren(s[a],r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,i,t){let r=oe(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],t),this.forwardEvent(new dn(s.value.snapshot))}),e.children.length&&this.forwardEvent(new cn(e.value.snapshot))}activateRoutes(e,i,t){let r=e.value,s=i?i.value:null;if(Wt(r),r===s)if(r.component){let a=t.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,a.children)}else this.activateChildRoutes(e,i,t);else if(r.component){let a=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let o=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),a.children.onOutletReAttached(o.contexts),a.attachRef=o.componentRef,a.route=o.route.value,a.outlet&&a.outlet.attach(o.componentRef,o.route.value),Wt(o.route.value),this.activateChildRoutes(e,null,a.children)}else{let o=Be(r.snapshot);a.attachRef=null,a.route=r,a.injector=o,a.outlet&&a.outlet.activateWith(r,a.injector),this.activateChildRoutes(e,null,a.children)}}else this.activateChildRoutes(e,null,t)}},dt=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},ce=class{constructor(e,i){this.component=e,this.route=i}};function ds(n,e,i){let t=n._root,r=e?e._root:null;return Ae(t,r,i,[t.value])}function hs(n){let e=n.routeConfig?n.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:n,guards:e}}function fe(n,e){let i=Symbol(),t=e.get(n,i);return t===i?typeof n=="function"&&!Bn(n)?n:e.get(n):t}function Ae(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=oe(e);return n.children.forEach(a=>{ps(a,s[a.value.outlet],i,t.concat([a.value]),r),delete s[a.value.outlet]}),Object.entries(s).forEach(([a,o])=>Pe(o,i.getContext(a),r)),r}function ps(n,e,i,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=n.value,a=e?e.value:null,o=i?i.getContext(n.value.outlet):null;if(a&&s.routeConfig===a.routeConfig){let c=fs(a,s,s.routeConfig.runGuardsAndResolvers);c?r.canActivateChecks.push(new dt(t)):(s.data=a.data,s._resolvedData=a._resolvedData),s.component?Ae(n,e,o?o.children:null,t,r):Ae(n,e,i,t,r),c&&o&&o.outlet&&o.outlet.isActivated&&r.canDeactivateChecks.push(new ce(o.outlet.component,a))}else a&&Pe(e,o,r),r.canActivateChecks.push(new dt(t)),s.component?Ae(n,null,o?o.children:null,t,r):Ae(n,null,i,t,r);return r}function fs(n,e,i){if(typeof i=="function")return i(n,e);switch(i){case"pathParamsChange":return!Q(n.url,e.url);case"pathParamsOrQueryParamsChange":return!Q(n.url,e.url)||!U(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!gn(n,e)||!U(n.queryParams,e.queryParams);case"paramsChange":default:return!gn(n,e)}}function Pe(n,e,i){let t=oe(n),r=n.value;Object.entries(t).forEach(([s,a])=>{r.component?e?Pe(a,e.children.getContext(s),i):Pe(a,null,i):Pe(a,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new ce(e.outlet.component,r)):i.canDeactivateChecks.push(new ce(null,r)):i.canDeactivateChecks.push(new ce(null,r))}function Ve(n){return typeof n=="function"}function gs(n){return typeof n=="boolean"}function ms(n){return n&&Ve(n.canLoad)}function vs(n){return n&&Ve(n.canActivate)}function ys(n){return n&&Ve(n.canActivateChild)}function ws(n){return n&&Ve(n.canDeactivate)}function Cs(n){return n&&Ve(n.canMatch)}function Br(n){return n instanceof Un||n?.name==="EmptyError"}var et=Symbol("INITIAL_VALUE");function pe(){return j(n=>wt(n.map(e=>e.pipe(re(1),Fn(et)))).pipe(w(e=>{for(let i of e)if(i!==!0){if(i===et)return et;if(i===!1||i instanceof V)return i}return!0}),te(e=>e!==et),re(1)))}function bs(n,e){return A(i=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:a}}=i;return a.length===0&&s.length===0?f(R(h({},i),{guardsResult:!0})):Ss(a,t,r,n).pipe(A(o=>o&&gs(o)?Ms(t,s,n,e):f(o)),w(o=>R(h({},i),{guardsResult:o})))})}function Ss(n,e,i,t){return x(n).pipe(A(r=>As(r.component,r.route,i,e,t)),F(r=>r!==!0,!0))}function Ms(n,e,i,t){return x(e).pipe(ye(r=>Ln(Rs(r.route.parent,t),ks(r.route,t),Ts(n,r.path,i),Es(n,r.route,i))),F(r=>r!==!0,!0))}function ks(n,e){return n!==null&&e&&e(new un(n)),f(!0)}function Rs(n,e){return n!==null&&e&&e(new ln(n)),f(!0)}function Es(n,e,i){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return f(!0);let r=t.map(s=>Ct(()=>{let a=Be(e)??i,o=fe(s,a),c=vs(o)?o.canActivate(e,n):Y(a,()=>o(e,n));return K(c).pipe(F())}));return f(r).pipe(pe())}function Ts(n,e,i){let t=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(a=>hs(a)).filter(a=>a!==null).map(a=>Ct(()=>{let o=a.guards.map(c=>{let l=Be(a.node)??i,d=fe(c,l),p=ys(d)?d.canActivateChild(t,n):Y(l,()=>d(t,n));return K(p).pipe(F())});return f(o).pipe(pe())}));return f(s).pipe(pe())}function As(n,e,i,t,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return f(!0);let a=s.map(o=>{let c=Be(e)??r,l=fe(o,c),d=ws(l)?l.canDeactivate(n,e,i,t):Y(c,()=>l(n,e,i,t));return K(d).pipe(F())});return f(a).pipe(pe())}function Ds(n,e,i,t){let r=e.canLoad;if(r===void 0||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=ms(o)?o.canLoad(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}function Vr(n){return Nn(k(e=>{if(de(e))throw zr(n,e)}),w(e=>e===!0))}function Os(n,e,i,t){let r=e.canMatch;if(!r||r.length===0)return f(!0);let s=r.map(a=>{let o=fe(a,n),c=Cs(o)?o.canMatch(e,i):Y(n,()=>o(e,i));return K(c)});return f(s).pipe(pe(),Vr(t))}var ze=class{constructor(e){this.segmentGroup=e||null}},ht=class extends Error{constructor(e){super(),this.urlTree=e}};function ae(n){return ve(new ze(n))}function Is(n){return ve(new M(4e3,!1))}function Ps(n){return ve(Fr(!1,3))}var yn=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let t=[],r=i.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return f(t);if(r.numberOfChildren>1||!r.children[m])return Is(e.redirectTo);r=r.children[m]}}applyRedirectCommands(e,i,t){let r=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,t);if(i.startsWith("/"))throw new ht(r);return r}applyRedirectCreateUrlTree(e,i,t,r){let s=this.createSegmentGroup(e,i.root,t,r);return new V(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let t={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s.startsWith(":")){let o=s.substring(1);t[r]=i[o]}else t[r]=s}),t}createSegmentGroup(e,i,t,r){let s=this.createSegments(e,i.segments,t,r),a={};return Object.entries(i.children).forEach(([o,c])=>{a[o]=this.createSegmentGroup(e,c,t,r)}),new y(s,a)}createSegments(e,i,t,r){return i.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,r):this.findOrReturn(s,t))}findPosParam(e,i,t){let r=t[i.path.substring(1)];if(!r)throw new M(4001,!1);return r}findOrReturn(e,i){let t=0;for(let r of i){if(r.path===e.path)return i.splice(t),r;t++}return e}},wn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xs(n,e,i,t,r){let s=An(n,e,i);return s.matched?(t=ls(e,t),Os(t,e,i,r).pipe(w(a=>a===!0?s:h({},wn)))):f(s)}function An(n,e,i){if(e.path==="**")return Ns(i);if(e.path==="")return e.pathMatch==="full"&&(n.hasChildren()||i.length>0)?h({},wn):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||Oi)(i,n,e);if(!r)return h({},wn);let s={};Object.entries(r.posParams??{}).forEach(([o,c])=>{s[o]=c.path});let a=r.consumed.length>0?h(h({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:a,positionalParamSegments:r.posParams??{}}}function Ns(n){return{matched:!0,parameters:n.length>0?Mr(n).parameters:{},consumedSegments:n,remainingSegments:[],positionalParamSegments:{}}}function br(n,e,i,t){return i.length>0&&Ls(n,i,t)?{segmentGroup:new y(e,Us(t,new y(i,n.children))),slicedSegments:[]}:i.length===0&&_s(n,i,t)?{segmentGroup:new y(n.segments,js(n,e,i,t,n.children)),slicedSegments:i}:{segmentGroup:new y(n.segments,n.children),slicedSegments:i}}function js(n,e,i,t,r){let s={};for(let a of t)if(ft(n,i,a)&&!r[L(a)]){let o=new y([],{});s[L(a)]=o}return h(h({},r),s)}function Us(n,e){let i={};i[m]=e;for(let t of n)if(t.path===""&&L(t)!==m){let r=new y([],{});i[L(t)]=r}return i}function Ls(n,e,i){return i.some(t=>ft(n,e,t)&&L(t)!==m)}function _s(n,e,i){return i.some(t=>ft(n,e,t))}function ft(n,e,i){return(n.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function $s(n,e,i,t){return L(n)!==t&&(t===m||!ft(e,i,n))?!1:An(e,n,i).matched}function zs(n,e,i){return e.length===0&&!n.children[i]}var Cn=class{};function Fs(n,e,i,t,r,s,a="emptyOnly"){return new bn(n,e,i,t,r,a,s).recognize()}var Hs=31,bn=class{constructor(e,i,t,r,s,a,o){this.injector=e,this.configLoader=i,this.rootComponentType=t,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=a,this.urlSerializer=o,this.applyRedirects=new yn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}recognize(){let e=br(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(w(i=>{let t=new _e([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,{},m,this.rootComponentType,null,{}),r=new E(t,i),s=new ut("",r),a=Zi(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(a),this.inheritParamsAndData(s._root,null),{state:s,tree:a}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,m).pipe(ne(t=>{if(t instanceof ht)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ze?this.noMatchError(t):t}))}inheritParamsAndData(e,i){let t=e.value,r=kn(t,i,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s,t))}processSegmentGroup(e,i,t,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,i,t):this.processSegment(e,i,t,t.segments,r,!0).pipe(w(s=>s instanceof E?[s]:[]))}processChildren(e,i,t){let r=[];for(let s of Object.keys(t.children))s==="primary"?r.unshift(s):r.push(s);return x(r).pipe(ye(s=>{let a=t.children[s],o=cs(i,s);return this.processSegmentGroup(e,o,a,s)}),zn((s,a)=>(s.push(...a),s)),bt(null),$n(),A(s=>{if(s===null)return ae(t);let a=qr(s);return Bs(a),f(a)}))}processSegment(e,i,t,r,s,a){return x(i).pipe(ye(o=>this.processSegmentAgainstRoute(o._injector??e,i,o,t,r,s,a).pipe(ne(c=>{if(c instanceof ze)return f(null);throw c}))),F(o=>!!o),ne(o=>{if(Br(o))return zs(t,r,s)?f(new Cn):ae(t);throw o}))}processSegmentAgainstRoute(e,i,t,r,s,a,o){return $s(t,r,s,a)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,t,s,a):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,t,s,a):ae(r):ae(r)}expandSegmentAgainstRouteUsingRedirect(e,i,t,r,s,a){let{matched:o,consumedSegments:c,positionalParamSegments:l,remainingSegments:d}=An(i,r,s);if(!o)return ae(i);r.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Hs&&(this.allowRedirects=!1));let p=this.applyRedirects.applyRedirectCommands(c,r.redirectTo,l);return this.applyRedirects.lineralizeSegments(r,p).pipe(A(v=>this.processSegment(e,t,i,v.concat(d),a,!1)))}matchSegmentAgainstRoute(e,i,t,r,s){let a=xs(i,t,r,e,this.urlSerializer);return t.path==="**"&&(i.children={}),a.pipe(j(o=>o.matched?(e=t._injector??e,this.getChildConfig(e,t,r).pipe(j(({routes:c})=>{let l=t._loadedInjector??e,{consumedSegments:d,remainingSegments:p,parameters:v}=o,S=new _e(d,v,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,qs(t),L(t),t.component??t._loadedComponent??null,t,Ks(t)),{segmentGroup:ge,slicedSegments:me}=br(i,d,p,c);if(me.length===0&&ge.hasChildren())return this.processChildren(l,c,ge).pipe(w(G=>G===null?null:new E(S,G)));if(c.length===0&&me.length===0)return f(new E(S,[]));let mt=L(t)===s;return this.processSegment(l,c,ge,me,mt?m:s,!0).pipe(w(G=>new E(S,G instanceof E?[G]:[])))}))):ae(i)))}getChildConfig(e,i,t){return i.children?f({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?f({routes:i._loadedRoutes,injector:i._loadedInjector}):Ds(e,i,t,this.urlSerializer).pipe(A(r=>r?this.configLoader.loadChildren(e,i).pipe(k(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):Ps(i))):f({routes:[],injector:e})}};function Bs(n){n.sort((e,i)=>e.value.outlet===m?-1:i.value.outlet===m?1:e.value.outlet.localeCompare(i.value.outlet))}function Vs(n){let e=n.value.routeConfig;return e&&e.path===""}function qr(n){let e=[],i=new Set;for(let t of n){if(!Vs(t)){e.push(t);continue}let r=e.find(s=>t.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...t.children),i.add(r)):e.push(t)}for(let t of i){let r=qr(t.children);e.push(new E(t.value,r))}return e.filter(t=>!i.has(t))}function qs(n){return n.data||{}}function Ks(n){return n.resolve||{}}function Gs(n,e,i,t,r,s){return A(a=>Fs(n,e,i,t,a.extractedUrl,r,s).pipe(w(({state:o,tree:c})=>R(h({},a),{targetSnapshot:o,urlAfterRedirects:c}))))}function Ws(n,e){return A(i=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=i;if(!r.length)return f(i);let s=new Set(r.map(c=>c.route)),a=new Set;for(let c of s)if(!a.has(c))for(let l of Kr(c))a.add(l);let o=0;return x(a).pipe(ye(c=>s.has(c)?Zs(c,t,n,e):(c.data=kn(c,c.parent,n).resolve,f(void 0))),k(()=>o++),St(1),A(c=>o===a.size?f(i):Z))})}function Kr(n){let e=n.children.map(i=>Kr(i)).flat();return[n,...e]}function Zs(n,e,i,t){let r=n.routeConfig,s=n._resolve;return r?.title!==void 0&&!_r(r)&&(s[Fe]=r.title),Ys(s,n,e,t).pipe(w(a=>(n._resolvedData=a,n.data=kn(n,n.parent,i).resolve,null)))}function Ys(n,e,i,t){let r=Jt(n);if(r.length===0)return f({});let s={};return x(r).pipe(A(a=>Js(n[a],e,i,t).pipe(F(),k(o=>{s[a]=o}))),St(1),_n(s),ne(a=>Br(a)?Z:ve(a)))}function Js(n,e,i,t){let r=Be(e)??t,s=fe(n,r),a=s.resolve?s.resolve(e,i):Y(r,()=>s(e,i));return K(a)}function Zt(n){return j(e=>{let i=n(e);return i?x(i).pipe(w(()=>e)):f(e)})}var Gr=(()=>{let e=class e{buildTitle(t){let r,s=t.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(a=>a.outlet===m);return r}getResolvedTitleForRoute(t){return t.data[Fe]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(Qs))(),providedIn:"root"});let n=e;return n})(),Qs=(()=>{let e=class e extends Gr{constructor(t){super(),this.title=t}updateTitle(t){let r=this.buildTitle(t);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(b(qt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Dn=new D("",{providedIn:"root",factory:()=>({})}),On=new D("ROUTES"),Xs=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(It)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return f(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let r=K(t.loadComponent()).pipe(w(Wr),k(a=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=a}),qe(()=>{this.componentLoaders.delete(t)})),s=new yt(r,()=>new W).pipe(vt());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return f({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let a=ea(r,this.compiler,t,this.onLoadEndListener).pipe(qe(()=>{this.childrenLoaders.delete(r)})),o=new yt(a,()=>new W).pipe(vt());return this.childrenLoaders.set(r,o),o}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function ea(n,e,i,t){return K(n.loadChildren()).pipe(w(Wr),A(r=>r instanceof Xn||Array.isArray(r)?f(r):x(e.compileModuleAsync(r))),w(r=>{t&&t(n);let s,a,o=!1;return Array.isArray(r)?(a=r,o=!0):(s=r.create(i).injector,a=s.get(On,[],{optional:!0,self:!0}).flat()),{routes:a.map(Tn),injector:s}}))}function ta(n){return n&&typeof n=="object"&&"default"in n}function Wr(n){return ta(n)?n.default:n}var In=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(na))(),providedIn:"root"});let n=e;return n})(),na=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),ra=new D("");var ia=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new W,this.transitionAbortSubject=new W,this.configLoader=g(Xs),this.environmentInjector=g(Ke),this.urlSerializer=g(Mn),this.rootContexts=g(pt),this.location=g(Ze),this.inputBindingEnabled=g(En,{optional:!0})!==null,this.titleStrategy=g(Gr),this.options=g(Dn,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(In),this.createViewTransition=g(ra,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>f(void 0),this.rootComponentType=null;let t=s=>this.events.next(new an(s)),r=s=>this.events.next(new on(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let r=++this.navigationId;this.transitions?.next(R(h(h({},this.transitions.value),t),{id:r}))}setupNavigations(t,r,s){return this.transitions=new T({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ie,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(te(a=>a.id!==0),w(a=>R(h({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),j(a=>{this.currentTransition=a;let o=!1,c=!1;return f(a).pipe(k(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?R(h({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),j(l=>{let d=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),p=l.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!d&&p!=="reload"){let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.rawUrl),v,0)),l.resolve(null),Z}if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return f(l).pipe(j(v=>{let S=this.transitions?.getValue();return this.events.next(new Ne(v.id,this.urlSerializer.serialize(v.extractedUrl),v.source,v.restoredState)),S!==this.transitions?.getValue()?Z:Promise.resolve(v)}),Gs(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),k(v=>{a.targetSnapshot=v.targetSnapshot,a.urlAfterRedirects=v.urlAfterRedirects,this.currentNavigation=R(h({},this.currentNavigation),{finalUrl:v.urlAfterRedirects});let S=new ot(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(S)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:v,extractedUrl:S,source:ge,restoredState:me,extras:mt}=l,G=new Ne(v,this.urlSerializer.serialize(S),ge,me);this.events.next(G);let ri=Ur(S,this.rootComponentType).snapshot;return this.currentTransition=a=R(h({},l),{targetSnapshot:ri,urlAfterRedirects:S,extras:R(h({},mt),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=S,f(a)}else{let v="";return this.events.next(new ee(l.id,this.urlSerializer.serialize(l.extractedUrl),v,1)),l.resolve(null),Z}}),k(l=>{let d=new tn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),w(l=>(this.currentTransition=a=R(h({},l),{guards:ds(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),a)),bs(this.environmentInjector,l=>this.events.next(l)),k(l=>{if(a.guardsResult=l.guardsResult,de(l.guardsResult))throw zr(this.urlSerializer,l.guardsResult);let d=new nn(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(d)}),te(l=>l.guardsResult?!0:(this.cancelNavigationTransition(l,"",3),!1)),Zt(l=>{if(l.guards.canActivateChecks.length)return f(l).pipe(k(d=>{let p=new rn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}),j(d=>{let p=!1;return f(d).pipe(Ws(this.paramsInheritanceStrategy,this.environmentInjector),k({next:()=>p=!0,complete:()=>{p||this.cancelNavigationTransition(d,"",2)}}))}),k(d=>{let p=new sn(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(p)}))}),Zt(l=>{let d=p=>{let v=[];p.routeConfig?.loadComponent&&!p.routeConfig._loadedComponent&&v.push(this.configLoader.loadComponent(p.routeConfig).pipe(k(S=>{p.component=S}),w(()=>{})));for(let S of p.children)v.push(...d(S));return v};return wt(d(l.targetSnapshot.root)).pipe(bt(),re(1))}),Zt(()=>this.afterPreactivation()),j(()=>{let{currentSnapshot:l,targetSnapshot:d}=a,p=this.createViewTransition?.(this.environmentInjector,l.root,d.root);return p?x(p).pipe(w(()=>a)):f(a)}),w(l=>{let d=rs(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=a=R(h({},l),{targetRouterState:d}),this.currentNavigation.targetRouterState=d,a}),k(()=>{this.events.next(new Ue)}),us(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),re(1),k({next:l=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new X(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{o=!0}}),Hn(this.transitionAbortSubject.pipe(k(l=>{throw l}))),qe(()=>{if(!o&&!c){let l="";this.cancelNavigationTransition(a,l,1)}this.currentNavigation?.id===a.id&&(this.currentNavigation=null)}),ne(l=>{if(c=!0,Hr(l))this.events.next(new q(a.id,this.urlSerializer.serialize(a.extractedUrl),l.message,l.cancellationCode)),as(l)?this.events.next(new Le(l.url)):a.resolve(!1);else{this.events.next(new je(a.id,this.urlSerializer.serialize(a.extractedUrl),l,a.targetSnapshot??void 0));try{a.resolve(t.errorHandler(l))}catch(d){a.reject(d)}}return Z}))}))}cancelNavigationTransition(t,r,s){let a=new q(t.id,this.urlSerializer.serialize(t.extractedUrl),r,s);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function sa(n){return n!==Ie}var aa=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(oa))(),providedIn:"root"});let n=e;return n})(),Sn=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},oa=(()=>{let e=class e extends Sn{};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),Zr=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>(()=>g(la))(),providedIn:"root"});let n=e;return n})(),la=(()=>{let e=class e extends Zr{constructor(){super(...arguments),this.location=g(Ze),this.urlSerializer=g(Mn),this.options=g(Dn,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(In),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new V,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ur(this.currentUrlTree,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{r.type==="popstate"&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof Ne)this.stateMemento=this.createStateMemento();else if(t instanceof ee)this.rawUrlTree=r.initialUrl;else if(t instanceof ot){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(s,r)}}else t instanceof Ue?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof q&&(t.code===3||t.code===2)?this.restoreHistory(r):t instanceof je?this.restoreHistory(r,!0):t instanceof X&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){let s=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let a=this.browserPageId,o=h(h({},r.extras.state),this.generateNgRouterState(r.id,a));this.location.replaceState(s,"",o)}else{let a=h(h({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",a)}}restoreHistory(t,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,a=this.currentPageId-s;a!==0?this.location.historyGo(a):this.currentUrlTree===t.finalUrl&&a===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(s){return(t||(t=kt(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})(),De=function(n){return n[n.COMPLETE=0]="COMPLETE",n[n.FAILED=1]="FAILED",n[n.REDIRECTING=2]="REDIRECTING",n}(De||{});function ca(n,e){n.events.pipe(te(i=>i instanceof X||i instanceof q||i instanceof je||i instanceof ee),w(i=>i instanceof X||i instanceof ee?De.COMPLETE:(i instanceof q?i.code===0||i.code===1:!1)?De.REDIRECTING:De.FAILED),te(i=>i!==De.REDIRECTING),re(1)).subscribe(()=>{e()})}function ua(n){throw n}var da={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ha={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},gt=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=g(We),this.stateManager=g(Zr),this.options=g(Dn,{optional:!0})||{},this.pendingTasks=g(tr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(ia),this.urlSerializer=g(Mn),this.location=g(Ze),this.urlHandlingStrategy=g(In),this._events=new W,this.errorHandler=this.options.errorHandler||ua,this.navigated=!1,this.routeReuseStrategy=g(aa),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(On,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(En,{optional:!0}),this.eventsSubscription=new xn,this.isNgZoneEnabled=g($)instanceof $&&$.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(s!==null&&a!==null){if(this.stateManager.handleRouterEvent(r,a),r instanceof q&&r.code!==0&&r.code!==1)this.navigated=!0;else if(r instanceof X)this.navigated=!0;else if(r instanceof Le){let o=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c={skipLocationChange:s.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||sa(s.source)};this.scheduleNavigation(o,Ie,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}fa(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ie,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)}))}navigateToSyncWithBrowser(t,r,s){let a={replaceUrl:!0},o=s?.navigationId?s:null;if(s){let l=h({},s);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let c=this.parseUrl(t);this.scheduleNavigation(c,r,o,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Tn),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){let{relativeTo:s,queryParams:a,fragment:o,queryParamsHandling:c,preserveFragment:l}=r,d=l?this.currentUrlTree.fragment:o,p=null;switch(c){case"merge":p=h(h({},this.currentUrlTree.queryParams),a);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=a||null}p!==null&&(p=this.removeEmptyProps(p));let v;try{let S=s?s.snapshot:this.routerState.snapshot.root;v=Pr(S)}catch{(typeof t[0]!="string"||!t[0].startsWith("/"))&&(t=[]),v=this.currentUrlTree.root}return xr(v,t,p,d??null)}navigateByUrl(t,r={skipLocationChange:!1}){let s=de(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(a,Ie,null,r)}navigate(t,r={skipLocationChange:!1}){return pa(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,r){let s;if(r===!0?s=h({},da):r===!1?s=h({},ha):s=r,de(t))return vr(this.currentUrlTree,t,s);let a=this.parseUrl(t);return vr(this.currentUrlTree,a,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return a!=null&&(r[s]=a),r},{})}scheduleNavigation(t,r,s,a,o){if(this.disposed)return Promise.resolve(!1);let c,l,d;o?(c=o.resolve,l=o.reject,d=o.promise):d=new Promise((v,S)=>{c=v,l=S});let p=this.pendingTasks.add();return ca(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:c,reject:l,promise:d,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),d.catch(v=>Promise.reject(v))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function pa(n){for(let e=0;ei.\u0275providers)])}function ma(n){return n.routerState.root}function va(){let n=g(Et);return e=>{let i=n.get(Pt);if(e!==i.components[0])return;let t=n.get(gt),r=n.get(ya);n.get(wa)===1&&t.initialNavigation(),n.get(Ca,null,Mt.Optional)?.setUpPreloading(),n.get(ga,null,Mt.Optional)?.init(),t.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var ya=new D("",{factory:()=>new W}),wa=new D("",{providedIn:"root",factory:()=>1});var Ca=new D("");var u=function(n){return n.interview="interview",n.all="all",n}(u||{});var Jr=["Easy","Medium","Hard"];function _(n){return new Map([...n.entries()].sort((e,i)=>{let t=Jr.indexOf(e[1].difficulty),r=Jr.indexOf(i[1].difficulty);return t-r}))}var ba=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:"Easy",developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:"Easy",developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[u.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:"Easy",developer:"officialbidisha",tags:[u.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:"Easy",developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:"Easy",developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[u.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:"Easy",developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:"Easy",developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:"Easy",developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:"Medium",developer:"Sukomal07",tags:[],isNew:!0}]]),Sa=_(ba);var Ma=new Map([["counter",{title:"Counter",link:"counter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[u.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:"Easy",developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:"Easy",developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:"Easy",developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:"Easy",developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[u.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:"Easy",developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:"Easy",developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[u.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:"Easy",developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:"Easy",developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:"Easy",developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:"Easy",developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:"Easy",developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:"Easy",developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:"Easy",developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:"Easy",developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:"Easy",developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:"Medium",developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:"Medium",developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:"Medium",developer:"shruti-sen2004",tags:[u.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:"Medium",developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[u.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:"Medium",developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:"Medium",developer:"srijanB7",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:"Medium",developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:"Medium",developer:"Kei-K23",tags:[u.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:"Medium",developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:"Medium",developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:"Medium",developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:"Medium",developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:"Medium",developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:"Hard",developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}]]),ka=_(Ma);var Ra=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:"Easy",developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:"Easy",developer:"Bhushan1019",tags:[u.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:"Easy",tags:[u.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:"Easy",tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:"Easy",developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:"Easy",developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:"Easy",developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:"Easy",developer:"deepakrajkranti",tags:[u.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:"Easy",developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:"Easy",developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:"Easy",developer:"NikhilJHA01",tags:[u.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:"Easy",developer:"rashidtvmr",tags:[u.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:"Easy",developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:"Easy",developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:"Easy",developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:"Easy",developer:"codechitra",tags:[u.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:"Medium",developer:"liza",tags:[u.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:"Medium",developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:"Medium",developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:"Medium",developer:"rishabhm05",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:"Medium",developer:"deepu0",tags:[u.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:"Medium",developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:"Medium",developer:"deepakrajkranti",tags:[u.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:"Medium",developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:"Medium",developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:"Medium",developer:"rashidtvmr",tags:[u.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:"Medium",developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:"Medium",developer:"AbhilashMadi",tags:[u.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:"Medium",developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:"Medium",developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:"Hard",developer:"SujithGunasekaran",tags:[u.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:"Hard",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:"Medium",developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:"Medium",developer:"DeePaK-HeeRaKaRi",tags:[u.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:"Medium",developer:"ayush-dutt-sharma",tags:[u.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:"Hard",developer:"rishabhm05",tags:[u.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:"Hard",developer:"deepu0",tags:[u.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:"Hard",developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:"Easy",developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:"Medium",developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:"Medium",developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:"Medium",developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:"Medium",developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:"Medium",developer:"Akshay-Omkar",tags:[u.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:"Easy",developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:"Medium",developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:"Medium",developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:"Hard",developer:"sadanandpai",tags:[u.interview],isNew:!0}]]),Ea=_(Ra);var Ta=new Map([["counter",{title:"Counter",link:"/counter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:"Easy",developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:"Easy",developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:"Easy",developer:"arpansaha13",tags:[u.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:"Easy",developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:"Medium",developer:"sadanandpai",tags:[u.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:"Medium",developer:"arpansaha13",tags:[u.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:"Medium",developer:"jaydadhaniya",tags:[u.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:"Medium",developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:"Medium",developer:"Shardik04",tags:[u.interview]}]]),Aa=_(Ta);var Da=new Map([["counter",{title:"Counter",link:"counter",difficulty:"Easy",developer:"sadanandpai",tags:[u.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview]}],["stack",{title:"Stack",link:"stack",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:"Easy",developer:"pankajparkar",tags:[u.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:"Easy",developer:"pankajparkar",tags:[],isNew:!0}]]),Pn=_(Da);var Qr=(()=>{let e=class e{constructor(){this.title="Challenge",this.homeURL=xt()?"http://localhost:6010/frontend-mini-challenges/":"/frontend-mini-challenges/",this.backURL=xt()?"http://localhost:6010/frontend-mini-challenges/#/angular/":"/frontend-mini-challenges/#/angular/",this.angularSourceCodeBaseURL="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/angular/src/app/challenges/"}ngOnInit(){this.angularSourceCodeURL=this.angularSourceCodeBaseURL+this.link}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-navbar"]],inputs:{title:"title",link:"link"},standalone:!0,features:[B],decls:26,vars:4,consts:[[1,"challenge-navbar"],[1,"left"],[1,"back",3,"href"],[1,"logo",3,"href"],["src","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png","alt","logo"],[1,"title"],[1,"right"],[1,"responsive_nav"],[1,"hamburger"],["type","checkbox"],[1,"line"],[1,"cross","mobile"],[1,"menu"],["target","_blank","rel","noreferrer","title","Source Code",1,"source-code",3,"href"],["src","assets/icons/code.svg","alt","source code"],[1,"mobile"],["target","blank","title","Github Repo","href","https://github.com/sadanandpai/frontend-mini-challenges/",1,"github"],["src","assets/icons/github.svg","alt","github repo"]],template:function(r,s){r&1&&(O(0,"nav",0)(1,"div",1)(2,"a",2),se(3," < "),z(),O(4,"a",3),I(5,"img",4),z()(),O(6,"h1",5),se(7),z(),O(8,"div",6)(9,"div",7)(10,"div",8),I(11,"input",9)(12,"div",10)(13,"div",10)(14,"div",10),O(15,"div",11),se(16,"\u2715"),z(),O(17,"section",12)(18,"a",13),I(19,"img",14),O(20,"span",15),se(21,"Source code"),z()(),O(22,"a",16),I(23,"img",17),O(24,"span",15),se(25,"Github Repo"),z()()()()()()()),r&2&&(Se(2),ie("href",s.backURL,Ge),Se(2),ie("href",s.homeURL,Ge),Se(3),Qn(s.title),Se(11),ie("href",s.angularSourceCodeURL,Ge))},styles:[".mobile[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%]{display:flex;gap:1rem;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1rem;box-shadow:0 4px 4px #0000001a}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex:1;gap:.5rem;align-items:center}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .back[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;color:#000;transform:scaleY(2)}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{height:40px}.challenge-navbar[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;color:var(--text-body);font-weight:500}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{flex:1}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:30px;height:30px}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center;text-decoration:none;gap:1rem}.challenge-navbar[_ngcontent-%COMP%] .right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:end}@media (max-width: 640px){.mobile[_ngcontent-%COMP%]{display:block}.challenge-navbar[_ngcontent-%COMP%]{padding:1rem 1rem 1rem .5rem}.challenge-navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{display:none}.challenge-navbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.25rem}.right[_ngcontent-%COMP%] .responsive_nav[_ngcontent-%COMP%]{display:block;position:relative;margin-left:2rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;position:relative;gap:.25rem}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;width:1.5rem;height:1.5rem;opacity:0;position:absolute;z-index:3;margin:0;cursor:pointer}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.line[_ngcontent-%COMP%]{height:2px;width:1.25rem;background-color:#0e0615;border-radius:7px;transform-origin:4px 0px;position:relative;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] div.cross[_ngcontent-%COMP%]{transform:scale(1.4);margin-right:.25rem;z-index:2}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.line[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:checked) ~ div.cross[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.line[_ngcontent-%COMP%]{display:none}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ div.cross[_ngcontent-%COMP%]{display:block}.right[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%]{position:fixed;top:0;right:0;width:100%;height:100vh;flex-direction:column;background-color:#fff;padding:6rem 2rem 2rem;transform:translate(100%);transition:transform .33s ease-in-out;z-index:1}.right[_ngcontent-%COMP%] .hamburger[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .menu[_ngcontent-%COMP%]{transform:none}}"]});let n=e;return n})();var Xr=(()=>{let e=class e{constructor(){this.title="Challenge",this.link="",this.router=g(gt)}ngOnInit(){let t=this.router.url.split("/").at(-1);if(!t)return;let r=Pn.get(t);r&&(this.title=r.title,this.link=r.link)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-challenge-container"]],standalone:!0,features:[B],decls:3,vars:2,consts:[[3,"title","link"],[1,"container"]],template:function(r,s){r&1&&(I(0,"app-navbar",0),O(1,"div",1),I(2,"router-outlet"),z()),r&2&&ie("title",s.title)("link",s.link)},dependencies:[Qr,He],encapsulation:2});let n=e;return n})();var ei=[{path:"",component:Xr,children:[{path:"counter",loadComponent:()=>import("./chunk-P6JRW256.js").then(n=>n.CounterComponent),data:{title:"counter"}},{path:"guess-number",loadComponent:()=>import("./chunk-2GACWZDO.js").then(n=>n.GuessNumberComponent),data:{title:"Guess number"}},{path:"stack",loadComponent:()=>import("./chunk-6UZ3QE7S.js").then(n=>n.StackComponent),data:{title:"Stack"}},{path:"tic-tac-toe",loadComponent:()=>import("./chunk-RYO7AHJW.js").then(n=>n.TicTacToeComponent),data:{title:"Tic tac toe"}},{path:"todo-list",loadComponent:()=>import("./chunk-QSPVKJQN.js").then(n=>n.TodoAppComponent),data:{title:"Todo list"}},{path:"word-count",loadComponent:()=>import("./chunk-4P7VNLHJ.js").then(n=>n.WordCountComponent),data:{title:"Word count"}}]}];var ti={providers:[Yr(ei),{provide:jt,useClass:Ut}]};var ni=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=H({type:e,selectors:[["app-root"]],standalone:!0,features:[B],decls:1,vars:0,template:function(r,s){r&1&&I(0,"router-outlet")},dependencies:[He]});let n=e;return n})();mr(ni,ti).catch(n=>console.error(n)); diff --git a/docs/assets/index-cI21dM8e.js b/docs/assets/index-J6reAlZn.js similarity index 95% rename from docs/assets/index-cI21dM8e.js rename to docs/assets/index-J6reAlZn.js index 3879e9d8f..eece131a8 100644 --- a/docs/assets/index-cI21dM8e.js +++ b/docs/assets/index-J6reAlZn.js @@ -14,7 +14,7 @@ function JS(e,t){for(var n=0;n=0)&&(n[i]=e[i]);return n}function VM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jM(e,t){return e.button===0&&(!t||t==="_self")&&!VM(e)}const $M=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],BM=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function zM(e,t){return sM({basename:t==null?void 0:t.basename,future:qo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:OR({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||UM(),routes:e,mapRouteProperties:NM,window:t==null?void 0:t.window}).initialize()}function UM(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=qo({},t,{errors:HM(t.errors)})),t}function HM(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Qm(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const Mx=w.createContext({isTransitioning:!1}),WM=w.createContext(new Map),KM="startTransition",zy=$o[KM],GM="flushSync",Uy=MR[GM];function qM(e){zy?zy(e):e()}function ka(e){Uy?Uy(e):e()}class XM{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function YM(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=w.useState(n.state),[a,s]=w.useState(),[l,u]=w.useState({isTransitioning:!1}),[c,f]=w.useState(),[d,g]=w.useState(),[S,p]=w.useState(),m=w.useRef(new Map),{v7_startTransition:h}=r||{},y=w.useCallback(C=>{h?qM(C):C()},[h]),v=w.useCallback((C,k)=>{let{deletedFetchers:T,unstable_flushSync:F,unstable_viewTransitionOpts:V}=k;T.forEach(U=>m.current.delete(U)),C.fetchers.forEach((U,Q)=>{U.data!==void 0&&m.current.set(Q,U.data)});let H=n.window==null||typeof n.window.document.startViewTransition!="function";if(!V||H){F?ka(()=>o(C)):y(()=>o(C));return}if(F){ka(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let U=n.window.document.startViewTransition(()=>{ka(()=>o(C))});U.finished.finally(()=>{ka(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})})}),ka(()=>g(U));return}d?(c&&c.resolve(),d.skipTransition(),p({state:C,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(s(C),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,d,c,m,y]);w.useLayoutEffect(()=>n.subscribe(v),[n,v]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new XM)},[l]),w.useEffect(()=>{if(c&&a&&n.window){let C=a,k=c.promise,T=n.window.document.startViewTransition(async()=>{y(()=>o(C)),await k});T.finished.finally(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})}),g(T)}},[y,a,c,n.window]),w.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,d,i.location,a]),w.useEffect(()=>{!l.isTransitioning&&S&&(s(S.state),u({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),p(void 0))},[l.isTransitioning,S]),w.useEffect(()=>{},[]);let x=w.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,k,T)=>n.navigate(C,{state:k,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(C,k,T)=>n.navigate(C,{replace:!0,state:k,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),E=n.basename||"/",b=w.useMemo(()=>({router:n,navigator:x,static:!1,basename:E}),[n,x,E]);return w.createElement(w.Fragment,null,w.createElement(zs.Provider,{value:b},w.createElement(Zm.Provider,{value:i},w.createElement(WM.Provider,{value:m.current},w.createElement(Mx.Provider,{value:l},w.createElement(DM,{basename:E,location:i.location,navigationType:i.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?w.createElement(QM,{routes:n.routes,future:n.future,state:i}):t))))),null)}function QM(e){let{routes:t,future:n,state:r}=e;return EM(t,void 0,r,n)}const JM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fc=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=Rx(t,$M),{basename:g}=w.useContext(di),S,p=!1;if(typeof u=="string"&&ZM.test(u)&&(S=u,JM))try{let v=new URL(window.location.href),x=u.startsWith("//")?new URL(v.protocol+u):new URL(u),E=oi(x.pathname,g);x.origin===v.origin&&E!=null?u=E+x.search+x.hash:p=!0}catch{}let m=bM(u,{relative:i}),h=tO(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function y(v){r&&r(v),v.defaultPrevented||h(v)}return w.createElement("a",qo({},d,{href:S||m,onClick:p||o?r:y,ref:n,target:l}))}),Ox=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:c}=t,f=Rx(t,BM),d=Ac(l,{relative:f.relative}),g=Hs(),S=w.useContext(Zm),{navigator:p}=w.useContext(di),m=S!=null&&nO(d)&&u===!0,h=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,y=g.pathname,v=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(y=y.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase());const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=y===h||!a&&y.startsWith(h)&&y.charAt(x)==="/",b=v!=null&&(v===h||!a&&v.startsWith(h)&&v.charAt(h.length)==="/"),C={isActive:E,isPending:b,isTransitioning:m},k=E?r:void 0,T;typeof o=="function"?T=o(C):T=[o,E?"active":null,b?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(C):s;return w.createElement(Fc,qo({},f,{"aria-current":k,className:T,ref:n,style:F,to:l,unstable_viewTransition:u}),typeof c=="function"?c(C):c)});var Hh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hh||(Hh={}));var Hy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hy||(Hy={}));function eO(e){let t=w.useContext(zs);return t||ge(!1),t}function tO(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=kx(),u=Hs(),c=Ac(e,{relative:a});return w.useCallback(f=>{if(jM(f,n)){f.preventDefault();let d=r!==void 0?r:Wi(u)===Wi(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,r,i,n,e,o,a,s])}function nO(e,t){t===void 0&&(t={});let n=w.useContext(Mx);n==null&&ge(!1);let{basename:r}=eO(Hh.useViewTransitionState),i=Ac(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=oi(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=oi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $h(i.pathname,a)!=null||$h(i.pathname,o)!=null}const ev=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Lc=w.createContext({}),tv=w.createContext(null),nv=typeof document<"u",Ax=nv?w.useLayoutEffect:w.useEffect,Fx=w.createContext({strict:!1}),rv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rO="framerAppearId",Lx="data-"+rv(rO),iO={skipAnimations:!1,useManualTiming:!1};class Wy{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function oO(e){let t=new Wy,n=new Wy,r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&a.add(l),d.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=oO(()=>n=!0),f),{}),a=f=>{o[f].process(i)},s=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,aO),1),i.timestamp=f,i.isProcessing=!0,Rl.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:Rl.reduce((f,d)=>{const g=o[d];return f[d]=(S,p=!1,m=!1)=>(n||l(),g.schedule(S,p,m)),f},{}),cancel:f=>Rl.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:iv,cancel:vz}=_x(queueMicrotask,!1);function sO(e,t,n,r){const{visualElement:i}=w.useContext(Lc),o=w.useContext(Fx),a=w.useContext(tv),s=w.useContext(ev).reducedMotion,l=w.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;w.useInsertionEffect(()=>{u&&u.update(n,a)});const c=w.useRef(!!(n[Lx]&&!window.HandoffComplete));return Ax(()=>{u&&(iv.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lO(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Eo(n)&&(n.current=r))},[t])}function Ps(e){return typeof e=="string"||Array.isArray(e)}function _c(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ov=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],av=["initial",...ov];function Ic(e){return _c(e.animate)||av.some(t=>Ps(e[t]))}function Ix(e){return!!(Ic(e)||e.variants)}function uO(e,t){if(Ic(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ps(n)?n:void 0,animate:Ps(r)?r:void 0}}return e.inherit!==!1?t:{}}function cO(e){const{initial:t,animate:n}=uO(e,w.useContext(Lc));return w.useMemo(()=>({initial:t,animate:n}),[Ky(t),Ky(n)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const Gy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ts={};for(const e in Gy)Ts[e]={isEnabled:t=>Gy[e].some(n=>!!t[n])};function fO(e){for(const t in e)Ts[t]={...Ts[t],...e[t]}}const Dx=w.createContext({}),Nx=w.createContext({}),dO=Symbol.for("motionComponentSymbol");function hO({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&fO(e);function o(s,l){let u;const c={...w.useContext(ev),...s,layoutId:pO(s)},{isStatic:f}=c,d=cO(s),g=r(s,f);if(!f&&nv){d.visualElement=sO(i,g,c,t);const S=w.useContext(Nx),p=w.useContext(Fx).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,p,e,S))}return w.createElement(Lc.Provider,{value:d},u&&d.visualElement?w.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,s,lO(g,d.visualElement,l),g,f,d.visualElement))}const a=w.forwardRef(o);return a[dO]=i,a}function pO({layoutId:e}){const t=w.useContext(Dx).id;return t&&e!==void 0?t+"-"+e:e}function mO(e){function t(r,i={}){return hO(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const vO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sv(e){return typeof e!="string"||e.includes("-")?!1:!!(vO.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ku={};function gO(e){Object.assign(Ku,e)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yi=new Set(Ws);function Vx(e,{layout:t,layoutId:n}){return Yi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ku[e]||e==="opacity")}const kt=e=>!!(e&&e.getVelocity),yO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SO=Ws.length;function wO(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),$x=jx("--"),bO=jx("var(--"),lv=e=>bO(e)?xO.test(e.split("/*")[0].trim()):!1,xO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,CO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ai=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Qa={...aa,transform:e=>ai(0,1,e)},Ml={...aa,default:1},Ja=e=>Math.round(e*1e5)/1e5,uv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,EO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,kO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ks(e){return typeof e=="string"}const Gs=e=>({test:t=>Ks(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dr=Gs("deg"),or=Gs("%"),ue=Gs("px"),PO=Gs("vh"),TO=Gs("vw"),qy={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)},Xy={...aa,transform:Math.round},Bx={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:Dr,rotateX:Dr,rotateY:Dr,rotateZ:Dr,scale:Ml,scaleX:Ml,scaleY:Ml,scaleZ:Ml,skew:Dr,skewX:Dr,skewY:Dr,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:Qa,originX:qy,originY:qy,originZ:ue,zIndex:Xy,backgroundPositionX:ue,backgroundPositionY:ue,fillOpacity:Qa,strokeOpacity:Qa,numOctaves:Xy};function cv(e,t,n,r){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if($x(f)){o[f]=d;continue}const g=Bx[f],S=CO(d,g);if(Yi.has(f)){if(l=!0,a[f]=S,!c)continue;d!==(g.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,s[f]=S):i[f]=S}if(t.transform||(l||r?i.transform=wO(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:g=0}=s;i.transformOrigin=`${f} ${d} ${g}`}}const fv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zx(e,t,n){for(const r in t)!kt(t[r])&&!Vx(r,n)&&(e[r]=t[r])}function RO({transformTemplate:e},t,n){return w.useMemo(()=>{const r=fv();return cv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function MO(e,t,n){const r=e.style||{},i={};return zx(i,r,e),Object.assign(i,RO(e,t,n)),i}function OO(e,t,n){const r={},i=MO(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const AO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Gu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AO.has(e)}let Ux=e=>!Gu(e);function FO(e){e&&(Ux=t=>t.startsWith("on")?!Gu(t):e(t))}try{FO(require("@emotion/is-prop-valid").default)}catch{}function LO(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ux(i)||n===!0&&Gu(i)||!t&&!Gu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Yy(e,t,n){return typeof e=="string"?e:ue.transform(t+n*e)}function _O(e,t,n){const r=Yy(t,e.x,e.width),i=Yy(n,e.y,e.height);return`${r} ${i}`}const IO={offset:"stroke-dashoffset",array:"stroke-dasharray"},DO={offset:"strokeDashoffset",array:"strokeDasharray"};function NO(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?IO:DO;e[o.offset]=ue.transform(-r);const a=ue.transform(t),s=ue.transform(n);e[o.array]=`${a} ${s}`}function dv(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,f,d){if(cv(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:S,dimensions:p}=e;g.transform&&(p&&(S.transform=g.transform),delete g.transform),p&&(i!==void 0||o!==void 0||S.transform)&&(S.transformOrigin=_O(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&NO(g,a,s,l,!1)}const Hx=()=>({...fv(),attrs:{}}),hv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VO(e,t,n,r){const i=w.useMemo(()=>{const o=Hx();return dv(o,t,{enableHardwareAcceleration:!1},hv(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};zx(o,e.style,e),i.style={...o,...i.style}}return i}function jO(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(sv(n)?VO:OO)(r,o,a,n),u=LO(r,typeof n=="string",e),c=n!==w.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=w.useMemo(()=>kt(f)?f.get():f,[f]);return w.createElement(n,{...c,children:d})}}function Wx(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gx(e,t,n,r){Wx(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Kx.has(i)?i:rv(i),t.attrs[i])}function pv(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(kt(i[a])||t.style&&kt(t.style[a])||Vx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function qx(e,t,n){const r=pv(e,t,n);for(const i in e)if(kt(e[i])||kt(t[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function mv(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function qs(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wh=e=>Array.isArray(e),$O=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),BO=e=>Wh(e)?e[e.length-1]||0:e;function iu(e){const t=kt(e)?e.get():e;return $O(t)?t.toValue():t}function zO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:UO(r,i,o,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const Xx=e=>(t,n)=>{const r=w.useContext(Lc),i=w.useContext(tv),o=()=>zO(e,t,r,i);return n?o():qs(o)};function UO(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=iu(o[d]);let{initial:a,animate:s}=e;const l=Ic(e),u=Ix(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!_c(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const S=mv(e,g);if(!S)return;const{transitionEnd:p,transition:m,...h}=S;for(const y in h){let v=h[y];if(Array.isArray(v)){const x=c?v.length-1:0;v=v[x]}v!==null&&(i[y]=v)}for(const y in p)i[y]=p[y]}),i}const Tt=e=>e,{schedule:yt,cancel:Mr,state:Ct,steps:od}=_x(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tt,!0),HO={useVisualState:Xx({scrapeMotionValuesFromProps:qx,createRenderState:Hx,onMount:(e,t,{renderState:n,latestValues:r})=>{yt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),yt.render(()=>{dv(n,r,{enableHardwareAcceleration:!1},hv(t.tagName),e.transformTemplate),Gx(t,n)})}})},WO={useVisualState:Xx({scrapeMotionValuesFromProps:pv,createRenderState:fv})};function KO(e,{forwardMotionProps:t=!1},n,r){return{...sv(e)?HO:WO,preloadedFeatures:n,useRender:jO(t),createVisualElement:r,Component:e}}function yr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const GO=e=>t=>Yx(t)&&e(t,Dc(t));function br(e,t,n,r){return yr(e,t,GO(n),r)}const qO=(e,t)=>n=>t(e(n)),xr=(...e)=>e.reduce(qO);function Qx(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Qy=Qx("dragHorizontal"),Jy=Qx("dragVertical");function Jx(e){let t=!1;if(e==="y")t=Jy();else if(e==="x")t=Qy();else{const n=Qy(),r=Jy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Zx(){const e=Jx(!0);return e?(e(),!1):!0}class pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Zy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Zx())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&s[r](o,a)};return br(e.current,n,i,{passive:!e.getProps()[r]})}class XO extends pi{mount(){this.unmount=xr(Zy(this.node,!0),Zy(this.node,!1))}unmount(){}}class YO extends pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xr(yr(this.node.current,"focus",()=>this.onFocus()),yr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const eC=(e,t)=>t?e===t?!0:eC(e,t.parentElement):!1;function ad(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dc(n))}class QO extends pi{constructor(){super(...arguments),this.removeStartListeners=Tt,this.removeEndListeners=Tt,this.removeAccessibleListeners=Tt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=br(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!eC(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=br(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=xr(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||ad("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=yr(this.node.current,"keyup",a),ad("down",(s,l)=>{this.startPress(s,l)})},n=yr(this.node.current,"keydown",t),r=()=>{this.isPressing&&ad("cancel",(o,a)=>this.cancelPress(o,a))},i=yr(this.node.current,"blur",r);this.removeAccessibleListeners=xr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Zx()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=br(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Kh=new WeakMap,sd=new WeakMap,JO=e=>{const t=Kh.get(e.target);t&&t(e)},ZO=e=>{e.forEach(JO)};function eA({root:e,...t}){const n=e||document;sd.has(n)||sd.set(n,{});const r=sd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZO,{root:e,...t})),r[i]}function tA(e,t,n){const r=eA(t);return Kh.set(e,n),r.observe(e),()=>{Kh.delete(e),r.unobserve(e)}}const nA={some:0,all:1};class rA extends pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nA[i]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return tA(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iA(t,n))&&this.startObserver()}unmount(){}}function iA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oA={inView:{Feature:rA},tap:{Feature:QO},focus:{Feature:YO},hover:{Feature:XO}};function tC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function sA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Nc(e,t,n){const r=e.getProps();return mv(r,t,n!==void 0?n:r.custom,aA(e),sA(e))}const Cr=e=>e*1e3,Er=e=>e/1e3,lA={type:"spring",stiffness:500,damping:25,restSpeed:10},uA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cA={type:"keyframes",duration:.8},fA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dA=(e,{keyframes:t})=>t.length>2?cA:Yi.has(e)?e.startsWith("scale")?uA(t[1]):lA:fA;function hA({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function vv(e,t){return e[t]||e.default||e}const pA=e=>e!==null;function Vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(pA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let ou;function mA(){ou=void 0}const ti={now:()=>(ou===void 0&&ti.set(Ct.isProcessing||iO.useManualTiming?Ct.timestamp:performance.now()),ou),set:e=>{ou=e,queueMicrotask(mA)}},nC=e=>/^0[^.\s]+$/u.test(e);function vA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nC(e):!0}let gA=Tt,rC=Tt;const iC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),yA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SA(e){const t=yA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function oC(e,t,n=1){const[r,i]=SA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return iC(a)?parseFloat(a):a}return lv(i)?oC(i,t,n+1):i}const wA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),e0=e=>e===aa||e===ue,t0=(e,t)=>parseFloat(e.split(", ")[t]),n0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return t0(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?t0(o[1],e):0}},bA=new Set(["x","y","z"]),xA=Ws.filter(e=>!bA.has(e));function r0(e){const t=[];return xA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:n0(4,13),y:n0(5,14)};Xo.translateX=Xo.x;Xo.translateY=Xo.y;const aC=e=>t=>t.test(e),CA={test:e=>e==="auto",parse:e=>e},sC=[aa,ue,or,Dr,TO,PO,CA],i0=e=>sC.find(aC(e)),Ni=new Set;let Gh=!1,qh=!1;function lC(){if(qh){const e=Array.from(Ni).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{r0(r).length&&(n.set(r,r0(r)),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render()}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qh=!1,Gh=!1,Ni.forEach(e=>e.complete()),Ni.clear()}function uC(){Ni.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qh=!0)})}function EA(){uC(),lC()}class gv{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ni.add(this),Gh||(Gh=!0,yt.read(uC),yt.resolveKeyframes(lC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;on=>!!(Ks(n)&&kO.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),cC=(e,t,n)=>r=>{if(!Ks(r))return r;const[i,o,a,s]=r.match(uv);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},kA=e=>ai(0,255,e),ld={...aa,transform:e=>Math.round(kA(e))},Oi={test:yv("rgb","red"),parse:cC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ld.transform(e)+", "+ld.transform(t)+", "+ld.transform(n)+", "+Ja(Qa.transform(r))+")"};function PA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Xh={test:yv("#"),parse:PA,transform:Oi.transform},ko={test:yv("hsl","hue"),parse:cC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+or.transform(Ja(t))+", "+or.transform(Ja(n))+", "+Ja(Qa.transform(r))+")"},_t={test:e=>Oi.test(e)||Xh.test(e)||ko.test(e),parse:e=>Oi.test(e)?Oi.parse(e):ko.test(e)?ko.parse(e):Xh.parse(e),transform:e=>Ks(e)?e:e.hasOwnProperty("red")?Oi.transform(e):ko.transform(e)};function TA(e){var t,n;return isNaN(e)&&Ks(e)&&(((t=e.match(uv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(EO))===null||n===void 0?void 0:n.length)||0)>0}const fC="number",dC="color",RA="var",MA="var(",o0="${}",OA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(OA,l=>(_t.test(l)?(r.color.push(o),i.push(dC),n.push(_t.parse(l))):l.startsWith(MA)?(r.var.push(o),i.push(RA),n.push(l)):(r.number.push(o),i.push(fC),n.push(parseFloat(l))),++o,o0)).split(o0);return{values:n,split:s,indexes:r,types:i}}function hC(e){return qu(e).values}function pC(e){const{split:t,types:n}=qu(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function FA(e){const t=hC(e);return pC(e)(t.map(AA))}const si={test:TA,parse:hC,createTransformer:pC,getAnimatableNone:FA},LA=new Set(["brightness","contrast","saturate","opacity"]);function _A(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uv)||[];if(!r)return e;const i=n.replace(r,"");let o=LA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const IA=/\b([a-z-]*)\(.*?\)/gu,Yh={...si,getAnimatableNone:e=>{const t=e.match(IA);return t?t.map(_A).join(" "):e}},DA={...Bx,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:Yh,WebkitFilter:Yh},Sv=e=>DA[e];function mC(e,t){let n=Sv(e);return n!==Yh&&(n=si),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function NA(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function VA(e){let t;return()=>(t===void 0&&(t=e()),t)}const a0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(si.test(e)||e==="0")&&!e.startsWith("url("));function jA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function yC(e,t){return t?e*(1e3/t):0}const BA=5;function SC(e,t,n){const r=Math.max(t-BA,0);return yC(n-e(r),t-r)}const ud=.001,zA=.01,s0=10,UA=.05,HA=1;function WA({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;gA(e<=Cr(s0));let a=1-t;a=ai(UA,HA,a),e=ai(zA,s0,Er(e)),a<1?(i=u=>{const c=u*a,f=c*e,d=c-n,g=Qh(u,a),S=Math.exp(-f);return ud-d/g*S},o=u=>{const f=u*a*e,d=f*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,S=Math.exp(-f),p=Qh(Math.pow(u,2),a);return(-i(u)+ud>0?-1:1)*((d-g)*S)/p}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-ud+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=GA(i,o,s);if(e=Cr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const KA=12;function GA(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function YA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!l0(e,XA)&&l0(e,qA)){const n=WA(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function wC({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=YA({...r,velocity:-Er(r.velocity||0)}),g=f||0,S=l/(2*Math.sqrt(s*u)),p=o-i,m=Er(Math.sqrt(s/u)),h=Math.abs(p)<5;n||(n=h?.01:2),t||(t=h?.005:.5);let y;if(S<1){const v=Qh(m,S);y=x=>{const E=Math.exp(-S*m*x);return o-E*((g+S*m*p)/v*Math.sin(v*x)+p*Math.cos(v*x))}}else if(S===1)y=v=>o-Math.exp(-m*v)*(p+(g+m*p)*v);else{const v=m*Math.sqrt(S*S-1);y=x=>{const E=Math.exp(-S*m*x),b=Math.min(v*x,300);return o-E*((g+S*m*p)*Math.sinh(b)+v*p*Math.cosh(b))/v}}return{calculatedDuration:d&&c||null,next:v=>{const x=y(v);if(d)a.done=v>=c;else{let E=g;v!==0&&(S<1?E=SC(y,v,x):E=0);const b=Math.abs(E)<=n,C=Math.abs(o-x)<=t;a.done=b&&C}return a.value=a.done?o:x,a}}}function u0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=k=>s!==void 0&&kl,S=k=>s===void 0?l:l===void 0||Math.abs(s-k)-p*Math.exp(-k/r),v=k=>h+y(k),x=k=>{const T=y(k),F=v(k);d.done=Math.abs(T)<=u,d.value=d.done?h:F};let E,b;const C=k=>{g(d.value)&&(E=k,b=wC({keyframes:[d.value,S(d.value)],velocity:SC(v,k,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let T=!1;return!b&&E===void 0&&(T=!0,x(k),C(k)),E!==void 0&&k>=E?b.next(k-E):(!T&&x(k),d)}}}const bC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,QA=1e-7,JA=12;function ZA(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=bC(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>QA&&++sZA(o,0,1,e,n);return o=>o===0||o===1?o:bC(i(o),t,r)}const eF=Xs(.42,0,1,1),tF=Xs(0,0,.58,1),xC=Xs(.42,0,.58,1),nF=e=>Array.isArray(e)&&typeof e[0]!="number",CC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EC=e=>t=>1-e(1-t),wv=e=>1-Math.sin(Math.acos(e)),kC=EC(wv),rF=CC(wv),PC=Xs(.33,1.53,.69,.99),bv=EC(PC),iF=CC(bv),oF=e=>(e*=2)<1?.5*bv(e):.5*(2-Math.pow(2,-10*(e-1))),aF={linear:Tt,easeIn:eF,easeInOut:xC,easeOut:tF,circIn:wv,circInOut:rF,circOut:kC,backIn:bv,backInOut:iF,backOut:PC,anticipate:oF},c0=e=>{if(Array.isArray(e)){rC(e.length===4);const[t,n,r,i]=e;return Xs(t,n,r,i)}else if(typeof e=="string")return aF[e];return e},Rs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$e=(e,t,n)=>e+(t-e)*n;function cd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=cd(l,s,e+1/3),o=cd(l,s,e),a=cd(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const fd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lF=[Xh,Oi,ko],uF=e=>lF.find(t=>t.test(e));function f0(e){const t=uF(e);let n=t.parse(e);return t===ko&&(n=sF(n)),n}const d0=(e,t)=>{const n=f0(e),r=f0(t),i={...n};return o=>(i.red=fd(n.red,r.red,o),i.green=fd(n.green,r.green,o),i.blue=fd(n.blue,r.blue,o),i.alpha=$e(n.alpha,r.alpha,o),Oi.transform(i))};function Jh(e,t){return n=>n>0?t:e}function cF(e,t){return n=>$e(e,t,n)}function xv(e){return typeof e=="number"?cF:typeof e=="string"?lv(e)?Jh:_t.test(e)?d0:hF:Array.isArray(e)?TC:typeof e=="object"?_t.test(e)?d0:fF:Jh}function TC(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>xv(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function dF(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=si.createTransformer(t),r=qu(e),i=qu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xr(TC(dF(r,i),i.values),n):Jh(e,t)};function RC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$e(e,t,n):xv(e)(e,t)}function pF(e,t,n){const r=[],i=n||RC,o=e.length-1;for(let a=0;at[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=pF(t,r,i),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(ai(e[0],e[o-1],u)):l}function mF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rs(0,t,r);e.push($e(n,1,i))}}function vF(e){const t=[0];return mF(t,e.length-1),t}function gF(e,t){return e.map(n=>n*t)}function yF(e,t){return e.map(()=>t||xC).splice(0,e.length-1)}function Xu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nF(r)?r.map(c0):c0(r),o={done:!1,value:t[0]},a=gF(n&&n.length===t.length?n:vF(t),e),s=MC(a,t,{ease:Array.isArray(i)?i:yF(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}const h0=2e4;function SF(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=h0?1/0:t}const wF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>yt.update(t,!0),stop:()=>Mr(t),now:()=>Ct.isProcessing?Ct.timestamp:ti.now()}},bF={decay:u0,inertia:u0,tween:Xu,keyframes:Xu,spring:wC},xF=e=>e/100;class Cv extends gC{constructor({KeyframeResolver:t=gv,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:r,motionValue:i,keyframes:o}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,a,r,i):this.resolver=new t(o,a,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=bF[n]||Xu;let l,u;s!==Xu&&typeof t[0]!="number"&&(l=xr(xF,RC(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=SF(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:g,repeatType:S,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,x=o;if(g){const k=Math.min(this.currentTime,c)/f;let T=Math.floor(k),F=k%1;!F&&k>=1&&(F=1),F===1&&T--,T=Math.min(T,g+1),!!(T%2)&&(S==="reverse"?(F=1-F,p&&(F-=p/f)):S==="mirror"&&(x=a)),v=ai(0,1,F)*f}const E=y?{done:!1,value:l[0]}:x.next(v);s&&(E.value=s(E.value));let{done:b}=E;!y&&u!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return C&&i!==void 0&&(E.value=Vc(l,this.options,i)),m&&m(E.value),C&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Er(t.calculatedDuration):0}get time(){return Er(this.currentTime)}set time(t){t=Cr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Er(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wF,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:t}=this.options;t&&t()}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const OC=e=>Array.isArray(e)&&typeof e[0]=="number";function AC(e){return!!(!e||typeof e=="string"&&FC[e]||OC(e)||Array.isArray(e)&&e.every(AC))}const Na=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function LC(e){if(e)return OC(e)?Na(e):Array.isArray(e)?e.map(LC):FC[e]}function CF(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=LC(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const EF=VA(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kF=new Set(["opacity","clipPath","filter","transform"]),Yu=10,PF=2e4;function TF(e){return e.type==="spring"||e.name==="backgroundColor"||!AC(e.ease)}function RF(e,t){const n=new Cv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(o,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(TF(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,...S}=this.options,p=RF(t,S);t=p.keyframes,t.length===1&&(t[1]=t[0]),i=p.duration,o=p.times,a=p.ease,s="keyframes"}const c=CF(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:a});return c.startTime=ti.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Vc(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Er(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Er(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Cr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Tt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Tt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...f}=this.options,d=new Cv({...f,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),g=Cr(this.time);l.setWithVelocity(d.sample(g-Yu).value,d.sample(g).value,Yu)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:s}=t;return EF()&&r&&kF.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const Ev=(e,t,n,r={},i,o)=>a=>{const s=vv(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Cr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:d=>{t.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};hA(s)||(c={...c,...dA(e,c)}),c.duration&&(c.duration=Cr(c.duration)),c.repeatDelay&&(c.repeatDelay=Cr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if(c.type===!1&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=Vc(c.keyframes,s);if(d!==void 0){yt.update(()=>{c.onUpdate(d),c.onComplete()});return}}return!o&&p0.supports(c)?new p0(c):new Cv(c)};function Qu(e){return!!(kt(e)&&e.add)}function kv(e,t){e.indexOf(t)===-1&&e.push(t)}function Pv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function MF([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&rPv(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e)),Za={current:void 0};class AF{constructor(t,n={}){this.version="11.0.24",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ti.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=OF(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ti.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Tv);const r=this.events[t].add(n);return t==="change"?()=>{r(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Za.current&&Za.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ti.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>m0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,m0);return yC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yo(e,t){return new AF(e,t)}function FF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yo(n))}function LF(e,t){const n=Nc(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=BO(o[a]);FF(e,a,s)}}function _F({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _C(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const g=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),S=l[d];if(S===void 0||f&&_F(f,d))continue;const p={delay:n,elapsed:0,...vv(a||{},d)};let m=!1;if(window.HandoffAppearAnimations){const y=e.getProps()[Lx];if(y){const v=window.HandoffAppearAnimations(y,d);v!==null&&(p.elapsed=v,m=!0)}}g.start(Ev(d,g,S,e.shouldReduceMotion&&Yi.has(d)?{type:!1}:p,e,m));const h=g.animation;h&&(Qu(u)&&(u.add(d),h.then(()=>u.remove(d))),c.push(h))}return s&&Promise.all(c).then(()=>{yt.update(()=>{s&&LF(e,s)})}),c}function Zh(e,t,n={}){var r;const i=Nc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(_C(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return IF(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function IF(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(DF).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Zh(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function DF(e,t){return e.sortNodePosition(t)}function NF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Zh(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Zh(e,t,n);else{const i=typeof t=="function"?Nc(e,t,n.custom):t;r=Promise.all(_C(e,i,n))}return r.then(()=>{yt.postRender(()=>{e.notify("AnimationComplete",t)})})}const VF=[...ov].reverse(),jF=ov.length;function $F(e){return t=>Promise.all(t.map(({animation:n,options:r})=>NF(e,n,r)))}function BF(e){let t=$F(e);const n=UF();let r=!0;const i=l=>(u,c)=>{var f;const d=Nc(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:S,...p}=d;u={...u,...p,...S}}return u};function o(l){t=l(e)}function a(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set;let g={},S=1/0;for(let m=0;mS&&x,T=!1;const F=Array.isArray(v)?v:[v];let V=F.reduce(i(h),{});E===!1&&(V={});const{prevResolvedValues:H={}}=y,U={...H,...V},Q=W=>{k=!0,d.has(W)&&(T=!0,d.delete(W)),y.needsAnimating[W]=!0;const _=e.getValue(W);_&&(_.liveStyle=!1)};for(const W in U){const _=V[W],L=H[W];if(g.hasOwnProperty(W))continue;let P=!1;Wh(_)&&Wh(L)?P=!tC(_,L):P=_!==L,P?_!=null?Q(W):d.add(W):_!==void 0&&d.has(W)?Q(W):y.protectedKeys[W]=!0}y.prevProp=v,y.prevResolvedValues=V,y.isActive&&(g={...g,...V}),r&&e.blockInitialAnimation&&(k=!1),k&&(!b||T)&&f.push(...F.map(W=>({animation:W,options:{type:h}})))}if(d.size){const m={};d.forEach(h=>{const y=e.getBaseTarget(h),v=e.getValue(h);v&&(v.liveStyle=!0),m[h]=y===void 0?null:y}),f.push({animation:m})}let p=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Promise.resolve()}function s(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n}}function zF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tC(t,e):!1}function yi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UF(){return{animate:yi(!0),whileInView:yi(),whileHover:yi(),whileTap:yi(),whileDrag:yi(),whileFocus:yi(),exit:yi()}}class HF extends pi{constructor(t){super(t),t.animationState||(t.animationState=BF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),_c(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let WF=0;class KF extends pi{constructor(){super(...arguments),this.id=WF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GF={animation:{Feature:HF},exit:{Feature:KF}},v0=(e,t)=>Math.abs(e-t);function qF(e,t){const n=v0(e.x,t.x),r=v0(e.y,t.y);return Math.sqrt(n**2+r**2)}class IC{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=hd(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=qF(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:S}=f,{timestamp:p}=Ct;this.history.push({...S,timestamp:p});const{onStart:m,onMove:h}=this.handlers;d||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=dd(d,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=hd(f.type==="pointercancel"?this.lastMoveEventInfo:dd(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,m),S&&S(f,m)},!Yx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Dc(t),s=dd(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=Ct;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,hd(s,this.history)),this.removeListeners=xr(br(this.contextWindow,"pointermove",this.handlePointerMove),br(this.contextWindow,"pointerup",this.handlePointerUp),br(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function dd(e,t){return t?{point:t(e.point)}:e}function g0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hd({point:e},t){return{point:e,delta:g0(e,DC(t)),offset:g0(e,XF(t)),velocity:YF(t,.1)}}function XF(e){return e[0]}function DC(e){return e[e.length-1]}function YF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=DC(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cr(t)));)n--;if(!r)return{x:0,y:0};const o=Er(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function dn(e){return e.max-e.min}function ep(e,t=0,n=.01){return Math.abs(e-t)<=n}function y0(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=dn(n)/dn(t),(ep(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(ep(e.translate)||isNaN(e.translate))&&(e.translate=0)}function es(e,t,n,r){y0(e.x,t.x,n.x,r?r.originX:void 0),y0(e.y,t.y,n.y,r?r.originY:void 0)}function S0(e,t,n){e.min=n.min+t.min,e.max=e.min+dn(t)}function QF(e,t,n){S0(e.x,t.x,n.x),S0(e.y,t.y,n.y)}function w0(e,t,n){e.min=t.min-n.min,e.max=e.min+dn(t)}function ts(e,t,n){w0(e.x,t.x,n.x),w0(e.y,t.y,n.y)}function JF(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function b0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZF(e,{top:t,left:n,bottom:r,right:i}){return{x:b0(e.x,n,i),y:b0(e.y,t,r)}}function x0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Rs(t.min,t.max-r,e.min):r>i&&(n=Rs(e.min,e.max-i,t.min)),ai(0,1,n)}function nL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tp=.35;function rL(e=tp){return e===!1?e=0:e===!0&&(e=tp),{x:C0(e,"left","right"),y:C0(e,"top","bottom")}}function C0(e,t,n){return{min:E0(e,t),max:E0(e,n)}}function E0(e,t){return typeof e=="number"?e:e[t]||0}const k0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:k0(),y:k0()}),P0=()=>({min:0,max:0}),Ze=()=>({x:P0(),y:P0()});function yn(e){return[e("x"),e("y")]}function NC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pd(e){return e===void 0||e===1}function np({scale:e,scaleX:t,scaleY:n}){return!pd(e)||!pd(t)||!pd(n)}function bi(e){return np(e)||VC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function VC(e){return T0(e.x)||T0(e.y)}function T0(e){return e&&e!=="0%"}function Ju(e,t,n){const r=e-n,i=t*r;return n+i}function R0(e,t,n,r,i){return i!==void 0&&(e=Ju(e,i,r)),Ju(e,n,r)+t}function rp(e,t=0,n=1,r,i){e.min=R0(e.min,t,n,r,i),e.max=R0(e.max,t,n,r,i)}function jC(e,{x:t,y:n}){rp(e.x,t.translate,t.scale,t.originPoint),rp(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function jr(e,t){e.min=e.min+t,e.max=e.max+t}function O0(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=$e(e.min,e.max,o);rp(e,t[n],t[r],a,t.scale)}const sL=["x","scaleX","originX"],lL=["y","scaleY","originY"];function To(e,t){O0(e.x,t,sL),O0(e.y,t,lL)}function $C(e,t){return NC(oL(e.getBoundingClientRect(),t))}function uL(e,t,n){const r=$C(e,n),{scroll:i}=t;return i&&(jr(r.x,i.offset.x),jr(r.y,i.offset.y)),r}const BC=({current:e})=>e?e.ownerDocument.defaultView:null,cL=new WeakMap;class fL{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dc(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:S}=this.getProps();if(d&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Jx(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yn(m=>{let h=this.getAxisMotionValue(m).get()||0;if(or.test(h)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[m];v&&(h=dn(v)*(parseFloat(h)/100))}}this.originPoint[m]=h}),S&&S(c,f);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:S,onDrag:p}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:m}=f;if(g&&this.currentDirection===null){this.currentDirection=dL(m),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),p&&p(c,f)},s=(c,f)=>this.stop(c,f),l=()=>yn(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new IC(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:BC(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&o(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ol(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=JF(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Eo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ZF(i.layoutBox,n):this.constraints=!1,this.elastic=rL(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&yn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=nL(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Eo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=uL(r,i.root,this.visualElement.getTransformPagePoint());let a=eL(i.layout.layoutBox,o);if(n){const s=n(iL(a));this.hasMutatedConstraints=!!s,s&&(a=NC(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=yn(c=>{if(!Ol(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,S={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,S)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ev(t,r,0,n,this.visualElement))}stopAnimation(){yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){yn(n=>{const{drag:r}=this.getProps();if(!Ol(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-$e(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Eo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yn(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();i[a]=tL({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),yn(a=>{if(!Ol(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set($e(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;cL.set(this.visualElement,this);const t=this.visualElement.current,n=br(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Eo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=yr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(yn(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=tp,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ol(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hL extends pi{constructor(t){super(t),this.removeGroupControls=Tt,this.removeListeners=Tt,this.controls=new fL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const A0=e=>(t,n)=>{e&&e(t,n)};class pL extends pi{constructor(){super(...arguments),this.removePointerDownListener=Tt}onPointerDown(t){this.session=new IC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:BC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:A0(t),onStart:A0(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&i(o,a)}}}mount(){this.removePointerDownListener=br(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function mL(){const e=w.useContext(tv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();return w.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const au={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function F0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=F0(e,t.target.x),r=F0(e,t.target.y);return`${n}% ${r}%`}},vL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=si.parse(e);if(i.length>5)return r;const o=si.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const u=$e(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class gL extends qe.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;gO(yL),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),au.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||yt.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),iv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zC(e){const[t,n]=mL(),r=w.useContext(Dx);return qe.createElement(gL,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Nx),isPresent:t,safeToRemove:n})}const yL={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:vL},UC=["TopLeft","TopRight","BottomLeft","BottomRight"],SL=UC.length,L0=e=>typeof e=="string"?parseFloat(e):e,_0=e=>typeof e=="number"||ue.test(e);function wL(e,t,n,r,i,o){i?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,bL(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,xL(r))):o&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Rs(e,t,r))}function D0(e,t){e.min=t.min,e.max=t.max}function vn(e,t){D0(e.x,t.x),D0(e.y,t.y)}function N0(e,t,n,r,i){return e-=t,e=Ju(e,1/n,r),i!==void 0&&(e=Ju(e,1/i,r)),e}function CL(e,t=0,n=1,r=.5,i,o=e,a=e){if(or.test(t)&&(t=parseFloat(t),t=$e(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=$e(o.min,o.max,r);e===o&&(s-=t),e.min=N0(e.min,t,n,s,i),e.max=N0(e.max,t,n,s,i)}function V0(e,t,[n,r,i],o,a){CL(e,t[n],t[r],t[i],t.scale,o,a)}const EL=["x","scaleX","originX"],kL=["y","scaleY","originY"];function j0(e,t,n,r){V0(e.x,t,EL,n?n.x:void 0,r?r.x:void 0),V0(e.y,t,kL,n?n.y:void 0,r?r.y:void 0)}function $0(e){return e.translate===0&&e.scale===1}function WC(e){return $0(e.x)&&$0(e.y)}function PL(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function KC(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function B0(e){return dn(e.x)/dn(e.y)}class TL{constructor(){this.members=[]}add(t){kv(this.members,t),t.scheduleRender()}remove(t){if(Pv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z0(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:c,rotateY:f,skewX:d,skewY:g}=n;u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),d&&(r+=`skewX(${d}deg) `),g&&(r+=`skewY(${g}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const RL=(e,t)=>e.depth-t.depth;class ML{constructor(){this.children=[],this.isDirty=!1}add(t){kv(this.children,t),this.isDirty=!0}remove(t){Pv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RL),this.isDirty=!1,this.children.forEach(t)}}function OL(e,t){const n=ti.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Mr(r),e(o-t))};return yt.read(r,!0),()=>Mr(r)}function AL(e){window.MotionDebug&&window.MotionDebug.record(e)}function FL(e){return e instanceof SVGElement&&e.tagName!=="svg"}function LL(e,t,n){const r=kt(e)?e:Yo(e);return r.start(Ev("",r,t,n)),r.animation}const md=["","X","Y","Z"],_L={visibility:"hidden"},U0=1e3;let IL=0;const xi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function GC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=IL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xi.totalNodes=xi.resolvedTargetDeltas=xi.recalculatedProjection=0,this.nodes.forEach(VL),this.nodes.forEach(UL),this.nodes.forEach(HL),this.nodes.forEach(jL),AL(xi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=OL(d,250),au.hasAnimatedSinceResize&&(au.hasAnimatedSinceResize=!1,this.nodes.forEach(W0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||XL,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=c.getProps(),y=!this.targetLayout||!KC(this.targetLayout,S)||g,v=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const x={...vv(p,"layout"),onPlay:m,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||W0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(WL),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach($L),this.sharedNodes.forEach(KL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=x/1e3;K0(f.x,a.x,E),K0(f.y,a.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ts(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GL(this.relativeTarget,this.relativeTargetOrigin,d,E),v&&PL(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ze()),vn(v,this.relativeTarget)),p&&(this.animationValues=c,wL(c,u,this.latestValues,E,y,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{au.hasAnimatedSinceResize=!0,this.currentAnimation=LL(0,U0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(U0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&qC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ze();const f=dn(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=dn(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}vn(s,l),To(s,c),es(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TL),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&vd("z",a,u,this.animationValues);for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(H0),this.root.sharedNodes.clear()}}}function DL(e){e.updateLayout()}function NL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(d);d.min=r[f].min,d.max=d.min+g}):qC(o,n.layoutBox,r)&&yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const s=Po();es(s,r,n.layoutBox);const l=Po();a?es(l,e.applyTransform(i,!0),n.measuredBox):es(l,r,n.layoutBox);const u=!WC(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const S=Ze();ts(S,n.layoutBox,d.layoutBox);const p=Ze();ts(p,r,g.layoutBox),KC(S,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=S,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VL(e){xi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $L(e){e.clearSnapshot()}function H0(e){e.clearMeasurements()}function BL(e){e.isLayoutDirty=!1}function zL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function W0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UL(e){e.resolveTargetDelta()}function HL(e){e.calcProjection()}function WL(e){e.resetSkewAndRotation()}function KL(e){e.removeLeadSnapshot()}function K0(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function G0(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function GL(e,t,n,r){G0(e.x,t.x,n.x,r),G0(e.y,t.y,n.y,r)}function qL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XL={duration:.45,ease:[.4,0,.1,1]},q0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),X0=q0("applewebkit/")&&!q0("chrome/")?Math.round:Tt;function Y0(e){e.min=X0(e.min),e.max=X0(e.max)}function YL(e){Y0(e.x),Y0(e.y)}function qC(e,t,n){return e==="position"||e==="preserve-aspect"&&!ep(B0(t),B0(n),.2)}const QL=GC({attachResizeListener:(e,t)=>yr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gd={current:void 0},XC=GC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gd.current){const e=new QL({});e.mount(window),e.setOptions({layoutScroll:!0}),gd.current=e}return gd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),JL={pan:{Feature:pL},drag:{Feature:hL,ProjectionNode:XC,MeasureLayout:zC}},ip={current:null},YC={current:!1};function ZL(){if(YC.current=!0,!!nv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ip.current=e.matches;e.addListener(t),t()}else ip.current=!1}function e_(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(kt(o))e.addValue(i,o),Qu(r)&&r.add(i);else if(kt(a))e.addValue(i,Yo(o,{owner:e})),Qu(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Yo(s!==void 0?s:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Q0=new WeakMap,t_=[...sC,_t,si],n_=e=>t_.find(aC(e)),QC=Object.keys(Ts),r_=QC.length,J0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i_=av.length;class o_{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.resolveKeyframes=(d,g,S,p)=>new this.KeyframeResolver(d,g,S,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>yt.render(this.render,!1,!0);const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=Ic(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const g=f[d];l[d]!==void 0&&kt(g)&&(g.set(l[d],!1),Qu(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,n,r){return{}}mount(t){this.current=t,Q0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),YC.current||ZL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ip.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Q0.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Yi.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:g})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(iC(i)||nC(i))?i=parseFloat(i):!n_(i)&&si.test(n)&&(i=mC(t,n)),this.setBaseTarget(t,kt(i)?i.get():i)),kt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n,r;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(r=mv(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom))===null||r===void 0?void 0:r[t]:void 0;if(i&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!kt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Tv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class JC extends o_{constructor(){super(...arguments),this.KeyframeResolver=vC}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function a_(e){return window.getComputedStyle(e)}class s_ extends JC{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}else{const r=a_(t),i=($x(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $C(t,n)}build(t,n,r,i){cv(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return pv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Wx(t,n,r,i)}}class l_ extends JC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}return n=Kx.has(n)?n:rv(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ze()}scrapeMotionValuesFromProps(t,n){return qx(t,n,this)}build(t,n,r,i){dv(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Gx(t,n,r,i)}mount(t){this.isSVGTag=hv(t.tagName),super.mount(t)}}const u_=(e,t)=>sv(e)?new l_(t,{enableHardwareAcceleration:!1}):new s_(t,{enableHardwareAcceleration:!0}),c_={layout:{ProjectionNode:XC,MeasureLayout:zC}},f_={...GF,...oA,...JL,...c_},ZC=mO((e,t)=>KO(e,t,f_,u_)),eE=w.createContext(null);function d_(e,t,n,r){if(!r)return e;const i=e.findIndex(c=>c.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const s=e[i],l=a.layout,u=$e(l.min,l.max,.5);return o===1&&s.layout.max+n>u||o===-1&&s.layout.min+nZC(t)),l=[],u=w.useRef(!1),c={axis:n,registerItem:(f,d)=>{const g=l.findIndex(S=>f===S.value);g!==-1?l[g].layout=d[n]:l.push({value:f,layout:d[n]}),l.sort(v_)},updateOrder:(f,d,g)=>{if(u.current)return;const S=d_(l,f,d,g);l!==S&&(u.current=!0,r(S.map(m_).filter(p=>i.indexOf(p)!==-1)))}};return w.useEffect(()=>{u.current=!1}),w.createElement(s,{...o,ref:a,ignoreStrict:!0},w.createElement(eE.Provider,{value:c},e))}const p_=w.forwardRef(h_);function m_(e){return e.value}function v_(e,t){return e.layout.min-t.layout.min}function tE(e){const t=qs(()=>Yo(e)),{isStatic:n}=w.useContext(ev);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}const g_=e=>e&&typeof e=="object"&&e.mix,y_=e=>g_(e)?e.mix:void 0;function S_(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],s=MC(i,o,{mixer:y_(o[0]),...a});return t?s(r):s}function nE(e,t){const n=tE(t()),r=()=>n.set(t());return r(),Ax(()=>{const i=()=>yt.update(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Mr(r)}}),n}function w_(e){Za.current=[],e();const t=nE(Za.current,e);return Za.current=void 0,t}function b_(e,t,n,r){if(typeof e=="function")return w_(e);const i=typeof t=="function"?t:S_(t,n,r);return Array.isArray(e)?Z0(e,i):Z0([e],([o])=>i(o))}function Z0(e,t){const n=qs(()=>[]);return nE(e,()=>{n.length=0;const r=e.length;for(let i=0;iZC(r)),u=w.useContext(eE),c={x:e1(t.x),y:e1(t.y)},f=b_([c.x,c.y],([p,m])=>p||m?1:"unset"),{axis:d,registerItem:g,updateOrder:S}=u;return w.createElement(l,{drag:d,...a,dragSnapToOrigin:!0,style:{...t,x:c.x,y:c.y,zIndex:f},layout:o,onDrag:(p,m)=>{const{velocity:h}=m;h[d]&&S(n,c[d].get(),h[d]),i&&i(p,m)},onLayoutMeasure:p=>g(n,p),ref:s,ignoreStrict:!0},e)}const C_=w.forwardRef(x_),t1={Group:p_,Item:C_},E_="_heading_8v9q8_1",k_="_maintainerContainer_8v9q8_6",P_="_contributor_8v9q8_10",T_="_contributionContainer_8v9q8_15",Va={heading:E_,maintainerContainer:k_,contributor:P_,contributionContainer:T_};function yd({username:e,avatar:t}){return M.jsx("a",{href:`https://github.com/${e}`,title:e,className:Va.contributor,target:"_blank",rel:"noreferrer",children:M.jsx("img",{src:`https://avatars.githubusercontent.com/u/${t}`,alt:e,loading:"lazy"})})}const R_=[{username:"sadanandpai",avatar:"12962887"},{username:"arpansaha13",avatar:"82361490"}];function rE(e,t){return function(){return e.apply(t,arguments)}}const{toString:M_}=Object.prototype,{getPrototypeOf:Rv}=Object,jc=(e=>t=>{const n=M_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>jc(t)===e),$c=e=>t=>typeof t===e,{isArray:sa}=Array,Ms=$c("undefined");function O_(e){return e!==null&&!Ms(e)&&e.constructor!==null&&!Ms(e.constructor)&&un(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iE=Gn("ArrayBuffer");function A_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iE(e.buffer),t}const F_=$c("string"),un=$c("function"),oE=$c("number"),Bc=e=>e!==null&&typeof e=="object",L_=e=>e===!0||e===!1,su=e=>{if(jc(e)!=="object")return!1;const t=Rv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},__=Gn("Date"),I_=Gn("File"),D_=Gn("Blob"),N_=Gn("FileList"),V_=e=>Bc(e)&&un(e.pipe),j_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||un(e.append)&&((t=jc(e))==="formdata"||t==="object"&&un(e.toString)&&e.toString()==="[object FormData]"))},$_=Gn("URLSearchParams"),[B_,z_,U_,H_]=["ReadableStream","Request","Response","Headers"].map(Gn),W_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ys(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),sa(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ai=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sE=e=>!Ms(e)&&e!==Ai;function op(){const{caseless:e}=sE(this)&&this||{},t={},n=(r,i)=>{const o=e&&aE(t,i)||i;su(t[o])&&su(r)?t[o]=op(t[o],r):su(r)?t[o]=op({},r):sa(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ys(t,(i,o)=>{n&&un(i)?e[o]=rE(i,n):e[o]=i},{allOwnKeys:r}),e),G_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),q_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},X_=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Rv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Q_=e=>{if(!e)return null;if(sa(e))return e;let t=e.length;if(!oE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},J_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Rv(Uint8Array)),Z_=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},eI=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tI=Gn("HTMLFormElement"),nI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),n1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rI=Gn("RegExp"),lE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ys(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},iI=e=>{lE(e,(t,n)=>{if(un(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(un(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oI=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return sa(e)?r(e):r(String(e).split(t)),n},aI=()=>{},sI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Sd="abcdefghijklmnopqrstuvwxyz",r1="0123456789",uE={DIGIT:r1,ALPHA:Sd,ALPHA_DIGIT:Sd+Sd.toUpperCase()+r1},lI=(e=16,t=uE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function uI(e){return!!(e&&un(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cI=e=>{const t=new Array(10),n=(r,i)=>{if(Bc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=sa(r)?[]:{};return Ys(r,(a,s)=>{const l=n(a,i+1);!Ms(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},fI=Gn("AsyncFunction"),dI=e=>e&&(Bc(e)||un(e))&&un(e.then)&&un(e.catch),cE=((e,t)=>e?setImmediate:t?((n,r)=>(Ai.addEventListener("message",({source:i,data:o})=>{i===Ai&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",un(Ai.postMessage)),hI=typeof queueMicrotask<"u"?queueMicrotask.bind(Ai):typeof process<"u"&&process.nextTick||cE,D={isArray:sa,isArrayBuffer:iE,isBuffer:O_,isFormData:j_,isArrayBufferView:A_,isString:F_,isNumber:oE,isBoolean:L_,isObject:Bc,isPlainObject:su,isReadableStream:B_,isRequest:z_,isResponse:U_,isHeaders:H_,isUndefined:Ms,isDate:__,isFile:I_,isBlob:D_,isRegExp:rI,isFunction:un,isStream:V_,isURLSearchParams:$_,isTypedArray:J_,isFileList:N_,forEach:Ys,merge:op,extend:K_,trim:W_,stripBOM:G_,inherits:q_,toFlatObject:X_,kindOf:jc,kindOfTest:Gn,endsWith:Y_,toArray:Q_,forEachEntry:Z_,matchAll:eI,isHTMLForm:tI,hasOwnProperty:n1,hasOwnProp:n1,reduceDescriptors:lE,freezeMethods:iI,toObjectSet:oI,toCamelCase:nI,noop:aI,toFiniteNumber:sI,findKey:aE,global:Ai,isContextDefined:sE,ALPHABET:uE,generateString:lI,isSpecCompliantForm:uI,toJSONObject:cI,isAsyncFn:fI,isThenable:dI,setImmediate:cE,asap:hI};function me(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fE=me.prototype,dE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dE[e]={value:e}});Object.defineProperties(me,dE);Object.defineProperty(fE,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,o)=>{const a=Object.create(fE);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),me.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const pI=null;function ap(e){return D.isPlainObject(e)||D.isArray(e)}function hE(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function i1(e,t,n){return e?e.concat(t).map(function(i,o){return i=hE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function mI(e){return D.isArray(e)&&!e.some(ap)}const vI=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function zc(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!D.isUndefined(m[p])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(S){if(S===null)return"";if(D.isDate(S))return S.toISOString();if(!l&&D.isBlob(S))throw new me("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(S)||D.isTypedArray(S)?l&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function c(S,p,m){let h=S;if(S&&!m&&typeof S=="object"){if(D.endsWith(p,"{}"))p=r?p:p.slice(0,-2),S=JSON.stringify(S);else if(D.isArray(S)&&mI(S)||(D.isFileList(S)||D.endsWith(p,"[]"))&&(h=D.toArray(S)))return p=hE(p),h.forEach(function(v,x){!(D.isUndefined(v)||v===null)&&t.append(a===!0?i1([p],x,o):a===null?p:p+"[]",u(v))}),!1}return ap(S)?!0:(t.append(i1(m,p,o),u(S)),!1)}const f=[],d=Object.assign(vI,{defaultVisitor:c,convertValue:u,isVisitable:ap});function g(S,p){if(!D.isUndefined(S)){if(f.indexOf(S)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(S),D.forEach(S,function(h,y){(!(D.isUndefined(h)||h===null)&&i.call(t,h,D.isString(y)?y.trim():y,p,d))===!0&&g(h,p?p.concat(y):[y])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return g(e),t}function o1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Mv(e,t){this._pairs=[],e&&zc(e,this,t)}const pE=Mv.prototype;pE.append=function(t,n){this._pairs.push([t,n])};pE.toString=function(t){const n=t?function(r){return t.call(this,r,o1)}:o1;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mE(e,t,n){if(!t)return e;const r=n&&n.encode||gI,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Mv(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class yI{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const a1=yI,vE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SI=typeof URLSearchParams<"u"?URLSearchParams:Mv,wI=typeof FormData<"u"?FormData:null,bI=typeof Blob<"u"?Blob:null,xI={isBrowser:!0,classes:{URLSearchParams:SI,FormData:wI,Blob:bI},protocols:["http","https","file","blob","url","data"]},Ov=typeof window<"u"&&typeof document<"u",CI=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EI=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kI=Ov&&window.location.href||"http://localhost",PI=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserEnv:CI,hasStandardBrowserWebWorkerEnv:EI,origin:kI},Symbol.toStringTag,{value:"Module"})),Bn={...PI,...xI};function TI(e,t){return zc(e,new Bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Bn.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function RI(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MI(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=MI(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(RI(r),i,n,0)}),n}return null}function OI(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:vE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i?JSON.stringify(gE(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TI(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return zc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),OI(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?me.from(s,me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bn.classes.FormData,Blob:Bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});const Fv=Av,AI=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FI=e=>{const t={};let n,r,i;return e&&e.split(` + */function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function VM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function jM(e,t){return e.button===0&&(!t||t==="_self")&&!VM(e)}const $M=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],BM=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];function zM(e,t){return sM({basename:t==null?void 0:t.basename,future:qo({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:OR({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||UM(),routes:e,mapRouteProperties:NM,window:t==null?void 0:t.window}).initialize()}function UM(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=qo({},t,{errors:HM(t.errors)})),t}function HM(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new Qm(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let o=new Error(i.message);o.stack="",n[r]=o}}else n[r]=i;return n}const Mx=w.createContext({isTransitioning:!1}),WM=w.createContext(new Map),KM="startTransition",zy=$o[KM],GM="flushSync",Uy=MR[GM];function qM(e){zy?zy(e):e()}function ka(e){Uy?Uy(e):e()}class XM{constructor(){this.status="pending",this.promise=new Promise((t,n)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function YM(e){let{fallbackElement:t,router:n,future:r}=e,[i,o]=w.useState(n.state),[a,s]=w.useState(),[l,u]=w.useState({isTransitioning:!1}),[c,f]=w.useState(),[d,g]=w.useState(),[S,p]=w.useState(),m=w.useRef(new Map),{v7_startTransition:h}=r||{},y=w.useCallback(C=>{h?qM(C):C()},[h]),v=w.useCallback((C,k)=>{let{deletedFetchers:T,unstable_flushSync:F,unstable_viewTransitionOpts:V}=k;T.forEach(U=>m.current.delete(U)),C.fetchers.forEach((U,Q)=>{U.data!==void 0&&m.current.set(Q,U.data)});let H=n.window==null||typeof n.window.document.startViewTransition!="function";if(!V||H){F?ka(()=>o(C)):y(()=>o(C));return}if(F){ka(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let U=n.window.document.startViewTransition(()=>{ka(()=>o(C))});U.finished.finally(()=>{ka(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})})}),ka(()=>g(U));return}d?(c&&c.resolve(),d.skipTransition(),p({state:C,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(s(C),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,d,c,m,y]);w.useLayoutEffect(()=>n.subscribe(v),[n,v]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new XM)},[l]),w.useEffect(()=>{if(c&&a&&n.window){let C=a,k=c.promise,T=n.window.document.startViewTransition(async()=>{y(()=>o(C)),await k});T.finished.finally(()=>{f(void 0),g(void 0),s(void 0),u({isTransitioning:!1})}),g(T)}},[y,a,c,n.window]),w.useEffect(()=>{c&&a&&i.location.key===a.location.key&&c.resolve()},[c,d,i.location,a]),w.useEffect(()=>{!l.isTransitioning&&S&&(s(S.state),u({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),p(void 0))},[l.isTransitioning,S]),w.useEffect(()=>{},[]);let x=w.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:C=>n.navigate(C),push:(C,k,T)=>n.navigate(C,{state:k,preventScrollReset:T==null?void 0:T.preventScrollReset}),replace:(C,k,T)=>n.navigate(C,{replace:!0,state:k,preventScrollReset:T==null?void 0:T.preventScrollReset})}),[n]),E=n.basename||"/",b=w.useMemo(()=>({router:n,navigator:x,static:!1,basename:E}),[n,x,E]);return w.createElement(w.Fragment,null,w.createElement(zs.Provider,{value:b},w.createElement(Zm.Provider,{value:i},w.createElement(WM.Provider,{value:m.current},w.createElement(Mx.Provider,{value:l},w.createElement(DM,{basename:E,location:i.location,navigationType:i.historyAction,navigator:x,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?w.createElement(QM,{routes:n.routes,future:n.future,state:i}):t))))),null)}function QM(e){let{routes:t,future:n,state:r}=e;return EM(t,void 0,r,n)}const JM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZM=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fc=w.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c,unstable_viewTransition:f}=t,d=Rx(t,$M),{basename:g}=w.useContext(di),S,p=!1;if(typeof u=="string"&&ZM.test(u)&&(S=u,JM))try{let v=new URL(window.location.href),x=u.startsWith("//")?new URL(v.protocol+u):new URL(u),E=oi(x.pathname,g);x.origin===v.origin&&E!=null?u=E+x.search+x.hash:p=!0}catch{}let m=bM(u,{relative:i}),h=tO(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:f});function y(v){r&&r(v),v.defaultPrevented||h(v)}return w.createElement("a",qo({},d,{href:S||m,onClick:p||o?r:y,ref:n,target:l}))}),Ox=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:o="",end:a=!1,style:s,to:l,unstable_viewTransition:u,children:c}=t,f=Rx(t,BM),d=Ac(l,{relative:f.relative}),g=Hs(),S=w.useContext(Zm),{navigator:p}=w.useContext(di),m=S!=null&&nO(d)&&u===!0,h=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,y=g.pathname,v=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(y=y.toLowerCase(),v=v?v.toLowerCase():null,h=h.toLowerCase());const x=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=y===h||!a&&y.startsWith(h)&&y.charAt(x)==="/",b=v!=null&&(v===h||!a&&v.startsWith(h)&&v.charAt(h.length)==="/"),C={isActive:E,isPending:b,isTransitioning:m},k=E?r:void 0,T;typeof o=="function"?T=o(C):T=[o,E?"active":null,b?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(C):s;return w.createElement(Fc,qo({},f,{"aria-current":k,className:T,ref:n,style:F,to:l,unstable_viewTransition:u}),typeof c=="function"?c(C):c)});var Hh;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Hh||(Hh={}));var Hy;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Hy||(Hy={}));function eO(e){let t=w.useContext(zs);return t||ge(!1),t}function tO(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s}=t===void 0?{}:t,l=kx(),u=Hs(),c=Ac(e,{relative:a});return w.useCallback(f=>{if(jM(f,n)){f.preventDefault();let d=r!==void 0?r:Wi(u)===Wi(c);l(e,{replace:d,state:i,preventScrollReset:o,relative:a,unstable_viewTransition:s})}},[u,l,c,r,i,n,e,o,a,s])}function nO(e,t){t===void 0&&(t={});let n=w.useContext(Mx);n==null&&ge(!1);let{basename:r}=eO(Hh.useViewTransitionState),i=Ac(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=oi(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=oi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return $h(i.pathname,a)!=null||$h(i.pathname,o)!=null}const ev=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Lc=w.createContext({}),tv=w.createContext(null),nv=typeof document<"u",Ax=nv?w.useLayoutEffect:w.useEffect,Fx=w.createContext({strict:!1}),rv=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),rO="framerAppearId",Lx="data-"+rv(rO),iO={skipAnimations:!1,useManualTiming:!1};class Wy{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function oO(e){let t=new Wy,n=new Wy,r=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(l,u=!1,c=!1)=>{const f=c&&i,d=f?t:n;return u&&a.add(l),d.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),a.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(f[d]=oO(()=>n=!0),f),{}),a=f=>{o[f].process(i)},s=()=>{const f=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,aO),1),i.timestamp=f,i.isProcessing=!0,Rl.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(s))},l=()=>{n=!0,r=!0,i.isProcessing||e(s)};return{schedule:Rl.reduce((f,d)=>{const g=o[d];return f[d]=(S,p=!1,m=!1)=>(n||l(),g.schedule(S,p,m)),f},{}),cancel:f=>Rl.forEach(d=>o[d].cancel(f)),state:i,steps:o}}const{schedule:iv,cancel:vz}=_x(queueMicrotask,!1);function sO(e,t,n,r){const{visualElement:i}=w.useContext(Lc),o=w.useContext(Fx),a=w.useContext(tv),s=w.useContext(ev).reducedMotion,l=w.useRef();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));const u=l.current;w.useInsertionEffect(()=>{u&&u.update(n,a)});const c=w.useRef(!!(n[Lx]&&!window.HandoffComplete));return Ax(()=>{u&&(iv.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),w.useEffect(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}function Eo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lO(e,t,n){return w.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Eo(n)&&(n.current=r))},[t])}function Ps(e){return typeof e=="string"||Array.isArray(e)}function _c(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ov=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],av=["initial",...ov];function Ic(e){return _c(e.animate)||av.some(t=>Ps(e[t]))}function Ix(e){return!!(Ic(e)||e.variants)}function uO(e,t){if(Ic(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ps(n)?n:void 0,animate:Ps(r)?r:void 0}}return e.inherit!==!1?t:{}}function cO(e){const{initial:t,animate:n}=uO(e,w.useContext(Lc));return w.useMemo(()=>({initial:t,animate:n}),[Ky(t),Ky(n)])}function Ky(e){return Array.isArray(e)?e.join(" "):e}const Gy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ts={};for(const e in Gy)Ts[e]={isEnabled:t=>Gy[e].some(n=>!!t[n])};function fO(e){for(const t in e)Ts[t]={...Ts[t],...e[t]}}const Dx=w.createContext({}),Nx=w.createContext({}),dO=Symbol.for("motionComponentSymbol");function hO({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&fO(e);function o(s,l){let u;const c={...w.useContext(ev),...s,layoutId:pO(s)},{isStatic:f}=c,d=cO(s),g=r(s,f);if(!f&&nv){d.visualElement=sO(i,g,c,t);const S=w.useContext(Nx),p=w.useContext(Fx).strict;d.visualElement&&(u=d.visualElement.loadFeatures(c,p,e,S))}return w.createElement(Lc.Provider,{value:d},u&&d.visualElement?w.createElement(u,{visualElement:d.visualElement,...c}):null,n(i,s,lO(g,d.visualElement,l),g,f,d.visualElement))}const a=w.forwardRef(o);return a[dO]=i,a}function pO({layoutId:e}){const t=w.useContext(Dx).id;return t&&e!==void 0?t+"-"+e:e}function mO(e){function t(r,i={}){return hO(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const vO=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function sv(e){return typeof e!="string"||e.includes("-")?!1:!!(vO.indexOf(e)>-1||/[A-Z]/u.test(e))}const Ku={};function gO(e){Object.assign(Ku,e)}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yi=new Set(Ws);function Vx(e,{layout:t,layoutId:n}){return Yi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ku[e]||e==="opacity")}const kt=e=>!!(e&&e.getVelocity),yO={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SO=Ws.length;function wO(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;at=>typeof t=="string"&&t.startsWith(e),$x=jx("--"),bO=jx("var(--"),lv=e=>bO(e)?xO.test(e.split("/*")[0].trim()):!1,xO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,CO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ai=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Qa={...aa,transform:e=>ai(0,1,e)},Ml={...aa,default:1},Ja=e=>Math.round(e*1e5)/1e5,uv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,EO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,kO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Ks(e){return typeof e=="string"}const Gs=e=>({test:t=>Ks(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Dr=Gs("deg"),or=Gs("%"),ue=Gs("px"),PO=Gs("vh"),TO=Gs("vw"),qy={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(e*100)},Xy={...aa,transform:Math.round},Bx={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,radius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,size:ue,top:ue,right:ue,bottom:ue,left:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,rotate:Dr,rotateX:Dr,rotateY:Dr,rotateZ:Dr,scale:Ml,scaleX:Ml,scaleY:Ml,scaleZ:Ml,skew:Dr,skewX:Dr,skewY:Dr,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:Qa,originX:qy,originY:qy,originZ:ue,zIndex:Xy,backgroundPositionX:ue,backgroundPositionY:ue,fillOpacity:Qa,strokeOpacity:Qa,numOctaves:Xy};function cv(e,t,n,r){const{style:i,vars:o,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const f in t){const d=t[f];if($x(f)){o[f]=d;continue}const g=Bx[f],S=CO(d,g);if(Yi.has(f)){if(l=!0,a[f]=S,!c)continue;d!==(g.default||0)&&(c=!1)}else f.startsWith("origin")?(u=!0,s[f]=S):i[f]=S}if(t.transform||(l||r?i.transform=wO(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:d="50%",originZ:g=0}=s;i.transformOrigin=`${f} ${d} ${g}`}}const fv=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zx(e,t,n){for(const r in t)!kt(t[r])&&!Vx(r,n)&&(e[r]=t[r])}function RO({transformTemplate:e},t,n){return w.useMemo(()=>{const r=fv();return cv(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function MO(e,t,n){const r=e.style||{},i={};return zx(i,r,e),Object.assign(i,RO(e,t,n)),i}function OO(e,t,n){const r={},i=MO(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const AO=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Gu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AO.has(e)}let Ux=e=>!Gu(e);function FO(e){e&&(Ux=t=>t.startsWith("on")?!Gu(t):e(t))}try{FO(require("@emotion/is-prop-valid").default)}catch{}function LO(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Ux(i)||n===!0&&Gu(i)||!t&&!Gu(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Yy(e,t,n){return typeof e=="string"?e:ue.transform(t+n*e)}function _O(e,t,n){const r=Yy(t,e.x,e.width),i=Yy(n,e.y,e.height);return`${r} ${i}`}const IO={offset:"stroke-dashoffset",array:"stroke-dasharray"},DO={offset:"strokeDashoffset",array:"strokeDasharray"};function NO(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?IO:DO;e[o.offset]=ue.transform(-r);const a=ue.transform(t),s=ue.transform(n);e[o.array]=`${a} ${s}`}function dv(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,f,d){if(cv(e,u,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:S,dimensions:p}=e;g.transform&&(p&&(S.transform=g.transform),delete g.transform),p&&(i!==void 0||o!==void 0||S.transform)&&(S.transformOrigin=_O(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),a!==void 0&&NO(g,a,s,l,!1)}const Hx=()=>({...fv(),attrs:{}}),hv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function VO(e,t,n,r){const i=w.useMemo(()=>{const o=Hx();return dv(o,t,{enableHardwareAcceleration:!1},hv(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};zx(o,e.style,e),i.style={...o,...i.style}}return i}function jO(e=!1){return(n,r,i,{latestValues:o},a)=>{const l=(sv(n)?VO:OO)(r,o,a,n),u=LO(r,typeof n=="string",e),c=n!==w.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=w.useMemo(()=>kt(f)?f.get():f,[f]);return w.createElement(n,{...c,children:d})}}function Wx(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const Kx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Gx(e,t,n,r){Wx(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Kx.has(i)?i:rv(i),t.attrs[i])}function pv(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(kt(i[a])||t.style&&kt(t.style[a])||Vx(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function qx(e,t,n){const r=pv(e,t,n);for(const i in e)if(kt(e[i])||kt(t[i])){const o=Ws.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function mv(e,t,n,r={},i={}){return typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(n!==void 0?n:e.custom,r,i)),t}function qs(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wh=e=>Array.isArray(e),$O=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),BO=e=>Wh(e)?e[e.length-1]||0:e;function iu(e){const t=kt(e)?e.get():e;return $O(t)?t.toValue():t}function zO({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:UO(r,i,o,e),renderState:t()};return n&&(a.mount=s=>n(r,s,a)),a}const Xx=e=>(t,n)=>{const r=w.useContext(Lc),i=w.useContext(tv),o=()=>zO(e,t,r,i);return n?o():qs(o)};function UO(e,t,n,r){const i={},o=r(e,{});for(const d in o)i[d]=iu(o[d]);let{initial:a,animate:s}=e;const l=Ic(e),u=Ix(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let c=n?n.initial===!1:!1;c=c||a===!1;const f=c?s:a;return f&&typeof f!="boolean"&&!_c(f)&&(Array.isArray(f)?f:[f]).forEach(g=>{const S=mv(e,g);if(!S)return;const{transitionEnd:p,transition:m,...h}=S;for(const y in h){let v=h[y];if(Array.isArray(v)){const x=c?v.length-1:0;v=v[x]}v!==null&&(i[y]=v)}for(const y in p)i[y]=p[y]}),i}const Tt=e=>e,{schedule:yt,cancel:Mr,state:Ct,steps:od}=_x(typeof requestAnimationFrame<"u"?requestAnimationFrame:Tt,!0),HO={useVisualState:Xx({scrapeMotionValuesFromProps:qx,createRenderState:Hx,onMount:(e,t,{renderState:n,latestValues:r})=>{yt.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),yt.render(()=>{dv(n,r,{enableHardwareAcceleration:!1},hv(t.tagName),e.transformTemplate),Gx(t,n)})}})},WO={useVisualState:Xx({scrapeMotionValuesFromProps:pv,createRenderState:fv})};function KO(e,{forwardMotionProps:t=!1},n,r){return{...sv(e)?HO:WO,preloadedFeatures:n,useRender:jO(t),createVisualElement:r,Component:e}}function yr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Yx=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Dc(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const GO=e=>t=>Yx(t)&&e(t,Dc(t));function br(e,t,n,r){return yr(e,t,GO(n),r)}const qO=(e,t)=>n=>t(e(n)),xr=(...e)=>e.reduce(qO);function Qx(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const Qy=Qx("dragHorizontal"),Jy=Qx("dragVertical");function Jx(e){let t=!1;if(e==="y")t=Jy();else if(e==="x")t=Qy();else{const n=Qy(),r=Jy();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function Zx(){const e=Jx(!0);return e?(e(),!1):!0}class pi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Zy(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Zx())return;const s=e.getProps();e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",t),s[r]&&s[r](o,a)};return br(e.current,n,i,{passive:!e.getProps()[r]})}class XO extends pi{mount(){this.unmount=xr(Zy(this.node,!0),Zy(this.node,!1))}unmount(){}}class YO extends pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=xr(yr(this.node.current,"focus",()=>this.onFocus()),yr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const eC=(e,t)=>t?e===t?!0:eC(e,t.parentElement):!1;function ad(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Dc(n))}class QO extends pi{constructor(){super(...arguments),this.removeStartListeners=Tt,this.removeEndListeners=Tt,this.removeAccessibleListeners=Tt,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=br(window,"pointerup",(s,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:f}=this.node.getProps();!f&&!eC(this.node.current,s.target)?c&&c(s,l):u&&u(s,l)},{passive:!(r.onTap||r.onPointerUp)}),a=br(window,"pointercancel",(s,l)=>this.cancelPress(s,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=xr(o,a),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=s=>{s.key!=="Enter"||!this.checkPressEnd()||ad("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&c(l,u)})};this.removeEndListeners(),this.removeEndListeners=yr(this.node.current,"keyup",a),ad("down",(s,l)=>{this.startPress(s,l)})},n=yr(this.node.current,"keydown",t),r=()=>{this.isPressing&&ad("cancel",(o,a)=>this.cancelPress(o,a))},i=yr(this.node.current,"blur",r);this.removeAccessibleListeners=xr(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&r(t,n)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Zx()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&r(t,n)}mount(){const t=this.node.getProps(),n=br(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=yr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=xr(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Kh=new WeakMap,sd=new WeakMap,JO=e=>{const t=Kh.get(e.target);t&&t(e)},ZO=e=>{e.forEach(JO)};function eA({root:e,...t}){const n=e||document;sd.has(n)||sd.set(n,{});const r=sd.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(ZO,{root:e,...t})),r[i]}function tA(e,t,n){const r=eA(t);return Kh.set(e,n),r.observe(e),()=>{Kh.delete(e),r.unobserve(e)}}const nA={some:0,all:1};class rA extends pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nA[i]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return tA(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iA(t,n))&&this.startObserver()}unmount(){}}function iA({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oA={inView:{Feature:rA},tap:{Feature:QO},focus:{Feature:YO},hover:{Feature:XO}};function tC(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rt[r]=n.get()),t}function sA(e){const t={};return e.values.forEach((n,r)=>t[r]=n.getVelocity()),t}function Nc(e,t,n){const r=e.getProps();return mv(r,t,n!==void 0?n:r.custom,aA(e),sA(e))}const Cr=e=>e*1e3,Er=e=>e/1e3,lA={type:"spring",stiffness:500,damping:25,restSpeed:10},uA=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),cA={type:"keyframes",duration:.8},fA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dA=(e,{keyframes:t})=>t.length>2?cA:Yi.has(e)?e.startsWith("scale")?uA(t[1]):lA:fA;function hA({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function vv(e,t){return e[t]||e.default||e}const pA=e=>e!==null;function Vc(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(pA),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}let ou;function mA(){ou=void 0}const ti={now:()=>(ou===void 0&&ti.set(Ct.isProcessing||iO.useManualTiming?Ct.timestamp:performance.now()),ou),set:e=>{ou=e,queueMicrotask(mA)}},nC=e=>/^0[^.\s]+$/u.test(e);function vA(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nC(e):!0}let gA=Tt,rC=Tt;const iC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),yA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function SA(e){const t=yA.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function oC(e,t,n=1){const[r,i]=SA(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return iC(a)?parseFloat(a):a}return lv(i)?oC(i,t,n+1):i}const wA=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),e0=e=>e===aa||e===ue,t0=(e,t)=>parseFloat(e.split(", ")[t]),n0=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return t0(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?t0(o[1],e):0}},bA=new Set(["x","y","z"]),xA=Ws.filter(e=>!bA.has(e));function r0(e){const t=[];return xA.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Xo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:n0(4,13),y:n0(5,14)};Xo.translateX=Xo.x;Xo.translateY=Xo.y;const aC=e=>t=>t.test(e),CA={test:e=>e==="auto",parse:e=>e},sC=[aa,ue,or,Dr,TO,PO,CA],i0=e=>sC.find(aC(e)),Ni=new Set;let Gh=!1,qh=!1;function lC(){if(qh){const e=Array.from(Ni).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{r0(r).length&&(n.set(r,r0(r)),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render()}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}qh=!1,Gh=!1,Ni.forEach(e=>e.complete()),Ni.clear()}function uC(){Ni.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(qh=!0)})}function EA(){uC(),lC()}class gv{constructor(t,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ni.add(this),Gh||(Gh=!0,yt.read(uC),yt.resolveKeyframes(lC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;on=>!!(Ks(n)&&kO.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),cC=(e,t,n)=>r=>{if(!Ks(r))return r;const[i,o,a,s]=r.match(uv);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},kA=e=>ai(0,255,e),ld={...aa,transform:e=>Math.round(kA(e))},Oi={test:yv("rgb","red"),parse:cC("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ld.transform(e)+", "+ld.transform(t)+", "+ld.transform(n)+", "+Ja(Qa.transform(r))+")"};function PA(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Xh={test:yv("#"),parse:PA,transform:Oi.transform},ko={test:yv("hsl","hue"),parse:cC("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+or.transform(Ja(t))+", "+or.transform(Ja(n))+", "+Ja(Qa.transform(r))+")"},_t={test:e=>Oi.test(e)||Xh.test(e)||ko.test(e),parse:e=>Oi.test(e)?Oi.parse(e):ko.test(e)?ko.parse(e):Xh.parse(e),transform:e=>Ks(e)?e:e.hasOwnProperty("red")?Oi.transform(e):ko.transform(e)};function TA(e){var t,n;return isNaN(e)&&Ks(e)&&(((t=e.match(uv))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(EO))===null||n===void 0?void 0:n.length)||0)>0}const fC="number",dC="color",RA="var",MA="var(",o0="${}",OA=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qu(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(OA,l=>(_t.test(l)?(r.color.push(o),i.push(dC),n.push(_t.parse(l))):l.startsWith(MA)?(r.var.push(o),i.push(RA),n.push(l)):(r.number.push(o),i.push(fC),n.push(parseFloat(l))),++o,o0)).split(o0);return{values:n,split:s,indexes:r,types:i}}function hC(e){return qu(e).values}function pC(e){const{split:t,types:n}=qu(e),r=t.length;return i=>{let o="";for(let a=0;atypeof e=="number"?0:e;function FA(e){const t=hC(e);return pC(e)(t.map(AA))}const si={test:TA,parse:hC,createTransformer:pC,getAnimatableNone:FA},LA=new Set(["brightness","contrast","saturate","opacity"]);function _A(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(uv)||[];if(!r)return e;const i=n.replace(r,"");let o=LA.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const IA=/\b([a-z-]*)\(.*?\)/gu,Yh={...si,getAnimatableNone:e=>{const t=e.match(IA);return t?t.map(_A).join(" "):e}},DA={...Bx,color:_t,backgroundColor:_t,outlineColor:_t,fill:_t,stroke:_t,borderColor:_t,borderTopColor:_t,borderRightColor:_t,borderBottomColor:_t,borderLeftColor:_t,filter:Yh,WebkitFilter:Yh},Sv=e=>DA[e];function mC(e,t){let n=Sv(e);return n!==Yh&&(n=si),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function NA(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function VA(e){let t;return()=>(t===void 0&&(t=e()),t)}const a0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(si.test(e)||e==="0")&&!e.startsWith("url("));function jA(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function yC(e,t){return t?e*(1e3/t):0}const BA=5;function SC(e,t,n){const r=Math.max(t-BA,0);return yC(n-e(r),t-r)}const ud=.001,zA=.01,s0=10,UA=.05,HA=1;function WA({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;gA(e<=Cr(s0));let a=1-t;a=ai(UA,HA,a),e=ai(zA,s0,Er(e)),a<1?(i=u=>{const c=u*a,f=c*e,d=c-n,g=Qh(u,a),S=Math.exp(-f);return ud-d/g*S},o=u=>{const f=u*a*e,d=f*n+n,g=Math.pow(a,2)*Math.pow(u,2)*e,S=Math.exp(-f),p=Qh(Math.pow(u,2),a);return(-i(u)+ud>0?-1:1)*((d-g)*S)/p}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-ud+c*f},o=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const s=5/e,l=GA(i,o,s);if(e=Cr(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const KA=12;function GA(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function YA(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!l0(e,XA)&&l0(e,qA)){const n=WA(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function wC({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:l,mass:u,duration:c,velocity:f,isResolvedFromDuration:d}=YA({...r,velocity:-Er(r.velocity||0)}),g=f||0,S=l/(2*Math.sqrt(s*u)),p=o-i,m=Er(Math.sqrt(s/u)),h=Math.abs(p)<5;n||(n=h?.01:2),t||(t=h?.005:.5);let y;if(S<1){const v=Qh(m,S);y=x=>{const E=Math.exp(-S*m*x);return o-E*((g+S*m*p)/v*Math.sin(v*x)+p*Math.cos(v*x))}}else if(S===1)y=v=>o-Math.exp(-m*v)*(p+(g+m*p)*v);else{const v=m*Math.sqrt(S*S-1);y=x=>{const E=Math.exp(-S*m*x),b=Math.min(v*x,300);return o-E*((g+S*m*p)*Math.sinh(b)+v*p*Math.cosh(b))/v}}return{calculatedDuration:d&&c||null,next:v=>{const x=y(v);if(d)a.done=v>=c;else{let E=g;v!==0&&(S<1?E=SC(y,v,x):E=0);const b=Math.abs(E)<=n,C=Math.abs(o-x)<=t;a.done=b&&C}return a.value=a.done?o:x,a}}}function u0({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},g=k=>s!==void 0&&kl,S=k=>s===void 0?l:l===void 0||Math.abs(s-k)-p*Math.exp(-k/r),v=k=>h+y(k),x=k=>{const T=y(k),F=v(k);d.done=Math.abs(T)<=u,d.value=d.done?h:F};let E,b;const C=k=>{g(d.value)&&(E=k,b=wC({keyframes:[d.value,S(d.value)],velocity:SC(v,k,d.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return C(0),{calculatedDuration:null,next:k=>{let T=!1;return!b&&E===void 0&&(T=!0,x(k),C(k)),E!==void 0&&k>=E?b.next(k-E):(!T&&x(k),d)}}}const bC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,QA=1e-7,JA=12;function ZA(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=bC(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>QA&&++sZA(o,0,1,e,n);return o=>o===0||o===1?o:bC(i(o),t,r)}const eF=Xs(.42,0,1,1),tF=Xs(0,0,.58,1),xC=Xs(.42,0,.58,1),nF=e=>Array.isArray(e)&&typeof e[0]!="number",CC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,EC=e=>t=>1-e(1-t),wv=e=>1-Math.sin(Math.acos(e)),kC=EC(wv),rF=CC(wv),PC=Xs(.33,1.53,.69,.99),bv=EC(PC),iF=CC(bv),oF=e=>(e*=2)<1?.5*bv(e):.5*(2-Math.pow(2,-10*(e-1))),aF={linear:Tt,easeIn:eF,easeInOut:xC,easeOut:tF,circIn:wv,circInOut:rF,circOut:kC,backIn:bv,backInOut:iF,backOut:PC,anticipate:oF},c0=e=>{if(Array.isArray(e)){rC(e.length===4);const[t,n,r,i]=e;return Xs(t,n,r,i)}else if(typeof e=="string")return aF[e];return e},Rs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$e=(e,t,n)=>e+(t-e)*n;function cd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function sF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=cd(l,s,e+1/3),o=cd(l,s,e),a=cd(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const fd=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},lF=[Xh,Oi,ko],uF=e=>lF.find(t=>t.test(e));function f0(e){const t=uF(e);let n=t.parse(e);return t===ko&&(n=sF(n)),n}const d0=(e,t)=>{const n=f0(e),r=f0(t),i={...n};return o=>(i.red=fd(n.red,r.red,o),i.green=fd(n.green,r.green,o),i.blue=fd(n.blue,r.blue,o),i.alpha=$e(n.alpha,r.alpha,o),Oi.transform(i))};function Jh(e,t){return n=>n>0?t:e}function cF(e,t){return n=>$e(e,t,n)}function xv(e){return typeof e=="number"?cF:typeof e=="string"?lv(e)?Jh:_t.test(e)?d0:hF:Array.isArray(e)?TC:typeof e=="object"?_t.test(e)?d0:fF:Jh}function TC(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>xv(o)(o,t[a]));return o=>{for(let a=0;a{for(const o in r)n[o]=r[o](i);return n}}function dF(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o{const n=si.createTransformer(t),r=qu(e),i=qu(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xr(TC(dF(r,i),i.values),n):Jh(e,t)};function RC(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?$e(e,t,n):xv(e)(e,t)}function pF(e,t,n){const r=[],i=n||RC,o=e.length-1;for(let a=0;at[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=pF(t,r,i),s=a.length,l=u=>{let c=0;if(s>1)for(;cl(ai(e[0],e[o-1],u)):l}function mF(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Rs(0,t,r);e.push($e(n,1,i))}}function vF(e){const t=[0];return mF(t,e.length-1),t}function gF(e,t){return e.map(n=>n*t)}function yF(e,t){return e.map(()=>t||xC).splice(0,e.length-1)}function Xu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=nF(r)?r.map(c0):c0(r),o={done:!1,value:t[0]},a=gF(n&&n.length===t.length?n:vF(t),e),s=MC(a,t,{ease:Array.isArray(i)?i:yF(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}const h0=2e4;function SF(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=h0?1/0:t}const wF=e=>{const t=({timestamp:n})=>e(n);return{start:()=>yt.update(t,!0),stop:()=>Mr(t),now:()=>Ct.isProcessing?Ct.timestamp:ti.now()}},bF={decay:u0,inertia:u0,tween:Xu,keyframes:Xu,spring:wC},xF=e=>e/100;class Cv extends gC{constructor({KeyframeResolver:t=gv,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:r,motionValue:i,keyframes:o}=this.options,a=(s,l)=>this.onKeyframesResolved(s,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(o,a,r,i):this.resolver=new t(o,a,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,s=bF[n]||Xu;let l,u;s!==Xu&&typeof t[0]!="number"&&(l=xr(xF,RC(t[0],t[1])),t=[0,100]);const c=s({...this.options,keyframes:t});o==="mirror"&&(u=s({...this.options,keyframes:[...t].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=SF(c));const{calculatedDuration:f}=c,d=f+i,g=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return o.next(0);const{delay:d,repeat:g,repeatType:S,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const h=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?h<0:h>c;this.currentTime=Math.max(h,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,x=o;if(g){const k=Math.min(this.currentTime,c)/f;let T=Math.floor(k),F=k%1;!F&&k>=1&&(F=1),F===1&&T--,T=Math.min(T,g+1),!!(T%2)&&(S==="reverse"?(F=1-F,p&&(F-=p/f)):S==="mirror"&&(x=a)),v=ai(0,1,F)*f}const E=y?{done:!1,value:l[0]}:x.next(v);s&&(E.value=s(E.value));let{done:b}=E;!y&&u!==null&&(b=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return C&&i!==void 0&&(E.value=Vc(l,this.options,i)),m&&m(E.value),C&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Er(t.calculatedDuration):0}get time(){return Er(this.currentTime)}set time(t){t=Cr(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Er(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=wF,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:t}=this.options;t&&t()}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const OC=e=>Array.isArray(e)&&typeof e[0]=="number";function AC(e){return!!(!e||typeof e=="string"&&FC[e]||OC(e)||Array.isArray(e)&&e.every(AC))}const Na=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FC={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Na([0,.65,.55,1]),circOut:Na([.55,0,1,.45]),backIn:Na([.31,.01,.66,-.59]),backOut:Na([.33,1.53,.69,.99])};function LC(e){if(e)return OC(e)?Na(e):Array.isArray(e)?e.map(LC):FC[e]}function CF(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=LC(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const EF=VA(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kF=new Set(["opacity","clipPath","filter","transform"]),Yu=10,PF=2e4;function TF(e){return e.type==="spring"||e.name==="backgroundColor"||!AC(e.ease)}function RF(e,t){const n=new Cv({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&othis.onKeyframesResolved(o,a),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:s,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(TF(this.options)){const{onComplete:f,onUpdate:d,motionValue:g,...S}=this.options,p=RF(t,S);t=p.keyframes,t.length===1&&(t[1]=t[0]),i=p.duration,o=p.times,a=p.ease,s="keyframes"}const c=CF(l.owner.current,u,t,{...this.options,duration:i,times:o,ease:a});return c.startTime=ti.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;l.set(Vc(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Er(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Er(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Cr(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Tt;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Tt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:s}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...f}=this.options,d=new Cv({...f,keyframes:r,duration:i,type:o,ease:a,times:s,isGenerator:!0}),g=Cr(this.time);l.setWithVelocity(d.sample(g-Yu).value,d.sample(g).value,Yu)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:s}=t;return EF()&&r&&kF.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&s!=="inertia"}}const Ev=(e,t,n,r={},i,o)=>a=>{const s=vv(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Cr(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:d=>{t.set(d),s.onUpdate&&s.onUpdate(d)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};hA(s)||(c={...c,...dA(e,c)}),c.duration&&(c.duration=Cr(c.duration)),c.repeatDelay&&(c.repeatDelay=Cr(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if(c.type===!1&&(c.duration=0,c.delay===0&&(f=!0)),f&&!o&&t.get()!==void 0){const d=Vc(c.keyframes,s);if(d!==void 0){yt.update(()=>{c.onUpdate(d),c.onComplete()});return}}return!o&&p0.supports(c)?new p0(c):new Cv(c)};function Qu(e){return!!(kt(e)&&e.add)}function kv(e,t){e.indexOf(t)===-1&&e.push(t)}function Pv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function MF([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&rPv(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o!isNaN(parseFloat(e)),Za={current:void 0};class AF{constructor(t,n={}){this.version="11.0.24",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ti.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.canTrackVelocity=OF(this.current),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ti.now()}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Tv);const r=this.events[t].add(n);return t==="change"?()=>{r(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Za.current&&Za.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ti.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>m0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,m0);return yC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Yo(e,t){return new AF(e,t)}function FF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Yo(n))}function LF(e,t){const n=Nc(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=BO(o[a]);FF(e,a,s)}}function _F({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _C(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const g=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),S=l[d];if(S===void 0||f&&_F(f,d))continue;const p={delay:n,elapsed:0,...vv(a||{},d)};let m=!1;if(window.HandoffAppearAnimations){const y=e.getProps()[Lx];if(y){const v=window.HandoffAppearAnimations(y,d);v!==null&&(p.elapsed=v,m=!0)}}g.start(Ev(d,g,S,e.shouldReduceMotion&&Yi.has(d)?{type:!1}:p,e,m));const h=g.animation;h&&(Qu(u)&&(u.add(d),h.then(()=>u.remove(d))),c.push(h))}return s&&Promise.all(c).then(()=>{yt.update(()=>{s&&LF(e,s)})}),c}function Zh(e,t,n={}){var r;const i=Nc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(_C(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=o;return IF(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[u,c]=l==="beforeChildren"?[a,s]:[s,a];return u().then(()=>c())}else return Promise.all([a(),s(n.delay)])}function IF(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>s-u*r;return Array.from(e.variantChildren).sort(DF).forEach((u,c)=>{u.notify("AnimationStart",t),a.push(Zh(u,t,{...o,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(a)}function DF(e,t){return e.sortNodePosition(t)}function NF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Zh(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Zh(e,t,n);else{const i=typeof t=="function"?Nc(e,t,n.custom):t;r=Promise.all(_C(e,i,n))}return r.then(()=>{yt.postRender(()=>{e.notify("AnimationComplete",t)})})}const VF=[...ov].reverse(),jF=ov.length;function $F(e){return t=>Promise.all(t.map(({animation:n,options:r})=>NF(e,n,r)))}function BF(e){let t=$F(e);const n=UF();let r=!0;const i=l=>(u,c)=>{var f;const d=Nc(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:g,transitionEnd:S,...p}=d;u={...u,...p,...S}}return u};function o(l){t=l(e)}function a(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},f=[],d=new Set;let g={},S=1/0;for(let m=0;mS&&x,T=!1;const F=Array.isArray(v)?v:[v];let V=F.reduce(i(h),{});E===!1&&(V={});const{prevResolvedValues:H={}}=y,U={...H,...V},Q=W=>{k=!0,d.has(W)&&(T=!0,d.delete(W)),y.needsAnimating[W]=!0;const _=e.getValue(W);_&&(_.liveStyle=!1)};for(const W in U){const _=V[W],L=H[W];if(g.hasOwnProperty(W))continue;let P=!1;Wh(_)&&Wh(L)?P=!tC(_,L):P=_!==L,P?_!=null?Q(W):d.add(W):_!==void 0&&d.has(W)?Q(W):y.protectedKeys[W]=!0}y.prevProp=v,y.prevResolvedValues=V,y.isActive&&(g={...g,...V}),r&&e.blockInitialAnimation&&(k=!1),k&&(!b||T)&&f.push(...F.map(W=>({animation:W,options:{type:h}})))}if(d.size){const m={};d.forEach(h=>{const y=e.getBaseTarget(h),v=e.getValue(h);v&&(v.liveStyle=!0),m[h]=y===void 0?null:y}),f.push({animation:m})}let p=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(f):Promise.resolve()}function s(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var g;return(g=d.animationState)===null||g===void 0?void 0:g.setActive(l,u)}),n[l].isActive=u;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:s,setAnimateFunction:o,getState:()=>n}}function zF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!tC(t,e):!1}function yi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function UF(){return{animate:yi(!0),whileInView:yi(),whileHover:yi(),whileTap:yi(),whileDrag:yi(),whileFocus:yi(),exit:yi()}}class HF extends pi{constructor(t){super(t),t.animationState||(t.animationState=BF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();this.unmount(),_c(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let WF=0;class KF extends pi{constructor(){super(...arguments),this.id=WF++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const GF={animation:{Feature:HF},exit:{Feature:KF}},v0=(e,t)=>Math.abs(e-t);function qF(e,t){const n=v0(e.x,t.x),r=v0(e.y,t.y);return Math.sqrt(n**2+r**2)}class IC{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=hd(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,g=qF(f.offset,{x:0,y:0})>=3;if(!d&&!g)return;const{point:S}=f,{timestamp:p}=Ct;this.history.push({...S,timestamp:p});const{onStart:m,onMove:h}=this.handlers;d||(m&&m(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),h&&h(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=dd(d,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=hd(f.type==="pointercancel"?this.lastMoveEventInfo:dd(d,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,m),S&&S(f,m)},!Yx(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Dc(t),s=dd(a,this.transformPagePoint),{point:l}=s,{timestamp:u}=Ct;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,hd(s,this.history)),this.removeListeners=xr(br(this.contextWindow,"pointermove",this.handlePointerMove),br(this.contextWindow,"pointerup",this.handlePointerUp),br(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mr(this.updatePoint)}}function dd(e,t){return t?{point:t(e.point)}:e}function g0(e,t){return{x:e.x-t.x,y:e.y-t.y}}function hd({point:e},t){return{point:e,delta:g0(e,DC(t)),offset:g0(e,XF(t)),velocity:YF(t,.1)}}function XF(e){return e[0]}function DC(e){return e[e.length-1]}function YF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=DC(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Cr(t)));)n--;if(!r)return{x:0,y:0};const o=Er(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function dn(e){return e.max-e.min}function ep(e,t=0,n=.01){return Math.abs(e-t)<=n}function y0(e,t,n,r=.5){e.origin=r,e.originPoint=$e(t.min,t.max,e.origin),e.scale=dn(n)/dn(t),(ep(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$e(n.min,n.max,e.origin)-e.originPoint,(ep(e.translate)||isNaN(e.translate))&&(e.translate=0)}function es(e,t,n,r){y0(e.x,t.x,n.x,r?r.originX:void 0),y0(e.y,t.y,n.y,r?r.originY:void 0)}function S0(e,t,n){e.min=n.min+t.min,e.max=e.min+dn(t)}function QF(e,t,n){S0(e.x,t.x,n.x),S0(e.y,t.y,n.y)}function w0(e,t,n){e.min=t.min-n.min,e.max=e.min+dn(t)}function ts(e,t,n){w0(e.x,t.x,n.x),w0(e.y,t.y,n.y)}function JF(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?$e(n,e,r.max):Math.min(e,n)),e}function b0(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ZF(e,{top:t,left:n,bottom:r,right:i}){return{x:b0(e.x,n,i),y:b0(e.y,t,r)}}function x0(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Rs(t.min,t.max-r,e.min):r>i&&(n=Rs(e.min,e.max-i,t.min)),ai(0,1,n)}function nL(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const tp=.35;function rL(e=tp){return e===!1?e=0:e===!0&&(e=tp),{x:C0(e,"left","right"),y:C0(e,"top","bottom")}}function C0(e,t,n){return{min:E0(e,t),max:E0(e,n)}}function E0(e,t){return typeof e=="number"?e:e[t]||0}const k0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Po=()=>({x:k0(),y:k0()}),P0=()=>({min:0,max:0}),Ze=()=>({x:P0(),y:P0()});function yn(e){return[e("x"),e("y")]}function NC({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function iL({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function oL(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function pd(e){return e===void 0||e===1}function np({scale:e,scaleX:t,scaleY:n}){return!pd(e)||!pd(t)||!pd(n)}function bi(e){return np(e)||VC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function VC(e){return T0(e.x)||T0(e.y)}function T0(e){return e&&e!=="0%"}function Ju(e,t,n){const r=e-n,i=t*r;return n+i}function R0(e,t,n,r,i){return i!==void 0&&(e=Ju(e,i,r)),Ju(e,n,r)+t}function rp(e,t=0,n=1,r,i){e.min=R0(e.min,t,n,r,i),e.max=R0(e.max,t,n,r,i)}function jC(e,{x:t,y:n}){rp(e.x,t.translate,t.scale,t.originPoint),rp(e.y,n.translate,n.scale,n.originPoint)}function aL(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let s=0;s1.0000000000001||e<.999999999999?e:1}function jr(e,t){e.min=e.min+t,e.max=e.max+t}function O0(e,t,[n,r,i]){const o=t[i]!==void 0?t[i]:.5,a=$e(e.min,e.max,o);rp(e,t[n],t[r],a,t.scale)}const sL=["x","scaleX","originX"],lL=["y","scaleY","originY"];function To(e,t){O0(e.x,t,sL),O0(e.y,t,lL)}function $C(e,t){return NC(oL(e.getBoundingClientRect(),t))}function uL(e,t,n){const r=$C(e,n),{scroll:i}=t;return i&&(jr(r.x,i.offset.x),jr(r.y,i.offset.y)),r}const BC=({current:e})=>e?e.ownerDocument.defaultView:null,cL=new WeakMap;class fL{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ze(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Dc(c,"page").point)},o=(c,f)=>{const{drag:d,dragPropagation:g,onDragStart:S}=this.getProps();if(d&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Jx(d),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yn(m=>{let h=this.getAxisMotionValue(m).get()||0;if(or.test(h)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[m];v&&(h=dn(v)*(parseFloat(h)/100))}}this.originPoint[m]=h}),S&&S(c,f);const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(c,f)=>{const{dragPropagation:d,dragDirectionLock:g,onDirectionLock:S,onDrag:p}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:m}=f;if(g&&this.currentDirection===null){this.currentDirection=dL(m),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",f.point,m),this.updateAxis("y",f.point,m),this.visualElement.render(),p&&p(c,f)},s=(c,f)=>this.stop(c,f),l=()=>yn(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new IC(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:s,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:BC(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&o(t,n)}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ol(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=JF(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Eo(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=ZF(i.layoutBox,n):this.constraints=!1,this.elastic=rL(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&yn(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=nL(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Eo(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=uL(r,i.root,this.visualElement.getTransformPagePoint());let a=eL(i.layout.layoutBox,o);if(n){const s=n(iL(a));this.hasMutatedConstraints=!!s,s&&(a=NC(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=yn(c=>{if(!Ol(c,n,this.currentDirection))return;let f=l&&l[c]||{};a&&(f={min:0,max:0});const d=i?200:1e6,g=i?40:1e7,S={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,S)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(Ev(t,r,0,n,this.visualElement))}stopAnimation(){yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yn(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n="_drag"+t.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){yn(n=>{const{drag:r}=this.getProps();if(!Ol(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n];o.set(t[n]-$e(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Eo(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yn(a=>{const s=this.getAxisMotionValue(a);if(s){const l=s.get();i[a]=tL({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),yn(a=>{if(!Ol(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set($e(l,u,i[a]))})}addListeners(){if(!this.visualElement.current)return;cL.set(this.visualElement,this);const t=this.visualElement.current,n=br(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Eo(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=yr(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(yn(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=tp,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function Ol(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function dL(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class hL extends pi{constructor(t){super(t),this.removeGroupControls=Tt,this.removeListeners=Tt,this.controls=new fL(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Tt}unmount(){this.removeGroupControls(),this.removeListeners()}}const A0=e=>(t,n)=>{e&&e(t,n)};class pL extends pi{constructor(){super(...arguments),this.removePointerDownListener=Tt}onPointerDown(t){this.session=new IC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:BC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:A0(t),onStart:A0(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&i(o,a)}}}mount(){this.removePointerDownListener=br(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function mL(){const e=w.useContext(tv);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=w.useId();return w.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const au={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function F0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const n=F0(e,t.target.x),r=F0(e,t.target.y);return`${n}% ${r}%`}},vL={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=si.parse(e);if(i.length>5)return r;const o=si.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const u=$e(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}};class gL extends qe.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;gO(yL),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),au.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||yt.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),iv.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function zC(e){const[t,n]=mL(),r=w.useContext(Dx);return qe.createElement(gL,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(Nx),isPresent:t,safeToRemove:n})}const yL={borderRadius:{...Pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pa,borderTopRightRadius:Pa,borderBottomLeftRadius:Pa,borderBottomRightRadius:Pa,boxShadow:vL},UC=["TopLeft","TopRight","BottomLeft","BottomRight"],SL=UC.length,L0=e=>typeof e=="string"?parseFloat(e):e,_0=e=>typeof e=="number"||ue.test(e);function wL(e,t,n,r,i,o){i?(e.opacity=$e(0,n.opacity!==void 0?n.opacity:1,bL(r)),e.opacityExit=$e(t.opacity!==void 0?t.opacity:1,0,xL(r))):o&&(e.opacity=$e(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;art?1:n(Rs(e,t,r))}function D0(e,t){e.min=t.min,e.max=t.max}function vn(e,t){D0(e.x,t.x),D0(e.y,t.y)}function N0(e,t,n,r,i){return e-=t,e=Ju(e,1/n,r),i!==void 0&&(e=Ju(e,1/i,r)),e}function CL(e,t=0,n=1,r=.5,i,o=e,a=e){if(or.test(t)&&(t=parseFloat(t),t=$e(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=$e(o.min,o.max,r);e===o&&(s-=t),e.min=N0(e.min,t,n,s,i),e.max=N0(e.max,t,n,s,i)}function V0(e,t,[n,r,i],o,a){CL(e,t[n],t[r],t[i],t.scale,o,a)}const EL=["x","scaleX","originX"],kL=["y","scaleY","originY"];function j0(e,t,n,r){V0(e.x,t,EL,n?n.x:void 0,r?r.x:void 0),V0(e.y,t,kL,n?n.y:void 0,r?r.y:void 0)}function $0(e){return e.translate===0&&e.scale===1}function WC(e){return $0(e.x)&&$0(e.y)}function PL(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function KC(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function B0(e){return dn(e.x)/dn(e.y)}class TL{constructor(){this.members=[]}add(t){kv(this.members,t),t.scheduleRender()}remove(t){if(Pv(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function z0(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:u,rotateX:c,rotateY:f,skewX:d,skewY:g}=n;u&&(r+=`rotate(${u}deg) `),c&&(r+=`rotateX(${c}deg) `),f&&(r+=`rotateY(${f}deg) `),d&&(r+=`skewX(${d}deg) `),g&&(r+=`skewY(${g}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const RL=(e,t)=>e.depth-t.depth;class ML{constructor(){this.children=[],this.isDirty=!1}add(t){kv(this.children,t),this.isDirty=!0}remove(t){Pv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RL),this.isDirty=!1,this.children.forEach(t)}}function OL(e,t){const n=ti.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Mr(r),e(o-t))};return yt.read(r,!0),()=>Mr(r)}function AL(e){window.MotionDebug&&window.MotionDebug.record(e)}function FL(e){return e instanceof SVGElement&&e.tagName!=="svg"}function LL(e,t,n){const r=kt(e)?e:Yo(e);return r.start(Ev("",r,t,n)),r.animation}const md=["","X","Y","Z"],_L={visibility:"hidden"},U0=1e3;let IL=0;const xi={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function vd(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function GC({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=IL++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xi.totalNodes=xi.resolvedTargetDeltas=xi.recalculatedProjection=0,this.nodes.forEach(VL),this.nodes.forEach(UL),this.nodes.forEach(HL),this.nodes.forEach(jL),AL(xi)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=OL(d,250),au.hasAnimatedSinceResize&&(au.hasAnimatedSinceResize=!1,this.nodes.forEach(W0))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||XL,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=c.getProps(),y=!this.targetLayout||!KC(this.targetLayout,S)||g,v=!d&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const x={...vv(p,"layout"),onPlay:m,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||W0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(WL),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;cthis.update()))}clearAllSnapshots(){this.nodes.forEach($L),this.sharedNodes.forEach(KL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const E=x/1e3;K0(f.x,a.x,E),K0(f.y,a.y,E),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ts(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),GL(this.relativeTarget,this.relativeTargetOrigin,d,E),v&&PL(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Ze()),vn(v,this.relativeTarget)),p&&(this.animationValues=c,wL(c,u,this.latestValues,E,y,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{au.hasAnimatedSinceResize=!0,this.currentAnimation=LL(0,U0,{...a,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(U0),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:c}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&qC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Ze();const f=dn(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const d=dn(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+d}vn(s,l),To(s,c),es(this.projectionDeltaWithTransform,this.layoutCorrected,s,c)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new TL),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&vd("z",a,u,this.animationValues);for(let c=0;c{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(H0),this.root.sharedNodes.clear()}}}function DL(e){e.updateLayout()}function NL(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=n.source!==e.layout.source;o==="size"?yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(d);d.min=r[f].min,d.max=d.min+g}):qC(o,n.layoutBox,r)&&yn(f=>{const d=a?n.measuredBox[f]:n.layoutBox[f],g=dn(r[f]);d.max=d.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+g)});const s=Po();es(s,r,n.layoutBox);const l=Po();a?es(l,e.applyTransform(i,!0),n.measuredBox):es(l,r,n.layoutBox);const u=!WC(s);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:g}=f;if(d&&g){const S=Ze();ts(S,n.layoutBox,d.layoutBox);const p=Ze();ts(p,r,g.layoutBox),KC(S,p)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=S,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function VL(e){xi.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $L(e){e.clearSnapshot()}function H0(e){e.clearMeasurements()}function BL(e){e.isLayoutDirty=!1}function zL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function W0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function UL(e){e.resolveTargetDelta()}function HL(e){e.calcProjection()}function WL(e){e.resetSkewAndRotation()}function KL(e){e.removeLeadSnapshot()}function K0(e,t,n){e.translate=$e(t.translate,0,n),e.scale=$e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function G0(e,t,n,r){e.min=$e(t.min,n.min,r),e.max=$e(t.max,n.max,r)}function GL(e,t,n,r){G0(e.x,t.x,n.x,r),G0(e.y,t.y,n.y,r)}function qL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const XL={duration:.45,ease:[.4,0,.1,1]},q0=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),X0=q0("applewebkit/")&&!q0("chrome/")?Math.round:Tt;function Y0(e){e.min=X0(e.min),e.max=X0(e.max)}function YL(e){Y0(e.x),Y0(e.y)}function qC(e,t,n){return e==="position"||e==="preserve-aspect"&&!ep(B0(t),B0(n),.2)}const QL=GC({attachResizeListener:(e,t)=>yr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),gd={current:void 0},XC=GC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gd.current){const e=new QL({});e.mount(window),e.setOptions({layoutScroll:!0}),gd.current=e}return gd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),JL={pan:{Feature:pL},drag:{Feature:hL,ProjectionNode:XC,MeasureLayout:zC}},ip={current:null},YC={current:!1};function ZL(){if(YC.current=!0,!!nv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ip.current=e.matches;e.addListener(t),t()}else ip.current=!1}function e_(e,t,n){const{willChange:r}=t;for(const i in t){const o=t[i],a=n[i];if(kt(o))e.addValue(i,o),Qu(r)&&r.add(i);else if(kt(a))e.addValue(i,Yo(o,{owner:e})),Qu(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){const s=e.getValue(i);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(i);e.addValue(i,Yo(s!==void 0?s:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Q0=new WeakMap,t_=[...sC,_t,si],n_=e=>t_.find(aC(e)),QC=Object.keys(Ts),r_=QC.length,J0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],i_=av.length;class o_{constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},s={}){this.resolveKeyframes=(d,g,S,p)=>new this.KeyframeResolver(d,g,S,p,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=gv,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>yt.render(this.render,!1,!0);const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!o,this.isControllingVariants=Ic(n),this.isVariantNode=Ix(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const g=f[d];l[d]!==void 0&&kt(g)&&(g.set(l[d],!1),Qu(c)&&c.add(d))}}scrapeMotionValuesFromProps(t,n,r){return{}}mount(t){this.current=t,Q0.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),YC.current||ZL(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ip.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Q0.delete(this.current),this.projection&&this.projection.unmount(),Mr(this.notifyUpdate),Mr(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,n){const r=Yi.has(t),i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...n},r,i,o){let a,s;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:d,layoutRoot:g})}return s}updateFeatures(){for(const t in this.features){const n=this.features[t];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ze()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){n!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,n)),this.values.set(t,n),this.latestValues[t]=n.get()}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Yo(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(iC(i)||nC(i))?i=parseFloat(i):!n_(i)&&si.test(n)&&(i=mC(t,n)),this.setBaseTarget(t,kt(i)?i.get():i)),kt(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n,r;const{initial:i}=this.props,o=typeof i=="string"||typeof i=="object"?(r=mv(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom))===null||r===void 0?void 0:r[t]:void 0;if(i&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!kt(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Tv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class JC extends o_{constructor(){super(...arguments),this.KeyframeResolver=vC}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function a_(e){return window.getComputedStyle(e)}class s_ extends JC{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}else{const r=a_(t),i=($x(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return $C(t,n)}build(t,n,r,i){cv(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return pv(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;kt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){Wx(t,n,r,i)}}class l_ extends JC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Yi.has(n)){const r=Sv(n);return r&&r.default||0}return n=Kx.has(n)?n:rv(n),t.getAttribute(n)}measureInstanceViewportBox(){return Ze()}scrapeMotionValuesFromProps(t,n){return qx(t,n,this)}build(t,n,r,i){dv(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){Gx(t,n,r,i)}mount(t){this.isSVGTag=hv(t.tagName),super.mount(t)}}const u_=(e,t)=>sv(e)?new l_(t,{enableHardwareAcceleration:!1}):new s_(t,{enableHardwareAcceleration:!0}),c_={layout:{ProjectionNode:XC,MeasureLayout:zC}},f_={...GF,...oA,...JL,...c_},ZC=mO((e,t)=>KO(e,t,f_,u_)),eE=w.createContext(null);function d_(e,t,n,r){if(!r)return e;const i=e.findIndex(c=>c.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const s=e[i],l=a.layout,u=$e(l.min,l.max,.5);return o===1&&s.layout.max+n>u||o===-1&&s.layout.min+nZC(t)),l=[],u=w.useRef(!1),c={axis:n,registerItem:(f,d)=>{const g=l.findIndex(S=>f===S.value);g!==-1?l[g].layout=d[n]:l.push({value:f,layout:d[n]}),l.sort(v_)},updateOrder:(f,d,g)=>{if(u.current)return;const S=d_(l,f,d,g);l!==S&&(u.current=!0,r(S.map(m_).filter(p=>i.indexOf(p)!==-1)))}};return w.useEffect(()=>{u.current=!1}),w.createElement(s,{...o,ref:a,ignoreStrict:!0},w.createElement(eE.Provider,{value:c},e))}const p_=w.forwardRef(h_);function m_(e){return e.value}function v_(e,t){return e.layout.min-t.layout.min}function tE(e){const t=qs(()=>Yo(e)),{isStatic:n}=w.useContext(ev);if(n){const[,r]=w.useState(e);w.useEffect(()=>t.on("change",r),[])}return t}const g_=e=>e&&typeof e=="object"&&e.mix,y_=e=>g_(e)?e.mix:void 0;function S_(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],s=MC(i,o,{mixer:y_(o[0]),...a});return t?s(r):s}function nE(e,t){const n=tE(t()),r=()=>n.set(t());return r(),Ax(()=>{const i=()=>yt.update(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Mr(r)}}),n}function w_(e){Za.current=[],e();const t=nE(Za.current,e);return Za.current=void 0,t}function b_(e,t,n,r){if(typeof e=="function")return w_(e);const i=typeof t=="function"?t:S_(t,n,r);return Array.isArray(e)?Z0(e,i):Z0([e],([o])=>i(o))}function Z0(e,t){const n=qs(()=>[]);return nE(e,()=>{n.length=0;const r=e.length;for(let i=0;iZC(r)),u=w.useContext(eE),c={x:e1(t.x),y:e1(t.y)},f=b_([c.x,c.y],([p,m])=>p||m?1:"unset"),{axis:d,registerItem:g,updateOrder:S}=u;return w.createElement(l,{drag:d,...a,dragSnapToOrigin:!0,style:{...t,x:c.x,y:c.y,zIndex:f},layout:o,onDrag:(p,m)=>{const{velocity:h}=m;h[d]&&S(n,c[d].get(),h[d]),i&&i(p,m)},onLayoutMeasure:p=>g(n,p),ref:s,ignoreStrict:!0},e)}const C_=w.forwardRef(x_),t1={Group:p_,Item:C_},E_="_heading_8v9q8_1",k_="_maintainerContainer_8v9q8_6",P_="_contributor_8v9q8_10",T_="_contributionContainer_8v9q8_15",Va={heading:E_,maintainerContainer:k_,contributor:P_,contributionContainer:T_};function yd({username:e,avatar:t}){return O.jsx("a",{href:`https://github.com/${e}`,title:e,className:Va.contributor,target:"_blank",rel:"noreferrer",children:O.jsx("img",{src:`https://avatars.githubusercontent.com/u/${t}`,alt:e,loading:"lazy"})})}const R_=[{username:"sadanandpai",avatar:"12962887"},{username:"arpansaha13",avatar:"82361490"}];function rE(e,t){return function(){return e.apply(t,arguments)}}const{toString:M_}=Object.prototype,{getPrototypeOf:Rv}=Object,jc=(e=>t=>{const n=M_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),t=>jc(t)===e),$c=e=>t=>typeof t===e,{isArray:sa}=Array,Ms=$c("undefined");function O_(e){return e!==null&&!Ms(e)&&e.constructor!==null&&!Ms(e.constructor)&&un(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const iE=Gn("ArrayBuffer");function A_(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iE(e.buffer),t}const F_=$c("string"),un=$c("function"),oE=$c("number"),Bc=e=>e!==null&&typeof e=="object",L_=e=>e===!0||e===!1,su=e=>{if(jc(e)!=="object")return!1;const t=Rv(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},__=Gn("Date"),I_=Gn("File"),D_=Gn("Blob"),N_=Gn("FileList"),V_=e=>Bc(e)&&un(e.pipe),j_=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||un(e.append)&&((t=jc(e))==="formdata"||t==="object"&&un(e.toString)&&e.toString()==="[object FormData]"))},$_=Gn("URLSearchParams"),[B_,z_,U_,H_]=["ReadableStream","Request","Response","Headers"].map(Gn),W_=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ys(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),sa(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Ai=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),sE=e=>!Ms(e)&&e!==Ai;function op(){const{caseless:e}=sE(this)&&this||{},t={},n=(r,i)=>{const o=e&&aE(t,i)||i;su(t[o])&&su(r)?t[o]=op(t[o],r):su(r)?t[o]=op({},r):sa(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Ys(t,(i,o)=>{n&&un(i)?e[o]=rE(i,n):e[o]=i},{allOwnKeys:r}),e),G_=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),q_=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},X_=(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&Rv(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Y_=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Q_=e=>{if(!e)return null;if(sa(e))return e;let t=e.length;if(!oE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},J_=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Rv(Uint8Array)),Z_=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},eI=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},tI=Gn("HTMLFormElement"),nI=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),n1=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),rI=Gn("RegExp"),lE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ys(n,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(r[o]=a||i)}),Object.defineProperties(e,r)},iI=e=>{lE(e,(t,n)=>{if(un(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(un(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oI=(e,t)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return sa(e)?r(e):r(String(e).split(t)),n},aI=()=>{},sI=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Sd="abcdefghijklmnopqrstuvwxyz",r1="0123456789",uE={DIGIT:r1,ALPHA:Sd,ALPHA_DIGIT:Sd+Sd.toUpperCase()+r1},lI=(e=16,t=uE.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function uI(e){return!!(e&&un(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const cI=e=>{const t=new Array(10),n=(r,i)=>{if(Bc(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const o=sa(r)?[]:{};return Ys(r,(a,s)=>{const l=n(a,i+1);!Ms(l)&&(o[s]=l)}),t[i]=void 0,o}}return r};return n(e,0)},fI=Gn("AsyncFunction"),dI=e=>e&&(Bc(e)||un(e))&&un(e.then)&&un(e.catch),cE=((e,t)=>e?setImmediate:t?((n,r)=>(Ai.addEventListener("message",({source:i,data:o})=>{i===Ai&&o===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ai.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",un(Ai.postMessage)),hI=typeof queueMicrotask<"u"?queueMicrotask.bind(Ai):typeof process<"u"&&process.nextTick||cE,D={isArray:sa,isArrayBuffer:iE,isBuffer:O_,isFormData:j_,isArrayBufferView:A_,isString:F_,isNumber:oE,isBoolean:L_,isObject:Bc,isPlainObject:su,isReadableStream:B_,isRequest:z_,isResponse:U_,isHeaders:H_,isUndefined:Ms,isDate:__,isFile:I_,isBlob:D_,isRegExp:rI,isFunction:un,isStream:V_,isURLSearchParams:$_,isTypedArray:J_,isFileList:N_,forEach:Ys,merge:op,extend:K_,trim:W_,stripBOM:G_,inherits:q_,toFlatObject:X_,kindOf:jc,kindOfTest:Gn,endsWith:Y_,toArray:Q_,forEachEntry:Z_,matchAll:eI,isHTMLForm:tI,hasOwnProperty:n1,hasOwnProp:n1,reduceDescriptors:lE,freezeMethods:iI,toObjectSet:oI,toCamelCase:nI,noop:aI,toFiniteNumber:sI,findKey:aE,global:Ai,isContextDefined:sE,ALPHABET:uE,generateString:lI,isSpecCompliantForm:uI,toJSONObject:cI,isAsyncFn:fI,isThenable:dI,setImmediate:cE,asap:hI};function me(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(me,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const fE=me.prototype,dE={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{dE[e]={value:e}});Object.defineProperties(me,dE);Object.defineProperty(fE,"isAxiosError",{value:!0});me.from=(e,t,n,r,i,o)=>{const a=Object.create(fE);return D.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),me.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const pI=null;function ap(e){return D.isPlainObject(e)||D.isArray(e)}function hE(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function i1(e,t,n){return e?e.concat(t).map(function(i,o){return i=hE(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function mI(e){return D.isArray(e)&&!e.some(ap)}const vI=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function zc(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!D.isUndefined(m[p])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(S){if(S===null)return"";if(D.isDate(S))return S.toISOString();if(!l&&D.isBlob(S))throw new me("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(S)||D.isTypedArray(S)?l&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function c(S,p,m){let h=S;if(S&&!m&&typeof S=="object"){if(D.endsWith(p,"{}"))p=r?p:p.slice(0,-2),S=JSON.stringify(S);else if(D.isArray(S)&&mI(S)||(D.isFileList(S)||D.endsWith(p,"[]"))&&(h=D.toArray(S)))return p=hE(p),h.forEach(function(v,x){!(D.isUndefined(v)||v===null)&&t.append(a===!0?i1([p],x,o):a===null?p:p+"[]",u(v))}),!1}return ap(S)?!0:(t.append(i1(m,p,o),u(S)),!1)}const f=[],d=Object.assign(vI,{defaultVisitor:c,convertValue:u,isVisitable:ap});function g(S,p){if(!D.isUndefined(S)){if(f.indexOf(S)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(S),D.forEach(S,function(h,y){(!(D.isUndefined(h)||h===null)&&i.call(t,h,D.isString(y)?y.trim():y,p,d))===!0&&g(h,p?p.concat(y):[y])}),f.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return g(e),t}function o1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Mv(e,t){this._pairs=[],e&&zc(e,this,t)}const pE=Mv.prototype;pE.append=function(t,n){this._pairs.push([t,n])};pE.toString=function(t){const n=t?function(r){return t.call(this,r,o1)}:o1;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function gI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mE(e,t,n){if(!t)return e;const r=n&&n.encode||gI,i=n&&n.serialize;let o;if(i?o=i(t,n):o=D.isURLSearchParams(t)?t.toString():new Mv(t,n).toString(r),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class yI{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const a1=yI,vE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},SI=typeof URLSearchParams<"u"?URLSearchParams:Mv,wI=typeof FormData<"u"?FormData:null,bI=typeof Blob<"u"?Blob:null,xI={isBrowser:!0,classes:{URLSearchParams:SI,FormData:wI,Blob:bI},protocols:["http","https","file","blob","url","data"]},Ov=typeof window<"u"&&typeof document<"u",CI=(e=>Ov&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EI=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kI=Ov&&window.location.href||"http://localhost",PI=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ov,hasStandardBrowserEnv:CI,hasStandardBrowserWebWorkerEnv:EI,origin:kI},Symbol.toStringTag,{value:"Module"})),Bn={...PI,...xI};function TI(e,t){return zc(e,new Bn.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return Bn.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function RI(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function MI(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r=n.length;return a=!a&&D.isArray(i)?i.length:a,l?(D.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!s):((!i[a]||!D.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],o)&&D.isArray(i[a])&&(i[a]=MI(i[a])),!s)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,i)=>{t(RI(r),i,n,0)}),n}return null}function OI(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Av={transitional:vE,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(t);if(o&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return i?JSON.stringify(gE(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return TI(t,this.formSerializer).toString();if((s=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return zc(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),OI(t)):t}],transformResponse:[function(t){const n=this.transitional||Av.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?me.from(s,me.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bn.classes.FormData,Blob:Bn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch"],e=>{Av.headers[e]={}});const Fv=Av,AI=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),FI=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&AI[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},s1=Symbol("internals");function Ta(e){return e&&String(e).trim().toLowerCase()}function lu(e){return e===!1||e==null?e:D.isArray(e)?e.map(lu):String(e)}function LI(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 _I=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wd(e,t,n,r,i){if(D.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function II(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function DI(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,a){return this[r].call(this,t,i,o,a)},configurable:!0})})}class Uc{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function o(s,l,u){const c=Ta(l);if(!c)throw new Error("header name must be a non-empty string");const f=D.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=lu(s))}const a=(s,l)=>D.forEach(s,(u,c)=>o(u,c,l));if(D.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(D.isString(t)&&(t=t.trim())&&!_I(t))a(FI(t),n);else if(D.isHeaders(t))for(const[s,l]of t.entries())o(l,s,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=Ta(t),t){const r=D.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return LI(i);if(D.isFunction(n))return n.call(this,i,r);if(D.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ta(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||wd(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function o(a){if(a=Ta(a),a){const s=D.findKey(r,a);s&&(!n||wd(r,r[s],s,n))&&(delete r[s],i=!0)}}return D.isArray(t)?t.forEach(o):o(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!t||wd(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const n=this,r={};return D.forEach(this,(i,o)=>{const a=D.findKey(r,o);if(a){n[a]=lu(i),delete n[o];return}const s=t?II(o):String(o).trim();s!==o&&delete n[o],n[s]=lu(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&D.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(i=>r.set(i)),r}static accessor(t){const r=(this[s1]=this[s1]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Ta(a);r[s]||(DI(i,a),r[s]=!0)}return D.isArray(t)?t.forEach(o):o(t),this}}Uc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(Uc.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(Uc);const zn=Uc;function bd(e,t){const n=this||Fv,r=t||n,i=zn.from(r.headers);let o=r.data;return D.forEach(e,function(s){o=s.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function yE(e){return!!(e&&e.__CANCEL__)}function la(e,t,n){me.call(this,e??"canceled",me.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(la,me,{__CANCEL__:!0});function SE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new me("Request failed with status code "+n.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function NI(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function VI(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-a{n=c,i=null,o&&(clearTimeout(o),o=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-n;f>=r?a(u,c):(i=u,o||(o=setTimeout(()=>{o=null,a(i)},r-f)))},()=>i&&a(i)]}const Zu=(e,t,n=3)=>{let r=0;const i=VI(50,250);return jI(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-r,u=i(l),c=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-a)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},l1=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},u1=e=>(...t)=>D.asap(()=>e(...t)),$I=Bn.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{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=i(window.location.href),function(a){const s=D.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),BI=Bn.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];D.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D.isString(r)&&a.push("path="+r),D.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.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 zI(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function UI(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wE(e,t){return e&&!zI(t)?UI(e,t):t}const c1=e=>e instanceof zn?{...e}:e;function Ki(e,t){t=t||{};const n={};function r(u,c,f){return D.isPlainObject(u)&&D.isPlainObject(c)?D.merge.call({caseless:f},u,c):D.isPlainObject(c)?D.merge({},c):D.isArray(c)?c.slice():c}function i(u,c,f){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function o(u,c){if(!D.isUndefined(c))return r(void 0,c)}function a(u,c){if(D.isUndefined(c)){if(!D.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>i(c1(u),c1(c),!0)};return D.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,d=f(e[c],t[c],c);D.isUndefined(d)&&f!==s||(n[c]=d)}),n}const bE=e=>{const t=Ki({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=zn.from(a),t.url=mE(wE(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(D.isFormData(n)){if(Bn.hasStandardBrowserEnv||Bn.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Bn.hasStandardBrowserEnv&&(r&&D.isFunction(r)&&(r=r(t)),r||r!==!1&&$I(t.url))){const u=i&&o&&BI.read(o);u&&a.set(i,u)}return t},HI=typeof XMLHttpRequest<"u",WI=HI&&function(e){return new Promise(function(n,r){const i=bE(e);let o=i.data;const a=zn.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,f,d,g,S;function p(){g&&g(),S&&S(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function h(){if(!m)return;const v=zn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:v,config:e,request:m};SE(function(C){n(C),p()},function(C){r(C),p()},E),m=null}"onloadend"in m?m.onloadend=h:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(h)},m.onabort=function(){m&&(r(new me("Request aborted",me.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new me("Network Error",me.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let x=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||vE;i.timeoutErrorMessage&&(x=i.timeoutErrorMessage),r(new me(x,E.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,e,m)),m=null},o===void 0&&a.setContentType(null),"setRequestHeader"in m&&D.forEach(a.toJSON(),function(x,E){m.setRequestHeader(E,x)}),D.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([d,S]=Zu(u,!0),m.addEventListener("progress",d)),l&&m.upload&&([f,g]=Zu(l),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(c=v=>{m&&(r(!v||v.type?new la(null,e,m):v),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=NI(i.url);if(y&&Bn.protocols.indexOf(y)===-1){r(new me("Unsupported protocol "+y+":",me.ERR_BAD_REQUEST,e));return}m.send(o||null)})},KI=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof me?u:new la(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{i(new me(`timeout ${t} of ms exceeded`,me.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},GI=KI,qI=function*(e,t){let n=e.byteLength;if(!t||n{const o=XI(e,t,i);let a=0,s,l=u=>{s||(s=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:c,value:f}=await o.next();if(c){l(),u.close();return}let d=f.byteLength;if(n){let g=a+=d;n(g)}u.enqueue(new Uint8Array(f))}catch(c){throw l(c),c}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},Hc=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xE=Hc&&typeof ReadableStream=="function",sp=Hc&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),CE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},YI=xE&&CE(()=>{let e=!1;const t=new Request(Bn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d1=64*1024,lp=xE&&CE(()=>D.isReadableStream(new Response("").body)),ec={stream:lp&&(e=>e.body)};Hc&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ec[t]&&(ec[t]=D.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new me(`Response type '${t}' is not supported`,me.ERR_NOT_SUPPORT,r)})})})(new Response);const QI=async e=>{if(e==null)return 0;if(D.isBlob(e))return e.size;if(D.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(D.isArrayBufferView(e)||D.isArrayBuffer(e))return e.byteLength;if(D.isURLSearchParams(e)&&(e=e+""),D.isString(e))return(await sp(e)).byteLength},JI=async(e,t)=>{const n=D.toFiniteNumber(e.getContentLength());return n??QI(t)},ZI=Hc&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=bE(e);u=u?(u+"").toLowerCase():"text";let[g,S]=i||o||a?GI([i,o],a):[],p,m;const h=()=>{!p&&setTimeout(()=>{g&&g.unsubscribe()}),p=!0};let y;try{if(l&&YI&&n!=="get"&&n!=="head"&&(y=await JI(c,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(D.isFormData(r)&&(C=b.headers.get("content-type"))&&c.setContentType(C),b.body){const[k,T]=l1(y,Zu(u1(l)));r=f1(b.body,d1,k,T,sp)}}D.isString(f)||(f=f?"include":"omit"),m=new Request(t,{...d,signal:g,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:f});let v=await fetch(m);const x=lp&&(u==="stream"||u==="response");if(lp&&(s||x)){const b={};["status","statusText","headers"].forEach(F=>{b[F]=v[F]});const C=D.toFiniteNumber(v.headers.get("content-length")),[k,T]=s&&l1(C,Zu(u1(s),!0))||[];v=new Response(f1(v.body,d1,k,()=>{T&&T(),x&&h()},sp),b)}u=u||"text";let E=await ec[D.findKey(ec,u)||"text"](v,e);return!x&&h(),S&&S(),await new Promise((b,C)=>{SE(b,C,{data:E,headers:zn.from(v.headers),status:v.status,statusText:v.statusText,config:e,request:m})})}catch(v){throw h(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,e,m),{cause:v.cause||v}):me.from(v,v&&v.code,e,m)}}),up={http:pI,xhr:WI,fetch:ZI};D.forEach(up,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const h1=e=>`- ${e}`,eD=e=>D.isFunction(e)||e===null||e===!1,EE={getAdapter:e=>{e=D.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since : `+o.map(h1).join(` `):" "+h1(o[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:up};function xd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new la(null,e)}function p1(e){return xd(e),e.headers=zn.from(e.headers),e.data=bd.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),EE.getAdapter(e.adapter||Fv.adapter)(e).then(function(r){return xd(e),r.data=bd.call(e,e.transformResponse,r),r.headers=zn.from(r.headers),r},function(r){return yE(r)||(xd(e),r&&r.response&&(r.response.data=bd.call(e,e.transformResponse,r.response),r.response.headers=zn.from(r.response.headers))),Promise.reject(r)})}const kE="1.7.4",Lv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lv[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const m1={};Lv.transitional=function(t,n,r){function i(o,a){return"[Axios v"+kE+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(t===!1)throw new me(i(a," has been removed"+(n?" in "+n:"")),me.ERR_DEPRECATED);return n&&!m1[a]&&(m1[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,a,s):!0}};function tD(e,t,n){if(typeof e!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new me("option "+o+" must be "+l,me.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const cp={assertOptions:tD,validators:Lv},_r=cp.validators;class tc{constructor(t){this.defaults=t,this.interceptors={request:new a1,response:new a1}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&cp.assertOptions(r,{silentJSONParsing:_r.transitional(_r.boolean),forcedJSONParsing:_r.transitional(_r.boolean),clarifyTimeoutError:_r.transitional(_r.boolean)},!1),i!=null&&(D.isFunction(i)?n.paramsSerializer={serialize:i}:cp.assertOptions(i,{encode:_r.function,serialize:_r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&D.merge(o.common,o[n.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=zn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const S=[p1.bind(this),void 0];for(S.unshift.apply(S,s),S.push.apply(S,u),d=S.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new la(o,a,s),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 _v(function(i){t=i}),cancel:t}}}const nD=_v;function rD(e){return function(n){return e.apply(null,n)}}function iD(e){return D.isObject(e)&&e.isAxiosError===!0}const fp={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(fp).forEach(([e,t])=>{fp[t]=e});const oD=fp;function PE(e){const t=new uu(e),n=rE(uu.prototype.request,t);return D.extend(n,uu.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return PE(Ki(e,i))},n}const lt=PE(Fv);lt.Axios=uu;lt.CanceledError=la;lt.CancelToken=nD;lt.isCancel=yE;lt.VERSION=kE;lt.toFormData=zc;lt.AxiosError=me;lt.Cancel=lt.CanceledError;lt.all=function(t){return Promise.all(t)};lt.spread=rD;lt.isAxiosError=iD;lt.mergeConfig=Ki;lt.AxiosHeaders=zn;lt.formToJSON=e=>gE(D.isHTMLForm(e)?new FormData(e):e);lt.getAdapter=EE.getAdapter;lt.HttpStatusCode=oD;lt.default=lt;const aD=lt;async function sD(){return(await aD.get("https://api.github.com/repos/sadanandpai/frontend-mini-challenges/contributors?per_page=1000")).data.map(t=>{var n,r;return{username:t.login,avatar:((r=(n=t.avatar_url)==null?void 0:n.match(/\d+/))==null?void 0:r[0])??""}})}function lD(){const[e,t]=w.useState([]),[n]=w.useState(R_);return w.useEffect(()=>{sD().then(r=>t(r.slice(2)))},[]),w.useEffect(()=>{const r=setInterval(()=>t(i=>i.map(o=>o).sort(()=>.5-Math.random())),5e3);return()=>{clearInterval(r)}},[]),M.jsxs(M.Fragment,{children:[M.jsx("h2",{className:Va.heading,id:"contributors",children:"Contributors"}),M.jsxs("section",{className:Va.maintainerContainer,children:[M.jsx(yd,{...n[0]},n[0].username),M.jsx(yd,{...n[1]},n[1].username)]}),M.jsx(t1.Group,{axis:"y",onReorder:t,values:e,className:Va.contributionContainer,children:e.map(r=>M.jsx(t1.Item,{value:r.username,className:Va.listContributor,children:M.jsx(yd,{...r},r.username)},r.username))})]})}const uD="_heading_1m5el_1",cD="_features_1m5el_6",v1={heading:uD,features:cD},fD=[{title:"Free and open-source",info:"Every challenge comes with the solution in multiple tech stacks & totally free forever"},{title:"Designed for interviews",info:"The challenges are handpicked collection from various interviews of top companies"},{title:"Community vetted solutions",info:"Solutions are reviewed by the community & follows the best industry practices"}];function dD(){return M.jsxs("section",{id:"whyUs",children:[M.jsx("h2",{className:v1.heading,children:"Why Us?"}),M.jsx("div",{className:v1.features,children:fD.map((e,t)=>M.jsxs("article",{children:[M.jsx("h3",{children:e.title}),M.jsx("p",{children:e.info})]},t))})]})}const hD="_footer_1l7qe_1",pD={footer:hD};function mD(){const e=new Date().getFullYear();return M.jsxs("footer",{className:pD.footer,children:["Copyright © ",e]})}const Iv="/frontend-mini-challenges/assets/css-NOfCHX53.png",Dv="/frontend-mini-challenges/assets/angular-3fNDZm1N.png",Nv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAgVBMVEXw208yMzDw2kjz4nTy3U/24FAiJi8pLC+5qkXo1E1zbDkwMTAnKi9aVjUtLzDs104AACz75VEWHS4eIy4RGS2XjD+mmUGNgz3j0E1WUjXAsEbUwkqvoUODejwAEC1JRzNBQDLKuUgACCw7OzFPTDRjXjcKFS17czugk0BsZjjbyUs9K7YPAAAIX0lEQVR4nO2c25aqOBCGYSZFQBDkDAIKIqi8/wMOuNvdSsLBQy+qZ+W/6YvGkC+HSlUlQZL+N/rn36Vr8EEJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWCVgsErAYJWAwSoBg1UCBqsEDFYJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWPXDMITVrB8BgG0DkO5P93fOz5bomYlqdfW2EtVfxaVuGnp5rLKgiKRZzfCjMLCN1z3FoTVWKUKsRj2Vh52jGNTsRA3XO3ixfwWaeN/Pwqiu0ZN30YarREDbhmXtmnJPuuF46yCxYBznh2Go3quWshqGAWt70h2G5EuGs/eTcRpEMHaSlW7/+XtRNw4kGHkfGhhiBzE7vvq9Y64ae/h9WGCIHZrGBEor3T0mwzRIYAicjKlu+eqcvBikwQFDIDPGZsu96DANChgC4ejM7/dNMmAFUMBAKs8bY19lVA2fBgMMJLHyBIssuxnfiiCAIVboPMUim3rKdW0wwBTlM4PsWkqc4IQhVvZkx7RyuAMNAUxi8i0ZVVxXYQq4ynBCpDBBzamu7tT5KstOsVKzjoGTqxrvfYvDEGnNcWMUI0ys6/8jdV3Txx7zTg0/tFkeptlxWNaNfQuzAdTyznLrbrm1BxzvxWEgZWGMyrr3WGztb+fpVMkIXt8MMrfPope9FR6s6s9D1IwHu0VCAGOzU8YN+20PWt4+pSv70BoJZ5aHAdYtqyOm8e1C0Q15VSAPm4Hxl3Wd0/rgb+IgQp7QIJLX7xi658CQKEyWTjXNgGGWTC6MRLTpLODyMF7/EZM3zCYzoZ2WhpHAYbyv3ZyK87Q8DGvNnGDM/o5ocRjOOmOWL3bN4jBwYjwAmZ5eo1keJmBsc+uBhVNLCleLw5CC4zWbxqkgY1llvpaHiXiBpq7E5+c7Z3kYacXNMxlyFWgjHjJPi8NIROWMs65zDDk+a/Yzgw0BTJNTLk1rB/Q8bJ7AQQBj+byMxh8cUzEuiT138iwPI0GyH+iaK4+yOarWvL1zBDBEOrPr5r2MgxzM2GtGASNBc5lInJs72Z/ca8YBI8F2yAZ84zi5X0jII82rCAmmN2io+0u2zokVKtNbZ1RZtwvPyPtwwHQ0rL/JytArFXPe7EuE+JsZNK1bECLOaN5EIN1MWYFOphEPngRAA9MdN5FnTJzOBR0aaohgJLAyyt9cehQ1AqRbGvcioK7NGWONKmduXI0KRiJ25MfGNI5pBDwaXDDtTyDxY2/ySBCVt5zIABtMh1P4sTN1ykHZN2w5+GDamUOSYO2Me9Kyc2G7BiFMhyNF25U7eMLxqlpllhuUMNcDwVYSOkxS/U60/C0wUscDxHcPw6bNSfs0eGE62ZDuBw5ptPY5/10w7cIDaiXzcXSz6NkA5DAdDkkrvltg9nel0cNc3YLzkWeo6brnov0CmLYcu6g4x7jMfe/ww6+AaS1Bc2FpzHz7K2EkaNhMoS6fHyfNb4GRiMomCWiIFmYckkQx40sbJ6Qwrc0aTfcTy2dmjbL6CZiBvDaojCc/lGoiVrhhPceHJ1JmnCmXz5vmlmTbX4yvgpRtTN5GMiFaKnvmfrRviMrpmY/DgJRkmzVvyJOAA8M8113Oqjw6tWPOhfmwaSbQBLkjmwHbqu3QYRZuJes/B1KR6dfnTPk8vG9BpDMzzIwPw4ClXpSuVWP26gRpLowBov7jY8Ru/P0tCqO5OpgZJxq7kUuzTxoAAkX2dbSVZsydRVIwuX1dfjwXY1vBWvleDY29OtQ3pGC32Pue5lswtuXvbxeSTDnotWprTJlRZrZt//0E2NuL/tDeRp7y+4ZIFdMx/ZZ5B4bY6lH/blVa9jwlSEwmiL8fje0IO5X9C01U94Fj04jNOWJj5sWn5oytXR6DQPp4ehoszq0Yo/o7GNsZLXPumZnGMWF2y22oODEAPVqfMc2EnN1+Xc06lOB2UNxuSt7776YsBJSbfqGb6275twBShZdHo6vPBGckWdecWLY2zolmWZbWbFe8DQq9vFvlefbpj5TD3i8iS7I6RUUo11xqs5/ReBEGiiM/kq3rMl7Hubvj1rNd5O8Ghr3NhzJj1NnR/eWUrS5HYzeQPzPLvv18tWfAH0yaUIM/fOS+mztSiHw99q+4ymBuhncw/dU5A816zj5XH+bR/IBWzbg1OwTrMq7cy9bMTvX5VytvLFVvywuSyQMAg6qZjnkdhkinp1t1w7g8UIxlYMdEmRnzzjoD0bOt6vRNqdR18JxNZo5qzgbNGx4AFM/Vw3S5N4HTzSt9c/A5Ttw7vpm9fYZGP3ADOALq7vl5U7Nu7Zsw7RjxZl8X1b2+I3qjsQvGQ5sqyz1ZvIZ5LwQAVZ7ZqqbhD4aRkFSDKxO3LBpq3AD73Xhme5z1UQIq+yOfaAEtzGedZ+ikG/mZ2y9vR5oEkpM+aaJ15ZiOfm4GYLsy5908p8plOxSOvp0DgCg4OuNjTVFOE5fFuqxZWinTXzig3vHcDJ5rej87AyTx83oYR6mrdMbhcQJNuqKjzaIr3tFPeLHbx2DaaliJf9xx60E9r0qbeUd5gUTb8Fh7fNNmKrVySZPRk40fyWhet7qzvK7db2ugm4q3c2I/iebfUCCkjV7Oa/dwX1BnCZ36IK/SRJs4QvuhXDO57nWn2dHYfGlXXny1GUrcjpVDtCTI1vruVlItr7M0sWZ8T+xzifMuvrVbES2KIuv2XbKXCrp+1cwGK+pKIvbson5gF4AAeeUmD6egmR93+yvxGT2sEjBYJWCwSsBg1T///gf8ZY+ACnxg6gAAAABJRU5ErkJggg==",Vv="/frontend-mini-challenges/assets/react-22r7ljPB.png",jv="/frontend-mini-challenges/assets/vue-wXUHXaQI.png",vD="/frontend-mini-challenges/assets/logo-r_4QCHBg.png",gD="/frontend-mini-challenges/assets/logo_dark-zTelYMdF.png",yD="/frontend-mini-challenges/assets/cover-transparent-Ecfv1-zo.png",SD="_hero_9pexl_1",wD="_figure_9pexl_11",bD="_heroImage_9pexl_19",xD="_link_9pexl_24",CD="_heroTechImg_9pexl_40",Ra={hero:SD,figure:wD,heroImage:bD,link:xD,heroTechImg:CD};var TE={exports:{}},ED="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kD=ED,PD=kD;function RE(){}function ME(){}ME.resetWarningCache=RE;var TD=function(){function e(r,i,o,a,s,l){if(l!==PD){var u=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 u.name="Invariant Violation",u}}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:ME,resetWarningCache:RE};return n.PropTypes=n,n};TE.exports=TD();var RD=TE.exports;const g1=hc(RD);/*! ***************************************************************************** +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ki(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&cp.assertOptions(r,{silentJSONParsing:_r.transitional(_r.boolean),forcedJSONParsing:_r.transitional(_r.boolean),clarifyTimeoutError:_r.transitional(_r.boolean)},!1),i!=null&&(D.isFunction(i)?n.paramsSerializer={serialize:i}:cp.assertOptions(i,{encode:_r.function,serialize:_r.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=o&&D.merge(o.common,o[n.method]);o&&D.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=zn.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const S=[p1.bind(this),void 0];for(S.unshift.apply(S,s),S.push.apply(S,u),d=S.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{r.subscribe(s),o=s}).then(i);return a.cancel=function(){r.unsubscribe(o)},a},t(function(o,a,s){r.reason||(r.reason=new la(o,a,s),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 _v(function(i){t=i}),cancel:t}}}const nD=_v;function rD(e){return function(n){return e.apply(null,n)}}function iD(e){return D.isObject(e)&&e.isAxiosError===!0}const fp={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(fp).forEach(([e,t])=>{fp[t]=e});const oD=fp;function PE(e){const t=new uu(e),n=rE(uu.prototype.request,t);return D.extend(n,uu.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return PE(Ki(e,i))},n}const lt=PE(Fv);lt.Axios=uu;lt.CanceledError=la;lt.CancelToken=nD;lt.isCancel=yE;lt.VERSION=kE;lt.toFormData=zc;lt.AxiosError=me;lt.Cancel=lt.CanceledError;lt.all=function(t){return Promise.all(t)};lt.spread=rD;lt.isAxiosError=iD;lt.mergeConfig=Ki;lt.AxiosHeaders=zn;lt.formToJSON=e=>gE(D.isHTMLForm(e)?new FormData(e):e);lt.getAdapter=EE.getAdapter;lt.HttpStatusCode=oD;lt.default=lt;const aD=lt;async function sD(){return(await aD.get("https://api.github.com/repos/sadanandpai/frontend-mini-challenges/contributors?per_page=1000")).data.map(t=>{var n,r;return{username:t.login,avatar:((r=(n=t.avatar_url)==null?void 0:n.match(/\d+/))==null?void 0:r[0])??""}})}function lD(){const[e,t]=w.useState([]),[n]=w.useState(R_);return w.useEffect(()=>{sD().then(r=>t(r.slice(2)))},[]),w.useEffect(()=>{const r=setInterval(()=>t(i=>i.map(o=>o).sort(()=>.5-Math.random())),5e3);return()=>{clearInterval(r)}},[]),O.jsxs(O.Fragment,{children:[O.jsx("h2",{className:Va.heading,id:"contributors",children:"Contributors"}),O.jsxs("section",{className:Va.maintainerContainer,children:[O.jsx(yd,{...n[0]},n[0].username),O.jsx(yd,{...n[1]},n[1].username)]}),O.jsx(t1.Group,{axis:"y",onReorder:t,values:e,className:Va.contributionContainer,children:e.map(r=>O.jsx(t1.Item,{value:r.username,className:Va.listContributor,children:O.jsx(yd,{...r},r.username)},r.username))})]})}const uD="_heading_1m5el_1",cD="_features_1m5el_6",v1={heading:uD,features:cD},fD=[{title:"Free and open-source",info:"Every challenge comes with the solution in multiple tech stacks & totally free forever"},{title:"Designed for interviews",info:"The challenges are handpicked collection from various interviews of top companies"},{title:"Community vetted solutions",info:"Solutions are reviewed by the community & follows the best industry practices"}];function dD(){return O.jsxs("section",{id:"whyUs",children:[O.jsx("h2",{className:v1.heading,children:"Why Us?"}),O.jsx("div",{className:v1.features,children:fD.map((e,t)=>O.jsxs("article",{children:[O.jsx("h3",{children:e.title}),O.jsx("p",{children:e.info})]},t))})]})}const hD="_footer_1l7qe_1",pD={footer:hD};function mD(){const e=new Date().getFullYear();return O.jsxs("footer",{className:pD.footer,children:["Copyright © ",e]})}const Iv="/frontend-mini-challenges/assets/css-NOfCHX53.png",Dv="/frontend-mini-challenges/assets/angular-3fNDZm1N.png",Nv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAADACAMAAAB/Pny7AAAAgVBMVEXw208yMzDw2kjz4nTy3U/24FAiJi8pLC+5qkXo1E1zbDkwMTAnKi9aVjUtLzDs104AACz75VEWHS4eIy4RGS2XjD+mmUGNgz3j0E1WUjXAsEbUwkqvoUODejwAEC1JRzNBQDLKuUgACCw7OzFPTDRjXjcKFS17czugk0BsZjjbyUs9K7YPAAAIX0lEQVR4nO2c25aqOBCGYSZFQBDkDAIKIqi8/wMOuNvdSsLBQy+qZ+W/6YvGkC+HSlUlQZL+N/rn36Vr8EEJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWCVgsErAYJWAwSoBg1UCBqsEDFYJGKwSMFglYLBKwGCVgMEqAYNVAgarBAxWCRisEjBYJWCwSsBglYDBKgGDVQIGqwQMVgkYrBIwWPXDMITVrB8BgG0DkO5P93fOz5bomYlqdfW2EtVfxaVuGnp5rLKgiKRZzfCjMLCN1z3FoTVWKUKsRj2Vh52jGNTsRA3XO3ixfwWaeN/Pwqiu0ZN30YarREDbhmXtmnJPuuF46yCxYBznh2Go3quWshqGAWt70h2G5EuGs/eTcRpEMHaSlW7/+XtRNw4kGHkfGhhiBzE7vvq9Y64ae/h9WGCIHZrGBEor3T0mwzRIYAicjKlu+eqcvBikwQFDIDPGZsu96DANChgC4ejM7/dNMmAFUMBAKs8bY19lVA2fBgMMJLHyBIssuxnfiiCAIVboPMUim3rKdW0wwBTlM4PsWkqc4IQhVvZkx7RyuAMNAUxi8i0ZVVxXYQq4ynBCpDBBzamu7tT5KstOsVKzjoGTqxrvfYvDEGnNcWMUI0ys6/8jdV3Txx7zTg0/tFkeptlxWNaNfQuzAdTyznLrbrm1BxzvxWEgZWGMyrr3WGztb+fpVMkIXt8MMrfPope9FR6s6s9D1IwHu0VCAGOzU8YN+20PWt4+pSv70BoJZ5aHAdYtqyOm8e1C0Q15VSAPm4Hxl3Wd0/rgb+IgQp7QIJLX7xi658CQKEyWTjXNgGGWTC6MRLTpLODyMF7/EZM3zCYzoZ2WhpHAYbyv3ZyK87Q8DGvNnGDM/o5ocRjOOmOWL3bN4jBwYjwAmZ5eo1keJmBsc+uBhVNLCleLw5CC4zWbxqkgY1llvpaHiXiBpq7E5+c7Z3kYacXNMxlyFWgjHjJPi8NIROWMs65zDDk+a/Yzgw0BTJNTLk1rB/Q8bJ7AQQBj+byMxh8cUzEuiT138iwPI0GyH+iaK4+yOarWvL1zBDBEOrPr5r2MgxzM2GtGASNBc5lInJs72Z/ca8YBI8F2yAZ84zi5X0jII82rCAmmN2io+0u2zokVKtNbZ1RZtwvPyPtwwHQ0rL/JytArFXPe7EuE+JsZNK1bECLOaN5EIN1MWYFOphEPngRAA9MdN5FnTJzOBR0aaohgJLAyyt9cehQ1AqRbGvcioK7NGWONKmduXI0KRiJ25MfGNI5pBDwaXDDtTyDxY2/ySBCVt5zIABtMh1P4sTN1ykHZN2w5+GDamUOSYO2Me9Kyc2G7BiFMhyNF25U7eMLxqlpllhuUMNcDwVYSOkxS/U60/C0wUscDxHcPw6bNSfs0eGE62ZDuBw5ptPY5/10w7cIDaiXzcXSz6NkA5DAdDkkrvltg9nel0cNc3YLzkWeo6brnov0CmLYcu6g4x7jMfe/ww6+AaS1Bc2FpzHz7K2EkaNhMoS6fHyfNb4GRiMomCWiIFmYckkQx40sbJ6Qwrc0aTfcTy2dmjbL6CZiBvDaojCc/lGoiVrhhPceHJ1JmnCmXz5vmlmTbX4yvgpRtTN5GMiFaKnvmfrRviMrpmY/DgJRkmzVvyJOAA8M8113Oqjw6tWPOhfmwaSbQBLkjmwHbqu3QYRZuJes/B1KR6dfnTPk8vG9BpDMzzIwPw4ClXpSuVWP26gRpLowBov7jY8Ru/P0tCqO5OpgZJxq7kUuzTxoAAkX2dbSVZsydRVIwuX1dfjwXY1vBWvleDY29OtQ3pGC32Pue5lswtuXvbxeSTDnotWprTJlRZrZt//0E2NuL/tDeRp7y+4ZIFdMx/ZZ5B4bY6lH/blVa9jwlSEwmiL8fje0IO5X9C01U94Fj04jNOWJj5sWn5oytXR6DQPp4ehoszq0Yo/o7GNsZLXPumZnGMWF2y22oODEAPVqfMc2EnN1+Xc06lOB2UNxuSt7776YsBJSbfqGb6275twBShZdHo6vPBGckWdecWLY2zolmWZbWbFe8DQq9vFvlefbpj5TD3i8iS7I6RUUo11xqs5/ReBEGiiM/kq3rMl7Hubvj1rNd5O8Ghr3NhzJj1NnR/eWUrS5HYzeQPzPLvv18tWfAH0yaUIM/fOS+mztSiHw99q+4ymBuhncw/dU5A816zj5XH+bR/IBWzbg1OwTrMq7cy9bMTvX5VytvLFVvywuSyQMAg6qZjnkdhkinp1t1w7g8UIxlYMdEmRnzzjoD0bOt6vRNqdR18JxNZo5qzgbNGx4AFM/Vw3S5N4HTzSt9c/A5Ttw7vpm9fYZGP3ADOALq7vl5U7Nu7Zsw7RjxZl8X1b2+I3qjsQvGQ5sqyz1ZvIZ5LwQAVZ7ZqqbhD4aRkFSDKxO3LBpq3AD73Xhme5z1UQIq+yOfaAEtzGedZ+ikG/mZ2y9vR5oEkpM+aaJ15ZiOfm4GYLsy5908p8plOxSOvp0DgCg4OuNjTVFOE5fFuqxZWinTXzig3vHcDJ5rej87AyTx83oYR6mrdMbhcQJNuqKjzaIr3tFPeLHbx2DaaliJf9xx60E9r0qbeUd5gUTb8Fh7fNNmKrVySZPRk40fyWhet7qzvK7db2ugm4q3c2I/iebfUCCkjV7Oa/dwX1BnCZ36IK/SRJs4QvuhXDO57nWn2dHYfGlXXny1GUrcjpVDtCTI1vruVlItr7M0sWZ8T+xzifMuvrVbES2KIuv2XbKXCrp+1cwGK+pKIvbson5gF4AAeeUmD6egmR93+yvxGT2sEjBYJWCwSsBg1T///gf8ZY+ACnxg6gAAAABJRU5ErkJggg==",Vv="/frontend-mini-challenges/assets/react-22r7ljPB.png",jv="/frontend-mini-challenges/assets/vue-wXUHXaQI.png",vD="/frontend-mini-challenges/assets/logo-r_4QCHBg.png",gD="/frontend-mini-challenges/assets/logo_dark-zTelYMdF.png",yD="/frontend-mini-challenges/assets/cover-transparent-Ecfv1-zo.png",SD="_hero_9pexl_1",wD="_figure_9pexl_11",bD="_heroImage_9pexl_19",xD="_link_9pexl_24",CD="_heroTechImg_9pexl_40",Ra={hero:SD,figure:wD,heroImage:bD,link:xD,heroTechImg:CD};var TE={exports:{}},ED="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kD=ED,PD=kD;function RE(){}function ME(){}ME.resetWarningCache=RE;var TD=function(){function e(r,i,o,a,s,l){if(l!==PD){var u=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 u.name="Invariant Violation",u}}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:ME,resetWarningCache:RE};return n.PropTypes=n,n};TE.exports=TD();var RD=TE.exports;const g1=hc(RD);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -83,7 +83,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var dp=function(){return dp=Object.assign||function(t){for(var n,r=1,i=arguments.length;rM.jsx("img",{src:e.imgSrc,width:35,height:35,alt:`${e.title}-img`},e.title))})]}),M.jsxs("figure",{className:Ra.figure,children:[M.jsx("img",{className:Ra.heroImage,src:yD,alt:"brand"}),M.jsx("figcaption",{children:"Collection of frontend challenges for learning and interviews"})]})]})}var FE={exports:{}};/*! +***************************************************************************** */var dp=function(){return dp=Object.assign||function(t){for(var n,r=1,i=arguments.length;rO.jsx("img",{src:e.imgSrc,width:35,height:35,alt:`${e.title}-img`},e.title))})]}),O.jsxs("figure",{className:Ra.figure,children:[O.jsx("img",{className:Ra.heroImage,src:yD,alt:"brand"}),O.jsx("figcaption",{children:"Collection of frontend challenges for learning and interviews"})]})]})}var FE={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames @@ -223,7 +223,7 @@ html body { (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 -`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(x){return x&&x.exact?o:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+i+t(x)+")","g")};l.v4=function(v){return v&&v.exact?a:new RegExp(""+t(v)+n+t(v),"g")},l.v6=function(v){return v&&v.exact?s:new RegExp(""+t(v)+i+t(v),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",h='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+g+S+p+")"+m+h;return Bl=new RegExp("(?:^"+y+"$)","i"),Bl},fS={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ja={integer:function(t){return ja.number(t)&&parseInt(t,10)===t},float:function(t){return ja.number(t)&&!ja.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ja.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(fS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(e5())},hex:function(t){return typeof t=="string"&&!!t.match(fS.hex)}},t5=function(t,n,r,i,o){if(t.required&&n===void 0){tP(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ja[s](n)||i.push(sn(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&i.push(sn(o.messages.types[s],t.fullField,t.type))},n5=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",g=typeof n=="string",S=Array.isArray(n);if(d?f="number":g?f="string":S&&(f="array"),!f)return!1;S&&(c=n.length),g&&(c=n.replace(u,"_").length),a?c!==t.len&&i.push(sn(o.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?i.push(sn(o.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&i.push(sn(o.messages[f].range,t.fullField,t.min,t.max))},oo="enum",r5=function(t,n,r,i,o){t[oo]=Array.isArray(t[oo])?t[oo]:[],t[oo].indexOf(n)===-1&&i.push(sn(o.messages[oo],t.fullField,t[oo].join(", ")))},i5=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Se={required:tP,whitespace:Z3,type:t5,range:n5,enum:r5,pattern:i5},o5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o,"string"),dt(n,"string")||(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o),Se.pattern(t,n,i,a,o),t.whitespace===!0&&Se.whitespace(t,n,i,a,o))}r(a)},a5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},s5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},l5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},u5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),dt(n)||Se.type(t,n,i,a,o)}r(a)},c5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},f5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},d5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Se.required(t,n,i,a,o,"array"),n!=null&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},h5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},p5="enum",m5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se[p5](t,n,i,a,o)}r(a)},v5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o),dt(n,"string")||Se.pattern(t,n,i,a,o)}r(a)},g5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"date")&&!t.required)return r();if(Se.required(t,n,i,a,o),!dt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Se.type(t,l,i,a,o),l&&Se.range(t,l.getTime(),i,a,o)}}r(a)},y5=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;Se.required(t,n,i,a,o,s),r(a)},Id=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(dt(n,a)&&!t.required)return r();Se.required(t,n,i,s,o,a),dt(n,a)||Se.type(t,n,i,s,o)}r(s)},S5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o)}r(a)},as={string:o5,method:a5,number:s5,boolean:l5,regexp:u5,integer:c5,float:f5,array:d5,object:h5,enum:m5,pattern:v5,date:g5,url:Id,hex:Id,email:Id,required:y5,any:S5};function Hp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Wp=Hp(),el=function(){function e(n){this.rules=null,this._messages=Wp,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=cS(Hp(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var m=[],h={};function y(x){if(Array.isArray(x)){var E;m=(E=m).concat.apply(E,x)}else m.push(x)}for(var v=0;v2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return rP(t,r,n)})}function rP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function E5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Le(e)!=="object"||Le(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return de(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function k5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Le(t.target)==="object"&&e in t.target?t.target[e]:t}function mS(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(de(e.slice(0,n)),[i],de(e.slice(n,t)),de(e.slice(t+1,r))):o<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,n+1)),[i],de(e.slice(n+1,r))):e}var P5=["name"],gn=[];function vS(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var ig=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),j(xe(i),"state",{resetCount:0}),j(xe(i),"cancelRegisterFunc",null),j(xe(i),"mounted",!1),j(xe(i),"touched",!1),j(xe(i),"dirty",!1),j(xe(i),"validatePromise",void 0),j(xe(i),"prevValidating",void 0),j(xe(i),"errors",gn),j(xe(i),"warnings",gn),j(xe(i),"cancelRegister",function(){var l=i.props,u=l.preserve,c=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(c,u,et(f)),i.cancelRegisterFunc=null}),j(xe(i),"getNamePath",function(){var l=i.props,u=l.name,c=l.fieldContext,f=c.prefixName,d=f===void 0?[]:f;return u!==void 0?[].concat(de(d),de(u)):[]}),j(xe(i),"getRules",function(){var l=i.props,u=l.rules,c=u===void 0?[]:u,f=l.fieldContext;return c.map(function(d){return typeof d=="function"?d(f):d})}),j(xe(i),"refresh",function(){i.mounted&&i.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),j(xe(i),"metaCache",null),j(xe(i),"triggerMetaEvent",function(l){var u=i.props.onMetaChange;if(u){var c=I(I({},i.getMeta()),{},{destroy:l});YE(i.metaCache,c)||u(c),i.metaCache=c}else i.metaCache=null}),j(xe(i),"onStoreChange",function(l,u,c){var f=i.props,d=f.shouldUpdate,g=f.dependencies,S=g===void 0?[]:g,p=f.onReset,m=c.store,h=i.getNamePath(),y=i.getValue(l),v=i.getValue(m),x=u&&jo(u,h);switch(c.type==="valueUpdate"&&c.source==="external"&&y!==v&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=gn,i.warnings=gn,i.triggerMetaEvent()),c.type){case"reset":if(!u||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),p==null||p(),i.refresh();return}break;case"remove":{if(d){i.reRender();return}break}case"setField":{var E=c.data;if(x){"touched"in E&&(i.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(i.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(i.errors=E.errors||gn),"warnings"in E&&(i.warnings=E.warnings||gn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in E&&jo(u,h,!0)){i.reRender();return}if(d&&!h.length&&vS(d,l,m,y,v,c)){i.reRender();return}break}case"dependenciesUpdate":{var b=S.map(et);if(b.some(function(C){return jo(c.relatedFields,C)})){i.reRender();return}break}default:if(x||(!S.length||h.length||d)&&vS(d,l,m,y,v,c)){i.reRender();return}break}d===!0&&i.reRender()}),j(xe(i),"validateRules",function(l){var u=i.getNamePath(),c=i.getValue(),f=l||{},d=f.triggerName,g=f.validateOnly,S=g===void 0?!1:g,p=Promise.resolve().then(Zs(Kn().mark(function m(){var h,y,v,x,E,b,C;return Kn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(h=i.props,y=h.validateFirst,v=y===void 0?!1:y,x=h.messageVariables,E=h.validateDebounce,b=i.getRules(),d&&(b=b.filter(function(F){return F}).filter(function(F){var V=F.validateTrigger;if(!V)return!0;var H=$p(V);return H.includes(d)})),!(E&&d)){T.next=10;break}return T.next=8,new Promise(function(F){setTimeout(F,E)});case 8:if(i.validatePromise===p){T.next=10;break}return T.abrupt("return",[]);case 10:return C=b5(u,c,b,l,v,x),C.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn;if(i.validatePromise===p){var V;i.validatePromise=null;var H=[],U=[];(V=F.forEach)===null||V===void 0||V.call(F,function(Q){var W=Q.rule.warningOnly,_=Q.errors,L=_===void 0?gn:_;W?U.push.apply(U,de(L)):H.push.apply(H,de(L))}),i.errors=H,i.warnings=U,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",C);case 13:case"end":return T.stop()}},m)})));return S||(i.validatePromise=p,i.dirty=!0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),i.reRender()),p}),j(xe(i),"isFieldValidating",function(){return!!i.validatePromise}),j(xe(i),"isFieldTouched",function(){return i.touched}),j(xe(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,u=l.getInternalHooks(Li),c=u.getInitialValue;return c(i.getNamePath())!==void 0}),j(xe(i),"getErrors",function(){return i.errors}),j(xe(i),"getWarnings",function(){return i.warnings}),j(xe(i),"isListField",function(){return i.props.isListField}),j(xe(i),"isList",function(){return i.props.isList}),j(xe(i),"isPreserve",function(){return i.props.preserve}),j(xe(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),j(xe(i),"getOnlyChild",function(l){if(typeof l=="function"){var u=i.getMeta();return I(I({},i.getOnlyChild(l(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var c=pp(l);return c.length!==1||!w.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),j(xe(i),"getValue",function(l){var u=i.props.fieldContext.getFieldsValue,c=i.getNamePath();return nr(l||u(!0),c)}),j(xe(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,c=u.trigger,f=u.validateTrigger,d=u.getValueFromEvent,g=u.normalize,S=u.valuePropName,p=u.getValueProps,m=u.fieldContext,h=f!==void 0?f:m.validateTrigger,y=i.getNamePath(),v=m.getInternalHooks,x=m.getFieldsValue,E=v(Li),b=E.dispatch,C=i.getValue(),k=p||function(U){return j({},S,U)},T=l[c],F=k(C),V=I(I({},l),F);V[c]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var U,Q=arguments.length,W=new Array(Q),_=0;_=0&&F<=V.length?(c.keys=[].concat(de(c.keys.slice(0,F)),[c.id],de(c.keys.slice(F))),v([].concat(de(V.slice(0,F)),[T],de(V.slice(F))))):(c.keys=[].concat(de(c.keys),[c.id]),v([].concat(de(V),[T]))),c.id+=1},remove:function(T){var F=E(),V=new Set(Array.isArray(T)?T:[T]);V.size<=0||(c.keys=c.keys.filter(function(H,U){return!V.has(U)}),v(F.filter(function(H,U){return!V.has(U)})))},move:function(T,F){if(T!==F){var V=E();T<0||T>=V.length||F<0||F>=V.length||(c.keys=mS(c.keys,T,F),v(mS(V,T,F)))}}},C=y||[];return Array.isArray(C)||(C=[]),r(C.map(function(k,T){var F=c.keys[T];return F===void 0&&(c.keys[T]=c.id,F=c.keys[T],c.id+=1),{name:T,key:F,isListField:!0}}),b,m)})))}function R5(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var oP="__@field_split__";function Dd(e){return e.map(function(t){return"".concat(Le(t),":").concat(t)}).join(oP)}var ao=function(){function e(){Tn(this,e),j(this,"kvs",new Map)}return Rn(e,[{key:"set",value:function(n,r){this.kvs.set(Dd(n),r)}},{key:"get",value:function(n){return this.kvs.get(Dd(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Dd(n))}},{key:"map",value:function(n){return de(this.kvs.entries()).map(function(r){var i=oe(r,2),o=i[0],a=i[1],s=o.split(oP);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),c=oe(u,3),f=c[1],d=c[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),M5=["name"],O5=Rn(function e(t){var n=this;Tn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),j(this,"getInternalHooks",function(r){return r===Li?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Yt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Ro(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Dn(a,l,nr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),j(this,"destroyForm",function(){var r=new ao;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r}),j(this,"getInitialValue",function(r){var i=nr(n.initialValues,r);return r.length?Ro(i):i}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new ao;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=et(o);return i.get(a)||{INVALIDATE_NAME_PATH:et(o)}})}),j(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Le(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(c){var f,d,g="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var S,p;if((S=(p=c).isList)!==null&&S!==void 0&&S.call(p))return}else if(!o&&(f=(d=c).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)u.push(g);else{var m="getMeta"in c?c.getMeta():null;a(m)&&u.push(g)}}),pS(n.store,u.map(et))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var i=et(r);return nr(n.store,i)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:et(r[a]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new ao,o=n.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,c=l.getNamePath();if(u!==void 0){var f=i.get(c)||new Set;f.add({entity:l,value:u}),i.set(c,f)}});var a=function(u){u.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var d=c.getNamePath(),g=n.getInitialValue(d);if(g!==void 0)Yt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var S=i.get(d);if(S&&S.size>1)Yt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var p=n.getFieldValue(d),m=c.isListField();!m&&(!r.skipExist||p===void 0)&&n.updateStore(Dn(n.store,d,de(S)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var u=i.get(l);if(u){var c;(c=s).push.apply(c,de(de(u).map(function(f){return f.entity})))}})):s=o,a(s)}),j(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ro(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(et);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Dn(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),j(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=St(a,M5),u=et(s);o.push(u),"value"in l&&n.updateStore(Dn(n.store,u,l.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=I(I({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),j(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=nr(n.store,o);a===void 0&&n.updateStore(Dn(n.store,o,i))}}),j(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(f){return!rP(f.getNamePath(),i)})){var c=n.store;n.updateStore(Dn(c,i,u,!0)),n.notifyObservers(c,[i],{type:"remove"}),n.triggerDependenciesUpdate(c,i)}}n.notifyWatch([i])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),j(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=I(I({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(de(o))}),o}),j(this,"updateValue",function(r,i){var o=et(r),a=n.store;n.updateStore(Dn(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var u=pS(n.store,[o]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(de(s)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Ro(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),j(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new ao;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(c){var f=et(c);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(u){var c=a.get(u)||new Set;c.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(o.push(d),l(d))}})};return s(r),o}),j(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new ao;i.forEach(function(u){var c=u.name,f=u.errors;s.set(c,f)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=a.filter(function(u){var c=u.name;return jo(r,c)});l.length&&o(l,a)}}),j(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(et):[],u=[],c=String(Date.now()),f=new Set,d=a||{},g=d.recursive,S=d.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(S&&!y.isFieldDirty())){var v=y.getNamePath();if(f.add(v.join(c)),!s||jo(l,v,g)){var x=y.validateRules(I({validateMessages:I(I({},nP),n.validateMessages)},a));u.push(x.then(function(){return{name:v,errors:[],warnings:[]}}).catch(function(E){var b,C=[],k=[];return(b=E.forEach)===null||b===void 0||b.call(E,function(T){var F=T.rule.warningOnly,V=T.errors;F?k.push.apply(k,de(V)):C.push.apply(C,de(V))}),C.length?Promise.reject({name:v,errors:C,warnings:k}):{name:v,errors:C,warnings:k}}))}}});var p=R5(u);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var v=y.map(function(x){var E=x.name;return E});n.notifyObservers(n.store,v,{type:"validateFinish"}),n.triggerOnFieldsChange(v,y)});var m=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var v=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:v,outOfDate:n.lastValidatePromise!==p})});m.catch(function(y){return y});var h=l.filter(function(y){return f.has(y.join(c))});return n.triggerOnFieldsChange(h),m}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function aP(e){var t=w.useRef(),n=w.useState({}),r=oe(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new O5(o);t.current=a.getForm()}return[t.current]}var Yp=w.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),A5=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=w.useContext(Yp),s=w.useRef({});return w.createElement(Yp.Provider,{value:I(I({},a),{},{validateMessages:I(I({},a.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:s.current}),a.triggerFormChange(u,c)},triggerFormFinish:function(u,c){i&&i(u,{values:c,forms:s.current}),a.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(s.current=I(I({},s.current),{},j({},u,c))),a.registerForm(u,c)},unregisterForm:function(u){var c=I({},s.current);delete c[u],s.current=c,a.unregisterForm(u)}})},o)},F5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],L5=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,u=t.component,c=u===void 0?"form":u,f=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,S=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,h=t.onFinishFailed,y=St(t,F5),v=w.useContext(Yp),x=aP(a),E=oe(x,1),b=E[0],C=b.getInternalHooks(Li),k=C.useSubscribe,T=C.setInitialValues,F=C.setCallbacks,V=C.setValidateMessages,H=C.setPreserve,U=C.destroyForm;w.useImperativeHandle(n,function(){return b}),w.useEffect(function(){return v.registerForm(r,b),function(){v.unregisterForm(r)}},[v,b,r]),V(I(I({},v.validateMessages),f)),F({onValuesChange:S,onFieldsChange:function(K){if(v.triggerFormChange(r,K),p){for(var J=arguments.length,te=new Array(J>1?J-1:0),fe=1;fe{let{children:t,status:n,override:r}=e;const i=w.useContext(yS),o=w.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return w.createElement(yS.Provider,{value:o},t)};function SS(){}const N5=w.createContext({add:SS,remove:SS});function V5(e){const t=w.useContext(N5),n=w.useRef();return ij(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}var wS=w.createContext(null),sP=w.createContext({}),j5=["prefixCls","className","containerRef"],$5=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=St(t,j5),a=w.useContext(sP),s=a.panel,l=VE(s,i);return w.createElement("div",ee({className:Vt("".concat(n,"-content"),r),role:"dialog",ref:l},oc(t,{aria:!0}),{"aria-modal":"true"},o))};function bS(e){return typeof e=="string"&&String(Number(e))===e?(Yt(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var xS={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function B5(e,t){var n,r,i,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,u=e.push,c=e.forceRender,f=e.autoFocus,d=e.keyboard,g=e.classNames,S=e.rootClassName,p=e.rootStyle,m=e.zIndex,h=e.className,y=e.id,v=e.style,x=e.motion,E=e.width,b=e.height,C=e.children,k=e.mask,T=e.maskClosable,F=e.maskMotion,V=e.maskClassName,H=e.maskStyle,U=e.afterOpenChange,Q=e.onClose,W=e.onMouseEnter,_=e.onMouseOver,L=e.onMouseLeave,P=e.onClick,N=e.onKeyDown,z=e.onKeyUp,$=e.styles,K=w.useRef(),J=w.useRef(),te=w.useRef();w.useImperativeHandle(t,function(){return K.current});var fe=function(ve){var He=ve.keyCode,pt=ve.shiftKey;switch(He){case le.TAB:{if(He===le.TAB){if(!pt&&document.activeElement===te.current){var zt;(zt=J.current)===null||zt===void 0||zt.focus({preventScroll:!0})}else if(pt&&document.activeElement===J.current){var On;(On=te.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case le.ESC:{Q&&d&&(ve.stopPropagation(),Q(ve));break}}};w.useEffect(function(){if(a&&f){var he;(he=K.current)===null||he===void 0||he.focus({preventScroll:!0})}},[a]);var ce=w.useState(!1),be=oe(ce,2),ht=be[0],bt=be[1],Ae=w.useContext(wS),Ee;typeof u=="boolean"?Ee=u?{}:{distance:0}:Ee=u||{};var rt=(n=(r=(i=Ee)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:Ae==null?void 0:Ae.pushDistance)!==null&&n!==void 0?n:180,Mn=w.useMemo(function(){return{pushDistance:rt,push:function(){bt(!0)},pull:function(){bt(!1)}}},[rt]);w.useEffect(function(){if(a){var he;Ae==null||(he=Ae.push)===null||he===void 0||he.call(Ae)}else{var ve;Ae==null||(ve=Ae.pull)===null||ve===void 0||ve.call(Ae)}},[a]),w.useEffect(function(){return function(){var he;Ae==null||(he=Ae.pull)===null||he===void 0||he.call(Ae)}},[]);var qn=k&&w.createElement(_p,ee({key:"mask"},F,{visible:a}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",{className:Vt("".concat(o,"-mask"),He,g==null?void 0:g.mask,V),style:I(I(I({},pt),H),$==null?void 0:$.mask),onClick:T&&a?Q:void 0,ref:ve})}),Ye=typeof x=="function"?x(s):x,Zt={};if(ht&&rt)switch(s){case"top":Zt.transform="translateY(".concat(rt,"px)");break;case"bottom":Zt.transform="translateY(".concat(-rt,"px)");break;case"left":Zt.transform="translateX(".concat(rt,"px)");break;default:Zt.transform="translateX(".concat(-rt,"px)");break}s==="left"||s==="right"?Zt.width=bS(E):Zt.height=bS(b);var ur={onMouseEnter:W,onMouseOver:_,onMouseLeave:L,onClick:P,onKeyDown:N,onKeyUp:z},cr=w.createElement(_p,ee({key:"panel"},Ye,{visible:a,forceRender:c,onVisibleChanged:function(ve){U==null||U(ve)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",ee({className:Vt("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,He),style:I(I(I({},Zt),pt),$==null?void 0:$.wrapper)},oc(e,{data:!0})),w.createElement($5,ee({id:y,containerRef:ve,prefixCls:o,className:Vt(h,g==null?void 0:g.content),style:I(I({},v),$==null?void 0:$.content)},oc(e,{aria:!0}),ur),C))}),Qe=I({},p);return m&&(Qe.zIndex=m),w.createElement(wS.Provider,{value:Mn},w.createElement("div",{className:Vt(o,"".concat(o,"-").concat(s),S,j(j({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:Qe,tabIndex:-1,ref:K,onKeyDown:fe},qn,w.createElement("div",{tabIndex:0,ref:J,style:xS,"aria-hidden":"true","data-sentinel":"start"}),cr,w.createElement("div",{tabIndex:0,ref:te,style:xS,"aria-hidden":"true","data-sentinel":"end"})))}var z5=w.forwardRef(B5),U5=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,u=l===void 0?!0:l,c=t.keyboard,f=c===void 0?!0:c,d=t.width,g=d===void 0?378:d,S=t.mask,p=S===void 0?!0:S,m=t.maskClosable,h=m===void 0?!0:m,y=t.getContainer,v=t.forceRender,x=t.afterOpenChange,E=t.destroyOnClose,b=t.onMouseEnter,C=t.onMouseOver,k=t.onMouseLeave,T=t.onClick,F=t.onKeyDown,V=t.onKeyUp,H=t.panelRef,U=w.useState(!1),Q=oe(U,2),W=Q[0],_=Q[1],L=w.useState(!1),P=oe(L,2),N=P[0],z=P[1];Zo(function(){z(!0)},[]);var $=N?r:!1,K=w.useRef(),J=w.useRef();Zo(function(){$&&(J.current=document.activeElement)},[$]);var te=function(bt){var Ae;if(_(bt),x==null||x(bt),!bt&&J.current&&!((Ae=K.current)!==null&&Ae!==void 0&&Ae.contains(J.current))){var Ee;(Ee=J.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}},fe=w.useMemo(function(){return{panel:H}},[H]);if(!v&&!W&&!$&&E)return null;var ce={onMouseEnter:b,onMouseOver:C,onMouseLeave:k,onClick:T,onKeyDown:F,onKeyUp:V},be=I(I({},t),{},{open:$,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:p,maskClosable:h,inline:y===!1,afterOpenChange:te,ref:K},ce);return w.createElement(sP.Provider,{value:fe},w.createElement(N3,{open:$||v||W,autoDestroy:!1,getContainer:y,autoLock:p&&($||W)},w.createElement(z5,be)))};const H5=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,closeIcon:s,closable:l,onClose:u,headerStyle:c,bodyStyle:f,footerStyle:d,children:g,classNames:S,styles:p}=e,{drawer:m}=w.useContext(Qi),h=w.useCallback(C=>w.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},C),[u]),y=w.useMemo(()=>typeof(m==null?void 0:m.closable)=="object"&&m.closable.closeIcon?m.closable.closeIcon:m==null?void 0:m.closeIcon,[m==null?void 0:m.closable,m==null?void 0:m.closeIcon]),[v,x]=$3({closable:l??(m==null?void 0:m.closable),closeIcon:typeof s<"u"?s:y,customCloseIconRender:h,defaultClosable:!0}),E=w.useMemo(()=>{var C,k;return!i&&!v?null:w.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=m==null?void 0:m.styles)===null||C===void 0?void 0:C.header),c),p==null?void 0:p.header),className:Vt(`${r}-header`,{[`${r}-header-close-only`]:v&&!i&&!a},(k=m==null?void 0:m.classNames)===null||k===void 0?void 0:k.header,S==null?void 0:S.header)},w.createElement("div",{className:`${r}-header-title`},x,i&&w.createElement("div",{className:`${r}-title`},i)),a&&w.createElement("div",{className:`${r}-extra`},a))},[v,x,a,c,r,i]),b=w.useMemo(()=>{var C,k;if(!o)return null;const T=`${r}-footer`;return w.createElement("div",{className:Vt(T,(C=m==null?void 0:m.classNames)===null||C===void 0?void 0:C.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign(Object.assign({},(k=m==null?void 0:m.styles)===null||k===void 0?void 0:k.footer),d),p==null?void 0:p.footer)},o)},[o,d,r]);return w.createElement(w.Fragment,null,E,w.createElement("div",{className:Vt(`${r}-body`,S==null?void 0:S.body,(t=m==null?void 0:m.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m==null?void 0:m.styles)===null||n===void 0?void 0:n.body),f),p==null?void 0:p.body)},g),b)},lP=H5,W5=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},uP=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),cP=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},uP({opacity:e},{opacity:1})),K5=(e,t)=>[cP(.7,t),uP({transform:W5(e)},{transform:"none"})],G5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:cP(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:K5(i,n)}),{})}}},q5=G5,X5=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:u,lineHeightLG:c,lineWidth:f,lineType:d,colorSplit:g,marginSM:S,colorIcon:p,colorIconHover:m,colorText:h,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:x}=e,E=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${$r(s)} ${$r(l)}`,fontSize:u,lineHeight:c,borderBottom:`${$r(f)} ${d} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:S,color:p,fontWeight:y,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:h,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$r(v)} ${$r(x)}`,borderTop:`${$r(f)} ${d} ${g}`},"&-rtl":{direction:"rtl"}}}},Y5=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),fP=wj("Drawer",e=>{const t=tg(e,{});return[X5(t),q5(t)]},Y5);var dP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=Q5,open:s,afterOpenChange:l,onClose:u,prefixCls:c,getContainer:f,style:d,className:g,visible:S,afterVisibleChange:p,maskStyle:m,drawerStyle:h,contentWrapperStyle:y}=e,v=dP(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:x,getPrefixCls:E,direction:b,drawer:C}=w.useContext(Qi),k=E("drawer",c),[T,F,V]=fP(k),H=f===void 0&&x?()=>x(document.body):f,U=Vt({"no-mask":!o,[`${k}-rtl`]:b==="rtl"},t,F,V),Q=w.useMemo(()=>n??(i==="large"?736:378),[n,i]),W=w.useMemo(()=>r??(i==="large"?736:378),[r,i]),_={motionName:tS(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},L=fe=>({motionName:tS(k,`panel-motion-${fe}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),P=V5(),[N,z]=T3("Drawer",v.zIndex),{classNames:$={},styles:K={}}=v,{classNames:J={},styles:te={}}=C||{};return T(w.createElement(M3,null,w.createElement(D5,{status:!0,override:!0},w.createElement(Jk.Provider,{value:z},w.createElement(U5,Object.assign({prefixCls:k,onClose:u,maskMotion:_,motion:L},v,{classNames:{mask:Vt($.mask,J.mask),content:Vt($.content,J.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),m),te.mask),content:Object.assign(Object.assign(Object.assign({},K.content),h),te.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),y),te.wrapper)},open:s??S,mask:o,push:a,width:Q,height:W,style:Object.assign(Object.assign({},C==null?void 0:C.style),d),className:Vt(C==null?void 0:C.className,g),rootClassName:U,getContainer:H,afterOpenChange:l??p,panelRef:P,zIndex:N}),w.createElement(lP,Object.assign({prefixCls:k},v,{onClose:u})))))))},J5=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=dP(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=w.useContext(Qi),s=a("drawer",t),[l,u,c]=fP(s),f=Vt(s,`${s}-pure`,`${s}-${i}`,u,c,r);return l(w.createElement("div",{className:f,style:n},w.createElement(lP,Object.assign({prefixCls:s},o))))};hP._InternalPanelDoNotUseOrYouWillBeFired=J5;const Z5=hP,e4="_containerWrapper_1iakk_1",t4="_container_1iakk_1",n4="_hr_1iakk_14",Su={containerWrapper:e4,container:t4,hr:n4},og=w.createContext({theme:"light",toggleTheme:()=>{}}),r4=({children:e})=>{const[t,n]=w.useState(localStorage.getItem("theme")||"light"),r=()=>{const i=t==="light"?"dark":"light";localStorage.setItem("theme",i),n(i)};return M.jsx(og.Provider,{value:{theme:t,toggleTheme:r},children:M.jsx("div",{className:Su.containerWrapper,"data-theme":t,children:e})})};/** +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(x){return x&&x.exact?o:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+i+t(x)+")","g")};l.v4=function(v){return v&&v.exact?a:new RegExp(""+t(v)+n+t(v),"g")},l.v6=function(v){return v&&v.exact?s:new RegExp(""+t(v)+i+t(v),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",h='(?:[/?#][^\\s"]*)?',y="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+g+S+p+")"+m+h;return Bl=new RegExp("(?:^"+y+"$)","i"),Bl},fS={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ja={integer:function(t){return ja.number(t)&&parseInt(t,10)===t},float:function(t){return ja.number(t)&&!ja.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ja.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(fS.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(e5())},hex:function(t){return typeof t=="string"&&!!t.match(fS.hex)}},t5=function(t,n,r,i,o){if(t.required&&n===void 0){tP(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?ja[s](n)||i.push(sn(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&i.push(sn(o.messages.types[s],t.fullField,t.type))},n5=function(t,n,r,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",g=typeof n=="string",S=Array.isArray(n);if(d?f="number":g?f="string":S&&(f="array"),!f)return!1;S&&(c=n.length),g&&(c=n.replace(u,"_").length),a?c!==t.len&&i.push(sn(o.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?i.push(sn(o.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&i.push(sn(o.messages[f].range,t.fullField,t.min,t.max))},oo="enum",r5=function(t,n,r,i,o){t[oo]=Array.isArray(t[oo])?t[oo]:[],t[oo].indexOf(n)===-1&&i.push(sn(o.messages[oo],t.fullField,t[oo].join(", ")))},i5=function(t,n,r,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||i.push(sn(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Se={required:tP,whitespace:Z3,type:t5,range:n5,enum:r5,pattern:i5},o5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o,"string"),dt(n,"string")||(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o),Se.pattern(t,n,i,a,o),t.whitespace===!0&&Se.whitespace(t,n,i,a,o))}r(a)},a5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},s5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},l5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},u5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),dt(n)||Se.type(t,n,i,a,o)}r(a)},c5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},f5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},d5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Se.required(t,n,i,a,o,"array"),n!=null&&(Se.type(t,n,i,a,o),Se.range(t,n,i,a,o))}r(a)},h5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se.type(t,n,i,a,o)}r(a)},p5="enum",m5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o),n!==void 0&&Se[p5](t,n,i,a,o)}r(a)},v5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"string")&&!t.required)return r();Se.required(t,n,i,a,o),dt(n,"string")||Se.pattern(t,n,i,a,o)}r(a)},g5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n,"date")&&!t.required)return r();if(Se.required(t,n,i,a,o),!dt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Se.type(t,l,i,a,o),l&&Se.range(t,l.getTime(),i,a,o)}}r(a)},y5=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;Se.required(t,n,i,a,o,s),r(a)},Id=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(dt(n,a)&&!t.required)return r();Se.required(t,n,i,s,o,a),dt(n,a)||Se.type(t,n,i,s,o)}r(s)},S5=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(dt(n)&&!t.required)return r();Se.required(t,n,i,a,o)}r(a)},as={string:o5,method:a5,number:s5,boolean:l5,regexp:u5,integer:c5,float:f5,array:d5,object:h5,enum:m5,pattern:v5,date:g5,url:Id,hex:Id,email:Id,required:y5,any:S5};function Hp(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Wp=Hp(),el=function(){function e(n){this.rules=null,this._messages=Wp,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},t.messages=function(r){return r&&(this._messages=cS(Hp(),r)),this._messages},t.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var m=[],h={};function y(x){if(Array.isArray(x)){var E;m=(E=m).concat.apply(E,x)}else m.push(x)}for(var v=0;v2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return rP(t,r,n)})}function rP(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function E5(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Le(e)!=="object"||Le(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return de(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function k5(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Le(t.target)==="object"&&e in t.target?t.target[e]:t}function mS(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(de(e.slice(0,n)),[i],de(e.slice(n,t)),de(e.slice(t+1,r))):o<0?[].concat(de(e.slice(0,t)),de(e.slice(t+1,n+1)),[i],de(e.slice(n+1,r))):e}var P5=["name"],gn=[];function vS(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var ig=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),j(xe(i),"state",{resetCount:0}),j(xe(i),"cancelRegisterFunc",null),j(xe(i),"mounted",!1),j(xe(i),"touched",!1),j(xe(i),"dirty",!1),j(xe(i),"validatePromise",void 0),j(xe(i),"prevValidating",void 0),j(xe(i),"errors",gn),j(xe(i),"warnings",gn),j(xe(i),"cancelRegister",function(){var l=i.props,u=l.preserve,c=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(c,u,et(f)),i.cancelRegisterFunc=null}),j(xe(i),"getNamePath",function(){var l=i.props,u=l.name,c=l.fieldContext,f=c.prefixName,d=f===void 0?[]:f;return u!==void 0?[].concat(de(d),de(u)):[]}),j(xe(i),"getRules",function(){var l=i.props,u=l.rules,c=u===void 0?[]:u,f=l.fieldContext;return c.map(function(d){return typeof d=="function"?d(f):d})}),j(xe(i),"refresh",function(){i.mounted&&i.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),j(xe(i),"metaCache",null),j(xe(i),"triggerMetaEvent",function(l){var u=i.props.onMetaChange;if(u){var c=I(I({},i.getMeta()),{},{destroy:l});YE(i.metaCache,c)||u(c),i.metaCache=c}else i.metaCache=null}),j(xe(i),"onStoreChange",function(l,u,c){var f=i.props,d=f.shouldUpdate,g=f.dependencies,S=g===void 0?[]:g,p=f.onReset,m=c.store,h=i.getNamePath(),y=i.getValue(l),v=i.getValue(m),x=u&&jo(u,h);switch(c.type==="valueUpdate"&&c.source==="external"&&y!==v&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=gn,i.warnings=gn,i.triggerMetaEvent()),c.type){case"reset":if(!u||x){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),p==null||p(),i.refresh();return}break;case"remove":{if(d){i.reRender();return}break}case"setField":{var E=c.data;if(x){"touched"in E&&(i.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(i.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(i.errors=E.errors||gn),"warnings"in E&&(i.warnings=E.warnings||gn),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in E&&jo(u,h,!0)){i.reRender();return}if(d&&!h.length&&vS(d,l,m,y,v,c)){i.reRender();return}break}case"dependenciesUpdate":{var b=S.map(et);if(b.some(function(C){return jo(c.relatedFields,C)})){i.reRender();return}break}default:if(x||(!S.length||h.length||d)&&vS(d,l,m,y,v,c)){i.reRender();return}break}d===!0&&i.reRender()}),j(xe(i),"validateRules",function(l){var u=i.getNamePath(),c=i.getValue(),f=l||{},d=f.triggerName,g=f.validateOnly,S=g===void 0?!1:g,p=Promise.resolve().then(Zs(Kn().mark(function m(){var h,y,v,x,E,b,C;return Kn().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(h=i.props,y=h.validateFirst,v=y===void 0?!1:y,x=h.messageVariables,E=h.validateDebounce,b=i.getRules(),d&&(b=b.filter(function(F){return F}).filter(function(F){var V=F.validateTrigger;if(!V)return!0;var H=$p(V);return H.includes(d)})),!(E&&d)){T.next=10;break}return T.next=8,new Promise(function(F){setTimeout(F,E)});case 8:if(i.validatePromise===p){T.next=10;break}return T.abrupt("return",[]);case 10:return C=b5(u,c,b,l,v,x),C.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gn;if(i.validatePromise===p){var V;i.validatePromise=null;var H=[],U=[];(V=F.forEach)===null||V===void 0||V.call(F,function(Q){var W=Q.rule.warningOnly,_=Q.errors,L=_===void 0?gn:_;W?U.push.apply(U,de(L)):H.push.apply(H,de(L))}),i.errors=H,i.warnings=U,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",C);case 13:case"end":return T.stop()}},m)})));return S||(i.validatePromise=p,i.dirty=!0,i.errors=gn,i.warnings=gn,i.triggerMetaEvent(),i.reRender()),p}),j(xe(i),"isFieldValidating",function(){return!!i.validatePromise}),j(xe(i),"isFieldTouched",function(){return i.touched}),j(xe(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,u=l.getInternalHooks(Li),c=u.getInitialValue;return c(i.getNamePath())!==void 0}),j(xe(i),"getErrors",function(){return i.errors}),j(xe(i),"getWarnings",function(){return i.warnings}),j(xe(i),"isListField",function(){return i.props.isListField}),j(xe(i),"isList",function(){return i.props.isList}),j(xe(i),"isPreserve",function(){return i.props.preserve}),j(xe(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),j(xe(i),"getOnlyChild",function(l){if(typeof l=="function"){var u=i.getMeta();return I(I({},i.getOnlyChild(l(i.getControlled(),u,i.props.fieldContext))),{},{isFunction:!0})}var c=pp(l);return c.length!==1||!w.isValidElement(c[0])?{child:c,isFunction:!1}:{child:c[0],isFunction:!1}}),j(xe(i),"getValue",function(l){var u=i.props.fieldContext.getFieldsValue,c=i.getNamePath();return nr(l||u(!0),c)}),j(xe(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=i.props,c=u.trigger,f=u.validateTrigger,d=u.getValueFromEvent,g=u.normalize,S=u.valuePropName,p=u.getValueProps,m=u.fieldContext,h=f!==void 0?f:m.validateTrigger,y=i.getNamePath(),v=m.getInternalHooks,x=m.getFieldsValue,E=v(Li),b=E.dispatch,C=i.getValue(),k=p||function(U){return j({},S,U)},T=l[c],F=k(C),V=I(I({},l),F);V[c]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var U,Q=arguments.length,W=new Array(Q),_=0;_=0&&F<=V.length?(c.keys=[].concat(de(c.keys.slice(0,F)),[c.id],de(c.keys.slice(F))),v([].concat(de(V.slice(0,F)),[T],de(V.slice(F))))):(c.keys=[].concat(de(c.keys),[c.id]),v([].concat(de(V),[T]))),c.id+=1},remove:function(T){var F=E(),V=new Set(Array.isArray(T)?T:[T]);V.size<=0||(c.keys=c.keys.filter(function(H,U){return!V.has(U)}),v(F.filter(function(H,U){return!V.has(U)})))},move:function(T,F){if(T!==F){var V=E();T<0||T>=V.length||F<0||F>=V.length||(c.keys=mS(c.keys,T,F),v(mS(V,T,F)))}}},C=y||[];return Array.isArray(C)||(C=[]),r(C.map(function(k,T){var F=c.keys[T];return F===void 0&&(c.keys[T]=c.id,F=c.keys[T],c.id+=1),{name:T,key:F,isListField:!0}}),b,m)})))}function R5(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var oP="__@field_split__";function Dd(e){return e.map(function(t){return"".concat(Le(t),":").concat(t)}).join(oP)}var ao=function(){function e(){Tn(this,e),j(this,"kvs",new Map)}return Rn(e,[{key:"set",value:function(n,r){this.kvs.set(Dd(n),r)}},{key:"get",value:function(n){return this.kvs.get(Dd(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Dd(n))}},{key:"map",value:function(n){return de(this.kvs.entries()).map(function(r){var i=oe(r,2),o=i[0],a=i[1],s=o.split(oP);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),c=oe(u,3),f=c[1],d=c[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),M5=["name"],O5=Rn(function e(t){var n=this;Tn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),j(this,"getInternalHooks",function(r){return r===Li?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Yt(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Ro(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Dn(a,l,nr(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),j(this,"destroyForm",function(){var r=new ao;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||r.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=r}),j(this,"getInitialValue",function(r){var i=nr(n.initialValues,r);return r.length?Ro(i):i}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new ao;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=et(o);return i.get(a)||{INVALIDATE_NAME_PATH:et(o)}})}),j(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Le(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),u=[];return l.forEach(function(c){var f,d,g="INVALIDATE_NAME_PATH"in c?c.INVALIDATE_NAME_PATH:c.getNamePath();if(s){var S,p;if((S=(p=c).isList)!==null&&S!==void 0&&S.call(p))return}else if(!o&&(f=(d=c).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)u.push(g);else{var m="getMeta"in c?c.getMeta():null;a(m)&&u.push(g)}}),pS(n.store,u.map(et))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var i=et(r);return nr(n.store,i)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:et(r[a]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var i=et(r),o=n.getFieldsError([i])[0];return o.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new ao,o=n.getFieldEntities(!0);o.forEach(function(l){var u=l.props.initialValue,c=l.getNamePath();if(u!==void 0){var f=i.get(c)||new Set;f.add({entity:l,value:u}),i.set(c,f)}});var a=function(u){u.forEach(function(c){var f=c.props.initialValue;if(f!==void 0){var d=c.getNamePath(),g=n.getInitialValue(d);if(g!==void 0)Yt(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var S=i.get(d);if(S&&S.size>1)Yt(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(S){var p=n.getFieldValue(d),m=c.isListField();!m&&(!r.skipExist||p===void 0)&&n.updateStore(Dn(n.store,d,de(S)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var u=i.get(l);if(u){var c;(c=s).push.apply(c,de(de(u).map(function(f){return f.entity})))}})):s=o,a(s)}),j(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Ro(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(et);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Dn(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),j(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=St(a,M5),u=et(s);o.push(u),"value"in l&&n.updateStore(Dn(n.store,u,l.value)),n.notifyObservers(i,[u],{type:"setField",data:a})}),n.notifyWatch(o)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=I(I({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),j(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=nr(n.store,o);a===void 0&&n.updateStore(Dn(n.store,o,i))}}),j(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var u=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==u&&n.fieldEntities.every(function(f){return!rP(f.getNamePath(),i)})){var c=n.store;n.updateStore(Dn(c,i,u,!0)),n.notifyObservers(c,[i],{type:"remove"}),n.triggerDependenciesUpdate(c,i)}}n.notifyWatch([i])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),j(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=I(I({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(de(o))}),o}),j(this,"updateValue",function(r,i){var o=et(r),a=n.store;n.updateStore(Dn(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var u=pS(n.store,[o]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(de(s)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Ro(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),j(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new ao;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(c){var f=et(c);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(u){var c=a.get(u)||new Set;c.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(o.push(d),l(d))}})};return s(r),o}),j(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new ao;i.forEach(function(u){var c=u.name,f=u.errors;s.set(c,f)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=a.filter(function(u){var c=u.name;return jo(r,c)});l.length&&o(l,a)}}),j(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(et):[],u=[],c=String(Date.now()),f=new Set,d=a||{},g=d.recursive,S=d.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(S&&!y.isFieldDirty())){var v=y.getNamePath();if(f.add(v.join(c)),!s||jo(l,v,g)){var x=y.validateRules(I({validateMessages:I(I({},nP),n.validateMessages)},a));u.push(x.then(function(){return{name:v,errors:[],warnings:[]}}).catch(function(E){var b,C=[],k=[];return(b=E.forEach)===null||b===void 0||b.call(E,function(T){var F=T.rule.warningOnly,V=T.errors;F?k.push.apply(k,de(V)):C.push.apply(C,de(V))}),C.length?Promise.reject({name:v,errors:C,warnings:k}):{name:v,errors:C,warnings:k}}))}}});var p=R5(u);n.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var v=y.map(function(x){var E=x.name;return E});n.notifyObservers(n.store,v,{type:"validateFinish"}),n.triggerOnFieldsChange(v,y)});var m=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var v=y.filter(function(x){return x&&x.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:v,outOfDate:n.lastValidatePromise!==p})});m.catch(function(y){return y});var h=l.filter(function(y){return f.has(y.join(c))});return n.triggerOnFieldsChange(h),m}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function aP(e){var t=w.useRef(),n=w.useState({}),r=oe(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new O5(o);t.current=a.getForm()}return[t.current]}var Yp=w.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),A5=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=w.useContext(Yp),s=w.useRef({});return w.createElement(Yp.Provider,{value:I(I({},a),{},{validateMessages:I(I({},a.validateMessages),n),triggerFormChange:function(u,c){r&&r(u,{changedFields:c,forms:s.current}),a.triggerFormChange(u,c)},triggerFormFinish:function(u,c){i&&i(u,{values:c,forms:s.current}),a.triggerFormFinish(u,c)},registerForm:function(u,c){u&&(s.current=I(I({},s.current),{},j({},u,c))),a.registerForm(u,c)},unregisterForm:function(u){var c=I({},s.current);delete c[u],s.current=c,a.unregisterForm(u)}})},o)},F5=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],L5=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,u=t.component,c=u===void 0?"form":u,f=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,S=t.onValuesChange,p=t.onFieldsChange,m=t.onFinish,h=t.onFinishFailed,y=St(t,F5),v=w.useContext(Yp),x=aP(a),E=oe(x,1),b=E[0],C=b.getInternalHooks(Li),k=C.useSubscribe,T=C.setInitialValues,F=C.setCallbacks,V=C.setValidateMessages,H=C.setPreserve,U=C.destroyForm;w.useImperativeHandle(n,function(){return b}),w.useEffect(function(){return v.registerForm(r,b),function(){v.unregisterForm(r)}},[v,b,r]),V(I(I({},v.validateMessages),f)),F({onValuesChange:S,onFieldsChange:function(K){if(v.triggerFormChange(r,K),p){for(var J=arguments.length,te=new Array(J>1?J-1:0),fe=1;fe{let{children:t,status:n,override:r}=e;const i=w.useContext(yS),o=w.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return w.createElement(yS.Provider,{value:o},t)};function SS(){}const N5=w.createContext({add:SS,remove:SS});function V5(e){const t=w.useContext(N5),n=w.useRef();return ij(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),n.current=o}else t.remove(n.current)})}var wS=w.createContext(null),sP=w.createContext({}),j5=["prefixCls","className","containerRef"],$5=function(t){var n=t.prefixCls,r=t.className,i=t.containerRef,o=St(t,j5),a=w.useContext(sP),s=a.panel,l=VE(s,i);return w.createElement("div",ee({className:Vt("".concat(n,"-content"),r),role:"dialog",ref:l},oc(t,{aria:!0}),{"aria-modal":"true"},o))};function bS(e){return typeof e=="string"&&String(Number(e))===e?(Yt(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var xS={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function B5(e,t){var n,r,i,o=e.prefixCls,a=e.open,s=e.placement,l=e.inline,u=e.push,c=e.forceRender,f=e.autoFocus,d=e.keyboard,g=e.classNames,S=e.rootClassName,p=e.rootStyle,m=e.zIndex,h=e.className,y=e.id,v=e.style,x=e.motion,E=e.width,b=e.height,C=e.children,k=e.mask,T=e.maskClosable,F=e.maskMotion,V=e.maskClassName,H=e.maskStyle,U=e.afterOpenChange,Q=e.onClose,W=e.onMouseEnter,_=e.onMouseOver,L=e.onMouseLeave,P=e.onClick,N=e.onKeyDown,z=e.onKeyUp,$=e.styles,K=w.useRef(),J=w.useRef(),te=w.useRef();w.useImperativeHandle(t,function(){return K.current});var fe=function(ve){var He=ve.keyCode,pt=ve.shiftKey;switch(He){case le.TAB:{if(He===le.TAB){if(!pt&&document.activeElement===te.current){var zt;(zt=J.current)===null||zt===void 0||zt.focus({preventScroll:!0})}else if(pt&&document.activeElement===J.current){var On;(On=te.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case le.ESC:{Q&&d&&(ve.stopPropagation(),Q(ve));break}}};w.useEffect(function(){if(a&&f){var he;(he=K.current)===null||he===void 0||he.focus({preventScroll:!0})}},[a]);var ce=w.useState(!1),be=oe(ce,2),ht=be[0],bt=be[1],Ae=w.useContext(wS),Ee;typeof u=="boolean"?Ee=u?{}:{distance:0}:Ee=u||{};var rt=(n=(r=(i=Ee)===null||i===void 0?void 0:i.distance)!==null&&r!==void 0?r:Ae==null?void 0:Ae.pushDistance)!==null&&n!==void 0?n:180,Mn=w.useMemo(function(){return{pushDistance:rt,push:function(){bt(!0)},pull:function(){bt(!1)}}},[rt]);w.useEffect(function(){if(a){var he;Ae==null||(he=Ae.push)===null||he===void 0||he.call(Ae)}else{var ve;Ae==null||(ve=Ae.pull)===null||ve===void 0||ve.call(Ae)}},[a]),w.useEffect(function(){return function(){var he;Ae==null||(he=Ae.pull)===null||he===void 0||he.call(Ae)}},[]);var qn=k&&w.createElement(_p,ee({key:"mask"},F,{visible:a}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",{className:Vt("".concat(o,"-mask"),He,g==null?void 0:g.mask,V),style:I(I(I({},pt),H),$==null?void 0:$.mask),onClick:T&&a?Q:void 0,ref:ve})}),Ye=typeof x=="function"?x(s):x,Zt={};if(ht&&rt)switch(s){case"top":Zt.transform="translateY(".concat(rt,"px)");break;case"bottom":Zt.transform="translateY(".concat(-rt,"px)");break;case"left":Zt.transform="translateX(".concat(rt,"px)");break;default:Zt.transform="translateX(".concat(-rt,"px)");break}s==="left"||s==="right"?Zt.width=bS(E):Zt.height=bS(b);var ur={onMouseEnter:W,onMouseOver:_,onMouseLeave:L,onClick:P,onKeyDown:N,onKeyUp:z},cr=w.createElement(_p,ee({key:"panel"},Ye,{visible:a,forceRender:c,onVisibleChanged:function(ve){U==null||U(ve)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(he,ve){var He=he.className,pt=he.style;return w.createElement("div",ee({className:Vt("".concat(o,"-content-wrapper"),g==null?void 0:g.wrapper,He),style:I(I(I({},Zt),pt),$==null?void 0:$.wrapper)},oc(e,{data:!0})),w.createElement($5,ee({id:y,containerRef:ve,prefixCls:o,className:Vt(h,g==null?void 0:g.content),style:I(I({},v),$==null?void 0:$.content)},oc(e,{aria:!0}),ur),C))}),Qe=I({},p);return m&&(Qe.zIndex=m),w.createElement(wS.Provider,{value:Mn},w.createElement("div",{className:Vt(o,"".concat(o,"-").concat(s),S,j(j({},"".concat(o,"-open"),a),"".concat(o,"-inline"),l)),style:Qe,tabIndex:-1,ref:K,onKeyDown:fe},qn,w.createElement("div",{tabIndex:0,ref:J,style:xS,"aria-hidden":"true","data-sentinel":"start"}),cr,w.createElement("div",{tabIndex:0,ref:te,style:xS,"aria-hidden":"true","data-sentinel":"end"})))}var z5=w.forwardRef(B5),U5=function(t){var n=t.open,r=n===void 0?!1:n,i=t.prefixCls,o=i===void 0?"rc-drawer":i,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,u=l===void 0?!0:l,c=t.keyboard,f=c===void 0?!0:c,d=t.width,g=d===void 0?378:d,S=t.mask,p=S===void 0?!0:S,m=t.maskClosable,h=m===void 0?!0:m,y=t.getContainer,v=t.forceRender,x=t.afterOpenChange,E=t.destroyOnClose,b=t.onMouseEnter,C=t.onMouseOver,k=t.onMouseLeave,T=t.onClick,F=t.onKeyDown,V=t.onKeyUp,H=t.panelRef,U=w.useState(!1),Q=oe(U,2),W=Q[0],_=Q[1],L=w.useState(!1),P=oe(L,2),N=P[0],z=P[1];Zo(function(){z(!0)},[]);var $=N?r:!1,K=w.useRef(),J=w.useRef();Zo(function(){$&&(J.current=document.activeElement)},[$]);var te=function(bt){var Ae;if(_(bt),x==null||x(bt),!bt&&J.current&&!((Ae=K.current)!==null&&Ae!==void 0&&Ae.contains(J.current))){var Ee;(Ee=J.current)===null||Ee===void 0||Ee.focus({preventScroll:!0})}},fe=w.useMemo(function(){return{panel:H}},[H]);if(!v&&!W&&!$&&E)return null;var ce={onMouseEnter:b,onMouseOver:C,onMouseLeave:k,onClick:T,onKeyDown:F,onKeyUp:V},be=I(I({},t),{},{open:$,prefixCls:o,placement:s,autoFocus:u,keyboard:f,width:g,mask:p,maskClosable:h,inline:y===!1,afterOpenChange:te,ref:K},ce);return w.createElement(sP.Provider,{value:fe},w.createElement(N3,{open:$||v||W,autoDestroy:!1,getContainer:y,autoLock:p&&($||W)},w.createElement(z5,be)))};const H5=e=>{var t,n;const{prefixCls:r,title:i,footer:o,extra:a,closeIcon:s,closable:l,onClose:u,headerStyle:c,bodyStyle:f,footerStyle:d,children:g,classNames:S,styles:p}=e,{drawer:m}=w.useContext(Qi),h=w.useCallback(C=>w.createElement("button",{type:"button",onClick:u,"aria-label":"Close",className:`${r}-close`},C),[u]),y=w.useMemo(()=>typeof(m==null?void 0:m.closable)=="object"&&m.closable.closeIcon?m.closable.closeIcon:m==null?void 0:m.closeIcon,[m==null?void 0:m.closable,m==null?void 0:m.closeIcon]),[v,x]=$3({closable:l??(m==null?void 0:m.closable),closeIcon:typeof s<"u"?s:y,customCloseIconRender:h,defaultClosable:!0}),E=w.useMemo(()=>{var C,k;return!i&&!v?null:w.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(C=m==null?void 0:m.styles)===null||C===void 0?void 0:C.header),c),p==null?void 0:p.header),className:Vt(`${r}-header`,{[`${r}-header-close-only`]:v&&!i&&!a},(k=m==null?void 0:m.classNames)===null||k===void 0?void 0:k.header,S==null?void 0:S.header)},w.createElement("div",{className:`${r}-header-title`},x,i&&w.createElement("div",{className:`${r}-title`},i)),a&&w.createElement("div",{className:`${r}-extra`},a))},[v,x,a,c,r,i]),b=w.useMemo(()=>{var C,k;if(!o)return null;const T=`${r}-footer`;return w.createElement("div",{className:Vt(T,(C=m==null?void 0:m.classNames)===null||C===void 0?void 0:C.footer,S==null?void 0:S.footer),style:Object.assign(Object.assign(Object.assign({},(k=m==null?void 0:m.styles)===null||k===void 0?void 0:k.footer),d),p==null?void 0:p.footer)},o)},[o,d,r]);return w.createElement(w.Fragment,null,E,w.createElement("div",{className:Vt(`${r}-body`,S==null?void 0:S.body,(t=m==null?void 0:m.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=m==null?void 0:m.styles)===null||n===void 0?void 0:n.body),f),p==null?void 0:p.body)},g),b)},lP=H5,W5=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},uP=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),cP=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},uP({opacity:e},{opacity:1})),K5=(e,t)=>[cP(.7,t),uP({transform:W5(e)},{transform:"none"})],G5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:cP(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>Object.assign(Object.assign({},r),{[`&-${i}`]:K5(i,n)}),{})}}},q5=G5,X5=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:i,motionDurationSlow:o,motionDurationMid:a,padding:s,paddingLG:l,fontSizeLG:u,lineHeightLG:c,lineWidth:f,lineType:d,colorSplit:g,marginSM:S,colorIcon:p,colorIconHover:m,colorText:h,fontWeightStrong:y,footerPaddingBlock:v,footerPaddingInline:x}=e,E=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${o}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${$r(s)} ${$r(l)}`,fontSize:u,lineHeight:c,borderBottom:`${$r(f)} ${d} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:S,color:p,fontWeight:y,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${a}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:h,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$r(v)} ${$r(x)}`,borderTop:`${$r(f)} ${d} ${g}`},"&-rtl":{direction:"rtl"}}}},Y5=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),fP=wj("Drawer",e=>{const t=tg(e,{});return[X5(t),q5(t)]},Y5);var dP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{rootClassName:t,width:n,height:r,size:i="default",mask:o=!0,push:a=Q5,open:s,afterOpenChange:l,onClose:u,prefixCls:c,getContainer:f,style:d,className:g,visible:S,afterVisibleChange:p,maskStyle:m,drawerStyle:h,contentWrapperStyle:y}=e,v=dP(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:x,getPrefixCls:E,direction:b,drawer:C}=w.useContext(Qi),k=E("drawer",c),[T,F,V]=fP(k),H=f===void 0&&x?()=>x(document.body):f,U=Vt({"no-mask":!o,[`${k}-rtl`]:b==="rtl"},t,F,V),Q=w.useMemo(()=>n??(i==="large"?736:378),[n,i]),W=w.useMemo(()=>r??(i==="large"?736:378),[r,i]),_={motionName:tS(k,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},L=fe=>({motionName:tS(k,`panel-motion-${fe}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),P=V5(),[N,z]=T3("Drawer",v.zIndex),{classNames:$={},styles:K={}}=v,{classNames:J={},styles:te={}}=C||{};return T(w.createElement(M3,null,w.createElement(D5,{status:!0,override:!0},w.createElement(Jk.Provider,{value:z},w.createElement(U5,Object.assign({prefixCls:k,onClose:u,maskMotion:_,motion:L},v,{classNames:{mask:Vt($.mask,J.mask),content:Vt($.content,J.content)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),m),te.mask),content:Object.assign(Object.assign(Object.assign({},K.content),h),te.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),y),te.wrapper)},open:s??S,mask:o,push:a,width:Q,height:W,style:Object.assign(Object.assign({},C==null?void 0:C.style),d),className:Vt(C==null?void 0:C.className,g),rootClassName:U,getContainer:H,afterOpenChange:l??p,panelRef:P,zIndex:N}),w.createElement(lP,Object.assign({prefixCls:k},v,{onClose:u})))))))},J5=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,o=dP(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=w.useContext(Qi),s=a("drawer",t),[l,u,c]=fP(s),f=Vt(s,`${s}-pure`,`${s}-${i}`,u,c,r);return l(w.createElement("div",{className:f,style:n},w.createElement(lP,Object.assign({prefixCls:s},o))))};hP._InternalPanelDoNotUseOrYouWillBeFired=J5;const Z5=hP,e4="_containerWrapper_1iakk_1",t4="_container_1iakk_1",n4="_hr_1iakk_14",Su={containerWrapper:e4,container:t4,hr:n4},og=w.createContext({theme:"light",toggleTheme:()=>{}}),r4=({children:e})=>{const[t,n]=w.useState(localStorage.getItem("theme")||"light"),r=()=>{const i=t==="light"?"dark":"light";localStorage.setItem("theme",i),n(i)};return O.jsx(og.Provider,{value:{theme:t,toggleTheme:r},children:O.jsx("div",{className:Su.containerWrapper,"data-theme":t,children:e})})};/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. @@ -253,7 +253,7 @@ html body { * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ES=ff("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),l4="_navbar_9vml7_1",u4="_logo_9vml7_13",c4="_heading_9vml7_28",f4="_right_9vml7_34",d4="_links_9vml7_38",h4="_github_9vml7_41",p4="_hamburger_9vml7_53",m4="_themeButton_9vml7_64",v4="_drawerContent_9vml7_99",g4="_drawerList_9vml7_103",y4="_drawerListItem_9vml7_109",Ht={navbar:l4,logo:u4,heading:c4,right:f4,links:d4,github:h4,hamburger:p4,themeButton:m4,drawerContent:v4,drawerList:g4,drawerListItem:y4,"ant-drawer-close":"_ant-drawer-close_9vml7_113","ant-drawer-header":"_ant-drawer-header_9vml7_119","ant-drawer-title":"_ant-drawer-title_9vml7_124"};function ag({children:e,title:t,subheading:n}){const{theme:r,toggleTheme:i}=w.useContext(og),[o,a]=w.useState(!1),s=()=>{a(!o)};return M.jsxs("nav",{className:Ht.navbar,children:[M.jsxs("a",{className:Ht.logo,href:"/frontend-mini-challenges/",children:[M.jsx("img",{src:r==="light"?vD:gD,alt:"logo"}),M.jsx("span",{children:t??"Frontend Mini Challenges"})]}),M.jsx("div",{className:Ht.heading,children:M.jsx("span",{children:n??""})}),M.jsxs("div",{className:Ht.right,children:[M.jsx("div",{className:Ht.links,children:e}),M.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:M.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})}),M.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?M.jsx(ES,{}):M.jsx(CS,{})})]}),M.jsx("div",{className:Ht.hamburger,children:M.jsx("button",{onClick:s,style:{color:r==="light"?"currentColor":"#ffffff"},children:M.jsx(a4,{})})}),M.jsx(Z5,{title:M.jsx("span",{style:{color:r==="dark"?"#fff":"#000"},children:"Menu"}),placement:"right",closable:!0,onClose:s,open:o,width:"50%",className:r==="dark"?Ht.darkDrawer:"",style:{background:r==="dark"?"#192841":"#fff"},children:M.jsxs("div",{className:Ht.drawerContent,children:[M.jsx("ul",{className:Ht.drawerList,children:qe.Children.map(e,(l,u)=>M.jsx("li",{className:Ht.drawerListItem,children:l},u))}),M.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?M.jsx(ES,{}):M.jsx(CS,{})}),M.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:M.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})})]})})]})}const S4="_topBtn_1lydx_1",w4={topBtn:S4};function pP(){const[e,t]=w.useState(!1);w.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e&&M.jsx("button",{className:w4.topBtn,onClick:n,children:M.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[M.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),M.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function b4(){return M.jsxs(M.Fragment,{children:[M.jsxs(ag,{children:[M.jsx(hp,{to:"#whyUs",children:"Why us?"}),M.jsx(hp,{to:"#contributors",children:"Contributors"}),M.jsx(Fc,{to:"/leaderboard",children:"Leaderboard"})]}),M.jsxs("div",{className:Su.container,children:[M.jsx(FD,{}),M.jsx("hr",{className:Su.hr}),M.jsx(dD,{}),M.jsx("hr",{className:Su.hr}),M.jsx(lD,{}),M.jsx(mD,{}),M.jsx(pP,{})]})]})}const df=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["X0rD3v1L",{name:"Benarjee Sambangi",pic:"https://avatars.githubusercontent.com/u/46685302"}],["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["sahankatta",{name:"Sahan Katta",pic:"https://avatars.githubusercontent.com/u/65811236"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["christian-lee1398",{name:"Christian Lee",pic:"https://avatars.githubusercontent.com/u/83561483"}],["Sukomal07",{name:"Sukomal Dutta",pic:"https://avatars.githubusercontent.com/u/100500478"}],["5h0ov",{name:"Shuvadipta Das",pic:"https://avatars.githubusercontent.com/u/83227649"}],["shruti-sen2004",{name:"Shruti Sen",pic:"https://avatars.githubusercontent.com/u/115914670"}],["Kushal347",{name:"Kushal Agrawal",pic:"https://avatars.githubusercontent.com/u/115914670"}],["AbhineshJha",{name:"ABHINESH KUMAR JHA",pic:"https://avatars.githubusercontent.com/u/142514166"}],["hritik",{name:"Hritik Bhattacharya",pic:"https://avatars.githubusercontent.com/u/44370586"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["VishakhaSainani",{name:"Vishakha Sainani",pic:"https://avatars.githubusercontent.com/u/113436770"}],["shivam200446",{name:"Shivam",pic:"https://avatars.githubusercontent.com/u/127589548?s=96&v=4"}],["Vivek-GuptaXCode",{name:"Vivek Kumar Gupta",pic:"https://avatars.githubusercontent.com/u/145761266"}],["CrypticRevenger",{name:"Spandan Tripathy",pic:"https://avatars.githubusercontent.com/u/128175097"}],["AckermanLevi1",{name:"Aryan Bhargava",pic:"https://avatars.githubusercontent.com/u/114604529"}],["sujitmahapatra",{name:"Sujit Mahapatra",pic:"https://avatars.githubusercontent.com/u/127632703"}],["avtech",{name:"Ayush Varshney",pic:"https://avatars.githubusercontent.com/u/97428742"}],["pranav514",{name:"Pranav",pic:"https://avatars.githubusercontent.com/u/76992202"}],["Bratajit-03",{name:"Bratajit Das",pic:"https://avatars.githubusercontent.com/u/106532791"}],["DhanushNehru",{name:"Dhanush Nehru",pic:"https://avatars.githubusercontent.com/u/22955675"}],["itsayopapi",{name:"Ayomide Hassan",pic:"https://avatars.githubusercontent.com/u/111683116"}],["srijanB7",{name:"Srijan B7",pic:"https://avatars.githubusercontent.com/u/115921421"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}],["jeevaramanathan",{name:"Jeeva Ramanathan",pic:"https://avatars.githubusercontent.com/u/64531160"}],["AbhilashMadi",{name:"Abhilash",pic:"https://avatars.githubusercontent.com/u/109837171"}],["AnkitKTrivedi",{name:"Ankit Kumar Trivedi",pic:"https://avatars.githubusercontent.com/u/38967951"}],["jaydadhaniya",{name:"Jay Dadhaniya",pic:"https://avatars.githubusercontent.com/u/24772528"}],["pankajparkar",{name:"Pankaj Parkar",pic:"https://avatars.githubusercontent.com/u/5320044"}],["bhumikkalola",{name:"Bhumik Kalola",pic:"https://avatars.githubusercontent.com/u/147032346"}],["babandakale",{name:"Baban Dakale",pic:"https://avatars.githubusercontent.com/u/142794846"}],["Manmit Tiwade",{name:"Manmit Tiwade",pic:"https://avatars.githubusercontent.com/u/112580293"}],["liza",{name:"Liza",pic:"https://avatars.githubusercontent.com/u/78140921"}],["Shardik04",{name:"Hardik Shah",pic:"https://avatars.githubusercontent.com/u/11913104"}],["Vivek7038",{name:"Vivek Chavan",pic:"https://avatars.githubusercontent.com/u/95691809"}],["codechitra",{name:"Akash Deep Chitransh",pic:"https://avatars.githubusercontent.com/u/85569078"}],["takshch",{name:"Taksh Chanana",pic:"https://avatars.githubusercontent.com/u/26649558"}],["Syamsai-Polavarapu",{name:"Syamsai Polavarapu",pic:"https://avatars.githubusercontent.com/u/25497768"}],["Akshay-Omkar",{name:"Akshay Omkar",pic:"https://avatars.githubusercontent.com/u/62467248"}],["Bateusz",{name:"Mateusz",pic:"https://avatars.githubusercontent.com/u/55596139"}],["ssudipta",{name:"Sudipta Saha",pic:"https://avatars.githubusercontent.com/u/10368983"}],["Akshat-Gupta",{name:"Akshat Gupta",pic:"https://avatars.githubusercontent.com/u/53713926"}],["officialbidisha",{name:"Bidisha Das",pic:"https://avatars.githubusercontent.com/u/49115207"}],["amanraina1",{name:"Aman Raina",pic:"https://avatars.githubusercontent.com/u/140370468"}],["SujithGunasekaran",{name:"Sujith Gunasekaran",pic:"https://avatars.githubusercontent.com/u/68234378?s=96&v=4"}]]);var O=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(O||{}),q=(e=>(e.interview="interview",e.all="all",e))(q||{});const kS=[O.Easy,O.Medium,O.Hard];function nl(e){return new Map([...e.entries()].sort((t,n)=>{const r=kS.indexOf(t[1].difficulty),i=kS.indexOf(n[1].difficulty);return r-i}))}function x4(e,t){if(!t||t.length===0)return e;const n=t.map(i=>i.value);return e.filter(i=>n.includes(i.developer))}function C4(e,t){return!t||t.length===0?e:e.filter(r=>r==null?void 0:r.title.toLowerCase().includes(t.toLowerCase()))}function E4(e,t){if(!t||t.length===0)return e;const n=t.map(r=>r.value);return e.filter(r=>n.includes(r.difficulty))}function k4(e,t,n){return n?e:e.filter(r=>r.tags?t.some(i=>{var o;return(o=r.tags)==null?void 0:o.includes(i)}):!1)}function P4(e,t){return t?e.filter(({isNew:n})=>n):e}function T4({challenges:e,title:t,contributors:n,difficulties:r,tags:i,newChallenge:o}){const a=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==q.all;if((!t||t.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&a&&!o)return e;let s=C4(e,t);return s=x4(s,n),s=E4(s,r),s=k4(s,i,a),s=P4(s,o),s}function R4(){const e=sessionStorage.getItem("searchFilters");if(e){const t=JSON.parse(e);return{searchInput:t.searchInput||"",optionSelected:t.optionSelected||[],selectedDifficulties:t.selectedDifficulties||[],tag:t.tag||q.interview,selectedChallengesByTags:t.selectedChallengesByTags||[],newChallenge:t.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:q.interview,selectedChallengesByTags:[q.interview],newChallenge:!1}}const M4=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:O.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:O.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:O.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[q.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:O.Easy,developer:"officialbidisha",tags:[q.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:O.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:O.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[q.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:O.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:O.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:O.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:O.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:O.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),mP=nl(M4),O4=new Map([["counter",{title:"Counter",link:"counter/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[q.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:O.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:O.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:O.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:O.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[q.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:O.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:O.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[q.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:O.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:O.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:O.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:O.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:O.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:O.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:O.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:O.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:O.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:O.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:O.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:O.Medium,developer:"shruti-sen2004",tags:[q.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:O.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[q.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:O.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:O.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:O.Medium,developer:"srijanB7",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:O.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:O.Medium,developer:"Kei-K23",tags:[q.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:O.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:O.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:O.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:O.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:O.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:O.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:O.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}]]),vP=nl(O4),A4=new Map([["counter",{title:"Counter",link:"counter",difficulty:O.Easy,developer:"sadanandpai",tags:[q.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:O.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:O.Easy,developer:"Bhushan1019",tags:[q.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:O.Easy,tags:[q.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:O.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:O.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:O.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:O.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:O.Easy,developer:"deepakrajkranti",tags:[q.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:O.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:O.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:O.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:O.Easy,developer:"NikhilJHA01",tags:[q.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:O.Easy,developer:"rashidtvmr",tags:[q.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:O.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:O.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:O.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:O.Easy,developer:"codechitra",tags:[q.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:O.Medium,developer:"liza",tags:[q.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:O.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:O.Medium,developer:"rishabhm05",tags:[q.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:O.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:O.Medium,developer:"deepu0",tags:[q.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:O.Medium,developer:"rishabhm05",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:O.Medium,developer:"deepu0",tags:[q.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:O.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:O.Medium,developer:"deepakrajkranti",tags:[q.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:O.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:O.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:O.Medium,developer:"rashidtvmr",tags:[q.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:O.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:O.Medium,developer:"AbhilashMadi",tags:[q.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:O.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:O.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:O.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:O.Hard,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:O.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:O.Medium,developer:"DeePaK-HeeRaKaRi",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:O.Medium,developer:"ayush-dutt-sharma",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:O.Hard,developer:"rishabhm05",tags:[q.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:O.Hard,developer:"sadanandpai",tags:[q.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:O.Hard,developer:"deepu0",tags:[q.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:O.Hard,developer:"deepu0",tags:[q.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:O.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:O.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:O.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:O.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:O.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:O.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:O.Medium,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:O.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:O.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:O.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:O.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:O.Hard,developer:"SujithGunasekaran",tags:[q.interview]}]]),gP=nl(A4),F4=new Map([["counter",{title:"Counter",link:"/counter",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:O.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:O.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:O.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:O.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:O.Easy,developer:"arpansaha13",tags:[q.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:O.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:O.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:O.Medium,developer:"arpansaha13",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:O.Medium,developer:"jaydadhaniya",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:O.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:O.Medium,developer:"Shardik04",tags:[q.interview]}]]),yP=nl(F4),L4=new Map([["counter",{title:"Counter",link:"counter",difficulty:O.Easy,developer:"sadanandpai",tags:[q.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:O.Easy,developer:"pankajparkar",tags:[q.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:O.Easy,developer:"pankajparkar",tags:[q.interview]}],["stack",{title:"Stack",link:"stack",difficulty:O.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:O.Easy,developer:"pankajparkar",tags:[q.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:O.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),SP=nl(L4);function _4(e,t,n){t.forEach(r=>{const i=e.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):e.set(r.developer,{[n]:1,totalContributions:1})})}const I4=()=>{const e=new Map;new Map([["css",mP],["js",vP],["react",gP],["vue",yP],["angular",SP]]).forEach((i,o)=>{_4(e,i,o)});const n=new Map;e.forEach((i,o)=>{const a=df.get(o);a&&n.set(o,{name:a==null?void 0:a.name,pic:a==null?void 0:a.pic,contributions:i,numberOfContributions:i.totalContributions,developer:o})});const r=new Map(Array.from(n.entries()).sort((i,o)=>o[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(o[1].name)));return new Map([...r.entries()])},D4="_leaderboardTableWrapper_1flea_1",N4="_leaderboardTable_1flea_1",V4="_leaderBoardTableData_1flea_31",j4="_leaderBoardContributorImg_1flea_37",$4="_userProfileImg_1flea_38",B4="_leaderBoardContributorName_1flea_46",z4="_leaderBoardHeading_1flea_50",U4="_userProfileHeading_1flea_51",H4="_profileDetailsContainer_1flea_56",W4="_profileLink_1flea_60",K4="_fontWeightNormal_1flea_68",G4="_contributionTableCell_1flea_72",q4="_techStackDiv_1flea_76",X4="_techStackImg_1flea_83",Y4="_techStackDivWrapper_1flea_87",Q4="_totalContributions_1flea_101",J4="_leaderboardRowContainer_1flea_125",Z4="_index_1flea_131",e6="_name_1flea_139",t6="_contributions_1flea_146",mt={leaderboardTableWrapper:D4,leaderboardTable:N4,leaderBoardTableData:V4,leaderBoardContributorImg:j4,userProfileImg:$4,leaderBoardContributorName:B4,leaderBoardHeading:z4,userProfileHeading:U4,profileDetailsContainer:H4,profileLink:W4,fontWeightNormal:K4,contributionTableCell:G4,techStackDiv:q4,techStackImg:X4,techStackDivWrapper:Y4,totalContributions:Q4,leaderboardRowContainer:J4,index:Z4,name:e6,contributions:t6};function Nd(...e){return e.join(" ")}const n6=new Map([["css",Iv],["js",Nv],["react",Vv],["vue",jv],["angular",Dv]]),r6=I4(),i6=Array.from(r6.values()).map((e,t)=>M.jsxs("tr",{className:mt.leaderboardRowContainer,children:[M.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.index),children:t}),M.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.leaderBoardContributorNameTd,mt.name),children:M.jsxs("div",{className:mt.profileLink,children:[M.jsx("img",{className:mt.leaderBoardContributorImg,src:e.pic,alt:""}),M.jsx("span",{className:mt.leaderBoardContributorName,children:e.name})]})}),M.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.contributions),children:M.jsxs("div",{className:mt.contributionTableCell,children:[[...n6.entries()].map(([n,r])=>{const i=e.contributions[n];return i?M.jsx("div",{className:mt.techStackDiv,children:M.jsxs("div",{className:mt.techStackDivWrapper,children:[M.jsx("img",{src:r,className:mt.techStackImg}),M.jsx("div",{children:i})]})},n):null}),M.jsxs("div",{className:mt.totalContributions,children:[M.jsx("div",{children:"Total"}),M.jsx("div",{children:e.numberOfContributions})]})]})})]},e.name));function o6(){return M.jsx("div",{className:"container",children:M.jsx("div",{className:mt.leaderboardTableWrapper,children:M.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:mt.leaderboardTable,children:[M.jsx("thead",{children:M.jsxs("tr",{children:[M.jsx("td",{children:"#"}),M.jsx("td",{children:"Name"}),M.jsx("td",{children:"Contributions"})]})}),M.jsx("tbody",{children:i6})]})})})}function a6(){return M.jsxs(M.Fragment,{children:[M.jsx(ag,{subheading:"Leaderboard"}),M.jsx(o6,{})]})}const s6="_avatar_1jv0o_1",l6="_avatarGroup_1jv0o_11",wP={avatar:s6,avatarGroup:l6};function u6({src:e,alt:t}){return M.jsx("img",{src:e,alt:t,className:wP.avatar})}function c6({contributorNames:e}){return M.jsx("div",{className:wP.avatarGroup,children:e.map(t=>{var r;const n=(r=df.get(t))==null?void 0:r.pic;return n?M.jsx(u6,{src:n,alt:""},t):null}).filter(Boolean)})}const f6="_filterOptionWrapper_1d6a8_1",d6="_searchInputWrapper_1d6a8_9",h6="_searchInput_1d6a8_9",p6="_searchIcon_1d6a8_22",m6="_filterByTechWrapper_1d6a8_39",v6="_activeTech_1d6a8_61",g6="_emptyMessage_1d6a8_65",y6="_challengeGrid_1d6a8_76",S6="_challengeCard_1d6a8_83",w6="_avatarContainer_1d6a8_108",b6="_disabled_1d6a8_117",x6="_developer_1d6a8_131",C6="_name_1d6a8_144",E6="_difficultyBadge_1d6a8_147",k6="_ellips_1d6a8_157",P6="_Easy_1d6a8_164",T6="_Medium_1d6a8_167",R6="_Hard_1d6a8_170",M6="_checkboxContainer_1d6a8_174",O6="_checkbox_1d6a8_174",A6="_newTag_1d6a8_190",F6="_interviewBadge_1d6a8_204",ot={filterOptionWrapper:f6,searchInputWrapper:d6,searchInput:h6,searchIcon:p6,filterByTechWrapper:m6,activeTech:v6,emptyMessage:g6,challengeGrid:y6,challengeCard:S6,new:"_new_1d6a8_99",avatarContainer:w6,disabled:b6,developer:x6,name:C6,difficultyBadge:E6,ellips:k6,Easy:P6,Medium:T6,Hard:R6,checkboxContainer:M6,checkbox:O6,newTag:A6,interviewBadge:F6},L6=({link:e,contributor:t,challenge:n})=>M.jsxs("a",{className:`${ot.challengeCard} ${ot[n.difficulty]} ${n.isNew&&ot.new}`,href:e,children:[n.isNew&&M.jsx("div",{className:ot.newTag,children:"NEW"}),M.jsxs("div",{className:"flex-space-between",children:[M.jsx("div",{className:"flex-space-between",children:M.jsx("h3",{children:n.title})}),M.jsxs("div",{className:ot.difficultyBadge,children:[M.jsx("div",{className:ot.ellips}),n.difficulty]})]}),M.jsxs("div",{className:"flex-space-between",children:[M.jsxs("div",{className:"flex-space-between",children:[n.developer&&M.jsxs("div",{className:ot.developer,children:[M.jsx("img",{src:t==null?void 0:t.pic,alt:""}),M.jsx("span",{className:ot.name,children:t==null?void 0:t.name})]}),M.jsx("div",{children:n.contributors&&M.jsx(c6,{contributorNames:n.contributors})})]}),n.tags.find(r=>r==="interview")&&M.jsx("div",{className:ot.interviewBadge,children:"Interview"})]})]},n.title);var _6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,g=e.value,S=St(e,_6),p=w.useState(s!==void 0?s:n),m=oe(p,2),h=m[0],y=m[1],v=w.useState(l!==void 0?l:i),x=oe(v,2),E=x[0],b=x[1],C=w.useState(g!==void 0?g:a),k=oe(C,2),T=k[0],F=k[1],V=w.useCallback(function(P,N){typeof u=="function"&&u(P,N),F(P)},[u]),H=w.useCallback(function(P,N){var z;typeof c=="function"&&(z=c(P,N)),y(z!==void 0?z:P)},[c]),U=w.useCallback(function(){typeof d=="function"&&d(),b(!0)},[d]),Q=w.useCallback(function(){typeof f=="function"&&f(),b(!1)},[f]),W=s!==void 0?s:h,_=l!==void 0?l:E,L=g!==void 0?g:T;return I(I({},S),{},{inputValue:W,menuIsOpen:_,onChange:V,onInputChange:H,onMenuClose:Q,onMenuOpen:U,value:L})}function D6(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ic+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?bP(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Zn(e)-3-(~Cp(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Et(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Lt+e+e}return e}var W6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=bP(t.value,t.length);break;case rk:return Vi([Ma(t,{value:Pe(t.value,"@","@"+ke)})],i);case Yv:if(t.length)return FN(t.props,function(o){switch(AN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([Ma(t,{props:[Pe(o,/:(read-\w+)/,":"+ic+"$1")]})],i);case"::placeholder":return Vi([Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ke+"input-$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ic+"$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K6=[W6],G6=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||K6,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),h=1;h{a(!o)};return O.jsxs("nav",{className:Ht.navbar,children:[O.jsxs("a",{className:Ht.logo,href:"/frontend-mini-challenges/",children:[O.jsx("img",{src:r==="light"?vD:gD,alt:"logo"}),O.jsx("span",{children:t??"Frontend Mini Challenges"})]}),O.jsx("div",{className:Ht.heading,children:O.jsx("span",{children:n??""})}),O.jsxs("div",{className:Ht.right,children:[O.jsx("div",{className:Ht.links,children:e}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})})]}),O.jsx("div",{className:Ht.hamburger,children:O.jsx("button",{onClick:s,style:{color:r==="light"?"currentColor":"#ffffff"},children:O.jsx(a4,{})})}),O.jsx(Z5,{title:O.jsx("span",{style:{color:r==="dark"?"#fff":"#000"},children:"Menu"}),placement:"right",closable:!0,onClose:s,open:o,width:"50%",className:r==="dark"?Ht.darkDrawer:"",style:{background:r==="dark"?"#192841":"#fff"},children:O.jsxs("div",{className:Ht.drawerContent,children:[O.jsx("ul",{className:Ht.drawerList,children:qe.Children.map(e,(l,u)=>O.jsx("li",{className:Ht.drawerListItem,children:l},u))}),O.jsx("button",{className:Ht.themeButton,onClick:i,children:r==="light"?O.jsx(ES,{}):O.jsx(CS,{})}),O.jsx("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/",target:"blank",className:Ht.github,children:O.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:O.jsx("path",{fill:"currentColor",d:"M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33c.85 0 1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2Z"})})})]})})]})}const S4="_topBtn_1lydx_1",w4={topBtn:S4};function pP(){const[e,t]=w.useState(!1);w.useEffect(()=>{window.addEventListener("scroll",()=>{window.scrollY>100?t(!0):t(!1)})},[]);const n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return e&&O.jsx("button",{className:w4.topBtn,onClick:n,children:O.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",className:"bi bi-chevron-double-up",viewBox:"0 0 16 16",children:[O.jsx("path",{fillRule:"evenodd",d:"M7.646 2.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 3.707 2.354 9.354a.5.5 0 1 1-.708-.708l6-6z"}),O.jsx("path",{fillRule:"evenodd",d:"M7.646 6.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 7.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"})]})})}function b4(){return O.jsxs(O.Fragment,{children:[O.jsxs(ag,{children:[O.jsx(hp,{to:"#whyUs",children:"Why us?"}),O.jsx(hp,{to:"#contributors",children:"Contributors"}),O.jsx(Fc,{to:"/leaderboard",children:"Leaderboard"})]}),O.jsxs("div",{className:Su.container,children:[O.jsx(FD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(dD,{}),O.jsx("hr",{className:Su.hr}),O.jsx(lD,{}),O.jsx(mD,{}),O.jsx(pP,{})]})]})}const df=new Map([["DeePaK-HeeRaKaRi",{name:"Deepak Heerakari",pic:"https://avatars.githubusercontent.com/u/63955160"}],["X0rD3v1L",{name:"Benarjee Sambangi",pic:"https://avatars.githubusercontent.com/u/46685302"}],["sadanandpai",{name:"Sadanand Pai",pic:"https://avatars.githubusercontent.com/u/12962887"}],["arpansaha13",{name:"Arpan Saha",pic:"https://avatars.githubusercontent.com/u/82361490"}],["noorulaink00",{name:"Noor Ul Ain Khan",pic:"https://avatars.githubusercontent.com/u/65324193"}],["sahankatta",{name:"Sahan Katta",pic:"https://avatars.githubusercontent.com/u/65811236"}],["rashidtvmr",{name:"Rashid",pic:"https://avatars.githubusercontent.com/u/58169715"}],["gauravsinhaweb",{name:"Gaurav Sinha",pic:"https://avatars.githubusercontent.com/u/75125943"}],["Kei-K23",{name:"Kei-K",pic:"https://avatars.githubusercontent.com/u/134714087"}],["caesar003",{name:"Khaisar Muksid",pic:"https://avatars.githubusercontent.com/u/37962465"}],["christian-lee1398",{name:"Christian Lee",pic:"https://avatars.githubusercontent.com/u/83561483"}],["Sukomal07",{name:"Sukomal Dutta",pic:"https://avatars.githubusercontent.com/u/100500478"}],["5h0ov",{name:"Shuvadipta Das",pic:"https://avatars.githubusercontent.com/u/83227649"}],["shruti-sen2004",{name:"Shruti Sen",pic:"https://avatars.githubusercontent.com/u/115914670"}],["Kushal347",{name:"Kushal Agrawal",pic:"https://avatars.githubusercontent.com/u/115914670"}],["AbhineshJha",{name:"ABHINESH KUMAR JHA",pic:"https://avatars.githubusercontent.com/u/142514166"}],["hritik",{name:"Hritik Bhattacharya",pic:"https://avatars.githubusercontent.com/u/44370586"}],["viditagrawal56",{name:"Vidit Agrawal",pic:"https://avatars.githubusercontent.com/u/52532308"}],["VishakhaSainani",{name:"Vishakha Sainani",pic:"https://avatars.githubusercontent.com/u/113436770"}],["shivam200446",{name:"Shivam",pic:"https://avatars.githubusercontent.com/u/127589548?s=96&v=4"}],["Vivek-GuptaXCode",{name:"Vivek Kumar Gupta",pic:"https://avatars.githubusercontent.com/u/145761266"}],["CrypticRevenger",{name:"Spandan Tripathy",pic:"https://avatars.githubusercontent.com/u/128175097"}],["AckermanLevi1",{name:"Aryan Bhargava",pic:"https://avatars.githubusercontent.com/u/114604529"}],["sujitmahapatra",{name:"Sujit Mahapatra",pic:"https://avatars.githubusercontent.com/u/127632703"}],["avtech",{name:"Ayush Varshney",pic:"https://avatars.githubusercontent.com/u/97428742"}],["pranav514",{name:"Pranav",pic:"https://avatars.githubusercontent.com/u/76992202"}],["Bratajit-03",{name:"Bratajit Das",pic:"https://avatars.githubusercontent.com/u/106532791"}],["DhanushNehru",{name:"Dhanush Nehru",pic:"https://avatars.githubusercontent.com/u/22955675"}],["itsayopapi",{name:"Ayomide Hassan",pic:"https://avatars.githubusercontent.com/u/111683116"}],["srijanB7",{name:"Srijan B7",pic:"https://avatars.githubusercontent.com/u/115921421"}],["AdityaSuryawanshi",{name:"Aditya Suryawanshi",pic:"https://avatars.githubusercontent.com/u/124609794"}],["NikhilJHA01",{name:"Nikhil Jha",pic:"https://avatars.githubusercontent.com/u/63518046"}],["deepu0",{name:"Deepak Kumar",pic:"https://avatars.githubusercontent.com/u/22304384"}],["deepakRikhav",{name:"Deepak Rikhav",pic:"https://avatars.githubusercontent.com/u/97227284"}],["deepakrajkranti",{name:"Deepak Raj",pic:"https://avatars.githubusercontent.com/u/88797436"}],["insharahAyyubi",{name:"Insharah Ayyubi",pic:"https://avatars.githubusercontent.com/u/103804673"}],["ayush-dutt-sharma",{name:"Ayush Dutt Sharma",pic:"https://avatars.githubusercontent.com/u/73738613"}],["dhanu084",{name:"Dhanush Kiran",pic:"https://avatars.githubusercontent.com/u/54932658"}],["kumaratul60",{name:"Atul Kumar Awasthi",pic:"https://avatars.githubusercontent.com/u/53579888"}],["ravi02205",{name:"Ravi Kumar Panchal",pic:"https://avatars.githubusercontent.com/u/81222901"}],["harsh472000",{name:"Harsh Meghani",pic:"https://avatars.githubusercontent.com/u/55913938"}],["Pancratzia",{name:"Laura Ortega",pic:"https://avatars.githubusercontent.com/u/54899954"}],["ashikjhonson",{name:"Ashik Jhonson",pic:"https://avatars.githubusercontent.com/u/97791612"}],["Krishnakalani111",{name:"Krishna Kalani",pic:"https://avatars.githubusercontent.com/u/88764668"}],["Bhushan1019",{name:"Bhushan Patil",pic:"https://avatars.githubusercontent.com/u/121352274"}],["Sumitwarrior7",{name:"Cool Dude 69",pic:"https://avatars.githubusercontent.com/u/108853577"}],["rishabhm05",{name:"Rishabh Mehta",pic:"https://avatars.githubusercontent.com/u/67910259"}],["jeevaramanathan",{name:"Jeeva Ramanathan",pic:"https://avatars.githubusercontent.com/u/64531160"}],["AbhilashMadi",{name:"Abhilash",pic:"https://avatars.githubusercontent.com/u/109837171"}],["AnkitKTrivedi",{name:"Ankit Kumar Trivedi",pic:"https://avatars.githubusercontent.com/u/38967951"}],["jaydadhaniya",{name:"Jay Dadhaniya",pic:"https://avatars.githubusercontent.com/u/24772528"}],["pankajparkar",{name:"Pankaj Parkar",pic:"https://avatars.githubusercontent.com/u/5320044"}],["bhumikkalola",{name:"Bhumik Kalola",pic:"https://avatars.githubusercontent.com/u/147032346"}],["babandakale",{name:"Baban Dakale",pic:"https://avatars.githubusercontent.com/u/142794846"}],["Manmit Tiwade",{name:"Manmit Tiwade",pic:"https://avatars.githubusercontent.com/u/112580293"}],["liza",{name:"Liza",pic:"https://avatars.githubusercontent.com/u/78140921"}],["Shardik04",{name:"Hardik Shah",pic:"https://avatars.githubusercontent.com/u/11913104"}],["Vivek7038",{name:"Vivek Chavan",pic:"https://avatars.githubusercontent.com/u/95691809"}],["codechitra",{name:"Akash Deep Chitransh",pic:"https://avatars.githubusercontent.com/u/85569078"}],["takshch",{name:"Taksh Chanana",pic:"https://avatars.githubusercontent.com/u/26649558"}],["Syamsai-Polavarapu",{name:"Syamsai Polavarapu",pic:"https://avatars.githubusercontent.com/u/25497768"}],["Akshay-Omkar",{name:"Akshay Omkar",pic:"https://avatars.githubusercontent.com/u/62467248"}],["Bateusz",{name:"Mateusz",pic:"https://avatars.githubusercontent.com/u/55596139"}],["ssudipta",{name:"Sudipta Saha",pic:"https://avatars.githubusercontent.com/u/10368983"}],["Akshat-Gupta",{name:"Akshat Gupta",pic:"https://avatars.githubusercontent.com/u/53713926"}],["officialbidisha",{name:"Bidisha Das",pic:"https://avatars.githubusercontent.com/u/49115207"}],["amanraina1",{name:"Aman Raina",pic:"https://avatars.githubusercontent.com/u/140370468"}],["SujithGunasekaran",{name:"Sujith Gunasekaran",pic:"https://avatars.githubusercontent.com/u/68234378?s=96&v=4"}]]);var M=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(M||{}),q=(e=>(e.interview="interview",e.all="all",e))(q||{});const kS=[M.Easy,M.Medium,M.Hard];function nl(e){return new Map([...e.entries()].sort((t,n)=>{const r=kS.indexOf(t[1].difficulty),i=kS.indexOf(n[1].difficulty);return r-i}))}function x4(e,t){if(!t||t.length===0)return e;const n=t.map(i=>i.value);return e.filter(i=>n.includes(i.developer))}function C4(e,t){return!t||t.length===0?e:e.filter(r=>r==null?void 0:r.title.toLowerCase().includes(t.toLowerCase()))}function E4(e,t){if(!t||t.length===0)return e;const n=t.map(r=>r.value);return e.filter(r=>n.includes(r.difficulty))}function k4(e,t,n){return n?e:e.filter(r=>r.tags?t.some(i=>{var o;return(o=r.tags)==null?void 0:o.includes(i)}):!1)}function P4(e,t){return t?e.filter(({isNew:n})=>n):e}function T4({challenges:e,title:t,contributors:n,difficulties:r,tags:i,newChallenge:o}){const a=!i||i.length===0||(i==null?void 0:i.length)==1&&i[0]==q.all;if((!t||t.length===0)&&(!n||n.length===0)&&(!r||r.length===0)&&a&&!o)return e;let s=C4(e,t);return s=x4(s,n),s=E4(s,r),s=k4(s,i,a),s=P4(s,o),s}function R4(){const e=sessionStorage.getItem("searchFilters");if(e){const t=JSON.parse(e);return{searchInput:t.searchInput||"",optionSelected:t.optionSelected||[],selectedDifficulties:t.selectedDifficulties||[],tag:t.tag||q.interview,selectedChallengesByTags:t.selectedChallengesByTags||[],newChallenge:t.newChallenge||!1}}return{searchInput:"",optionSelected:[],selectedDifficulties:[],tag:q.interview,selectedChallengesByTags:[q.interview],newChallenge:!1}}const M4=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:M.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:M.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[q.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:M.Easy,developer:"officialbidisha",tags:[q.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:M.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:M.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[q.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:M.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:M.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:M.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:M.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),mP=nl(M4),O4=new Map([["counter",{title:"Counter",link:"counter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[q.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:M.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:M.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:M.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:M.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[q.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:M.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:M.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[q.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:M.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:M.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:M.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:M.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:M.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:M.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:M.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:M.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:M.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:M.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:M.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:M.Medium,developer:"shruti-sen2004",tags:[q.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:M.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[q.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:M.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:M.Medium,developer:"srijanB7",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:M.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:M.Medium,developer:"Kei-K23",tags:[q.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:M.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:M.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:M.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:M.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:M.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:M.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}]]),vP=nl(O4),A4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:M.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:M.Easy,developer:"Bhushan1019",tags:[q.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:M.Easy,tags:[q.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:M.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:M.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:M.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:M.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:M.Easy,developer:"deepakrajkranti",tags:[q.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:M.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:M.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:M.Easy,developer:"NikhilJHA01",tags:[q.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"rashidtvmr",tags:[q.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:M.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:M.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:M.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:M.Easy,developer:"codechitra",tags:[q.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:M.Medium,developer:"liza",tags:[q.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:M.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:M.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:M.Medium,developer:"rishabhm05",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:M.Medium,developer:"deepu0",tags:[q.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:M.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:M.Medium,developer:"deepakrajkranti",tags:[q.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:M.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:M.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:M.Medium,developer:"rashidtvmr",tags:[q.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:M.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:M.Medium,developer:"AbhilashMadi",tags:[q.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:M.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:M.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:M.Hard,developer:"SujithGunasekaran",tags:[q.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:M.Hard,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:M.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:M.Medium,developer:"DeePaK-HeeRaKaRi",tags:[q.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:M.Medium,developer:"ayush-dutt-sharma",tags:[q.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:M.Hard,developer:"rishabhm05",tags:[q.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:M.Hard,developer:"deepu0",tags:[q.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:M.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:M.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:M.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:M.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:M.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:M.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[q.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:M.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:M.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:M.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:M.Hard,developer:"sadanandpai",tags:[q.interview],isNew:!0}]]),gP=nl(A4),F4=new Map([["counter",{title:"Counter",link:"/counter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:M.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:M.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:M.Easy,developer:"arpansaha13",tags:[q.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:M.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:M.Medium,developer:"sadanandpai",tags:[q.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:M.Medium,developer:"arpansaha13",tags:[q.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:M.Medium,developer:"jaydadhaniya",tags:[q.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:M.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:M.Medium,developer:"Shardik04",tags:[q.interview]}]]),yP=nl(F4),L4=new Map([["counter",{title:"Counter",link:"counter",difficulty:M.Easy,developer:"sadanandpai",tags:[q.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview]}],["stack",{title:"Stack",link:"stack",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:M.Easy,developer:"pankajparkar",tags:[q.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:M.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]),SP=nl(L4);function _4(e,t,n){t.forEach(r=>{const i=e.get(r.developer);i?(i[n]=(i[n]??0)+1,i.totalContributions+=1):e.set(r.developer,{[n]:1,totalContributions:1})})}const I4=()=>{const e=new Map;new Map([["css",mP],["js",vP],["react",gP],["vue",yP],["angular",SP]]).forEach((i,o)=>{_4(e,i,o)});const n=new Map;e.forEach((i,o)=>{const a=df.get(o);a&&n.set(o,{name:a==null?void 0:a.name,pic:a==null?void 0:a.pic,contributions:i,numberOfContributions:i.totalContributions,developer:o})});const r=new Map(Array.from(n.entries()).sort((i,o)=>o[1].numberOfContributions-i[1].numberOfContributions||i[1].name.localeCompare(o[1].name)));return new Map([...r.entries()])},D4="_leaderboardTableWrapper_1flea_1",N4="_leaderboardTable_1flea_1",V4="_leaderBoardTableData_1flea_31",j4="_leaderBoardContributorImg_1flea_37",$4="_userProfileImg_1flea_38",B4="_leaderBoardContributorName_1flea_46",z4="_leaderBoardHeading_1flea_50",U4="_userProfileHeading_1flea_51",H4="_profileDetailsContainer_1flea_56",W4="_profileLink_1flea_60",K4="_fontWeightNormal_1flea_68",G4="_contributionTableCell_1flea_72",q4="_techStackDiv_1flea_76",X4="_techStackImg_1flea_83",Y4="_techStackDivWrapper_1flea_87",Q4="_totalContributions_1flea_101",J4="_leaderboardRowContainer_1flea_125",Z4="_index_1flea_131",e6="_name_1flea_139",t6="_contributions_1flea_146",mt={leaderboardTableWrapper:D4,leaderboardTable:N4,leaderBoardTableData:V4,leaderBoardContributorImg:j4,userProfileImg:$4,leaderBoardContributorName:B4,leaderBoardHeading:z4,userProfileHeading:U4,profileDetailsContainer:H4,profileLink:W4,fontWeightNormal:K4,contributionTableCell:G4,techStackDiv:q4,techStackImg:X4,techStackDivWrapper:Y4,totalContributions:Q4,leaderboardRowContainer:J4,index:Z4,name:e6,contributions:t6};function Nd(...e){return e.join(" ")}const n6=new Map([["css",Iv],["js",Nv],["react",Vv],["vue",jv],["angular",Dv]]),r6=I4(),i6=Array.from(r6.values()).map((e,t)=>O.jsxs("tr",{className:mt.leaderboardRowContainer,children:[O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.index),children:t}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.leaderBoardContributorNameTd,mt.name),children:O.jsxs("div",{className:mt.profileLink,children:[O.jsx("img",{className:mt.leaderBoardContributorImg,src:e.pic,alt:""}),O.jsx("span",{className:mt.leaderBoardContributorName,children:e.name})]})}),O.jsx("td",{className:Nd(mt.leaderBoardTableData,mt.contributions),children:O.jsxs("div",{className:mt.contributionTableCell,children:[[...n6.entries()].map(([n,r])=>{const i=e.contributions[n];return i?O.jsx("div",{className:mt.techStackDiv,children:O.jsxs("div",{className:mt.techStackDivWrapper,children:[O.jsx("img",{src:r,className:mt.techStackImg}),O.jsx("div",{children:i})]})},n):null}),O.jsxs("div",{className:mt.totalContributions,children:[O.jsx("div",{children:"Total"}),O.jsx("div",{children:e.numberOfContributions})]})]})})]},e.name));function o6(){return O.jsx("div",{className:"container",children:O.jsx("div",{className:mt.leaderboardTableWrapper,children:O.jsxs("table",{border:1,cellSpacing:0,cellPadding:10,style:{textAlign:"center"},className:mt.leaderboardTable,children:[O.jsx("thead",{children:O.jsxs("tr",{children:[O.jsx("td",{children:"#"}),O.jsx("td",{children:"Name"}),O.jsx("td",{children:"Contributions"})]})}),O.jsx("tbody",{children:i6})]})})})}function a6(){return O.jsxs(O.Fragment,{children:[O.jsx(ag,{subheading:"Leaderboard"}),O.jsx(o6,{})]})}const s6="_avatar_1jv0o_1",l6="_avatarGroup_1jv0o_11",wP={avatar:s6,avatarGroup:l6};function u6({src:e,alt:t}){return O.jsx("img",{src:e,alt:t,className:wP.avatar})}function c6({contributorNames:e}){return O.jsx("div",{className:wP.avatarGroup,children:e.map(t=>{var r;const n=(r=df.get(t))==null?void 0:r.pic;return n?O.jsx(u6,{src:n,alt:""},t):null}).filter(Boolean)})}const f6="_filterOptionWrapper_1d6a8_1",d6="_searchInputWrapper_1d6a8_9",h6="_searchInput_1d6a8_9",p6="_searchIcon_1d6a8_22",m6="_filterByTechWrapper_1d6a8_39",v6="_activeTech_1d6a8_61",g6="_emptyMessage_1d6a8_65",y6="_challengeGrid_1d6a8_76",S6="_challengeCard_1d6a8_83",w6="_avatarContainer_1d6a8_108",b6="_disabled_1d6a8_117",x6="_developer_1d6a8_131",C6="_name_1d6a8_144",E6="_difficultyBadge_1d6a8_147",k6="_ellips_1d6a8_157",P6="_Easy_1d6a8_164",T6="_Medium_1d6a8_167",R6="_Hard_1d6a8_170",M6="_checkboxContainer_1d6a8_174",O6="_checkbox_1d6a8_174",A6="_newTag_1d6a8_190",F6="_interviewBadge_1d6a8_204",ot={filterOptionWrapper:f6,searchInputWrapper:d6,searchInput:h6,searchIcon:p6,filterByTechWrapper:m6,activeTech:v6,emptyMessage:g6,challengeGrid:y6,challengeCard:S6,new:"_new_1d6a8_99",avatarContainer:w6,disabled:b6,developer:x6,name:C6,difficultyBadge:E6,ellips:k6,Easy:P6,Medium:T6,Hard:R6,checkboxContainer:M6,checkbox:O6,newTag:A6,interviewBadge:F6},L6=({link:e,contributor:t,challenge:n})=>O.jsxs("a",{className:`${ot.challengeCard} ${ot[n.difficulty]} ${n.isNew&&ot.new}`,href:e,children:[n.isNew&&O.jsx("div",{className:ot.newTag,children:"NEW"}),O.jsxs("div",{className:"flex-space-between",children:[O.jsx("div",{className:"flex-space-between",children:O.jsx("h3",{children:n.title})}),O.jsxs("div",{className:ot.difficultyBadge,children:[O.jsx("div",{className:ot.ellips}),n.difficulty]})]}),O.jsxs("div",{className:"flex-space-between",children:[O.jsxs("div",{className:"flex-space-between",children:[n.developer&&O.jsxs("div",{className:ot.developer,children:[O.jsx("img",{src:t==null?void 0:t.pic,alt:""}),O.jsx("span",{className:ot.name,children:t==null?void 0:t.name})]}),O.jsx("div",{children:n.contributors&&O.jsx(c6,{contributorNames:n.contributors})})]}),n.tags.find(r=>r==="interview")&&O.jsx("div",{className:ot.interviewBadge,children:"Interview"})]})]},n.title);var _6=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function I6(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,o=e.defaultValue,a=o===void 0?null:o,s=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,g=e.value,S=St(e,_6),p=w.useState(s!==void 0?s:n),m=oe(p,2),h=m[0],y=m[1],v=w.useState(l!==void 0?l:i),x=oe(v,2),E=x[0],b=x[1],C=w.useState(g!==void 0?g:a),k=oe(C,2),T=k[0],F=k[1],V=w.useCallback(function(P,N){typeof u=="function"&&u(P,N),F(P)},[u]),H=w.useCallback(function(P,N){var z;typeof c=="function"&&(z=c(P,N)),y(z!==void 0?z:P)},[c]),U=w.useCallback(function(){typeof d=="function"&&d(),b(!0)},[d]),Q=w.useCallback(function(){typeof f=="function"&&f(),b(!1)},[f]),W=s!==void 0?s:h,_=l!==void 0?l:E,L=g!==void 0?g:T;return I(I({},S),{},{inputValue:W,menuIsOpen:_,onChange:V,onInputChange:H,onMenuClose:Q,onMenuOpen:U,value:L})}function D6(e){if(e.sheet)return e.sheet;for(var t=0;t6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+ke+"$2-$3$1"+ic+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Cp(e,"stretch")?bP(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Zn(e)-3-(~Cp(e,"!important")&&10))){case 107:return Pe(e,":",":"+ke)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ke+(Et(e,14)===45?"inline-":"")+"box$3$1"+ke+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ke+e+Lt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ke+e+Lt+e+e}return e}var W6=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Qv:t.return=bP(t.value,t.length);break;case rk:return Vi([Ma(t,{value:Pe(t.value,"@","@"+ke)})],i);case Yv:if(t.length)return FN(t.props,function(o){switch(AN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vi([Ma(t,{props:[Pe(o,/:(read-\w+)/,":"+ic+"$1")]})],i);case"::placeholder":return Vi([Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ke+"input-$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,":"+ic+"$1")]}),Ma(t,{props:[Pe(o,/:(plac\w+)/,Lt+"input-$1")]})],i)}return""})}},K6=[W6],G6=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||K6,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var m=p.getAttribute("data-emotion").split(" "),h=1;h=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var a$={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},s$=/[A-Z]|^ms/g,l$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,TP=function(t){return t.charCodeAt(1)===45},TS=function(t){return t!=null&&typeof t!="boolean"},Vd=j6(function(e){return TP(e)?e:e.replace(s$,"-$&").toLowerCase()}),RS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(l$,function(r,i,o){return er={name:i,styles:o,next:er},i})}return a$[t]!==1&&!TP(t)&&typeof n=="number"&&n!==0?n+"px":n};function Is(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return er={name:n.name,styles:n.styles,next:er},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)er={name:r.name,styles:r.styles,next:er},r=r.next;var i=n.styles+";";return i}return u$(e,t,n)}case"function":{if(e!==void 0){var o=er,a=n(e);return er=o,Is(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function u$(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i({x:e,y:e});function C$(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function OP(e){return FP(e)?(e.nodeName||"").toLowerCase():"#document"}function Hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function AP(e){var t;return(t=(FP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function FP(e){return e instanceof Node||e instanceof Hn(e).Node}function Jp(e){return e instanceof Element||e instanceof Hn(e).Element}function dg(e){return e instanceof HTMLElement||e instanceof Hn(e).HTMLElement}function OS(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Hn(e).ShadowRoot}function LP(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=hg(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function E$(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function k$(e){return["html","body","#document"].includes(OP(e))}function hg(e){return Hn(e).getComputedStyle(e)}function P$(e){if(OP(e)==="html")return e;const t=e.assignedSlot||e.parentNode||OS(e)&&e.host||AP(e);return OS(t)?t.host:t}function _P(e){const t=P$(e);return k$(t)?e.ownerDocument?e.ownerDocument.body:e.body:dg(t)&&LP(t)?t:_P(t)}function uc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_P(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Hn(i);return o?t.concat(a,a.visualViewport||[],LP(i)?i:[],a.frameElement&&n?uc(a.frameElement):[]):t.concat(i,uc(i,[],n))}function T$(e){const t=hg(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=dg(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=sc(n)!==o||sc(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function pg(e){return Jp(e)?e:e.contextElement}function jd(e){const t=pg(e);if(!dg(t))return lc(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=T$(t);let a=(o?sc(n.width):n.width)/r,s=(o?sc(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const R$=lc(0);function M$(e){const t=Hn(e);return!E$()||!t.visualViewport?R$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function O$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Hn(e)?!1:t}function AS(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=pg(e);let a=lc(1);t&&(r?Jp(r)&&(a=jd(r)):a=jd(e));const s=O$(o,n,r)?M$(o):lc(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,f=i.height/a.y;if(o){const d=Hn(o),g=r&&Jp(r)?Hn(r):r;let S=d.frameElement;for(;S&&r&&g!==d;){const p=jd(S),m=S.getBoundingClientRect(),h=hg(S),y=m.left+(S.clientLeft+parseFloat(h.paddingLeft))*p.x,v=m.top+(S.clientTop+parseFloat(h.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=y,u+=v,S=Hn(S).frameElement}}return C$({width:c,height:f,x:l,y:u})}function A$(e,t){let n=null,r;const i=AP(e);function o(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(s||t(),!f||!d)return;const g=zl(c),S=zl(i.clientWidth-(u+f)),p=zl(i.clientHeight-(c+d)),m=zl(u),y={rootMargin:-g+"px "+-S+"px "+-p+"px "+-m+"px",threshold:x$(0,b$(1,l))||1};let v=!0;function x(E){const b=E[0].intersectionRatio;if(b!==l){if(!v)return a();b?a(!1,b):r=setTimeout(()=>{a(!1,1e-7)},100)}v=!1}try{n=new IntersectionObserver(x,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(x,y)}n.observe(e)}return a(!0),o}function F$(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=pg(e),c=i||o?[...u?uc(u):[],...uc(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=u&&s?A$(u,n):null;let d=-1,g=null;a&&(g=new ResizeObserver(h=>{let[y]=h;y&&y.target===u&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{g&&g.observe(t)})),n()}),u&&!l&&g.observe(u),g.observe(t));let S,p=l?AS(e):null;l&&m();function m(){const h=AS(e);p&&(h.x!==p.x||h.y!==p.y||h.width!==p.width||h.height!==p.height)&&n(),p=h,S=requestAnimationFrame(m)}return n(),()=>{c.forEach(h=>{i&&h.removeEventListener("scroll",n),o&&h.removeEventListener("resize",n)}),f&&f(),g&&g.disconnect(),g=null,l&&cancelAnimationFrame(S)}}var Zp=w.useLayoutEffect,L$=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],cc=function(){};function _$(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function I$(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function D$(e){return Cf(e)?window.innerHeight:e.clientHeight}function DP(e){return Cf(e)?window.pageYOffset:e.scrollTop}function fc(e,t){if(Cf(e)){window.scrollTo(0,t);return}e.scrollTop=t}function N$(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function V$(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Ul(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cc,i=DP(e),o=t-i,a=10,s=0;function l(){s+=a;var u=V$(s,i,o,n);fc(e,u),sn.bottom?fc(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=S)return{placement:"bottom",maxHeight:t};if(T>=S&&!a)return o&&Ul(l,F,H),{placement:"bottom",maxHeight:t};if(!a&&T>=r||a&&C>=r){o&&Ul(l,F,H);var U=a?C-x:T-x;return{placement:"bottom",maxHeight:U}}if(i==="auto"||a){var Q=t,W=a?b:k;return W>=r&&(Q=Math.min(W-x-s,t)),{placement:"top",maxHeight:Q}}if(i==="bottom")return o&&fc(l,F),{placement:"bottom",maxHeight:t};break;case"top":if(b>=S)return{placement:"top",maxHeight:t};if(k>=S&&!a)return o&&Ul(l,V,H),{placement:"top",maxHeight:t};if(!a&&k>=r||a&&b>=r){var _=t;return(!a&&k>=r||a&&b>=r)&&(_=a?b-E:k-E),o&&Ul(l,V,H),{placement:"top",maxHeight:_}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function X$(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var VP=function(t){return t==="auto"?"bottom":t},Y$=function(t,n){var r,i=t.placement,o=t.theme,a=o.borderRadius,s=o.spacing,l=o.colors;return I((r={label:"menu"},j(r,X$(i),"100%"),j(r,"position","absolute"),j(r,"width","100%"),j(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},jP=w.createContext(null),Q$=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,o=t.menuPlacement,a=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,u=w.useContext(jP)||{},c=u.setPortalPlacement,f=w.useRef(null),d=w.useState(i),g=oe(d,2),S=g[0],p=g[1],m=w.useState(null),h=oe(m,2),y=h[0],v=h[1],x=l.spacing.controlHeight;return Zp(function(){var E=f.current;if(E){var b=a==="fixed",C=s&&!b,k=q$({maxHeight:i,menuEl:E,minHeight:r,placement:o,shouldScroll:C,isFixedPosition:b,controlHeight:x});p(k.maxHeight),v(k.placement),c==null||c(k.placement)}},[i,o,a,s,r,c,x]),n({ref:f,placerProps:I(I({},t),{},{placement:y||VP(o),maxHeight:S})})},J$=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return se("div",ee({},Xe(t,"menu",{menu:!0}),{ref:r},i),n)},Z$=J$,eB=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return I({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},tB=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,o=t.isMulti;return se("div",ee({},Xe(t,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:i},r),n)},$P=function(t,n){var r=t.theme,i=r.spacing.baseUnit,o=r.colors;return I({textAlign:"center"},n?{}:{color:o.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},nB=$P,rB=$P,iB=function(t){var n=t.children,r=n===void 0?"No options":n,i=t.innerProps,o=St(t,K$);return se("div",ee({},Xe(I(I({},o),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},oB=function(t){var n=t.children,r=n===void 0?"Loading...":n,i=t.innerProps,o=St(t,G$);return se("div",ee({},Xe(I(I({},o),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},aB=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},sB=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,o=t.innerProps,a=t.menuPlacement,s=t.menuPosition,l=w.useRef(null),u=w.useRef(null),c=w.useState(VP(a)),f=oe(c,2),d=f[0],g=f[1],S=w.useMemo(function(){return{setPortalPlacement:g}},[]),p=w.useState(null),m=oe(p,2),h=m[0],y=m[1],v=w.useCallback(function(){if(i){var C=j$(i),k=s==="fixed"?0:window.pageYOffset,T=C[d]+k;(T!==(h==null?void 0:h.offset)||C.left!==(h==null?void 0:h.rect.left)||C.width!==(h==null?void 0:h.rect.width))&&y({offset:T,rect:C})}},[i,s,d,h==null?void 0:h.offset,h==null?void 0:h.rect.left,h==null?void 0:h.rect.width]);Zp(function(){v()},[v]);var x=w.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=F$(i,l.current,v,{elementResize:"ResizeObserver"in window}))},[i,v]);Zp(function(){x()},[x]);var E=w.useCallback(function(C){l.current=C,x()},[x]);if(!n&&s!=="fixed"||!h)return null;var b=se("div",ee({ref:E},Xe(I(I({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),r);return se(jP.Provider,{value:S},n?Bs.createPortal(b,n):b)},lB=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},uB=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,o=t.isRtl;return se("div",ee({},Xe(t,"container",{"--is-disabled":i,"--is-rtl":o}),r),n)},cB=function(t,n){var r=t.theme.spacing,i=t.isMulti,o=t.hasValue,a=t.selectProps.controlShouldRenderValue;return I({alignItems:"center",display:i&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},fB=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,o=t.hasValue;return se("div",ee({},Xe(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":o}),r),n)},dB=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},hB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"indicatorsContainer",{indicators:!0}),r),n)},IS,pB=["size"],mB=["innerProps","isRtl","size"],vB={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},BP=function(t){var n=t.size,r=St(t,pB);return se("svg",ee({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:vB},r))},mg=function(t){return se(BP,ee({size:20},t),se("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},zP=function(t){return se(BP,ee({size:20},t),se("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},UP=function(t,n){var r=t.isFocused,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return I({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?a.neutral60:a.neutral20,padding:o*2,":hover":{color:r?a.neutral80:a.neutral40}})},gB=UP,yB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||se(zP,null))},SB=UP,wB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||se(mg,null))},bB=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing.baseUnit,a=i.colors;return I({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:o*2,marginTop:o*2})},xB=function(t){var n=t.innerProps;return se("span",ee({},n,Xe(t,"indicatorSeparator",{"indicator-separator":!0})))},CB=S$(IS||(IS=w$([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } -`]))),EB=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return I({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},$d=function(t){var n=t.delay,r=t.offset;return se("span",{css:fg({animation:"".concat(CB," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},kB=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=St(t,mB);return se("div",ee({},Xe(I(I({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),se($d,{delay:0,offset:r}),se($d,{delay:160,offset:!0}),se($d,{delay:320,offset:!r}))},PB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return I({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},TB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return se("div",ee({ref:o},Xe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},RB=TB,MB=["data"],OB=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},AB=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return se("div",ee({},Xe(t,"group",{group:!0}),l),se(a,ee({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),se("div",null,n))},FB=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return I({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},LB=function(t){var n=IP(t);n.data;var r=St(n,MB);return se("div",ee({},Xe(t,"groupHeading",{"group-heading":!0}),r))},_B=AB,IB=["innerRef","isDisabled","isHidden","inputClassName"],DB=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return I(I({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},NB),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},HP={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},NB={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":I({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},HP)},VB=function(t){return I({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},HP)},jB=function(t){var n=t.cx,r=t.value,i=IP(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=St(i,IB);return se("div",ee({},Xe(t,"input",{"input-container":!0}),{"data-value":r||""}),se("input",ee({className:n({input:!0},l),ref:o,style:VB(s),disabled:a},u)))},$B=jB,BB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return I({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},zB=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return I({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},UB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return I({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},WP=function(t){var n=t.children,r=t.innerProps;return se("div",r,n)},HB=WP,WB=WP;function KB(e){var t=e.children,n=e.innerProps;return se("div",ee({role:"button"},n),t||se(mg,{size:14}))}var GB=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return se(u,{data:i,innerProps:I(I({},Xe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},se(c,{data:i,innerProps:I({},Xe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),se(f,{data:i,innerProps:I(I({},Xe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},qB=GB,XB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return I({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},YB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return se("div",ee({},Xe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},QB=YB,JB=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return I({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},ZB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"placeholder",{placeholder:!0}),r),n)},e8=ZB,t8=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return I({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},n8=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return se("div",ee({},Xe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},r8=n8,vg={ClearIndicator:wB,Control:RB,DropdownIndicator:yB,DownChevron:zP,CrossIcon:mg,Group:_B,GroupHeading:LB,IndicatorsContainer:hB,IndicatorSeparator:xB,Input:$B,LoadingIndicator:kB,Menu:Z$,MenuList:tB,MenuPortal:sB,LoadingMessage:oB,NoOptionsMessage:iB,MultiValue:qB,MultiValueContainer:HB,MultiValueLabel:WB,MultiValueRemove:KB,Option:QB,Placeholder:e8,SelectContainer:uB,SingleValue:r8,ValueContainer:fB},i8=function(t){return I(I({},vg),t.components)},DS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function o8(e,t){return!!(e===t||DS(e)&&DS(t))}function a8(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&c){var d=l?" disabled":"",g="".concat(u?" selected":"").concat(d);return"".concat(a).concat(g,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},f8=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,g=l.inputValue,S=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,h=l.menuIsOpen,y=l.options,v=l.screenReaderStatus,x=l.tabSelectsValue,E=l.isLoading,b=l["aria-label"],C=l["aria-live"],k=w.useMemo(function(){return I(I({},c8),f||{})},[f]),T=w.useMemo(function(){var W="";if(n&&k.onChange){var _=n.option,L=n.options,P=n.removedValue,N=n.removedValues,z=n.value,$=function(ht){return Array.isArray(ht)?null:ht},K=P||_||$(z),J=K?d(K):"",te=L||N||void 0,fe=te?te.map(d):[],ce=I({isDisabled:K&&p(K,s),label:J,labels:fe},n);W=k.onChange(ce)}return W},[n,k,p,s,d]),F=w.useMemo(function(){var W="",_=r||i,L=!!(r&&s&&s.includes(r));if(_&&k.onFocus){var P={focused:_,label:d(_),isDisabled:p(_,s),isSelected:L,options:o,context:_===r?"menu":"value",selectValue:s,isAppleDevice:c};W=k.onFocus(P)}return W},[r,i,d,p,k,o,s,c]),V=w.useMemo(function(){var W="";if(h&&y.length&&!E&&k.onFilter){var _=v({count:o.length});W=k.onFilter({inputValue:g,resultsMessage:_})}return W},[o,g,h,k,y,v,E]),H=(n==null?void 0:n.action)==="initial-input-focus",U=w.useMemo(function(){var W="";if(k.guidance){var _=i?"value":h?"menu":"input";W=k.guidance({"aria-label":b,context:_,isDisabled:r&&p(r,s),isMulti:S,isSearchable:m,tabSelectsValue:x,isInitialFocus:H})}return W},[b,r,i,S,p,m,h,k,s,x,H]),Q=se(w.Fragment,null,se("span",{id:"aria-selection"},T),se("span",{id:"aria-focused"},F),se("span",{id:"aria-results"},V),se("span",{id:"aria-guidance"},U));return se(w.Fragment,null,se(NS,{id:u},H&&Q),se(NS,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!H&&Q))},d8=f8,em=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],h8=new RegExp("["+em.map(function(e){return e.letters}).join("")+"]","g"),KP={};for(var Bd=0;Bd-1}},g8=["innerRef"];function y8(e){var t=e.innerRef,n=St(e,g8),r=W$(n,"onExited","in","enter","exit","appear");return se("input",ee({ref:t},r,{css:fg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var S8=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function w8(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(m,h){if(u.current!==null){var y=u.current,v=y.scrollTop,x=y.scrollHeight,E=y.clientHeight,b=u.current,C=h>0,k=x-E-v,T=!1;k>h&&a.current&&(r&&r(m),a.current=!1),C&&s.current&&(o&&o(m),s.current=!1),C&&h>k?(n&&!a.current&&n(m),b.scrollTop=x,T=!0,a.current=!0):!C&&-h>v&&(i&&!s.current&&i(m),b.scrollTop=0,T=!0,s.current=!0),T&&S8(m)}},[n,r,i,o]),f=w.useCallback(function(m){c(m,m.deltaY)},[c]),d=w.useCallback(function(m){l.current=m.changedTouches[0].clientY},[]),g=w.useCallback(function(m){var h=l.current-m.changedTouches[0].clientY;c(m,h)},[c]),S=w.useCallback(function(m){if(m){var h=z$?{passive:!1}:!1;m.addEventListener("wheel",f,h),m.addEventListener("touchstart",d,h),m.addEventListener("touchmove",g,h)}},[g,d,f]),p=w.useCallback(function(m){m&&(m.removeEventListener("wheel",f,!1),m.removeEventListener("touchstart",d,!1),m.removeEventListener("touchmove",g,!1))},[g,d,f]);return w.useEffect(function(){if(t){var m=u.current;return S(m),function(){p(m)}}},[t,S,p]),function(m){u.current=m}}var jS=["boxSizing","height","overflow","paddingRight","position"],$S={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function BS(e){e.preventDefault()}function zS(e){e.stopPropagation()}function US(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function HS(){return"ontouchstart"in window||navigator.maxTouchPoints}var WS=!!(typeof window<"u"&&window.document&&window.document.createElement),Fa=0,so={capture:!1,passive:!1};function b8(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),o=w.useRef(null),a=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;if(r&&jS.forEach(function(S){var p=c&&c[S];i.current[S]=p}),r&&Fa<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,g=window.innerWidth-d+f||0;Object.keys($S).forEach(function(S){var p=$S[S];c&&(c[S]=p)}),c&&(c.paddingRight="".concat(g,"px"))}u&&HS()&&(u.addEventListener("touchmove",BS,so),l&&(l.addEventListener("touchstart",US,so),l.addEventListener("touchmove",zS,so))),Fa+=1}},[r]),s=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;Fa=Math.max(Fa-1,0),r&&Fa<1&&jS.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&HS()&&(u.removeEventListener("touchmove",BS,so),l&&(l.removeEventListener("touchstart",US,so),l.removeEventListener("touchmove",zS,so)))}},[r]);return w.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var x8=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},C8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function E8(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=w8({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=b8({isEnabled:n}),f=function(g){u(g),c(g)};return se(w.Fragment,null,n&&se("div",{onClick:x8,css:C8}),t(f))}var k8={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},P8=function(t){var n=t.name,r=t.onFocus;return se("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:k8,value:"",onChange:function(){}})},T8=P8;function gg(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function R8(){return gg(/^iPhone/i)}function qP(){return gg(/^Mac/i)}function M8(){return gg(/^iPad/i)||qP()&&navigator.maxTouchPoints>1}function O8(){return R8()||M8()}function A8(){return qP()||O8()}var F8=function(t){return t.label},L8=function(t){return t.label},_8=function(t){return t.value},I8=function(t){return!!t.isDisabled},D8={clearIndicator:SB,container:lB,control:PB,dropdownIndicator:gB,group:OB,groupHeading:FB,indicatorsContainer:dB,indicatorSeparator:bB,input:DB,loadingIndicator:EB,loadingMessage:rB,menu:Y$,menuList:eB,menuPortal:aB,multiValue:BB,multiValueLabel:zB,multiValueRemove:UB,noOptionsMessage:nB,option:XB,placeholder:JB,singleValue:t8,valueContainer:cB},N8={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},V8=4,XP=4,j8=38,$8=XP*2,B8={baseUnit:XP,controlHeight:j8,menuGutter:$8},Hd={borderRadius:V8,colors:N8,spacing:B8},z8={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_S(),captureMenuScroll:!_S(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:v8(),formatGroupLabel:F8,getOptionLabel:L8,getOptionValue:_8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:I8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!$$(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function KS(e,t,n,r){var i=JP(e,t,n),o=ZP(e,t,n),a=QP(e,t),s=dc(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function wu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return KS(e,a,t,s)}).filter(function(a){return qS(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=KS(e,n,t,r);return qS(e,o)?o:void 0}).filter(U$)}function YP(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,de(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function GS(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,de(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function U8(e,t){return YP(wu(e,t))}function qS(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!tT(e)||!o)&&eT(e,{label:a,value:s,data:i},r)}function H8(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Wd=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},QP=function(t,n){return t.getOptionLabel(n)},dc=function(t,n){return t.getOptionValue(n)};function JP(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ZP(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=dc(e,t);return n.some(function(i){return dc(e,i)===r})}function eT(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var tT=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},K8=1,nT=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=A8(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(l,u),f(l,u)},i.setValue=function(l,u,c){var f=i.props,d=f.closeMenuOnSelect,g=f.isMulti,S=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:S}),d&&(i.setState({inputIsHiddenAfterUpdate:!g}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,g=i.state.selectValue,S=f&&i.isOptionSelected(l,g),p=i.isOptionDisabled(l,g);if(S){var m=i.getOptionValue(l);i.setValue(g.filter(function(h){return i.getOptionValue(h)!==m}),"deselect-option",l)}else if(!p)f?i.setValue([].concat(de(g),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(l),d=c.filter(function(S){return i.getOptionValue(S)!==f}),g=Wl(u,d,d[0]||null);i.onChange(g,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Wl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Wl(l,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Wd(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return GS(wu(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;cg||d>g}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return tT(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,g=u.inputValue,S=u.isClearable,p=u.isDisabled,m=u.menuIsOpen,h=u.onKeyDown,y=u.tabSelectsValue,v=u.openMenuOnFocus,x=i.state,E=x.focusedOption,b=x.focusedValue,C=x.selectValue;if(!p&&!(typeof h=="function"&&(h(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||g)return;i.focusValue("previous");break;case"ArrowRight":if(!c||g)return;i.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(b)i.removeValue(b);else{if(!f)return;c?i.popValue():S&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!m||!y||!E||v&&i.isOptionSelected(E,C))return;i.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(m){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:g}),i.onMenuClose()):S&&d&&i.clearValue();break;case" ":if(g)return;if(!m){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++K8),i.state.selectValue=FS(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Wd(o,a[s])}return i}return Rn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&LS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(LS(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Hd):I(I({},Hd),this.props.theme):Hd}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,g=f.isRtl,S=f.options,p=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:p,isMulti:d,isRtl:g,options:S,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return JP(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return ZP(this.props,i,o)}},{key:"filterOption",value:function(i,o){return eT(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,g=this.getComponents(),S=g.Input,p=this.state,m=p.inputIsHidden,h=p.ariaSelection,y=this.commonProps,v=s||this.getElementId("input"),x=I(I(I({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?w.createElement(S,ee({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},x)):w.createElement(y8,ee({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cc,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,g=this.props,S=g.controlShouldRenderValue,p=g.isDisabled,m=g.isMulti,h=g.inputValue,y=g.placeholder,v=this.state,x=v.selectValue,E=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!S)return h?null:w.createElement(f,ee({},d,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),y);if(m)return x.map(function(k,T){var F=k===E,V="".concat(i.getOptionLabel(k),"-").concat(i.getOptionValue(k));return w.createElement(a,ee({},d,{components:{Container:s,Label:l,Remove:u},isFocused:F,isDisabled:p,key:V,index:T,removeProps:{onClick:function(){return i.removeValue(k)},onTouchEnd:function(){return i.removeValue(k)},onMouseDown:function(U){U.preventDefault()}},data:k}),i.formatOptionLabel(k,"value"))});if(h)return null;var C=x[0];return w.createElement(c,ee({},d,{data:C,isDisabled:p}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return w.createElement(a,ee({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,g=o.Option,S=this.commonProps,p=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,x=m.loadingMessage,E=m.minMenuHeight,b=m.maxMenuHeight,C=m.menuIsOpen,k=m.menuPlacement,T=m.menuPosition,F=m.menuPortalTarget,V=m.menuShouldBlockScroll,H=m.menuShouldScrollIntoView,U=m.noOptionsMessage,Q=m.onMenuScrollToTop,W=m.onMenuScrollToBottom;if(!C)return null;var _=function(J,te){var fe=J.type,ce=J.data,be=J.isDisabled,ht=J.isSelected,bt=J.label,Ae=J.value,Ee=p===ce,rt=be?void 0:function(){return i.onOptionHover(ce)},Mn=be?void 0:function(){return i.selectOption(ce)},qn="".concat(i.getElementId("option"),"-").concat(te),Ye={id:qn,onClick:Mn,onMouseMove:rt,onMouseOver:rt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ht};return w.createElement(g,ee({},S,{innerProps:Ye,data:ce,isDisabled:be,isSelected:ht,key:qn,label:bt,type:fe,value:Ae,isFocused:Ee,innerRef:Ee?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(J.data,"menu"))},L;if(this.hasOptions())L=this.getCategorizedOptions().map(function(K){if(K.type==="group"){var J=K.data,te=K.options,fe=K.index,ce="".concat(i.getElementId("group"),"-").concat(fe),be="".concat(ce,"-heading");return w.createElement(a,ee({},S,{key:ce,data:J,options:te,Heading:s,headingProps:{id:be,data:K.data},label:i.formatGroupLabel(K.data)}),K.options.map(function(ht){return _(ht,"".concat(fe,"-").concat(ht.index))}))}else if(K.type==="option")return _(K,"".concat(K.index))});else if(v){var P=x({inputValue:y});if(P===null)return null;L=w.createElement(f,S,P)}else{var N=U({inputValue:y});if(N===null)return null;L=w.createElement(d,S,N)}var z={minMenuHeight:E,maxMenuHeight:b,menuPlacement:k,menuPosition:T,menuShouldScrollIntoView:H},$=w.createElement(Q$,ee({},S,z),function(K){var J=K.ref,te=K.placerProps,fe=te.placement,ce=te.maxHeight;return w.createElement(l,ee({},S,z,{innerRef:J,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:v,placement:fe}),w.createElement(E8,{captureEnabled:h,onTopArrive:Q,onBottomArrive:W,lockEnabled:V},function(be){return w.createElement(u,ee({},S,{innerRef:function(bt){i.getMenuListRef(bt),be(bt)},innerProps:{role:"listbox","aria-multiselectable":S.isMulti,id:i.getElementId("listbox")},isLoading:v,maxHeight:ce,focusedOption:p}),L)}))});return F||T==="fixed"?w.createElement(c,ee({},S,{appendTo:F,controlElement:this.controlRef,menuPlacement:k,menuPosition:T}),$):$}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return w.createElement(T8,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var d=f.map(function(p){return i.getOptionValue(p)}).join(a);return w.createElement("input",{name:u,type:"hidden",value:d})}else{var g=f.length>0?f.map(function(p,m){return w.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:i.getOptionValue(p)})}):w.createElement("input",{name:u,type:"hidden",value:""});return w.createElement("div",null,g)}else{var S=f[0]?this.getOptionValue(f[0]):"";return w.createElement("input",{name:u,type:"hidden",value:S})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return w.createElement(d8,ee({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,g=u.menuIsOpen,S=this.state.isFocused,p=this.commonProps=this.getCommonProps();return w.createElement(s,ee({},p,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:S}),this.renderLiveRegion(),w.createElement(o,ee({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:S,menuIsOpen:g}),w.createElement(l,ee({},p,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(a,ee({},p,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,g=i.options,S=i.value,p=i.menuIsOpen,m=i.inputValue,h=i.isMulti,y=FS(S),v={};if(a&&(S!==a.value||g!==a.options||p!==a.menuIsOpen||m!==a.inputValue)){var x=p?U8(i,y):[],E=p?GS(wu(i,y),"".concat(d,"-option")):[],b=s?H8(o,y):null,C=W8(o,x),k=Wd(E,C);v={selectValue:y,focusedOption:C,focusedOptionId:k,focusableOptionsWithIds:E,focusedValue:b,clearFocusValueOnUpdate:!1}}var T=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=u,V=c&&f;return c&&!V&&(F={value:Wl(h,y,y[0]||null),options:y,action:"initial-input-focus"},V=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(F=null),I(I(I({},v),T),{},{prevProps:i,ariaSelection:F,prevWasFocused:V})}}]),n}(w.Component);nT.defaultProps=z8;var G8=w.forwardRef(function(e,t){var n=I6(e);return w.createElement(nT,ee({ref:t},n))}),q8=G8;const rT=e=>M.jsx("div",{children:M.jsxs(vg.Option,{...e,children:[M.jsx("input",{type:"checkbox",checked:e.isSelected,onChange:()=>null})," ",M.jsx("label",{children:e.label})]})});rT.propTypes={isSelected:g1.bool.isRequired,label:g1.string.isRequired};const X8=e=>M.jsx(vg.MultiValue,{...e,children:M.jsx("span",{children:e.data.label})}),XS=({data:e,width:t="100%",optionSelected:n,setOptionSelected:r})=>{const{theme:i}=w.useContext(og),o=a=>{r(a)};return M.jsx("span",{style:{width:t},children:M.jsx(q8,{options:e,isMulti:!0,closeMenuOnSelect:!1,hideSelectedOptions:!1,components:{Option:rT,MultiValue:X8},onChange:a=>o(a),value:n,styles:{control:a=>({...a,width:t,height:"0.1rem",textAlign:"left",outline:"none",borderRadius:"5px",border:"2px solid #ccc",maxHeight:"200px",overflowY:"auto",background:i==="dark"?"#000000":"#ffffff"}),menu:a=>({...a,zIndex:"2"}),menuList:a=>({...a,textAlign:"left",background:i==="dark"?"#000000":"#ffffff"}),option:(a,s)=>{const l=i==="dark",u=i==="light",c=s.isSelected,f=s.isFocused;return{...a,color:c?"#ffffff":l&&f?"#000000":"inherit",background:(()=>{if(l){if(c)return"blue";if(f)return"#ffffff"}if(u){if(c)return"#2684FF";if(f)return"#B2D4FF"}return"initial"})()}},placeholder:a=>({...a,color:i==="dark"?"#b0b3b8":"grey"})}})})},Y8=[{label:"Easy",value:O.Easy},{label:"Medium",value:O.Medium},{label:"Hard",value:O.Hard}],Q8=({checked:e,setNewChallenge:t,label:n,className:r,containerClass:i})=>M.jsxs("div",{className:i,children:[M.jsx("input",{className:r,type:"checkbox",id:"checkbox",name:"checkbox",onChange:o=>t(o.target.checked),checked:e}),M.jsx("label",{htmlFor:"checkbox",children:n})]}),J8="_segment_2sm8x_1",Z8="_segmentBtn_2sm8x_8",YS={segment:J8,segmentBtn:Z8};function ez({tag:e,setTag:t,setSelectedChallengesByTags:n}){return M.jsx("div",{className:YS.segment,children:Object.entries(q).map(([r,i])=>M.jsx("button",{"data-active":e===i,className:YS.segmentBtn,onClick:()=>{t(i),n([i])},children:i},r))})}const tz=({searchInput:e,setSearchInput:t,optionSelected:n,setOptionSelected:r,selectedDifficulties:i,setSelectedDifficulties:o,links:a,tag:s,setTag:l,setSelectedChallengesByTags:u,setNewChallenge:c,newChallenge:f})=>{const d=w.useMemo(()=>{const g=new Map;for(const[p,m]of df)g.set(p,m);const S=[];return g.forEach((p,m)=>{m!==""&&(p==null?void 0:p.name)!==""&&S.push({value:m,label:p==null?void 0:p.name})}),S},[]);return M.jsxs("div",{className:ot.filterOptionWrapper,children:[M.jsxs("div",{className:ot.searchInputWrapper,children:[M.jsx("input",{type:"text",name:"searchTextInput",placeholder:"Search challenge...",className:ot.searchInput,value:e,onChange:g=>t(g.target.value.trim())}),M.jsx(s4,{size:15,className:ot.searchIcon})]}),M.jsx(XS,{data:d,optionSelected:n,setOptionSelected:g=>r(g)}),M.jsx(XS,{data:Y8,optionSelected:i,setOptionSelected:g=>o(g)}),M.jsx(Q8,{className:ot.checkbox,checked:f,setNewChallenge:c,label:"New Challenges",containerClass:ot.checkboxContainer}),M.jsx(ez,{tag:s,setTag:l,setSelectedChallengesByTags:u}),M.jsx("div",{className:ot.filterByTechWrapper,children:a.map(g=>M.jsx(Fc,{to:`/${g.tech}`,children:M.jsx("img",{src:g.imgSrc,width:35,height:35,className:g.active?ot.activeTech:"",alt:`filter by ${g.tech}`})},g.tech))})]})};function nz({challenges:e,linkPrefix:t,links:n,techImg:r}){const i=R4(),[o,a]=w.useState(i.searchInput),[s,l]=w.useState(e),[u,c]=w.useState(i.optionSelected),[f,d]=w.useState(i.selectedDifficulties),[g,S]=w.useState(i.selectedChallengesByTags),[p,m]=w.useState(i.tag),[h,y]=w.useState(i.newChallenge);return w.useEffect(()=>{l(()=>T4({challenges:[...e.values()],title:o,contributors:u,difficulties:f,tags:g,newChallenge:h}));const v={searchInput:o,optionSelected:u,selectedDifficulties:f,tag:p,selectedChallengesByTags:g,newChallenge:h};sessionStorage.setItem("searchFilters",JSON.stringify(v)),!o&&!u&&!f&&!h&&l(e)},[e,o,u,f,p,g,h]),M.jsxs("div",{className:ot.container,children:[M.jsx(tz,{links:n,searchInput:o,setSearchInput:a,optionSelected:u,setOptionSelected:c,selectedDifficulties:f,setSelectedDifficulties:d,setSelectedChallengesByTags:S,tag:p,setTag:m,newChallenge:h,setNewChallenge:y}),s.length?M.jsx("div",{className:ot.challengeGrid,children:s.map(v=>M.jsx(L6,{link:t+v.link,contributor:df.get(v.developer),challenge:v,techImg:r},v.title))}):M.jsxs("div",{className:ot.emptyMessage,children:["No challenges found..."," ",M.jsxs("div",{children:["maybe try adding one"," ",M.jsxs("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/blob/main/CONTRIBUTING.md#challenge-contribution",target:"_blank",rel:"noopener noreferrer",children:["here"," "]}),"🤓"]})]})]})}var rz={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:sr,VITE_CSS_APP_URL:iz,VITE_JS_APP_URL:oz,VITE_REACT_APP_URL:az,VITE_VUE_APP_URL:sz,VITE_NG_APP_URL:lz,DEV:rl}=rz,uz=rl?`${iz}${sr}`:`/${sr}`,cz=rl?`${oz}${sr}`:`/${sr}`,fz=rl?`${az}${sr}`:`/${sr}`,dz=rl?`${sz}${sr}`:`/${sr}`,hz=rl?`${lz}${sr}`:`/${sr}`,uo=new Map([["css",{title:"CSS",challenges:mP,link:uz+"/css/src/challenges/",imgSrc:Iv}],["javascript",{title:"JS",challenges:vP,link:cz+"/javascript/src/challenges/",imgSrc:Nv}],["react",{title:"React",challenges:gP,link:fz+"/react/#/",imgSrc:Vv}],["vue",{title:"Vue",challenges:yP,link:dz+"/vue/#",imgSrc:jv}],["angular",{title:"Angular",challenges:SP,link:hz+"/angular/#",imgSrc:Dv}]]),QS=Array.from(uo.keys());function pz(){const{tech:e}=CM(),t=kx();if(w.useEffect(()=>{(!e||!QS.includes(e))&&t("/")},[t,e]),!e||!uo.get(e))return null;const n=QS.map(r=>({tech:r,imgSrc:uo.get(r).imgSrc,active:r===e}));return M.jsxs(M.Fragment,{children:[M.jsx(ag,{}),M.jsxs("div",{className:"container text-center",children:[M.jsx(nz,{challenges:[...uo.get(e).challenges.values()],linkPrefix:uo.get(e).link,links:n,techImg:uo.get(e).imgSrc}),M.jsx(pP,{})]})]})}const mz=zM([{path:"/leaderboard",element:M.jsx(a6,{})},{path:"/:tech",element:M.jsx(pz,{})},{path:"/",element:M.jsx(b4,{})}]);Kd.createRoot(document.getElementById("root")).render(M.jsx(qe.StrictMode,{children:M.jsx(r4,{children:M.jsx(YM,{router:mz})})})); +`]))),EB=function(t,n){var r=t.isFocused,i=t.size,o=t.theme,a=o.colors,s=o.spacing.baseUnit;return I({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?a.neutral60:a.neutral20,padding:s*2})},$d=function(t){var n=t.delay,r=t.offset;return se("span",{css:fg({animation:"".concat(CB," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},kB=function(t){var n=t.innerProps,r=t.isRtl,i=t.size,o=i===void 0?4:i,a=St(t,mB);return se("div",ee({},Xe(I(I({},a),{},{innerProps:n,isRtl:r,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),se($d,{delay:0,offset:r}),se($d,{delay:160,offset:!0}),se($d,{delay:320,offset:!r}))},PB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.theme,a=o.colors,s=o.borderRadius,l=o.spacing;return I({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},TB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.innerRef,a=t.innerProps,s=t.menuIsOpen;return se("div",ee({ref:o},Xe(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":s}),a,{"aria-disabled":r||void 0}),n)},RB=TB,MB=["data"],OB=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},AB=function(t){var n=t.children,r=t.cx,i=t.getStyles,o=t.getClassNames,a=t.Heading,s=t.headingProps,l=t.innerProps,u=t.label,c=t.theme,f=t.selectProps;return se("div",ee({},Xe(t,"group",{group:!0}),l),se(a,ee({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:o,cx:r}),u),se("div",null,n))},FB=function(t,n){var r=t.theme,i=r.colors,o=r.spacing;return I({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:o.baseUnit*3,paddingRight:o.baseUnit*3,textTransform:"uppercase"})},LB=function(t){var n=IP(t);n.data;var r=St(n,MB);return se("div",ee({},Xe(t,"groupHeading",{"group-heading":!0}),r))},_B=AB,IB=["innerRef","isDisabled","isHidden","inputClassName"],DB=function(t,n){var r=t.isDisabled,i=t.value,o=t.theme,a=o.spacing,s=o.colors;return I(I({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},NB),n?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},HP={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},NB={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":I({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},HP)},VB=function(t){return I({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},HP)},jB=function(t){var n=t.cx,r=t.value,i=IP(t),o=i.innerRef,a=i.isDisabled,s=i.isHidden,l=i.inputClassName,u=St(i,IB);return se("div",ee({},Xe(t,"input",{"input-container":!0}),{"data-value":r||""}),se("input",ee({className:n({input:!0},l),ref:o,style:VB(s),disabled:a},u)))},$B=jB,BB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors;return I({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:i.baseUnit/2})},zB=function(t,n){var r=t.theme,i=r.borderRadius,o=r.colors,a=t.cropWithEllipsis;return I({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},UB=function(t,n){var r=t.theme,i=r.spacing,o=r.borderRadius,a=r.colors,s=t.isFocused;return I({alignItems:"center",display:"flex"},n?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},WP=function(t){var n=t.children,r=t.innerProps;return se("div",r,n)},HB=WP,WB=WP;function KB(e){var t=e.children,n=e.innerProps;return se("div",ee({role:"button"},n),t||se(mg,{size:14}))}var GB=function(t){var n=t.children,r=t.components,i=t.data,o=t.innerProps,a=t.isDisabled,s=t.removeProps,l=t.selectProps,u=r.Container,c=r.Label,f=r.Remove;return se(u,{data:i,innerProps:I(I({},Xe(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:l},se(c,{data:i,innerProps:I({},Xe(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),se(f,{data:i,innerProps:I(I({},Xe(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},s),selectProps:l}))},qB=GB,XB=function(t,n){var r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.theme,s=a.spacing,l=a.colors;return I({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:o?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:o?l.neutral0:"inherit",padding:"".concat(s.baseUnit*2,"px ").concat(s.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:o?l.primary:l.primary50}})},YB=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,o=t.isSelected,a=t.innerRef,s=t.innerProps;return se("div",ee({},Xe(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":o}),{ref:a,"aria-disabled":r},s),n)},QB=YB,JB=function(t,n){var r=t.theme,i=r.spacing,o=r.colors;return I({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:o.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},ZB=function(t){var n=t.children,r=t.innerProps;return se("div",ee({},Xe(t,"placeholder",{placeholder:!0}),r),n)},e8=ZB,t8=function(t,n){var r=t.isDisabled,i=t.theme,o=i.spacing,a=i.colors;return I({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},n8=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return se("div",ee({},Xe(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},r8=n8,vg={ClearIndicator:wB,Control:RB,DropdownIndicator:yB,DownChevron:zP,CrossIcon:mg,Group:_B,GroupHeading:LB,IndicatorsContainer:hB,IndicatorSeparator:xB,Input:$B,LoadingIndicator:kB,Menu:Z$,MenuList:tB,MenuPortal:sB,LoadingMessage:oB,NoOptionsMessage:iB,MultiValue:qB,MultiValueContainer:HB,MultiValueLabel:WB,MultiValueRemove:KB,Option:QB,Placeholder:e8,SelectContainer:uB,SingleValue:r8,ValueContainer:fB},i8=function(t){return I(I({},vg),t.components)},DS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function o8(e,t){return!!(e===t||DS(e)&&DS(t))}function a8(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,o=t.label,a=o===void 0?"":o,s=t.selectValue,l=t.isDisabled,u=t.isSelected,c=t.isAppleDevice,f=function(p,m){return p&&p.length?"".concat(p.indexOf(m)+1," of ").concat(p.length):""};if(n==="value"&&s)return"value ".concat(a," focused, ").concat(f(s,r),".");if(n==="menu"&&c){var d=l?" disabled":"",g="".concat(u?" selected":"").concat(d);return"".concat(a).concat(g,", ").concat(f(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},f8=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.focusableOptions,a=t.isFocused,s=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,g=l.inputValue,S=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,h=l.menuIsOpen,y=l.options,v=l.screenReaderStatus,x=l.tabSelectsValue,E=l.isLoading,b=l["aria-label"],C=l["aria-live"],k=w.useMemo(function(){return I(I({},c8),f||{})},[f]),T=w.useMemo(function(){var W="";if(n&&k.onChange){var _=n.option,L=n.options,P=n.removedValue,N=n.removedValues,z=n.value,$=function(ht){return Array.isArray(ht)?null:ht},K=P||_||$(z),J=K?d(K):"",te=L||N||void 0,fe=te?te.map(d):[],ce=I({isDisabled:K&&p(K,s),label:J,labels:fe},n);W=k.onChange(ce)}return W},[n,k,p,s,d]),F=w.useMemo(function(){var W="",_=r||i,L=!!(r&&s&&s.includes(r));if(_&&k.onFocus){var P={focused:_,label:d(_),isDisabled:p(_,s),isSelected:L,options:o,context:_===r?"menu":"value",selectValue:s,isAppleDevice:c};W=k.onFocus(P)}return W},[r,i,d,p,k,o,s,c]),V=w.useMemo(function(){var W="";if(h&&y.length&&!E&&k.onFilter){var _=v({count:o.length});W=k.onFilter({inputValue:g,resultsMessage:_})}return W},[o,g,h,k,y,v,E]),H=(n==null?void 0:n.action)==="initial-input-focus",U=w.useMemo(function(){var W="";if(k.guidance){var _=i?"value":h?"menu":"input";W=k.guidance({"aria-label":b,context:_,isDisabled:r&&p(r,s),isMulti:S,isSearchable:m,tabSelectsValue:x,isInitialFocus:H})}return W},[b,r,i,S,p,m,h,k,s,x,H]),Q=se(w.Fragment,null,se("span",{id:"aria-selection"},T),se("span",{id:"aria-focused"},F),se("span",{id:"aria-results"},V),se("span",{id:"aria-guidance"},U));return se(w.Fragment,null,se(NS,{id:u},H&&Q),se(NS,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!H&&Q))},d8=f8,em=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],h8=new RegExp("["+em.map(function(e){return e.letters}).join("")+"]","g"),KP={};for(var Bd=0;Bd-1}},g8=["innerRef"];function y8(e){var t=e.innerRef,n=St(e,g8),r=W$(n,"onExited","in","enter","exit","appear");return se("input",ee({ref:t},r,{css:fg({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var S8=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function w8(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,o=e.onTopLeave,a=w.useRef(!1),s=w.useRef(!1),l=w.useRef(0),u=w.useRef(null),c=w.useCallback(function(m,h){if(u.current!==null){var y=u.current,v=y.scrollTop,x=y.scrollHeight,E=y.clientHeight,b=u.current,C=h>0,k=x-E-v,T=!1;k>h&&a.current&&(r&&r(m),a.current=!1),C&&s.current&&(o&&o(m),s.current=!1),C&&h>k?(n&&!a.current&&n(m),b.scrollTop=x,T=!0,a.current=!0):!C&&-h>v&&(i&&!s.current&&i(m),b.scrollTop=0,T=!0,s.current=!0),T&&S8(m)}},[n,r,i,o]),f=w.useCallback(function(m){c(m,m.deltaY)},[c]),d=w.useCallback(function(m){l.current=m.changedTouches[0].clientY},[]),g=w.useCallback(function(m){var h=l.current-m.changedTouches[0].clientY;c(m,h)},[c]),S=w.useCallback(function(m){if(m){var h=z$?{passive:!1}:!1;m.addEventListener("wheel",f,h),m.addEventListener("touchstart",d,h),m.addEventListener("touchmove",g,h)}},[g,d,f]),p=w.useCallback(function(m){m&&(m.removeEventListener("wheel",f,!1),m.removeEventListener("touchstart",d,!1),m.removeEventListener("touchmove",g,!1))},[g,d,f]);return w.useEffect(function(){if(t){var m=u.current;return S(m),function(){p(m)}}},[t,S,p]),function(m){u.current=m}}var jS=["boxSizing","height","overflow","paddingRight","position"],$S={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function BS(e){e.preventDefault()}function zS(e){e.stopPropagation()}function US(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function HS(){return"ontouchstart"in window||navigator.maxTouchPoints}var WS=!!(typeof window<"u"&&window.document&&window.document.createElement),Fa=0,so={capture:!1,passive:!1};function b8(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=w.useRef({}),o=w.useRef(null),a=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;if(r&&jS.forEach(function(S){var p=c&&c[S];i.current[S]=p}),r&&Fa<1){var f=parseInt(i.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,g=window.innerWidth-d+f||0;Object.keys($S).forEach(function(S){var p=$S[S];c&&(c[S]=p)}),c&&(c.paddingRight="".concat(g,"px"))}u&&HS()&&(u.addEventListener("touchmove",BS,so),l&&(l.addEventListener("touchstart",US,so),l.addEventListener("touchmove",zS,so))),Fa+=1}},[r]),s=w.useCallback(function(l){if(WS){var u=document.body,c=u&&u.style;Fa=Math.max(Fa-1,0),r&&Fa<1&&jS.forEach(function(f){var d=i.current[f];c&&(c[f]=d)}),u&&HS()&&(u.removeEventListener("touchmove",BS,so),l&&(l.removeEventListener("touchstart",US,so),l.removeEventListener("touchmove",zS,so)))}},[r]);return w.useEffect(function(){if(t){var l=o.current;return a(l),function(){s(l)}}},[t,a,s]),function(l){o.current=l}}var x8=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},C8={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function E8(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,o=e.onBottomArrive,a=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,u=w8({isEnabled:i,onBottomArrive:o,onBottomLeave:a,onTopArrive:s,onTopLeave:l}),c=b8({isEnabled:n}),f=function(g){u(g),c(g)};return se(w.Fragment,null,n&&se("div",{onClick:x8,css:C8}),t(f))}var k8={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},P8=function(t){var n=t.name,r=t.onFocus;return se("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:k8,value:"",onChange:function(){}})},T8=P8;function gg(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function R8(){return gg(/^iPhone/i)}function qP(){return gg(/^Mac/i)}function M8(){return gg(/^iPad/i)||qP()&&navigator.maxTouchPoints>1}function O8(){return R8()||M8()}function A8(){return qP()||O8()}var F8=function(t){return t.label},L8=function(t){return t.label},_8=function(t){return t.value},I8=function(t){return!!t.isDisabled},D8={clearIndicator:SB,container:lB,control:PB,dropdownIndicator:gB,group:OB,groupHeading:FB,indicatorsContainer:dB,indicatorSeparator:bB,input:DB,loadingIndicator:EB,loadingMessage:rB,menu:Y$,menuList:eB,menuPortal:aB,multiValue:BB,multiValueLabel:zB,multiValueRemove:UB,noOptionsMessage:nB,option:XB,placeholder:JB,singleValue:t8,valueContainer:cB},N8={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},V8=4,XP=4,j8=38,$8=XP*2,B8={baseUnit:XP,controlHeight:j8,menuGutter:$8},Hd={borderRadius:V8,colors:N8,spacing:B8},z8={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:_S(),captureMenuScroll:!_S(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:v8(),formatGroupLabel:F8,getOptionLabel:L8,getOptionValue:_8,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:I8,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!$$(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function KS(e,t,n,r){var i=JP(e,t,n),o=ZP(e,t,n),a=QP(e,t),s=dc(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function wu(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(a,s){return KS(e,a,t,s)}).filter(function(a){return qS(e,a)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=KS(e,n,t,r);return qS(e,o)?o:void 0}).filter(U$)}function YP(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,de(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function GS(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,de(r.options.map(function(i){return{data:i.data,id:"".concat(t,"-").concat(r.index,"-").concat(i.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function U8(e,t){return YP(wu(e,t))}function qS(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,o=t.isSelected,a=t.label,s=t.value;return(!tT(e)||!o)&&eT(e,{label:a,value:s,data:i},r)}function H8(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var o=t.indexOf(n);if(o>-1)return n;if(i-1?n:t[0]}var Wd=function(t,n){var r,i=(r=t.find(function(o){return o.data===n}))===null||r===void 0?void 0:r.id;return i||null},QP=function(t,n){return t.getOptionLabel(n)},dc=function(t,n){return t.getOptionValue(n)};function JP(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ZP(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=dc(e,t);return n.some(function(i){return dc(e,i)===r})}function eT(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var tT=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},K8=1,nT=function(e){ua(n,e);var t=tf(n);function n(r){var i;if(Tn(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=A8(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var c=i.props,f=c.onChange,d=c.name;u.name=d,i.ariaOnChange(l,u),f(l,u)},i.setValue=function(l,u,c){var f=i.props,d=f.closeMenuOnSelect,g=f.isMulti,S=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:S}),d&&(i.setState({inputIsHiddenAfterUpdate:!g}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:c})},i.selectOption=function(l){var u=i.props,c=u.blurInputOnSelect,f=u.isMulti,d=u.name,g=i.state.selectValue,S=f&&i.isOptionSelected(l,g),p=i.isOptionDisabled(l,g);if(S){var m=i.getOptionValue(l);i.setValue(g.filter(function(h){return i.getOptionValue(h)!==m}),"deselect-option",l)}else if(!p)f?i.setValue([].concat(de(g),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:d});return}c&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,c=i.state.selectValue,f=i.getOptionValue(l),d=c.filter(function(S){return i.getOptionValue(S)!==f}),g=Wl(u,d,d[0]||null);i.onChange(g,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Wl(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,c=u[u.length-1],f=u.slice(0,u.length-1),d=Wl(l,f,f[0]||null);i.onChange(d,{action:"pop-value",removedValue:c})},i.getFocusedOptionId=function(l){return Wd(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return GS(wu(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),c=0;cg||d>g}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,c=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(c,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),c=u.indexOf(l);i.setState({focusedOption:l,focusedOptionId:c>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return tT(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,c=u.isMulti,f=u.backspaceRemovesValue,d=u.escapeClearsValue,g=u.inputValue,S=u.isClearable,p=u.isDisabled,m=u.menuIsOpen,h=u.onKeyDown,y=u.tabSelectsValue,v=u.openMenuOnFocus,x=i.state,E=x.focusedOption,b=x.focusedValue,C=x.selectValue;if(!p&&!(typeof h=="function"&&(h(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!c||g)return;i.focusValue("previous");break;case"ArrowRight":if(!c||g)return;i.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(b)i.removeValue(b);else{if(!f)return;c?i.popValue():S&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!m||!y||!E||v&&i.isOptionSelected(E,C))return;i.selectOption(E);break;case"Enter":if(l.keyCode===229)break;if(m){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":m?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:g}),i.onMenuClose()):S&&d&&i.clearValue();break;case" ":if(g)return;if(!m){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":m?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":m?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!m)return;i.focusOption("pageup");break;case"PageDown":if(!m)return;i.focusOption("pagedown");break;case"Home":if(!m)return;i.focusOption("first");break;case"End":if(!m)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++K8),i.state.selectValue=FS(r.value),r.menuIsOpen&&i.state.selectValue.length){var o=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),s=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=o,i.state.focusedOption=a[s],i.state.focusedOptionId=Wd(o,a[s])}return i}return Rn(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&LS(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isDisabled,s=o.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&s&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(LS(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,o){this.props.onInputChange(i,o)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var o=this,a=this.state,s=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),c=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(s[0]);f>-1&&(c=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[c],focusedOptionId:this.getFocusedOptionId(u[c])},function(){return o.onMenuOpen()})}},{key:"focusValue",value:function(i){var o=this.state,a=o.selectValue,s=o.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(s);s||(l=-1);var u=a.length-1,c=-1;if(a.length){switch(i){case"previous":l===0?c=0:l===-1?c=u:c=l-1;break;case"next":l>-1&&l0&&arguments[0]!==void 0?arguments[0]:"first",o=this.props.pageSize,a=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var l=0,u=s.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:s.length-1:i==="down"?l=(u+1)%s.length:i==="pageup"?(l=u-o,l<0&&(l=0)):i==="pagedown"?(l=u+o,l>s.length-1&&(l=s.length-1)):i==="last"&&(l=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Hd):I(I({},Hd),this.props.theme):Hd}},{key:"getCommonProps",value:function(){var i=this.clearValue,o=this.cx,a=this.getStyles,s=this.getClassNames,l=this.getValue,u=this.selectOption,c=this.setValue,f=this.props,d=f.isMulti,g=f.isRtl,S=f.options,p=this.hasValue();return{clearValue:i,cx:o,getStyles:a,getClassNames:s,getValue:l,hasValue:p,isMulti:d,isRtl:g,options:S,selectOption:u,selectProps:f,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,o=i.isClearable,a=i.isMulti;return o===void 0?a:o}},{key:"isOptionDisabled",value:function(i,o){return JP(this.props,i,o)}},{key:"isOptionSelected",value:function(i,o){return ZP(this.props,i,o)}},{key:"filterOption",value:function(i,o){return eT(this.props,i,o)}},{key:"formatOptionLabel",value:function(i,o){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(i,{context:o,inputValue:a,selectValue:s})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,o=i.isDisabled,a=i.isSearchable,s=i.inputId,l=i.inputValue,u=i.tabIndex,c=i.form,f=i.menuIsOpen,d=i.required,g=this.getComponents(),S=g.Input,p=this.state,m=p.inputIsHidden,h=p.ariaSelection,y=this.commonProps,v=s||this.getElementId("input"),x=I(I(I({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(h==null?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?w.createElement(S,ee({},y,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:o,isHidden:m,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:c,type:"text",value:l},x)):w.createElement(y8,ee({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:cc,onFocus:this.onInputFocus,disabled:o,tabIndex:u,inputMode:"none",form:c,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,o=this.getComponents(),a=o.MultiValue,s=o.MultiValueContainer,l=o.MultiValueLabel,u=o.MultiValueRemove,c=o.SingleValue,f=o.Placeholder,d=this.commonProps,g=this.props,S=g.controlShouldRenderValue,p=g.isDisabled,m=g.isMulti,h=g.inputValue,y=g.placeholder,v=this.state,x=v.selectValue,E=v.focusedValue,b=v.isFocused;if(!this.hasValue()||!S)return h?null:w.createElement(f,ee({},d,{key:"placeholder",isDisabled:p,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),y);if(m)return x.map(function(k,T){var F=k===E,V="".concat(i.getOptionLabel(k),"-").concat(i.getOptionValue(k));return w.createElement(a,ee({},d,{components:{Container:s,Label:l,Remove:u},isFocused:F,isDisabled:p,key:V,index:T,removeProps:{onClick:function(){return i.removeValue(k)},onTouchEnd:function(){return i.removeValue(k)},onMouseDown:function(U){U.preventDefault()}},data:k}),i.formatOptionLabel(k,"value"))});if(h)return null;var C=x[0];return w.createElement(c,ee({},d,{data:C,isDisabled:p}),this.formatOptionLabel(C,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),o=i.ClearIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!this.isClearable()||!o||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),o=i.LoadingIndicator,a=this.commonProps,s=this.props,l=s.isDisabled,u=s.isLoading,c=this.state.isFocused;if(!o||!u)return null;var f={"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:f,isDisabled:l,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator,a=i.IndicatorSeparator;if(!o||!a)return null;var s=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return w.createElement(a,ee({},s,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),o=i.DropdownIndicator;if(!o)return null;var a=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return w.createElement(o,ee({},a,{innerProps:u,isDisabled:s,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,o=this.getComponents(),a=o.Group,s=o.GroupHeading,l=o.Menu,u=o.MenuList,c=o.MenuPortal,f=o.LoadingMessage,d=o.NoOptionsMessage,g=o.Option,S=this.commonProps,p=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,x=m.loadingMessage,E=m.minMenuHeight,b=m.maxMenuHeight,C=m.menuIsOpen,k=m.menuPlacement,T=m.menuPosition,F=m.menuPortalTarget,V=m.menuShouldBlockScroll,H=m.menuShouldScrollIntoView,U=m.noOptionsMessage,Q=m.onMenuScrollToTop,W=m.onMenuScrollToBottom;if(!C)return null;var _=function(J,te){var fe=J.type,ce=J.data,be=J.isDisabled,ht=J.isSelected,bt=J.label,Ae=J.value,Ee=p===ce,rt=be?void 0:function(){return i.onOptionHover(ce)},Mn=be?void 0:function(){return i.selectOption(ce)},qn="".concat(i.getElementId("option"),"-").concat(te),Ye={id:qn,onClick:Mn,onMouseMove:rt,onMouseOver:rt,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:ht};return w.createElement(g,ee({},S,{innerProps:Ye,data:ce,isDisabled:be,isSelected:ht,key:qn,label:bt,type:fe,value:Ae,isFocused:Ee,innerRef:Ee?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(J.data,"menu"))},L;if(this.hasOptions())L=this.getCategorizedOptions().map(function(K){if(K.type==="group"){var J=K.data,te=K.options,fe=K.index,ce="".concat(i.getElementId("group"),"-").concat(fe),be="".concat(ce,"-heading");return w.createElement(a,ee({},S,{key:ce,data:J,options:te,Heading:s,headingProps:{id:be,data:K.data},label:i.formatGroupLabel(K.data)}),K.options.map(function(ht){return _(ht,"".concat(fe,"-").concat(ht.index))}))}else if(K.type==="option")return _(K,"".concat(K.index))});else if(v){var P=x({inputValue:y});if(P===null)return null;L=w.createElement(f,S,P)}else{var N=U({inputValue:y});if(N===null)return null;L=w.createElement(d,S,N)}var z={minMenuHeight:E,maxMenuHeight:b,menuPlacement:k,menuPosition:T,menuShouldScrollIntoView:H},$=w.createElement(Q$,ee({},S,z),function(K){var J=K.ref,te=K.placerProps,fe=te.placement,ce=te.maxHeight;return w.createElement(l,ee({},S,z,{innerRef:J,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:v,placement:fe}),w.createElement(E8,{captureEnabled:h,onTopArrive:Q,onBottomArrive:W,lockEnabled:V},function(be){return w.createElement(u,ee({},S,{innerRef:function(bt){i.getMenuListRef(bt),be(bt)},innerProps:{role:"listbox","aria-multiselectable":S.isMulti,id:i.getElementId("listbox")},isLoading:v,maxHeight:ce,focusedOption:p}),L)}))});return F||T==="fixed"?w.createElement(c,ee({},S,{appendTo:F,controlElement:this.controlRef,menuPlacement:k,menuPosition:T}),$):$}},{key:"renderFormField",value:function(){var i=this,o=this.props,a=o.delimiter,s=o.isDisabled,l=o.isMulti,u=o.name,c=o.required,f=this.state.selectValue;if(c&&!this.hasValue()&&!s)return w.createElement(T8,{name:u,onFocus:this.onValueInputFocus});if(!(!u||s))if(l)if(a){var d=f.map(function(p){return i.getOptionValue(p)}).join(a);return w.createElement("input",{name:u,type:"hidden",value:d})}else{var g=f.length>0?f.map(function(p,m){return w.createElement("input",{key:"i-".concat(m),name:u,type:"hidden",value:i.getOptionValue(p)})}):w.createElement("input",{name:u,type:"hidden",value:""});return w.createElement("div",null,g)}else{var S=f[0]?this.getOptionValue(f[0]):"";return w.createElement("input",{name:u,type:"hidden",value:S})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,o=this.state,a=o.ariaSelection,s=o.focusedOption,l=o.focusedValue,u=o.isFocused,c=o.selectValue,f=this.getFocusableOptions();return w.createElement(d8,ee({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:s,focusedValue:l,isFocused:u,selectValue:c,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),o=i.Control,a=i.IndicatorsContainer,s=i.SelectContainer,l=i.ValueContainer,u=this.props,c=u.className,f=u.id,d=u.isDisabled,g=u.menuIsOpen,S=this.state.isFocused,p=this.commonProps=this.getCommonProps();return w.createElement(s,ee({},p,{className:c,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:S}),this.renderLiveRegion(),w.createElement(o,ee({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:S,menuIsOpen:g}),w.createElement(l,ee({},p,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),w.createElement(a,ee({},p,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,o){var a=o.prevProps,s=o.clearFocusValueOnUpdate,l=o.inputIsHiddenAfterUpdate,u=o.ariaSelection,c=o.isFocused,f=o.prevWasFocused,d=o.instancePrefix,g=i.options,S=i.value,p=i.menuIsOpen,m=i.inputValue,h=i.isMulti,y=FS(S),v={};if(a&&(S!==a.value||g!==a.options||p!==a.menuIsOpen||m!==a.inputValue)){var x=p?U8(i,y):[],E=p?GS(wu(i,y),"".concat(d,"-option")):[],b=s?H8(o,y):null,C=W8(o,x),k=Wd(E,C);v={selectValue:y,focusedOption:C,focusedOptionId:k,focusableOptionsWithIds:E,focusedValue:b,clearFocusValueOnUpdate:!1}}var T=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},F=u,V=c&&f;return c&&!V&&(F={value:Wl(h,y,y[0]||null),options:y,action:"initial-input-focus"},V=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(F=null),I(I(I({},v),T),{},{prevProps:i,ariaSelection:F,prevWasFocused:V})}}]),n}(w.Component);nT.defaultProps=z8;var G8=w.forwardRef(function(e,t){var n=I6(e);return w.createElement(nT,ee({ref:t},n))}),q8=G8;const rT=e=>O.jsx("div",{children:O.jsxs(vg.Option,{...e,children:[O.jsx("input",{type:"checkbox",checked:e.isSelected,onChange:()=>null})," ",O.jsx("label",{children:e.label})]})});rT.propTypes={isSelected:g1.bool.isRequired,label:g1.string.isRequired};const X8=e=>O.jsx(vg.MultiValue,{...e,children:O.jsx("span",{children:e.data.label})}),XS=({data:e,width:t="100%",optionSelected:n,setOptionSelected:r})=>{const{theme:i}=w.useContext(og),o=a=>{r(a)};return O.jsx("span",{style:{width:t},children:O.jsx(q8,{options:e,isMulti:!0,closeMenuOnSelect:!1,hideSelectedOptions:!1,components:{Option:rT,MultiValue:X8},onChange:a=>o(a),value:n,styles:{control:a=>({...a,width:t,height:"0.1rem",textAlign:"left",outline:"none",borderRadius:"5px",border:"2px solid #ccc",maxHeight:"200px",overflowY:"auto",background:i==="dark"?"#000000":"#ffffff"}),menu:a=>({...a,zIndex:"2"}),menuList:a=>({...a,textAlign:"left",background:i==="dark"?"#000000":"#ffffff"}),option:(a,s)=>{const l=i==="dark",u=i==="light",c=s.isSelected,f=s.isFocused;return{...a,color:c?"#ffffff":l&&f?"#000000":"inherit",background:(()=>{if(l){if(c)return"blue";if(f)return"#ffffff"}if(u){if(c)return"#2684FF";if(f)return"#B2D4FF"}return"initial"})()}},placeholder:a=>({...a,color:i==="dark"?"#b0b3b8":"grey"})}})})},Y8=[{label:"Easy",value:M.Easy},{label:"Medium",value:M.Medium},{label:"Hard",value:M.Hard}],Q8=({checked:e,setNewChallenge:t,label:n,className:r,containerClass:i})=>O.jsxs("div",{className:i,children:[O.jsx("input",{className:r,type:"checkbox",id:"checkbox",name:"checkbox",onChange:o=>t(o.target.checked),checked:e}),O.jsx("label",{htmlFor:"checkbox",children:n})]}),J8="_segment_2sm8x_1",Z8="_segmentBtn_2sm8x_8",YS={segment:J8,segmentBtn:Z8};function ez({tag:e,setTag:t,setSelectedChallengesByTags:n}){return O.jsx("div",{className:YS.segment,children:Object.entries(q).map(([r,i])=>O.jsx("button",{"data-active":e===i,className:YS.segmentBtn,onClick:()=>{t(i),n([i])},children:i},r))})}const tz=({searchInput:e,setSearchInput:t,optionSelected:n,setOptionSelected:r,selectedDifficulties:i,setSelectedDifficulties:o,links:a,tag:s,setTag:l,setSelectedChallengesByTags:u,setNewChallenge:c,newChallenge:f})=>{const d=w.useMemo(()=>{const g=new Map;for(const[p,m]of df)g.set(p,m);const S=[];return g.forEach((p,m)=>{m!==""&&(p==null?void 0:p.name)!==""&&S.push({value:m,label:p==null?void 0:p.name})}),S},[]);return O.jsxs("div",{className:ot.filterOptionWrapper,children:[O.jsxs("div",{className:ot.searchInputWrapper,children:[O.jsx("input",{type:"text",name:"searchTextInput",placeholder:"Search challenge...",className:ot.searchInput,value:e,onChange:g=>t(g.target.value.trim())}),O.jsx(s4,{size:15,className:ot.searchIcon})]}),O.jsx(XS,{data:d,optionSelected:n,setOptionSelected:g=>r(g)}),O.jsx(XS,{data:Y8,optionSelected:i,setOptionSelected:g=>o(g)}),O.jsx(Q8,{className:ot.checkbox,checked:f,setNewChallenge:c,label:"New Challenges",containerClass:ot.checkboxContainer}),O.jsx(ez,{tag:s,setTag:l,setSelectedChallengesByTags:u}),O.jsx("div",{className:ot.filterByTechWrapper,children:a.map(g=>O.jsx(Fc,{to:`/${g.tech}`,children:O.jsx("img",{src:g.imgSrc,width:35,height:35,className:g.active?ot.activeTech:"",alt:`filter by ${g.tech}`})},g.tech))})]})};function nz({challenges:e,linkPrefix:t,links:n,techImg:r}){const i=R4(),[o,a]=w.useState(i.searchInput),[s,l]=w.useState(e),[u,c]=w.useState(i.optionSelected),[f,d]=w.useState(i.selectedDifficulties),[g,S]=w.useState(i.selectedChallengesByTags),[p,m]=w.useState(i.tag),[h,y]=w.useState(i.newChallenge);return w.useEffect(()=>{l(()=>T4({challenges:[...e.values()],title:o,contributors:u,difficulties:f,tags:g,newChallenge:h}));const v={searchInput:o,optionSelected:u,selectedDifficulties:f,tag:p,selectedChallengesByTags:g,newChallenge:h};sessionStorage.setItem("searchFilters",JSON.stringify(v)),!o&&!u&&!f&&!h&&l(e)},[e,o,u,f,p,g,h]),O.jsxs("div",{className:ot.container,children:[O.jsx(tz,{links:n,searchInput:o,setSearchInput:a,optionSelected:u,setOptionSelected:c,selectedDifficulties:f,setSelectedDifficulties:d,setSelectedChallengesByTags:S,tag:p,setTag:m,newChallenge:h,setNewChallenge:y}),s.length?O.jsx("div",{className:ot.challengeGrid,children:s.map(v=>O.jsx(L6,{link:t+v.link,contributor:df.get(v.developer),challenge:v,techImg:r},v.title))}):O.jsxs("div",{className:ot.emptyMessage,children:["No challenges found..."," ",O.jsxs("div",{children:["maybe try adding one"," ",O.jsxs("a",{href:"https://github.com/sadanandpai/frontend-mini-challenges/blob/main/CONTRIBUTING.md#challenge-contribution",target:"_blank",rel:"noopener noreferrer",children:["here"," "]}),"🤓"]})]})]})}var rz={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:sr,VITE_CSS_APP_URL:iz,VITE_JS_APP_URL:oz,VITE_REACT_APP_URL:az,VITE_VUE_APP_URL:sz,VITE_NG_APP_URL:lz,DEV:rl}=rz,uz=rl?`${iz}${sr}`:`/${sr}`,cz=rl?`${oz}${sr}`:`/${sr}`,fz=rl?`${az}${sr}`:`/${sr}`,dz=rl?`${sz}${sr}`:`/${sr}`,hz=rl?`${lz}${sr}`:`/${sr}`,uo=new Map([["css",{title:"CSS",challenges:mP,link:uz+"/css/src/challenges/",imgSrc:Iv}],["javascript",{title:"JS",challenges:vP,link:cz+"/javascript/src/challenges/",imgSrc:Nv}],["react",{title:"React",challenges:gP,link:fz+"/react/#/",imgSrc:Vv}],["vue",{title:"Vue",challenges:yP,link:dz+"/vue/#",imgSrc:jv}],["angular",{title:"Angular",challenges:SP,link:hz+"/angular/#",imgSrc:Dv}]]),QS=Array.from(uo.keys());function pz(){const{tech:e}=CM(),t=kx();if(w.useEffect(()=>{(!e||!QS.includes(e))&&t("/")},[t,e]),!e||!uo.get(e))return null;const n=QS.map(r=>({tech:r,imgSrc:uo.get(r).imgSrc,active:r===e}));return O.jsxs(O.Fragment,{children:[O.jsx(ag,{}),O.jsxs("div",{className:"container text-center",children:[O.jsx(nz,{challenges:[...uo.get(e).challenges.values()],linkPrefix:uo.get(e).link,links:n,techImg:uo.get(e).imgSrc}),O.jsx(pP,{})]})]})}const mz=zM([{path:"/leaderboard",element:O.jsx(a6,{})},{path:"/:tech",element:O.jsx(pz,{})},{path:"/",element:O.jsx(b4,{})}]);Kd.createRoot(document.getElementById("root")).render(O.jsx(qe.StrictMode,{children:O.jsx(r4,{children:O.jsx(YM,{router:mz})})})); diff --git a/docs/javascript/assets/header-fEhtFTNi.js b/docs/css/assets/header-C4h0fwPc.js similarity index 95% rename from docs/javascript/assets/header-fEhtFTNi.js rename to docs/css/assets/header-C4h0fwPc.js index 2522c8729..43827822c 100644 --- a/docs/javascript/assets/header-fEhtFTNi.js +++ b/docs/css/assets/header-C4h0fwPc.js @@ -1 +1 @@ -import{j as d}from"./navbar-V0H2mwQu.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; +import{c as d}from"./navbar-DsfoHSrr.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; diff --git a/docs/css/assets/index-Bawy9_8u.js b/docs/css/assets/index-B82ICcIk.js similarity index 94% rename from docs/css/assets/index-Bawy9_8u.js rename to docs/css/assets/index-B82ICcIk.js index f34fadc62..43671a799 100644 --- a/docs/css/assets/index-Bawy9_8u.js +++ b/docs/css/assets/index-B82ICcIk.js @@ -1 +1 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";const k=document.getElementById("showDialog"),e=document.getElementById("dialogPopup"),u=document.querySelectorAll(".closeDialog"),c=document.getElementById("closeOnOutsideClick"),n=document.getElementById("closeOnEscape"),o=document.getElementById("hasCloseButton"),s=document.getElementById("hasBackdrop"),l=document.getElementById("closeIcon");k.addEventListener("click",()=>{e.showModal()});u.forEach(t=>t.addEventListener("click",()=>{e.close()}));d();function d(){e.addEventListener("click",i)}function i(t){t.target.nodeName==="DIALOG"&&e.close()}c.addEventListener("click",()=>{c.checked?d():e.removeEventListener("click",i)});a();function a(){e.removeEventListener("keydown",r)}function r(t){t.key==="Escape"&&t.preventDefault()}n.addEventListener("click",()=>{n.checked?a():e.addEventListener("keydown",r)});o.addEventListener("click",()=>{o.checked?l.style.display="block":l.style.display="none"});s.addEventListener("click",()=>{s.checked?e.style.setProperty("--backdrop-opacity",.5):e.style.setProperty("--backdrop-opacity",0)}); +import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const k=document.getElementById("showDialog"),e=document.getElementById("dialogPopup"),u=document.querySelectorAll(".closeDialog"),c=document.getElementById("closeOnOutsideClick"),n=document.getElementById("closeOnEscape"),o=document.getElementById("hasCloseButton"),s=document.getElementById("hasBackdrop"),l=document.getElementById("closeIcon");k.addEventListener("click",()=>{e.showModal()});u.forEach(t=>t.addEventListener("click",()=>{e.close()}));d();function d(){e.addEventListener("click",i)}function i(t){t.target.nodeName==="DIALOG"&&e.close()}c.addEventListener("click",()=>{c.checked?d():e.removeEventListener("click",i)});a();function a(){e.removeEventListener("keydown",r)}function r(t){t.key==="Escape"&&t.preventDefault()}n.addEventListener("click",()=>{n.checked?a():e.addEventListener("keydown",r)});o.addEventListener("click",()=>{o.checked?l.style.display="block":l.style.display="none"});s.addEventListener("click",()=>{s.checked?e.style.setProperty("--backdrop-opacity",.5):e.style.setProperty("--backdrop-opacity",0)}); diff --git a/docs/css/assets/index-BW70jZCk.js b/docs/css/assets/index-Btl89E7F.js similarity index 94% rename from docs/css/assets/index-BW70jZCk.js rename to docs/css/assets/index-Btl89E7F.js index 646d3968e..4ac8131d2 100644 --- a/docs/css/assets/index-BW70jZCk.js +++ b/docs/css/assets/index-Btl89E7F.js @@ -1 +1 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";function i(e,n){const t=document.createElement(e);for(let l in n)t.setAttribute(l,n[l]);return t}function m(e,n,t=0){const l=document.createDocumentFragment();for(let r=t;r{const n=i("span",{class:"star","data-index":e}),t=i("span",{class:"star-partial","data-index":e});return t.textContent="★",n.textContent="☆",n.appendChild(t),n},1));const s=c.querySelectorAll(".star");function y(e){const n=Math.floor(e);for(let t=0;tu(+e.target.value));d.setAttribute("max",o);u(f); +import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";function i(e,n){const t=document.createElement(e);for(let l in n)t.setAttribute(l,n[l]);return t}function m(e,n,t=0){const l=document.createDocumentFragment();for(let r=t;r{const n=i("span",{class:"star","data-index":e}),t=i("span",{class:"star-partial","data-index":e});return t.textContent="★",n.textContent="☆",n.appendChild(t),n},1));const s=c.querySelectorAll(".star");function y(e){const n=Math.floor(e);for(let t=0;tu(+e.target.value));d.setAttribute("max",o);u(f); diff --git a/docs/css/assets/index-CnnaOylX.js b/docs/css/assets/index-CXV0u4G4.js similarity index 91% rename from docs/css/assets/index-CnnaOylX.js rename to docs/css/assets/index-CXV0u4G4.js index 2bd4533a2..77fd7b895 100644 --- a/docs/css/assets/index-CnnaOylX.js +++ b/docs/css/assets/index-CXV0u4G4.js @@ -1 +1 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";const s=document.querySelectorAll(".accordion-item"),t=document.getElementById("multiple-open-checkbox");let n=!1;const l=(e,o)=>{e.classList.remove("open"),o.classList.remove("open"),e.style.maxHeight=null},d=(e,o)=>{e.style.maxHeight=e.scrollHeight+"px",e.classList.add("open"),o.classList.add("open")},i=()=>{s.forEach(e=>{const o=e.querySelector(".accordion-panel"),c=e.querySelector(".accordion-arrow");l(o,c)})};t.addEventListener("change",function(){t.checked?n=!0:(n=!1,i())});s.forEach(e=>{const o=e.querySelector(".accordion-header"),c=e.querySelector(".accordion-panel"),r=e.querySelector(".accordion-arrow");o.addEventListener("click",()=>{const a=c.classList.contains("open");n||i(),a?l(c,r):d(c,r)})}); +import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const s=document.querySelectorAll(".accordion-item"),t=document.getElementById("multiple-open-checkbox");let n=!1;const l=(e,o)=>{e.classList.remove("open"),o.classList.remove("open"),e.style.maxHeight=null},d=(e,o)=>{e.style.maxHeight=e.scrollHeight+"px",e.classList.add("open"),o.classList.add("open")},i=()=>{s.forEach(e=>{const o=e.querySelector(".accordion-panel"),c=e.querySelector(".accordion-arrow");l(o,c)})};t.addEventListener("change",function(){t.checked?n=!0:(n=!1,i())});s.forEach(e=>{const o=e.querySelector(".accordion-header"),c=e.querySelector(".accordion-panel"),r=e.querySelector(".accordion-arrow");o.addEventListener("click",()=>{const a=c.classList.contains("open");n||i(),a?l(c,r):d(c,r)})}); diff --git a/docs/css/assets/index-CXJIkRV4.js b/docs/css/assets/index-Csou1Z_M.js similarity index 69% rename from docs/css/assets/index-CXJIkRV4.js rename to docs/css/assets/index-Csou1Z_M.js index add7604a1..1c707ef3e 100644 --- a/docs/css/assets/index-CXJIkRV4.js +++ b/docs/css/assets/index-Csou1Z_M.js @@ -1 +1 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); +import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const e=document.querySelector(".burger-menu"),t=document.querySelector(".nav-links");e.addEventListener("click",()=>{t.classList.toggle("active")}); diff --git a/docs/css/assets/index-CZKUp2Q4.js b/docs/css/assets/index-CtDiHECs.js similarity index 79% rename from docs/css/assets/index-CZKUp2Q4.js rename to docs/css/assets/index-CtDiHECs.js index 9e8233733..92cff5f3b 100644 --- a/docs/css/assets/index-CZKUp2Q4.js +++ b/docs/css/assets/index-CtDiHECs.js @@ -1 +1 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";const e=document.getElementById("themeSwitch"),t=document.getElementById("innnerThemeSwitch");e.addEventListener("change",function(){e.checked?(document.body.classList.add("dark"),t.checked=!0):(document.body.classList.remove("dark"),t.checked=!1)}); +import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const e=document.getElementById("themeSwitch"),t=document.getElementById("innnerThemeSwitch");e.addEventListener("change",function(){e.checked?(document.body.classList.add("dark"),t.checked=!0):(document.body.classList.remove("dark"),t.checked=!1)}); diff --git a/docs/css/assets/index-aLQ0t_eH.js b/docs/css/assets/index-DlF0nm40.js similarity index 98% rename from docs/css/assets/index-aLQ0t_eH.js rename to docs/css/assets/index-DlF0nm40.js index b005a29ba..fa5d04dac 100644 --- a/docs/css/assets/index-aLQ0t_eH.js +++ b/docs/css/assets/index-DlF0nm40.js @@ -1,2 +1,2 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";const f=document.querySelector(".slider"),n=document.querySelector(".leftButton"),o=document.querySelector(".rightButton"),X=document.querySelector(".leftButton span"),q=document.querySelector(".rightButton span"),w=document.getElementById("leftcolor"),C=document.getElementById("rightcolor"),g=document.getElementById("position"),$=document.getElementById("rotation"),N=document.getElementById("random"),h=document.getElementById("preview"),W=document.getElementById("copy"),S=document.querySelector(".full-screen"),k=document.querySelector(".close");let b=!1,E,I=90,i,r,L,l=0,y=100,u=parseInt(f.getBoundingClientRect().width-20);function c(){E=`linear-gradient(${I}deg, ${i} ${l}%, ${r} ${y}%)`,h.style.background=E,f.style.background=E}function M(){const t=Math.floor(Math.random()*256),e=Math.floor(Math.random()*256),m=Math.floor(Math.random()*256);return`rgb(${t}, ${e}, ${m})`}function R(t,e,m){const a=x=>{const d=x.toString(16);return d.length===1?"0"+d:d},s=a(t),p=a(e),v=a(m);return`#${s}${p}${v}`}function D(t){t=t.replace(/^#/,"");const e=parseInt(t,16),m=e>>16&255,a=e>>8&255,s=e&255;return{r:m,g:a,b:s}}function H(){i=M(),r=M(),c(),X.style.background=`${i} ${l}%`,q.style.background=`${r} ${y}%`;const t=R(parseInt(i.slice(4,-1).split(", ")[0]),parseInt(i.slice(4,-1).split(", ")[1]),parseInt(i.slice(4,-1).split(", ")[2])),e=R(parseInt(r.slice(4,-1).split(", ")[0]),parseInt(r.slice(4,-1).split(", ")[1]),parseInt(r.slice(4,-1).split(", ")[2]));w.value=t,C.value=e,$.value=`${I}°`}function B(t,e){b=!0;const a=(e.type.startsWith("touch")?e.touches[0].clientX:e.clientX)-t.getBoundingClientRect().left;u=parseInt(f.getBoundingClientRect().width-20);function s(v){if(b){const x=v.type.startsWith("touch")?v.touches[0].clientX:v.clientX,d=parseInt(Math.min(u,Math.max(0,x-f.getBoundingClientRect().left-a)));t===n?(l=parseInt(d/u*100),g.value=`${l}%`):t===o&&(y=parseInt(d/u*100),g.value=`${y}%`),c(),t.style.transform=`translate3d(${d}px, -50%, 0px)`}}function p(){b=!1,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",p)}document.addEventListener("mousemove",s),document.addEventListener("mouseup",p),document.addEventListener("touchmove",s),document.addEventListener("touchend",p)}n.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});n.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});w.addEventListener("input",()=>{const t=w.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(i=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),X.style.background=`${i} ${l}%`)}});C.addEventListener("input",()=>{const t=C.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(r=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),q.style.background=`${r} ${l}%`)}});g.addEventListener("change",()=>{const t=parseInt(g.value);L=t/100*u,!isNaN(t)&&t>=0&&t<=100&&(n.classList.contains("active")?(l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):o.classList.contains("active")?(y=t,o.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):(n.classList.add("active"),l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()),g.value=`${t}%`)});$.addEventListener("change",()=>{const t=parseInt($.value);!isNaN(t)&&t>=0&&t<=360&&(I=t,c(),$.value=`${I}°`)});N.addEventListener("click",H);W.addEventListener("click",()=>{document.execCommand("copy"),alert(`CSS copied to clipboard: +import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const f=document.querySelector(".slider"),n=document.querySelector(".leftButton"),o=document.querySelector(".rightButton"),X=document.querySelector(".leftButton span"),q=document.querySelector(".rightButton span"),w=document.getElementById("leftcolor"),C=document.getElementById("rightcolor"),g=document.getElementById("position"),$=document.getElementById("rotation"),N=document.getElementById("random"),h=document.getElementById("preview"),W=document.getElementById("copy"),S=document.querySelector(".full-screen"),k=document.querySelector(".close");let b=!1,E,I=90,i,r,L,l=0,y=100,u=parseInt(f.getBoundingClientRect().width-20);function c(){E=`linear-gradient(${I}deg, ${i} ${l}%, ${r} ${y}%)`,h.style.background=E,f.style.background=E}function M(){const t=Math.floor(Math.random()*256),e=Math.floor(Math.random()*256),m=Math.floor(Math.random()*256);return`rgb(${t}, ${e}, ${m})`}function R(t,e,m){const a=x=>{const d=x.toString(16);return d.length===1?"0"+d:d},s=a(t),p=a(e),v=a(m);return`#${s}${p}${v}`}function D(t){t=t.replace(/^#/,"");const e=parseInt(t,16),m=e>>16&255,a=e>>8&255,s=e&255;return{r:m,g:a,b:s}}function H(){i=M(),r=M(),c(),X.style.background=`${i} ${l}%`,q.style.background=`${r} ${y}%`;const t=R(parseInt(i.slice(4,-1).split(", ")[0]),parseInt(i.slice(4,-1).split(", ")[1]),parseInt(i.slice(4,-1).split(", ")[2])),e=R(parseInt(r.slice(4,-1).split(", ")[0]),parseInt(r.slice(4,-1).split(", ")[1]),parseInt(r.slice(4,-1).split(", ")[2]));w.value=t,C.value=e,$.value=`${I}°`}function B(t,e){b=!0;const a=(e.type.startsWith("touch")?e.touches[0].clientX:e.clientX)-t.getBoundingClientRect().left;u=parseInt(f.getBoundingClientRect().width-20);function s(v){if(b){const x=v.type.startsWith("touch")?v.touches[0].clientX:v.clientX,d=parseInt(Math.min(u,Math.max(0,x-f.getBoundingClientRect().left-a)));t===n?(l=parseInt(d/u*100),g.value=`${l}%`):t===o&&(y=parseInt(d/u*100),g.value=`${y}%`),c(),t.style.transform=`translate3d(${d}px, -50%, 0px)`}}function p(){b=!1,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",s),document.removeEventListener("touchend",p)}document.addEventListener("mousemove",s),document.addEventListener("mouseup",p),document.addEventListener("touchmove",s),document.addEventListener("touchend",p)}n.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("mousedown",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});n.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.add("active"),o.classList.remove("active"),B(n,t)});o.addEventListener("touchstart",t=>{t.preventDefault(),n.classList.remove("active"),o.classList.add("active"),B(o,t)});w.addEventListener("input",()=>{const t=w.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(i=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),X.style.background=`${i} ${l}%`)}});C.addEventListener("input",()=>{const t=C.value;if(/^#[0-9A-F]{6}$/i.test(t)){const e=D(t);e&&(r=`rgb(${e.r}, ${e.g}, ${e.b})`,c(),q.style.background=`${r} ${l}%`)}});g.addEventListener("change",()=>{const t=parseInt(g.value);L=t/100*u,!isNaN(t)&&t>=0&&t<=100&&(n.classList.contains("active")?(l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):o.classList.contains("active")?(y=t,o.style.transform=`translate3d(${L}px, -50%, 0px)`,c()):(n.classList.add("active"),l=t,n.style.transform=`translate3d(${L}px, -50%, 0px)`,c()),g.value=`${t}%`)});$.addEventListener("change",()=>{const t=parseInt($.value);!isNaN(t)&&t>=0&&t<=360&&(I=t,c(),$.value=`${I}°`)});N.addEventListener("click",H);W.addEventListener("click",()=>{document.execCommand("copy"),alert(`CSS copied to clipboard: `+E)});S.addEventListener("click",()=>{h.classList.remove("preview"),h.classList.add("full-screen-mode"),S.style.display="none",k.style.display="block"});k.addEventListener("click",()=>{h.classList.add("preview"),h.classList.remove("full-screen-mode"),S.style.display="block",k.style.display="none"});function P(){u=parseInt(f.getBoundingClientRect().width-20),o.style.transform=`translate3d(${u}px, -50%, 0px)`}window.addEventListener("load",()=>{P(),H()});window.addEventListener("resize",()=>{P()}); diff --git a/docs/css/assets/index-BjmFnFxY.js b/docs/css/assets/index-ZvMbrF7t.js similarity index 91% rename from docs/css/assets/index-BjmFnFxY.js rename to docs/css/assets/index-ZvMbrF7t.js index 52e7ce5ca..10b20388e 100644 --- a/docs/css/assets/index-BjmFnFxY.js +++ b/docs/css/assets/index-ZvMbrF7t.js @@ -1 +1 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";const r=document.getElementById("css-code"),t=document.querySelectorAll("input[type='range']");t.forEach(function(e){e.addEventListener("input",s)});const o=document.querySelectorAll("input[type='number']");o.forEach(function(e){e.addEventListener("change",s)});function s(){const e=t[0].value,n=t[1].value,c=t[2].value,u=t[3].value,i=o[0].value,l=o[1].value,d=`${e}% ${100-e}% ${100-c}% ${c}% / ${u}% ${n}% ${100-n}% ${100-u}%`;document.getElementById("blob").style.cssText=`border-radius: ${d}; height: ${i}px; width: ${l}px`,r.value=`border-radius: ${d};`}document.getElementById("copy").addEventListener("click",function(){r.select(),document.execCommand("copy"),alert("Code copied!")}); +import"./header-C4h0fwPc.js";import"./navbar-DsfoHSrr.js";const r=document.getElementById("css-code"),t=document.querySelectorAll("input[type='range']");t.forEach(function(e){e.addEventListener("input",s)});const o=document.querySelectorAll("input[type='number']");o.forEach(function(e){e.addEventListener("change",s)});function s(){const e=t[0].value,n=t[1].value,c=t[2].value,u=t[3].value,i=o[0].value,l=o[1].value,d=`${e}% ${100-e}% ${100-c}% ${c}% / ${u}% ${n}% ${100-n}% ${100-u}%`;document.getElementById("blob").style.cssText=`border-radius: ${d}; height: ${i}px; width: ${l}px`,r.value=`border-radius: ${d};`}document.getElementById("copy").addEventListener("click",function(){r.select(),document.execCommand("copy"),alert("Code copied!")}); diff --git a/docs/css/assets/index-DmVHxV_y.js b/docs/css/assets/index-vKstxybl.js similarity index 89% rename from docs/css/assets/index-DmVHxV_y.js rename to docs/css/assets/index-vKstxybl.js index f51b23739..1e7f41e58 100644 --- a/docs/css/assets/index-DmVHxV_y.js +++ b/docs/css/assets/index-vKstxybl.js @@ -1 +1 @@ -import"./header-DOqA3JaG.js";import"./navbar-DQevBeIJ.js";const r=document.querySelector("#items"),o=document.querySelector("#stagger"),e=document.querySelector(".stagger-wrapper");function s(i=1){const a=document.createDocumentFragment();for(let t=0;t -`,y="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/css/assets/github-KMwwOUMo.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),b=n(w),M=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);n(M);const E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/css/`:`/${s}/#/css/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=b.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/css/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{b as c}; +`,y="/frontend-mini-challenges/css/assets/logo-Cv_hAIcG.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/css/assets/github-KMwwOUMo.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]),b=n(w),M=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]);n(M);const E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/css/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/css/`:`/${s}/#/css/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=b.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/css/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{b as c}; diff --git a/docs/css/src/challenges/accordion/index.html b/docs/css/src/challenges/accordion/index.html index 10b978b95..633bbf93a 100644 --- a/docs/css/src/challenges/accordion/index.html +++ b/docs/css/src/challenges/accordion/index.html @@ -2,9 +2,9 @@ - - - + + + diff --git a/docs/css/src/challenges/blobmaker/index.html b/docs/css/src/challenges/blobmaker/index.html index 5e717a449..aa57a1e6c 100644 --- a/docs/css/src/challenges/blobmaker/index.html +++ b/docs/css/src/challenges/blobmaker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/dialog/index.html b/docs/css/src/challenges/dialog/index.html index fa129822f..edf3bab96 100644 --- a/docs/css/src/challenges/dialog/index.html +++ b/docs/css/src/challenges/dialog/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/dynamic-tooltip/index.html b/docs/css/src/challenges/dynamic-tooltip/index.html index b445727a3..b6c77972d 100644 --- a/docs/css/src/challenges/dynamic-tooltip/index.html +++ b/docs/css/src/challenges/dynamic-tooltip/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/footer/index.html b/docs/css/src/challenges/footer/index.html index 63cbd81f9..ac2aadb49 100644 --- a/docs/css/src/challenges/footer/index.html +++ b/docs/css/src/challenges/footer/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/gradient-generator/index.html b/docs/css/src/challenges/gradient-generator/index.html index be9fd5097..0401fab5c 100644 --- a/docs/css/src/challenges/gradient-generator/index.html +++ b/docs/css/src/challenges/gradient-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/light-dark-mode/index.html b/docs/css/src/challenges/light-dark-mode/index.html index 261a7d0c5..fa575acc0 100644 --- a/docs/css/src/challenges/light-dark-mode/index.html +++ b/docs/css/src/challenges/light-dark-mode/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/loaders/index.html b/docs/css/src/challenges/loaders/index.html index fc80a6644..6706d8710 100644 --- a/docs/css/src/challenges/loaders/index.html +++ b/docs/css/src/challenges/loaders/index.html @@ -1,8 +1,8 @@ - - + + diff --git a/docs/css/src/challenges/navigation-bar/index.html b/docs/css/src/challenges/navigation-bar/index.html index 37f0545f7..236976376 100644 --- a/docs/css/src/challenges/navigation-bar/index.html +++ b/docs/css/src/challenges/navigation-bar/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/shapes/index.html b/docs/css/src/challenges/shapes/index.html index 7c37889cb..b6742930f 100644 --- a/docs/css/src/challenges/shapes/index.html +++ b/docs/css/src/challenges/shapes/index.html @@ -1,8 +1,8 @@ - - + + diff --git a/docs/css/src/challenges/skeleton-loader/index.html b/docs/css/src/challenges/skeleton-loader/index.html index 69210876e..1ccc0d6c6 100644 --- a/docs/css/src/challenges/skeleton-loader/index.html +++ b/docs/css/src/challenges/skeleton-loader/index.html @@ -2,8 +2,8 @@ - - + + diff --git a/docs/css/src/challenges/stagger-animation/index.html b/docs/css/src/challenges/stagger-animation/index.html index df4203b0b..a76a91f8f 100644 --- a/docs/css/src/challenges/stagger-animation/index.html +++ b/docs/css/src/challenges/stagger-animation/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/css/src/challenges/star-rating-display/index.html b/docs/css/src/challenges/star-rating-display/index.html index e14b16d26..acc02bd67 100644 --- a/docs/css/src/challenges/star-rating-display/index.html +++ b/docs/css/src/challenges/star-rating-display/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/index.html b/docs/index.html index d3a9ec87e..3f48f82db 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,7 @@ /> Frontend Mini Challenges - + diff --git a/docs/css/assets/header-DOqA3JaG.js b/docs/javascript/assets/header-Lm9KQkip.js similarity index 95% rename from docs/css/assets/header-DOqA3JaG.js rename to docs/javascript/assets/header-Lm9KQkip.js index d2aa651b3..147a4d2cc 100644 --- a/docs/css/assets/header-DOqA3JaG.js +++ b/docs/javascript/assets/header-Lm9KQkip.js @@ -1 +1 @@ -import{c as d}from"./navbar-DQevBeIJ.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; +import{j as d}from"./navbar-7u3xAeMJ.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))a(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const o of t.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&a(o)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function a(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const l=document.createElement("meta");l.setAttribute("charset","UTF-8");const i=document.createElement("meta");i.setAttribute("name","viewport");i.setAttribute("content","width=device-width, initial-scale=1.0");const s=document.createElement("meta");s.setAttribute("http-equiv","X-UA-Compatible");s.setAttribute("content","IE=edge");const r=document.createElement("link");r.setAttribute("rel","icon");r.setAttribute("type","image/svg+xml");r.setAttribute("href","https://github.com/sadanandpai/frontend-mini-challenges/raw/main/shared/assets/core/logo.png");const m=[l,i,s,r];m.forEach(c=>document.head.prepend(c));const f=window.location.pathname.split("/challenges/")[1].slice(0,-1),p=d.get(f);document.title=p.title; diff --git a/docs/javascript/assets/index-J7gw5EeT.js b/docs/javascript/assets/index--6gezNEF.js similarity index 97% rename from docs/javascript/assets/index-J7gw5EeT.js rename to docs/javascript/assets/index--6gezNEF.js index 5219a3d70..88b0c5f68 100644 --- a/docs/javascript/assets/index-J7gw5EeT.js +++ b/docs/javascript/assets/index--6gezNEF.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const l=document.getElementById("grid");class a{constructor(e,t=3){this.gridSize=t,this.root=e,this.grid=[],this.currentPlayer="X",this.winner=null,this.cellFilled=0,this.populateGrid(),this.addEventListeners()}populateGrid(){this.root.appendChild(this.createGrid());const e=this.root.children;for(let t=0;t{e.target.classList.contains("cell")&&this.winner===null&&this.play(e.target)})}play(e){var t,i;if(e.textContent===""){if(this.set(e.dataset.x,e.dataset.y,this.currentPlayer),this.cellFilled+=1,this.checkWinner()){this.winner=this.currentPlayer,(t=this.winnerCallback)==null||t.call(this,this.winner);return}else if(this.cellFilled===this.gridSize*this.gridSize){this.winner="Draw",(i=this.winnerCallback)==null||i.call(this,this.winner);return}this.changePlayer()}}changePlayer(){this.currentPlayer=this.currentPlayer==="X"?"O":"X"}set(e,t,i){this.grid[e][t].textContent=i}checkWinner(){return this.isRowHasWinner(0)||this.isRowHasWinner(1)||this.isRowHasWinner(2)||this.isColHasWinner(0)||this.isColHasWinner(1)||this.isColHasWinner(2)||this.checkDiagonal()||this.checkDiagonalReverse()}isRowHasWinner(e){const t=this.grid[e][0].textContent;return this.grid[e].every(i=>i.textContent===t)?t:!1}isColHasWinner(e){const t=this.grid[0][e].textContent;return this.grid.map(i=>i[e]).every(i=>i.textContent===t)?t:!1}checkDiagonal(){const e=this.grid[0][0].textContent;for(let t=0;t{e.forEach(t=>{t.textContent=""})}),this.currentPlayer="X",this.winner=null,this.cellFilled=0}}const s=new a(l);s.winnerCallback=r=>{switch(r){case"X":document.getElementById("winner").textContent="Player X won!";break;case"O":document.getElementById("winner").textContent="Player O won!";break;default:document.getElementById("winner").textContent="Draw!"}};document.getElementById("reset").addEventListener("click",()=>{s.reset(),document.getElementById("winner").textContent=""}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.getElementById("grid");class a{constructor(e,t=3){this.gridSize=t,this.root=e,this.grid=[],this.currentPlayer="X",this.winner=null,this.cellFilled=0,this.populateGrid(),this.addEventListeners()}populateGrid(){this.root.appendChild(this.createGrid());const e=this.root.children;for(let t=0;t{e.target.classList.contains("cell")&&this.winner===null&&this.play(e.target)})}play(e){var t,i;if(e.textContent===""){if(this.set(e.dataset.x,e.dataset.y,this.currentPlayer),this.cellFilled+=1,this.checkWinner()){this.winner=this.currentPlayer,(t=this.winnerCallback)==null||t.call(this,this.winner);return}else if(this.cellFilled===this.gridSize*this.gridSize){this.winner="Draw",(i=this.winnerCallback)==null||i.call(this,this.winner);return}this.changePlayer()}}changePlayer(){this.currentPlayer=this.currentPlayer==="X"?"O":"X"}set(e,t,i){this.grid[e][t].textContent=i}checkWinner(){return this.isRowHasWinner(0)||this.isRowHasWinner(1)||this.isRowHasWinner(2)||this.isColHasWinner(0)||this.isColHasWinner(1)||this.isColHasWinner(2)||this.checkDiagonal()||this.checkDiagonalReverse()}isRowHasWinner(e){const t=this.grid[e][0].textContent;return this.grid[e].every(i=>i.textContent===t)?t:!1}isColHasWinner(e){const t=this.grid[0][e].textContent;return this.grid.map(i=>i[e]).every(i=>i.textContent===t)?t:!1}checkDiagonal(){const e=this.grid[0][0].textContent;for(let t=0;t{e.forEach(t=>{t.textContent=""})}),this.currentPlayer="X",this.winner=null,this.cellFilled=0}}const s=new a(l);s.winnerCallback=r=>{switch(r){case"X":document.getElementById("winner").textContent="Player X won!";break;case"O":document.getElementById("winner").textContent="Player O won!";break;default:document.getElementById("winner").textContent="Draw!"}};document.getElementById("reset").addEventListener("click",()=>{s.reset(),document.getElementById("winner").textContent=""}); diff --git a/docs/javascript/assets/index-344fFmZK.js b/docs/javascript/assets/index--sBM6KCw.js similarity index 90% rename from docs/javascript/assets/index-344fFmZK.js rename to docs/javascript/assets/index--sBM6KCw.js index 47a59c2e5..a4b40ddf6 100644 --- a/docs/javascript/assets/index-344fFmZK.js +++ b/docs/javascript/assets/index--sBM6KCw.js @@ -1,4 +1,4 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const l=document.querySelector("form"),s=document.querySelector("#file-input"),c=document.querySelector("#selected-file-area");l.addEventListener("click",()=>{s.click()});s.onchange=({target:e})=>{const t=e.files[0];let n=t.name;if(t){const i=o(n);i.length>12&&(n=i.substring(0,12)+"... "+a(n))}r(n)};function o(e){const t=e.lastIndexOf(".");return e.substr(0,t)}function a(e){const t=e.lastIndexOf(".");return e.slice(t)}function r(e){const t=`
+import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.querySelector("form"),s=document.querySelector("#file-input"),c=document.querySelector("#selected-file-area");l.addEventListener("click",()=>{s.click()});s.onchange=({target:e})=>{const t=e.files[0];let n=t.name;if(t){const i=o(n);i.length>12&&(n=i.substring(0,12)+"... "+a(n))}r(n)};function o(e){const t=e.lastIndexOf(".");return e.substr(0,t)}function a(e){const t=e.lastIndexOf(".");return e.slice(t)}function r(e){const t=`
diff --git a/docs/javascript/assets/index-Qu58pSpZ.js b/docs/javascript/assets/index--zF3jDPY.js similarity index 99% rename from docs/javascript/assets/index-Qu58pSpZ.js rename to docs/javascript/assets/index--zF3jDPY.js index 300cd360e..e9e405549 100644 --- a/docs/javascript/assets/index-Qu58pSpZ.js +++ b/docs/javascript/assets/index--zF3jDPY.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const v=[{question:"A flashing red traffic light signifies that a driver should do what?",options:["stop","speed up","proceed with caution","honk the horn"],correct:"stop",id:"0"},{question:"A knish is traditionally stuffed with what filling?",options:["potato","creamed corn","lemon custard","raspberry jelly"],correct:"potato",id:"1"},{question:"A pita is a type of what?",options:["fresh fruit","flat bread","French tart","friend bean dip"],correct:"flat bread",id:"2"},{question:"A portrait that comically exaggerates a person's physical traits is called a what?",options:["landscape","caricature","still life","Impressionism"],correct:"caricature",id:"3"},{question:"A second-year college student is usually called a what?",options:["sophomore","senior","freshman ","junior "],correct:"sophomore",id:"4"},{question:"A student who earns a J.D. can begin his or her career as a what?",options:["lawyer","bricklayer","doctor","accountant"],correct:"lawyer",id:"5"},{question:"A triptych is a work of art that is painted on how many panels?",options:["two","three","five","eight"],correct:"three",id:"6"},{question:"According to a famous line from the existentialist play 'No Exit' what is hell?",options:["oneself","other people","little made large","hued in green and blue"],correct:"other people",id:"7"},{question:"According to a popular slogan, what state should people not 'mess with'?",options:["New York","Texas","Montana","Rhode Island"],correct:"Texas",id:"8"},{question:"According to a Yale University study, what smell is the most recognizable to American adults?",options:["tuna","laundry","popcorn","coffee"],correct:"coffee",id:"9"},{question:"According to folklore, the 'jackalope' is an antlered version of what animal?",options:["chicken","rabbit","moose","snake"],correct:"rabbit",id:"10"},{question:"According to Greek mythology, who was Apollo's twin sister?",options:["Aphrodite","Artemis","Venus","Athena"],correct:"Artemis",id:"11"},{question:"According to legend, if you give someone the 'evil eye' what are you doing?",options:["cursing them","blessing a child","counting money","passing time"],correct:"cursing them",id:"12"},{question:"According to legend, in what country are you most likely to meet a leprechaun?",options:["Ireland","Poland","Greenland","Scotland"],correct:"Ireland",id:"13"},{question:"According to the American Kennel Club, what is the most popular breed of dog in the US as of 1999?",options:["Poodle","Beagle","German shepherd","Labrador retriever"],correct:"Labrador retriever",id:"14"},{question:"According to the Bible, Moses and Aaron had a sister named what?",options:["Jochebed","Ruth","Leah","Miriam"],correct:"Miriam",id:"15"},{question:"According to the children's nursery rhyme, what type of ocean did Columbus sail in 1492?",options:["calm","blue","windy","really big"],correct:"blue",id:"16"},{question:"According to the Mother Goose nursery rhyme, which child is full of woe?",options:["Monday's child","Wednesday's child","Thursday's child","Saturday's child"],correct:"Wednesday's child",id:"17"},{question:"According to the popular saying, what should you do 'when in Rome'?",options:["watch your wallet","see the Coliseum","as the Romans do","don't drink the water"],correct:"as the Romans do",id:"18"},{question:"According to the proverb, necessity is the mother of what?",options:["Invention","Luck","Problems","Procrastination"],correct:"Invention",id:"19"},{question:"According to the title of a popular children's TV show, what color is Bear's big house?",options:["red","green","purple","blue"],correct:"blue",id:"20"},{question:"According to the USDA, which food group should you eat the most servings of per day?",options:["vegetables","dairy","meats","breads"],correct:"breads",id:"21"},{question:"Ada Lovelace is credited with being the first person to have made what?",options:["a computer program","a souffle","a brassiere","a mystery novel"],correct:"a computer program",id:"22"},{question:"After Prince Charles, who is next in line to be the king of England?",options:["Prince William","Prince Andrew","Prince Edward","Fresh Prince"],correct:"Prince William",id:"23"},{question:"An airplane's black box is usually what color?",options:["black","white","orange","purple"],correct:"orange",id:"24"},{question:"As of 1999, which state has the most Girl Scouts?",options:["California","Illinois","New York","Pennsylvania"],correct:"California",id:"25"},{question:"Astronaut John Glenn served as a pilot in what branch of the military?",options:["Army","Air Force","Marines","Navy"],correct:"Marines",id:"26"},{question:"At the equator, how fast is the earth's surface turning?",options:["about 100 miles per hour","about 500 miles per hour","about 1000 miles per hour","about 2000 miles per hour"],correct:"about 1000 miles per hour",id:"27"},{question:"At what age can someone first attend an R-rated movie without an accompanying adult?",options:["15","17","18","21"],correct:"18",id:"28"},{question:"Backgammon is a how many player game?",options:["Two","Three","Four","Six"],correct:"Two",id:"29"},{question:"Before he went into coaching, Phil Jackson played for which of the following NBA teams?",options:["Boston Celtics","Los Angeles Lakers","New York Knicks","Philadelphia 76ers"],correct:"New York Knicks",id:"30"},{question:"By what name is Bob Keeshan better known?",options:["Bozo the Clown","Pee Wee Herman","Captain Kangaroo","Buffalo Bob"],correct:"Captain Kangaroo",id:"31"},{question:"By what collective name do Christians refer to God the Father, God the Son and the Holy Ghost?",options:["the Trio","the Troika","the Triumvirate","the Trinity"],correct:"the Trinity",id:"32"},{question:"By what nickname is the Federal National Mortgage Association known?",options:["Morty","FEMA","Freddie Mac","Fannie Mae"],correct:"Fannie Mae",id:"33"},{question:"Cheddar cheese got its name from a village in what country?",options:["England","France","Switzerland","Denmark"],correct:"England",id:"34"},{question:"Cheese is a necessary ingredient in which of these dishes?",options:["sushi","french fries","veal parmigiano","chicken pot pie"],correct:"veal parmigiano",id:"35"},{question:"During what war did Francis Scott Key write the words to 'The Star-Spangled Banner'?",options:["American Revolution","War of 1812","Civil War","World War I"],correct:"War of 1812",id:"36"},{question:"During which war did US troops fight the Battle of New Orleans?",options:["American Revolution","Civil War","Mexican War","War of 1812"],correct:"War of 1812",id:"37"},{question:"Each year in pro baseball, the player voted as the best fielder at his position wins what?",options:["a brand new car","the Gold Glove","the Silver Bat","the Brass Baseball"],correct:"the Gold Glove",id:"38"},{question:"Elephant tusks are made of what material?",options:["coral","ivory","bone","calcium"],correct:"ivory",id:"39"},{question:"Excluding wisdom teeth, how many adult teeth do humans have?",options:["28","32","35","40"],correct:"28",id:"40"},{question:"For a man and woman on a date, 'dutch treat' means what?",options:["the man pays","the woman pays","the Dutch pay","each pays their own way"],correct:"each pays their own way",id:"41"},{question:"For what purpose would you use an awl?",options:["to shoot ducks","to polish floors","to make holes","to weigh fruit"],correct:"to make holes",id:"42"},{question:"From 1971 to 1997, the Democratic Republic of Congo was known as what?",options:["Zaire","Angola","Rhodesia","Belgian Congo"],correct:"Zaire",id:"43"},{question:"From what language does the term 'R.S.V.P.' originate?",options:["Russian","Italian","Portuguese","French"],correct:"French",id:"44"},{question:"From whom does the Lutheran Church get its name?",options:["Martin Luther King Jr","Martin Luther","Luther Vandross","Lex Luthor"],correct:"Martin Luther",id:"45"},{question:"Gerry Adams is the president of what organization?",options:["Greenpeace","NASCAR","Sinn Fein","PLO"],correct:"Sinn Fein",id:"46"},{question:"Girls of what religious community traditionally wear bonnets?",options:["Amish","Sikh","Roman Catholic","Christian"],correct:"Amish",id:"47"},{question:"How are actors Charlie Sheen and Emilio Estevez related?",options:["they're cousins","they're brothers","they're father and son","they're uncle and nephew"],correct:"they're brothers",id:"48"},{question:"How do you express 3/4 as a decimal?",options:[".25",".50",".75",".90"],correct:".75",id:"49"},{question:"How is 4:00 pm expressed in military time?",options:["1600","004","0400 ","4:00"],correct:"1600",id:"50"},{question:"How is the Arabic numeral for '2' written?",options:["2","II","I","ii"],correct:"2",id:"51"},{question:"How is the word 'ambulance' normally written on the front of American ambulances?",options:["in French","in reverse","in braille","in gibberish"],correct:"in reverse",id:"52"},{question:"How long is a single term in the US Senate?",options:["two years","four years","six years","eight years"],correct:"six years",id:"53"},{question:"How long is the time on an NBA shot clock?",options:["18 seconds","24 seconds","30 seconds","35 seconds"],correct:"24 seconds",id:"54"},{question:"How many $100 bills does it take to equal one million dollars?",options:["one thousand","five thousand","ten thousand","one hundred thousand"],correct:"ten thousand",id:"55"},{question:"How many axles does a standard automobile have?",options:["one","two","four","eight"],correct:"two",id:"56"},{question:"How many digits are in a standard Visa credit card number?",options:["12","15","16","20"],correct:"16",id:"57"},{question:"How many eyes does a Giraffe have?",options:["one","two","three","four"],correct:"two",id:"58"},{question:"How many innings are there in a regular Major League Baseball game?",options:["seven","eight","nine","ten"],correct:"nine",id:"59"},{question:"How many keys are on a standard piano?",options:["20","54","88","100"],correct:"88",id:"60"},{question:"How many men has actress Elizabeth Taylor been divorced from?",options:["five","six","seven","eight"],correct:"seven",id:"61"},{question:"How many ounces are in a pound?",options:["4","12","16","32"],correct:"16",id:"62"},{question:"How many periods are there in an ice hockey game?",options:["One","Two","Three","Four"],correct:"Three",id:"63"},{question:"How many quarts are there in a gallon?",options:["one","two","three","four"],correct:"four",id:"64"},{question:"How many ribs are there in the human body?",options:["18","24","30","42"],correct:"24",id:"65"},{question:"How many ships did Columbus set sail with on his initial voyage to the New World?",options:["Two","Three","Five","Ten"],correct:"Three",id:"66"},{question:"How many spikes are on the Statue of Liberty's crown?",options:["five","seven","nine","thirteen"],correct:"seven",id:"67"},{question:"How many stars are on the American flag?",options:["13","48","50","51"],correct:"50",id:"68"},{question:"How many states were in the Confederate States of America?",options:["11","13","16","22"],correct:"11",id:"69"},{question:"How much does Peanuts character Lucy charge for her psychiatric advice?",options:["5 cents","10 cents","75 cents","$125"],correct:"5 cents",id:"70"},{question:"How long is Hanukkah?",options:["one day","five days","eight days","two weeks"],correct:"eight days",id:"71"},{question:"Huffy, Schwinn and Raleigh are all brands of what?",options:["sportswear","dishwashers","cigarettes","bicycles"],correct:"bicycles",id:"72"},{question:"If a business files under Chapter 11 what is it doing?",options:["declaring bankruptcy","selling stock","buying a smaller","company suing the government"],correct:"declaring bankruptcy",id:"73"},{question:"If a piece of music is in 'common time' how many quarter notes are there per measure?",options:["one","four","five","ten"],correct:"four",id:"74"},{question:"If a ring has the number 925 stamped into it, it is most likely made of what material?",options:["platinum","gold","steel","silver"],correct:"silver",id:"75"},{question:"If Christmas Day is on a Saturday, then the following New Year's Day falls on what day of the week?",options:["Sunday","Monday","Friday","Saturday"],correct:"Saturday",id:"76"},{question:"If someone has cataracts, what part of their body might need an operation?",options:["ear","hand","eye","knee"],correct:"eye",id:"77"},{question:"If you are 'riding fakie' inside a 'half pipe' what are you probably doing?",options:["skiing","biking","snowboarding","surfing"],correct:"snowboarding",id:"78"},{question:"If you are truly afraid of the dark, what do you suffer from?",options:["hypnophobia","cryptophobia","hadephobia","nyctophobia"],correct:"nyctophobia",id:"79"}],l=document.querySelector(".time-left"),y=document.getElementById("container"),A=document.getElementById("next-button"),u=document.querySelector(".number-of-question"),h=document.getElementById("display-container"),w=document.querySelector(".score-container"),k=document.getElementById("restart"),L=document.getElementById("user-score"),f=document.querySelector(".start-screen"),C=document.getElementById("start-button");let r=0,p=0,s=10,c,n=[];function H(e,o){return e.sort(()=>Math.random()-.5).slice(0,o)}function g(){r+=1,clearInterval(c),r===n.length?(h.classList.add("hide"),w.classList.remove("hide"),L.innerHTML="Your score is "+p+" out of "+n.length):(s=10,l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",b(r),q())}k.addEventListener("click",()=>{m(),h.classList.remove("hide"),w.classList.add("hide")});A.addEventListener("click",g);const q=()=>{c=setInterval(()=>{s--,l.innerHTML=`${s}s`,s===0&&(clearInterval(c),g())},1e3)},b=e=>{const o=document.querySelectorAll(".container-mid");e{t.classList.add("hide")}),o[e].classList.remove("hide"))};function S(){for(const e of n){const o=document.createElement("div");o.classList.add("container-mid","hide"),u.innerHTML="1 of "+n.length+" Question";const t=document.createElement("p");t.classList.add("question"),t.innerHTML=e.question,o.appendChild(t);for(let a=0;aI(i,e),o.appendChild(i)}y.appendChild(o)}}function I(e,o){const t=e.textContent,a=o.correct,i=e.parentElement.querySelectorAll(".option-div");if(t===a)e.classList.add("correct"),p++;else{e.classList.add("incorrect");for(const d of i)d.textContent===a&&d.classList.add("correct")}clearInterval(c),i.forEach(d=>{d.disabled=!0})}function m(){y.innerHTML="",r=0,p=0,s=10,c&&clearInterval(c),l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",S(),b(r),q()}C.addEventListener("click",()=>{f.classList.add("hide"),h.classList.remove("hide"),m()});window.onload=()=>{f.classList.remove("hide"),h.classList.add("hide")};n=H(v,10);m(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const v=[{question:"A flashing red traffic light signifies that a driver should do what?",options:["stop","speed up","proceed with caution","honk the horn"],correct:"stop",id:"0"},{question:"A knish is traditionally stuffed with what filling?",options:["potato","creamed corn","lemon custard","raspberry jelly"],correct:"potato",id:"1"},{question:"A pita is a type of what?",options:["fresh fruit","flat bread","French tart","friend bean dip"],correct:"flat bread",id:"2"},{question:"A portrait that comically exaggerates a person's physical traits is called a what?",options:["landscape","caricature","still life","Impressionism"],correct:"caricature",id:"3"},{question:"A second-year college student is usually called a what?",options:["sophomore","senior","freshman ","junior "],correct:"sophomore",id:"4"},{question:"A student who earns a J.D. can begin his or her career as a what?",options:["lawyer","bricklayer","doctor","accountant"],correct:"lawyer",id:"5"},{question:"A triptych is a work of art that is painted on how many panels?",options:["two","three","five","eight"],correct:"three",id:"6"},{question:"According to a famous line from the existentialist play 'No Exit' what is hell?",options:["oneself","other people","little made large","hued in green and blue"],correct:"other people",id:"7"},{question:"According to a popular slogan, what state should people not 'mess with'?",options:["New York","Texas","Montana","Rhode Island"],correct:"Texas",id:"8"},{question:"According to a Yale University study, what smell is the most recognizable to American adults?",options:["tuna","laundry","popcorn","coffee"],correct:"coffee",id:"9"},{question:"According to folklore, the 'jackalope' is an antlered version of what animal?",options:["chicken","rabbit","moose","snake"],correct:"rabbit",id:"10"},{question:"According to Greek mythology, who was Apollo's twin sister?",options:["Aphrodite","Artemis","Venus","Athena"],correct:"Artemis",id:"11"},{question:"According to legend, if you give someone the 'evil eye' what are you doing?",options:["cursing them","blessing a child","counting money","passing time"],correct:"cursing them",id:"12"},{question:"According to legend, in what country are you most likely to meet a leprechaun?",options:["Ireland","Poland","Greenland","Scotland"],correct:"Ireland",id:"13"},{question:"According to the American Kennel Club, what is the most popular breed of dog in the US as of 1999?",options:["Poodle","Beagle","German shepherd","Labrador retriever"],correct:"Labrador retriever",id:"14"},{question:"According to the Bible, Moses and Aaron had a sister named what?",options:["Jochebed","Ruth","Leah","Miriam"],correct:"Miriam",id:"15"},{question:"According to the children's nursery rhyme, what type of ocean did Columbus sail in 1492?",options:["calm","blue","windy","really big"],correct:"blue",id:"16"},{question:"According to the Mother Goose nursery rhyme, which child is full of woe?",options:["Monday's child","Wednesday's child","Thursday's child","Saturday's child"],correct:"Wednesday's child",id:"17"},{question:"According to the popular saying, what should you do 'when in Rome'?",options:["watch your wallet","see the Coliseum","as the Romans do","don't drink the water"],correct:"as the Romans do",id:"18"},{question:"According to the proverb, necessity is the mother of what?",options:["Invention","Luck","Problems","Procrastination"],correct:"Invention",id:"19"},{question:"According to the title of a popular children's TV show, what color is Bear's big house?",options:["red","green","purple","blue"],correct:"blue",id:"20"},{question:"According to the USDA, which food group should you eat the most servings of per day?",options:["vegetables","dairy","meats","breads"],correct:"breads",id:"21"},{question:"Ada Lovelace is credited with being the first person to have made what?",options:["a computer program","a souffle","a brassiere","a mystery novel"],correct:"a computer program",id:"22"},{question:"After Prince Charles, who is next in line to be the king of England?",options:["Prince William","Prince Andrew","Prince Edward","Fresh Prince"],correct:"Prince William",id:"23"},{question:"An airplane's black box is usually what color?",options:["black","white","orange","purple"],correct:"orange",id:"24"},{question:"As of 1999, which state has the most Girl Scouts?",options:["California","Illinois","New York","Pennsylvania"],correct:"California",id:"25"},{question:"Astronaut John Glenn served as a pilot in what branch of the military?",options:["Army","Air Force","Marines","Navy"],correct:"Marines",id:"26"},{question:"At the equator, how fast is the earth's surface turning?",options:["about 100 miles per hour","about 500 miles per hour","about 1000 miles per hour","about 2000 miles per hour"],correct:"about 1000 miles per hour",id:"27"},{question:"At what age can someone first attend an R-rated movie without an accompanying adult?",options:["15","17","18","21"],correct:"18",id:"28"},{question:"Backgammon is a how many player game?",options:["Two","Three","Four","Six"],correct:"Two",id:"29"},{question:"Before he went into coaching, Phil Jackson played for which of the following NBA teams?",options:["Boston Celtics","Los Angeles Lakers","New York Knicks","Philadelphia 76ers"],correct:"New York Knicks",id:"30"},{question:"By what name is Bob Keeshan better known?",options:["Bozo the Clown","Pee Wee Herman","Captain Kangaroo","Buffalo Bob"],correct:"Captain Kangaroo",id:"31"},{question:"By what collective name do Christians refer to God the Father, God the Son and the Holy Ghost?",options:["the Trio","the Troika","the Triumvirate","the Trinity"],correct:"the Trinity",id:"32"},{question:"By what nickname is the Federal National Mortgage Association known?",options:["Morty","FEMA","Freddie Mac","Fannie Mae"],correct:"Fannie Mae",id:"33"},{question:"Cheddar cheese got its name from a village in what country?",options:["England","France","Switzerland","Denmark"],correct:"England",id:"34"},{question:"Cheese is a necessary ingredient in which of these dishes?",options:["sushi","french fries","veal parmigiano","chicken pot pie"],correct:"veal parmigiano",id:"35"},{question:"During what war did Francis Scott Key write the words to 'The Star-Spangled Banner'?",options:["American Revolution","War of 1812","Civil War","World War I"],correct:"War of 1812",id:"36"},{question:"During which war did US troops fight the Battle of New Orleans?",options:["American Revolution","Civil War","Mexican War","War of 1812"],correct:"War of 1812",id:"37"},{question:"Each year in pro baseball, the player voted as the best fielder at his position wins what?",options:["a brand new car","the Gold Glove","the Silver Bat","the Brass Baseball"],correct:"the Gold Glove",id:"38"},{question:"Elephant tusks are made of what material?",options:["coral","ivory","bone","calcium"],correct:"ivory",id:"39"},{question:"Excluding wisdom teeth, how many adult teeth do humans have?",options:["28","32","35","40"],correct:"28",id:"40"},{question:"For a man and woman on a date, 'dutch treat' means what?",options:["the man pays","the woman pays","the Dutch pay","each pays their own way"],correct:"each pays their own way",id:"41"},{question:"For what purpose would you use an awl?",options:["to shoot ducks","to polish floors","to make holes","to weigh fruit"],correct:"to make holes",id:"42"},{question:"From 1971 to 1997, the Democratic Republic of Congo was known as what?",options:["Zaire","Angola","Rhodesia","Belgian Congo"],correct:"Zaire",id:"43"},{question:"From what language does the term 'R.S.V.P.' originate?",options:["Russian","Italian","Portuguese","French"],correct:"French",id:"44"},{question:"From whom does the Lutheran Church get its name?",options:["Martin Luther King Jr","Martin Luther","Luther Vandross","Lex Luthor"],correct:"Martin Luther",id:"45"},{question:"Gerry Adams is the president of what organization?",options:["Greenpeace","NASCAR","Sinn Fein","PLO"],correct:"Sinn Fein",id:"46"},{question:"Girls of what religious community traditionally wear bonnets?",options:["Amish","Sikh","Roman Catholic","Christian"],correct:"Amish",id:"47"},{question:"How are actors Charlie Sheen and Emilio Estevez related?",options:["they're cousins","they're brothers","they're father and son","they're uncle and nephew"],correct:"they're brothers",id:"48"},{question:"How do you express 3/4 as a decimal?",options:[".25",".50",".75",".90"],correct:".75",id:"49"},{question:"How is 4:00 pm expressed in military time?",options:["1600","004","0400 ","4:00"],correct:"1600",id:"50"},{question:"How is the Arabic numeral for '2' written?",options:["2","II","I","ii"],correct:"2",id:"51"},{question:"How is the word 'ambulance' normally written on the front of American ambulances?",options:["in French","in reverse","in braille","in gibberish"],correct:"in reverse",id:"52"},{question:"How long is a single term in the US Senate?",options:["two years","four years","six years","eight years"],correct:"six years",id:"53"},{question:"How long is the time on an NBA shot clock?",options:["18 seconds","24 seconds","30 seconds","35 seconds"],correct:"24 seconds",id:"54"},{question:"How many $100 bills does it take to equal one million dollars?",options:["one thousand","five thousand","ten thousand","one hundred thousand"],correct:"ten thousand",id:"55"},{question:"How many axles does a standard automobile have?",options:["one","two","four","eight"],correct:"two",id:"56"},{question:"How many digits are in a standard Visa credit card number?",options:["12","15","16","20"],correct:"16",id:"57"},{question:"How many eyes does a Giraffe have?",options:["one","two","three","four"],correct:"two",id:"58"},{question:"How many innings are there in a regular Major League Baseball game?",options:["seven","eight","nine","ten"],correct:"nine",id:"59"},{question:"How many keys are on a standard piano?",options:["20","54","88","100"],correct:"88",id:"60"},{question:"How many men has actress Elizabeth Taylor been divorced from?",options:["five","six","seven","eight"],correct:"seven",id:"61"},{question:"How many ounces are in a pound?",options:["4","12","16","32"],correct:"16",id:"62"},{question:"How many periods are there in an ice hockey game?",options:["One","Two","Three","Four"],correct:"Three",id:"63"},{question:"How many quarts are there in a gallon?",options:["one","two","three","four"],correct:"four",id:"64"},{question:"How many ribs are there in the human body?",options:["18","24","30","42"],correct:"24",id:"65"},{question:"How many ships did Columbus set sail with on his initial voyage to the New World?",options:["Two","Three","Five","Ten"],correct:"Three",id:"66"},{question:"How many spikes are on the Statue of Liberty's crown?",options:["five","seven","nine","thirteen"],correct:"seven",id:"67"},{question:"How many stars are on the American flag?",options:["13","48","50","51"],correct:"50",id:"68"},{question:"How many states were in the Confederate States of America?",options:["11","13","16","22"],correct:"11",id:"69"},{question:"How much does Peanuts character Lucy charge for her psychiatric advice?",options:["5 cents","10 cents","75 cents","$125"],correct:"5 cents",id:"70"},{question:"How long is Hanukkah?",options:["one day","five days","eight days","two weeks"],correct:"eight days",id:"71"},{question:"Huffy, Schwinn and Raleigh are all brands of what?",options:["sportswear","dishwashers","cigarettes","bicycles"],correct:"bicycles",id:"72"},{question:"If a business files under Chapter 11 what is it doing?",options:["declaring bankruptcy","selling stock","buying a smaller","company suing the government"],correct:"declaring bankruptcy",id:"73"},{question:"If a piece of music is in 'common time' how many quarter notes are there per measure?",options:["one","four","five","ten"],correct:"four",id:"74"},{question:"If a ring has the number 925 stamped into it, it is most likely made of what material?",options:["platinum","gold","steel","silver"],correct:"silver",id:"75"},{question:"If Christmas Day is on a Saturday, then the following New Year's Day falls on what day of the week?",options:["Sunday","Monday","Friday","Saturday"],correct:"Saturday",id:"76"},{question:"If someone has cataracts, what part of their body might need an operation?",options:["ear","hand","eye","knee"],correct:"eye",id:"77"},{question:"If you are 'riding fakie' inside a 'half pipe' what are you probably doing?",options:["skiing","biking","snowboarding","surfing"],correct:"snowboarding",id:"78"},{question:"If you are truly afraid of the dark, what do you suffer from?",options:["hypnophobia","cryptophobia","hadephobia","nyctophobia"],correct:"nyctophobia",id:"79"}],l=document.querySelector(".time-left"),y=document.getElementById("container"),A=document.getElementById("next-button"),u=document.querySelector(".number-of-question"),h=document.getElementById("display-container"),w=document.querySelector(".score-container"),k=document.getElementById("restart"),L=document.getElementById("user-score"),f=document.querySelector(".start-screen"),C=document.getElementById("start-button");let r=0,p=0,s=10,c,n=[];function H(e,o){return e.sort(()=>Math.random()-.5).slice(0,o)}function g(){r+=1,clearInterval(c),r===n.length?(h.classList.add("hide"),w.classList.remove("hide"),L.innerHTML="Your score is "+p+" out of "+n.length):(s=10,l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",b(r),q())}k.addEventListener("click",()=>{m(),h.classList.remove("hide"),w.classList.add("hide")});A.addEventListener("click",g);const q=()=>{c=setInterval(()=>{s--,l.innerHTML=`${s}s`,s===0&&(clearInterval(c),g())},1e3)},b=e=>{const o=document.querySelectorAll(".container-mid");e{t.classList.add("hide")}),o[e].classList.remove("hide"))};function S(){for(const e of n){const o=document.createElement("div");o.classList.add("container-mid","hide"),u.innerHTML="1 of "+n.length+" Question";const t=document.createElement("p");t.classList.add("question"),t.innerHTML=e.question,o.appendChild(t);for(let a=0;aI(i,e),o.appendChild(i)}y.appendChild(o)}}function I(e,o){const t=e.textContent,a=o.correct,i=e.parentElement.querySelectorAll(".option-div");if(t===a)e.classList.add("correct"),p++;else{e.classList.add("incorrect");for(const d of i)d.textContent===a&&d.classList.add("correct")}clearInterval(c),i.forEach(d=>{d.disabled=!0})}function m(){y.innerHTML="",r=0,p=0,s=10,c&&clearInterval(c),l.innerHTML=`${s}s`,u.innerHTML=r+1+" of "+n.length+" Question",S(),b(r),q()}C.addEventListener("click",()=>{f.classList.add("hide"),h.classList.remove("hide"),m()});window.onload=()=>{f.classList.remove("hide"),h.classList.add("hide")};n=H(v,10);m(); diff --git a/docs/javascript/assets/index-UKlxbWv0.js b/docs/javascript/assets/index-1EOrkoZY.js similarity index 90% rename from docs/javascript/assets/index-UKlxbWv0.js rename to docs/javascript/assets/index-1EOrkoZY.js index 3e25e4309..341b01c29 100644 --- a/docs/javascript/assets/index-UKlxbWv0.js +++ b/docs/javascript/assets/index-1EOrkoZY.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const o=document.getElementById("progress");let e=!1,i;const a=document.querySelector(".progress-controller"),l=document.getElementById("start"),r=document.getElementById("stop");document.getElementById("reset");r.disabled=!0;a.addEventListener("click",u);function u(t){const s=t.target.id;s==="start"&&!e?g():s==="stop"&&e?n():s==="reset"&&(n(),c(0))}function n(){e=!1,m(),l.disabled=!1,r.disabled=!0}function g(){e=!0,d(),l.disabled=!0,r.disabled=!1}function d(){let t=.1+f();t<=100&&(c(t),i=requestAnimationFrame(d))}function m(){cancelAnimationFrame(i)}function f(){return+o.style.width.split("%")[0]}function c(t){o.style.width=t+"%"} +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const o=document.getElementById("progress");let e=!1,i;const a=document.querySelector(".progress-controller"),l=document.getElementById("start"),r=document.getElementById("stop");document.getElementById("reset");r.disabled=!0;a.addEventListener("click",u);function u(t){const s=t.target.id;s==="start"&&!e?g():s==="stop"&&e?n():s==="reset"&&(n(),c(0))}function n(){e=!1,m(),l.disabled=!1,r.disabled=!0}function g(){e=!0,d(),l.disabled=!0,r.disabled=!1}function d(){let t=.1+f();t<=100&&(c(t),i=requestAnimationFrame(d))}function m(){cancelAnimationFrame(i)}function f(){return+o.style.width.split("%")[0]}function c(t){o.style.width=t+"%"} diff --git a/docs/javascript/assets/index-iGlLamQb.js b/docs/javascript/assets/index-1s-CQ7B4.js similarity index 94% rename from docs/javascript/assets/index-iGlLamQb.js rename to docs/javascript/assets/index-1s-CQ7B4.js index 29449dc1e..76850ee9a 100644 --- a/docs/javascript/assets/index-iGlLamQb.js +++ b/docs/javascript/assets/index-1s-CQ7B4.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";function u(e,t=e){const a=document.createDocumentFragment();for(let n=0;n=0;o--,c++)r(e.querySelector(`[data-x='${o}'][data-y='${s-c}']`)),r(e.querySelector(`[data-x='${o}'][data-y='${s+c}']`));for(let o=t+1,c=1,s=a;o=0;o--,c++)r(e.querySelector(`[data-x='${o}'][data-y='${s-c}']`)),r(e.querySelector(`[data-x='${o}'][data-y='${s+c}']`));for(let o=t+1,c=1,s=a;o{e.preventDefault();const t=s.value;t&&c(t)});function c(e){const t=d.content.cloneNode(!0);t.querySelector(".text").textContent=e,a.appendChild(t),s.value=""}a.addEventListener("click",e=>{if(e.target.classList.contains("delete"))e.target.parentElement.remove();else if(e.target.classList.contains("edit")){const t=e.target,o=e.target.parentElement.querySelector(".text"),n=document.createElement("input");n.value=o.textContent,t.parentElement.replaceChild(n,o),t.textContent="💾",t.className="save"}else if(e.target.classList.contains("save")){const t=e.target,o=e.target.parentElement.querySelector("input"),n=document.createElement("span");n.className="text",n.textContent=o.value,t.parentElement.replaceChild(n,o),t.textContent="✏️",t.className="edit"}});l.forEach(c); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=["JavaScript","HTML","CSS","React","Angular","Zustand","NextJS","TypeScript"],a=document.getElementById("listContainer"),s=document.getElementById("todoItemInput"),r=document.getElementById("todoForm"),d=document.getElementById("todo");r.addEventListener("submit",e=>{e.preventDefault();const t=s.value;t&&c(t)});function c(e){const t=d.content.cloneNode(!0);t.querySelector(".text").textContent=e,a.appendChild(t),s.value=""}a.addEventListener("click",e=>{if(e.target.classList.contains("delete"))e.target.parentElement.remove();else if(e.target.classList.contains("edit")){const t=e.target,o=e.target.parentElement.querySelector(".text"),n=document.createElement("input");n.value=o.textContent,t.parentElement.replaceChild(n,o),t.textContent="💾",t.className="save"}else if(e.target.classList.contains("save")){const t=e.target,o=e.target.parentElement.querySelector("input"),n=document.createElement("span");n.className="text",n.textContent=o.value,t.parentElement.replaceChild(n,o),t.textContent="✏️",t.className="edit"}});l.forEach(c); diff --git a/docs/javascript/assets/index-nlypv41I.js b/docs/javascript/assets/index-2MclBnUG.js similarity index 92% rename from docs/javascript/assets/index-nlypv41I.js rename to docs/javascript/assets/index-2MclBnUG.js index 2e1b68c5d..39d169f82 100644 --- a/docs/javascript/assets/index-nlypv41I.js +++ b/docs/javascript/assets/index-2MclBnUG.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const r=document.getElementById("form"),t=document.getElementById("input"),i=document.getElementById("submit"),o=document.getElementById("output"),l=document.getElementById("guessDisplay"),s=document.getElementById("startGame");let e=[],n;function m(){o.textContent="",l.textContent="",e=[],n=Math.round(Math.random()*100),t.disabled=!1,i.disabled=!1,s.disabled=!0,t.focus()}function a(u){o.textContent=u,t.disabled=!0,i.disabled=!0,s.disabled=!1,s.focus()}function c(u){u.preventDefault();const d=+t.value;if(t.value="",e.push(d),l.textContent=`Your guesses: ${e.join(", ")}`,d>n)o.textContent="Too high!";else if(d=10&&a("You lost! The number was "+n)}r.addEventListener("submit",c);s.addEventListener("click",m);m(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const r=document.getElementById("form"),t=document.getElementById("input"),i=document.getElementById("submit"),o=document.getElementById("output"),l=document.getElementById("guessDisplay"),s=document.getElementById("startGame");let e=[],n;function m(){o.textContent="",l.textContent="",e=[],n=Math.round(Math.random()*100),t.disabled=!1,i.disabled=!1,s.disabled=!0,t.focus()}function a(u){o.textContent=u,t.disabled=!0,i.disabled=!0,s.disabled=!1,s.focus()}function c(u){u.preventDefault();const d=+t.value;if(t.value="",e.push(d),l.textContent=`Your guesses: ${e.join(", ")}`,d>n)o.textContent="Too high!";else if(d=10&&a("You lost! The number was "+n)}r.addEventListener("submit",c);s.addEventListener("click",m);m(); diff --git a/docs/javascript/assets/index-mL6az8CU.js b/docs/javascript/assets/index-3xFoa--y.js similarity index 95% rename from docs/javascript/assets/index-mL6az8CU.js rename to docs/javascript/assets/index-3xFoa--y.js index 7ba79d55a..9c79ff952 100644 --- a/docs/javascript/assets/index-mL6az8CU.js +++ b/docs/javascript/assets/index-3xFoa--y.js @@ -1 +1 @@ -var m=Object.defineProperty;var u=(i,t,s)=>t in i?m(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(u(i,typeof t!="symbol"?t+"":t,s),s);import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const c=document.getElementById("display");document.getElementById("controls");class S{constructor(t,s,n,l,a,d,o,h){e(this,"msbRegex",/^[0-5]$/);e(this,"lsbRegex",/^[0-9]$/);e(this,"minutes",0);e(this,"seconds",0);e(this,"onClick",t=>{t.target.tagName==="INPUT"?t.target.select():t.target.id==="start"?this.onStart(t):t.target.id==="stop"?this.onStop(t):t.target.id==="reset"&&this.onReset(t)});e(this,"onInput",t=>{const s=Number(t.data);typeof s=="number"&&(t.target.id==="minMSB"||t.target.id==="secMSB"?this.onValueEntry(this.msbRegex,t.target,s):(t.target.id==="minLSB"||t.target.id==="secLSB")&&this.onValueEntry(this.lsbRegex,t.target,s))});this.minMSB=document.getElementById(t),this.minLSB=document.getElementById(s),this.secMSB=document.getElementById(n),this.secLSB=document.getElementById(l),this.start=document.getElementById(a),this.stop=document.getElementById(d),this.reset=document.getElementById(o),this.display=document.getElementById(h)}onStart(){this.setControls(!0,!1),this.display.classList.add("progress"),this.setInputsDisabledStatus(!0),this.setTime(),this.startTimer()}onStop(){this.setControls(!1,!0),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1),clearInterval(this.intervalId)}onReset(){this.setControls(!1,!0),this.resetControls(),this.resetTimerValue()}setControls(t=!1,s=!1){this.start.disabled=t,this.stop.disabled=s}onValueEntry(t,s,n){var l,a;t.test(n)?(s.value=n,(l=s.nextElementSibling)==null||l.focus(),(a=s.nextElementSibling)==null||a.select()):(s.value=0,s.select())}setInputsDisabledStatus(t=!1){this.minMSB.disabled=t,this.minLSB.disabled=t,this.secMSB.disabled=t,this.secLSB.disabled=t}resetControls(){clearInterval(this.intervalId),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1)}resetTimerValue(){this.minMSB.value=0,this.minLSB.value=0,this.secMSB.value=0,this.secLSB.value=0}setTime(){this.minutes=+(this.minMSB.value+this.minLSB.value),this.seconds=+(this.secMSB.value+this.secLSB.value)}startTimer(){if(this.minutes===0&&this.seconds===0){this.onReset();return}this.intervalId=setInterval(()=>{this.seconds-=1,this.seconds<0&&(this.seconds=59,this.minutes-=1),this.minutes===0&&this.seconds===0&&this.onReset(),this.setDisplay(this.minutes,this.seconds)},1e3)}setDisplay(t,s){[this.minMSB.value,this.minLSB.value]=String(t).padStart(2,0).split(""),[this.secMSB.value,this.secLSB.value]=String(s).padStart(2,0).split("")}}const r=new S("minMSB","minLSB","secMSB","secLSB","start","stop","reset","display");c.addEventListener("input",r.onInput);document.body.addEventListener("click",r.onClick); +var m=Object.defineProperty;var u=(i,t,s)=>t in i?m(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s;var e=(i,t,s)=>(u(i,typeof t!="symbol"?t+"":t,s),s);import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("display");document.getElementById("controls");class S{constructor(t,s,n,l,a,d,o,h){e(this,"msbRegex",/^[0-5]$/);e(this,"lsbRegex",/^[0-9]$/);e(this,"minutes",0);e(this,"seconds",0);e(this,"onClick",t=>{t.target.tagName==="INPUT"?t.target.select():t.target.id==="start"?this.onStart(t):t.target.id==="stop"?this.onStop(t):t.target.id==="reset"&&this.onReset(t)});e(this,"onInput",t=>{const s=Number(t.data);typeof s=="number"&&(t.target.id==="minMSB"||t.target.id==="secMSB"?this.onValueEntry(this.msbRegex,t.target,s):(t.target.id==="minLSB"||t.target.id==="secLSB")&&this.onValueEntry(this.lsbRegex,t.target,s))});this.minMSB=document.getElementById(t),this.minLSB=document.getElementById(s),this.secMSB=document.getElementById(n),this.secLSB=document.getElementById(l),this.start=document.getElementById(a),this.stop=document.getElementById(d),this.reset=document.getElementById(o),this.display=document.getElementById(h)}onStart(){this.setControls(!0,!1),this.display.classList.add("progress"),this.setInputsDisabledStatus(!0),this.setTime(),this.startTimer()}onStop(){this.setControls(!1,!0),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1),clearInterval(this.intervalId)}onReset(){this.setControls(!1,!0),this.resetControls(),this.resetTimerValue()}setControls(t=!1,s=!1){this.start.disabled=t,this.stop.disabled=s}onValueEntry(t,s,n){var l,a;t.test(n)?(s.value=n,(l=s.nextElementSibling)==null||l.focus(),(a=s.nextElementSibling)==null||a.select()):(s.value=0,s.select())}setInputsDisabledStatus(t=!1){this.minMSB.disabled=t,this.minLSB.disabled=t,this.secMSB.disabled=t,this.secLSB.disabled=t}resetControls(){clearInterval(this.intervalId),this.display.classList.remove("progress"),this.setInputsDisabledStatus(!1)}resetTimerValue(){this.minMSB.value=0,this.minLSB.value=0,this.secMSB.value=0,this.secLSB.value=0}setTime(){this.minutes=+(this.minMSB.value+this.minLSB.value),this.seconds=+(this.secMSB.value+this.secLSB.value)}startTimer(){if(this.minutes===0&&this.seconds===0){this.onReset();return}this.intervalId=setInterval(()=>{this.seconds-=1,this.seconds<0&&(this.seconds=59,this.minutes-=1),this.minutes===0&&this.seconds===0&&this.onReset(),this.setDisplay(this.minutes,this.seconds)},1e3)}setDisplay(t,s){[this.minMSB.value,this.minLSB.value]=String(t).padStart(2,0).split(""),[this.secMSB.value,this.secLSB.value]=String(s).padStart(2,0).split("")}}const r=new S("minMSB","minLSB","secMSB","secLSB","start","stop","reset","display");c.addEventListener("input",r.onInput);document.body.addEventListener("click",r.onClick); diff --git a/docs/javascript/assets/index-RHrwHCT8.js b/docs/javascript/assets/index-5tuPAyS6.js similarity index 98% rename from docs/javascript/assets/index-RHrwHCT8.js rename to docs/javascript/assets/index-5tuPAyS6.js index ed9c6de55..452c12e31 100644 --- a/docs/javascript/assets/index-RHrwHCT8.js +++ b/docs/javascript/assets/index-5tuPAyS6.js @@ -1,4 +1,4 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const h=document.getElementById("input-floor"),E=document.getElementById("input-lift"),D=document.getElementById("btn-submit"),I=document.getElementById("form1"),y=document.getElementById("btn-reset"),b=document.getElementById("content");let c=0,m=[{id:1,floor:1},{id:2,floor:1},{id:3,floor:1},{id:4,floor:1}];const L=function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}};function g(e,t){let o,a=1/0;for(let s=0;s{location.reload(!0),h.value="",E.value="",I.style.display="flex",y.style.display="none",b.style.display="none",c=0});D.addEventListener("click",e=>{e.preventDefault();let t=h.value,o=E.value;if(t>99||t<1||o<1||o>4)alert("floor should be betwween 1- 99 and lift value should be between 1 - 4");else{I.style.display="none",y.style.display="block",b.style.display="flex";const a=Array(Number(t)).fill(0);for(let n=0;n3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}};function g(e,t){let o,a=1/0;for(let s=0;s{location.reload(!0),h.value="",E.value="",I.style.display="flex",y.style.display="none",b.style.display="none",c=0});D.addEventListener("click",e=>{e.preventDefault();let t=h.value,o=E.value;if(t>99||t<1||o<1||o>4)alert("floor should be betwween 1- 99 and lift value should be between 1 - 4");else{I.style.display="none",y.style.display="block",b.style.display="flex";const a=Array(Number(t)).fill(0);for(let n=0;n diff --git a/docs/javascript/assets/index-I5_hZ1eD.js b/docs/javascript/assets/index-7IDTvWUm.js similarity index 94% rename from docs/javascript/assets/index-I5_hZ1eD.js rename to docs/javascript/assets/index-7IDTvWUm.js index 6eed6ad56..3d5df377a 100644 --- a/docs/javascript/assets/index-I5_hZ1eD.js +++ b/docs/javascript/assets/index-7IDTvWUm.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";document.querySelector(".clock");const c=document.querySelector(".ticks"),l=document.querySelector(".hours-hand"),d=document.querySelector(".minutes-hand"),i=document.querySelector(".seconds-hand"),r=document.querySelector(".digits"),s=[12,1,2,3,4,5,6,7,8,9,10,11],n=60;for(let t=0;t({seconds:s.length/2*t.getSeconds(),minutes:s.length/2*t.getMinutes()+t.getSeconds()/10,hours:t.getMinutes()/2+t.getHours()%s.length*30}),o=()=>{const t=a(new Date);l.style.transform=`rotate(${t.hours}deg)`,d.style.transform=`rotate(${t.minutes}deg)`,i.style.transform=`rotate(${t.seconds}deg)`};setInterval(o,1e3);o(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";document.querySelector(".clock");const c=document.querySelector(".ticks"),l=document.querySelector(".hours-hand"),d=document.querySelector(".minutes-hand"),i=document.querySelector(".seconds-hand"),r=document.querySelector(".digits"),s=[12,1,2,3,4,5,6,7,8,9,10,11],n=60;for(let t=0;t({seconds:s.length/2*t.getSeconds(),minutes:s.length/2*t.getMinutes()+t.getSeconds()/10,hours:t.getMinutes()/2+t.getHours()%s.length*30}),o=()=>{const t=a(new Date);l.style.transform=`rotate(${t.hours}deg)`,d.style.transform=`rotate(${t.minutes}deg)`,i.style.transform=`rotate(${t.seconds}deg)`};setInterval(o,1e3);o(); diff --git a/docs/javascript/assets/index-2tpVcMI2.js b/docs/javascript/assets/index-9NvLSOKC.js similarity index 99% rename from docs/javascript/assets/index-2tpVcMI2.js rename to docs/javascript/assets/index-9NvLSOKC.js index 90b598019..e55aa23ea 100644 --- a/docs/javascript/assets/index-2tpVcMI2.js +++ b/docs/javascript/assets/index-9NvLSOKC.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const E="data:audio/mpeg;base64,//uSxAAAAAABpBQAAAXbyCHDL1ABw0MQQAyOsIHAx7oq+yLgiAAwMlEEYgMNnCxcZAWWBhG4MaBgW4AXjvGUAwSGgMwzXjsFsIGB4dtgZWOgHDs158kzQvgecZwLQADadPA5yjfrOE4VDMDqKxAyIvgNQDQD1kEAxIQfzcroWSAsTwPFvUDHISC1kDiyWAFIP80QWbm6DADE8DOYDAy4dgMpBYGo/A0CgQMohH/s7VppqYDBQ4AzAWACioAUZAMIg0NkA0KUwMQgsDCIB/+hvTdSCCwNRG4DGAIDBAGjyqACEgAhYBlAIAYpJoGQwmBh8DAZSMn//vepmW79QGRgcBhgGgZNKIBRTAKSYGIgwFgwM1CoEAEAxMEAM0jMDBYfAxmEwMZA4CAE////9Blpuq1q001M26001Gho8AIUAYABgGFgQHuAYvGIGNRWAcKwMPCIDFQmAaDgBw4BsHiOAM2kEDCYHAweAQNKFoDDwKACEAGfx6EgEKIBioCgZPKYGMQOBkJHAbATAEjgRAk8mwCIk0A6wgwcQn4TEaYnMkBcY//7ksQLABnCQWoZNQALFDQtV7DABXBUzYPGMRsEwiCsIQCoMhwLkgFALQhhmIsejceCwQiwLgrFCMYDYsRkpw2GQ9HTRw4kF5OPChpOVLkgvkSlyo1HhCRmkhEWPNcw84fqaQnEZxY85UONPU4kMNPNOJ0c1jUOPQgQxS7q5hzHqhhimmHIcbNMUxkqjns6MeecYjHrarnojnTrKacpx89HWYxk9mmsjGKefbejGK56MZdefstro62RjKIx1lZJNU+ehl1OSl0V5KjFay2Yv//rUSWkbRvDjhKX9aHf7VhlhT8L6WIZMUd5dD4QHNaEJ0t+hjiSDl+piiM6tFY+PS3LypqFelZaXpEStt184QoibZGeHBSbaW2PlC84ZOYY1B2mebTRKkcsHBJSxxuktw4be0o0ULKl5UmYWMkhp+6h80du3GSYdlsrXj30JFWYbnr8zGfQv+0kbcfbqePMORMqZpBKH9b0w/zdeXUpMLOO/V27G+9Zy7EN3KU8076mdtrV9pdnC/A7uP4X+A/xD/v/jpUAAAAAAAAAtsvks1bBEI3/+5LECAAXIjdlzLxtys/G7PmHmbkvI9ZU7OVY5/KsBDwg5x7i0SJoKCJFil9SB0PLPlEzKx5CTy0sK9nwrn7yV+2srU2TP5Zn1YeJYEaKHZgYxAzcBRwwgOAtBQQEwlBwQKDAyCgiEA9aLdXXF00eB68VQUeKrREFEKkQejEwIwaFg4DhErMTkTMTm5aU34bPTbNITQ5jFSikS5MaLSbpyH7xSMnNYb6ExuaOpO8qkiEpcQhX8Q/6B3/dv8GKaAABAAAAAAGakUOrJrLZB7JFYw3K2UvNjvMVEkgY7aziOjHmbzbOVmZPXLCwQ48KzE4ubA8tCfQZ38Z8zQ3kr+HCjxbwoiiSpEmLNrYdSJm5ZhXW7YtM3dPOMlBvcHzt0q1uzXRT58jbl58vPmH7a2Pn2K9a3ravw3bcnczTbKm3q4v5FRNv0rLbNLxSFs8HFbHndtslqaHZ529jZl7+zniHaf32N/8TX/7N//9jf/3r//mahQAAAAAAAAFMOKx6k+UBWh3S0OV28rrAUfFZrWWIbwzyWTR6MSdRpls9rsJ+o1AP//uSxBgAF1Y1Zcw8bcraRmz5h5m57PHzEzMqvZKvXqhYmTOndnJtswQLQnrdKxmHDiQwSAbwMDCGAIgkE4hBZMHR8ARDMjHRd8hLm91BJUDSBiCQSQNUQ2NmDugY1Eo4ta61EY42IgkiKGgls3rhpg9kB2WjIE3QWsDolIEkEGhr19CZz3NW9EzUqWiszaOykszgZm93jf6AxP/o3/QMTMKAAAAAAAALOlku01jFrkaHbI1u3Vxz3ARjoRSlMMJfSGkLZ6bvDcVEoGTztyeQpWqNn3jdlbCeTahMTExNcf5z22BApeGiiBWQ0wzUk0F1q6lBOOtU4tF2bKSlKTS/iJX8RSUl1W60tePiM05jZ9KfLea221T9sjcqm1rysd8ldGzEfqptWunovPmaxbUx/g8qnLd3a5+Z4vKbX8ZX++9yZztGV//d1M5+0S3/72VW//s+f/91AIVgAAAAAAAFXs1yQ2H5keKWx5MPDmt63ttJCJgj7YvhiYhJkA/f1vXEqMV8Te7SsqKX1GyTZkYo7Kz+SkVhZW5js8vCkfDgIoAQOv/7ksQlgBbmM2XMPG3KykXsuYYZuagIIDABlMOwpQyDmjhUMQDcyCMoSi1rCRBk7cjKQeES0hW6EhsDrhLrCAqwhxx6ohED4WG0BELjKREryhA1Ng5iGURHo4KoKpHUEnVe8RyYzPRWqkRoTkzN+7VS4jjiWP/eH//BJf/hG//oCUxKgAABAAAATjAXYqy2ZygEQBCbN7f53msoQOCOjz5ZYDoAoEgOKPyWlxVLBLM35s9DGIJ0TDxy2rTpeoXv3bZq0ZJWiDyh5OWpPYakUTj2QtOnNQ1VpNF2RY9sc+DHypLzK1Z7HxlxpVKZr2/lFstobC8XLe3vMKfO2tl5pb9vtS2xl62Xla8ZLs7b3t4zZqnyHtnzfH8Ts5933bPLftESk+//3cV8/7GSSn//+4z//9hIiIMAAAAAAAFTZuDWoRCWXSySxwRHPQmCUuWH1ChH8SYyIl8Ur2FWkFRzrM/zjGl0p48e/1WE+a1AxsbJq3evaTuFIHlKFBSyI1Pcs+SMyBTd7aR0mHmc+92q2E8bX25xcp+Hl11NPuVW3ZRbNEn/+5LENwAWZi9lzDzNysZFrHj3mbmzjvEbrUlUZi1XrzPvZqX2qbn07Vb7eMfDzjvd9BNVS7+7pVUc1v/dU8zm+OztVf+LuNnP/3fc///7OSrf//4mf//+wIlCsQAAAAAAABpLmOhTcaeEK70FkAQmvE3TOrZgsJJS5x9Ut7ZUpKS8E7Otkvv77arV02PIE19e0uUNYmS/1r109cVoFn3dkTQkomhKBBC3diQHOqyO2klEkbQVG1aMap8lsU8knQetyI7W7Yr5zGOekcQ7cps288MzvsbLaU2N9KeK3OzNtSVPzwzfVz93YiNi8qqf3uw7V67f7Ekvr/9siMrf//7JmJV///7O3///9ySI1yAAAAAvnHJ2GZiAal+zjBQVQA9tft1+d4tR8xEKLA4b37fFrspIUwXBk/tnGnyub1A3s+/v3hK5POapUcr+1qaGKNKUR4S5FkZQ9GFlClS7wdZNOLwRo0CzFD1Hikn2PRVhsZnkuTbrRXKK8cQrVXTsl6wz7Tb47WmZBrl2YNYaOUVpU0oXmDpWne7FDTxwtei3PTss//uSxEsAFgItYWw9DcrixSuSsLABLVV+7llSatf+9par/+hA45v//hFr//9wfNr6RgAANOfaWRO3BOUTwwqTwWKZGM0qUn0ymQ06NwFwQyHPvdqPWVNXAVAIIo6z8y59QbOG4njeuyYljmmxKD0bjsHsn29rLlFEkwfN0DSkJWhI1LTB5obnmHU6uHWiyT6hxWL3tk1ZKycINfF05LQh6DDek6tE8+F4N2HHtZnaiamzlH1LYbbr5q2UnsdLanfDJeyVkkm8XWynzR513P8pn0HmrW//8ve3b//vs0Pbv//e99f//8Ew8AYAAAAAAAAAggQACfWmqkiVC+QVZNAHKgJNADEYUUFkipjJ96IuEEkLpeGXGAXTFEipwZoEdG5uQ0ONrRJoZ4mi8H4idBSroEVEopJJKSSWURkQ4GkZGoywypkuktS1sKTI5ZiLNWYkNJxJMsNRatETsOEipkQIWWUC8TQ6R4N0zApGrlxbV0lUhqjSSnSKHEjKOknSdPpMQIxSWYl5Tr1/FxLMSiMuTpqZE0QFkkpEzJJZgtBNZQIMgv/7ksRdAB0aQVGZSQAKxbYeg57wAWgYG3/S/VMBkkkpMESWimLSiynJBeShDfd2LbqZEiySS2JpLOJqsSg7v6///qV+CrWWRPKKOfpOXJhZW45lE3iuhIVWK6IaZK6LchS5Jy7OUuKho+fbrb1YVay0Tx1TJ5RRoKtityemYlc+3WuLatZ9Gt6vd51i1vBe7rXWLer3cF7XFt5r4L2uva1vbea11CfahPt1rqz7Vn1t/Nf/8Wtutd1r7W3Wu61r/819a1///zWv/tb4/rX2tq0bea6xb2tb////FrbrFSioTYsFN//BXfb/8KyOi5HBTYqFkFPFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/+5LEVgAAAAGkAAAAAAAANIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",k="/frontend-mini-challenges/javascript/assets/green-DzOf4mZj.mp3",d="/frontend-mini-challenges/javascript/assets/red-4-OrdHCN.mp3",c="/frontend-mini-challenges/javascript/assets/yellow-pAJ_bTb8.mp3",Q="/frontend-mini-challenges/javascript/assets/wrong-ScTJZo6t.mp3";let t=[],l=!1,n=0,b=["red","blue","green","yellow"];const a=new Map([["red",new Audio(d)],["blue",new Audio(E)],["green",new Audio(k)],["yellow",new Audio(c)],["wrong",new Audio(Q)]]);let s=[],r=document.querySelectorAll(".btn");for(let A=0;A0;o--){const c=Math.floor(Math.random()*(o+1));[n[o],n[c]]=[n[c],n[o]]}return n}async function f(t){s.style.display="none",l.style.display="block";try{const o=(await(await fetch(t)).json()).results[0];return y(o),o.correct_answer}catch(e){console.error(e)}finally{s.style.display="block",l.style.display="none"}}async function d(){const t=u(),e=await f(t);g(e)}function g(t){r.addEventListener("submit",e=>{e.preventDefault();const n=document.querySelector('input[name="choices"]:checked');if(n){const o=n.value,c=document.querySelector(`input[value="${t}"]`);c&&o===c.value?(a("correct"),setTimeout(()=>{i(),r.reset(),d()},1e3)):(a("wrong"),setTimeout(()=>{i(),r.reset()},1e3))}else alert("Please select an answer")})}document.addEventListener("DOMContentLoaded",d);function a(t){const e=document.getElementById(`${t}__alert`);e.style.display="inline-block"}function i(){const t=document.getElementById("correct__alert"),e=document.getElementById("wrong__alert");t.style.display="none",e.style.display="none"} +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.getElementById("main__container"),l=document.getElementById("loading__container"),r=document.getElementById("submitForm");function u(){return"https://opentdb.com/api.php?amount=1&type=multiple"}function m(t){for(let e=1;e<=t.length;e++){const n=document.getElementById(`choice_${e}`),o=document.getElementById(`choice${e}`);n.value=t[e-1],o.innerHTML=t[e-1]}}function y(t){const{question:e,correct_answer:n,incorrect_answers:o}=t;document.getElementById("question").innerHTML=e;const c=p(n,o);m(c)}function p(t,e){const n=[t,...e];for(let o=n.length-1;o>0;o--){const c=Math.floor(Math.random()*(o+1));[n[o],n[c]]=[n[c],n[o]]}return n}async function f(t){s.style.display="none",l.style.display="block";try{const o=(await(await fetch(t)).json()).results[0];return y(o),o.correct_answer}catch(e){console.error(e)}finally{s.style.display="block",l.style.display="none"}}async function d(){const t=u(),e=await f(t);g(e)}function g(t){r.addEventListener("submit",e=>{e.preventDefault();const n=document.querySelector('input[name="choices"]:checked');if(n){const o=n.value,c=document.querySelector(`input[value="${t}"]`);c&&o===c.value?(a("correct"),setTimeout(()=>{i(),r.reset(),d()},1e3)):(a("wrong"),setTimeout(()=>{i(),r.reset()},1e3))}else alert("Please select an answer")})}document.addEventListener("DOMContentLoaded",d);function a(t){const e=document.getElementById(`${t}__alert`);e.style.display="inline-block"}function i(){const t=document.getElementById("correct__alert"),e=document.getElementById("wrong__alert");t.style.display="none",e.style.display="none"} diff --git a/docs/javascript/assets/index-Z2mDTJga.js b/docs/javascript/assets/index-DTMoHHkm.js similarity index 96% rename from docs/javascript/assets/index-Z2mDTJga.js rename to docs/javascript/assets/index-DTMoHHkm.js index a7354bbdd..2b129e42a 100644 --- a/docs/javascript/assets/index-Z2mDTJga.js +++ b/docs/javascript/assets/index-DTMoHHkm.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const E=(e,t,{type:s="div",...a})=>{const o=document.createDocumentFragment();let r=0;for(let c=0;c{const s=document.createElement(e);return Object.entries(t).forEach(([a,o])=>{if(typeof o=="object"){Object.entries(o).forEach(([r,c])=>{s[a][r]=c});return}s[a]=o}),s},y=4,g=4,v=Array.from(new Array(y*g),(e,t)=>t),b=2e3,w=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"];let n=[],f=0,m=[],h=!1,p;const d=document.querySelector(".game-front"),l=document.querySelector(".game-back"),L=document.querySelector("output"),T=document.querySelector(".restart"),j=(e,t,s)=>{const a=Array.from(new Array(e*t/2),()=>s[Math.floor(Math.random()*s.length)]),o=a.concat(a),r=[],c=o.length;for(let i=0;i{e.forEach(s=>{d.children[s].classList.add(t),l.children[s].classList.add(t)})},u=(e,t)=>{e.forEach(s=>{d.children[s].classList.remove(t),l.children[s].classList.remove(t)})},S=async(e=!1)=>{h||(m=[],n=[],f=0,h=!0,L.textContent=f,e||(d.classList.add("reset"),l.classList.add("reset"),u(v,"active"),u(v,"match"),await new Promise(t=>setTimeout(t,b/2))),m=j(y,g,w),l.childNodes.forEach((t,s)=>{t.textContent=m[s]}),d.classList.remove("reset"),l.classList.remove("reset"),h=!1)};d.appendChild(E(y,g,{type:"button",className:"tile"}));l.appendChild(E(y,g,{type:"button",className:"tile back-tile"}));d.addEventListener("click",e=>{const t=e.target.dataset.idx;t==null||h||e.target.classList.contains("match")||(f++,n.length===2&&(p&&clearTimeout(p),u(n,"active"),n=[]),n.push(t),n.length===2&&(m[n[0]]===m[n[1]]&&(u(n,"active"),k(n,"match")),p=setTimeout(()=>{u(n,"active"),n=[]},b)),e.target.classList.add("active"),l.children[t].classList.add("active"),L.textContent=f)});T.addEventListener("click",()=>S());S(!0); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const E=(e,t,{type:s="div",...a})=>{const o=document.createDocumentFragment();let r=0;for(let c=0;c{const s=document.createElement(e);return Object.entries(t).forEach(([a,o])=>{if(typeof o=="object"){Object.entries(o).forEach(([r,c])=>{s[a][r]=c});return}s[a]=o}),s},y=4,g=4,v=Array.from(new Array(y*g),(e,t)=>t),b=2e3,w=["🍇","🍉","🚗","🍌","🏠","🥭","🍎","🐯","🍒","🍓","🐵","🥝","🍿","🏀","🎱","🐻","🍜","🍢","🎓","🍤","🦀","🍦","🍩","🎂","🍫","🍭","🍼","🪔","🍺","🐱","🐶"];let n=[],f=0,m=[],h=!1,p;const d=document.querySelector(".game-front"),l=document.querySelector(".game-back"),L=document.querySelector("output"),T=document.querySelector(".restart"),j=(e,t,s)=>{const a=Array.from(new Array(e*t/2),()=>s[Math.floor(Math.random()*s.length)]),o=a.concat(a),r=[],c=o.length;for(let i=0;i{e.forEach(s=>{d.children[s].classList.add(t),l.children[s].classList.add(t)})},u=(e,t)=>{e.forEach(s=>{d.children[s].classList.remove(t),l.children[s].classList.remove(t)})},S=async(e=!1)=>{h||(m=[],n=[],f=0,h=!0,L.textContent=f,e||(d.classList.add("reset"),l.classList.add("reset"),u(v,"active"),u(v,"match"),await new Promise(t=>setTimeout(t,b/2))),m=j(y,g,w),l.childNodes.forEach((t,s)=>{t.textContent=m[s]}),d.classList.remove("reset"),l.classList.remove("reset"),h=!1)};d.appendChild(E(y,g,{type:"button",className:"tile"}));l.appendChild(E(y,g,{type:"button",className:"tile back-tile"}));d.addEventListener("click",e=>{const t=e.target.dataset.idx;t==null||h||e.target.classList.contains("match")||(f++,n.length===2&&(p&&clearTimeout(p),u(n,"active"),n=[]),n.push(t),n.length===2&&(m[n[0]]===m[n[1]]&&(u(n,"active"),k(n,"match")),p=setTimeout(()=>{u(n,"active"),n=[]},b)),e.target.classList.add("active"),l.children[t].classList.add("active"),L.textContent=f)});T.addEventListener("click",()=>S());S(!0); diff --git a/docs/javascript/assets/index-AsMqLMrc.js b/docs/javascript/assets/index-DmFzD-VH.js similarity index 99% rename from docs/javascript/assets/index-AsMqLMrc.js rename to docs/javascript/assets/index-DmFzD-VH.js index cf136f17c..25fe120a0 100644 --- a/docs/javascript/assets/index-AsMqLMrc.js +++ b/docs/javascript/assets/index-DmFzD-VH.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX+/v79/f3///8AAAAHBwf39/fp6enw8PDh4eHg4ODk5ORXV1f6+vq9vb2mpqarq6uRkZHLy8uysrLW1taBgYFpaWlzc3OZmZm7u7vExMSJiYmdnZ1BQUFfX19QUFB5eXlGRkY7OzsrKytsbGw0NDQkJCQREREfHx8vLy8gICAWFhYYN8IfAAANl0lEQVR4nO1d2Zajug4FCZKQkUBC5nmo4f8/8Eo2mQ0Y+txlXIv91KeqOse7ZWuWynEaNGjQoEGDBg0aNGjQoEGDBg0aNGhQI0AK0+f4/4CZDXr73XDccv8iSYBgHk6W0WA8miLi4c9JElr7Xft2R2G8I5Kn+A9RBFjiAhw3BV/YxQYx/DNyBBhu++A+g77WnmFv+Tcogu+tHgK8gwQ4xOQvXFWAryV88EsFmfBVNX3CfwWsLmqCguMCe13LKYKPQSZDuqvtNUZ2ixHCSQ5Bfo4zvLgWU4Qx9j+1zCvHGBOLpQjrWa4I5U31ph1bKUIH/UKGLrh7HFtKEaJNMUHWqTMcWUkRoDfQYUhiHNgpRQjRKdAzd4ozHFhIEa5al1RS7KF9tp+s/UifYR+xZRtF0qQtbYYumc6DdQwX2S6piuIS25ZRBCw2909w4HtjF0PoYqcMQ5cijZlVFGH1W4ogUTyiVU44XDJC3zwhDi1iCP19VJKhC2u0KMyAqIytSBnGOLGI4RDLEhSejT3KBnrbCgwDpHjL9NE1AetdeYYuTDG0huEqrMKwa40QISivSgXFBDd9KyhCcB5XYthCzw73lKL2vERpDsWTJWafjEVpcygZ0ku0wuzDDH3NDMY7xS1GVjCcFOaCsxgOcG0Fw11Vhk4frQiFYVOVIV9TG/Ju5GFWZhha4ZwSw2q6VISJNkQYxDCuyrBrC8N5RYaOgxcbGHKQUI0h52ssaGGA7qVsfHj/cdLDNth80vm6ZZmU1wJSjuQtWPIQF+XSpcE2kI035NPubWC4xKTcNYUAkz5zhDk536bPXwyyaqjohcql2J/iiq4qjK3w27hcplkBvsOB2OP+mhhtUKYcP5XPtnF/zX70i3Z4pnRNy4f5DrS2iB63a9Ye4CPqV7mfxThI24hNMygEP6dy9bUbRzdE3A/btScJgNir5Lk50OZOacGx1iRZ61dKKfJVbZ2II26HrVqzJL/mu7L7Da0Jc8TvWVDfMQ2IEEtmvgWX2x/9UY85npNwsej268iTrX4Z/1vOZTzKAdzWHw+TC0psJ6PYrxlL9jC1S1DEJ9rjdvnydOUoUWew2q0lzc2kWyuS0ELNbAYdeoTnyL1f0g+a0B4Pky9mOR1160MSDvhb7IAThdYS1zHk/qikOZgwy+uyLveVyxAFURQdtD/f4j5WSE9NsxXt2CUIhOSNg32wVfbRWZesSGMmgRa/B8t4yfc1bNeAI1wzwyg6aDCjb/eifgl+t7/rByxKHBnnCG3M8E/BJ//zQroz//llQeifiD1D4xTJeVNoGy4xfo/aFendP8Tf16AGAHuFVQS3h2OVaSgJgLX53CPFwt574g3a12P/kx48eW26FCkONV4XBwrbXws1ZES+VARHs9E8bpW7uaytTTdQA1CYcHk6Nfc+tRWicvpBlPAM7aIMRzjh1LgQ2+Q9nx5p+w5eVQRT/diOyEDO9A2I43JGyDRFfoq3mIGuaM/Jm9kjkqG05ppCHKD5iRQKhr3UByfVsC46Ozly5LPsWpp3lT7deA6ZNZ7UNg6clW/wDRSW0LF3/fuQey7DNuf1zDJku+/hAURlKcdPfZEjXb5rFIwnp9Nule+3wor9JtMUQ6K4AnqEB10VAv5GRL2H5HTB/TiPI3xTCGOYIVtFjxTCukTVjUfa6S+54EC8wV47+1lCjEfTL5G055VOi+VKUhD8khJxfb8P8UVUprJ+MCFzZJihiIY9D0vNCpH4pniNwWeOMzxmJtFZ2RgPMoRV9MhUlGFISnXEjidR9KF7yBYjaTDj7mlq+EvX3Pimbvy+EOMQ9xmjxSTEOgy/cSBVoap4v6m+09pnlXtgZtwkOjLg1zYWD3C5lSfh+izGSUYxhLzdOlQdOZCqVHGbIx6jls9l/kjdbkWKbFcHhkmVyrArDB7DO0U+/VGZ2gLs1YFhWLpY80TRE/Z0mFE/h6QOzcXpg6pEkcwpfnUiliQeVQznX3VguKrM0IWWx1a9LVoZFGPipMZq0KTCjqb+DPsHRRT5uZHw/RTf/zbvfYtbWraR6IlCRwZgLEaF/06PvAaOW6hbblNTjEWZB+hj9gqGY7IjxhkmWLkBXJC45XqWio9xHDybZ7ivZvE/yChXUsDGeLsYa/wqjVKfgLNiAxXpIMO+KSvDf7qkT2R2UwXDjuHOVIAzVm9wf2d4UtmLq9mEFCf3Nar6egzXqj1p9H8wWYiioMCr2gb2yUWZk4SBySZ4HoD9j9SMcFJVIRSpWHOBPme9PXW2u8LFpXhR6TjAGo0NSpMl9NTZbqelsdXtnckEXdW/Czk7pspQFFR4+K2SFncbzMuWu+FHFT+JwTdDNp8foaeO7h3/F3FaTowUKKn75cgibg0x5DuasQdTlidK+eMk94xMAfz+GGFI7pSHXpZGEW0xpewIOfAZ2R56iCZUDV0q76Md4+VcnGca6utUyPTfKegw4dWQIfZQ4Uc+Hax95hY/3bJ2nPlpxNDE8j7S7Rmm8HEyjhy/NcvaYllmxrcmJhgKb6ZoL5boCufCiwZH+M6MUGBqhGFYKEJxuPZavMbiH2xll+jgaIThQS/uFSVfvBaaf/IesmIwx8GrAU0DGpc0PTtn0fAc5F9VklNWZYB0kIFSMNsKunw6DEmMc06GLnO7EuLsQRVSpQbCJ6FotNPA0OdZmd+czguxpEf9LbouJlYSC4aaMhSnDFjj9LIsB2ezstQWP2QTisYnhmWm2KQXh0tX7Vxv8ZwjQiMVNsiMfTM5umKsa6G4qsw+S5OSWTobyevDjhiWy7GlV3XbeecIwWfD8f17LTyY2bcs2vV11rO/HFdq1Wn80rXHvbde1goqur+mmjBF8JT/WxJUB5ZX9SxmSdMvjZlghkND99dYdY0smFfyJTIc6MrWve2oJVswQ1HpVo8ZkUK7OuYSbdzSpkpSFwCgs5NTeV/JbBj+ED8vy/LAxuTSc7JTdLIqk910P+dTfEJWKA0LCkyMERRz3eVs4gP0l51FIthdJgPupu4q2/zxy2gBmBSj51Wu/t5/KR2IwVtVppQCaMNtCvRKSrclvrKUA8UU3qu2aJOSXZqujfbfX1C5FUR3KiuVz0Zuk/m1RCJj+pQ/clzteYo3hopg2kx25p0hW/2nHCA5ILtu+dE8YviZZoOO+bkg8csg6Jo+EkhcD8btoPSo2kphV82knz4YwutDhFhO2IetcpNqs08Zkt9bg2aoNIZ6CvWBe9ywrCDJcft4hzA512KBNFzeYyjwZ6LRkIJd7RdJkdh7koZEaNpSSMAR351mXhRxkBy3cz1BKpqMibTxyTUBUi2fjhtxjJObIDsaggSONF9+ipt0zDfsMeCg7nwF8Iff8kWuCwfzRVbrtQ4Hp7psqoc1K1OVJ8OC3KWCTPKXY3CQ8qpqxKiYaW4S7Jmq4wIhSDdK97N8R05OrnT77sHTx9ZhCIEBSz5cZhs70eosby8yy6ETpVbveWpaLqMyzU2C81H5LUP8m623UpBJV8mR7L2I8sNn16g+G2s5qVgQI/KimlAKcqPY5gIuCoYPZcM93+a3RtwgO06KBkpYkHvBcb14M5HAE83iM8QCSbHEhb5Qo98WwZVSr7jpghdiyazFz0r+Om9HhvktYh7RB2z3nJpaRguxnsB84/MTuJ7vcVK+yLDLiXxhIsNB0CYr2e+KhNSCLX7UT+55KYp8a8UQvoQunGpUsgFGa3zDrsUpLeTk6S3/NqwVQdkGzRSzxiTfLms7Oj3xC32+r4hX4H8rNx4MdlPj2yI+IHow+aZqDXSLtVfjeRSNokEg1A53css1ylDHHXwM3sAqKOqtHXDd16UKvPe1BgmLXMDNalcaf+KporozlHMzz1a7FMMN7o0vTSoGxAdhNUhvlF2bRKp0bXx3ggZ4DYjwLiFYb5OorZ2LYh+mDoOixeDkqagojmQuSnclHT9DOxhKirhj1Sine0/vTqia4R6t2LnPgJNMEI93eCO5jItIiu6qeuTVisE9FZyYIgiSguNxlf8kxdRNjUKJfMi0DYX8zgvJXl56WCx+s4WgLHynRpFJzrc3kpOs2wpdkVM2fXJdcC8YE0r71zm6n32lHH/CQEESRIGuBitadCEyU0Kh3jISdFs3N0F+h/GbLwD9PQqhmz64NsCRSRc8PPY/UcA0u+tWTAbtRwGfW6Toy7/2EJSLTb30pj5yZwCi8cKTJH+S1SAOgvFol37NZEdJeXCboaR4jR4cnXsLTcry3kjD/12LMpo+ZDJCELk8d1qybl1Mft+TGJ5Xg31eJUGu9/ArlePhpfGZSbYXq910f7x8XTbL1TwYidWLpo9cGiDq+5LjNn7Pj75gULPMoTZY4eCNY14D+xHNbwyuBgi2vTvH8yDDMxW933XMPOngZuwkx9+hqxIkXNAij+0T7JHdOeLyswNFDPjZkL/IxD2+kBx7H1WZI9pnKt7Av0MgeRbkcwlRRIYWmoo3cPvo/kmQ27sgRVtpXcr1/waAKNnefDQK+kep783bXc1vSPpvQHT8xeRyd0uP02VIDhyPgv8Rho6T/lqHy/22yrK3RYGhFkDux/a8m+apQXvlfw3ulXrUSP+aBCXosnbDyWSyGfTdP0mQcQ8sTB+kQYMGDRo0aNCgQYMGDRo0aNCgQYMGOvgfWX2tFrstbVwAAAAASUVORK5CYII=",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8AAADw8PBhYWFHR0eJiYnKysrq6uo/Pz8bGxt4eHiAgIDMzMzt7e3o6Oj09PSlpaXV1dUoKCiwsLC+vr6Dg4M2Nja2trZZWVk5OTnc3NyWlpZra2uOjo4wMDBfX19QUFARERFxcXEjIyOfn58WFhZDQ0MmrS94AAAIiElEQVR4nO2da1/qMAzGmQjekIugIOBxKPr9P+IBj0fZ07RLt7RN+e15Cxv5s6VNekl7vU6dvDVeTO+2/X5/O5iPLlIbI67JfFVU9PA4TG2TpGbbgtLgKrVhQhpek3xH3d6nNk5AF69WvqNeUtvXWlMn30E369QmtlO/DvCgfWojW2jywAAsirfUdjbWFYvvoFVqSxuKDVgUZWpbG2nywSfM80W99ADMstd48QIsilFqg3219gQsitQW++rJm/Axtcl+mnsDFoX6OHy8eNk+f5n6sRrcUAhPm+H48MX14nFHfVzefjdOn2/T0SQ1Dmr88qfuEX3OTr5fG64Wl3NNkENGzzCFa+iUsaKtlqB89FxvLNEZ7BlXrcYJeFATd/5nBeS8qQdtogOhhhwzizl57R3n0uvEwwC8yGVrubq2dfpS0iEr1htaFLZWccS7nH4DoqjkWXhrvQEz8kk2CsAZojhqZr0Dq7EpzK4mklgNxVH2W4y5t1jEw/oV9/8vLh034d6jSND589Mjuxv2epxg4Uu7aGA/emcTDhx3+WTfJfo4x4BtmpPQY6gj8iCAdRztebXCftyH8Mm8/L8eosF9iewoLuffgfJ6f/oOcwmvp+TlP4ra8VOt/EPlNVr6Er5XgrMl8QPvQVAsejR//w6+MvkxnkVoNCREvBQzQDV/nchy/r/JHEJiuNRMkW0BfACZKRNJUbIJyXE28ymKGM+SEa9ZplZumIQl/aHR3sR7TY1JM0t6NGMSOi+ve1NCaIK/bM1u+ixC60gFuuJnK7M9ZCSu1nG/GYvQffmpWpntIRzQ7tu/umMQvto/xoHlWAuNcHDGEWy8MQgd6e0t/JI9l5YVNqWO390zCB0hNeagsRpT/Gcdw7YLBmHN5aeKleojocM7hgxCx5wThhbLxjb7KR3h+T/Dx/l8uZiFn8xIR/hffx4XQefe0hMe9RrwldVBWBS7YAPFWgiL4iPQc9RDeEi8gvijJsIwcY4uwhDTNsoIAyTG2gidMyONpI5Q/CnqI5QeD1dIKDy/qJHwozENJY2Esq2NSkLR9zQV4eXLcrQezu/oNSplQxpKaQg3vz8zfqMQBQfiUhC+ViPsNbEbR3BqKgGhOfsGOzaPkksz4hNSMxvmRLtctx+dEOeXf6+tSG77VGzCP/SH98ZDZFnPUWxCWyNprDsTa00jE9rXxSGhWC4cmdA+2oRLQsSSqMiE9k4Ap2odM5F+ikv4ZP8Yp9ufa01nKi6hY4YZ54jFVk3FJaQ7w3+C5ak3dZZzpYfwuiNsqI4QTOwIO0LH5R1hU3WEYGJH2BE6Lu8Im6ojBBM7wo7QcXlHyNLVeH1QZcHj+RDO9v2TgZDP2+W3LWdCuKC2GD5tjjUczoFwsiHw/ml7dQ6Edr6j9tkTjnZOQFO5EbJLJWRKeO9fhiwvQmO32LkRNgLMidC/FGBmhB4FR/Mk9Co4miWhX8HRDAndgcwZEDZsZRiErrKd1/WEroWjXoS20vDl22a6GRCryFiE4/106tryMZ9O947laHWX+xDiftR/2v7u0Z3Za+6kO8rBh5CqLV7CVkabp2ZBSD1Cc9PtmK6xngUhUQ2GXDdNemsOhEQ0Y1kYTpUfy4HQrJZqKwNgVP3IhNAIZ+wl0on0IwdCtNlVOcxsUTMgNJ6Lc3ut0SplQGgstnXe1nDFDAg9V6LiI8+AEN+7us3D0PRmQIilCmu3ZlT/kgwIYSFqfa3QqivmR8ioMllxxfwILTs4KjrtFTMgfOd+8URlVoTeLU2v4ooZEGJvwdpwOsuJECcEedvcNhkRYjBd8u5f5kNojGHwDrWZ5EN4gYTMze2zbAjNkTbm5vZNNoRG5WNu8ewyF0LzKA3mezrJhbC3MxCZJQpnuRASw9nM2n37TAiJQUKuK64SEsLorXP/IXHoD/e8hYSE0Ae4H4pJyHXFYbpD78Bg9y5Z6jw/DWeCuYS+VVNUgZjG56TCKYXTLa4J8R49I6H8iFcsQVR3SBtvDlGT0LNqraVWJap2RY+y298ijniJfLqLn3C+tn70hVr2pdkV0VbGJXm5Ip52w6rAgyM2ql0Rnwfv5GtiiXDUM3p8hOkCr6hwTq6IC7WYL1tGroirRbnXZeOKzavTEK6oslfEmK0mKj2RWSVMpyviIiCPgnSZuCKWh/SpZZZHgIoHXnldnEOAig2No2IWoRx6RVy27VncMwNXxOTQ91hk/a6IFnqfU6q+V8RxJe8z2NW7IhrnfwflrojJYZOaiboD1GbJIUi1K+I0RKMTZ1QHqA2TQ5BmV9yBXQ1vo7dXxPfLdUS9U2pd0TiRremN1PaKLZJDkFZXxGNmW5z9oNQVcQVQm3vpzBXBolZjuipdETdEtDNIoytictiyGrtCV2ydHIKIXjHxFD/OHLZd8KIvQAVj2k8eaXNFieQQpMwV8R+vW4TBka5eUSQ5BOnqFWWSQ5AqV0RDZO6qaNgG2/ZS6L56pvjFkkMQ5YriJ4CyhMmhmLeocUXB5BCkxRWb7LVjSsewDc4cSsbIOgJUTA5FGwMVriicHII0BKjSySFIQYCKrYHwAfLpA1RsaMTDjuSuiG7oOtSrmVK7Ig6V+i5RYIjoFcXqvdfLKDUj3NAcRbli47kfX5nVD4Ubmi9Rrngd4odM4QiN7FnOv6IC1NqqNhIyN7sK9/c/IitGr2QPqTd1T/2zgd4dKkA9vqqbUbCtelcL8jRuwbOqq6JrZSZQuPfGv3R7EIkdrkqICFATyHs1m4ea1sYWVaCG9FtEyx1bZVDAXm+ZGjD8YCa1OzqmImwiT/sUQwcYX0rpi1EADwk3UYE4ip7jVXJI44z8TU4CmuAge3h9BMh6nVq/xgWUmNT21dhek15aD2HjGIdGA7piuyzewGeHmrwuZvOXt20/iLa3m/koXSWcTin0F1lkduF9plcBAAAAAElFTkSuQmCC",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAgVBMVEX+/v79/f3///8AAAAHBwf39/fp6enw8PDh4eHg4ODk5ORXV1f6+vq9vb2mpqarq6uRkZHLy8uysrLW1taBgYFpaWlzc3OZmZm7u7vExMSJiYmdnZ1BQUFfX19QUFB5eXlGRkY7OzsrKytsbGw0NDQkJCQREREfHx8vLy8gICAWFhYYN8IfAAANl0lEQVR4nO1d2Zajug4FCZKQkUBC5nmo4f8/8Eo2mQ0Y+txlXIv91KeqOse7ZWuWynEaNGjQoEGDBg0aNGjQoEGDBg0aNGhQI0AK0+f4/4CZDXr73XDccv8iSYBgHk6W0WA8miLi4c9JElr7Xft2R2G8I5Kn+A9RBFjiAhw3BV/YxQYx/DNyBBhu++A+g77WnmFv+Tcogu+tHgK8gwQ4xOQvXFWAryV88EsFmfBVNX3CfwWsLmqCguMCe13LKYKPQSZDuqvtNUZ2ixHCSQ5Bfo4zvLgWU4Qx9j+1zCvHGBOLpQjrWa4I5U31ph1bKUIH/UKGLrh7HFtKEaJNMUHWqTMcWUkRoDfQYUhiHNgpRQjRKdAzd4ozHFhIEa5al1RS7KF9tp+s/UifYR+xZRtF0qQtbYYumc6DdQwX2S6piuIS25ZRBCw2909w4HtjF0PoYqcMQ5cijZlVFGH1W4ogUTyiVU44XDJC3zwhDi1iCP19VJKhC2u0KMyAqIytSBnGOLGI4RDLEhSejT3KBnrbCgwDpHjL9NE1AetdeYYuTDG0huEqrMKwa40QISivSgXFBDd9KyhCcB5XYthCzw73lKL2vERpDsWTJWafjEVpcygZ0ku0wuzDDH3NDMY7xS1GVjCcFOaCsxgOcG0Fw11Vhk4frQiFYVOVIV9TG/Ju5GFWZhha4ZwSw2q6VISJNkQYxDCuyrBrC8N5RYaOgxcbGHKQUI0h52ssaGGA7qVsfHj/cdLDNth80vm6ZZmU1wJSjuQtWPIQF+XSpcE2kI035NPubWC4xKTcNYUAkz5zhDk536bPXwyyaqjohcql2J/iiq4qjK3w27hcplkBvsOB2OP+mhhtUKYcP5XPtnF/zX70i3Z4pnRNy4f5DrS2iB63a9Ye4CPqV7mfxThI24hNMygEP6dy9bUbRzdE3A/btScJgNir5Lk50OZOacGx1iRZ61dKKfJVbZ2II26HrVqzJL/mu7L7Da0Jc8TvWVDfMQ2IEEtmvgWX2x/9UY85npNwsej268iTrX4Z/1vOZTzKAdzWHw+TC0psJ6PYrxlL9jC1S1DEJ9rjdvnydOUoUWew2q0lzc2kWyuS0ELNbAYdeoTnyL1f0g+a0B4Pky9mOR1160MSDvhb7IAThdYS1zHk/qikOZgwy+uyLveVyxAFURQdtD/f4j5WSE9NsxXt2CUIhOSNg32wVfbRWZesSGMmgRa/B8t4yfc1bNeAI1wzwyg6aDCjb/eifgl+t7/rByxKHBnnCG3M8E/BJ//zQroz//llQeifiD1D4xTJeVNoGy4xfo/aFendP8Tf16AGAHuFVQS3h2OVaSgJgLX53CPFwt574g3a12P/kx48eW26FCkONV4XBwrbXws1ZES+VARHs9E8bpW7uaytTTdQA1CYcHk6Nfc+tRWicvpBlPAM7aIMRzjh1LgQ2+Q9nx5p+w5eVQRT/diOyEDO9A2I43JGyDRFfoq3mIGuaM/Jm9kjkqG05ppCHKD5iRQKhr3UByfVsC46Ozly5LPsWpp3lT7deA6ZNZ7UNg6clW/wDRSW0LF3/fuQey7DNuf1zDJku+/hAURlKcdPfZEjXb5rFIwnp9Nule+3wor9JtMUQ6K4AnqEB10VAv5GRL2H5HTB/TiPI3xTCGOYIVtFjxTCukTVjUfa6S+54EC8wV47+1lCjEfTL5G055VOi+VKUhD8khJxfb8P8UVUprJ+MCFzZJihiIY9D0vNCpH4pniNwWeOMzxmJtFZ2RgPMoRV9MhUlGFISnXEjidR9KF7yBYjaTDj7mlq+EvX3Pimbvy+EOMQ9xmjxSTEOgy/cSBVoap4v6m+09pnlXtgZtwkOjLg1zYWD3C5lSfh+izGSUYxhLzdOlQdOZCqVHGbIx6jls9l/kjdbkWKbFcHhkmVyrArDB7DO0U+/VGZ2gLs1YFhWLpY80TRE/Z0mFE/h6QOzcXpg6pEkcwpfnUiliQeVQznX3VguKrM0IWWx1a9LVoZFGPipMZq0KTCjqb+DPsHRRT5uZHw/RTf/zbvfYtbWraR6IlCRwZgLEaF/06PvAaOW6hbblNTjEWZB+hj9gqGY7IjxhkmWLkBXJC45XqWio9xHDybZ7ivZvE/yChXUsDGeLsYa/wqjVKfgLNiAxXpIMO+KSvDf7qkT2R2UwXDjuHOVIAzVm9wf2d4UtmLq9mEFCf3Nar6egzXqj1p9H8wWYiioMCr2gb2yUWZk4SBySZ4HoD9j9SMcFJVIRSpWHOBPme9PXW2u8LFpXhR6TjAGo0NSpMl9NTZbqelsdXtnckEXdW/Czk7pspQFFR4+K2SFncbzMuWu+FHFT+JwTdDNp8foaeO7h3/F3FaTowUKKn75cgibg0x5DuasQdTlidK+eMk94xMAfz+GGFI7pSHXpZGEW0xpewIOfAZ2R56iCZUDV0q76Md4+VcnGca6utUyPTfKegw4dWQIfZQ4Uc+Hax95hY/3bJ2nPlpxNDE8j7S7Rmm8HEyjhy/NcvaYllmxrcmJhgKb6ZoL5boCufCiwZH+M6MUGBqhGFYKEJxuPZavMbiH2xll+jgaIThQS/uFSVfvBaaf/IesmIwx8GrAU0DGpc0PTtn0fAc5F9VklNWZYB0kIFSMNsKunw6DEmMc06GLnO7EuLsQRVSpQbCJ6FotNPA0OdZmd+czguxpEf9LbouJlYSC4aaMhSnDFjj9LIsB2ezstQWP2QTisYnhmWm2KQXh0tX7Vxv8ZwjQiMVNsiMfTM5umKsa6G4qsw+S5OSWTobyevDjhiWy7GlV3XbeecIwWfD8f17LTyY2bcs2vV11rO/HFdq1Wn80rXHvbde1goqur+mmjBF8JT/WxJUB5ZX9SxmSdMvjZlghkND99dYdY0smFfyJTIc6MrWve2oJVswQ1HpVo8ZkUK7OuYSbdzSpkpSFwCgs5NTeV/JbBj+ED8vy/LAxuTSc7JTdLIqk910P+dTfEJWKA0LCkyMERRz3eVs4gP0l51FIthdJgPupu4q2/zxy2gBmBSj51Wu/t5/KR2IwVtVppQCaMNtCvRKSrclvrKUA8UU3qu2aJOSXZqujfbfX1C5FUR3KiuVz0Zuk/m1RCJj+pQ/clzteYo3hopg2kx25p0hW/2nHCA5ILtu+dE8YviZZoOO+bkg8csg6Jo+EkhcD8btoPSo2kphV82knz4YwutDhFhO2IetcpNqs08Zkt9bg2aoNIZ6CvWBe9ywrCDJcft4hzA512KBNFzeYyjwZ6LRkIJd7RdJkdh7koZEaNpSSMAR351mXhRxkBy3cz1BKpqMibTxyTUBUi2fjhtxjJObIDsaggSONF9+ipt0zDfsMeCg7nwF8Iff8kWuCwfzRVbrtQ4Hp7psqoc1K1OVJ8OC3KWCTPKXY3CQ8qpqxKiYaW4S7Jmq4wIhSDdK97N8R05OrnT77sHTx9ZhCIEBSz5cZhs70eosby8yy6ETpVbveWpaLqMyzU2C81H5LUP8m623UpBJV8mR7L2I8sNn16g+G2s5qVgQI/KimlAKcqPY5gIuCoYPZcM93+a3RtwgO06KBkpYkHvBcb14M5HAE83iM8QCSbHEhb5Qo98WwZVSr7jpghdiyazFz0r+Om9HhvktYh7RB2z3nJpaRguxnsB84/MTuJ7vcVK+yLDLiXxhIsNB0CYr2e+KhNSCLX7UT+55KYp8a8UQvoQunGpUsgFGa3zDrsUpLeTk6S3/NqwVQdkGzRSzxiTfLms7Oj3xC32+r4hX4H8rNx4MdlPj2yI+IHow+aZqDXSLtVfjeRSNokEg1A53css1ylDHHXwM3sAqKOqtHXDd16UKvPe1BgmLXMDNalcaf+KporozlHMzz1a7FMMN7o0vTSoGxAdhNUhvlF2bRKp0bXx3ggZ4DYjwLiFYb5OorZ2LYh+mDoOixeDkqagojmQuSnclHT9DOxhKirhj1Sine0/vTqia4R6t2LnPgJNMEI93eCO5jItIiu6qeuTVisE9FZyYIgiSguNxlf8kxdRNjUKJfMi0DYX8zgvJXl56WCx+s4WgLHynRpFJzrc3kpOs2wpdkVM2fXJdcC8YE0r71zm6n32lHH/CQEESRIGuBitadCEyU0Kh3jISdFs3N0F+h/GbLwD9PQqhmz64NsCRSRc8PPY/UcA0u+tWTAbtRwGfW6Toy7/2EJSLTb30pj5yZwCi8cKTJH+S1SAOgvFol37NZEdJeXCboaR4jR4cnXsLTcry3kjD/12LMpo+ZDJCELk8d1qybl1Mft+TGJ5Xg31eJUGu9/ArlePhpfGZSbYXq910f7x8XTbL1TwYidWLpo9cGiDq+5LjNn7Pj75gULPMoTZY4eCNY14D+xHNbwyuBgi2vTvH8yDDMxW933XMPOngZuwkx9+hqxIkXNAij+0T7JHdOeLyswNFDPjZkL/IxD2+kBx7H1WZI9pnKt7Av0MgeRbkcwlRRIYWmoo3cPvo/kmQ27sgRVtpXcr1/waAKNnefDQK+kep783bXc1vSPpvQHT8xeRyd0uP02VIDhyPgv8Rho6T/lqHy/22yrK3RYGhFkDux/a8m+apQXvlfw3ulXrUSP+aBCXosnbDyWSyGfTdP0mQcQ8sTB+kQYMGDRo0aNCgQYMGDRo0aNCgQYMGOvgfWX2tFrstbVwAAAAASUVORK5CYII=",g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAdVBMVEX///8AAADw8PBhYWFHR0eJiYnKysrq6uo/Pz8bGxt4eHiAgIDMzMzt7e3o6Oj09PSlpaXV1dUoKCiwsLC+vr6Dg4M2Nja2trZZWVk5OTnc3NyWlpZra2uOjo4wMDBfX19QUFARERFxcXEjIyOfn58WFhZDQ0MmrS94AAAIiElEQVR4nO2da1/qMAzGmQjekIugIOBxKPr9P+IBj0fZ07RLt7RN+e15Cxv5s6VNekl7vU6dvDVeTO+2/X5/O5iPLlIbI67JfFVU9PA4TG2TpGbbgtLgKrVhQhpek3xH3d6nNk5AF69WvqNeUtvXWlMn30E369QmtlO/DvCgfWojW2jywAAsirfUdjbWFYvvoFVqSxuKDVgUZWpbG2nywSfM80W99ADMstd48QIsilFqg3219gQsitQW++rJm/Axtcl+mnsDFoX6OHy8eNk+f5n6sRrcUAhPm+H48MX14nFHfVzefjdOn2/T0SQ1Dmr88qfuEX3OTr5fG64Wl3NNkENGzzCFa+iUsaKtlqB89FxvLNEZ7BlXrcYJeFATd/5nBeS8qQdtogOhhhwzizl57R3n0uvEwwC8yGVrubq2dfpS0iEr1htaFLZWccS7nH4DoqjkWXhrvQEz8kk2CsAZojhqZr0Dq7EpzK4mklgNxVH2W4y5t1jEw/oV9/8vLh034d6jSND589Mjuxv2epxg4Uu7aGA/emcTDhx3+WTfJfo4x4BtmpPQY6gj8iCAdRztebXCftyH8Mm8/L8eosF9iewoLuffgfJ6f/oOcwmvp+TlP4ra8VOt/EPlNVr6Er5XgrMl8QPvQVAsejR//w6+MvkxnkVoNCREvBQzQDV/nchy/r/JHEJiuNRMkW0BfACZKRNJUbIJyXE28ymKGM+SEa9ZplZumIQl/aHR3sR7TY1JM0t6NGMSOi+ve1NCaIK/bM1u+ixC60gFuuJnK7M9ZCSu1nG/GYvQffmpWpntIRzQ7tu/umMQvto/xoHlWAuNcHDGEWy8MQgd6e0t/JI9l5YVNqWO390zCB0hNeagsRpT/Gcdw7YLBmHN5aeKleojocM7hgxCx5wThhbLxjb7KR3h+T/Dx/l8uZiFn8xIR/hffx4XQefe0hMe9RrwldVBWBS7YAPFWgiL4iPQc9RDeEi8gvijJsIwcY4uwhDTNsoIAyTG2gidMyONpI5Q/CnqI5QeD1dIKDy/qJHwozENJY2Esq2NSkLR9zQV4eXLcrQezu/oNSplQxpKaQg3vz8zfqMQBQfiUhC+ViPsNbEbR3BqKgGhOfsGOzaPkksz4hNSMxvmRLtctx+dEOeXf6+tSG77VGzCP/SH98ZDZFnPUWxCWyNprDsTa00jE9rXxSGhWC4cmdA+2oRLQsSSqMiE9k4Ap2odM5F+ikv4ZP8Yp9ufa01nKi6hY4YZ54jFVk3FJaQ7w3+C5ak3dZZzpYfwuiNsqI4QTOwIO0LH5R1hU3WEYGJH2BE6Lu8Im6ojBBM7wo7QcXlHyNLVeH1QZcHj+RDO9v2TgZDP2+W3LWdCuKC2GD5tjjUczoFwsiHw/ml7dQ6Edr6j9tkTjnZOQFO5EbJLJWRKeO9fhiwvQmO32LkRNgLMidC/FGBmhB4FR/Mk9Co4miWhX8HRDAndgcwZEDZsZRiErrKd1/WEroWjXoS20vDl22a6GRCryFiE4/106tryMZ9O947laHWX+xDiftR/2v7u0Z3Za+6kO8rBh5CqLV7CVkabp2ZBSD1Cc9PtmK6xngUhUQ2GXDdNemsOhEQ0Y1kYTpUfy4HQrJZqKwNgVP3IhNAIZ+wl0on0IwdCtNlVOcxsUTMgNJ6Lc3ut0SplQGgstnXe1nDFDAg9V6LiI8+AEN+7us3D0PRmQIilCmu3ZlT/kgwIYSFqfa3QqivmR8ioMllxxfwILTs4KjrtFTMgfOd+8URlVoTeLU2v4ooZEGJvwdpwOsuJECcEedvcNhkRYjBd8u5f5kNojGHwDrWZ5EN4gYTMze2zbAjNkTbm5vZNNoRG5WNu8ewyF0LzKA3mezrJhbC3MxCZJQpnuRASw9nM2n37TAiJQUKuK64SEsLorXP/IXHoD/e8hYSE0Ae4H4pJyHXFYbpD78Bg9y5Z6jw/DWeCuYS+VVNUgZjG56TCKYXTLa4J8R49I6H8iFcsQVR3SBtvDlGT0LNqraVWJap2RY+y298ijniJfLqLn3C+tn70hVr2pdkV0VbGJXm5Ip52w6rAgyM2ql0Rnwfv5GtiiXDUM3p8hOkCr6hwTq6IC7WYL1tGroirRbnXZeOKzavTEK6oslfEmK0mKj2RWSVMpyviIiCPgnSZuCKWh/SpZZZHgIoHXnldnEOAig2No2IWoRx6RVy27VncMwNXxOTQ91hk/a6IFnqfU6q+V8RxJe8z2NW7IhrnfwflrojJYZOaiboD1GbJIUi1K+I0RKMTZ1QHqA2TQ5BmV9yBXQ1vo7dXxPfLdUS9U2pd0TiRremN1PaKLZJDkFZXxGNmW5z9oNQVcQVQm3vpzBXBolZjuipdETdEtDNIoytictiyGrtCV2ydHIKIXjHxFD/OHLZd8KIvQAVj2k8eaXNFieQQpMwV8R+vW4TBka5eUSQ5BOnqFWWSQ5AqV0RDZO6qaNgG2/ZS6L56pvjFkkMQ5YriJ4CyhMmhmLeocUXB5BCkxRWb7LVjSsewDc4cSsbIOgJUTA5FGwMVriicHII0BKjSySFIQYCKrYHwAfLpA1RsaMTDjuSuiG7oOtSrmVK7Ig6V+i5RYIjoFcXqvdfLKDUj3NAcRbli47kfX5nVD4Ubmi9Rrngd4odM4QiN7FnOv6IC1NqqNhIyN7sK9/c/IitGr2QPqTd1T/2zgd4dKkA9vqqbUbCtelcL8jRuwbOqq6JrZSZQuPfGv3R7EIkdrkqICFATyHs1m4ea1sYWVaCG9FtEyx1bZVDAXm+ZGjD8YCa1OzqmImwiT/sUQwcYX0rpi1EADwk3UYE4ip7jVXJI44z8TU4CmuAge3h9BMh6nVq/xgWUmNT21dhek15aD2HjGIdGA7piuyzewGeHmrwuZvOXt20/iLa3m/koXSWcTin0F1lkduF9plcBAAAAAElFTkSuQmCC",A="/frontend-mini-challenges/javascript/assets/scissors-ldlfiUSM.png",p=["rock","paper","scissors"],a=[n,g,A],d=document.getElementById("computer-choice"),h=document.querySelector("#player"),l=document.querySelector("#btnReset");let i=0,s=0;function u(e,t){return e===t?"It's a draw!":e==="rock"&&t==="scissors"||e==="scissors"&&t==="paper"||e==="paper"&&t==="rock"?(i++,"You win!"):(s++,"Computer wins!")}function r(e){const t=document.getElementById("result");t.textContent=e,document.getElementById("scoreboard").style.display="grid";const o=document.getElementById("playerScore");o.textContent=i;const c=document.getElementById("computerScore");c.textContent=s}h.addEventListener("click",e=>{if(e.target.className.includes("choice")){const t=e.target.id,o=Math.floor(Math.random()*3);document.getElementById("computer").style.display="block",d.src=a[o];const c=u(t,p[o]);r(c)}});l.addEventListener("click",e=>{i=0,s=0,r("Choose your weapon!"),document.getElementById("computer").style.display="none",document.getElementById("scoreboard").style.display="none"}); diff --git a/docs/javascript/assets/index-U7bLjsVB.js b/docs/javascript/assets/index-FYoyBEIz.js similarity index 97% rename from docs/javascript/assets/index-U7bLjsVB.js rename to docs/javascript/assets/index-FYoyBEIz.js index 4ea8a0f9c..d70996ef2 100644 --- a/docs/javascript/assets/index-U7bLjsVB.js +++ b/docs/javascript/assets/index-FYoyBEIz.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const h=["JS","HTML","CSS","TS"],d=["React","Angular","Vue","Svelte"],r=document.querySelector(".left-section"),m=document.querySelector(".right-section"),a=document.querySelector(".move-all-left"),E=document.querySelector(".move-left"),u=document.querySelector(".move-right"),v=document.querySelector(".move-all-right");class S{constructor({leftSectionEl:e,rightSectionEl:t,moveAllLeftButton:i,moveLeftButton:l,moveRightButton:o,moveAllRightButton:n,leftItems:c,rightItems:s}){this.leftSectionEl=e,this.rightSectionEl=t,this.moveAllLeftButton=i,this.moveLeftButton=l,this.moveRightButton=o,this.moveAllRightButton=n,this.leftItems=c,this.rightItems=s,this.populate(),this.setState(),this.addEventListeners()}populate(){this.leftItems.forEach(e=>this.leftSectionEl.appendChild(this.createElement(e))),this.rightItems.forEach(e=>this.rightSectionEl.appendChild(this.createElement(e)))}createElement(e){const t=document.createElement("div"),i=document.createElement("input");i.type="checkbox",i.id=e;const l=document.createElement("label");return l.htmlFor=e,l.textContent=e,t.appendChild(i),t.appendChild(l),t}setState(){this.moveAllLeftButton.disabled=!this.rightSectionEl.childElementCount,this.moveLeftButton.disabled=!this.rightSectionEl.querySelector("input:checked"),this.moveRightButton.disabled=!this.leftSectionEl.querySelector("input:checked"),this.moveAllRightButton.disabled=!this.leftSectionEl.childElementCount}addEventListeners(){this.leftSectionEl.addEventListener("click",this.setState.bind(this)),this.rightSectionEl.addEventListener("click",this.setState.bind(this)),this.moveAllLeftButton.addEventListener("click",()=>{this.moveAllLeft(),this.setState()}),this.moveLeftButton.addEventListener("click",()=>{this.moveLeft(),this.setState()}),this.moveRightButton.addEventListener("click",()=>{this.moveRight(),this.setState()}),this.moveAllRightButton.addEventListener("click",()=>{this.moveAllRight(),this.setState()})}moveAllLeft(){this.rightSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.leftSectionEl.appendChild(i)})}moveLeft(){this.rightSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.leftSectionEl.appendChild(i)})}moveRight(){this.leftSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.rightSectionEl.appendChild(i)})}moveAllRight(){this.leftSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.rightSectionEl.appendChild(i)})}}new S({leftSectionEl:r,rightSectionEl:m,moveAllLeftButton:a,moveLeftButton:E,moveRightButton:u,moveAllRightButton:v,leftItems:h,rightItems:d}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=["JS","HTML","CSS","TS"],d=["React","Angular","Vue","Svelte"],r=document.querySelector(".left-section"),m=document.querySelector(".right-section"),a=document.querySelector(".move-all-left"),E=document.querySelector(".move-left"),u=document.querySelector(".move-right"),v=document.querySelector(".move-all-right");class S{constructor({leftSectionEl:e,rightSectionEl:t,moveAllLeftButton:i,moveLeftButton:l,moveRightButton:o,moveAllRightButton:n,leftItems:c,rightItems:s}){this.leftSectionEl=e,this.rightSectionEl=t,this.moveAllLeftButton=i,this.moveLeftButton=l,this.moveRightButton=o,this.moveAllRightButton=n,this.leftItems=c,this.rightItems=s,this.populate(),this.setState(),this.addEventListeners()}populate(){this.leftItems.forEach(e=>this.leftSectionEl.appendChild(this.createElement(e))),this.rightItems.forEach(e=>this.rightSectionEl.appendChild(this.createElement(e)))}createElement(e){const t=document.createElement("div"),i=document.createElement("input");i.type="checkbox",i.id=e;const l=document.createElement("label");return l.htmlFor=e,l.textContent=e,t.appendChild(i),t.appendChild(l),t}setState(){this.moveAllLeftButton.disabled=!this.rightSectionEl.childElementCount,this.moveLeftButton.disabled=!this.rightSectionEl.querySelector("input:checked"),this.moveRightButton.disabled=!this.leftSectionEl.querySelector("input:checked"),this.moveAllRightButton.disabled=!this.leftSectionEl.childElementCount}addEventListeners(){this.leftSectionEl.addEventListener("click",this.setState.bind(this)),this.rightSectionEl.addEventListener("click",this.setState.bind(this)),this.moveAllLeftButton.addEventListener("click",()=>{this.moveAllLeft(),this.setState()}),this.moveLeftButton.addEventListener("click",()=>{this.moveLeft(),this.setState()}),this.moveRightButton.addEventListener("click",()=>{this.moveRight(),this.setState()}),this.moveAllRightButton.addEventListener("click",()=>{this.moveAllRight(),this.setState()})}moveAllLeft(){this.rightSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.leftSectionEl.appendChild(i)})}moveLeft(){this.rightSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.leftSectionEl.appendChild(i)})}moveRight(){this.leftSectionEl.querySelectorAll("input:checked").forEach(t=>{const i=t.parentElement;t.checked=!1,this.rightSectionEl.appendChild(i)})}moveAllRight(){this.leftSectionEl.querySelectorAll("div").forEach(t=>{const i=t;this.rightSectionEl.appendChild(i)})}}new S({leftSectionEl:r,rightSectionEl:m,moveAllLeftButton:a,moveLeftButton:E,moveRightButton:u,moveAllRightButton:v,leftItems:h,rightItems:d}); diff --git a/docs/javascript/assets/index-1DZC0Loh.js b/docs/javascript/assets/index-GnxvMYmu.js similarity index 89% rename from docs/javascript/assets/index-1DZC0Loh.js rename to docs/javascript/assets/index-GnxvMYmu.js index 8f300a186..67d67a31d 100644 --- a/docs/javascript/assets/index-1DZC0Loh.js +++ b/docs/javascript/assets/index-GnxvMYmu.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const c=document.getElementById("grid"),i=document.getElementById("inputBox");let n=null;function d(e){const t=document.createElement("div");return t.className="grid-item",t.textContent=e,t.dataset.value=e,t}function a(e=3){const t=document.createDocumentFragment();for(let r=1;r<=e*e;r++)t.appendChild(d(r));return t}function m(e){e.preventDefault(),n&&o[n-1].classList.remove("active"),n=parseInt(i.value,10),o[n-1].classList.add("active"),i.value=""}c.appendChild(a());const o=c.querySelectorAll(".grid-item");document.getElementById("colorForm").addEventListener("submit",m); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("grid"),i=document.getElementById("inputBox");let n=null;function d(e){const t=document.createElement("div");return t.className="grid-item",t.textContent=e,t.dataset.value=e,t}function a(e=3){const t=document.createDocumentFragment();for(let r=1;r<=e*e;r++)t.appendChild(d(r));return t}function m(e){e.preventDefault(),n&&o[n-1].classList.remove("active"),n=parseInt(i.value,10),o[n-1].classList.add("active"),i.value=""}c.appendChild(a());const o=c.querySelectorAll(".grid-item");document.getElementById("colorForm").addEventListener("submit",m); diff --git a/docs/javascript/assets/index-LrfR_gAu.js b/docs/javascript/assets/index-I6nX9dTy.js similarity index 88% rename from docs/javascript/assets/index-LrfR_gAu.js rename to docs/javascript/assets/index-I6nX9dTy.js index a3ed4422d..0c3e0a07d 100644 --- a/docs/javascript/assets/index-LrfR_gAu.js +++ b/docs/javascript/assets/index-I6nX9dTy.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const c=document.getElementById("increment"),a=document.getElementById("decrement"),e=document.getElementById("changeBy"),d=document.getElementById("reset"),t=document.querySelector(".value");c.addEventListener("click",()=>{t.textContent=+t.textContent+e.valueAsNumber});a.addEventListener("click",()=>{t.textContent=parseInt(t.textContent)-parseInt(e.value)});e.addEventListener("change",()=>{const n=e.valueAsNumber;(Number.isNaN(n)||n<0)&&(e.value=1)});d.addEventListener("click",()=>{t.textContent=0}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("increment"),a=document.getElementById("decrement"),e=document.getElementById("changeBy"),d=document.getElementById("reset"),t=document.querySelector(".value");c.addEventListener("click",()=>{t.textContent=+t.textContent+e.valueAsNumber});a.addEventListener("click",()=>{t.textContent=parseInt(t.textContent)-parseInt(e.value)});e.addEventListener("change",()=>{const n=e.valueAsNumber;(Number.isNaN(n)||n<0)&&(e.value=1)});d.addEventListener("click",()=>{t.textContent=0}); diff --git a/docs/javascript/assets/index-iofy_0EB.js b/docs/javascript/assets/index-IZJ1ZTNB.js similarity index 94% rename from docs/javascript/assets/index-iofy_0EB.js rename to docs/javascript/assets/index-IZJ1ZTNB.js index f7fc6733f..a39ec31a6 100644 --- a/docs/javascript/assets/index-iofy_0EB.js +++ b/docs/javascript/assets/index-IZJ1ZTNB.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const l=document.getElementById("dark-mode-toggle"),r=document.getElementById("add-button"),d=document.getElementById("workouts"),s=document.getElementById("workout"),c=document.getElementById("duration"),a=document.getElementById("error-message");l.addEventListener("click",m);r.addEventListener("click",u);function m(){const t=document.body,o=document.querySelector(".container"),e=document.querySelector("h1");t.classList.contains("dark-mode")?(t.classList.remove("dark-mode"),o.classList.remove("dark-mode"),e.classList.remove("dark-mode")):(t.classList.add("dark-mode"),o.classList.add("dark-mode"),e.classList.add("dark-mode"))}function u(){const t=s.value,o=c.value;if(t&&o){a.textContent="";const e=document.createElement("li");e.textContent=`${t} - ${o} minutes`;const n=document.createElement("button");n.textContent="Delete",n.className="delete-button",n.addEventListener("click",function(){d.removeChild(e)}),e.appendChild(n),d.appendChild(e),s.value="",c.value=""}else a.textContent="Please fill in both fields."} +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.getElementById("dark-mode-toggle"),r=document.getElementById("add-button"),d=document.getElementById("workouts"),s=document.getElementById("workout"),c=document.getElementById("duration"),a=document.getElementById("error-message");l.addEventListener("click",m);r.addEventListener("click",u);function m(){const t=document.body,o=document.querySelector(".container"),e=document.querySelector("h1");t.classList.contains("dark-mode")?(t.classList.remove("dark-mode"),o.classList.remove("dark-mode"),e.classList.remove("dark-mode")):(t.classList.add("dark-mode"),o.classList.add("dark-mode"),e.classList.add("dark-mode"))}function u(){const t=s.value,o=c.value;if(t&&o){a.textContent="";const e=document.createElement("li");e.textContent=`${t} - ${o} minutes`;const n=document.createElement("button");n.textContent="Delete",n.className="delete-button",n.addEventListener("click",function(){d.removeChild(e)}),e.appendChild(n),d.appendChild(e),s.value="",c.value=""}else a.textContent="Please fill in both fields."} diff --git a/docs/javascript/assets/index-9eCDsll0.js b/docs/javascript/assets/index-Ipw4ybPa.js similarity index 94% rename from docs/javascript/assets/index-9eCDsll0.js rename to docs/javascript/assets/index-Ipw4ybPa.js index 162e7b8f4..7f0af88e0 100644 --- a/docs/javascript/assets/index-9eCDsll0.js +++ b/docs/javascript/assets/index-Ipw4ybPa.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const i=document.querySelector(".grid"),l=window.innerHeight/60-3,m=window.innerWidth/60-3,r=[],u=document.createDocumentFragment();for(let t=0;t{t.target.classList.contains("box")&&(a=t.target.dataset.x,s=t.target.dataset.y,g(a,s))});i.addEventListener("mousemove",t=>{if(a&&s&&t.target.classList.contains("box")){const e=t.target.dataset.x,o=t.target.dataset.y;h(),g(e,o)}});i.addEventListener("mouseup",f);i.addEventListener("mouseleave",f);function f(){a=null,s=null,h()}function g(t,e){if(a&&t&&s&&e){const o=Math.min(a,t),n=Math.max(a,t),p=Math.min(s,e),w=Math.max(s,e);for(let d=o;d<=n;d++)for(let c=p;c<=w;c++)r[d][c].style.backgroundColor="skyblue"}}function h(){for(let t=0;t{t.target.classList.contains("box")&&(a=t.target.dataset.x,s=t.target.dataset.y,g(a,s))});i.addEventListener("mousemove",t=>{if(a&&s&&t.target.classList.contains("box")){const e=t.target.dataset.x,o=t.target.dataset.y;h(),g(e,o)}});i.addEventListener("mouseup",f);i.addEventListener("mouseleave",f);function f(){a=null,s=null,h()}function g(t,e){if(a&&t&&s&&e){const o=Math.min(a,t),n=Math.max(a,t),p=Math.min(s,e),w=Math.max(s,e);for(let d=o;d<=n;d++)for(let c=p;c<=w;c++)r[d][c].style.backgroundColor="skyblue"}}function h(){for(let t=0;ts())}n.addEventListener("input",()=>{o=n.valueAsNumber});l.addEventListener("change",()=>{document.body.classList.toggle("no-cursor")});document.addEventListener("pointermove",r=>{t.x=r.clientX-25,t.y=r.clientY-25});s(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("follower"),n=document.getElementById("speed"),l=document.getElementById("cursor"),e={x:0,y:0},t={x:0,y:0};let o=n.valueAsNumber;function s(){e.x+=(t.x-e.x)*o,e.y+=(t.y-e.y)*o,c.style.transform=`translate(${e.x}px, ${e.y}px)`,requestAnimationFrame(()=>s())}n.addEventListener("input",()=>{o=n.valueAsNumber});l.addEventListener("change",()=>{document.body.classList.toggle("no-cursor")});document.addEventListener("pointermove",r=>{t.x=r.clientX-25,t.y=r.clientY-25});s(); diff --git a/docs/javascript/assets/index-Gaqo5voq.js b/docs/javascript/assets/index-LOHlWgmY.js similarity index 95% rename from docs/javascript/assets/index-Gaqo5voq.js rename to docs/javascript/assets/index-LOHlWgmY.js index 1899540ee..fd8b39177 100644 --- a/docs/javascript/assets/index-Gaqo5voq.js +++ b/docs/javascript/assets/index-LOHlWgmY.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";function a(o,t){this.row=o,this.col=t}a.prototype.setColor=function(o){this.color=o};a.prototype.generateGrid=function(){const o=document.createDocumentFragment();for(let t=0;t{const n=document.createElement("option");n.value=u,n.textContent=u,e.appendChild(n)}),e.value=t,e}function s(t){const e=document.createElement("input");return e.value=t??"value",e}function m(){return document.createElement("output")}const l=[],v=document.getElementById("methodList");function a(t,e,u){const n=new c(e,u),o=document.createElement("div"),r=document.createElement("div");r.appendChild(n.dropdown),r.appendChild(n.input);const d=document.createElement("div");d.appendChild(n.output),o.appendChild(r),o.appendChild(d),v.appendChild(o),l.push(n)}function h(){const t=E(document.querySelector('[name="array_values"]').value);l.reduce((e,u)=>{const n=u.evaluate(e);return u.setOutput(n),n},t)}function E(t){return t.split(",")}document.getElementById("add").addEventListener("click",a);document.getElementById("evaluate").addEventListener("click",h);a(null,"filter","index > 3");a(null,"map","value / 5"); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const i=["map","filter"];function c(t,e){this.dropdown=p(t),this.input=s(e),this.output=m()}c.prototype.setOutput=function(t){return this.output.value=t,t};c.prototype.evaluate=function(t){const e=Function(`return function func(value, index, array){ return ${this.input.value} }`);return t[this.dropdown.value](e())};function p(t=i[0]){const e=document.createElement("select");return i.forEach(u=>{const n=document.createElement("option");n.value=u,n.textContent=u,e.appendChild(n)}),e.value=t,e}function s(t){const e=document.createElement("input");return e.value=t??"value",e}function m(){return document.createElement("output")}const l=[],v=document.getElementById("methodList");function a(t,e,u){const n=new c(e,u),o=document.createElement("div"),r=document.createElement("div");r.appendChild(n.dropdown),r.appendChild(n.input);const d=document.createElement("div");d.appendChild(n.output),o.appendChild(r),o.appendChild(d),v.appendChild(o),l.push(n)}function h(){const t=E(document.querySelector('[name="array_values"]').value);l.reduce((e,u)=>{const n=u.evaluate(e);return u.setOutput(n),n},t)}function E(t){return t.split(",")}document.getElementById("add").addEventListener("click",a);document.getElementById("evaluate").addEventListener("click",h);a(null,"filter","index > 3");a(null,"map","value / 5"); diff --git a/docs/javascript/assets/index-JZ0b4_bt.js b/docs/javascript/assets/index-MqTtmBRo.js similarity index 97% rename from docs/javascript/assets/index-JZ0b4_bt.js rename to docs/javascript/assets/index-MqTtmBRo.js index 3cfa0b29f..c8824fd1f 100644 --- a/docs/javascript/assets/index-JZ0b4_bt.js +++ b/docs/javascript/assets/index-MqTtmBRo.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const h=document.getElementById("pagination"),d=document.getElementById("pages"),g=document.getElementById("siblings"),c=document.getElementById("boundary");class r{constructor(t,n,s,e,o=1){this.paginatorElement=t,this.totalPages=n,this.activePage=o,this.siblingCount=s,this.boundary=e,this.addListener(),this.populate()}addListener(){this.paginatorElement.addEventListener("click",t=>{if(t.target.classList.contains("page-number")){this.activePage=+t.target.dataset.value,this.populate();return}if(t.target.classList.contains("page-decrement")){this.activePage=Math.max(1,this.activePage-1),this.populate();return}if(t.target.classList.contains("page-increment")){this.activePage=Math.min(this.totalPages,this.activePage+1),this.populate();return}})}populate(){this.paginatorElement.innerHTML="";const t=this.siblingCount*2+2+this.boundary;let n=!1;const s=document.createDocumentFragment();let e=document.createElement("button");e.classList.add("page-modifier"),e.classList.add("page-decrement"),e.textContent="<",this.activePage===1&&(e.disabled=!0),s.appendChild(e);for(let a=1;a<=this.totalPages;a++){const i=document.createElement("button");let l=a;if(!(a<=this.boundary||a>this.totalPages-this.boundary||this.activePage<=t-this.siblingCount&&a<=t||this.activePage>this.totalPages-t+this.siblingCount&&a>this.totalPages-t||a>=this.activePage-this.siblingCount&&a<=this.activePage+this.siblingCount)){if(n)continue;l="...",i.classList.add("dot"),i.classList.add(this.activePage>a?"dot-left":"dot-right"),i.dataset.value=this.activePage>a?Math.max(1,this.activePage-t):Math.min(this.totalPages,this.activePage+t)}i.textContent=l,typeof l=="number"&&(i.dataset.value=a,i.setAttribute("tabindex",0)),n=typeof l=="string",i.classList.add("page-number"),s.appendChild(i)}e=document.createElement("button"),e.classList.add("page-modifier"),e.classList.add("page-increment"),e.textContent=">",this.activePage===this.totalPages&&(e.disabled=!0),s.appendChild(e),this.paginatorElement.appendChild(s);const o=this.paginatorElement.querySelector(`[data-value='${this.activePage}']`);o.classList.add("active"),o.focus()}setTotalPages(t){this.totalPages=t,this.activePage=Math.min(this.activePage,this.totalPages),this.populate()}setBoundary(t){this.boundary=t,this.populate()}setSiblingCount(t){this.siblingCount=t,this.populate()}}const u=new r(h,+d.value,+g.value,+c.value);d.addEventListener("input",()=>{u.setTotalPages(+d.value)});g.addEventListener("input",()=>{u.setSiblingCount(+g.value)});c.addEventListener("input",()=>{u.setBoundary(+c.value)}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=document.getElementById("pagination"),d=document.getElementById("pages"),g=document.getElementById("siblings"),c=document.getElementById("boundary");class r{constructor(t,n,s,e,o=1){this.paginatorElement=t,this.totalPages=n,this.activePage=o,this.siblingCount=s,this.boundary=e,this.addListener(),this.populate()}addListener(){this.paginatorElement.addEventListener("click",t=>{if(t.target.classList.contains("page-number")){this.activePage=+t.target.dataset.value,this.populate();return}if(t.target.classList.contains("page-decrement")){this.activePage=Math.max(1,this.activePage-1),this.populate();return}if(t.target.classList.contains("page-increment")){this.activePage=Math.min(this.totalPages,this.activePage+1),this.populate();return}})}populate(){this.paginatorElement.innerHTML="";const t=this.siblingCount*2+2+this.boundary;let n=!1;const s=document.createDocumentFragment();let e=document.createElement("button");e.classList.add("page-modifier"),e.classList.add("page-decrement"),e.textContent="<",this.activePage===1&&(e.disabled=!0),s.appendChild(e);for(let a=1;a<=this.totalPages;a++){const i=document.createElement("button");let l=a;if(!(a<=this.boundary||a>this.totalPages-this.boundary||this.activePage<=t-this.siblingCount&&a<=t||this.activePage>this.totalPages-t+this.siblingCount&&a>this.totalPages-t||a>=this.activePage-this.siblingCount&&a<=this.activePage+this.siblingCount)){if(n)continue;l="...",i.classList.add("dot"),i.classList.add(this.activePage>a?"dot-left":"dot-right"),i.dataset.value=this.activePage>a?Math.max(1,this.activePage-t):Math.min(this.totalPages,this.activePage+t)}i.textContent=l,typeof l=="number"&&(i.dataset.value=a,i.setAttribute("tabindex",0)),n=typeof l=="string",i.classList.add("page-number"),s.appendChild(i)}e=document.createElement("button"),e.classList.add("page-modifier"),e.classList.add("page-increment"),e.textContent=">",this.activePage===this.totalPages&&(e.disabled=!0),s.appendChild(e),this.paginatorElement.appendChild(s);const o=this.paginatorElement.querySelector(`[data-value='${this.activePage}']`);o.classList.add("active"),o.focus()}setTotalPages(t){this.totalPages=t,this.activePage=Math.min(this.activePage,this.totalPages),this.populate()}setBoundary(t){this.boundary=t,this.populate()}setSiblingCount(t){this.siblingCount=t,this.populate()}}const u=new r(h,+d.value,+g.value,+c.value);d.addEventListener("input",()=>{u.setTotalPages(+d.value)});g.addEventListener("input",()=>{u.setSiblingCount(+g.value)});c.addEventListener("input",()=>{u.setBoundary(+c.value)}); diff --git a/docs/javascript/assets/index-OK29rRez.js b/docs/javascript/assets/index-NbEo-x74.js similarity index 99% rename from docs/javascript/assets/index-OK29rRez.js rename to docs/javascript/assets/index-NbEo-x74.js index 3232729a8..a6cda751a 100644 --- a/docs/javascript/assets/index-OK29rRez.js +++ b/docs/javascript/assets/index-NbEo-x74.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";var r=document.querySelectorAll("textarea")[0],L=document.querySelector("#characterCount"),g=document.querySelector("#wordCount"),w=document.querySelector("#sentenceCount"),m=document.querySelector("#paragraphCount"),u=document.querySelector("#readingTime"),l=document.querySelector("#readability"),f=document.querySelectorAll(".keywords")[0],v=document.querySelector("#topKeywords");r.addEventListener("keyup",function(){console.clear(),L.innerHTML=r.value.length;var e=r.value.match(/\b[-?(\w+)?]+\b/gi);if(e?g.innerHTML=e.length:g.innerHTML=0,e){var h=r.value.split(/[.|!|?]+/g);console.log(h),w.innerHTML=h.length-1}else w.innerHTML=0;if(e){var a=r.value.replace(/\n$/gm,"").split(/\n/);m.innerHTML=a.length}else m.innerHTML=0;if(e){var n=Math.floor(e.length*60/275);if(n>59){var d=Math.floor(n/60);n=n-d*60,u.innerHTML=d+"m "+n+"s"}else u.innerHTML=n+"s"}else u.innerHTML="0s";if(e){for(var o=[],p=["a","able","about","above","abst","accordance","according","accordingly","across","act","actually","added","adj","affected","affecting","affects","after","afterwards","again","against","ah","all","almost","alone","along","already","also","although","always","am","among","amongst","an","and","announce","another","any","anybody","anyhow","anymore","anyone","anything","anyway","anyways","anywhere","apparently","approximately","are","aren","arent","arise","around","as","aside","ask","asking","at","auth","available","away","awfully","b","back","be","became","because","become","becomes","becoming","been","before","beforehand","begin","beginning","beginnings","begins","behind","being","believe","below","beside","besides","between","beyond","biol","both","brief","briefly","but","by","c","ca","came","can","cannot","can't","cause","causes","certain","certainly","co","com","come","comes","contain","containing","contains","could","couldnt","d","date","did","didn't","different","do","does","doesn't","doing","done","don't","down","downwards","due","during","e","each","ed","edu","effect","eg","eight","eighty","either","else","elsewhere","end","ending","enough","especially","et","et-al","etc","even","ever","every","everybody","everyone","everything","everywhere","ex","except","f","far","few","ff","fifth","first","five","fix","followed","following","follows","for","former","formerly","forth","found","four","from","further","furthermore","g","gave","get","gets","getting","give","given","gives","giving","go","goes","gone","got","gotten","h","had","happens","hardly","has","hasn't","have","haven't","having","he","hed","hence","her","here","hereafter","hereby","herein","heres","hereupon","hers","herself","hes","hi","hid","him","himself","his","hither","home","how","howbeit","however","hundred","i","id","ie","if","i'll","im","immediate","immediately","importance","important","in","inc","indeed","index","information","instead","into","invention","inward","is","isn't","it","itd","it'll","its","itself","i've","j","just","k","keep","keeps","kept","kg","km","know","known","knows","l","largely","last","lately","later","latter","latterly","least","less","lest","let","lets","like","liked","likely","line","little","'ll","look","looking","looks","ltd","m","made","mainly","make","makes","many","may","maybe","me","mean","means","meantime","meanwhile","merely","mg","might","million","miss","ml","more","moreover","most","mostly","mr","mrs","much","mug","must","my","myself","n","na","name","namely","nay","nd","near","nearly","necessarily","necessary","need","needs","neither","never","nevertheless","new","next","nine","ninety","no","nobody","non","none","nonetheless","noone","nor","normally","nos","not","noted","nothing","now","nowhere","o","obtain","obtained","obviously","of","off","often","oh","ok","okay","old","omitted","on","once","one","ones","only","onto","or","ord","other","others","otherwise","ought","our","ours","ourselves","out","outside","over","overall","owing","own","p","page","pages","part","particular","particularly","past","per","perhaps","placed","please","plus","poorly","possible","possibly","potentially","pp","predominantly","present","previously","primarily","probably","promptly","proud","provides","put","q","que","quickly","quite","qv","r","ran","rather","rd","re","readily","really","recent","recently","ref","refs","regarding","regardless","regards","related","relatively","research","respectively","resulted","resulting","results","right","run","s","said","same","saw","say","saying","says","sec","section","see","seeing","seem","seemed","seeming","seems","seen","self","selves","sent","seven","several","shall","she","shed","she'll","shes","should","shouldn't","show","showed","shown","showns","shows","significant","significantly","similar","similarly","since","six","slightly","so","some","somebody","somehow","someone","somethan","something","sometime","sometimes","somewhat","somewhere","soon","sorry","specifically","specified","specify","specifying","still","stop","strongly","sub","substantially","successfully","such","sufficiently","suggest","sup","sure","t","take","taken","taking","tell","tends","th","than","thank","thanks","thanx","that","that'll","thats","that've","the","their","theirs","them","themselves","then","thence","there","thereafter","thereby","thered","therefore","therein","there'll","thereof","therere","theres","thereto","thereupon","there've","these","they","theyd","they'll","theyre","they've","think","this","those","thou","though","thoughh","thousand","throug","through","throughout","thru","thus","til","tip","to","together","too","took","toward","towards","tried","tries","truly","try","trying","ts","twice","two","u","un","under","unfortunately","unless","unlike","unlikely","until","unto","up","upon","ups","us","use","used","useful","usefully","usefulness","uses","using","usually","v","value","various","'ve","very","via","viz","vol","vols","vs","w","want","wants","was","wasn't","way","we","wed","welcome","we'll","went","were","weren't","we've","what","whatever","what'll","whats","when","whence","whenever","where","whereafter","whereas","whereby","wherein","wheres","whereupon","wherever","whether","which","while","whim","whither","who","whod","whoever","whole","who'll","whom","whomever","whos","whose","why","widely","willing","wish","with","within","without","won't","words","world","would","wouldn't","www","x","y","yes","yet","you","youd","you'll","your","youre","yours","yourself","yourselves","you've","z","zero"],t=0;t"+s[t][0]+": "+s[t][1],v.appendChild(c)}}e?f.style.display="block":f.style.display="none"});l.addEventListener("click",function(){l.innerHTML="Fetching score...";var e="https://ipeirotis-readability-metrics.p.mashape.com/getReadabilityMetrics?text=",h=r.value,a=new XMLHttpRequest;a.open("POST",encodeURI(e+h),!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Mashape-Authorization","PQ4FOFuaR6mshI6qpnQKQvkDZQXjp1o6Zcqjsnug7GvNggTzUE"),a.send(),a.onload=function(){this.status>=200&&this.status<400?l.innerHTML=T(JSON.parse(this.response).FLESCH_READING):l.innerHTML="Not available."},a.onerror=function(){l.innerHTML="Not available."}});function T(e){switch(!0){case e<=30:return"Readability: College graduate.";case(e>30&&e<=50):return"Readability: College level.";case(e>50&&e<=60):return"Readability: 10th - 12th grade.";case(e>60&&e<=70):return"Readability: 8th - 9th grade.";case(e>70&&e<=80):return"Readability: 7th grade.";case(e>80&&e<=90):return"Readability: 6th grade.";case(e>90&&e<=100):return"Readability: 5th grade.";default:return"Not available."}} +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";var r=document.querySelectorAll("textarea")[0],L=document.querySelector("#characterCount"),g=document.querySelector("#wordCount"),w=document.querySelector("#sentenceCount"),m=document.querySelector("#paragraphCount"),u=document.querySelector("#readingTime"),l=document.querySelector("#readability"),f=document.querySelectorAll(".keywords")[0],v=document.querySelector("#topKeywords");r.addEventListener("keyup",function(){console.clear(),L.innerHTML=r.value.length;var e=r.value.match(/\b[-?(\w+)?]+\b/gi);if(e?g.innerHTML=e.length:g.innerHTML=0,e){var h=r.value.split(/[.|!|?]+/g);console.log(h),w.innerHTML=h.length-1}else w.innerHTML=0;if(e){var a=r.value.replace(/\n$/gm,"").split(/\n/);m.innerHTML=a.length}else m.innerHTML=0;if(e){var n=Math.floor(e.length*60/275);if(n>59){var d=Math.floor(n/60);n=n-d*60,u.innerHTML=d+"m "+n+"s"}else u.innerHTML=n+"s"}else u.innerHTML="0s";if(e){for(var o=[],p=["a","able","about","above","abst","accordance","according","accordingly","across","act","actually","added","adj","affected","affecting","affects","after","afterwards","again","against","ah","all","almost","alone","along","already","also","although","always","am","among","amongst","an","and","announce","another","any","anybody","anyhow","anymore","anyone","anything","anyway","anyways","anywhere","apparently","approximately","are","aren","arent","arise","around","as","aside","ask","asking","at","auth","available","away","awfully","b","back","be","became","because","become","becomes","becoming","been","before","beforehand","begin","beginning","beginnings","begins","behind","being","believe","below","beside","besides","between","beyond","biol","both","brief","briefly","but","by","c","ca","came","can","cannot","can't","cause","causes","certain","certainly","co","com","come","comes","contain","containing","contains","could","couldnt","d","date","did","didn't","different","do","does","doesn't","doing","done","don't","down","downwards","due","during","e","each","ed","edu","effect","eg","eight","eighty","either","else","elsewhere","end","ending","enough","especially","et","et-al","etc","even","ever","every","everybody","everyone","everything","everywhere","ex","except","f","far","few","ff","fifth","first","five","fix","followed","following","follows","for","former","formerly","forth","found","four","from","further","furthermore","g","gave","get","gets","getting","give","given","gives","giving","go","goes","gone","got","gotten","h","had","happens","hardly","has","hasn't","have","haven't","having","he","hed","hence","her","here","hereafter","hereby","herein","heres","hereupon","hers","herself","hes","hi","hid","him","himself","his","hither","home","how","howbeit","however","hundred","i","id","ie","if","i'll","im","immediate","immediately","importance","important","in","inc","indeed","index","information","instead","into","invention","inward","is","isn't","it","itd","it'll","its","itself","i've","j","just","k","keep","keeps","kept","kg","km","know","known","knows","l","largely","last","lately","later","latter","latterly","least","less","lest","let","lets","like","liked","likely","line","little","'ll","look","looking","looks","ltd","m","made","mainly","make","makes","many","may","maybe","me","mean","means","meantime","meanwhile","merely","mg","might","million","miss","ml","more","moreover","most","mostly","mr","mrs","much","mug","must","my","myself","n","na","name","namely","nay","nd","near","nearly","necessarily","necessary","need","needs","neither","never","nevertheless","new","next","nine","ninety","no","nobody","non","none","nonetheless","noone","nor","normally","nos","not","noted","nothing","now","nowhere","o","obtain","obtained","obviously","of","off","often","oh","ok","okay","old","omitted","on","once","one","ones","only","onto","or","ord","other","others","otherwise","ought","our","ours","ourselves","out","outside","over","overall","owing","own","p","page","pages","part","particular","particularly","past","per","perhaps","placed","please","plus","poorly","possible","possibly","potentially","pp","predominantly","present","previously","primarily","probably","promptly","proud","provides","put","q","que","quickly","quite","qv","r","ran","rather","rd","re","readily","really","recent","recently","ref","refs","regarding","regardless","regards","related","relatively","research","respectively","resulted","resulting","results","right","run","s","said","same","saw","say","saying","says","sec","section","see","seeing","seem","seemed","seeming","seems","seen","self","selves","sent","seven","several","shall","she","shed","she'll","shes","should","shouldn't","show","showed","shown","showns","shows","significant","significantly","similar","similarly","since","six","slightly","so","some","somebody","somehow","someone","somethan","something","sometime","sometimes","somewhat","somewhere","soon","sorry","specifically","specified","specify","specifying","still","stop","strongly","sub","substantially","successfully","such","sufficiently","suggest","sup","sure","t","take","taken","taking","tell","tends","th","than","thank","thanks","thanx","that","that'll","thats","that've","the","their","theirs","them","themselves","then","thence","there","thereafter","thereby","thered","therefore","therein","there'll","thereof","therere","theres","thereto","thereupon","there've","these","they","theyd","they'll","theyre","they've","think","this","those","thou","though","thoughh","thousand","throug","through","throughout","thru","thus","til","tip","to","together","too","took","toward","towards","tried","tries","truly","try","trying","ts","twice","two","u","un","under","unfortunately","unless","unlike","unlikely","until","unto","up","upon","ups","us","use","used","useful","usefully","usefulness","uses","using","usually","v","value","various","'ve","very","via","viz","vol","vols","vs","w","want","wants","was","wasn't","way","we","wed","welcome","we'll","went","were","weren't","we've","what","whatever","what'll","whats","when","whence","whenever","where","whereafter","whereas","whereby","wherein","wheres","whereupon","wherever","whether","which","while","whim","whither","who","whod","whoever","whole","who'll","whom","whomever","whos","whose","why","widely","willing","wish","with","within","without","won't","words","world","would","wouldn't","www","x","y","yes","yet","you","youd","you'll","your","youre","yours","yourself","yourselves","you've","z","zero"],t=0;t"+s[t][0]+": "+s[t][1],v.appendChild(c)}}e?f.style.display="block":f.style.display="none"});l.addEventListener("click",function(){l.innerHTML="Fetching score...";var e="https://ipeirotis-readability-metrics.p.mashape.com/getReadabilityMetrics?text=",h=r.value,a=new XMLHttpRequest;a.open("POST",encodeURI(e+h),!0),a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.setRequestHeader("X-Mashape-Authorization","PQ4FOFuaR6mshI6qpnQKQvkDZQXjp1o6Zcqjsnug7GvNggTzUE"),a.send(),a.onload=function(){this.status>=200&&this.status<400?l.innerHTML=T(JSON.parse(this.response).FLESCH_READING):l.innerHTML="Not available."},a.onerror=function(){l.innerHTML="Not available."}});function T(e){switch(!0){case e<=30:return"Readability: College graduate.";case(e>30&&e<=50):return"Readability: College level.";case(e>50&&e<=60):return"Readability: 10th - 12th grade.";case(e>60&&e<=70):return"Readability: 8th - 9th grade.";case(e>70&&e<=80):return"Readability: 7th grade.";case(e>80&&e<=90):return"Readability: 6th grade.";case(e>90&&e<=100):return"Readability: 5th grade.";default:return"Not available."}} diff --git a/docs/javascript/assets/index-2a0dyMtK.js b/docs/javascript/assets/index-OVFEMI52.js similarity index 97% rename from docs/javascript/assets/index-2a0dyMtK.js rename to docs/javascript/assets/index-OVFEMI52.js index e1059e68a..f7e000b1f 100644 --- a/docs/javascript/assets/index-2a0dyMtK.js +++ b/docs/javascript/assets/index-OVFEMI52.js @@ -1 +1 @@ -var E=Object.defineProperty;var K=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n),q=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var a=(t,e,n)=>(q(t,e,"read from private field"),n?n.call(t):e.get(t)),o=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";var d,c,u,m,r;class z{constructor(e,n){o(this,d,"1234567890".split(""));o(this,c,"qwertyuiop".split(""));o(this,u,"asdfghjkl".split(""));o(this,m,"zxcvbnm".split(""));o(this,r,new Map);this.el=e,this.callback=n,this.populateKeys(),this.addKeyListener(),this.addKeyboardListener()}populateKeys(){[a(this,d),a(this,c),a(this,u),a(this,m)].forEach(n=>{const s=document.createElement("div");s.classList.add("row"),n.forEach(f=>{const h=document.createElement("button");h.classList.add("key"),h.textContent=f,s.appendChild(h),a(this,r).set(f,h)}),this.el.appendChild(s)})}addKeyListener(){this.el.addEventListener("click",e=>{if(e.target.classList.contains("key")){const n=e.target;n.classList.add("active"),setTimeout(()=>n.classList.remove("active"),100),this.callback(n.textContent)}})}addKeyboardListener(){document.addEventListener("keydown",e=>{var s;let n=e.key;(s=a(this,r).get(n.toLowerCase()))==null||s.click()})}}d=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,r=new WeakMap;const k=["he turned in the research paper on friday otherwise he would have not passed the class","plans for this weekend include turning wine into water","the miniature pet elephant became the envy of the neighborhood","as she walked along the street and looked in the gutter she realized facemasks had become the new cigarette butts","he had unknowingly taken up sleepwalking as a nighttime hobby","they got there early and they got really good seats","david proudly graduated from high school top of his class at age 97","he realized there had been several deaths on this road but his concern rose when he saw the exact number","three generations with six decades of life experience","her life in the confines of the house became her new normal","he never understood why what when and where left out who","truth in advertising and dinosaurs with skateboards have much in common","its not possible to convince a monkey to give you a banana by promising it infinite bananas when they die","he was willing to find the depths of the rabbit hole in order to be with her","the estate agent quickly marked out his territory on the dance floor","at that moment she realized she had a sixth sense","the lyrics of the song sounded like fingernails on a chalkboard","its not often you find a soggy banana on the street","i have traveled all around africa and still havent found the gnu who stole my scarf","although it wasnt a pot of gold nancy was still enthralled at what she found at the end of the rainbow","honestly i didnt care much for the first season so i didnt bother with the second","the balloons floated away along with all my hopes and dreams","the anaconda was the greatest criminal mastermind in this part of the neighborhood","he learned the hardest lesson of his life and had the scars both physical and mental to prove it","he set out for a short walk but now all he could see were mangroves and water were for miles","the spa attendant applied the deep cleaning mask to the gentlemans back","the busker hoped that the people passing by would throw money but they threw tomatoes instead so he exchanged his hat for a juicer","the irony of the situation wasnt lost on anyone in the room","the bug was having an excellent day until he hit the windshield","it would have been a better night if the guys next to us werent in the splash zone","kevin embraced his ability to be at the wrong place at the wrong time","she was amazed by the large chunks of ice washing up on the beach","watching the geriatric mens softball team brought back memories of 3 yr olds playing tball","he used to get confused between soldiers and shoulders but as a military man he now soldiers responsibility","in hopes of finding out the truth he entered the oneroom library","he found his art never progressed when he literally used his sweat and tears","homesickness became contagious in the young campers cabin","today i dressed my unicorn in preparation for the race"];class R{constructor(){y(this,"isTimerRunning",!1);y(this,"runTimer",()=>{if(this.time===0){this.completionCallback(),this.stopTimer();return}this.time--,this.timerCallback(this.time)})}startTimer(e,n,s){this.isTimerRunning||(this.time=e,this.timerCallback=n,this.completionCallback=s,this.intervalId=setInterval(this.runTimer,1e3),this.isTimerRunning=!0)}stopTimer(){clearInterval(this.intervalId),this.isTimerRunning=!1}}const i=document.querySelector(".sentences-display"),S=document.querySelector(".keyboard"),w=document.querySelector(".time-display"),v=document.querySelector(".reset"),g=60;let x,l=0,b=!1;const p=new R,L=()=>{const t=k[Math.floor(Math.random()*k.length)];i.textContent+=t+" "},I=()=>{i.textContent.length<50&&L();const t=i.textContent.charAt(1).trim()?1:2;i.textContent=i.textContent.slice(t),C()},C=()=>{x=i.textContent.charAt(0)},D=t=>{b||(!p.isTimerRunning&&l===0&&p.startTimer(g,M,j),t===x&&(l++,I()))},M=t=>{w.textContent=t},j=()=>{w.textContent=`You typed ${l} letters in ${g} seconds`,b=!0},T=()=>{i.textContent="",L(),C(),l=0,w.textContent=g,p.stopTimer(),b=!1,v.blur()};v.addEventListener("click",T);new z(S,D);T(); +var E=Object.defineProperty;var K=(t,e,n)=>e in t?E(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>(K(t,typeof e!="symbol"?e+"":e,n),n),q=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)};var a=(t,e,n)=>(q(t,e,"read from private field"),n?n.call(t):e.get(t)),o=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)};import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";var d,c,u,m,r;class z{constructor(e,n){o(this,d,"1234567890".split(""));o(this,c,"qwertyuiop".split(""));o(this,u,"asdfghjkl".split(""));o(this,m,"zxcvbnm".split(""));o(this,r,new Map);this.el=e,this.callback=n,this.populateKeys(),this.addKeyListener(),this.addKeyboardListener()}populateKeys(){[a(this,d),a(this,c),a(this,u),a(this,m)].forEach(n=>{const s=document.createElement("div");s.classList.add("row"),n.forEach(f=>{const h=document.createElement("button");h.classList.add("key"),h.textContent=f,s.appendChild(h),a(this,r).set(f,h)}),this.el.appendChild(s)})}addKeyListener(){this.el.addEventListener("click",e=>{if(e.target.classList.contains("key")){const n=e.target;n.classList.add("active"),setTimeout(()=>n.classList.remove("active"),100),this.callback(n.textContent)}})}addKeyboardListener(){document.addEventListener("keydown",e=>{var s;let n=e.key;(s=a(this,r).get(n.toLowerCase()))==null||s.click()})}}d=new WeakMap,c=new WeakMap,u=new WeakMap,m=new WeakMap,r=new WeakMap;const k=["he turned in the research paper on friday otherwise he would have not passed the class","plans for this weekend include turning wine into water","the miniature pet elephant became the envy of the neighborhood","as she walked along the street and looked in the gutter she realized facemasks had become the new cigarette butts","he had unknowingly taken up sleepwalking as a nighttime hobby","they got there early and they got really good seats","david proudly graduated from high school top of his class at age 97","he realized there had been several deaths on this road but his concern rose when he saw the exact number","three generations with six decades of life experience","her life in the confines of the house became her new normal","he never understood why what when and where left out who","truth in advertising and dinosaurs with skateboards have much in common","its not possible to convince a monkey to give you a banana by promising it infinite bananas when they die","he was willing to find the depths of the rabbit hole in order to be with her","the estate agent quickly marked out his territory on the dance floor","at that moment she realized she had a sixth sense","the lyrics of the song sounded like fingernails on a chalkboard","its not often you find a soggy banana on the street","i have traveled all around africa and still havent found the gnu who stole my scarf","although it wasnt a pot of gold nancy was still enthralled at what she found at the end of the rainbow","honestly i didnt care much for the first season so i didnt bother with the second","the balloons floated away along with all my hopes and dreams","the anaconda was the greatest criminal mastermind in this part of the neighborhood","he learned the hardest lesson of his life and had the scars both physical and mental to prove it","he set out for a short walk but now all he could see were mangroves and water were for miles","the spa attendant applied the deep cleaning mask to the gentlemans back","the busker hoped that the people passing by would throw money but they threw tomatoes instead so he exchanged his hat for a juicer","the irony of the situation wasnt lost on anyone in the room","the bug was having an excellent day until he hit the windshield","it would have been a better night if the guys next to us werent in the splash zone","kevin embraced his ability to be at the wrong place at the wrong time","she was amazed by the large chunks of ice washing up on the beach","watching the geriatric mens softball team brought back memories of 3 yr olds playing tball","he used to get confused between soldiers and shoulders but as a military man he now soldiers responsibility","in hopes of finding out the truth he entered the oneroom library","he found his art never progressed when he literally used his sweat and tears","homesickness became contagious in the young campers cabin","today i dressed my unicorn in preparation for the race"];class R{constructor(){y(this,"isTimerRunning",!1);y(this,"runTimer",()=>{if(this.time===0){this.completionCallback(),this.stopTimer();return}this.time--,this.timerCallback(this.time)})}startTimer(e,n,s){this.isTimerRunning||(this.time=e,this.timerCallback=n,this.completionCallback=s,this.intervalId=setInterval(this.runTimer,1e3),this.isTimerRunning=!0)}stopTimer(){clearInterval(this.intervalId),this.isTimerRunning=!1}}const i=document.querySelector(".sentences-display"),S=document.querySelector(".keyboard"),w=document.querySelector(".time-display"),v=document.querySelector(".reset"),g=60;let x,l=0,b=!1;const p=new R,L=()=>{const t=k[Math.floor(Math.random()*k.length)];i.textContent+=t+" "},I=()=>{i.textContent.length<50&&L();const t=i.textContent.charAt(1).trim()?1:2;i.textContent=i.textContent.slice(t),C()},C=()=>{x=i.textContent.charAt(0)},D=t=>{b||(!p.isTimerRunning&&l===0&&p.startTimer(g,M,j),t===x&&(l++,I()))},M=t=>{w.textContent=t},j=()=>{w.textContent=`You typed ${l} letters in ${g} seconds`,b=!0},T=()=>{i.textContent="",L(),C(),l=0,w.textContent=g,p.stopTimer(),b=!1,v.blur()};v.addEventListener("click",T);new z(S,D);T(); diff --git a/docs/javascript/assets/index-lHG_D_OZ.js b/docs/javascript/assets/index-Oxep-haE.js similarity index 96% rename from docs/javascript/assets/index-lHG_D_OZ.js rename to docs/javascript/assets/index-Oxep-haE.js index d2533a858..43fddb8b3 100644 --- a/docs/javascript/assets/index-lHG_D_OZ.js +++ b/docs/javascript/assets/index-Oxep-haE.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const d=document.getElementById("json-holder"),u=document.querySelector(".json-template");document.querySelector(".get-json");const h=document.querySelector(".get-json-button"),m=document.querySelector("output");class l{constructor(){const e=u.content.cloneNode(!0);this.container=e.querySelector(".json-container"),this.valueEl=e.querySelector(".value"),this.addEl=e.querySelector(".add"),this.removeEl=e.querySelector(".remove"),this.arrowEl=e.querySelector(".arrow"),this.addListeners(),this.object={}}addListeners(){this.addEl.addEventListener("click",this.add.bind(this)),this.removeEl.addEventListener("click",this.remove.bind(this)),this.arrowEl.addEventListener("click",this.toggle.bind(this))}add(){this.valueEl.style.display="none";const e=document.createElement("div");e.classList.add("sub-item");const t=new l;e.appendChild(t.container),this.container.appendChild(e),this.arrowEl.classList.remove("hide"),this.arrowEl.classList.add("open")}remove(){const e=this.container.parentElement,t=e.parentElement;e.remove(),t.querySelector(".sub-item")||(t.querySelector(".value").style.display="inline",t.querySelector(".arrow").classList.remove("open"),t.querySelector(".arrow").classList.add("hide"))}toggle(){this.arrowEl.classList.toggle("open")}getJSON(e=this.container){const t={},n=e.querySelector(".key"),r=e.querySelector(".key + .value");if(n&&n.value)if(r.style.display!=="none")t[n.value]=r.value;else{let o=e.querySelector(".sub-item");const i=[o];for(;o.nextElementSibling;)i.push(o.nextElementSibling),o=o.nextElementSibling;let s={};i.forEach(a=>{s={...s,...this.getJSON(a)}}),Object.keys(s).length===0?t[n.value]=null:t[n.value]=s}return t}}const c=new l;d.appendChild(c.container);h.addEventListener("click",()=>m.textContent=JSON.stringify(c.getJSON(),null,2)); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const d=document.getElementById("json-holder"),u=document.querySelector(".json-template");document.querySelector(".get-json");const h=document.querySelector(".get-json-button"),m=document.querySelector("output");class l{constructor(){const e=u.content.cloneNode(!0);this.container=e.querySelector(".json-container"),this.valueEl=e.querySelector(".value"),this.addEl=e.querySelector(".add"),this.removeEl=e.querySelector(".remove"),this.arrowEl=e.querySelector(".arrow"),this.addListeners(),this.object={}}addListeners(){this.addEl.addEventListener("click",this.add.bind(this)),this.removeEl.addEventListener("click",this.remove.bind(this)),this.arrowEl.addEventListener("click",this.toggle.bind(this))}add(){this.valueEl.style.display="none";const e=document.createElement("div");e.classList.add("sub-item");const t=new l;e.appendChild(t.container),this.container.appendChild(e),this.arrowEl.classList.remove("hide"),this.arrowEl.classList.add("open")}remove(){const e=this.container.parentElement,t=e.parentElement;e.remove(),t.querySelector(".sub-item")||(t.querySelector(".value").style.display="inline",t.querySelector(".arrow").classList.remove("open"),t.querySelector(".arrow").classList.add("hide"))}toggle(){this.arrowEl.classList.toggle("open")}getJSON(e=this.container){const t={},n=e.querySelector(".key"),r=e.querySelector(".key + .value");if(n&&n.value)if(r.style.display!=="none")t[n.value]=r.value;else{let o=e.querySelector(".sub-item");const i=[o];for(;o.nextElementSibling;)i.push(o.nextElementSibling),o=o.nextElementSibling;let s={};i.forEach(a=>{s={...s,...this.getJSON(a)}}),Object.keys(s).length===0?t[n.value]=null:t[n.value]=s}return t}}const c=new l;d.appendChild(c.container);h.addEventListener("click",()=>m.textContent=JSON.stringify(c.getJSON(),null,2)); diff --git a/docs/javascript/assets/index-fH2qZwrm.js b/docs/javascript/assets/index-Pz9voqvc.js similarity index 93% rename from docs/javascript/assets/index-fH2qZwrm.js rename to docs/javascript/assets/index-Pz9voqvc.js index 17b54f77b..b424a8502 100644 --- a/docs/javascript/assets/index-fH2qZwrm.js +++ b/docs/javascript/assets/index-Pz9voqvc.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const d=document.getElementById("generate"),r=document.getElementById("play"),u=9,o=[];s();function s(){for(let t=0;tt[e]&&(i=!0,n.push({indices:[e-1,e],type:"swap"}),[t[e-1],t[e]]=[t[e],t[e-1]])}while(i);return n}function c(t){container.innerHTML="";for(let n=0;nt[e]&&(i=!0,n.push({indices:[e-1,e],type:"swap"}),[t[e-1],t[e]]=[t[e],t[e-1]])}while(i);return n}function c(t){container.innerHTML="";for(let n=0;ne in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var n=(a,e,t)=>(f(a,typeof e!="symbol"?e+"":e,t),t);import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const p="/frontend-mini-challenges/javascript/assets/1-OkPi44L4.jpg",I="/frontend-mini-challenges/javascript/assets/2-LbNREVae.jpg",v="/frontend-mini-challenges/javascript/assets/3-SrIwCN-U.jpg",y="/frontend-mini-challenges/javascript/assets/4-IwShTW20.jpg",E="/frontend-mini-challenges/javascript/assets/5-XTj0vlQy.jpg",H=document.getElementById("carousel"),L=document.getElementById("leftHandle"),P=document.getElementById("rightHandle"),h=document.getElementById("infinite"),d=document.getElementById("autoplay"),c=document.getElementById("autoplayInterval");class b{constructor(e,{images:t,leftHandle:s,rightHandle:i,isInfinite:l=!0,autoPlay:r=!1,autoPlayInterval:g=5e3,selected:m=0}){n(this,"swipeLeft",()=>{this.selected===0&&!this.isInfinite||(this.selected-=1,this.selected<0&&(this.selected+=this.images.length),this.setSelection())});n(this,"swipeRight",()=>{this.selected===this.images.length-1&&!this.isInfinite||(this.selected+=1,this.selected%=this.images.length,this.setSelection())});n(this,"dotSelect",e=>{e.target.classList.contains("dot")&&(this.selected=+e.target.dataset.index,this.setSelection())});this.carousel=e,this.images=t,this.leftHandle=s,this.rightHandle=i,this.selected=m,this.isInfinite=l,this.autoPlay=r,this.autoPlayInterval=g,this.placeImages(),this.dotHolder=this.createProgress(),this.addListeners(),this.setSelection(),this.startAutoPlay()}setInfinite(e){this.isInfinite=e,this.setHandles()}setAutoPlay(e,t){this.autoPlay=e,this.autoPlayInterval=t,this.startAutoPlay()}startAutoPlay(){this.autoPlay?(clearInterval(this.intervalId),this.intervalId=setInterval(this.swipeRight,this.autoPlayInterval)):clearInterval(this.intervalId)}addListeners(){this.leftHandle.addEventListener("click",this.swipeLeft),this.rightHandle.addEventListener("click",this.swipeRight),this.dotHolder.addEventListener("click",this.dotSelect)}setSelection(){var s;const e=this.carousel.querySelector(".img-holder"),t=this.dotHolder.querySelector(`[data-index='${this.selected}']`);e.style.transform=`translateX(${256*-this.selected}px)`,(s=this.dotHolder.querySelector(".selected"))==null||s.classList.remove("selected"),t.classList.add("selected"),this.setHandles()}setHandles(){this.isInfinite?this.disableHandles({isLeftDisabled:!1,isRightDisabled:!1}):this.disableHandles({isLeftDisabled:this.selected===0,isRightDisabled:this.selected===this.images.length-1})}disableHandles({isLeftDisabled:e,isRightDisabled:t}){this.leftHandle.disabled=e,this.rightHandle.disabled=t}placeImages(){const e=document.createElement("div");e.classList.add("img-frame");const t=document.createElement("div");t.classList.add("img-holder"),this.images.forEach(s=>{const i=document.createElement("img");i.src=s,t.appendChild(i)}),e.appendChild(t),this.carousel.appendChild(e)}createProgress(){const e=document.createElement("ul");return e.classList.add("dot-holder"),this.images.forEach((t,s)=>{const i=document.createElement("li");i.role="presentation";const l=document.createElement("button");l.role="tab",l.dataset.index=s,l.classList.add("dot"),i.appendChild(l),e.appendChild(i)}),this.carousel.appendChild(e),e}}const o=new b(H,{images:[p,I,v,y,E],selected:0,leftHandle:L,rightHandle:P,isInfinite:!1});h.addEventListener("change",()=>{o.setInfinite(h.checked)});d.addEventListener("change",()=>{c.disabled=!d.checked,o.setAutoPlay(d.checked,c.value)});c.addEventListener("change",()=>{o.setAutoPlay(d.checked,c.value)}); +var u=Object.defineProperty;var f=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var n=(a,e,t)=>(f(a,typeof e!="symbol"?e+"":e,t),t);import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const p="/frontend-mini-challenges/javascript/assets/1-OkPi44L4.jpg",I="/frontend-mini-challenges/javascript/assets/2-LbNREVae.jpg",v="/frontend-mini-challenges/javascript/assets/3-SrIwCN-U.jpg",y="/frontend-mini-challenges/javascript/assets/4-IwShTW20.jpg",E="/frontend-mini-challenges/javascript/assets/5-XTj0vlQy.jpg",H=document.getElementById("carousel"),L=document.getElementById("leftHandle"),P=document.getElementById("rightHandle"),h=document.getElementById("infinite"),d=document.getElementById("autoplay"),c=document.getElementById("autoplayInterval");class b{constructor(e,{images:t,leftHandle:s,rightHandle:i,isInfinite:l=!0,autoPlay:r=!1,autoPlayInterval:g=5e3,selected:m=0}){n(this,"swipeLeft",()=>{this.selected===0&&!this.isInfinite||(this.selected-=1,this.selected<0&&(this.selected+=this.images.length),this.setSelection())});n(this,"swipeRight",()=>{this.selected===this.images.length-1&&!this.isInfinite||(this.selected+=1,this.selected%=this.images.length,this.setSelection())});n(this,"dotSelect",e=>{e.target.classList.contains("dot")&&(this.selected=+e.target.dataset.index,this.setSelection())});this.carousel=e,this.images=t,this.leftHandle=s,this.rightHandle=i,this.selected=m,this.isInfinite=l,this.autoPlay=r,this.autoPlayInterval=g,this.placeImages(),this.dotHolder=this.createProgress(),this.addListeners(),this.setSelection(),this.startAutoPlay()}setInfinite(e){this.isInfinite=e,this.setHandles()}setAutoPlay(e,t){this.autoPlay=e,this.autoPlayInterval=t,this.startAutoPlay()}startAutoPlay(){this.autoPlay?(clearInterval(this.intervalId),this.intervalId=setInterval(this.swipeRight,this.autoPlayInterval)):clearInterval(this.intervalId)}addListeners(){this.leftHandle.addEventListener("click",this.swipeLeft),this.rightHandle.addEventListener("click",this.swipeRight),this.dotHolder.addEventListener("click",this.dotSelect)}setSelection(){var s;const e=this.carousel.querySelector(".img-holder"),t=this.dotHolder.querySelector(`[data-index='${this.selected}']`);e.style.transform=`translateX(${256*-this.selected}px)`,(s=this.dotHolder.querySelector(".selected"))==null||s.classList.remove("selected"),t.classList.add("selected"),this.setHandles()}setHandles(){this.isInfinite?this.disableHandles({isLeftDisabled:!1,isRightDisabled:!1}):this.disableHandles({isLeftDisabled:this.selected===0,isRightDisabled:this.selected===this.images.length-1})}disableHandles({isLeftDisabled:e,isRightDisabled:t}){this.leftHandle.disabled=e,this.rightHandle.disabled=t}placeImages(){const e=document.createElement("div");e.classList.add("img-frame");const t=document.createElement("div");t.classList.add("img-holder"),this.images.forEach(s=>{const i=document.createElement("img");i.src=s,t.appendChild(i)}),e.appendChild(t),this.carousel.appendChild(e)}createProgress(){const e=document.createElement("ul");return e.classList.add("dot-holder"),this.images.forEach((t,s)=>{const i=document.createElement("li");i.role="presentation";const l=document.createElement("button");l.role="tab",l.dataset.index=s,l.classList.add("dot"),i.appendChild(l),e.appendChild(i)}),this.carousel.appendChild(e),e}}const o=new b(H,{images:[p,I,v,y,E],selected:0,leftHandle:L,rightHandle:P,isInfinite:!1});h.addEventListener("change",()=>{o.setInfinite(h.checked)});d.addEventListener("change",()=>{c.disabled=!d.checked,o.setAutoPlay(d.checked,c.value)});c.addEventListener("change",()=>{o.setAutoPlay(d.checked,c.value)}); diff --git a/docs/javascript/assets/index-aHPcg3-q.js b/docs/javascript/assets/index-QZykYu5p.js similarity index 94% rename from docs/javascript/assets/index-aHPcg3-q.js rename to docs/javascript/assets/index-QZykYu5p.js index d5756928c..7a990e7a2 100644 --- a/docs/javascript/assets/index-aHPcg3-q.js +++ b/docs/javascript/assets/index-QZykYu5p.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const c=document.querySelector(".dice-container"),o=document.querySelector(".play"),s=document.getElementById("dice1"),m=document.getElementById("dice2"),a=document.getElementById("dice3"),y=document.getElementById("dice4"),r=document.getElementById("dice5"),u=document.getElementById("dice6");let t=[2,3],d=[];const n=[s,m,a,y,r,u];n[t[0]].style.display="block";n[t[1]].style.display="block";function p(){if(n.forEach(e=>e.style.display="none"),c.lastElementChild.classList.contains("duplicate")){const e=c.lastElementChild;c.removeChild(e)}if(t=[...d],t[0]>=0&&t[1]>=0&&t[0]===t[1]){const e=n[t[0]].cloneNode(!0);e.style.display="block",e.classList.add("duplicate"),c.appendChild(e),n[t[0]].style.display="block"}else t[0]!==void 0&&(n[t[0]].style.display="block"),t[1]!==void 0&&(n[t[1]].style.display="block");d=[]}function i(){const l=Math.floor(Math.random()*6),e=Math.floor(Math.random()*6);l>e?c.style.flexDirection="row-reverse":c.style.flexDirection="row",d.push(l,e),p(),f(l,e)}function f(l,e){l>e?document.getElementById("result").innerHTML="Player1 Wins!":le.style.display="none"),c.lastElementChild.classList.contains("duplicate")){const e=c.lastElementChild;c.removeChild(e)}if(t=[...d],t[0]>=0&&t[1]>=0&&t[0]===t[1]){const e=n[t[0]].cloneNode(!0);e.style.display="block",e.classList.add("duplicate"),c.appendChild(e),n[t[0]].style.display="block"}else t[0]!==void 0&&(n[t[0]].style.display="block"),t[1]!==void 0&&(n[t[1]].style.display="block");d=[]}function i(){const l=Math.floor(Math.random()*6),e=Math.floor(Math.random()*6);l>e?c.style.flexDirection="row-reverse":c.style.flexDirection="row",d.push(l,e),p(),f(l,e)}function f(l,e){l>e?document.getElementById("result").innerHTML="Player1 Wins!":l{o.addEventListener("click",e=>{k(e.target.dataset)})});function L(){m&&x();let o=`
`;i===d&&s===l&&(y(),c+=1,t.push([d,l]),a=c>a?c:a,u.innerText=c,f.innerText=a,localStorage.setItem("score",a)),i+=r,s+=n;for(let e=t.length-1;e>0;e--)t[e]=t[e-1];if(t[0]=[i,s],i<1||i>=36||s<1||s>=36)return m=!0;for(let e=0;e
`,e!==0&&t[0][0]===t[e][0]&&t[0][1]===t[e][1])return m=!0;T.innerHTML=o}function A(){m=!1,c=0,h=90,l=0,d=0,i=9,s=7,t=[],r=0,n=0,u.innerText=c}function v(){y(),S=setInterval(L,h),document.addEventListener("keyup",k)}v();b.addEventListener("click",()=>{g.classList.remove("show-modal"),A(),v()}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const u=document.querySelector(".game-score b"),f=document.querySelector(".game-highestScore b"),p=document.querySelector(".modal-game-score b"),w=document.querySelector(".modal-game-highestScore b"),T=document.querySelector(".main-game"),q=document.querySelectorAll(".arrow"),b=document.querySelector(".btn"),g=document.querySelector(".modal-container");let m=!1,c=0,h=90,S,l=0,d=0,i=9,s=7,t=[],r=0,n=0,a=JSON.parse(localStorage.getItem("score"))||0;f.innerText=a;u.innerText=0;function x(){g.classList.add("show-modal"),p.innerText=c,w.innerText=a,clearInterval(S)}function y(){l=Math.floor(Math.random()*35+1),d=Math.floor(Math.random()*35+1)}function k(o){o.key==="ArrowUp"&&n!=1?(r=0,n=-1):o.key==="ArrowDown"&&n!==-1?(r=0,n=1):o.key==="ArrowLeft"&&r!==1?(r=-1,n=0):o.key==="ArrowRight"&&r!==-1&&(r=1,n=0)}q.forEach(o=>{o.addEventListener("click",e=>{k(e.target.dataset)})});function L(){m&&x();let o=`
`;i===d&&s===l&&(y(),c+=1,t.push([d,l]),a=c>a?c:a,u.innerText=c,f.innerText=a,localStorage.setItem("score",a)),i+=r,s+=n;for(let e=t.length-1;e>0;e--)t[e]=t[e-1];if(t[0]=[i,s],i<1||i>=36||s<1||s>=36)return m=!0;for(let e=0;e
`,e!==0&&t[0][0]===t[e][0]&&t[0][1]===t[e][1])return m=!0;T.innerHTML=o}function A(){m=!1,c=0,h=90,l=0,d=0,i=9,s=7,t=[],r=0,n=0,u.innerText=c}function v(){y(),S=setInterval(L,h),document.addEventListener("keyup",k)}v();b.addEventListener("click",()=>{g.classList.remove("show-modal"),A(),v()}); diff --git a/docs/javascript/assets/index-EppgGDck.js b/docs/javascript/assets/index-WnGtw4Yv.js similarity index 97% rename from docs/javascript/assets/index-EppgGDck.js rename to docs/javascript/assets/index-WnGtw4Yv.js index 6d2e6778c..18f7d44e8 100644 --- a/docs/javascript/assets/index-EppgGDck.js +++ b/docs/javascript/assets/index-WnGtw4Yv.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const I=function(e,t,s){const r=document.createDocumentFragment();for(let a=0;a{let r=0;for(let a=0;aArray.from(new Array(e),()=>new Array(t).fill(0)),d=document.getElementById("board"),l=document.getElementById("slots"),x=document.getElementById("reset"),v=document.getElementById("info"),y=6,u=7,c=4,n={activePlayer:1,state:C(y,u),winner:null,getActiveColor(){return this.activePlayer===1?"blue":"red"},switchPlayer(){this.activePlayer=this.activePlayer===1?2:1},isStateFull(){return this.state[0].every(e=>e!==0)},reset(){this.state=C(y,u),this.winner=null,this.activePlayer=1}},F=(e,t)=>{d.style.gridTemplateRows=`repeat(${e}, 5em)`,d.style.gridTemplateColumns=`repeat(${t}, 5em)`},h=e=>{const t=l.querySelector(".active");t&&(t.classList.remove("active"),t.style.backgroundColor="transparent"),l.children[e].classList.add("active"),l.children[e].style.backgroundColor=n.getActiveColor()},p=()=>{const e=l.querySelector(".active");e&&(e.classList.remove("active"),e.style.backgroundColor="transparent")},S=e=>{let t=0;for(t=0;t{const s=n.state[e][t],r=c-1,a=c*2-1,m=n.state[e].slice(Math.max(0,t-r),t+c);if(f(m,s,c))return!0;const P=n.state.map(o=>o[t]).slice(e,e+c);if(f(P,s,c))return!0;const b=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t+o]});if(f(b,s,c))return!0;const k=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t-o]});return!!f(k,s,c)},w=()=>{const e=A(u,"slot");l.innerHTML="",l.appendChild(e);const t=I(y,u,"box");d.innerHTML="",d.appendChild(t),v.textContent=""},L=e=>{if(n.winner)return;const t=e.target;if(t.classList.contains("box")||t.classList.contains("slot")){const s=+t.dataset.j,r=S(s);if(r<0)return;if(T(r,s)){n.winner=n.activePlayer,v.textContent=`Player ${n.getActiveColor()} wins!`,p();return}if(r===0&&n.isStateFull()){n.winner=-1,v.textContent="Draw!",p();return}n.switchPlayer(),h(s)}},E=e=>{if(n.winner)return;const t=e.target;(t.classList.contains("box")||t.classList.contains("slot"))&&h(t.dataset.j)};x.addEventListener("click",function(){n.reset(),w()});d.addEventListener("click",L);l.addEventListener("click",L);d.addEventListener("mouseover",E);l.addEventListener("mouseover",E);w();F(y,u); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const I=function(e,t,s){const r=document.createDocumentFragment();for(let a=0;a{let r=0;for(let a=0;aArray.from(new Array(e),()=>new Array(t).fill(0)),d=document.getElementById("board"),l=document.getElementById("slots"),x=document.getElementById("reset"),v=document.getElementById("info"),y=6,u=7,c=4,n={activePlayer:1,state:C(y,u),winner:null,getActiveColor(){return this.activePlayer===1?"blue":"red"},switchPlayer(){this.activePlayer=this.activePlayer===1?2:1},isStateFull(){return this.state[0].every(e=>e!==0)},reset(){this.state=C(y,u),this.winner=null,this.activePlayer=1}},F=(e,t)=>{d.style.gridTemplateRows=`repeat(${e}, 5em)`,d.style.gridTemplateColumns=`repeat(${t}, 5em)`},h=e=>{const t=l.querySelector(".active");t&&(t.classList.remove("active"),t.style.backgroundColor="transparent"),l.children[e].classList.add("active"),l.children[e].style.backgroundColor=n.getActiveColor()},p=()=>{const e=l.querySelector(".active");e&&(e.classList.remove("active"),e.style.backgroundColor="transparent")},S=e=>{let t=0;for(t=0;t{const s=n.state[e][t],r=c-1,a=c*2-1,m=n.state[e].slice(Math.max(0,t-r),t+c);if(f(m,s,c))return!0;const P=n.state.map(o=>o[t]).slice(e,e+c);if(f(P,s,c))return!0;const b=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t+o]});if(f(b,s,c))return!0;const k=new Array(a).fill(0).map((o,i)=>i-r).map(o=>{var i;return(i=n.state[e+o])==null?void 0:i[t-o]});return!!f(k,s,c)},w=()=>{const e=A(u,"slot");l.innerHTML="",l.appendChild(e);const t=I(y,u,"box");d.innerHTML="",d.appendChild(t),v.textContent=""},L=e=>{if(n.winner)return;const t=e.target;if(t.classList.contains("box")||t.classList.contains("slot")){const s=+t.dataset.j,r=S(s);if(r<0)return;if(T(r,s)){n.winner=n.activePlayer,v.textContent=`Player ${n.getActiveColor()} wins!`,p();return}if(r===0&&n.isStateFull()){n.winner=-1,v.textContent="Draw!",p();return}n.switchPlayer(),h(s)}},E=e=>{if(n.winner)return;const t=e.target;(t.classList.contains("box")||t.classList.contains("slot"))&&h(t.dataset.j)};x.addEventListener("click",function(){n.reset(),w()});d.addEventListener("click",L);l.addEventListener("click",L);d.addEventListener("mouseover",E);l.addEventListener("mouseover",E);w();F(y,u); diff --git a/docs/javascript/assets/index-8Q-2YR8c.js b/docs/javascript/assets/index-Ww7nRwXx.js similarity index 91% rename from docs/javascript/assets/index-8Q-2YR8c.js rename to docs/javascript/assets/index-Ww7nRwXx.js index d55dcbf10..b15ae3a10 100644 --- a/docs/javascript/assets/index-8Q-2YR8c.js +++ b/docs/javascript/assets/index-Ww7nRwXx.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const n=document.querySelectorAll(".piece");let r=null;function c(e){e.currentTarget.classList.add("dragging"),r=e.currentTarget}function i(e){e.preventDefault()}function u(e){e.preventDefault();const t=e.currentTarget,d=r.dataset.order;r.dataset.order=t.dataset.order,t.dataset.order=d;const o=Array.from(n).sort((a,l)=>a.dataset.order-l.dataset.order),s=document.querySelector(".puzzle-container");o.forEach(a=>s.appendChild(a)),r.classList.remove("dragging"),r=null}function g(e){var t;(t=r==null?void 0:r.classList)==null||t.remove("dragging"),r=null}n.forEach(e=>{e.addEventListener("dragstart",c),e.addEventListener("dragover",i),e.addEventListener("drop",u),e.addEventListener("dragend",g)}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const n=document.querySelectorAll(".piece");let r=null;function c(e){e.currentTarget.classList.add("dragging"),r=e.currentTarget}function i(e){e.preventDefault()}function u(e){e.preventDefault();const t=e.currentTarget,d=r.dataset.order;r.dataset.order=t.dataset.order,t.dataset.order=d;const o=Array.from(n).sort((a,l)=>a.dataset.order-l.dataset.order),s=document.querySelector(".puzzle-container");o.forEach(a=>s.appendChild(a)),r.classList.remove("dragging"),r=null}function g(e){var t;(t=r==null?void 0:r.classList)==null||t.remove("dragging"),r=null}n.forEach(e=>{e.addEventListener("dragstart",c),e.addEventListener("dragover",i),e.addEventListener("drop",u),e.addEventListener("dragend",g)}); diff --git a/docs/javascript/assets/index-IF3avjdf.js b/docs/javascript/assets/index-Xkfnst05.js similarity index 96% rename from docs/javascript/assets/index-IF3avjdf.js rename to docs/javascript/assets/index-Xkfnst05.js index 0337cbe40..16153c6d2 100644 --- a/docs/javascript/assets/index-IF3avjdf.js +++ b/docs/javascript/assets/index-Xkfnst05.js @@ -1,4 +1,4 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const d=document.getElementById("noun"),i=document.getElementById("verb"),r=document.getElementById("adjective"),c=document.getElementById("adverb"),s=document.getElementById("generate"),u=document.getElementById("play-again"),y=document.getElementById("share-story-twitter"),a=document.getElementById("story");function h(){const e=d.value,t=i.value,n=r.value,o=c.value,l=` +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const d=document.getElementById("noun"),i=document.getElementById("verb"),r=document.getElementById("adjective"),c=document.getElementById("adverb"),s=document.getElementById("generate"),u=document.getElementById("play-again"),y=document.getElementById("share-story-twitter"),a=document.getElementById("story");function h(){const e=d.value,t=i.value,n=r.value,o=c.value,l=` In a fantastical realm, there resided a ${e} of incredible bravery. From a young age, this ${e} aspired to ${t} ${n}ly, diligently honing their skills ${o}. One magical day, while ${t}ing near the ancient ${e}, they stumbled upon an enchanted ${e}. diff --git a/docs/javascript/assets/index-QqoLuF0K.js b/docs/javascript/assets/index-YMGF9Hv6.js similarity index 88% rename from docs/javascript/assets/index-QqoLuF0K.js rename to docs/javascript/assets/index-YMGF9Hv6.js index 12f4228da..a80553576 100644 --- a/docs/javascript/assets/index-QqoLuF0K.js +++ b/docs/javascript/assets/index-YMGF9Hv6.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const l=document.getElementById("bmiForm");l.addEventListener("submit",function(n){n.preventDefault();const t=parseFloat(document.getElementById("height").value),e=parseFloat(document.getElementById("weight").value);if(!isNaN(t)&&!isNaN(e)){const i=o(t,e);a(i)}else alert("Please enter valid height and weight values.")});function o(n,t){const e=n/100;return(t/(e*e)).toFixed(2)}function a(n){const t=document.getElementById("result"),e=document.getElementById("bmiValue");e.textContent=n,t.style.display="block"} +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=document.getElementById("bmiForm");l.addEventListener("submit",function(n){n.preventDefault();const t=parseFloat(document.getElementById("height").value),e=parseFloat(document.getElementById("weight").value);if(!isNaN(t)&&!isNaN(e)){const i=o(t,e);a(i)}else alert("Please enter valid height and weight values.")});function o(n,t){const e=n/100;return(t/(e*e)).toFixed(2)}function a(n){const t=document.getElementById("result"),e=document.getElementById("bmiValue");e.textContent=n,t.style.display="block"} diff --git a/docs/javascript/assets/index-G7xQAjb7.js b/docs/javascript/assets/index-Z6LUmVc5.js similarity index 97% rename from docs/javascript/assets/index-G7xQAjb7.js rename to docs/javascript/assets/index-Z6LUmVc5.js index 4d8c8ab99..4509ddd5e 100644 --- a/docs/javascript/assets/index-G7xQAjb7.js +++ b/docs/javascript/assets/index-Z6LUmVc5.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const h=["January","February","March","April","May","June","July","August","September","October","November","December"],D=["S","M","T","W","T","F","S"],C=()=>{const e=document.createDocumentFragment();return h.map(n=>{const a=document.createElement("option");a.textContent=n,e.appendChild(a)}),e},F=(e=proxy.today)=>{const n=document.createDocumentFragment(),a=e.getFullYear();for(let o=a-100;o{const n=document.createDocumentFragment();return D.map(a=>{const o=document.createElement(e);o.textContent=a,n.appendChild(o)}),n},E=(e,n)=>{const a=document.createDocumentFragment(),o=new Date(n,e,1).getDay(),m=new Date(n,e+1,0).getDate();for(let c=0;c{const n=C();l.appendChild(n),l.selectedIndex=e.getMonth();const a=F(e);u.appendChild(a),u.selectedIndex=100},Y=()=>{p.innerHTML="",p.appendChild(x("span"))},q=(e=t.month,n=t.year)=>{l.selectedIndex=e,u.value=n},g=(e=t.today)=>{var o;const n=E(t.month,t.year);r.innerHTML="",r.appendChild(n),e.getMonth()===l.selectedIndex&&e.getFullYear()===+u.value?r.classList.add("current-month"):r.classList.remove("current-month"),(o=r.querySelector(`.date-${e.getDate()}`))==null||o.classList.add("today")},w=()=>{q(),g()},i=()=>{var e,n;(e=r.querySelector(".selected"))==null||e.classList.remove("selected"),(n=r.querySelector(`.date-${t.selectedDate.getDate()}`))==null||n.classList.add("selected"),v.textContent=t.selectedDate.toDateString()};S.addEventListener("click",()=>{const e=new Date(t.year,t.month,0);e.getFullYear(){const e=new Date(t.year,t.month+1,1);e.getFullYear()>=t.today.getFullYear()+10||e&&(t.month=e.getMonth(),t.year=e.getFullYear())});l.addEventListener("change",()=>t.month=l.selectedIndex);u.addEventListener("change",()=>t.year=+u.value);M.addEventListener("click",()=>{t.month=t.today.getMonth(),t.year=t.today.getFullYear()});r.addEventListener("click",e=>{e.target.className.includes("date")&&(t.selectedDate=e.target.textContent)});L();Y();g();i(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=["January","February","March","April","May","June","July","August","September","October","November","December"],D=["S","M","T","W","T","F","S"],C=()=>{const e=document.createDocumentFragment();return h.map(n=>{const a=document.createElement("option");a.textContent=n,e.appendChild(a)}),e},F=(e=proxy.today)=>{const n=document.createDocumentFragment(),a=e.getFullYear();for(let o=a-100;o{const n=document.createDocumentFragment();return D.map(a=>{const o=document.createElement(e);o.textContent=a,n.appendChild(o)}),n},E=(e,n)=>{const a=document.createDocumentFragment(),o=new Date(n,e,1).getDay(),m=new Date(n,e+1,0).getDate();for(let c=0;c{const n=C();l.appendChild(n),l.selectedIndex=e.getMonth();const a=F(e);u.appendChild(a),u.selectedIndex=100},Y=()=>{p.innerHTML="",p.appendChild(x("span"))},q=(e=t.month,n=t.year)=>{l.selectedIndex=e,u.value=n},g=(e=t.today)=>{var o;const n=E(t.month,t.year);r.innerHTML="",r.appendChild(n),e.getMonth()===l.selectedIndex&&e.getFullYear()===+u.value?r.classList.add("current-month"):r.classList.remove("current-month"),(o=r.querySelector(`.date-${e.getDate()}`))==null||o.classList.add("today")},w=()=>{q(),g()},i=()=>{var e,n;(e=r.querySelector(".selected"))==null||e.classList.remove("selected"),(n=r.querySelector(`.date-${t.selectedDate.getDate()}`))==null||n.classList.add("selected"),v.textContent=t.selectedDate.toDateString()};S.addEventListener("click",()=>{const e=new Date(t.year,t.month,0);e.getFullYear(){const e=new Date(t.year,t.month+1,1);e.getFullYear()>=t.today.getFullYear()+10||e&&(t.month=e.getMonth(),t.year=e.getFullYear())});l.addEventListener("change",()=>t.month=l.selectedIndex);u.addEventListener("change",()=>t.year=+u.value);M.addEventListener("click",()=>{t.month=t.today.getMonth(),t.year=t.today.getFullYear()});r.addEventListener("click",e=>{e.target.className.includes("date")&&(t.selectedDate=e.target.textContent)});L();Y();g();i(); diff --git a/docs/javascript/assets/index-FYHIdm_Y.js b/docs/javascript/assets/index-ZBQZRxSt.js similarity index 97% rename from docs/javascript/assets/index-FYHIdm_Y.js rename to docs/javascript/assets/index-ZBQZRxSt.js index 8b27a76cd..930c428d5 100644 --- a/docs/javascript/assets/index-FYHIdm_Y.js +++ b/docs/javascript/assets/index-ZBQZRxSt.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const f=document.querySelector("#range"),k=document.querySelector(".char-length"),i=document.querySelector(".password-form"),a=document.querySelector(".password"),p=document.querySelector("#lc"),w=document.querySelector("#uc"),S=document.querySelector("#numbers"),v=document.querySelector("#symbols"),C=document.querySelector(".copy-btn"),d=document.querySelector("#clipboard-container"),M=document.querySelector("#rememberPass");let s=10;const m=["!","@","#","$","%","^","&","*","(",")",",",".","/",">","<","?","~",";",":","[","]","{","}"],h={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},g={upper:()=>String.fromCodePoint(65+Math.floor(Math.random()*26)),lower:()=>String.fromCodePoint(97+Math.floor(Math.random()*26)),numeric:()=>String.fromCodePoint(49+Math.floor(Math.random()*9)),symbols:()=>m[Math.floor(Math.random()*m.length)]},b=e=>{k.textContent=e,s=e},E=(e,r)=>{let t="";for(let o=0;oe.split("").reduce((t,o)=>{const n=Math.floor(Math.random()*t.length);return t=t.substring(0,n)+o+t.substring(n),t},r),P=(e,r)=>{const t=Object.entries(r).reduce((c,[l,u])=>(u&&(c[l]=u),c),{}),o=Object.keys(t).length,n=E(e-o,Object.keys(t)),y=Object.entries(t).map(([c,l])=>l?g[c]():"").join("");return q(y,n)},x=e=>{let r="";return e.split("").map(o=>{h[o]?r+=` ${h[o]}`:r+=` ${o}`}),r.trim()};C.addEventListener("click",e=>{if(e.preventDefault(),window.navigator.clipboard.writeText(a.value),a)d.classList.add("clipboard-container-active"),setTimeout(()=>{d.classList.remove("clipboard-container-active")},1e3);else return});i.addEventListener("submit",e=>{e.preventDefault();const r=P(s,{lower:p.checked,upper:w.checked,numeric:S.checked,symbols:v.checked});a.value=r,M.innerText=x(a.value)});i.addEventListener("change",e=>{e.target.type==="range"&&b(e.target.value),e.target.type==="checkbox"&&Array.from(i.querySelectorAll('[type="checkbox"]')).filter(o=>o.checked).length===0&&(e.target.checked=!0)});f.value=s;p.checked=!0;b(s); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const f=document.querySelector("#range"),k=document.querySelector(".char-length"),i=document.querySelector(".password-form"),a=document.querySelector(".password"),p=document.querySelector("#lc"),w=document.querySelector("#uc"),S=document.querySelector("#numbers"),v=document.querySelector("#symbols"),C=document.querySelector(".copy-btn"),d=document.querySelector("#clipboard-container"),M=document.querySelector("#rememberPass");let s=10;const m=["!","@","#","$","%","^","&","*","(",")",",",".","/",">","<","?","~",";",":","[","]","{","}"],h={a:"apple",b:"banana",c:"cat",d:"dog",e:"elephant",f:"fox",g:"grape",h:"horse",i:"ice cream",j:"jellyfish",k:"kiwi",l:"lion",m:"monkey",n:"nest",o:"orange",p:"pear",q:"queen",r:"rabbit",s:"snake",t:"tiger",u:"umbrella",v:"vase",w:"watermelon",x:"xylophone",y:"yak",z:"zebra",A:"Astronaut",B:"Bicycle",C:"Camera",D:"Dolphin",E:"Eagle",F:"Fireworks",G:"Globe",H:"Helicopter",I:"Island",J:"Jellyfish",K:"Kangaroo",L:"Lightning",M:"Mountain",N:"Nightingale",O:"Octopus",P:"Penguin",Q:"Quokka",R:"River",S:"Starfish",T:"Telescope",U:"Unicorn",V:"Volcano",W:"Waterfall",X:"X-ray",Y:"Yacht",Z:"Zipline"},g={upper:()=>String.fromCodePoint(65+Math.floor(Math.random()*26)),lower:()=>String.fromCodePoint(97+Math.floor(Math.random()*26)),numeric:()=>String.fromCodePoint(49+Math.floor(Math.random()*9)),symbols:()=>m[Math.floor(Math.random()*m.length)]},b=e=>{k.textContent=e,s=e},E=(e,r)=>{let t="";for(let o=0;oe.split("").reduce((t,o)=>{const n=Math.floor(Math.random()*t.length);return t=t.substring(0,n)+o+t.substring(n),t},r),P=(e,r)=>{const t=Object.entries(r).reduce((c,[l,u])=>(u&&(c[l]=u),c),{}),o=Object.keys(t).length,n=E(e-o,Object.keys(t)),y=Object.entries(t).map(([c,l])=>l?g[c]():"").join("");return q(y,n)},x=e=>{let r="";return e.split("").map(o=>{h[o]?r+=` ${h[o]}`:r+=` ${o}`}),r.trim()};C.addEventListener("click",e=>{if(e.preventDefault(),window.navigator.clipboard.writeText(a.value),a)d.classList.add("clipboard-container-active"),setTimeout(()=>{d.classList.remove("clipboard-container-active")},1e3);else return});i.addEventListener("submit",e=>{e.preventDefault();const r=P(s,{lower:p.checked,upper:w.checked,numeric:S.checked,symbols:v.checked});a.value=r,M.innerText=x(a.value)});i.addEventListener("change",e=>{e.target.type==="range"&&b(e.target.value),e.target.type==="checkbox"&&Array.from(i.querySelectorAll('[type="checkbox"]')).filter(o=>o.checked).length===0&&(e.target.checked=!0)});f.value=s;p.checked=!0;b(s); diff --git a/docs/javascript/assets/index-2PoYtp4c.js b/docs/javascript/assets/index-ZDcccaCN.js similarity index 78% rename from docs/javascript/assets/index-2PoYtp4c.js rename to docs/javascript/assets/index-ZDcccaCN.js index 5e1db8e96..6bef324b6 100644 --- a/docs/javascript/assets/index-2PoYtp4c.js +++ b/docs/javascript/assets/index-ZDcccaCN.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const e=document.getElementById("phone"),r=n=>[...n].filter(t=>Number.isInteger(+t)&&t!==" ").join(""),i=n=>{const t=r(n);return t.length>3?"+("+t.substring(0,3)+") - "+t.substring(3):t};e.addEventListener("input",()=>e.value=i(e.value)); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const e=document.getElementById("phone"),r=n=>[...n].filter(t=>Number.isInteger(+t)&&t!==" ").join(""),i=n=>{const t=r(n);return t.length>3?"+("+t.substring(0,3)+") - "+t.substring(3):t};e.addEventListener("input",()=>e.value=i(e.value)); diff --git a/docs/javascript/assets/index-K0sp_MtE.js b/docs/javascript/assets/index-ZIPepd_A.js similarity index 97% rename from docs/javascript/assets/index-K0sp_MtE.js rename to docs/javascript/assets/index-ZIPepd_A.js index c5a57e612..d9321e4db 100644 --- a/docs/javascript/assets/index-K0sp_MtE.js +++ b/docs/javascript/assets/index-ZIPepd_A.js @@ -1 +1 @@ -var y=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var u=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var o=(s,e,t)=>(y(s,e,"access private method"),t);import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const h=document.querySelector(".time"),v=document.querySelectorAll(".duration-button"),b=document.querySelector("#breaklen"),q=document.querySelector("#sesslen"),S=document.querySelector("#minute"),k=document.querySelector("#second"),T=document.querySelector("#play"),E=document.querySelector("#reset"),g=document.querySelector(".timer-header"),I=document.querySelector("#beep"),m=document.querySelector("#playicon");var i,a;class x{constructor(){u(this,i);this.state="session",this.session={time:25,interval:[5,60]},this.break={time:5,interval:[2,20]},this.timeLeft=[25,0],this.isRunning=!1,this.startInterval=null}start(){this.isRunning=!0,this.startInterval=setInterval(()=>this.run(),1e3),m.classList.remove("fa-play"),m.classList.add("fa-pause")}pause(){clearInterval(this.startInterval),this.isRunning=!1,m.classList.remove("fa-pause"),m.classList.add("fa-play")}reset(){this.pause(),this.timeLeft=[25,0],this.break.time=5,this.session.time=25,this.state="session",this.render()}setTime(e){if(this.isRunning)return;const{currentTarget:{dataset:{target:t,direction:r}}}=e,c=r==="up"?1:-1,{time:d,interval:f}=this[t],l=d+c,[p,L]=f;l>L||l9?e:`0${e}`};const n=new x;n.render();v.forEach(s=>{s.addEventListener("click",e=>n.setTime(e))});T.addEventListener("click",()=>{n.isRunning?n.pause():n.start()});E.addEventListener("click",()=>n.reset()); +var y=(s,e,t)=>{if(!e.has(s))throw TypeError("Cannot "+t)};var u=(s,e,t)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,t)};var o=(s,e,t)=>(y(s,e,"access private method"),t);import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const h=document.querySelector(".time"),v=document.querySelectorAll(".duration-button"),b=document.querySelector("#breaklen"),q=document.querySelector("#sesslen"),S=document.querySelector("#minute"),k=document.querySelector("#second"),T=document.querySelector("#play"),E=document.querySelector("#reset"),g=document.querySelector(".timer-header"),I=document.querySelector("#beep"),m=document.querySelector("#playicon");var i,a;class x{constructor(){u(this,i);this.state="session",this.session={time:25,interval:[5,60]},this.break={time:5,interval:[2,20]},this.timeLeft=[25,0],this.isRunning=!1,this.startInterval=null}start(){this.isRunning=!0,this.startInterval=setInterval(()=>this.run(),1e3),m.classList.remove("fa-play"),m.classList.add("fa-pause")}pause(){clearInterval(this.startInterval),this.isRunning=!1,m.classList.remove("fa-pause"),m.classList.add("fa-play")}reset(){this.pause(),this.timeLeft=[25,0],this.break.time=5,this.session.time=25,this.state="session",this.render()}setTime(e){if(this.isRunning)return;const{currentTarget:{dataset:{target:t,direction:r}}}=e,c=r==="up"?1:-1,{time:d,interval:f}=this[t],l=d+c,[p,L]=f;l>L||l9?e:`0${e}`};const n=new x;n.render();v.forEach(s=>{s.addEventListener("click",e=>n.setTime(e))});T.addEventListener("click",()=>{n.isRunning?n.pause():n.start()});E.addEventListener("click",()=>n.reset()); diff --git a/docs/javascript/assets/index-AOMgxkTq.js b/docs/javascript/assets/index-al9vDnL4.js similarity index 91% rename from docs/javascript/assets/index-AOMgxkTq.js rename to docs/javascript/assets/index-al9vDnL4.js index 5662c98f5..eede99662 100644 --- a/docs/javascript/assets/index-AOMgxkTq.js +++ b/docs/javascript/assets/index-al9vDnL4.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const d=document.querySelector("#rows"),u=document.querySelector("#columns"),p=document.querySelector(".table-body");let m=+d.value,s=+u.value;function f(l,r){const o=Array.from(Array(l),()=>[]);let c=1,t=1,e=0,n=0;for(;n=0&&e{m=+d.value,i()});u.addEventListener("change",()=>{s=+u.value,i()});i(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const d=document.querySelector("#rows"),u=document.querySelector("#columns"),p=document.querySelector(".table-body");let m=+d.value,s=+u.value;function f(l,r){const o=Array.from(Array(l),()=>[]);let c=1,t=1,e=0,n=0;for(;n=0&&e{m=+d.value,i()});u.addEventListener("change",()=>{s=+u.value,i()});i(); diff --git a/docs/javascript/assets/index-2d4T8M8M.js b/docs/javascript/assets/index-bZDEenvy.js similarity index 95% rename from docs/javascript/assets/index-2d4T8M8M.js rename to docs/javascript/assets/index-bZDEenvy.js index d57f9a383..f092d4947 100644 --- a/docs/javascript/assets/index-2d4T8M8M.js +++ b/docs/javascript/assets/index-bZDEenvy.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const m=document.getElementById("horizontal-position"),p=document.getElementById("vertical-position"),E=document.getElementById("type"),a=document.getElementById("message"),r=document.getElementById("show-toast"),l=document.getElementById("duration"),y=document.getElementById("duration-output"),f=document.querySelector(".tc-left-top"),v=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),B=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");a.addEventListener("input",h);r.addEventListener("click",S);function h(){r.disabled=a.value.length===0}function S(){const o=a.value,n=E.value,c=m.value,e=p.value,t=+l.value*1e3;q(o,n,t,c,e)}function q(o,n,c,e,t){e==="left"?t==="top"?f.prepend(s(o,n,c,e)):v.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):B.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",d);const u=t.querySelector(".toast");setTimeout(d,c);async function d(){u.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(i=>setTimeout(i,100)),u.remove()}return t}l.addEventListener("input",()=>{y.textContent=l.value}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const m=document.getElementById("horizontal-position"),p=document.getElementById("vertical-position"),E=document.getElementById("type"),a=document.getElementById("message"),r=document.getElementById("show-toast"),l=document.getElementById("duration"),y=document.getElementById("duration-output"),f=document.querySelector(".tc-left-top"),v=document.querySelector(".tc-left-bottom"),g=document.querySelector(".tc-right-top"),B=document.querySelector(".tc-right-bottom"),T=document.getElementById("toast-template");a.addEventListener("input",h);r.addEventListener("click",S);function h(){r.disabled=a.value.length===0}function S(){const o=a.value,n=E.value,c=m.value,e=p.value,t=+l.value*1e3;q(o,n,t,c,e)}function q(o,n,c,e,t){e==="left"?t==="top"?f.prepend(s(o,n,c,e)):v.append(s(o,n,c,e)):t==="top"?g.prepend(s(o,n,c,e)):B.append(s(o,n,c,e))}function s(o,n,c,e){const t=T.content.cloneNode(!0);t.querySelector(".toast-message").textContent=o,t.querySelector(".toast").classList.add(n),t.querySelector(".remove").addEventListener("click",d);const u=t.querySelector(".toast");setTimeout(d,c);async function d(){u.classList.add(e==="left"?"fade-out-left":"fade-out-right"),await new Promise(i=>setTimeout(i,100)),u.remove()}return t}l.addEventListener("input",()=>{y.textContent=l.value}); diff --git a/docs/javascript/assets/index-3FnHkCid.js b/docs/javascript/assets/index-chiaz_Lo.js similarity index 96% rename from docs/javascript/assets/index-3FnHkCid.js rename to docs/javascript/assets/index-chiaz_Lo.js index 24460e66f..512f98bcc 100644 --- a/docs/javascript/assets/index-3FnHkCid.js +++ b/docs/javascript/assets/index-chiaz_Lo.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const u=document.getElementById("amount"),d=document.querySelectorAll(".btn"),l=document.getElementById("customTip"),i=document.getElementById("person"),a=document.getElementById("generate-bill"),v=document.querySelector(".tipValue"),m=document.querySelector(".totalValue"),L=document.querySelector(".bill"),n=document.getElementById("reset");let s=0,o=0,r=0;function c(){return s>0&&o>0&&r>0?(a.classList.add("active"),a.disabled=!1,!0):(a.classList.remove("active"),a.disabled=!0,!1)}function f(){s=parseFloat(u.value),d.forEach(e=>{s>0?(e.classList.add("true"),e.disabled=!1,l.disabled=!1,i.disabled=!1):(e.classList.remove("true"),e.disabled=!0,l.disabled=!0,i.disabled=!0)}),c()}function p(e){d.forEach(t=>{t.classList.remove("active"),e&&e.target.innerHTML==t.innerHTML&&(t.classList.add("active"),o=parseFloat(t.innerHTML)/100)}),l.value="",c()}function B(){l.value!==0&&(o=parseFloat(l.value/100),d.forEach(e=>{e.classList.remove("active")})),c()}function E(){r=parseFloat(i.value),c()}function b(){if(r>=1){let e=s*o,t=s+e,T=t/r;v.innerHTML="₹"+e.toFixed(2),m.innerHTML="₹"+t.toFixed(2),L.innerHTML="₹"+T.toFixed(2),n.classList.add("active"),n.disabled=!1}}function y(){u.value="",f(),d.forEach(e=>{e.classList.remove("true"),e.disabled=!0}),o="",l.value="",p(),i.value="",E(),c(),a.disabled=!0,v.innerHTML="",m.innerHTML="",L.innerHTML="",n.classList.remove("active"),n.disabled=!0}u.addEventListener("input",f);a.addEventListener("click",b);l.addEventListener("input",B);i.addEventListener("input",E);n.addEventListener("click",y);d.forEach(e=>{e.addEventListener("click",p)}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const u=document.getElementById("amount"),d=document.querySelectorAll(".btn"),l=document.getElementById("customTip"),i=document.getElementById("person"),a=document.getElementById("generate-bill"),v=document.querySelector(".tipValue"),m=document.querySelector(".totalValue"),L=document.querySelector(".bill"),n=document.getElementById("reset");let s=0,o=0,r=0;function c(){return s>0&&o>0&&r>0?(a.classList.add("active"),a.disabled=!1,!0):(a.classList.remove("active"),a.disabled=!0,!1)}function f(){s=parseFloat(u.value),d.forEach(e=>{s>0?(e.classList.add("true"),e.disabled=!1,l.disabled=!1,i.disabled=!1):(e.classList.remove("true"),e.disabled=!0,l.disabled=!0,i.disabled=!0)}),c()}function p(e){d.forEach(t=>{t.classList.remove("active"),e&&e.target.innerHTML==t.innerHTML&&(t.classList.add("active"),o=parseFloat(t.innerHTML)/100)}),l.value="",c()}function B(){l.value!==0&&(o=parseFloat(l.value/100),d.forEach(e=>{e.classList.remove("active")})),c()}function E(){r=parseFloat(i.value),c()}function b(){if(r>=1){let e=s*o,t=s+e,T=t/r;v.innerHTML="₹"+e.toFixed(2),m.innerHTML="₹"+t.toFixed(2),L.innerHTML="₹"+T.toFixed(2),n.classList.add("active"),n.disabled=!1}}function y(){u.value="",f(),d.forEach(e=>{e.classList.remove("true"),e.disabled=!0}),o="",l.value="",p(),i.value="",E(),c(),a.disabled=!0,v.innerHTML="",m.innerHTML="",L.innerHTML="",n.classList.remove("active"),n.disabled=!0}u.addEventListener("input",f);a.addEventListener("click",b);l.addEventListener("input",B);i.addEventListener("input",E);n.addEventListener("click",y);d.forEach(e=>{e.addEventListener("click",p)}); diff --git a/docs/javascript/assets/index-6yqNFu-N.js b/docs/javascript/assets/index-dTpJmV2Y.js similarity index 93% rename from docs/javascript/assets/index-6yqNFu-N.js rename to docs/javascript/assets/index-dTpJmV2Y.js index 3af4537cd..1485e2eba 100644 --- a/docs/javascript/assets/index-6yqNFu-N.js +++ b/docs/javascript/assets/index-dTpJmV2Y.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const s=document.getElementById("movie-title"),c=document.getElementById("movie-genre"),r=document.getElementById("movie-cast"),d=document.getElementById("movie-rating"),l=document.getElementById("movie-released"),v=document.getElementById("movie-director"),a=document.getElementById("movie-poster"),u="adff2bf8",o=document.querySelector(".movie-info");o.classList.add("hidden");const t=document.getElementById("search-form");t.addEventListener("submit",n=>{n.preventDefault();const m=new FormData(t).get("movie-name");function i(e){e.Response==="False"?alert("Please enter a valid movie name."):(s.textContent=e.Title,c.textContent=e.Genre,r.textContent=e.Actors,d.textContent=e.imdbRating,l.textContent=e.Released,v.textContent=e.Director,a.src=e.Poster,o.classList.remove("hidden"))}fetch(`https://www.omdbapi.com/?t=${m}&apikey=${u}`).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.error("Error fetching data: ",e)})}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.getElementById("movie-title"),c=document.getElementById("movie-genre"),r=document.getElementById("movie-cast"),d=document.getElementById("movie-rating"),l=document.getElementById("movie-released"),v=document.getElementById("movie-director"),a=document.getElementById("movie-poster"),u="adff2bf8",o=document.querySelector(".movie-info");o.classList.add("hidden");const t=document.getElementById("search-form");t.addEventListener("submit",n=>{n.preventDefault();const m=new FormData(t).get("movie-name");function i(e){e.Response==="False"?alert("Please enter a valid movie name."):(s.textContent=e.Title,c.textContent=e.Genre,r.textContent=e.Actors,d.textContent=e.imdbRating,l.textContent=e.Released,v.textContent=e.Director,a.src=e.Poster,o.classList.remove("hidden"))}fetch(`https://www.omdbapi.com/?t=${m}&apikey=${u}`).then(e=>e.json()).then(e=>{i(e)}).catch(e=>{console.error("Error fetching data: ",e)})}); diff --git a/docs/javascript/assets/index-0PwnMP0Z.js b/docs/javascript/assets/index-gwf-hSca.js similarity index 95% rename from docs/javascript/assets/index-0PwnMP0Z.js rename to docs/javascript/assets/index-gwf-hSca.js index 35c1812ea..f0f6a40de 100644 --- a/docs/javascript/assets/index-0PwnMP0Z.js +++ b/docs/javascript/assets/index-gwf-hSca.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const w=document.querySelector(".post-container"),E=document.querySelector(".loader"),C=document.querySelector(".end-of-content"),b=document.querySelector(".fetch-error");let s=0,u=y(s),d=!1,a=!1,m=!1,r=0;const H=3;function y(e){const c=Math.ceil(window.innerHeight/90);return e+c}function p(e=[]){e.forEach((n,c)=>{const o=document.createElement("div");o.className="post";const t=document.createElement("span");t.className="post-number",t.textContent=s+c+1;const l=document.createElement("span");l.className="post-body",l.textContent=n.body,o.appendChild(t),o.appendChild(l),w.appendChild(o)})}function N(){C.style.display="block"}function h(e){b.style.display=e}function i(e){E.style.display=e}function f(e,n){const c=`https://jsonplaceholder.typicode.com/posts?_start=${e}&_end=${n}`;d=!0,h("none"),i("block"),setTimeout(async()=>{try{const t=await(await fetch(c)).json();t.length0&&p(t),N()):(p(t),s=n,u=y(s)),r=0,a=!1}catch(o){console.log(o),r++;const t=document.getElementsByClassName("post").length;r>H?(h("block"),a=!0):t===0&&f(e,n),i("none")}finally{d=!1}},500)}f(s,u);function g(){if(d||m||a)return;const e=Math.ceil(window.innerHeight+window.scrollY),n=window.document.body.offsetHeight-36;e>=n&&f(s,u)}window.addEventListener("scroll",g);window.addEventListener("resize",g); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const w=document.querySelector(".post-container"),E=document.querySelector(".loader"),C=document.querySelector(".end-of-content"),b=document.querySelector(".fetch-error");let s=0,u=y(s),d=!1,a=!1,m=!1,r=0;const H=3;function y(e){const c=Math.ceil(window.innerHeight/90);return e+c}function p(e=[]){e.forEach((n,c)=>{const o=document.createElement("div");o.className="post";const t=document.createElement("span");t.className="post-number",t.textContent=s+c+1;const l=document.createElement("span");l.className="post-body",l.textContent=n.body,o.appendChild(t),o.appendChild(l),w.appendChild(o)})}function N(){C.style.display="block"}function h(e){b.style.display=e}function i(e){E.style.display=e}function f(e,n){const c=`https://jsonplaceholder.typicode.com/posts?_start=${e}&_end=${n}`;d=!0,h("none"),i("block"),setTimeout(async()=>{try{const t=await(await fetch(c)).json();t.length0&&p(t),N()):(p(t),s=n,u=y(s)),r=0,a=!1}catch(o){console.log(o),r++;const t=document.getElementsByClassName("post").length;r>H?(h("block"),a=!0):t===0&&f(e,n),i("none")}finally{d=!1}},500)}f(s,u);function g(){if(d||m||a)return;const e=Math.ceil(window.innerHeight+window.scrollY),n=window.document.body.offsetHeight-36;e>=n&&f(s,u)}window.addEventListener("scroll",g);window.addEventListener("resize",g); diff --git a/docs/javascript/assets/index-MmBdU-l5.js b/docs/javascript/assets/index-ij1Mg93K.js similarity index 95% rename from docs/javascript/assets/index-MmBdU-l5.js rename to docs/javascript/assets/index-ij1Mg93K.js index 93415c9e1..e72a4bda7 100644 --- a/docs/javascript/assets/index-MmBdU-l5.js +++ b/docs/javascript/assets/index-ij1Mg93K.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const x=function(){var t=.618033988749895,e=(Math.random()+t)%1,a=Math.round(Math.random()*100)%85,d=Math.round(Math.random()*100)%85,m="hsl("+Math.round(360*e)+","+a+"%,"+d+"%)",u="hsl("+Math.round(360*e)+","+a+"%,"+(d+5)+"%)";return{color:m,oddColor:u}},r=document.getElementById("board"),f=3;let l=f,n=0,i=+localStorage.getItem("maxScore"),h=!0;function g(t,e){const a=document.createDocumentFragment(),d=x(),m=Math.ceil(Math.random()*e),u=Math.ceil(Math.random()*e);for(let s=1;s<=e;s++)for(let c=1;c<=e;c++){var o=document.createElement("button");o.dataset.locX=s,o.dataset.locY=c,o.classList.add("box"),s===m&&c===u?(o.style.backgroundColor=d.oddColor,o.classList.add("odd-box")):o.style.backgroundColor=d.color,a.appendChild(o)}t.appendChild(a),t.style.gridTemplateRows=`repeat(${e}, 1fr)`,t.style.gridTemplateColumns=`repeat(${e}, 1fr)`}function C(t){r.classList.add("shake"),setTimeout(()=>{r.classList.remove("shake"),t()},2e3)}function M(){n>i&&(document.getElementById("maxScore").textContent=n,i=n,localStorage.setItem("maxScore",i)),n=0,document.getElementById("score").textContent=n}document.addEventListener("click",t=>{h&&t.target.classList.contains("box")&&(t.target.classList.contains("odd-box")?(r.innerHTML="",document.getElementById("score").textContent=++n,g(r,++l)):(h=!1,document.querySelector(".odd-box").style.border="2px solid red",C(function(){M(),r.innerHTML="",l=f,g(r,l),h=!0})))});g(r,l);document.getElementById("maxScore").textContent=i; +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const x=function(){var t=.618033988749895,e=(Math.random()+t)%1,a=Math.round(Math.random()*100)%85,d=Math.round(Math.random()*100)%85,m="hsl("+Math.round(360*e)+","+a+"%,"+d+"%)",u="hsl("+Math.round(360*e)+","+a+"%,"+(d+5)+"%)";return{color:m,oddColor:u}},r=document.getElementById("board"),f=3;let l=f,n=0,i=+localStorage.getItem("maxScore"),h=!0;function g(t,e){const a=document.createDocumentFragment(),d=x(),m=Math.ceil(Math.random()*e),u=Math.ceil(Math.random()*e);for(let s=1;s<=e;s++)for(let c=1;c<=e;c++){var o=document.createElement("button");o.dataset.locX=s,o.dataset.locY=c,o.classList.add("box"),s===m&&c===u?(o.style.backgroundColor=d.oddColor,o.classList.add("odd-box")):o.style.backgroundColor=d.color,a.appendChild(o)}t.appendChild(a),t.style.gridTemplateRows=`repeat(${e}, 1fr)`,t.style.gridTemplateColumns=`repeat(${e}, 1fr)`}function C(t){r.classList.add("shake"),setTimeout(()=>{r.classList.remove("shake"),t()},2e3)}function M(){n>i&&(document.getElementById("maxScore").textContent=n,i=n,localStorage.setItem("maxScore",i)),n=0,document.getElementById("score").textContent=n}document.addEventListener("click",t=>{h&&t.target.classList.contains("box")&&(t.target.classList.contains("odd-box")?(r.innerHTML="",document.getElementById("score").textContent=++n,g(r,++l)):(h=!1,document.querySelector(".odd-box").style.border="2px solid red",C(function(){M(),r.innerHTML="",l=f,g(r,l),h=!0})))});g(r,l);document.getElementById("maxScore").textContent=i; diff --git a/docs/javascript/assets/index-P55eLwRq.js b/docs/javascript/assets/index-j2GT3Iz1.js similarity index 91% rename from docs/javascript/assets/index-P55eLwRq.js rename to docs/javascript/assets/index-j2GT3Iz1.js index 5381e4bbe..88d23e438 100644 --- a/docs/javascript/assets/index-P55eLwRq.js +++ b/docs/javascript/assets/index-j2GT3Iz1.js @@ -1,4 +1,4 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const s=document.getElementById("balance-amount"),l=document.getElementById("transaction-list"),o=document.getElementById("description"),c=document.getElementById("amount"),u=document.getElementById("transaction-type"),m=document.getElementById("add-button");let d=0;function i(){s.textContent=`$${d.toFixed(2)}`}function r(n,t,e){const a=document.createElement("li");a.classList.add(e),a.innerHTML=` +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.getElementById("balance-amount"),l=document.getElementById("transaction-list"),o=document.getElementById("description"),c=document.getElementById("amount"),u=document.getElementById("transaction-type"),m=document.getElementById("add-button");let d=0;function i(){s.textContent=`$${d.toFixed(2)}`}function r(n,t,e){const a=document.createElement("li");a.classList.add(e),a.innerHTML=` ${n} $${t.toFixed(2)} `,l.appendChild(a),d+=e==="income"?t:-t,i()}m.addEventListener("click",()=>{const n=o.value,t=parseFloat(c.value),e=u.value;if(n.trim()===""||isNaN(t)||t<=0){alert("Please enter a valid description and amount.");return}r(n,t,e),o.value="",c.value=""});i(); diff --git a/docs/javascript/assets/index-gQn7xEpA.js b/docs/javascript/assets/index-j9-to8F6.js similarity index 91% rename from docs/javascript/assets/index-gQn7xEpA.js rename to docs/javascript/assets/index-j9-to8F6.js index cb577955f..bde51e3ed 100644 --- a/docs/javascript/assets/index-gQn7xEpA.js +++ b/docs/javascript/assets/index-j9-to8F6.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const f=document.querySelector(".calculator"),p=document.querySelector(".display");let t="",c=null,s=null,l=null,i=!1,a=!1;const d=(r,e)=>e==="."?r!=null&&r.includes(".")?r:r===""?"0.":t+e:t===""||t==="0"?e:t+e,n=r=>{p.textContent=r},o=(r,e=+c,u=+t)=>{switch(r){case"+":return e+u;case"-":return e-u;case"x":return e*u;case"/":return e/u}};f.addEventListener("click",r=>{if(!r.target.classList.contains("btn"))return;const e=r.target.dataset.value;if(!Number.isNaN(+e)||e==="."){i&&(c=t,t="",i=!1,a=!1),t=d(t,e),n(t);return}if(e==="c"){t="",s=null,c=null,l=null,n("0");return}!a&&(e==="="||l)&&c?(a=!0,s=t,t=o(l),n(t)):e==="="&&l&&(t=o(l,+t,+s),n(t)),e!=="="&&(l=e),i=!0});n("0"); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const f=document.querySelector(".calculator"),p=document.querySelector(".display");let t="",c=null,s=null,l=null,i=!1,a=!1;const d=(r,e)=>e==="."?r!=null&&r.includes(".")?r:r===""?"0.":t+e:t===""||t==="0"?e:t+e,n=r=>{p.textContent=r},o=(r,e=+c,u=+t)=>{switch(r){case"+":return e+u;case"-":return e-u;case"x":return e*u;case"/":return e/u}};f.addEventListener("click",r=>{if(!r.target.classList.contains("btn"))return;const e=r.target.dataset.value;if(!Number.isNaN(+e)||e==="."){i&&(c=t,t="",i=!1,a=!1),t=d(t,e),n(t);return}if(e==="c"){t="",s=null,c=null,l=null,n("0");return}!a&&(e==="="||l)&&c?(a=!0,s=t,t=o(l),n(t)):e==="="&&l&&(t=o(l,+t,+s),n(t)),e!=="="&&(l=e),i=!0});n("0"); diff --git a/docs/javascript/assets/index-f6Fi4vX1.js b/docs/javascript/assets/index-jCxp8ORr.js similarity index 98% rename from docs/javascript/assets/index-f6Fi4vX1.js rename to docs/javascript/assets/index-jCxp8ORr.js index 5a0a79aea..fcb55a1ba 100644 --- a/docs/javascript/assets/index-f6Fi4vX1.js +++ b/docs/javascript/assets/index-jCxp8ORr.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";class c{constructor(a=[]){this.trie={},this.addWordsToTrie(a)}addWordsToTrie(a){for(let t of a){let i=this.trie;t=t.toLowerCase();for(const o of t)i.hasOwnProperty(o)||(i[o]={}),i=i[o];i.end=!0}}getWordsFromTrie(a,t){a=a.toLowerCase();let i=this.trie;for(const o of a)if(i=i[o],!i)return[];return this.getWordsByDFS(i,t,a)}getWordsByDFS(a,t=1/0,i="",o=[]){if(!(a.end&&(o.push(i),o.length===t))){for(const u in a)if(a.hasOwnProperty(u)&&(this.getWordsByDFS(a[u],t,i+u,o),o.length===t))break;return o}}}const m=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],S=5,l=document.getElementById("userInput"),r=document.querySelector(".suggestions"),y=new c(m);let n=null,s="";function g(e){var a;(a=r.querySelector(".highlight"))==null||a.classList.remove("highlight"),r.childNodes[e].classList.add("highlight"),l.value=r.childNodes[e].textContent}function h(){var e;(e=r.querySelector(".highlight"))==null||e.classList.remove("highlight"),l.value=s,n=null}function d(){r.innerHTML="",n=null,l.value=s}l.addEventListener("input",()=>{r.innerHTML="",n=null,s=l.value;const e=s?y.getWordsFromTrie(s,S):[];for(let a=0;a{if(e.key==="Enter"&&n!=null){s=r.childNodes[n].textContent,d();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=r.childElementCount){h();return}g(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??r.childElementCount,n-1<0){h();return}g(--n)}});l.addEventListener("blur",()=>{setTimeout(d,100)});r.addEventListener("click",e=>{const a=e.target;a.tagName.toLowerCase()==="li"&&(s=a.textContent,d())}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";class c{constructor(a=[]){this.trie={},this.addWordsToTrie(a)}addWordsToTrie(a){for(let t of a){let i=this.trie;t=t.toLowerCase();for(const o of t)i.hasOwnProperty(o)||(i[o]={}),i=i[o];i.end=!0}}getWordsFromTrie(a,t){a=a.toLowerCase();let i=this.trie;for(const o of a)if(i=i[o],!i)return[];return this.getWordsByDFS(i,t,a)}getWordsByDFS(a,t=1/0,i="",o=[]){if(!(a.end&&(o.push(i),o.length===t))){for(const u in a)if(a.hasOwnProperty(u)&&(this.getWordsByDFS(a[u],t,i+u,o),o.length===t))break;return o}}}const m=["Afghanistan","Albania","Algeria","Andorra","Angola","Antigua and Barbuda","Argentina","Armenia","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Brazil","Brunei","Bulgaria","Burkina Faso","Burundi","Cote dIvoire","Cabo Verde","Cambodia","Cameroon","Canada","Central African Republic","Chad","Chile","China","Colombia","Comoros","Congo","Costa Rica","Croatia","Cuba","Cyprus","Czechia","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Fiji","Finland","France","Gabon","Gambia","Georgia","Germany","Ghana","Greece","Grenada","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Holy See","Honduras","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Zealand","Nicaragua","Niger","Nigeria","North Korea","North Macedonia","Norway","Oman","Pakistan","Palau","Palestine State","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Qatar","Romania","Russia","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States of America","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Yemen","Zambia","Zimbabwe"],S=5,l=document.getElementById("userInput"),r=document.querySelector(".suggestions"),y=new c(m);let n=null,s="";function g(e){var a;(a=r.querySelector(".highlight"))==null||a.classList.remove("highlight"),r.childNodes[e].classList.add("highlight"),l.value=r.childNodes[e].textContent}function h(){var e;(e=r.querySelector(".highlight"))==null||e.classList.remove("highlight"),l.value=s,n=null}function d(){r.innerHTML="",n=null,l.value=s}l.addEventListener("input",()=>{r.innerHTML="",n=null,s=l.value;const e=s?y.getWordsFromTrie(s,S):[];for(let a=0;a{if(e.key==="Enter"&&n!=null){s=r.childNodes[n].textContent,d();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=r.childElementCount){h();return}g(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??r.childElementCount,n-1<0){h();return}g(--n)}});l.addEventListener("blur",()=>{setTimeout(d,100)});r.addEventListener("click",e=>{const a=e.target;a.tagName.toLowerCase()==="li"&&(s=a.textContent,d())}); diff --git a/docs/javascript/assets/index-EUgEyeKq.js b/docs/javascript/assets/index-kx_-6hnH.js similarity index 94% rename from docs/javascript/assets/index-EUgEyeKq.js rename to docs/javascript/assets/index-kx_-6hnH.js index 9584e62da..e2f8f3912 100644 --- a/docs/javascript/assets/index-EUgEyeKq.js +++ b/docs/javascript/assets/index-kx_-6hnH.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const a=document.querySelector("button"),c=document.querySelectorAll(".options button")[0],u=document.querySelectorAll(".options button")[1],l=document.querySelectorAll(".options button")[2],s=document.querySelectorAll(".options button")[3];a.addEventListener("click",d);c.addEventListener("click",f);u.addEventListener("click",p);l.addEventListener("click",m);s.addEventListener("click",g);const r="1234";let o=!1,n=1e3;function d(){document.getElementById("pin").value===r?(o=!0,e("Login successful.")):(o=!1,e("Invalid PIN. Please try again."))}function f(){if(!o){e("Please login first.");return}e(`Your balance is $${n}`)}function p(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to deposit:"));!isNaN(t)&&t>0?(n+=t,e(`Deposited $${t}. Your new balance is $${n}`)):e("Invalid amount. Please try again.")}function m(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to withdraw:"));!isNaN(t)&&t>0&&t<=n?(n-=t,e(`Withdrawn $${t}. Your new balance is $${n}`)):e("Invalid amount or insufficient balance. Please try again.")}function g(){o=!1,e("Logged out successfully.")}function e(t){const i=document.getElementById("output");i.textContent=t} +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const a=document.querySelector("button"),c=document.querySelectorAll(".options button")[0],u=document.querySelectorAll(".options button")[1],l=document.querySelectorAll(".options button")[2],s=document.querySelectorAll(".options button")[3];a.addEventListener("click",d);c.addEventListener("click",f);u.addEventListener("click",p);l.addEventListener("click",m);s.addEventListener("click",g);const r="1234";let o=!1,n=1e3;function d(){document.getElementById("pin").value===r?(o=!0,e("Login successful.")):(o=!1,e("Invalid PIN. Please try again."))}function f(){if(!o){e("Please login first.");return}e(`Your balance is $${n}`)}function p(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to deposit:"));!isNaN(t)&&t>0?(n+=t,e(`Deposited $${t}. Your new balance is $${n}`)):e("Invalid amount. Please try again.")}function m(){if(!o){e("Please login first.");return}const t=parseFloat(prompt("Enter the amount to withdraw:"));!isNaN(t)&&t>0&&t<=n?(n-=t,e(`Withdrawn $${t}. Your new balance is $${n}`)):e("Invalid amount or insufficient balance. Please try again.")}function g(){o=!1,e("Logged out successfully.")}function e(t){const i=document.getElementById("output");i.textContent=t} diff --git a/docs/javascript/assets/index-Gj8HZnQ3.js b/docs/javascript/assets/index-lOie_DTd.js similarity index 94% rename from docs/javascript/assets/index-Gj8HZnQ3.js rename to docs/javascript/assets/index-lOie_DTd.js index 300584ad9..219716969 100644 --- a/docs/javascript/assets/index-Gj8HZnQ3.js +++ b/docs/javascript/assets/index-lOie_DTd.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const a=document.getElementById("display"),s=[],o=6,p=e=>{for(let n=0;n/^\d+$/.test(e);a.addEventListener("keydown",e=>{var t,i;const n=e.target;if(r(e.key)){n.value="";return}if(e.key==="ArrowLeft"){(t=n.previousElementSibling)==null||t.focus(),e.preventDefault(),e.stopPropagation();return}if(e.key==="ArrowRight"){(i=n.nextElementSibling)==null||i.focus();return}});a.addEventListener("keyup",e=>{var t;const n=e.target;if(e.key==="Backspace"||e.key==="Delete"){n.value="",(t=n.previousElementSibling)==null||t.focus();return}});a.addEventListener("input",e=>{const n=e.target;if(!r(n.value)){n.value="";return}if(n.value!==""){const t=n.nextElementSibling;t?t.focus():n.parentElement.firstChild.value===""?n.parentElement.firstChild.focus():n.blur()}});a.addEventListener("paste",e=>{const t=(e.clipboardData||window.clipboardData).getData("Text");typeof t=="string"&&t.length===o&&r(t)&&s.forEach((i,l)=>{i.value=t.charAt(l)})});p(o); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const a=document.getElementById("display"),s=[],o=6,p=e=>{for(let n=0;n/^\d+$/.test(e);a.addEventListener("keydown",e=>{var t,i;const n=e.target;if(r(e.key)){n.value="";return}if(e.key==="ArrowLeft"){(t=n.previousElementSibling)==null||t.focus(),e.preventDefault(),e.stopPropagation();return}if(e.key==="ArrowRight"){(i=n.nextElementSibling)==null||i.focus();return}});a.addEventListener("keyup",e=>{var t;const n=e.target;if(e.key==="Backspace"||e.key==="Delete"){n.value="",(t=n.previousElementSibling)==null||t.focus();return}});a.addEventListener("input",e=>{const n=e.target;if(!r(n.value)){n.value="";return}if(n.value!==""){const t=n.nextElementSibling;t?t.focus():n.parentElement.firstChild.value===""?n.parentElement.firstChild.focus():n.blur()}});a.addEventListener("paste",e=>{const t=(e.clipboardData||window.clipboardData).getData("Text");typeof t=="string"&&t.length===o&&r(t)&&s.forEach((i,l)=>{i.value=t.charAt(l)})});p(o); diff --git a/docs/javascript/assets/index-ZUL-nCbS.js b/docs/javascript/assets/index-lp0aKgI9.js similarity index 92% rename from docs/javascript/assets/index-ZUL-nCbS.js rename to docs/javascript/assets/index-lp0aKgI9.js index dcf578234..2bcbf8b4a 100644 --- a/docs/javascript/assets/index-ZUL-nCbS.js +++ b/docs/javascript/assets/index-lp0aKgI9.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";function i(t){const c={1:[[50,50]],2:[[20,20],[80,80]],3:[[20,20],[50,50],[80,80]],4:[[20,20],[20,80],[80,20],[80,80]],5:[[20,20],[20,80],[50,50],[80,20],[80,80]],6:[[20,20],[20,80],[50,20],[50,80],[80,20],[80,80]]},e=document.createElement("div");e.classList.add("dice");for(const n of c[t]){const o=document.createElement("div");o.classList.add("dice-dot"),o.style.setProperty("--top",`${n[0]}%`),o.style.setProperty("--left",`${n[1]}%`),e.appendChild(o)}return e}function r(t,c){t.innerHTML="";for(let e=0;e{const t=setInterval(()=>{r(d,l)},50);setTimeout(()=>{clearInterval(t)},1e3)}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";function i(t){const c={1:[[50,50]],2:[[20,20],[80,80]],3:[[20,20],[50,50],[80,80]],4:[[20,20],[20,80],[80,20],[80,80]],5:[[20,20],[20,80],[50,50],[80,20],[80,80]],6:[[20,20],[20,80],[50,20],[50,80],[80,20],[80,80]]},e=document.createElement("div");e.classList.add("dice");for(const n of c[t]){const o=document.createElement("div");o.classList.add("dice-dot"),o.style.setProperty("--top",`${n[0]}%`),o.style.setProperty("--left",`${n[1]}%`),e.appendChild(o)}return e}function r(t,c){t.innerHTML="";for(let e=0;e{const t=setInterval(()=>{r(d,l)},50);setTimeout(()=>{clearInterval(t)},1e3)}); diff --git a/docs/javascript/assets/index-Sf32MUOz.js b/docs/javascript/assets/index-ls-MhjRy.js similarity index 99% rename from docs/javascript/assets/index-Sf32MUOz.js rename to docs/javascript/assets/index-ls-MhjRy.js index 485664fe9..0e79728a7 100644 --- a/docs/javascript/assets/index-Sf32MUOz.js +++ b/docs/javascript/assets/index-ls-MhjRy.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const l=[{word:"guitar",hint:"A musical instrument with strings."},{word:"oxygen",hint:"A colorless, odorless gas essential for life."},{word:"mountain",hint:"A large natural elevation of the Earth's surface."},{word:"painting",hint:"An art form using colors on a surface to create images or expression."},{word:"astronomy",hint:"The scientific study of celestial objects and phenomena."},{word:"football",hint:"A popular sport played with a spherical ball."},{word:"chocolate",hint:"A sweet treat made from cocoa beans."},{word:"butterfly",hint:"An insect with colorful wings and a slender body."},{word:"history",hint:"The study of past events and human civilization."},{word:"pizza",hint:"A savory dish consisting of a round, flattened base with toppings."},{word:"jazz",hint:"A genre of music characterized by improvisation and syncopation."},{word:"camera",hint:"A device used to capture and record images or videos."},{word:"diamond",hint:"A precious gemstone known for its brilliance and hardness."},{word:"adventure",hint:"An exciting or daring experience."},{word:"science",hint:"The systematic study of the structure and behavior of the physical and natural world."},{word:"bicycle",hint:"A human-powered vehicle with two wheels."},{word:"sunset",hint:"The daily disappearance of the sun below the horizon."},{word:"coffee",hint:"A popular caffeinated beverage made from roasted coffee beans."},{word:"dance",hint:"A rhythmic movement of the body often performed to music."},{word:"galaxy",hint:"A vast system of stars, gas, and dust held together by gravity."},{word:"orchestra",hint:"A large ensemble of musicians playing various instruments."},{word:"volcano",hint:"A mountain or hill with a vent through which lava, rock fragments, hot vapor, and gas are ejected."},{word:"novel",hint:"A long work of fiction, typically with a complex plot and characters."},{word:"sculpture",hint:"A three-dimensional art form created by shaping or combining materials."},{word:"symphony",hint:"A long musical composition for a full orchestra, typically in multiple movements."},{word:"architecture",hint:"The art and science of designing and constructing buildings."},{word:"ballet",hint:"A classical dance form characterized by precise and graceful movements."},{word:"astronaut",hint:"A person trained to travel and work in space."},{word:"waterfall",hint:"A cascade of water falling from a height."},{word:"technology",hint:"The application of scientific knowledge for practical purposes."},{word:"rainbow",hint:"A meteorological phenomenon that is caused by reflection, refraction, and dispersion of light."},{word:"universe",hint:"All existing matter, space, and time as a whole."},{word:"piano",hint:"A musical instrument played by pressing keys that cause hammers to strike strings."},{word:"vacation",hint:"A period of time devoted to pleasure, rest, or relaxation."},{word:"rainforest",hint:"A dense forest characterized by high rainfall and biodiversity."},{word:"theater",hint:"A building or outdoor area in which plays, movies, or other performances are staged."},{word:"telephone",hint:"A device used to transmit sound over long distances."},{word:"language",hint:"A system of communication consisting of words, gestures, and syntax."},{word:"desert",hint:"A barren or arid land with little or no precipitation."},{word:"sunflower",hint:"A tall plant with a large yellow flower head."},{word:"fantasy",hint:"A genre of imaginative fiction involving magic and supernatural elements."},{word:"telescope",hint:"An optical instrument used to view distant objects in space."},{word:"breeze",hint:"A gentle wind."},{word:"oasis",hint:"A fertile spot in a desert where water is found."},{word:"photography",hint:"The art, process, or practice of creating images by recording light or other electromagnetic radiation."},{word:"safari",hint:"An expedition or journey, typically to observe wildlife in their natural habitat."},{word:"planet",hint:"A celestial body that orbits a star and does not produce light of its own."},{word:"river",hint:"A large natural stream of water flowing in a channel to the sea, a lake, or another such stream."},{word:"tropical",hint:"Relating to or situated in the region between the Tropic of Cancer and the Tropic of Capricorn."},{word:"mysterious",hint:"Difficult or impossible to understand, explain, or identify."},{word:"enigma",hint:"Something that is mysterious, puzzling, or difficult to understand."},{word:"paradox",hint:"A statement or situation that contradicts itself or defies intuition."},{word:"puzzle",hint:"A game, toy, or problem designed to test ingenuity or knowledge."},{word:"whisper",hint:"To speak very softly or quietly, often in a secretive manner."},{word:"shadow",hint:"A dark area or shape produced by an object blocking the light."},{word:"secret",hint:"Something kept hidden or unknown to others."},{word:"curiosity",hint:"A strong desire to know or learn something."},{word:"unpredictable",hint:"Not able to be foreseen or known beforehand; uncertain."},{word:"obfuscate",hint:"To confuse or bewilder someone; to make something unclear or difficult to understand."},{word:"unveil",hint:"To make known or reveal something previously secret or unknown."},{word:"illusion",hint:"A false perception or belief; a deceptive appearance or impression."},{word:"moonlight",hint:"The light from the moon."},{word:"vibrant",hint:"Full of energy, brightness, and life."},{word:"nostalgia",hint:"A sentimental longing or wistful affection for the past."},{word:"brilliant",hint:"Exceptionally clever, talented, or impressive."}],m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_688'%20data-name='Group%20688'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_691'%20data-name='Group%20691'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",x="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_692'%20data-name='Group%20692'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_694'%20data-name='Group%20694'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_699'%20data-name='Group%20699'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(450.5%20284.782)%20rotate(-45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_698'%20data-name='Group%20698'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_700'%20data-name='Group%20700'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cpath%20id='Path_355'%20data-name='Path%20355'%20d='M5,2.5v51a2.5,2.5,0,0,1-5,0V2.5C0,1.119,5,1.119,5,2.5Z'%20transform='translate(16288.732%2014568.783)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="/frontend-mini-challenges/javascript/assets/lost-retzeMxq.gif",k="/frontend-mini-challenges/javascript/assets/victory-OYJro-8B.gif",G=[m,R,x,y,v,_,b],w=document.querySelector(".img-container img"),d=document.querySelector(".correctWord-list"),T=document.querySelector(".hint-text b"),c=document.querySelector(".wrong-guess b"),f=document.querySelector(".game-modal"),E=document.querySelector(".game-modal img"),L=document.querySelector(".modal-result"),S=document.querySelector(".modal-correctWord b"),q=document.querySelector(".btn-again"),h=document.querySelector(".keyboard-container");let s=[],o,n=0;const u=6;function z(t){const e=document.createDocumentFragment();Array.from(t).map(a=>{const r=document.createElement("li");r.classList.add("character"),e.appendChild(r)}),d.innerHTML="",d.appendChild(e)}function C(){const{word:t,hint:e}=l[Math.floor(Math.random()*l.length)];s=[],o=t,z(o),w.src=m,T.innerText=e,c.classList.add("wrong-guesses"),n=0,c.innerText=`${n} / ${u}`,f.classList.remove("show-modal"),j()}function j(){const t=document.createDocumentFragment();for(let e=97;e<=122;e++){const a=document.createElement("button");a.innerText=String.fromCharCode(e),a.classList.add("keys"),t.appendChild(a)}h.innerHTML="",h.appendChild(t)}function g(t){f.classList.add("show-modal"),E.src=t?k:A,L.innerText=`${t?"You are awesome":"Game Over"}`,S.innerText=o,q.addEventListener("click",p)}function B(){document.querySelectorAll(".keys").forEach(e=>{e.addEventListener("click",a=>{o.includes(a.target.innerText.toLowerCase())?Array.from(o).forEach((r,i)=>{a.target.innerText.toLowerCase()===r&&(s[i]=r,document.querySelectorAll(".character")[i].innerText=r,document.querySelectorAll(".character")[i].classList.add("set"))}):(n++,c.innerText=`${n} / ${u}`,w.src=G[n]),e.disabled=!0,e.classList.add("disabled"),n===6&&g(!1),s.join("")===o&&g(!0)})})}function p(){C(),B()}p(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const l=[{word:"guitar",hint:"A musical instrument with strings."},{word:"oxygen",hint:"A colorless, odorless gas essential for life."},{word:"mountain",hint:"A large natural elevation of the Earth's surface."},{word:"painting",hint:"An art form using colors on a surface to create images or expression."},{word:"astronomy",hint:"The scientific study of celestial objects and phenomena."},{word:"football",hint:"A popular sport played with a spherical ball."},{word:"chocolate",hint:"A sweet treat made from cocoa beans."},{word:"butterfly",hint:"An insect with colorful wings and a slender body."},{word:"history",hint:"The study of past events and human civilization."},{word:"pizza",hint:"A savory dish consisting of a round, flattened base with toppings."},{word:"jazz",hint:"A genre of music characterized by improvisation and syncopation."},{word:"camera",hint:"A device used to capture and record images or videos."},{word:"diamond",hint:"A precious gemstone known for its brilliance and hardness."},{word:"adventure",hint:"An exciting or daring experience."},{word:"science",hint:"The systematic study of the structure and behavior of the physical and natural world."},{word:"bicycle",hint:"A human-powered vehicle with two wheels."},{word:"sunset",hint:"The daily disappearance of the sun below the horizon."},{word:"coffee",hint:"A popular caffeinated beverage made from roasted coffee beans."},{word:"dance",hint:"A rhythmic movement of the body often performed to music."},{word:"galaxy",hint:"A vast system of stars, gas, and dust held together by gravity."},{word:"orchestra",hint:"A large ensemble of musicians playing various instruments."},{word:"volcano",hint:"A mountain or hill with a vent through which lava, rock fragments, hot vapor, and gas are ejected."},{word:"novel",hint:"A long work of fiction, typically with a complex plot and characters."},{word:"sculpture",hint:"A three-dimensional art form created by shaping or combining materials."},{word:"symphony",hint:"A long musical composition for a full orchestra, typically in multiple movements."},{word:"architecture",hint:"The art and science of designing and constructing buildings."},{word:"ballet",hint:"A classical dance form characterized by precise and graceful movements."},{word:"astronaut",hint:"A person trained to travel and work in space."},{word:"waterfall",hint:"A cascade of water falling from a height."},{word:"technology",hint:"The application of scientific knowledge for practical purposes."},{word:"rainbow",hint:"A meteorological phenomenon that is caused by reflection, refraction, and dispersion of light."},{word:"universe",hint:"All existing matter, space, and time as a whole."},{word:"piano",hint:"A musical instrument played by pressing keys that cause hammers to strike strings."},{word:"vacation",hint:"A period of time devoted to pleasure, rest, or relaxation."},{word:"rainforest",hint:"A dense forest characterized by high rainfall and biodiversity."},{word:"theater",hint:"A building or outdoor area in which plays, movies, or other performances are staged."},{word:"telephone",hint:"A device used to transmit sound over long distances."},{word:"language",hint:"A system of communication consisting of words, gestures, and syntax."},{word:"desert",hint:"A barren or arid land with little or no precipitation."},{word:"sunflower",hint:"A tall plant with a large yellow flower head."},{word:"fantasy",hint:"A genre of imaginative fiction involving magic and supernatural elements."},{word:"telescope",hint:"An optical instrument used to view distant objects in space."},{word:"breeze",hint:"A gentle wind."},{word:"oasis",hint:"A fertile spot in a desert where water is found."},{word:"photography",hint:"The art, process, or practice of creating images by recording light or other electromagnetic radiation."},{word:"safari",hint:"An expedition or journey, typically to observe wildlife in their natural habitat."},{word:"planet",hint:"A celestial body that orbits a star and does not produce light of its own."},{word:"river",hint:"A large natural stream of water flowing in a channel to the sea, a lake, or another such stream."},{word:"tropical",hint:"Relating to or situated in the region between the Tropic of Cancer and the Tropic of Capricorn."},{word:"mysterious",hint:"Difficult or impossible to understand, explain, or identify."},{word:"enigma",hint:"Something that is mysterious, puzzling, or difficult to understand."},{word:"paradox",hint:"A statement or situation that contradicts itself or defies intuition."},{word:"puzzle",hint:"A game, toy, or problem designed to test ingenuity or knowledge."},{word:"whisper",hint:"To speak very softly or quietly, often in a secretive manner."},{word:"shadow",hint:"A dark area or shape produced by an object blocking the light."},{word:"secret",hint:"Something kept hidden or unknown to others."},{word:"curiosity",hint:"A strong desire to know or learn something."},{word:"unpredictable",hint:"Not able to be foreseen or known beforehand; uncertain."},{word:"obfuscate",hint:"To confuse or bewilder someone; to make something unclear or difficult to understand."},{word:"unveil",hint:"To make known or reveal something previously secret or unknown."},{word:"illusion",hint:"A false perception or belief; a deceptive appearance or impression."},{word:"moonlight",hint:"The light from the moon."},{word:"vibrant",hint:"Full of energy, brightness, and life."},{word:"nostalgia",hint:"A sentimental longing or wistful affection for the past."},{word:"brilliant",hint:"Exceptionally clever, talented, or impressive."}],m="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_688'%20data-name='Group%20688'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",R="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_691'%20data-name='Group%20691'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3c/g%3e%3c/svg%3e",x="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_692'%20data-name='Group%20692'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",y="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_694'%20data-name='Group%20694'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_699'%20data-name='Group%20699'%20transform='translate(-219%20-183)'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(448.965%20281.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(450.5%20284.782)%20rotate(-45)'/%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(310.627%20183.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(517.232%20469)%20rotate(90)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(423.5%20228.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(267%20183)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(449%20184)'/%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(449%20281)'/%3e%3c/g%3e%3c/svg%3e",_="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_698'%20data-name='Group%20698'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='298.232'%20height='291'%20viewBox='0%200%20298.232%20291'%3e%3cg%20id='Group_700'%20data-name='Group%20700'%20transform='translate(-16059.232%20-14400)'%3e%3crect%20id='Rectangle_2987'%20data-name='Rectangle%202987'%20width='5'%20height='289'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3cg%20id='Group_697'%20data-name='Group%20697'%3e%3crect%20id='Rectangle_2974'%20data-name='Rectangle%202974'%20width='5'%20height='61.733'%20transform='translate(16150.859%2014400.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2966'%20data-name='Rectangle%202966'%20width='5'%20height='298.232'%20rx='2.5'%20transform='translate(16357.465%2014686)%20rotate(90)'/%3e%3crect%20id='Rectangle_2988'%20data-name='Rectangle%202988'%20width='187'%20height='5'%20rx='2.5'%20transform='translate(16107.232%2014400)'/%3e%3crect%20id='Rectangle_2989'%20data-name='Rectangle%202989'%20width='5'%20height='49'%20rx='2.5'%20transform='translate(16289.232%2014401)'/%3e%3cg%20id='Group_696'%20data-name='Group%20696'%3e%3crect%20id='Rectangle_2970'%20data-name='Rectangle%202970'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16289.197%2014498.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2967'%20data-name='Rectangle%202967'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16291.197%2014565.247)%20rotate(45)'/%3e%3crect%20id='Rectangle_2971'%20data-name='Rectangle%202971'%20width='5'%20height='56'%20rx='2.5'%20transform='translate(16290.732%2014501.782)%20rotate(-45)'/%3e%3cpath%20id='Path_355'%20data-name='Path%20355'%20d='M5,2.5v51a2.5,2.5,0,0,1-5,0V2.5C0,1.119,5,1.119,5,2.5Z'%20transform='translate(16288.732%2014568.783)%20rotate(-45)'/%3e%3cg%20id='Ellipse_32'%20data-name='Ellipse%2032'%20transform='translate(16263.732%2014445.247)'%20fill='none'%20stroke='%23000'%20stroke-width='5'%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='27.5'%20stroke='none'/%3e%3ccircle%20cx='27.5'%20cy='27.5'%20r='25'%20fill='none'/%3e%3c/g%3e%3crect%20id='Rectangle_2990'%20data-name='Rectangle%202990'%20width='5'%20height='73'%20rx='2.5'%20transform='translate(16289.232%2014498)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",A="/frontend-mini-challenges/javascript/assets/lost-retzeMxq.gif",k="/frontend-mini-challenges/javascript/assets/victory-OYJro-8B.gif",G=[m,R,x,y,v,_,b],w=document.querySelector(".img-container img"),d=document.querySelector(".correctWord-list"),T=document.querySelector(".hint-text b"),c=document.querySelector(".wrong-guess b"),f=document.querySelector(".game-modal"),E=document.querySelector(".game-modal img"),L=document.querySelector(".modal-result"),S=document.querySelector(".modal-correctWord b"),q=document.querySelector(".btn-again"),h=document.querySelector(".keyboard-container");let s=[],o,n=0;const u=6;function z(t){const e=document.createDocumentFragment();Array.from(t).map(a=>{const r=document.createElement("li");r.classList.add("character"),e.appendChild(r)}),d.innerHTML="",d.appendChild(e)}function C(){const{word:t,hint:e}=l[Math.floor(Math.random()*l.length)];s=[],o=t,z(o),w.src=m,T.innerText=e,c.classList.add("wrong-guesses"),n=0,c.innerText=`${n} / ${u}`,f.classList.remove("show-modal"),j()}function j(){const t=document.createDocumentFragment();for(let e=97;e<=122;e++){const a=document.createElement("button");a.innerText=String.fromCharCode(e),a.classList.add("keys"),t.appendChild(a)}h.innerHTML="",h.appendChild(t)}function g(t){f.classList.add("show-modal"),E.src=t?k:A,L.innerText=`${t?"You are awesome":"Game Over"}`,S.innerText=o,q.addEventListener("click",p)}function B(){document.querySelectorAll(".keys").forEach(e=>{e.addEventListener("click",a=>{o.includes(a.target.innerText.toLowerCase())?Array.from(o).forEach((r,i)=>{a.target.innerText.toLowerCase()===r&&(s[i]=r,document.querySelectorAll(".character")[i].innerText=r,document.querySelectorAll(".character")[i].classList.add("set"))}):(n++,c.innerText=`${n} / ${u}`,w.src=G[n]),e.disabled=!0,e.classList.add("disabled"),n===6&&g(!1),s.join("")===o&&g(!0)})})}function p(){C(),B()}p(); diff --git a/docs/javascript/assets/index-v7PWUOjX.js b/docs/javascript/assets/index-mVJD8gFo.js similarity index 97% rename from docs/javascript/assets/index-v7PWUOjX.js rename to docs/javascript/assets/index-mVJD8gFo.js index a0c306c75..2c0b021bd 100644 --- a/docs/javascript/assets/index-v7PWUOjX.js +++ b/docs/javascript/assets/index-mVJD8gFo.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const o="/frontend-mini-challenges/javascript/assets/tom-1-ZxwkIOhV.mp3",a="/frontend-mini-challenges/javascript/assets/tom-2-zXm4l6or.mp3",i="/frontend-mini-challenges/javascript/assets/tom-3-9-KQMv6G.mp3",c="/frontend-mini-challenges/javascript/assets/tom-4-NV-LM3zZ.mp3",r="/frontend-mini-challenges/javascript/assets/snare-zXeTDHza.mp3",l="/frontend-mini-challenges/javascript/assets/crash-B1TgC1_6.mp3",m="data:audio/mpeg;base64,//uSRAAAAAAAaQUAAAAAAA0goAAAIg5BJBlqgAlgyCsDIqAB0xnAMfjEgN/CmMUoKIBhLG+BrERFjnpAZiCXAY5AyZJngONv8Dd7R5PpmAGixOBjkagZFLPlQqGaYGWxSBqpIAaKRAGdBd83QTZQGsUqBn81gZHCIGNBYBh4EfmiCZuboCsgY+FgGKBgBjIIAaBMoGWSv/ZqFaYGSQyBlIkAZAGwBQ8BuMSkAUAP+mgyCd6YGRxqBi0XgYrBYGViMBj4cAYqAwGNRWBiEKgoA//upBBbv4NzwDQKAMFwMeC4DFAoAxEBAMgjMDFonAGGYGFgkBgwBf/9mW7qt1u6hggYKAQGAgUAMHAMbisDE4nAw+AwMaCoDEQcAUDgGBQGFp4ygGFweBg0J//////////////+FlgB88csGznh8g7PAbAr/jcfj//JwvBEDT/wvxFk5IZ//JCAkFsf//5OPCRv//+TnnjweGHn////q5IYYTnuY3////8wxic88wxj88//////////////8AOWMAtVA2H8MtgZ3sGWAuSZpHSKF//7kkQKgANpkFgGUUACVbILMMocAEsUlUY914AJYY4oj7jAAYiBOlxy4Tg8G7nnEgFwelRiXNLMRigmKNHrsTmFTyciKKSyE7V1VyE4mOdl/t0Y01Djk//qzZpxx3//6mm/OU3///zUOf5qHHKb//////////////////+ANaBRSBpmIgiBswQXGD6mZQNC4kVC6jxoLyiUAsKVNjtzhYXeeyq/POQ03p+ahyev/SpqHHf/6r1Q47//9TTfpX///zf9c7///////////////////B4hQw5KOUzYHVophUDrdoep55hqQsAQ1Ir1Vuz7K00U0ooRw4YHsRXrl0N44ihQnDJCV2GtiVzWywr3pmC4xc7jQreDWlq11aNfPpBzKd+VjkybmUpyVMFAAhLAGHaudaSJssfGCwQ7MpX2+TBHDhuWvY4jyPpJImIhwZiW8NKGH5XEQpLnVJye9ZUvVWeR3e7r7uazXY3h5DaVLTDzS9d/ONVNQ3Ia4z8tc////u//VAC3NwDX4WNncIzWVASJTAIMXkNArTDGGSDgo4xwBmn/+5JkD4ADUjZQm48y4j0ianNpJjhNiONAbjDLiP4Tqc2zCSi+nRPzvWGxVq5QIewKrCPb3E4tw3Dbxx1Sa+qkVVMwxT1IlBOta9ecA3FakbFtG7rvBqv6a00ji8t/O99RnF7pUcxaNRA7//Z/nt9ALc3ANfwOm4CLl9dCuY3SktJoQ+aUmTFj4maJGOhIUOl+W8R9TNONTSWr6lf/3QqX3quj/+JLSuvt/N6/gCd34BhVqG8ooaMCBgIKAIALqZNJWlU7lVWS6TB2DtKudQw8VomySsbUjoaGKta8cPrX7IulxUJSCT8TgLxwNpRtorTrcjIBY8zcfGzSSFjkk90saWMdFIl9e+lh7vE3TJzAgITn5Jdt/7+u6And+AZVFG7n48aJhPLHpXYwiMcjhxzgZwGCsiI1cppPcrBrhXTehSKVk7bfVsqldZqjUPSDZEPBIHX6XoK9lQAAFzQA2Spj0sbPdDEHBoMBhbISDC8nwfl1IicrCXlgwhozSDRziL0aRdzlV6OLwMklSGnihje4PmR9V0pWJlUFondQl4KWI5I+//uSZCSAA2o8TZuPMuBAQqojcYk4DbDvMm68y4kOimgN1KTg9ipnynhI60pLMLinRFXWdfNLje3kuj4c0jvbxsx9+65xXWLaAAXNABBZjO51MVid0WuwJhIC8Jo2LJyMaHC1a0hFQye1AqIYkMUTnI6i+Xbp7A2IjxiwuXrkayQxvXO9ZtBhPpABd4AM5xlOyK9NQA1BAxoTxoFwQAULUNUxXrYMEpGUniPRo5mcwjiZC7sTcoy2l8GMIvBExDOX04xNu2BLJ6PIrqZMixphtOXM7xxoFlUx5uHd86XecW8GnoJzQh8ZCmN3MeZQSnsanjyWjmEtABd4AMO4iMkhvMjQQLUwUwhROHyOMdaBldRERk0g7EOlXIVVZNNn0loRajcEw6SFFmDx5G+o0gAl6p0YeptlmhLG7UA=",B=new Map([["w",o],["a",a],["s",i],["d",c],["j",r],["k",l],["l",m]]),d=document.querySelectorAll(".drum").length;for(let n=0;nsetTimeout(t,n))}async function l(n,t){await i(o);for(let e=0;e{c.value&&(r.push(c.value),c.value="")});a.addEventListener("change",()=>{o=a.value}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const s=document.querySelector(".second-text"),c=document.querySelector(".input"),d=document.querySelector(".button"),a=document.querySelector(".speedRange"),r=["Student","Developer","Writer"];a.default=200;let o=200;function i(n){return new Promise(t=>setTimeout(t,n))}async function l(n,t){await i(o);for(let e=0;e{c.value&&(r.push(c.value),c.value="")});a.addEventListener("change",()=>{o=a.value}); diff --git a/docs/javascript/assets/index-YcGiNh1_.js b/docs/javascript/assets/index-q79cPQBF.js similarity index 99% rename from docs/javascript/assets/index-YcGiNh1_.js rename to docs/javascript/assets/index-q79cPQBF.js index 837433d0a..8d8d5c11f 100644 --- a/docs/javascript/assets/index-YcGiNh1_.js +++ b/docs/javascript/assets/index-q79cPQBF.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const i="/frontend-mini-challenges/javascript/assets/clear-LZ6NAuEy.png",c="/frontend-mini-challenges/javascript/assets/clouds-Ewen_3nw.png",o="/frontend-mini-challenges/javascript/assets/drizzle-qNMLyhya.png",g="/frontend-mini-challenges/javascript/assets/haze-CPmwrBBR.png",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABCCAYAAAAWqotYAAAAAXNSR0IArs4c6QAABhVJREFUeAHtm/1xozgYh+0Klg6iDpYOTh3YHZgO1h04HcQdmFQQtoKQCkIqMKlgSQV7z88n5WQMGIj35v7Qb+aJvt4P6TXszYi55W+0WCxKkEr4uVwuKw3mipAG3xVYSCB1reI2oLYkz0/a2SJPgrPPY+h7avqekr7OpLyzRS6fJyWI8n4smOzSkckfYMZmwzaBDTzDWP3C8AG0odHCfgUHmKIDxirAaGGfgvanfbZVLpm5J5p1Ef9ybdgUDETnr4e/NrR2JLSh3hg0ULk2pZWN2m8QSjY5PHY9JeSRzwbWYCDUO4M6wND33NEPVTMoQHmU80zkSZhQngxSCPXBQD4NFOGCnkI9PVuooE/PLIiuX4Pp3zXswZwFbw1Yz6CAPr2y8AxH6FLDZA62FfpsqHVnJ/su6RzPoHx90j6zs8BDA4xT2IOKcU3amA6yHorZtYaPgS1UMEYFRhkkXfH65mTv/OQ/Rjr3FkxfzGXfQjhPAMtYSPb099/Ht2Ksf/wbNz+7IU+KswUVRn21dYDyaPwluYJYgpiAhn4FapVH/ahYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIHuCugyVBeg77e4rehKQfyE+e9u7eNP3la4s5xSkeelaz+3mHO3MsmCTqgjgwcwc5Pgq3uzDQxdLuoC8gDp3Dzyw38FTzAkrU+6fm/vCf8UDqB9e5Xt4vkFta+wAT05V4XdCrTRqTrisANzNQkG2HUdhOmr0sEPMOoHw87ADzhCl07fMCx7Mg719Rq3lTNRQg3v0IBeRRXWQgbtIssuB9lWIMkmdXQ9DSVrBcj+9Iqza78fy1wGBkLpu0IODZTgZekYWMM3CFUzyKGEhV5x8qR0ZafWgvza0te+CmrX0gQiiCp+DzVMVYNDDtrAoLDR651BBXNU4NR1wIu8sgPZz5H2t4XkIvDQBA4WVIwGhqSNZUOxhtbwNbCHGoZUsbiFaQdxyeXn/BVnSNrHHgYfguXQocI1AhnGHm2+gubW//Ukj2Jr074t6evVOrXq30rksi6W2tN51JKrcfOxiRWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgV6K6AvmHsWNItgm4VbvaNwd3C3BHTOGhOKvVXF5Cn0Rf/uFsYfzGbBuF0Hp3r7Va3JORSfF2YWnhfMNHWKxO6fk4wmCz8NvAE13TE4AHM5CQ44GfhAL9gSFo/gJ2Zx+C7gyOEGvyGIUMVYXUtKTYpHODaQTDp1CuzGxj8wVjvOwhLo3TEagdm6Eys69J0A9pXn8rTZSir2rQeSbEFvW6hGgYlVKC+MA7rWppP+e8KBTM1r03tV8hl6RvIwH+foPupkp6QlC+FBKzr05zpkZHPI/uTyCM/A2vYQFuyLaEB9VOQrEP9UC8MctB5StpuKTHk0MAUFRivu6NezmKrJ+keapiiCuMMksuolzOyc/bymyLtS/szl1FHzOC4hgK6Eit4CRmMOkhfSvxTyEHx2mqY0Pw9zDuISyx/F0fxFLctzedg+/Y6e56gCZjZASY4kse/ShO8ppv+V3mm7yx6xArECsQKxArECsQKxArECsQKxArECsQKxArECvxvK6BvGM9udyVtA4+3uPMnri4gDehmRNdVQvEr1ypPTf9LIo8lgC5VjcPnqRmLF/KUtF8SeQwBdCbFT+FtwWSXRl2/E+BMBNKd3AHGXsePun4/S8KA+AZ2cIQxOmK0A9OONTTGXtdvG3iGtk7fMEpmRZeOTO6gNylrPkHffX+Fjc+htoG2VOwD6BftFesreIIu1UyGeTTukvwHv8uwnsIBtK+2tH/l2S/DnTKhzW9hDfrEFqp0A9/KNgHfuuVTo/9fIed1KcJJ3yePoZ857mhDVQwa8K2hH8LwU2/09lCQSz5nIk/CxBq28P1s8Z9XumbOI9sUfEv3U+/0ckGemrZfSgoZqMJjpV96C6Y/8uUK9msoYKwaDPegg46W7J2f/MeqwHDdl+Tsyesywtkwn4EFSf84S/rVG6hAv3xJO1vkSXDOwIL6Kejp169eO0ry5PS/JHJlBLBgHP7pf2HcQAk6U00b9Scq8DdqEfrKo4jnpQAAAABJRU5ErkJggg==",m="/frontend-mini-challenges/javascript/assets/mist-UsRI81hv.png",p="/frontend-mini-challenges/javascript/assets/rain-6EVq1sZg.png",h="/frontend-mini-challenges/javascript/assets/snow--VBqIh3y.png",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAAAXNSR0IArs4c6QAACFZJREFUeAHtnOt120YQhcWc/A87CFKBkQoEVyB2ILgCMRWIrkBMBYQqEF0B4QrEVECoAsMVKN+lsdBwsSRByrZAwnPOzc7OY3fmahekkCiDizOV5+fnIa1dghGIgCRZ//PiomAUSpCDT4PBoGDst0BaAh7AofJIwi0Q6f0Smo7BArxWvrDATRv2Bm2Cuh5Ds3fUOA7U+RXbHCwr2JCIiTAC74AvyvnAddZ4fgJpQ7AAvuQYREorITYCE1ACKzqFSatFTimIpkScnlNWlkyObpZcrZnZBSs9PSVu9tZKUz5xanq4N7FFAOuMQAmsxC1Sux9CRzPbFfr0e1fNmjGwBOoKR997n5+6Hg2kwEq2qwACRcIdWACdVpEg/QFcg62nFZ9P4GLXXp330dAKOFluK5iABCxc4I5RZN7uWMf/YaXbYjttp8mJR0IUKpiYGy+uzfSRoOApxD43C6xCe3beRgM6JU6CzzmcPsGKz8EYJBVGjBkogZUggQRENgg97TxZtkAKVsNWGqcEpx9TYEvsOlbHNwQi0UrwuUaAjZvbdTqvU/zUdNgoHp+IsCdzKVubxogbAyupn4dzZAN8f6fnFL4yxYeaswSUxEaHNET83KwffK7h17pORoes/6axruJqbJwo7HpeOZkcWiyJ/nMt9tcgxhI8+c0P6OKcohNbF7+sl3aOX2TaZufW30av3ud9MrEjozt16RTG4UmQZwqW+uTNNbXEXbziTYglJwrsY03xKZJX2A4C+n8B2zGmKJBkyb343QZUxz/0bsuGHas/VVejkV9dy2Kb30t4pzqJLY19ZHRrN+aD1dA6cXAVCkrBj5ap3ZzN9JC2Xy82/C6WmKFX2INs8jNee76xyzt0ZJ2NDwQ/H//E7JXVfoy5cfwwtd4QhU0Sb6Ol9VudOFu4l1ZP9VViTarNbaMrr17lmzLy8zBnJmZS+zGOgDb/kZLWG6KwkQrOqw2194bfxko3sVXKxqD82M9pOyd3YlYrQ3n4VyYmDcV02kbxarIwTUidg+jYwslNtYiRib8Wvtj4pR51wv1132RO8RFIXrs5a9wAK8vQmgRMTVAeiumFDRJ0ikTaClgpmTSuPrYhsB9s4w2icOonOfOCmPZG9ChoECeSsGeGBRE8rMlTErDMmtheqCLnhZCamTVx4sZKfeoGWCNiH0Ew2axzbqp+zZuD6bYv5wFunoiNyPkmBPhHclwluZBejnAwBI/ASrxBBp6V8dZHciOoZxP40FW1vIiitEGDrEaSRkDPDHBxDfzn/zRIA4ElcJIGg3pghIBrsAK+bL+NRNpnnhhPzp0retTz7BJcgRnwTxqm9aHayYX7tA2+sz93Enf0d49v7L32aoT/Vn1Mf2h4+mkQaX/BSQrKfRQMXADHNEGfgEvQF9Fb5yWYg7wNYZaYmjxrrIi0pnPSS0gSYb/kFwMnysDGteW6xvRxBTQOT7SnfWUXBAiSHDxxjQvGg2VNHqSJqAeQHLzCeSQsaWMO7g8h0pGntyrxefDw6i4yVvjYhkR9SU4JngEnn1FyNznTUTdNhyUCf4KQTCDwY8hR2yDvETjR0e2V0HgExqBwJJhxgS6iw2ICpSbhqH5Y6T8FPok6XDqlTcFhJWlG9MsCGXppkFlS0FegeQIx5sDJAqUZ1C/+1t3Cw8SRUo0Ln4bQB0ZBUA40nrMsae4zHwrltiYhbYzvzvj/JV62FyFo7rHcp+mMZqMXNjY1fP4VbsYSNAV9lptN2l5mkFIYYvTLxFrWX5LdhIAIfQSGznamY0JfMfjD6y/jWn7wbBfwIk5q0tDfE5f7cb2aQ0oK7Kli+jwJkYA9l7OSLBTTeRvF66vENbgDD+AWRMcWTq7WWwIrOpUbglNEO1nJ6V9b3fu3urIle99zHTQGhcoTHPpVMgK+6N/8/+Mb28xZVz3n4F0Vr7fK7yt9PVQxX4zt71rH2YUPjHldkKdQXwy+gF0iYo8SFk28hSN/Ifz26m78HUYj2E/+CfNdNdyxv06Ik3uUj+DJGRh1tRIzb61y0nKC7VqjQLJiarH/NXyKdQoi8BZSsKn2bwiExBgT43hfNSvTBP+S0V25FD0Hx8icpJsqMdqzQFyTRzElwemehLdyD83GT4Y4Z56iuCsbOeMRozhwEjvFjIXRT/IvgGwDrhdrcyfQ+b7naH+IF6f4F0CXATbsidloMBC7y2Rz80Cg9ZenQl4RaKQ2cY2XTL46A8/AkdMPHK9MfGF0p1rytOdpCIRYif2qcWYmYOH7983J1Se1FUvUOh2nXow6Ge9bszN+Ks5d1YxTvzBsifFLbd0csRGw3yGzwPqKsRL7MZ2dU/XYVL4KFYp/bmKkuq8dofC1jRh9+bYnSnmRn4DN7l/4/k7P1ZC6MpL4BeMbgsLESF2AUKzWuwX2xDEN/OezbIR9JWcljZPv19K5OYXnrnrGbadPJ8knUGkrsKjgnzTMawledTxp5XdD1Dly9hVE5SLGyrZmdQIt0TYnpJcY09D+2LXWCjjJQnEnYaODzHXBqCu39cGNLwFzsE0KHBMw3NY8vgVwIpKjbbGdt6t4oCaciMCtzash+UECUjCp9K2kOxKImwErY+c72ZFuYtsR+s4TeEyjrDnz9siOWaeTOTSmU2RFBKavLZY1IvBoF0Zfgp2n+7X7/vR8GvIJVM8LkBxaDDm62rdAPwQrOZPzIs6RQ2MJKG23la7TcwMiFxsa8V+BGfBJw/SchXKcbeCUUx5pMqL+DITeuGBe/5+4l1KM6DTFZm5VvVHW32HMrfGsdUjUKdQ1O1Z0gidAxPZTaD4GU1CAfSLCMpCCg0g7i2u764hASIRfEDExkJRgKSXwSl/mVvI/58cvM148MyUAAAAASUVORK5CYII=",C=new Map([["clear",i],["clouds",c],["drizzle",o],["haze",g],["humidity",w],["mist",m],["rain",p],["snow",h],["wind",u]]),d="46d47581a51a79782741111953e700af",l="https://api.openweathermap.org/data/2.5/weather?units=metric&q=",a=document.querySelector(".search input"),f=document.querySelector(".search button"),y=document.querySelector(".weather-icon");async function A(n){var s,t;const r=await fetch(l+n+`&appid=${d}`);if(r.status==404)document.querySelector(".error").style.display="block",document.querySelector(".weather").style.display="none";else{var e=await r.json();document.querySelector(".city").innerHTML=e.name,document.querySelector(".temp").innerHTML=Math.round(e.main.temp)+"°C",document.querySelector(".humidity").innerHTML=e.main.humidity+"%",document.querySelector(".wind").innerHTML=e.wind.speed+"km/h",y.src=C.get((t=(s=e.weather[0])==null?void 0:s.main)==null?void 0:t.toLowerCase()),document.querySelector(".weather").style.display="block",document.querySelector(".error").style.display="none"}}f.addEventListener("click",()=>{A(a.value)});document.querySelector("form").addEventListener("submit",n=>{n.preventDefault(),A(a.value)}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const i="/frontend-mini-challenges/javascript/assets/clear-LZ6NAuEy.png",c="/frontend-mini-challenges/javascript/assets/clouds-Ewen_3nw.png",o="/frontend-mini-challenges/javascript/assets/drizzle-qNMLyhya.png",g="/frontend-mini-challenges/javascript/assets/haze-CPmwrBBR.png",w="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABCCAYAAAAWqotYAAAAAXNSR0IArs4c6QAABhVJREFUeAHtm/1xozgYh+0Klg6iDpYOTh3YHZgO1h04HcQdmFQQtoKQCkIqMKlgSQV7z88n5WQMGIj35v7Qb+aJvt4P6TXszYi55W+0WCxKkEr4uVwuKw3mipAG3xVYSCB1reI2oLYkz0/a2SJPgrPPY+h7avqekr7OpLyzRS6fJyWI8n4smOzSkckfYMZmwzaBDTzDWP3C8AG0odHCfgUHmKIDxirAaGGfgvanfbZVLpm5J5p1Ef9ybdgUDETnr4e/NrR2JLSh3hg0ULk2pZWN2m8QSjY5PHY9JeSRzwbWYCDUO4M6wND33NEPVTMoQHmU80zkSZhQngxSCPXBQD4NFOGCnkI9PVuooE/PLIiuX4Pp3zXswZwFbw1Yz6CAPr2y8AxH6FLDZA62FfpsqHVnJ/su6RzPoHx90j6zs8BDA4xT2IOKcU3amA6yHorZtYaPgS1UMEYFRhkkXfH65mTv/OQ/Rjr3FkxfzGXfQjhPAMtYSPb099/Ht2Ksf/wbNz+7IU+KswUVRn21dYDyaPwluYJYgpiAhn4FapVH/ahYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIHuCugyVBeg77e4rehKQfyE+e9u7eNP3la4s5xSkeelaz+3mHO3MsmCTqgjgwcwc5Pgq3uzDQxdLuoC8gDp3Dzyw38FTzAkrU+6fm/vCf8UDqB9e5Xt4vkFta+wAT05V4XdCrTRqTrisANzNQkG2HUdhOmr0sEPMOoHw87ADzhCl07fMCx7Mg719Rq3lTNRQg3v0IBeRRXWQgbtIssuB9lWIMkmdXQ9DSVrBcj+9Iqza78fy1wGBkLpu0IODZTgZekYWMM3CFUzyKGEhV5x8qR0ZafWgvza0te+CmrX0gQiiCp+DzVMVYNDDtrAoLDR651BBXNU4NR1wIu8sgPZz5H2t4XkIvDQBA4WVIwGhqSNZUOxhtbwNbCHGoZUsbiFaQdxyeXn/BVnSNrHHgYfguXQocI1AhnGHm2+gubW//Ukj2Jr074t6evVOrXq30rksi6W2tN51JKrcfOxiRWIFYgViBWIFYgViBWIFYgViBWIFYgViBWIFYgV6K6AvmHsWNItgm4VbvaNwd3C3BHTOGhOKvVXF5Cn0Rf/uFsYfzGbBuF0Hp3r7Va3JORSfF2YWnhfMNHWKxO6fk4wmCz8NvAE13TE4AHM5CQ44GfhAL9gSFo/gJ2Zx+C7gyOEGvyGIUMVYXUtKTYpHODaQTDp1CuzGxj8wVjvOwhLo3TEagdm6Eys69J0A9pXn8rTZSir2rQeSbEFvW6hGgYlVKC+MA7rWppP+e8KBTM1r03tV8hl6RvIwH+foPupkp6QlC+FBKzr05zpkZHPI/uTyCM/A2vYQFuyLaEB9VOQrEP9UC8MctB5StpuKTHk0MAUFRivu6NezmKrJ+keapiiCuMMksuolzOyc/bymyLtS/szl1FHzOC4hgK6Eit4CRmMOkhfSvxTyEHx2mqY0Pw9zDuISyx/F0fxFLctzedg+/Y6e56gCZjZASY4kse/ShO8ppv+V3mm7yx6xArECsQKxArECsQKxArECsQKxArECsQKxArECvxvK6BvGM9udyVtA4+3uPMnri4gDehmRNdVQvEr1ypPTf9LIo8lgC5VjcPnqRmLF/KUtF8SeQwBdCbFT+FtwWSXRl2/E+BMBNKd3AHGXsePun4/S8KA+AZ2cIQxOmK0A9OONTTGXtdvG3iGtk7fMEpmRZeOTO6gNylrPkHffX+Fjc+htoG2VOwD6BftFesreIIu1UyGeTTukvwHv8uwnsIBtK+2tH/l2S/DnTKhzW9hDfrEFqp0A9/KNgHfuuVTo/9fIed1KcJJ3yePoZ857mhDVQwa8K2hH8LwU2/09lCQSz5nIk/CxBq28P1s8Z9XumbOI9sUfEv3U+/0ckGemrZfSgoZqMJjpV96C6Y/8uUK9msoYKwaDPegg46W7J2f/MeqwHDdl+Tsyesywtkwn4EFSf84S/rVG6hAv3xJO1vkSXDOwIL6Kejp169eO0ry5PS/JHJlBLBgHP7pf2HcQAk6U00b9Scq8DdqEfrKo4jnpQAAAABJRU5ErkJggg==",m="/frontend-mini-challenges/javascript/assets/mist-UsRI81hv.png",p="/frontend-mini-challenges/javascript/assets/rain-6EVq1sZg.png",h="/frontend-mini-challenges/javascript/assets/snow--VBqIh3y.png",u="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAAAXNSR0IArs4c6QAACFZJREFUeAHtnOt120YQhcWc/A87CFKBkQoEVyB2ILgCMRWIrkBMBYQqEF0B4QrEVECoAsMVKN+lsdBwsSRByrZAwnPOzc7OY3fmahekkCiDizOV5+fnIa1dghGIgCRZ//PiomAUSpCDT4PBoGDst0BaAh7AofJIwi0Q6f0Smo7BArxWvrDATRv2Bm2Cuh5Ds3fUOA7U+RXbHCwr2JCIiTAC74AvyvnAddZ4fgJpQ7AAvuQYREorITYCE1ACKzqFSatFTimIpkScnlNWlkyObpZcrZnZBSs9PSVu9tZKUz5xanq4N7FFAOuMQAmsxC1Sux9CRzPbFfr0e1fNmjGwBOoKR997n5+6Hg2kwEq2qwACRcIdWACdVpEg/QFcg62nFZ9P4GLXXp330dAKOFluK5iABCxc4I5RZN7uWMf/YaXbYjttp8mJR0IUKpiYGy+uzfSRoOApxD43C6xCe3beRgM6JU6CzzmcPsGKz8EYJBVGjBkogZUggQRENgg97TxZtkAKVsNWGqcEpx9TYEvsOlbHNwQi0UrwuUaAjZvbdTqvU/zUdNgoHp+IsCdzKVubxogbAyupn4dzZAN8f6fnFL4yxYeaswSUxEaHNET83KwffK7h17pORoes/6axruJqbJwo7HpeOZkcWiyJ/nMt9tcgxhI8+c0P6OKcohNbF7+sl3aOX2TaZufW30av3ud9MrEjozt16RTG4UmQZwqW+uTNNbXEXbziTYglJwrsY03xKZJX2A4C+n8B2zGmKJBkyb343QZUxz/0bsuGHas/VVejkV9dy2Kb30t4pzqJLY19ZHRrN+aD1dA6cXAVCkrBj5ap3ZzN9JC2Xy82/C6WmKFX2INs8jNee76xyzt0ZJ2NDwQ/H//E7JXVfoy5cfwwtd4QhU0Sb6Ol9VudOFu4l1ZP9VViTarNbaMrr17lmzLy8zBnJmZS+zGOgDb/kZLWG6KwkQrOqw2194bfxko3sVXKxqD82M9pOyd3YlYrQ3n4VyYmDcV02kbxarIwTUidg+jYwslNtYiRib8Wvtj4pR51wv1132RO8RFIXrs5a9wAK8vQmgRMTVAeiumFDRJ0ikTaClgpmTSuPrYhsB9s4w2icOonOfOCmPZG9ChoECeSsGeGBRE8rMlTErDMmtheqCLnhZCamTVx4sZKfeoGWCNiH0Ew2axzbqp+zZuD6bYv5wFunoiNyPkmBPhHclwluZBejnAwBI/ASrxBBp6V8dZHciOoZxP40FW1vIiitEGDrEaSRkDPDHBxDfzn/zRIA4ElcJIGg3pghIBrsAK+bL+NRNpnnhhPzp0retTz7BJcgRnwTxqm9aHayYX7tA2+sz93Enf0d49v7L32aoT/Vn1Mf2h4+mkQaX/BSQrKfRQMXADHNEGfgEvQF9Fb5yWYg7wNYZaYmjxrrIi0pnPSS0gSYb/kFwMnysDGteW6xvRxBTQOT7SnfWUXBAiSHDxxjQvGg2VNHqSJqAeQHLzCeSQsaWMO7g8h0pGntyrxefDw6i4yVvjYhkR9SU4JngEnn1FyNznTUTdNhyUCf4KQTCDwY8hR2yDvETjR0e2V0HgExqBwJJhxgS6iw2ICpSbhqH5Y6T8FPok6XDqlTcFhJWlG9MsCGXppkFlS0FegeQIx5sDJAqUZ1C/+1t3Cw8SRUo0Ln4bQB0ZBUA40nrMsae4zHwrltiYhbYzvzvj/JV62FyFo7rHcp+mMZqMXNjY1fP4VbsYSNAV9lptN2l5mkFIYYvTLxFrWX5LdhIAIfQSGznamY0JfMfjD6y/jWn7wbBfwIk5q0tDfE5f7cb2aQ0oK7Kli+jwJkYA9l7OSLBTTeRvF66vENbgDD+AWRMcWTq7WWwIrOpUbglNEO1nJ6V9b3fu3urIle99zHTQGhcoTHPpVMgK+6N/8/+Mb28xZVz3n4F0Vr7fK7yt9PVQxX4zt71rH2YUPjHldkKdQXwy+gF0iYo8SFk28hSN/Ifz26m78HUYj2E/+CfNdNdyxv06Ik3uUj+DJGRh1tRIzb61y0nKC7VqjQLJiarH/NXyKdQoi8BZSsKn2bwiExBgT43hfNSvTBP+S0V25FD0Hx8icpJsqMdqzQFyTRzElwemehLdyD83GT4Y4Z56iuCsbOeMRozhwEjvFjIXRT/IvgGwDrhdrcyfQ+b7naH+IF6f4F0CXATbsidloMBC7y2Rz80Cg9ZenQl4RaKQ2cY2XTL46A8/AkdMPHK9MfGF0p1rytOdpCIRYif2qcWYmYOH7983J1Se1FUvUOh2nXow6Ge9bszN+Ks5d1YxTvzBsifFLbd0csRGw3yGzwPqKsRL7MZ2dU/XYVL4KFYp/bmKkuq8dofC1jRh9+bYnSnmRn4DN7l/4/k7P1ZC6MpL4BeMbgsLESF2AUKzWuwX2xDEN/OezbIR9JWcljZPv19K5OYXnrnrGbadPJ8knUGkrsKjgnzTMawledTxp5XdD1Dly9hVE5SLGyrZmdQIt0TYnpJcY09D+2LXWCjjJQnEnYaODzHXBqCu39cGNLwFzsE0KHBMw3NY8vgVwIpKjbbGdt6t4oCaciMCtzash+UECUjCp9K2kOxKImwErY+c72ZFuYtsR+s4TeEyjrDnz9siOWaeTOTSmU2RFBKavLZY1IvBoF0Zfgp2n+7X7/vR8GvIJVM8LkBxaDDm62rdAPwQrOZPzIs6RQ2MJKG23la7TcwMiFxsa8V+BGfBJw/SchXKcbeCUUx5pMqL+DITeuGBe/5+4l1KM6DTFZm5VvVHW32HMrfGsdUjUKdQ1O1Z0gidAxPZTaD4GU1CAfSLCMpCCg0g7i2u764hASIRfEDExkJRgKSXwSl/mVvI/58cvM148MyUAAAAASUVORK5CYII=",C=new Map([["clear",i],["clouds",c],["drizzle",o],["haze",g],["humidity",w],["mist",m],["rain",p],["snow",h],["wind",u]]),d="46d47581a51a79782741111953e700af",l="https://api.openweathermap.org/data/2.5/weather?units=metric&q=",a=document.querySelector(".search input"),f=document.querySelector(".search button"),y=document.querySelector(".weather-icon");async function A(n){var s,t;const r=await fetch(l+n+`&appid=${d}`);if(r.status==404)document.querySelector(".error").style.display="block",document.querySelector(".weather").style.display="none";else{var e=await r.json();document.querySelector(".city").innerHTML=e.name,document.querySelector(".temp").innerHTML=Math.round(e.main.temp)+"°C",document.querySelector(".humidity").innerHTML=e.main.humidity+"%",document.querySelector(".wind").innerHTML=e.wind.speed+"km/h",y.src=C.get((t=(s=e.weather[0])==null?void 0:s.main)==null?void 0:t.toLowerCase()),document.querySelector(".weather").style.display="block",document.querySelector(".error").style.display="none"}}f.addEventListener("click",()=>{A(a.value)});document.querySelector("form").addEventListener("submit",n=>{n.preventDefault(),A(a.value)}); diff --git a/docs/javascript/assets/index-EXNCkm9r.js b/docs/javascript/assets/index-q90i9K9z.js similarity index 94% rename from docs/javascript/assets/index-EXNCkm9r.js rename to docs/javascript/assets/index-q90i9K9z.js index 4270276ce..e070d3087 100644 --- a/docs/javascript/assets/index-EXNCkm9r.js +++ b/docs/javascript/assets/index-q90i9K9z.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";function u(e,t){const n=document.createElement(e);for(let s in t)n.setAttribute(s,t[s]);return n}function L(e,t,n=0){const s=document.createDocumentFragment();for(let l=n;lu("button",{class:"star star-empty","data-index":e}),1));const i=a.querySelectorAll(".star");a.addEventListener("mouseover",v);a.addEventListener("mouseleave",C);a.addEventListener("click",g);function o(e){for(let t=d;tu("button",{class:"star star-empty","data-index":e}),1));const i=a.querySelectorAll(".star");a.addEventListener("mouseover",v);a.addEventListener("mouseleave",C);a.addEventListener("click",g);function o(e){for(let t=d;t0){const{text:e,result:t}=await y(s);if(i.value===e){t.length===0&&d("No results found");for(let o=0;o{r&&(r.abort(),r=null),i.value===""?c(!1):c(),l.innerHTML="",n=null,d(""),L()});i.addEventListener("keydown",e=>{if(e.key==="Enter"&&n!=null){s=l.childNodes[n].textContent,a();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=l.childElementCount){f();return}h(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??l.childElementCount,n-1<0){f();return}h(--n)}});i.addEventListener("blur",()=>{setTimeout(a,100)});l.addEventListener("click",e=>{const t=e.target;t.tagName.toLowerCase()==="li"&&(s=t.textContent,a())}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";function m(e,t=500){let o=null;return function(...u){o&&(clearTimeout(o),o=null),o=setTimeout(e,t,...u)}}const p=5,i=document.getElementById("userInput"),l=document.querySelector(".suggestions"),g=document.getElementById("loader"),E=document.getElementById("info");let s="",n=null,r=null;const L=m(v);function h(e){var t;(t=l.querySelector(".highlight"))==null||t.classList.remove("highlight"),l.childNodes[e].classList.add("highlight"),i.value=l.childNodes[e].textContent}function f(){var e;(e=l.querySelector(".highlight"))==null||e.classList.remove("highlight"),i.value=s,n=null}function a(){l.innerHTML="",n=null,i.value=s}async function y(e){r=new AbortController;try{const t=await fetch(`https://api.github.com/search/users?per_page=${p}&q=${e}`,{signal:r.signal});r=null;const o=await t.json();return c(!1),{text:e,result:o.items}}catch(t){return t.name!=="AbortError"&&d(),c(!1),{text:e,result:[]}}}async function v(){if(l.innerHTML="",n=null,s=i.value,s.length>0){const{text:e,result:t}=await y(s);if(i.value===e){t.length===0&&d("No results found");for(let o=0;o{r&&(r.abort(),r=null),i.value===""?c(!1):c(),l.innerHTML="",n=null,d(""),L()});i.addEventListener("keydown",e=>{if(e.key==="Enter"&&n!=null){s=l.childNodes[n].textContent,a();return}if(e.key==="ArrowDown"){if(n=n??-1,n+1>=l.childElementCount){f();return}h(++n)}if(e.key==="ArrowUp"){if(e.preventDefault(),n=n??l.childElementCount,n-1<0){f();return}h(--n)}});i.addEventListener("blur",()=>{setTimeout(a,100)});l.addEventListener("click",e=>{const t=e.target;t.tagName.toLowerCase()==="li"&&(s=t.textContent,a())}); diff --git a/docs/javascript/assets/index-uYumgr7E.js b/docs/javascript/assets/index-reRXyNej.js similarity index 92% rename from docs/javascript/assets/index-uYumgr7E.js rename to docs/javascript/assets/index-reRXyNej.js index 1ae9d1f1e..2fd25b5cc 100644 --- a/docs/javascript/assets/index-uYumgr7E.js +++ b/docs/javascript/assets/index-reRXyNej.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const n=document.getElementById("userInput"),p=document.getElementById("chipTemplate"),h=document.querySelector(".chips-display"),o=document.querySelector("form");class c{constructor(e=""){const s=p.content.cloneNode(!0);this.chip=s.querySelector(".chip"),this.chipName=this.chip.querySelector(".chip-name"),this.chip.querySelector(".remove").addEventListener("click",this.onRemove),h.appendChild(this.chip),this.setName(e)}setName(e){this.chipName.textContent=e,e===""?this.chip.style.display="none":this.chip.style.display="inherit"}finalizeName(){this.chip.classList.add("finalized")}onRemove(e){e.target.parentElement.remove()}}let i=new c;n.addEventListener("input",t=>{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const n=document.getElementById("userInput"),p=document.getElementById("chipTemplate"),h=document.querySelector(".chips-display"),o=document.querySelector("form");class c{constructor(e=""){const s=p.content.cloneNode(!0);this.chip=s.querySelector(".chip"),this.chipName=this.chip.querySelector(".chip-name"),this.chip.querySelector(".remove").addEventListener("click",this.onRemove),h.appendChild(this.chip),this.setName(e)}setName(e){this.chipName.textContent=e,e===""?this.chip.style.display="none":this.chip.style.display="inherit"}finalizeName(){this.chip.classList.add("finalized")}onRemove(e){e.target.parentElement.remove()}}let i=new c;n.addEventListener("input",t=>{i.setName(t.target.value.trim())});o.addEventListener("submit",t=>{n.value="",i.finalizeName(),i=new c,t.preventDefault()}); diff --git a/docs/javascript/assets/index-W_A76rXR.js b/docs/javascript/assets/index-tH1bX5Qe.js similarity index 92% rename from docs/javascript/assets/index-W_A76rXR.js rename to docs/javascript/assets/index-tH1bX5Qe.js index a58e439ad..3f7ab4d95 100644 --- a/docs/javascript/assets/index-W_A76rXR.js +++ b/docs/javascript/assets/index-tH1bX5Qe.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const c=document.getElementById("userInput"),r=document.getElementById("lowercase"),d=document.getElementById("uppercase"),p=document.getElementById("camelcase"),u=document.getElementById("pascalcase"),C=document.getElementById("snakecase"),i=document.getElementById("kebabcase");document.getElementById("titlecase");const E=document.getElementById("trim");function l({text:e=c.value.trim()}){var n;const t=e.toLowerCase().split(" ").reduce((m,s)=>{var o,a;return m+((o=s[0])==null?void 0:o.toUpperCase())+((a=s.substring(1))==null?void 0:a.toLowerCase())});r.textContent=e.toLowerCase(),d.textContent=e.toUpperCase(),p.textContent=t,u.textContent=t?((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1):"",C.textContent=e.split(" ").join("_"),i.textContent=e.split(" ").join("-"),E.textContent=e.split(" ").join("")}c.addEventListener("input",l);l({}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const c=document.getElementById("userInput"),r=document.getElementById("lowercase"),d=document.getElementById("uppercase"),p=document.getElementById("camelcase"),u=document.getElementById("pascalcase"),C=document.getElementById("snakecase"),i=document.getElementById("kebabcase");document.getElementById("titlecase");const E=document.getElementById("trim");function l({text:e=c.value.trim()}){var n;const t=e.toLowerCase().split(" ").reduce((m,s)=>{var o,a;return m+((o=s[0])==null?void 0:o.toUpperCase())+((a=s.substring(1))==null?void 0:a.toLowerCase())});r.textContent=e.toLowerCase(),d.textContent=e.toUpperCase(),p.textContent=t,u.textContent=t?((n=t[0])==null?void 0:n.toUpperCase())+t.substring(1):"",C.textContent=e.split(" ").join("_"),i.textContent=e.split(" ").join("-"),E.textContent=e.split(" ").join("")}c.addEventListener("input",l);l({}); diff --git a/docs/javascript/assets/index-PMB9uoj-.js b/docs/javascript/assets/index-tpi2KuyJ.js similarity index 90% rename from docs/javascript/assets/index-PMB9uoj-.js rename to docs/javascript/assets/index-tpi2KuyJ.js index 2242ca924..488f847a8 100644 --- a/docs/javascript/assets/index-PMB9uoj-.js +++ b/docs/javascript/assets/index-tpi2KuyJ.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const n=document.querySelector(".meme-generator .generate-meme-btn");document.querySelector("body");const c=document.querySelector(".meme-generator img"),u=document.querySelector(".meme-generator .meme-title"),s=document.querySelector(".meme-generator .meme-author"),t=document.querySelector(".meme"),l=(e,o,r)=>{c.setAttribute("src",e),u.innerHTML=o,s.innerHTML=`Meme by: ${r}`},m=()=>{t.style.backgroundColor="#F7EEEE",t.style.boxShadow="10px 10px 16px rgb(0, 0, 0, 0.2)",fetch(" https://meme-api.com/gimme/wholesomememes").then(e=>e.json()).then(e=>{l(e.url,e.title,e.author)})};n.addEventListener("click",m);m(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const n=document.querySelector(".meme-generator .generate-meme-btn");document.querySelector("body");const c=document.querySelector(".meme-generator img"),u=document.querySelector(".meme-generator .meme-title"),s=document.querySelector(".meme-generator .meme-author"),t=document.querySelector(".meme"),l=(e,o,r)=>{c.setAttribute("src",e),u.innerHTML=o,s.innerHTML=`Meme by: ${r}`},m=()=>{t.style.backgroundColor="#F7EEEE",t.style.boxShadow="10px 10px 16px rgb(0, 0, 0, 0.2)",fetch(" https://meme-api.com/gimme/wholesomememes").then(e=>e.json()).then(e=>{l(e.url,e.title,e.author)})};n.addEventListener("click",m);m(); diff --git a/docs/javascript/assets/index-l-ZY1Euz.js b/docs/javascript/assets/index-vXQGMaN2.js similarity index 94% rename from docs/javascript/assets/index-l-ZY1Euz.js rename to docs/javascript/assets/index-vXQGMaN2.js index de60b9cb8..637eceb34 100644 --- a/docs/javascript/assets/index-l-ZY1Euz.js +++ b/docs/javascript/assets/index-vXQGMaN2.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const o={USD:1,EUR:.85,GBP:.74,INR:74.63};document.getElementById("addCurrencyButton").addEventListener("click",function(){const e=document.getElementById("customCurrency").value.toUpperCase();if(e&&!o[e]){const t=parseFloat(prompt(`Enter exchange rate for 1 USD to ${e}`));isNaN(t)?alert("Invalid exchange rate. Please enter a valid number."):(o[e]=t,u())}else o[e]?alert(`Currency ${e} already exists.`):alert("Invalid currency code. Please enter a valid code (e.g., CAD).")});function u(){const e=document.getElementById("fromCurrency"),t=document.getElementById("toCurrency");e.innerHTML="",t.innerHTML="";for(const r in o){const n=document.createElement("option");n.value=r,n.innerText=r,e.appendChild(n);const c=n.cloneNode(!0);t.appendChild(c)}t.innerHTML+=''}document.getElementById("convertButton").addEventListener("click",a);function a(){const e=parseFloat(document.getElementById("amount").value),t=document.getElementById("fromCurrency").value,r=document.getElementById("toCurrency").value,n=document.getElementById("result");if(isNaN(e)){alert("Please enter a valid amount.");return}const c=e/o[t]*o[r];n.value=c.toFixed(2)}u(); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const o={USD:1,EUR:.85,GBP:.74,INR:74.63};document.getElementById("addCurrencyButton").addEventListener("click",function(){const e=document.getElementById("customCurrency").value.toUpperCase();if(e&&!o[e]){const t=parseFloat(prompt(`Enter exchange rate for 1 USD to ${e}`));isNaN(t)?alert("Invalid exchange rate. Please enter a valid number."):(o[e]=t,u())}else o[e]?alert(`Currency ${e} already exists.`):alert("Invalid currency code. Please enter a valid code (e.g., CAD).")});function u(){const e=document.getElementById("fromCurrency"),t=document.getElementById("toCurrency");e.innerHTML="",t.innerHTML="";for(const r in o){const n=document.createElement("option");n.value=r,n.innerText=r,e.appendChild(n);const c=n.cloneNode(!0);t.appendChild(c)}t.innerHTML+=''}document.getElementById("convertButton").addEventListener("click",a);function a(){const e=parseFloat(document.getElementById("amount").value),t=document.getElementById("fromCurrency").value,r=document.getElementById("toCurrency").value,n=document.getElementById("result");if(isNaN(e)){alert("Please enter a valid amount.");return}const c=e/o[t]*o[r];n.value=c.toFixed(2)}u(); diff --git a/docs/javascript/assets/index-iJ6fcIH8.js b/docs/javascript/assets/index-ybWMLSvg.js similarity index 93% rename from docs/javascript/assets/index-iJ6fcIH8.js rename to docs/javascript/assets/index-ybWMLSvg.js index 684f68a3c..8ce4b91c4 100644 --- a/docs/javascript/assets/index-iJ6fcIH8.js +++ b/docs/javascript/assets/index-ybWMLSvg.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const o=document.getElementById("password"),r=document.getElementById("progressBar"),i=document.getElementById("strength"),f=document.getElementById("lc"),h=document.getElementById("uc"),E=document.getElementById("num"),p=document.getElementById("sym"),B=document.getElementById("chars"),c=[{difficulty:"Weak",color:"red"},{difficulty:"Medium",color:"orange"},{difficulty:"Strong",color:"green"}],l=/\d/,u=/[A-Z]/,a=/[a-z]/,m=/[^A-Za-z0-9]/;function I(t){return t>8?c[2]:t>5?c[1]:c[0]}function w(t){let e=0;return t.length>3&&(e=Math.min(6,Math.floor(t.length/3)),e+=l.test(t)+u.test(t)+a.test(t)+m.test(t)),e}function C(t,e,s,n){i.textContent=t.difficulty,r.style.backgroundColor=t.color,r.style.width=e*10+"%",f.className=n.lc,h.className=n.uc,E.className=n.num,p.className=n.sym,B.textContent=s}o.addEventListener("input",function(){const t=o.value,e=w(o.value),s=I(e),[n,d,g,y]=[a.test(t),u.test(t),l.test(t),m.test(t)];C(s,e,t.length,{lc:n,uc:d,num:g,sym:y})}); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const o=document.getElementById("password"),r=document.getElementById("progressBar"),i=document.getElementById("strength"),f=document.getElementById("lc"),h=document.getElementById("uc"),E=document.getElementById("num"),p=document.getElementById("sym"),B=document.getElementById("chars"),c=[{difficulty:"Weak",color:"red"},{difficulty:"Medium",color:"orange"},{difficulty:"Strong",color:"green"}],l=/\d/,u=/[A-Z]/,a=/[a-z]/,m=/[^A-Za-z0-9]/;function I(t){return t>8?c[2]:t>5?c[1]:c[0]}function w(t){let e=0;return t.length>3&&(e=Math.min(6,Math.floor(t.length/3)),e+=l.test(t)+u.test(t)+a.test(t)+m.test(t)),e}function C(t,e,s,n){i.textContent=t.difficulty,r.style.backgroundColor=t.color,r.style.width=e*10+"%",f.className=n.lc,h.className=n.uc,E.className=n.num,p.className=n.sym,B.textContent=s}o.addEventListener("input",function(){const t=o.value,e=w(o.value),s=I(e),[n,d,g,y]=[a.test(t),u.test(t),l.test(t),m.test(t)];C(s,e,t.length,{lc:n,uc:d,num:g,sym:y})}); diff --git a/docs/javascript/assets/index-36QOB21x.js b/docs/javascript/assets/index-zZRvzYOB.js similarity index 98% rename from docs/javascript/assets/index-36QOB21x.js rename to docs/javascript/assets/index-zZRvzYOB.js index aab8ee420..11c634671 100644 --- a/docs/javascript/assets/index-36QOB21x.js +++ b/docs/javascript/assets/index-zZRvzYOB.js @@ -1 +1 @@ -import"./header-fEhtFTNi.js";import"./navbar-V0H2mwQu.js";const a={username:"John Doe",time:1727458711867,text:"Welcome! You can reply to the comments. But you can't delete the initial comment.",counter:1,parentCounter:0,comments:{0:{username:"User 1",text:"You can reply nested or delete any comment. You can edit the existing comments.",counter:1,parentCounter:0,comments:{0:{username:"User 2",text:"Refresh & see the changes persist. You can reset the comments to the initial state",counter:0,parentCounter:0,comments:{}}}}}},l=localStorage.getItem("state"),q=JSON.parse(l||JSON.stringify(a)),d=document.querySelector("#comment-template");function p({username:e,text:t}){const o=d.content.cloneNode(!0);return o.querySelector(".username").textContent=e,o.querySelector(".comment-text").innerText=t,o.querySelector(".user-info").classList.remove("hide"),s(o),o}function h(){const e=d.content.cloneNode(!0);return e.querySelector(".username-input").classList.remove("hide"),L(e),e}function s(e){const t=e.querySelector(".comment-text");t.contentEditable=!1,t.classList.remove("editable"),e.querySelector(".reply").classList.remove("hide"),e.querySelector(".delete").classList.remove("hide"),e.querySelector(".edit").classList.remove("hide"),e.querySelector(".submit").classList.add("hide"),e.querySelector(".cancel").classList.add("hide")}function x(e){const t=e.querySelector(".comment-text");t.contentEditable=!0,t.classList.add("editable"),t.focus(),e.querySelector(".reply").classList.add("hide"),e.querySelector(".delete").classList.add("hide"),e.querySelector(".edit").classList.add("hide"),e.querySelector(".submit").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide")}function L(e){e.querySelector(".comment-text").contentEditable=!0,e.querySelector(".comment-text").classList.add("editable"),e.querySelector(".comment-text").focus(),e.querySelector(".username-input").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide"),e.querySelector(".submit").classList.remove("hide")}const m=document.querySelector("#commentContainer");document.querySelector("#comment-template");const f=document.querySelector("#reset");let c;function i(e,t,o){e.querySelector(":scope > .sub-comments").appendChild(p({username:t.username,text:t.text}));const r=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");return r.querySelector(".profile-pic").src=`https://i.pravatar.cc/32?u=${t.username}`,r.querySelector(".reply").addEventListener("click",()=>{r.querySelector(":scope > .sub-comments > .new-comment")||v(r,t)}),o&&(r.querySelector(".delete").addEventListener("click",()=>{r.remove(),delete o.comments[t.parentCounter]}),r.querySelector(".edit").addEventListener("click",()=>{x(r)}),r.querySelector(".cancel").addEventListener("click",()=>{r.querySelector(".comment-text").innerText=t.text,s(r)}),r.querySelector(".submit").addEventListener("click",()=>{const n=r.querySelector(".comment-text").innerText;n&&(t.text=n,r.querySelector(".comment-text").innerText=n,s(r))})),r}function v(e,t){e.querySelector(":scope > .sub-comments").appendChild(h());const o=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");o.classList.add("new-comment"),o.querySelector(".cancel").addEventListener("click",()=>{o.remove()}),o.querySelector(".submit").addEventListener("click",()=>{const r=o.querySelector(".username-input").value,n=o.querySelector(".comment-text").innerText;if(!r||!n)return;const u={username:r,text:n,counter:0,parentCounter:t.counter,comments:{}};i(e,u,t),t.comments[t.counter++]=u,o.remove()})}function y(e,t){for(const o of Object.values(t.comments)){const r=i(e,o,t);o.comments&&y(r,o)}}function S(e=a){m.querySelector(".sub-comments").innerHTML="",c=e;const t=i(m,c);y(t,c)}f.addEventListener("click",()=>S());window.addEventListener("beforeunload",()=>{localStorage.setItem("state",JSON.stringify(c))});S(q); +import"./header-Lm9KQkip.js";import"./navbar-7u3xAeMJ.js";const a={username:"John Doe",time:1727458711867,text:"Welcome! You can reply to the comments. But you can't delete the initial comment.",counter:1,parentCounter:0,comments:{0:{username:"User 1",text:"You can reply nested or delete any comment. You can edit the existing comments.",counter:1,parentCounter:0,comments:{0:{username:"User 2",text:"Refresh & see the changes persist. You can reset the comments to the initial state",counter:0,parentCounter:0,comments:{}}}}}},l=localStorage.getItem("state"),q=JSON.parse(l||JSON.stringify(a)),d=document.querySelector("#comment-template");function p({username:e,text:t}){const o=d.content.cloneNode(!0);return o.querySelector(".username").textContent=e,o.querySelector(".comment-text").innerText=t,o.querySelector(".user-info").classList.remove("hide"),s(o),o}function h(){const e=d.content.cloneNode(!0);return e.querySelector(".username-input").classList.remove("hide"),L(e),e}function s(e){const t=e.querySelector(".comment-text");t.contentEditable=!1,t.classList.remove("editable"),e.querySelector(".reply").classList.remove("hide"),e.querySelector(".delete").classList.remove("hide"),e.querySelector(".edit").classList.remove("hide"),e.querySelector(".submit").classList.add("hide"),e.querySelector(".cancel").classList.add("hide")}function x(e){const t=e.querySelector(".comment-text");t.contentEditable=!0,t.classList.add("editable"),t.focus(),e.querySelector(".reply").classList.add("hide"),e.querySelector(".delete").classList.add("hide"),e.querySelector(".edit").classList.add("hide"),e.querySelector(".submit").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide")}function L(e){e.querySelector(".comment-text").contentEditable=!0,e.querySelector(".comment-text").classList.add("editable"),e.querySelector(".comment-text").focus(),e.querySelector(".username-input").classList.remove("hide"),e.querySelector(".cancel").classList.remove("hide"),e.querySelector(".submit").classList.remove("hide")}const m=document.querySelector("#commentContainer");document.querySelector("#comment-template");const f=document.querySelector("#reset");let c;function i(e,t,o){e.querySelector(":scope > .sub-comments").appendChild(p({username:t.username,text:t.text}));const r=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");return r.querySelector(".profile-pic").src=`https://i.pravatar.cc/32?u=${t.username}`,r.querySelector(".reply").addEventListener("click",()=>{r.querySelector(":scope > .sub-comments > .new-comment")||v(r,t)}),o&&(r.querySelector(".delete").addEventListener("click",()=>{r.remove(),delete o.comments[t.parentCounter]}),r.querySelector(".edit").addEventListener("click",()=>{x(r)}),r.querySelector(".cancel").addEventListener("click",()=>{r.querySelector(".comment-text").innerText=t.text,s(r)}),r.querySelector(".submit").addEventListener("click",()=>{const n=r.querySelector(".comment-text").innerText;n&&(t.text=n,r.querySelector(".comment-text").innerText=n,s(r))})),r}function v(e,t){e.querySelector(":scope > .sub-comments").appendChild(h());const o=e.querySelector(":scope > .sub-comments > .comment-wrapper:last-child");o.classList.add("new-comment"),o.querySelector(".cancel").addEventListener("click",()=>{o.remove()}),o.querySelector(".submit").addEventListener("click",()=>{const r=o.querySelector(".username-input").value,n=o.querySelector(".comment-text").innerText;if(!r||!n)return;const u={username:r,text:n,counter:0,parentCounter:t.counter,comments:{}};i(e,u,t),t.comments[t.counter++]=u,o.remove()})}function y(e,t){for(const o of Object.values(t.comments)){const r=i(e,o,t);o.comments&&y(r,o)}}function S(e=a){m.querySelector(".sub-comments").innerHTML="",c=e;const t=i(m,c);y(t,c)}f.addEventListener("click",()=>S());window.addEventListener("beforeunload",()=>{localStorage.setItem("state",JSON.stringify(c))});S(q); diff --git a/docs/javascript/assets/navbar-V0H2mwQu.js b/docs/javascript/assets/navbar-7u3xAeMJ.js similarity index 74% rename from docs/javascript/assets/navbar-V0H2mwQu.js rename to docs/javascript/assets/navbar-7u3xAeMJ.js index 2204e5723..1a959d098 100644 --- a/docs/javascript/assets/navbar-V0H2mwQu.js +++ b/docs/javascript/assets/navbar-7u3xAeMJ.js @@ -40,4 +40,4 @@ const g=`
-`,y="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/javascript/assets/github-CjMMDlDK.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);n(w);const b=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]),M=n(b),E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/javascript/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/javascript/`:`/${s}/#/javascript/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=M.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{M as j}; +`,y="/frontend-mini-challenges/javascript/assets/logo-r_4QCHBg.png",v="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='lucide%20lucide-code-xml'%3e%3cpath%20d='m18%2016%204-4-4-4'/%3e%3cpath%20d='m6%208-4%204%204%204'/%3e%3cpath%20d='m14.5%204-5%2016'/%3e%3c/svg%3e",m="/frontend-mini-challenges/javascript/assets/github-CjMMDlDK.svg",k="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='iso-8859-1'?%3e%3c!--%20Uploaded%20to:%20SVG%20Repo,%20www.svgrepo.com,%20Generator:%20SVG%20Repo%20Mixer%20Tools%20--%3e%3csvg%20height='800px'%20width='800px'%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20461.001%20461.001'%20xml:space='preserve'%3e%3cg%3e%3cpath%20style='fill:%23F61C0D;'%20d='M365.257,67.393H95.744C42.866,67.393,0,110.259,0,163.137v134.728%20c0,52.878,42.866,95.744,95.744,95.744h269.513c52.878,0,95.744-42.866,95.744-95.744V163.137%20C461.001,110.259,418.135,67.393,365.257,67.393z%20M300.506,237.056l-126.06,60.123c-3.359,1.602-7.239-0.847-7.239-4.568V168.607%20c0-3.774,3.982-6.22,7.348-4.514l126.06,63.881C304.363,229.873,304.298,235.248,300.506,237.056z'/%3e%3c/g%3e%3c/svg%3e";class h extends HTMLElement{updateYoutubeLink(){const l=this.getAttribute("youtubeLink"),a=this.querySelector(".youtube");a&&(l?(a.setAttribute("href",l),this.querySelector(".youtube img").setAttribute("src",k)):a.remove())}updateSourceCodeLink(){const l=this.getAttribute("sourceCodeLink"),a=this.querySelector(".source-code");a&&(l?(a.setAttribute("href",l),this.querySelector(".source-code img").setAttribute("src",v)):a.remove())}connectedCallback(){this.innerHTML=g,this.querySelector(".back").setAttribute("href",this.getAttribute("backURL")),this.querySelector(".logo").setAttribute("href",this.getAttribute("homeURL")),this.querySelector(".logo img").setAttribute("src",y),this.querySelector(".title").textContent=this.getAttribute("titleText")??"",this.updateSourceCodeLink(),this.updateYoutubeLink(),this.querySelector(".github img").setAttribute("src",m)}}window.customElements.define("nav-bar",h);var e=(i=>(i.Easy="Easy",i.Medium="Medium",i.Hard="Hard",i))(e||{}),t=(i=>(i.interview="interview",i.all="all",i))(t||{});const d=[e.Easy,e.Medium,e.Hard];function n(i){return new Map([...i.entries()].sort((l,a)=>{const p=d.indexOf(l[1].difficulty),f=d.indexOf(a[1].difficulty);return p-f}))}const w=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:e.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:e.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[t.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:e.Easy,developer:"officialbidisha",tags:[t.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:e.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:e.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[t.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:e.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:e.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:e.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:e.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);n(w);const b=new Map([["counter",{title:"Counter",link:"counter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[t.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:e.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:e.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:e.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:e.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[t.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:e.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:e.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[t.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:e.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:e.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:e.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:e.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:e.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:e.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:e.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:e.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:e.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:e.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:e.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:e.Medium,developer:"shruti-sen2004",tags:[t.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:e.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[t.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:e.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:e.Medium,developer:"srijanB7",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:e.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:e.Medium,developer:"Kei-K23",tags:[t.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:e.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:e.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:e.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:e.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:e.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:e.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}]]),M=n(b),E=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:e.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:e.Easy,developer:"Bhushan1019",tags:[t.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:e.Easy,tags:[t.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:e.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:e.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:e.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:e.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:e.Easy,developer:"deepakrajkranti",tags:[t.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:e.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:e.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:e.Easy,developer:"NikhilJHA01",tags:[t.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"rashidtvmr",tags:[t.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:e.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:e.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:e.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:e.Easy,developer:"codechitra",tags:[t.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:e.Medium,developer:"liza",tags:[t.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:e.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:e.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:e.Medium,developer:"rishabhm05",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:e.Medium,developer:"deepu0",tags:[t.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:e.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:e.Medium,developer:"deepakrajkranti",tags:[t.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:e.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:e.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:e.Medium,developer:"rashidtvmr",tags:[t.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:e.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:e.Medium,developer:"AbhilashMadi",tags:[t.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:e.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:e.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:e.Hard,developer:"SujithGunasekaran",tags:[t.interview]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:e.Hard,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:e.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:e.Medium,developer:"DeePaK-HeeRaKaRi",tags:[t.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:e.Medium,developer:"ayush-dutt-sharma",tags:[t.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:e.Hard,developer:"rishabhm05",tags:[t.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:e.Hard,developer:"deepu0",tags:[t.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:e.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:e.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:e.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:e.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:e.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:e.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[t.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:e.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:e.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:e.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview]}],["meeting-calendar",{title:"Meeting Calendar",link:"meeting-calendar",difficulty:e.Hard,developer:"sadanandpai",tags:[t.interview],isNew:!0}]]);n(E);const S=new Map([["counter",{title:"Counter",link:"/counter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:e.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:e.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:e.Easy,developer:"arpansaha13",tags:[t.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:e.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:e.Medium,developer:"sadanandpai",tags:[t.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:e.Medium,developer:"arpansaha13",tags:[t.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:e.Medium,developer:"jaydadhaniya",tags:[t.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:e.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:e.Medium,developer:"Shardik04",tags:[t.interview]}]]);n(S);const T=new Map([["counter",{title:"Counter",link:"counter",difficulty:e.Easy,developer:"sadanandpai",tags:[t.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview]}],["stack",{title:"Stack",link:"stack",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:e.Easy,developer:"pankajparkar",tags:[t.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:e.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);n(T);var C={VITE_REACT_APP_URL:"http://localhost:6013/",VITE_NG_APP_URL:"http://localhost:6015/",VITE_PATH:"frontend-mini-challenges",VITE_HOST_URL:"http://localhost:6010/",VITE_CSS_APP_URL:"http://localhost:6011/",VITE_JS_APP_URL:"http://localhost:6012/",VITE_VUE_APP_URL:"http://localhost:6014/",BASE_URL:"/frontend-mini-challenges/javascript/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{VITE_PATH:s,VITE_HOST_URL:u,DEV:c}=C,A=c?`${u}${s}/#/javascript/`:`/${s}/#/javascript/`,L=c?`${u}${s}/`:`/${s}/`,N=window.location.pathname.split("/challenges/")[1].slice(0,-1),o=M.get(N),P="https://github.com/sadanandpai/frontend-mini-challenges/tree/main/apps/javascript/src/challenges/",r=document.createElement("nav-bar");r.setAttribute("backURL",A);r.setAttribute("homeURL",L);r.setAttribute("titleText",o.title);r.setAttribute("sourceCodeLink",P+o.link);o.youtube&&r.setAttribute("youtubeLink",o.youtube);document.body.prepend(r);export{M as j}; diff --git a/docs/javascript/src/challenges/25-5-clock/index.html b/docs/javascript/src/challenges/25-5-clock/index.html index dc6359927..3e45e1092 100644 --- a/docs/javascript/src/challenges/25-5-clock/index.html +++ b/docs/javascript/src/challenges/25-5-clock/index.html @@ -10,9 +10,9 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css" rel="stylesheet" /> - - - + + + diff --git a/docs/javascript/src/challenges/analog-clock/index.html b/docs/javascript/src/challenges/analog-clock/index.html index cdecd0a59..e68f57b3f 100644 --- a/docs/javascript/src/challenges/analog-clock/index.html +++ b/docs/javascript/src/challenges/analog-clock/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/area-selector/index.html b/docs/javascript/src/challenges/area-selector/index.html index 23b22e02b..e7e8ca163 100644 --- a/docs/javascript/src/challenges/area-selector/index.html +++ b/docs/javascript/src/challenges/area-selector/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/array-methods/index.html b/docs/javascript/src/challenges/array-methods/index.html index 33ce36173..e588eb758 100644 --- a/docs/javascript/src/challenges/array-methods/index.html +++ b/docs/javascript/src/challenges/array-methods/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/atm-simulator/index.html b/docs/javascript/src/challenges/atm-simulator/index.html index 7cdddeb25..8e6b18e58 100644 --- a/docs/javascript/src/challenges/atm-simulator/index.html +++ b/docs/javascript/src/challenges/atm-simulator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/basic-calculator/index.html b/docs/javascript/src/challenges/basic-calculator/index.html index 38d73a208..7b6de743c 100644 --- a/docs/javascript/src/challenges/basic-calculator/index.html +++ b/docs/javascript/src/challenges/basic-calculator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/bill-spilt/index.html b/docs/javascript/src/challenges/bill-spilt/index.html index 084724aa4..f50971c5a 100644 --- a/docs/javascript/src/challenges/bill-spilt/index.html +++ b/docs/javascript/src/challenges/bill-spilt/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/bmi-calculator/index.html b/docs/javascript/src/challenges/bmi-calculator/index.html index fe63ec20c..311dbbd68 100644 --- a/docs/javascript/src/challenges/bmi-calculator/index.html +++ b/docs/javascript/src/challenges/bmi-calculator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/calendar/index.html b/docs/javascript/src/challenges/calendar/index.html index 1b3b7aed6..2e1972a51 100644 --- a/docs/javascript/src/challenges/calendar/index.html +++ b/docs/javascript/src/challenges/calendar/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/carousel/index.html b/docs/javascript/src/challenges/carousel/index.html index e9c0ba8dd..18712b101 100644 --- a/docs/javascript/src/challenges/carousel/index.html +++ b/docs/javascript/src/challenges/carousel/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chess-board/index.html b/docs/javascript/src/challenges/chess-board/index.html index 67f45b60f..5f18adc7f 100644 --- a/docs/javascript/src/challenges/chess-board/index.html +++ b/docs/javascript/src/challenges/chess-board/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/chips-input/index.html b/docs/javascript/src/challenges/chips-input/index.html index ddf252fe2..2ce563184 100644 --- a/docs/javascript/src/challenges/chips-input/index.html +++ b/docs/javascript/src/challenges/chips-input/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/color-me/index.html b/docs/javascript/src/challenges/color-me/index.html index e29ae1fee..e0fad7f8d 100644 --- a/docs/javascript/src/challenges/color-me/index.html +++ b/docs/javascript/src/challenges/color-me/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/color-spotter/index.html b/docs/javascript/src/challenges/color-spotter/index.html index 440c5020b..59afaccb7 100644 --- a/docs/javascript/src/challenges/color-spotter/index.html +++ b/docs/javascript/src/challenges/color-spotter/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/column-table/index.html b/docs/javascript/src/challenges/column-table/index.html index d616ed7b3..11fa59ac3 100644 --- a/docs/javascript/src/challenges/column-table/index.html +++ b/docs/javascript/src/challenges/column-table/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/connect-four/index.html b/docs/javascript/src/challenges/connect-four/index.html index 59d6331b0..b013502f1 100644 --- a/docs/javascript/src/challenges/connect-four/index.html +++ b/docs/javascript/src/challenges/connect-four/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/count-down-timer/index.html b/docs/javascript/src/challenges/count-down-timer/index.html index 2dccd523c..e5fe84e2c 100644 --- a/docs/javascript/src/challenges/count-down-timer/index.html +++ b/docs/javascript/src/challenges/count-down-timer/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/counter/index.html b/docs/javascript/src/challenges/counter/index.html index 13bbe87e3..117a0d49b 100644 --- a/docs/javascript/src/challenges/counter/index.html +++ b/docs/javascript/src/challenges/counter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/currency-converter/index.html b/docs/javascript/src/challenges/currency-converter/index.html index dae8dc90a..3642e6f71 100644 --- a/docs/javascript/src/challenges/currency-converter/index.html +++ b/docs/javascript/src/challenges/currency-converter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/dice-game/index.html b/docs/javascript/src/challenges/dice-game/index.html index 75ef5209e..806fbe7b9 100644 --- a/docs/javascript/src/challenges/dice-game/index.html +++ b/docs/javascript/src/challenges/dice-game/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html b/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html index 818ac638a..9046ac2e8 100644 --- a/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html +++ b/docs/javascript/src/challenges/drag-and-drop-puzzle/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/file-uploader/index.html b/docs/javascript/src/challenges/file-uploader/index.html index b1086c540..cfa663e14 100644 --- a/docs/javascript/src/challenges/file-uploader/index.html +++ b/docs/javascript/src/challenges/file-uploader/index.html @@ -6,9 +6,9 @@ href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" /> - - - + + + diff --git a/docs/javascript/src/challenges/finance-tracker/index.html b/docs/javascript/src/challenges/finance-tracker/index.html index ac82fc019..a03157518 100644 --- a/docs/javascript/src/challenges/finance-tracker/index.html +++ b/docs/javascript/src/challenges/finance-tracker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/fitness-tracker/index.html b/docs/javascript/src/challenges/fitness-tracker/index.html index 93653e5e9..1499526f3 100644 --- a/docs/javascript/src/challenges/fitness-tracker/index.html +++ b/docs/javascript/src/challenges/fitness-tracker/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/guess-the-number/index.html b/docs/javascript/src/challenges/guess-the-number/index.html index b77a45aba..3422bcb91 100644 --- a/docs/javascript/src/challenges/guess-the-number/index.html +++ b/docs/javascript/src/challenges/guess-the-number/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/hangman-game/index.html b/docs/javascript/src/challenges/hangman-game/index.html index 11e2d6647..d9d447951 100644 --- a/docs/javascript/src/challenges/hangman-game/index.html +++ b/docs/javascript/src/challenges/hangman-game/index.html @@ -4,9 +4,9 @@ Hangman Game - - - + + + diff --git a/docs/javascript/src/challenges/infinite-scroll/index.html b/docs/javascript/src/challenges/infinite-scroll/index.html index 5cdb43838..342cfe8b8 100644 --- a/docs/javascript/src/challenges/infinite-scroll/index.html +++ b/docs/javascript/src/challenges/infinite-scroll/index.html @@ -3,9 +3,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/json-creator/index.html b/docs/javascript/src/challenges/json-creator/index.html index 7cdbd409a..6dedc95cf 100644 --- a/docs/javascript/src/challenges/json-creator/index.html +++ b/docs/javascript/src/challenges/json-creator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/lift-simulation/index.html b/docs/javascript/src/challenges/lift-simulation/index.html index b591a83e2..174fb5c47 100644 --- a/docs/javascript/src/challenges/lift-simulation/index.html +++ b/docs/javascript/src/challenges/lift-simulation/index.html @@ -5,9 +5,9 @@ Lift Simulation - - - + + + diff --git a/docs/javascript/src/challenges/match-pair/index.html b/docs/javascript/src/challenges/match-pair/index.html index 50fe11808..be21027f7 100644 --- a/docs/javascript/src/challenges/match-pair/index.html +++ b/docs/javascript/src/challenges/match-pair/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/meme-generator/index.html b/docs/javascript/src/challenges/meme-generator/index.html index df7c8497e..5bde061e7 100644 --- a/docs/javascript/src/challenges/meme-generator/index.html +++ b/docs/javascript/src/challenges/meme-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/mouse-follower/index.html b/docs/javascript/src/challenges/mouse-follower/index.html index b629845df..ad879f8ad 100644 --- a/docs/javascript/src/challenges/mouse-follower/index.html +++ b/docs/javascript/src/challenges/mouse-follower/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/movie-info/index.html b/docs/javascript/src/challenges/movie-info/index.html index 1a02d150c..84dc9461e 100644 --- a/docs/javascript/src/challenges/movie-info/index.html +++ b/docs/javascript/src/challenges/movie-info/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/multi-typing/index.html b/docs/javascript/src/challenges/multi-typing/index.html index 181f74e7f..981341b29 100644 --- a/docs/javascript/src/challenges/multi-typing/index.html +++ b/docs/javascript/src/challenges/multi-typing/index.html @@ -6,9 +6,9 @@ Typing Text Animation - - - + + + diff --git a/docs/javascript/src/challenges/music-kit/index.html b/docs/javascript/src/challenges/music-kit/index.html index 0828e602f..a4922508e 100644 --- a/docs/javascript/src/challenges/music-kit/index.html +++ b/docs/javascript/src/challenges/music-kit/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/nested-comments/index.html b/docs/javascript/src/challenges/nested-comments/index.html index b1bf946c2..f25a24e95 100644 --- a/docs/javascript/src/challenges/nested-comments/index.html +++ b/docs/javascript/src/challenges/nested-comments/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/otp-input/index.html b/docs/javascript/src/challenges/otp-input/index.html index a1ad9c672..d279b1955 100644 --- a/docs/javascript/src/challenges/otp-input/index.html +++ b/docs/javascript/src/challenges/otp-input/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/paginator/index.html b/docs/javascript/src/challenges/paginator/index.html index 07e68f56c..e6e4f1147 100644 --- a/docs/javascript/src/challenges/paginator/index.html +++ b/docs/javascript/src/challenges/paginator/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/password-generator/index.html b/docs/javascript/src/challenges/password-generator/index.html index 62f7deea4..bda6e5ef9 100644 --- a/docs/javascript/src/challenges/password-generator/index.html +++ b/docs/javascript/src/challenges/password-generator/index.html @@ -6,9 +6,9 @@ password-generator - - - + + + diff --git a/docs/javascript/src/challenges/password-strength/index.html b/docs/javascript/src/challenges/password-strength/index.html index cabbd9402..62e646c26 100644 --- a/docs/javascript/src/challenges/password-strength/index.html +++ b/docs/javascript/src/challenges/password-strength/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/pixel-art/index.html b/docs/javascript/src/challenges/pixel-art/index.html index b75df5927..3e976d3dc 100644 --- a/docs/javascript/src/challenges/pixel-art/index.html +++ b/docs/javascript/src/challenges/pixel-art/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/progress-bar/index.html b/docs/javascript/src/challenges/progress-bar/index.html index 14de5daff..2635e514a 100644 --- a/docs/javascript/src/challenges/progress-bar/index.html +++ b/docs/javascript/src/challenges/progress-bar/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/quiz-app/index.html b/docs/javascript/src/challenges/quiz-app/index.html index 1b696f015..46c02e1af 100644 --- a/docs/javascript/src/challenges/quiz-app/index.html +++ b/docs/javascript/src/challenges/quiz-app/index.html @@ -8,9 +8,9 @@ quiz's time - - - + + + diff --git a/docs/javascript/src/challenges/rock-paper-scissor/index.html b/docs/javascript/src/challenges/rock-paper-scissor/index.html index 0155796a1..c8324a185 100644 --- a/docs/javascript/src/challenges/rock-paper-scissor/index.html +++ b/docs/javascript/src/challenges/rock-paper-scissor/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/roll-dice/index.html b/docs/javascript/src/challenges/roll-dice/index.html index 909d193a4..c567a6988 100644 --- a/docs/javascript/src/challenges/roll-dice/index.html +++ b/docs/javascript/src/challenges/roll-dice/index.html @@ -5,9 +5,9 @@ Roll dice - - - + + + diff --git a/docs/javascript/src/challenges/simon-game/index.html b/docs/javascript/src/challenges/simon-game/index.html index 83db7090c..dfe1b1918 100644 --- a/docs/javascript/src/challenges/simon-game/index.html +++ b/docs/javascript/src/challenges/simon-game/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/snake-game/index.html b/docs/javascript/src/challenges/snake-game/index.html index 1ad0ebdce..b95a1b7d0 100644 --- a/docs/javascript/src/challenges/snake-game/index.html +++ b/docs/javascript/src/challenges/snake-game/index.html @@ -4,9 +4,9 @@ snake game-js - - - + + + diff --git a/docs/javascript/src/challenges/sorting-visualizer/index.html b/docs/javascript/src/challenges/sorting-visualizer/index.html index d7185694c..2485b032d 100644 --- a/docs/javascript/src/challenges/sorting-visualizer/index.html +++ b/docs/javascript/src/challenges/sorting-visualizer/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/star-rating/index.html b/docs/javascript/src/challenges/star-rating/index.html index d5c560309..160818337 100644 --- a/docs/javascript/src/challenges/star-rating/index.html +++ b/docs/javascript/src/challenges/star-rating/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/story-generator/index.html b/docs/javascript/src/challenges/story-generator/index.html index 8448a35e2..e7586df31 100644 --- a/docs/javascript/src/challenges/story-generator/index.html +++ b/docs/javascript/src/challenges/story-generator/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/string-transformers/index.html b/docs/javascript/src/challenges/string-transformers/index.html index ae7abbb46..73e43fe31 100644 --- a/docs/javascript/src/challenges/string-transformers/index.html +++ b/docs/javascript/src/challenges/string-transformers/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/telephone-formatter/index.html b/docs/javascript/src/challenges/telephone-formatter/index.html index 9af3b773d..a28033b41 100644 --- a/docs/javascript/src/challenges/telephone-formatter/index.html +++ b/docs/javascript/src/challenges/telephone-formatter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/tic-tac-toe/index.html b/docs/javascript/src/challenges/tic-tac-toe/index.html index 25f9e8eb9..8a2bb4a49 100644 --- a/docs/javascript/src/challenges/tic-tac-toe/index.html +++ b/docs/javascript/src/challenges/tic-tac-toe/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/timer-quiz/index.html b/docs/javascript/src/challenges/timer-quiz/index.html index a0be5146c..d6b617ad4 100644 --- a/docs/javascript/src/challenges/timer-quiz/index.html +++ b/docs/javascript/src/challenges/timer-quiz/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/toast-snackbar/index.html b/docs/javascript/src/challenges/toast-snackbar/index.html index eb5ee8ea9..475930d4d 100644 --- a/docs/javascript/src/challenges/toast-snackbar/index.html +++ b/docs/javascript/src/challenges/toast-snackbar/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/todo-list/index.html b/docs/javascript/src/challenges/todo-list/index.html index df209d77e..29ed10090 100644 --- a/docs/javascript/src/challenges/todo-list/index.html +++ b/docs/javascript/src/challenges/todo-list/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/transfer-list/index.html b/docs/javascript/src/challenges/transfer-list/index.html index 7bd1ee2ea..6af0e0ddc 100644 --- a/docs/javascript/src/challenges/transfer-list/index.html +++ b/docs/javascript/src/challenges/transfer-list/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/type-ahead-online/index.html b/docs/javascript/src/challenges/type-ahead-online/index.html index 402b6e9f2..a0876aee3 100644 --- a/docs/javascript/src/challenges/type-ahead-online/index.html +++ b/docs/javascript/src/challenges/type-ahead-online/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/type-ahead/index.html b/docs/javascript/src/challenges/type-ahead/index.html index b81ca26d5..351cb481e 100644 --- a/docs/javascript/src/challenges/type-ahead/index.html +++ b/docs/javascript/src/challenges/type-ahead/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/typing-speed-test/index.html b/docs/javascript/src/challenges/typing-speed-test/index.html index 8e29acd83..db1b34d7e 100644 --- a/docs/javascript/src/challenges/typing-speed-test/index.html +++ b/docs/javascript/src/challenges/typing-speed-test/index.html @@ -5,9 +5,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/weather-app/index.html b/docs/javascript/src/challenges/weather-app/index.html index a8386dde4..e0dc0cc29 100644 --- a/docs/javascript/src/challenges/weather-app/index.html +++ b/docs/javascript/src/challenges/weather-app/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/javascript/src/challenges/word-counter/index.html b/docs/javascript/src/challenges/word-counter/index.html index 220fcfa9b..433470312 100644 --- a/docs/javascript/src/challenges/word-counter/index.html +++ b/docs/javascript/src/challenges/word-counter/index.html @@ -1,9 +1,9 @@ - - - + + + diff --git a/docs/react/assets/index-CqfSRwal.js b/docs/react/assets/index-BS2TFGZ5.js similarity index 58% rename from docs/react/assets/index-CqfSRwal.js rename to docs/react/assets/index-BS2TFGZ5.js index d2e3bad07..c9abe911e 100644 --- a/docs/react/assets/index-CqfSRwal.js +++ b/docs/react/assets/index-BS2TFGZ5.js @@ -1,4 +1,4 @@ -var mb=Object.defineProperty;var gb=(e,t,n)=>t in e?mb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vh=(e,t,n)=>(gb(e,typeof t!="symbol"?t+"":t,n),n);function Kv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qv={exports:{}},Tc={},Yv={exports:{}},le={};/** +var Sb=Object.defineProperty;var Eb=(e,t,n)=>t in e?Sb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xh=(e,t,n)=>(Eb(e,typeof t!="symbol"?t+"":t,n),n);function Zv(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Nc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var e0={exports:{}},Tc={},t0={exports:{}},le={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var mb=Object.defineProperty;var gb=(e,t,n)=>t in e?mb(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var da=Symbol.for("react.element"),vb=Symbol.for("react.portal"),yb=Symbol.for("react.fragment"),xb=Symbol.for("react.strict_mode"),wb=Symbol.for("react.profiler"),bb=Symbol.for("react.provider"),_b=Symbol.for("react.context"),Sb=Symbol.for("react.forward_ref"),Eb=Symbol.for("react.suspense"),Cb=Symbol.for("react.memo"),kb=Symbol.for("react.lazy"),yh=Symbol.iterator;function jb(e){return e===null||typeof e!="object"?null:(e=yh&&e[yh]||e["@@iterator"],typeof e=="function"?e:null)}var Qv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xv=Object.assign,Jv={};function Oi(e,t,n){this.props=e,this.context=t,this.refs=Jv,this.updater=n||Qv}Oi.prototype.isReactComponent={};Oi.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Oi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zv(){}Zv.prototype=Oi.prototype;function Lf(e,t,n){this.props=e,this.context=t,this.refs=Jv,this.updater=n||Qv}var Ff=Lf.prototype=new Zv;Ff.constructor=Lf;Xv(Ff,Oi.prototype);Ff.isPureReactComponent=!0;var xh=Array.isArray,e0=Object.prototype.hasOwnProperty,zf={current:null},t0={key:!0,ref:!0,__self:!0,__source:!0};function n0(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)e0.call(t,r)&&!t0.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1t in e?mb(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pb=h,Ob=Symbol.for("react.element"),Ab=Symbol.for("react.fragment"),Mb=Object.prototype.hasOwnProperty,Db=Pb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ib={key:!0,ref:!0,__self:!0,__source:!0};function o0(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Mb.call(t,r)&&!Ib.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Ob,type:e,key:i,ref:s,props:o,_owner:Db.current}}Tc.Fragment=Ab;Tc.jsx=o0;Tc.jsxs=o0;qv.exports=Tc;var c=qv.exports,ld={},i0={exports:{}},zt={},s0={exports:{}},a0={};/** + */var zb=h,Bb=Symbol.for("react.element"),Ub=Symbol.for("react.fragment"),Hb=Object.prototype.hasOwnProperty,Wb=zb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vb={key:!0,ref:!0,__self:!0,__source:!0};function u0(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Hb.call(t,r)&&!Vb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Bb,type:e,key:i,ref:s,props:o,_owner:Wb.current}}Tc.Fragment=Ub;Tc.jsx=u0;Tc.jsxs=u0;e0.exports=Tc;var c=e0.exports,cd={},d0={exports:{}},zt={},f0={exports:{}},p0={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var mb=Object.defineProperty;var gb=(e,t,n)=>t in e?mb(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(L,V){var J=L.length;L.push(V);e:for(;0>>1,pe=L[re];if(0>>1;reo(He,J))yeo(at,He)?(L[re]=at,L[ye]=J,re=ye):(L[re]=He,L[Me]=J,re=Me);else if(yeo(at,J))L[re]=at,L[ye]=J,re=ye;else break e}}return V}function o(L,V){var J=L.sortIndex-V.sortIndex;return J!==0?J:L.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,p=3,g=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(L){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=L)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function C(L){if(y=!1,b(L),!m)if(n(a)!==null)m=!0,q(E);else{var V=n(u);V!==null&&Q(C,V.startTime-L)}}function E(L,V){m=!1,y&&(y=!1,v(j),j=-1),g=!0;var J=p;try{for(b(V),f=n(a);f!==null&&(!(f.expirationTime>V)||L&&!M());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var pe=re(f.expirationTime<=V);V=e.unstable_now(),typeof pe=="function"?f.callback=pe:f===n(a)&&r(a),b(V)}else r(a);f=n(a)}if(f!==null)var st=!0;else{var Me=n(u);Me!==null&&Q(C,Me.startTime-V),st=!1}return st}finally{f=null,p=J,g=!1}}var _=!1,k=null,j=-1,P=5,N=-1;function M(){return!(e.unstable_now()-NL||125re?(L.sortIndex=J,t(u,L),n(a)===null&&L===n(u)&&(y?(v(j),j=-1):y=!0,Q(C,J-re))):(L.sortIndex=pe,t(a,L),m||g||(m=!0,q(E))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var V=p;return function(){var J=p;p=V;try{return L.apply(this,arguments)}finally{p=J}}}})(a0);s0.exports=a0;var Lb=s0.exports;/** + */(function(e){function t(L,V){var J=L.length;L.push(V);e:for(;0>>1,pe=L[re];if(0>>1;reo(He,J))yeo(at,He)?(L[re]=at,L[ye]=J,re=ye):(L[re]=He,L[Me]=J,re=Me);else if(yeo(at,J))L[re]=at,L[ye]=J,re=ye;else break e}}return V}function o(L,V){var J=L.sortIndex-V.sortIndex;return J!==0?J:L.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],d=1,f=null,p=3,g=!1,m=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(L){for(var V=n(u);V!==null;){if(V.callback===null)r(u);else if(V.startTime<=L)r(u),V.sortIndex=V.expirationTime,t(a,V);else break;V=n(u)}}function C(L){if(y=!1,b(L),!m)if(n(a)!==null)m=!0,q(E);else{var V=n(u);V!==null&&Q(C,V.startTime-L)}}function E(L,V){m=!1,y&&(y=!1,v(j),j=-1),g=!0;var J=p;try{for(b(V),f=n(a);f!==null&&(!(f.expirationTime>V)||L&&!M());){var re=f.callback;if(typeof re=="function"){f.callback=null,p=f.priorityLevel;var pe=re(f.expirationTime<=V);V=e.unstable_now(),typeof pe=="function"?f.callback=pe:f===n(a)&&r(a),b(V)}else r(a);f=n(a)}if(f!==null)var st=!0;else{var Me=n(u);Me!==null&&Q(C,Me.startTime-V),st=!1}return st}finally{f=null,p=J,g=!1}}var _=!1,k=null,j=-1,P=5,T=-1;function M(){return!(e.unstable_now()-TL||125re?(L.sortIndex=J,t(u,L),n(a)===null&&L===n(u)&&(y?(v(j),j=-1):y=!0,Q(C,J-re))):(L.sortIndex=pe,t(a,L),m||g||(m=!0,q(E))),L},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(L){var V=p;return function(){var J=p;p=V;try{return L.apply(this,arguments)}finally{p=J}}}})(p0);f0.exports=p0;var Gb=f0.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var mb=Object.defineProperty;var gb=(e,t,n)=>t in e?mb(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var l0=h,Ft=Lb;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cd=Object.prototype.hasOwnProperty,Fb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bh={},_h={};function zb(e){return cd.call(_h,e)?!0:cd.call(bh,e)?!1:Fb.test(e)?_h[e]=!0:(bh[e]=!0,!1)}function Bb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ub(e,t,n,r){if(t===null||typeof t>"u"||Bb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){it[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var Uf=/[\-:]([a-z])/g;function Hf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Uf,Hf);it[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Uf,Hf);it[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Uf,Hf);it[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wf(e,t,n,r){var o=it.hasOwnProperty(t)?it[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ud=Object.prototype.hasOwnProperty,Kb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Sh={},Eh={};function qb(e){return ud.call(Eh,e)?!0:ud.call(Sh,e)?!1:Kb.test(e)?Eh[e]=!0:(Sh[e]=!0,!1)}function Yb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Qb(e,t,n,r){if(t===null||typeof t>"u"||Yb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Et(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new Et(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){it[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var Hf=/[\-:]([a-z])/g;function Wf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Hf,Wf);it[t]=new Et(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Hf,Wf);it[t]=new Et(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Hf,Wf);it[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function Vf(e,t,n,r){var o=it.hasOwnProperty(t)?it[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` -`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{fu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vs(e):""}function Hb(e){switch(e.tag){case 5:return vs(e.type);case 16:return vs("Lazy");case 13:return vs("Suspense");case 19:return vs("SuspenseList");case 0:case 2:case 15:return e=pu(e.type,!1),e;case 11:return e=pu(e.type.render,!1),e;case 1:return e=pu(e.type,!0),e;default:return""}}function pd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yo:return"Fragment";case qo:return"Portal";case ud:return"Profiler";case Vf:return"StrictMode";case dd:return"Suspense";case fd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d0:return(e.displayName||"Context")+".Consumer";case u0:return(e._context.displayName||"Context")+".Provider";case Gf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Kf:return t=e.displayName||null,t!==null?t:pd(e.type)||"Memo";case yr:t=e._payload,e=e._init;try{return pd(e(t))}catch{}}return null}function Wb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pd(t);case 8:return t===Vf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function p0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vb(e){var t=p0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ma(e){e._valueTracker||(e._valueTracker=Vb(e))}function h0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=p0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hd(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Eh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m0(e,t){t=t.checked,t!=null&&Wf(e,"checked",t,!1)}function md(e,t){m0(e,t);var n=Dr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?gd(e,t.type,n):t.hasOwnProperty("defaultValue")&&gd(e,t.type,Dr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ch(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function gd(e,t,n){(t!=="number"||Ml(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ys=Array.isArray;function ui(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Da.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _s={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gb=["Webkit","ms","Moz","O"];Object.keys(_s).forEach(function(e){Gb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_s[t]=_s[e]})});function x0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_s.hasOwnProperty(e)&&_s[e]?(""+t).trim():t+"px"}function w0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=x0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Kb=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xd(e,t){if(t){if(Kb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function wd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bd=null;function qf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _d=null,di=null,fi=null;function $h(e){if(e=ha(e)){if(typeof _d!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Mc(t),_d(e.stateNode,e.type,t))}}function b0(e){di?fi?fi.push(e):fi=[e]:di=e}function _0(){if(di){var e=di,t=fi;if(fi=di=null,$h(e),t)for(e=0;e>>=0,e===0?32:31-(o_(e)/i_|0)|0}var Ia=64,La=4194304;function xs(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=xs(l):(i&=s,i!==0&&(r=xs(i)))}else s=n&~o,s!==0?r=xs(s):i!==0&&(r=xs(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function c_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Es),Ih=String.fromCharCode(32),Lh=!1;function U0(e,t){switch(e){case"keyup":return I_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function H0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qo=!1;function F_(e,t){switch(e){case"compositionend":return H0(t);case"keypress":return t.which!==32?null:(Lh=!0,Ih);case"textInput":return e=t.data,e===Ih&&Lh?null:e;default:return null}}function z_(e,t){if(Qo)return e==="compositionend"||!np&&U0(e,t)?(e=z0(),ml=Zf=Er=null,Qo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Uh(n)}}function K0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?K0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function q0(){for(var e=window,t=Ml();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ml(e.document)}return t}function rp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Y_(e){var t=q0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&K0(n.ownerDocument.documentElement,n)){if(r!==null&&rp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Hh(n,i);var s=Hh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xo=null,$d=null,ks=null,Rd=!1;function Wh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rd||Xo==null||Xo!==Ml(r)||(r=Xo,"selectionStart"in r&&rp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ks&&Vs(ks,r)||(ks=r,r=Ul($d,"onSelect"),0ei||(e.current=Md[ei],Md[ei]=null,ei--)}function _e(e,t){ei++,Md[ei]=e.current,e.current=t}var Ir={},ht=Wr(Ir),Rt=Wr(!1),po=Ir;function Si(e,t){var n=e.type.contextTypes;if(!n)return Ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Tt(e){return e=e.childContextTypes,e!=null}function Wl(){Ee(Rt),Ee(ht)}function Xh(e,t,n){if(ht.current!==Ir)throw Error(F(168));_e(ht,t),_e(Rt,n)}function ry(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,Wb(e)||"Unknown",o));return Ae({},n,r)}function Vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ir,po=ht.current,_e(ht,e),_e(Rt,Rt.current),!0}function Jh(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=ry(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,Ee(Rt),Ee(ht),_e(ht,e)):Ee(Rt),_e(Rt,n)}var Un=null,Dc=!1,ju=!1;function oy(e){Un===null?Un=[e]:Un.push(e)}function aS(e){Dc=!0,oy(e)}function Vr(){if(!ju&&Un!==null){ju=!0;var e=0,t=he;try{var n=Un;for(he=1;e>=s,o-=s,Vn=1<<32-dn(t)+o|n<j?(P=k,k=null):P=k.sibling;var N=p(v,k,b[j],C);if(N===null){k===null&&(k=P);break}e&&k&&N.alternate===null&&t(v,k),x=i(N,x,j),_===null?E=N:_.sibling=N,_=N,k=P}if(j===b.length)return n(v,k),je&&Qr(v,j),E;if(k===null){for(;jj?(P=k,k=null):P=k.sibling;var M=p(v,k,N.value,C);if(M===null){k===null&&(k=P);break}e&&k&&M.alternate===null&&t(v,k),x=i(M,x,j),_===null?E=M:_.sibling=M,_=M,k=P}if(N.done)return n(v,k),je&&Qr(v,j),E;if(k===null){for(;!N.done;j++,N=b.next())N=f(v,N.value,C),N!==null&&(x=i(N,x,j),_===null?E=N:_.sibling=N,_=N);return je&&Qr(v,j),E}for(k=r(v,k);!N.done;j++,N=b.next())N=g(k,v,j,N.value,C),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?j:N.key),x=i(N,x,j),_===null?E=N:_.sibling=N,_=N);return e&&k.forEach(function(I){return t(v,I)}),je&&Qr(v,j),E}function w(v,x,b,C){if(typeof b=="object"&&b!==null&&b.type===Yo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Aa:e:{for(var E=b.key,_=x;_!==null;){if(_.key===E){if(E=b.type,E===Yo){if(_.tag===7){n(v,_.sibling),x=o(_,b.props.children),x.return=v,v=x;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===yr&&im(E)===_.type){n(v,_.sibling),x=o(_,b.props),x.ref=es(v,_,b),x.return=v,v=x;break e}n(v,_);break}else t(v,_);_=_.sibling}b.type===Yo?(x=lo(b.props.children,v.mode,C,b.key),x.return=v,v=x):(C=Sl(b.type,b.key,b.props,null,v.mode,C),C.ref=es(v,x,b),C.return=v,v=C)}return s(v);case qo:e:{for(_=b.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(v,x.sibling),x=o(x,b.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=Mu(b,v.mode,C),x.return=v,v=x}return s(v);case yr:return _=b._init,w(v,x,_(b._payload),C)}if(ys(b))return m(v,x,b,C);if(Yi(b))return y(v,x,b,C);Va(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(v,x.sibling),x=o(x,b),x.return=v,v=x):(n(v,x),x=Au(b,v.mode,C),x.return=v,v=x),s(v)):n(v,x)}return w}var Ci=fy(!0),py=fy(!1),ma={},Tn=Wr(ma),Ys=Wr(ma),Qs=Wr(ma);function oo(e){if(e===ma)throw Error(F(174));return e}function fp(e,t){switch(_e(Qs,t),_e(Ys,e),_e(Tn,ma),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:yd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=yd(t,e)}Ee(Tn),_e(Tn,t)}function ki(){Ee(Tn),Ee(Ys),Ee(Qs)}function hy(e){oo(Qs.current);var t=oo(Tn.current),n=yd(t,e.type);t!==n&&(_e(Ys,e),_e(Tn,n))}function pp(e){Ys.current===e&&(Ee(Tn),Ee(Ys))}var Ne=Wr(0);function Xl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $u=[];function hp(){for(var e=0;e<$u.length;e++)$u[e]._workInProgressVersionPrimary=null;$u.length=0}var yl=ir.ReactCurrentDispatcher,Ru=ir.ReactCurrentBatchConfig,mo=0,Oe=null,We=null,Xe=null,Jl=!1,js=!1,Xs=0,cS=0;function ct(){throw Error(F(321))}function mp(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Ru.transition;Ru.transition={};try{e(!1),t()}finally{he=n,Ru.transition=r}}function Ty(){return en().memoizedState}function dS(e,t,n){var r=Pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ny(e))Py(t,n);else if(n=ly(e,t,n,r),n!==null){var o=_t();fn(n,e,r,o),Oy(n,t,r)}}function fS(e,t,n){var r=Pr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ny(e))Py(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,hn(l,s)){var a=t.interleaved;a===null?(o.next=o,up(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=ly(e,t,o,r),n!==null&&(o=_t(),fn(n,e,r,o),Oy(n,t,r))}}function Ny(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Py(e,t){js=Jl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Qf(e,n)}}var Zl={readContext:Zt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},pS={readContext:Zt,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:am,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,xl(4194308,4,Cy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return xl(4194308,4,e,t)},useInsertionEffect:function(e,t){return xl(4,2,e,t)},useMemo:function(e,t){var n=En();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=En();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dS.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:sm,useDebugValue:xp,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=sm(!1),t=e[0];return e=uS.bind(null,e[1]),En().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=En();if(je){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));mo&30||vy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,am(xy.bind(null,r,i,e),[e]),r.flags|=2048,Zs(9,yy.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=En(),t=Ze.identifierPrefix;if(je){var n=Gn,r=Vn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xs++,0")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{pu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ys(e):""}function Xb(e){switch(e.tag){case 5:return ys(e.type);case 16:return ys("Lazy");case 13:return ys("Suspense");case 19:return ys("SuspenseList");case 0:case 2:case 15:return e=hu(e.type,!1),e;case 11:return e=hu(e.type.render,!1),e;case 1:return e=hu(e.type,!0),e;default:return""}}function hd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Yo:return"Fragment";case qo:return"Portal";case dd:return"Profiler";case Gf:return"StrictMode";case fd:return"Suspense";case pd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v0:return(e.displayName||"Context")+".Consumer";case g0:return(e._context.displayName||"Context")+".Provider";case Kf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qf:return t=e.displayName||null,t!==null?t:hd(e.type)||"Memo";case yr:t=e._payload,e=e._init;try{return hd(e(t))}catch{}}return null}function Jb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hd(t);case 8:return t===Gf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function x0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zb(e){var t=x0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Da(e){e._valueTracker||(e._valueTracker=Zb(e))}function w0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=x0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function md(e,t){var n=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function kh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function b0(e,t){t=t.checked,t!=null&&Vf(e,"checked",t,!1)}function gd(e,t){b0(e,t);var n=Dr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vd(e,t.type,n):t.hasOwnProperty("defaultValue")&&vd(e,t.type,Dr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vd(e,t,n){(t!=="number"||Dl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xs=Array.isArray;function ui(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Ia.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function zs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ss={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},e_=["Webkit","ms","Moz","O"];Object.keys(Ss).forEach(function(e){e_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ss[t]=Ss[e]})});function C0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ss.hasOwnProperty(e)&&Ss[e]?(""+t).trim():t+"px"}function k0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=C0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var t_=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wd(e,t){if(t){if(t_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function bd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _d=null;function Yf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sd=null,di=null,fi=null;function Nh(e){if(e=ma(e)){if(typeof Sd!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Dc(t),Sd(e.stateNode,e.type,t))}}function j0(e){di?fi?fi.push(e):fi=[e]:di=e}function $0(){if(di){var e=di,t=fi;if(fi=di=null,Nh(e),t)for(e=0;e>>=0,e===0?32:31-(f_(e)/p_|0)|0}var La=64,Fa=4194304;function ws(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function zl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=ws(l):(i&=s,i!==0&&(r=ws(i)))}else s=n&~o,s!==0?r=ws(s):i!==0&&(r=ws(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function pa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=n}function v_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Cs),Fh=String.fromCharCode(32),zh=!1;function q0(e,t){switch(e){case"keyup":return V_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Y0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qo=!1;function K_(e,t){switch(e){case"compositionend":return Y0(t);case"keypress":return t.which!==32?null:(zh=!0,Fh);case"textInput":return e=t.data,e===Fh&&zh?null:e;default:return null}}function q_(e,t){if(Qo)return e==="compositionend"||!rp&&q0(e,t)?(e=G0(),gl=ep=Er=null,Qo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wh(n)}}function Z0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Z0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ey(){for(var e=window,t=Dl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Dl(e.document)}return t}function op(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rS(e){var t=ey(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Z0(n.ownerDocument.documentElement,n)){if(r!==null&&op(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Vh(n,i);var s=Vh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Xo=null,Rd=null,js=null,Nd=!1;function Gh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nd||Xo==null||Xo!==Dl(r)||(r=Xo,"selectionStart"in r&&op(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),js&&Gs(js,r)||(js=r,r=Hl(Rd,"onSelect"),0ei||(e.current=Dd[ei],Dd[ei]=null,ei--)}function _e(e,t){ei++,Dd[ei]=e.current,e.current=t}var Ir={},ht=Wr(Ir),Rt=Wr(!1),po=Ir;function Si(e,t){var n=e.type.contextTypes;if(!n)return Ir;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Nt(e){return e=e.childContextTypes,e!=null}function Vl(){Ee(Rt),Ee(ht)}function Zh(e,t,n){if(ht.current!==Ir)throw Error(F(168));_e(ht,t),_e(Rt,n)}function cy(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(F(108,Jb(e)||"Unknown",o));return Ae({},n,r)}function Gl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ir,po=ht.current,_e(ht,e),_e(Rt,Rt.current),!0}function em(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=cy(e,t,po),r.__reactInternalMemoizedMergedChildContext=e,Ee(Rt),Ee(ht),_e(ht,e)):Ee(Rt),_e(Rt,n)}var Un=null,Ic=!1,$u=!1;function uy(e){Un===null?Un=[e]:Un.push(e)}function mS(e){Ic=!0,uy(e)}function Vr(){if(!$u&&Un!==null){$u=!0;var e=0,t=he;try{var n=Un;for(he=1;e>=s,o-=s,Vn=1<<32-dn(t)+o|n<j?(P=k,k=null):P=k.sibling;var T=p(v,k,b[j],C);if(T===null){k===null&&(k=P);break}e&&k&&T.alternate===null&&t(v,k),x=i(T,x,j),_===null?E=T:_.sibling=T,_=T,k=P}if(j===b.length)return n(v,k),je&&Qr(v,j),E;if(k===null){for(;jj?(P=k,k=null):P=k.sibling;var M=p(v,k,T.value,C);if(M===null){k===null&&(k=P);break}e&&k&&M.alternate===null&&t(v,k),x=i(M,x,j),_===null?E=M:_.sibling=M,_=M,k=P}if(T.done)return n(v,k),je&&Qr(v,j),E;if(k===null){for(;!T.done;j++,T=b.next())T=f(v,T.value,C),T!==null&&(x=i(T,x,j),_===null?E=T:_.sibling=T,_=T);return je&&Qr(v,j),E}for(k=r(v,k);!T.done;j++,T=b.next())T=g(k,v,j,T.value,C),T!==null&&(e&&T.alternate!==null&&k.delete(T.key===null?j:T.key),x=i(T,x,j),_===null?E=T:_.sibling=T,_=T);return e&&k.forEach(function(I){return t(v,I)}),je&&Qr(v,j),E}function w(v,x,b,C){if(typeof b=="object"&&b!==null&&b.type===Yo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ma:e:{for(var E=b.key,_=x;_!==null;){if(_.key===E){if(E=b.type,E===Yo){if(_.tag===7){n(v,_.sibling),x=o(_,b.props.children),x.return=v,v=x;break e}}else if(_.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===yr&&am(E)===_.type){n(v,_.sibling),x=o(_,b.props),x.ref=ts(v,_,b),x.return=v,v=x;break e}n(v,_);break}else t(v,_);_=_.sibling}b.type===Yo?(x=lo(b.props.children,v.mode,C,b.key),x.return=v,v=x):(C=El(b.type,b.key,b.props,null,v.mode,C),C.ref=ts(v,x,b),C.return=v,v=C)}return s(v);case qo:e:{for(_=b.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(v,x.sibling),x=o(x,b.children||[]),x.return=v,v=x;break e}else{n(v,x);break}else t(v,x);x=x.sibling}x=Du(b,v.mode,C),x.return=v,v=x}return s(v);case yr:return _=b._init,w(v,x,_(b._payload),C)}if(xs(b))return m(v,x,b,C);if(Qi(b))return y(v,x,b,C);Ga(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(v,x.sibling),x=o(x,b),x.return=v,v=x):(n(v,x),x=Mu(b,v.mode,C),x.return=v,v=x),s(v)):n(v,x)}return w}var Ci=yy(!0),xy=yy(!1),ga={},Nn=Wr(ga),Qs=Wr(ga),Xs=Wr(ga);function oo(e){if(e===ga)throw Error(F(174));return e}function pp(e,t){switch(_e(Xs,t),_e(Qs,e),_e(Nn,ga),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xd(t,e)}Ee(Nn),_e(Nn,t)}function ki(){Ee(Nn),Ee(Qs),Ee(Xs)}function wy(e){oo(Xs.current);var t=oo(Nn.current),n=xd(t,e.type);t!==n&&(_e(Qs,e),_e(Nn,n))}function hp(e){Qs.current===e&&(Ee(Nn),Ee(Qs))}var Te=Wr(0);function Jl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ru=[];function mp(){for(var e=0;en?n:4,e(!0);var r=Nu.transition;Nu.transition={};try{e(!1),t()}finally{he=n,Nu.transition=r}}function Dy(){return en().memoizedState}function xS(e,t,n){var r=Pr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Iy(e))Ly(t,n);else if(n=hy(e,t,n,r),n!==null){var o=_t();fn(n,e,r,o),Fy(n,t,r)}}function wS(e,t,n){var r=Pr(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Iy(e))Ly(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,hn(l,s)){var a=t.interleaved;a===null?(o.next=o,dp(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=hy(e,t,o,r),n!==null&&(o=_t(),fn(n,e,r,o),Fy(n,t,r))}}function Iy(e){var t=e.alternate;return e===Oe||t!==null&&t===Oe}function Ly(e,t){$s=Zl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xf(e,n)}}var ec={readContext:Zt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},bS={readContext:Zt,useCallback:function(e,t){return En().memoizedState=[e,t===void 0?null:t],e},useContext:Zt,useEffect:cm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wl(4194308,4,Ty.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wl(4194308,4,e,t)},useInsertionEffect:function(e,t){return wl(4,2,e,t)},useMemo:function(e,t){var n=En();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=En();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xS.bind(null,Oe,e),[r.memoizedState,e]},useRef:function(e){var t=En();return e={current:e},t.memoizedState=e},useState:lm,useDebugValue:wp,useDeferredValue:function(e){return En().memoizedState=e},useTransition:function(){var e=lm(!1),t=e[0];return e=yS.bind(null,e[1]),En().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Oe,o=En();if(je){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Ze===null)throw Error(F(349));mo&30||Sy(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,cm(Cy.bind(null,r,i,e),[e]),r.flags|=2048,ea(9,Ey.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=En(),t=Ze.identifierPrefix;if(je){var n=Gn,r=Vn;n=(r&~(1<<32-dn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Js++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[jn]=t,e[qs]=r,Uy(e,t,!1,!1),t.stateNode=e;e:{switch(s=wd(n,r),n){case"dialog":Se("cancel",e),Se("close",e),o=r;break;case"iframe":case"object":case"embed":Se("load",e),o=r;break;case"video":case"audio":for(o=0;o$i&&(t.flags|=128,r=!0,ts(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ts(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!je)return ut(t),null}else 2*Be()-i.renderingStartTime>$i&&n!==1073741824&&(t.flags|=128,r=!0,ts(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Be(),t.sibling=null,n=Ne.current,_e(Ne,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return Cp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?At&1073741824&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function bS(e,t){switch(ip(t),t.tag){case 1:return Tt(t.type)&&Wl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ki(),Ee(Rt),Ee(ht),hp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pp(t),null;case 13:if(Ee(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Ne),null;case 4:return ki(),null;case 10:return cp(t.type._context),null;case 22:case 23:return Cp(),null;case 24:return null;default:return null}}var Ka=!1,dt=!1,_S=typeof WeakSet=="function"?WeakSet:Set,G=null;function oi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function Kd(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var gm=!1;function SS(e,t){if(Td=zl,e=q0(),rp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===i&&++d===r&&(a=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Nd={focusedElem:e,selectionRange:n},zl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:an(t.type,y),w);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(C){Ie(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=gm,gm=!1,m}function $s(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Kd(t,n,i)}o=o.next}while(o!==r)}}function Fc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vy(e){var t=e.alternate;t!==null&&(e.alternate=null,Vy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jn],delete t[qs],delete t[Ad],delete t[iS],delete t[sS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Gy(e){return e.tag===5||e.tag===3||e.tag===4}function vm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hl));else if(r!==4&&(e=e.child,e!==null))for(Yd(e,t,n),e=e.sibling;e!==null;)Yd(e,t,n),e=e.sibling}function Qd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Qd(e,t,n),e=e.sibling;e!==null;)Qd(e,t,n),e=e.sibling}var nt=null,ln=!1;function ur(e,t,n){for(n=n.child;n!==null;)Ky(e,t,n),n=n.sibling}function Ky(e,t,n){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Nc,n)}catch{}switch(n.tag){case 5:dt||oi(n,t);case 6:var r=nt,o=ln;nt=null,ur(e,t,n),nt=r,ln=o,nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?ku(e.parentNode,n):e.nodeType===1&&ku(e,n),Hs(e)):ku(nt,n.stateNode));break;case 4:r=nt,o=ln,nt=n.stateNode.containerInfo,ln=!0,ur(e,t,n),nt=r,ln=o;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Kd(n,t,s),o=o.next}while(o!==r)}ur(e,t,n);break;case 1:if(!dt&&(oi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ie(n,t,l)}ur(e,t,n);break;case 21:ur(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,ur(e,t,n),dt=r):ur(e,t,n);break;default:ur(e,t,n)}}function ym(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _S),t.forEach(function(r){var o=PS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function on(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*CS(r/1960))-r,10e?16:e,Cr===null)var r=!1;else{if(e=Cr,Cr=null,nc=0,fe&6)throw Error(F(331));var o=fe;for(fe|=4,G=e.current;G!==null;){var i=G,s=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aBe()-Sp?ao(e,0):_p|=n),Nt(e,t)}function t1(e,t){t===0&&(e.mode&1?(t=La,La<<=1,!(La&130023424)&&(La=4194304)):t=1);var n=_t();e=Zn(e,t),e!==null&&(fa(e,t,n),Nt(e,n))}function NS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),t1(e,n)}function PS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),t1(e,n)}var n1;n1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,xS(e,t,n);jt=!!(e.flags&131072)}else jt=!1,je&&t.flags&1048576&&iy(t,Kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wl(e,t),e=t.pendingProps;var o=Si(t,ht.current);hi(t,n),o=gp(null,t,r,e,o,n);var i=vp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Tt(r)?(i=!0,Vl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,dp(t),o.updater=Ic,t.stateNode=o,o._reactInternals=t,zd(t,r,e,n),t=Hd(null,t,r,!0,i,n)):(t.tag=0,je&&i&&op(t),yt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=AS(r),e=an(r,e),o){case 0:t=Ud(null,t,r,e,n);break e;case 1:t=pm(null,t,r,e,n);break e;case 11:t=dm(null,t,r,e,n);break e;case 14:t=fm(null,t,r,an(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),Ud(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),pm(e,t,r,o,n);case 3:e:{if(Fy(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,cy(e,t),Ql(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ji(Error(F(423)),t),t=hm(e,t,r,n,o);break e}else if(r!==o){o=ji(Error(F(424)),t),t=hm(e,t,r,n,o);break e}else for(Dt=Rr(t.stateNode.containerInfo.firstChild),It=t,je=!0,un=null,n=py(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ei(),r===o){t=er(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return hy(t),e===null&&Id(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Pd(r,o)?s=null:i!==null&&Pd(r,i)&&(t.flags|=32),Ly(e,t),yt(e,t,s,n),t.child;case 6:return e===null&&Id(t),null;case 13:return zy(e,t,n);case 4:return fp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ci(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),dm(e,t,r,o,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,_e(ql,r._currentValue),r._currentValue=s,i!==null)if(hn(i.value,s)){if(i.children===o.children&&!Rt.current){t=er(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=qn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ld(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(F(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ld(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}yt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,hi(t,n),o=Zt(o),r=r(o),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,o=an(r,t.pendingProps),o=an(r.type,o),fm(e,t,r,o,n);case 15:return Dy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),wl(e,t),t.tag=1,Tt(r)?(e=!0,Vl(t)):e=!1,hi(t,n),dy(t,r,o),zd(t,r,o,n),Hd(null,t,r,!0,e,n);case 19:return By(e,t,n);case 22:return Iy(e,t,n)}throw Error(F(156,t.tag))};function r1(e,t){return R0(e,t)}function OS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,t,n,r){return new OS(e,t,n,r)}function jp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function AS(e){if(typeof e=="function")return jp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gf)return 11;if(e===Kf)return 14}return 2}function Or(e,t){var n=e.alternate;return n===null?(n=Yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Sl(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")jp(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yo:return lo(n.children,o,i,t);case Vf:s=8,o|=8;break;case ud:return e=Yt(12,n,t,o|2),e.elementType=ud,e.lanes=i,e;case dd:return e=Yt(13,n,t,o),e.elementType=dd,e.lanes=i,e;case fd:return e=Yt(19,n,t,o),e.elementType=fd,e.lanes=i,e;case f0:return Bc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case u0:s=10;break e;case d0:s=9;break e;case Gf:s=11;break e;case Kf:s=14;break e;case yr:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Yt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function lo(e,t,n,r){return e=Yt(7,e,r,t),e.lanes=n,e}function Bc(e,t,n,r){return e=Yt(22,e,r,t),e.elementType=f0,e.lanes=n,e.stateNode={isHidden:!1},e}function Au(e,t,n){return e=Yt(6,e,null,t),e.lanes=n,e}function Mu(e,t,n){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function MS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mu(0),this.expirationTimes=mu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $p(e,t,n,r,o,i,s,l,a){return e=new MS(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},dp(i),e}function DS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a1)}catch(e){console.error(e)}}a1(),i0.exports=zt;var So=i0.exports;const Pp=Rc(So),BS=Kv({__proto__:null,default:Pp},[So]);var km=So;ld.createRoot=km.createRoot,ld.hydrateRoot=km.hydrateRoot;/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ou(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ud(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ES=typeof WeakMap=="function"?WeakMap:Map;function zy(e,t,n){n=qn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){nc||(nc=!0,Jd=r),Ud(e,t)},n}function By(e,t,n){n=qn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ud(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ud(e,t),typeof r!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function um(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ES;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=LS.bind(null,e,t,n),t.then(e,e))}function dm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function fm(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=qn(-1,1),t.tag=2,Nr(n,t,1))),n.lanes|=1),e)}var CS=ir.ReactCurrentOwner,jt=!1;function yt(e,t,n,r){t.child=e===null?xy(t,null,n,r):Ci(t,e.child,n,r)}function pm(e,t,n,r,o){n=n.render;var i=t.ref;return hi(t,o),r=vp(e,t,n,r,i,o),n=yp(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,er(e,t,o)):(je&&n&&ip(t),t.flags|=1,yt(e,t,r,o),t.child)}function hm(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!$p(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Uy(e,t,i,r,o)):(e=El(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Gs,n(s,r)&&e.ref===t.ref)return er(e,t,o)}return t.flags|=1,e=Or(i,r),e.ref=t.ref,e.return=t,t.child=e}function Uy(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Gs(i,r)&&e.ref===t.ref)if(jt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(jt=!0);else return t.lanes=e.lanes,er(e,t,o)}return Hd(e,t,n,r,o)}function Hy(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(ii,At),At|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(ii,At),At|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,_e(ii,At),At|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,_e(ii,At),At|=r;return yt(e,t,o,n),t.child}function Wy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Hd(e,t,n,r,o){var i=Nt(n)?po:ht.current;return i=Si(t,i),hi(t,o),n=vp(e,t,n,r,i,o),r=yp(),e!==null&&!jt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,er(e,t,o)):(je&&r&&ip(t),t.flags|=1,yt(e,t,n,o),t.child)}function mm(e,t,n,r,o){if(Nt(n)){var i=!0;Gl(t)}else i=!1;if(hi(t,o),t.stateNode===null)bl(e,t),vy(t,n,r),Bd(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Zt(u):(u=Nt(n)?po:ht.current,u=Si(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==u)&&sm(t,s,r,u),xr=!1;var p=t.memoizedState;s.state=p,Xl(t,r,s,o),a=t.memoizedState,l!==r||p!==a||Rt.current||xr?(typeof d=="function"&&(zd(t,n,d,r),a=t.memoizedState),(l=xr||im(t,n,l,r,p,a,u))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,my(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:an(t.type,l),s.props=u,f=t.pendingProps,p=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Zt(a):(a=Nt(n)?po:ht.current,a=Si(t,a));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==f||p!==a)&&sm(t,s,r,a),xr=!1,p=t.memoizedState,s.state=p,Xl(t,r,s,o);var m=t.memoizedState;l!==f||p!==m||Rt.current||xr?(typeof g=="function"&&(zd(t,n,g,r),m=t.memoizedState),(u=xr||im(t,n,u,r,p,m,a)||!1)?(d||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=a,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Wd(e,t,n,r,i,o)}function Wd(e,t,n,r,o,i){Wy(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&em(t,n,!1),er(e,t,i);r=t.stateNode,CS.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ci(t,e.child,null,i),t.child=Ci(t,null,l,i)):yt(e,t,l,i),t.memoizedState=r.state,o&&em(t,n,!0),t.child}function Vy(e){var t=e.stateNode;t.pendingContext?Zh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Zh(e,t.context,!1),pp(e,t.containerInfo)}function gm(e,t,n,r,o){return Ei(),ap(o),t.flags|=256,yt(e,t,n,r),t.child}var Vd={dehydrated:null,treeContext:null,retryLane:0};function Gd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Gy(e,t,n){var r=t.pendingProps,o=Te.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),_e(Te,o&1),e===null)return Ld(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=Uc(s,r,0,null),e=lo(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Gd(n),t.memoizedState=Vd,e):bp(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return kS(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Or(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Or(l,i):(i=lo(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Gd(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Vd,r}return i=e.child,e=i.sibling,r=Or(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function bp(e,t){return t=Uc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ka(e,t,n,r){return r!==null&&ap(r),Ci(t,e.child,null,n),e=bp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kS(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Ou(Error(F(422))),Ka(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Uc({mode:"visible",children:r.children},o,0,null),i=lo(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Ci(t,e.child,null,s),t.child.memoizedState=Gd(s),t.memoizedState=Vd,i);if(!(t.mode&1))return Ka(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(F(419)),r=Ou(i,r,void 0),Ka(e,t,s,r)}if(l=(s&e.childLanes)!==0,jt||l){if(r=Ze,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Zn(e,o),fn(r,e,o,-1))}return jp(),r=Ou(Error(F(421))),Ka(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=FS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Dt=Rr(o.nextSibling),It=t,je=!0,un=null,e!==null&&(Vt[Gt++]=Vn,Vt[Gt++]=Gn,Vt[Gt++]=ho,Vn=e.id,Gn=e.overflow,ho=t),t=bp(t,r.children),t.flags|=4096,t)}function vm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Fd(e.return,t,n)}function Au(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ky(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(yt(e,t,r.children,n),r=Te.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vm(e,n,t);else if(e.tag===19)vm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_e(Te,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Jl(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Au(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Jl(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Au(t,!0,n,null,i);break;case"together":Au(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function er(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),go|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=Or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jS(e,t,n){switch(t.tag){case 3:Vy(t),Ei();break;case 5:wy(t);break;case 1:Nt(t.type)&&Gl(t);break;case 4:pp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;_e(Yl,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Te,Te.current&1),t.flags|=128,null):n&t.child.childLanes?Gy(e,t,n):(_e(Te,Te.current&1),e=er(e,t,n),e!==null?e.sibling:null);_e(Te,Te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Ky(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),_e(Te,Te.current),r)break;return null;case 22:case 23:return t.lanes=0,Hy(e,t,n)}return er(e,t,n)}var qy,Kd,Yy,Qy;qy=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Kd=function(){};Yy=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,oo(Nn.current);var i=null;switch(n){case"input":o=md(e,o),r=md(e,r),i=[];break;case"select":o=Ae({},o,{value:void 0}),r=Ae({},r,{value:void 0}),i=[];break;case"textarea":o=yd(e,o),r=yd(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Wl)}wd(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var l=o[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fs.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fs.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&Se("scroll",e),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Qy=function(e,t,n,r){n!==r&&(t.flags|=4)};function ns(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $S(e,t,n){var r=t.pendingProps;switch(sp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return Nt(t.type)&&Vl(),ut(t),null;case 3:return r=t.stateNode,ki(),Ee(Rt),Ee(ht),mp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Va(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,un!==null&&(tf(un),un=null))),Kd(e,t),ut(t),null;case 5:hp(t);var o=oo(Xs.current);if(n=t.type,e!==null&&t.stateNode!=null)Yy(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return ut(t),null}if(e=oo(Nn.current),Va(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[jn]=t,r[Ys]=i,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[jn]=t,e[Ys]=r,qy(e,t,!1,!1),t.stateNode=e;e:{switch(s=bd(n,r),n){case"dialog":Se("cancel",e),Se("close",e),o=r;break;case"iframe":case"object":case"embed":Se("load",e),o=r;break;case"video":case"audio":for(o=0;o$i&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304)}else{if(!r)if(e=Jl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ns(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!je)return ut(t),null}else 2*Be()-i.renderingStartTime>$i&&n!==1073741824&&(t.flags|=128,r=!0,ns(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Be(),t.sibling=null,n=Te.current,_e(Te,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return kp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?At&1073741824&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function RS(e,t){switch(sp(t),t.tag){case 1:return Nt(t.type)&&Vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ki(),Ee(Rt),Ee(ht),mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return hp(t),null;case 13:if(Ee(Te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Ei()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ee(Te),null;case 4:return ki(),null;case 10:return up(t.type._context),null;case 22:case 23:return kp(),null;case 24:return null;default:return null}}var qa=!1,dt=!1,NS=typeof WeakSet=="function"?WeakSet:Set,G=null;function oi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ie(e,t,r)}else n.current=null}function qd(e,t,n){try{n()}catch(r){Ie(e,t,r)}}var ym=!1;function TS(e,t){if(Td=Bl,e=ey(),op(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(l=s+o),f!==i||r!==0&&f.nodeType!==3||(a=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===o&&(l=s),p===i&&++d===r&&(a=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pd={focusedElem:e,selectionRange:n},Bl=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,w=m.memoizedState,v=t.stateNode,x=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:an(t.type,y),w);v.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(C){Ie(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=ym,ym=!1,m}function Rs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&qd(t,n,i)}o=o.next}while(o!==r)}}function zc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Yd(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Xy(e){var t=e.alternate;t!==null&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[jn],delete t[Ys],delete t[Md],delete t[pS],delete t[hS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jy(e){return e.tag===5||e.tag===3||e.tag===4}function xm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wl));else if(r!==4&&(e=e.child,e!==null))for(Qd(e,t,n),e=e.sibling;e!==null;)Qd(e,t,n),e=e.sibling}function Xd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xd(e,t,n),e=e.sibling;e!==null;)Xd(e,t,n),e=e.sibling}var nt=null,ln=!1;function ur(e,t,n){for(n=n.child;n!==null;)Zy(e,t,n),n=n.sibling}function Zy(e,t,n){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(Pc,n)}catch{}switch(n.tag){case 5:dt||oi(n,t);case 6:var r=nt,o=ln;nt=null,ur(e,t,n),nt=r,ln=o,nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):nt.removeChild(n.stateNode));break;case 18:nt!==null&&(ln?(e=nt,n=n.stateNode,e.nodeType===8?ju(e.parentNode,n):e.nodeType===1&&ju(e,n),Ws(e)):ju(nt,n.stateNode));break;case 4:r=nt,o=ln,nt=n.stateNode.containerInfo,ln=!0,ur(e,t,n),nt=r,ln=o;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&qd(n,t,s),o=o.next}while(o!==r)}ur(e,t,n);break;case 1:if(!dt&&(oi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Ie(n,t,l)}ur(e,t,n);break;case 21:ur(e,t,n);break;case 22:n.mode&1?(dt=(r=dt)||n.memoizedState!==null,ur(e,t,n),dt=r):ur(e,t,n);break;default:ur(e,t,n)}}function wm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new NS),t.forEach(function(r){var o=zS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function on(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*OS(r/1960))-r,10e?16:e,Cr===null)var r=!1;else{if(e=Cr,Cr=null,rc=0,fe&6)throw Error(F(331));var o=fe;for(fe|=4,G=e.current;G!==null;){var i=G,s=i.child;if(G.flags&16){var l=i.deletions;if(l!==null){for(var a=0;aBe()-Ep?ao(e,0):Sp|=n),Tt(e,t)}function a1(e,t){t===0&&(e.mode&1?(t=Fa,Fa<<=1,!(Fa&130023424)&&(Fa=4194304)):t=1);var n=_t();e=Zn(e,t),e!==null&&(pa(e,t,n),Tt(e,n))}function FS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a1(e,n)}function zS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),a1(e,n)}var l1;l1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rt.current)jt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return jt=!1,jS(e,t,n);jt=!!(e.flags&131072)}else jt=!1,je&&t.flags&1048576&&dy(t,ql,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var o=Si(t,ht.current);hi(t,n),o=vp(null,t,r,e,o,n);var i=yp();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nt(r)?(i=!0,Gl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,fp(t),o.updater=Lc,t.stateNode=o,o._reactInternals=t,Bd(t,r,e,n),t=Wd(null,t,r,!0,i,n)):(t.tag=0,je&&i&&ip(t),yt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=US(r),e=an(r,e),o){case 0:t=Hd(null,t,r,e,n);break e;case 1:t=mm(null,t,r,e,n);break e;case 11:t=pm(null,t,r,e,n);break e;case 14:t=hm(null,t,r,an(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),Hd(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),mm(e,t,r,o,n);case 3:e:{if(Vy(t),e===null)throw Error(F(387));r=t.pendingProps,i=t.memoizedState,o=i.element,my(e,t),Xl(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ji(Error(F(423)),t),t=gm(e,t,r,n,o);break e}else if(r!==o){o=ji(Error(F(424)),t),t=gm(e,t,r,n,o);break e}else for(Dt=Rr(t.stateNode.containerInfo.firstChild),It=t,je=!0,un=null,n=xy(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ei(),r===o){t=er(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return wy(t),e===null&&Ld(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Od(r,o)?s=null:i!==null&&Od(r,i)&&(t.flags|=32),Wy(e,t),yt(e,t,s,n),t.child;case 6:return e===null&&Ld(t),null;case 13:return Gy(e,t,n);case 4:return pp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ci(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),pm(e,t,r,o,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,_e(Yl,r._currentValue),r._currentValue=s,i!==null)if(hn(i.value,s)){if(i.children===o.children&&!Rt.current){t=er(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=qn(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Fd(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(F(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Fd(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}yt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,hi(t,n),o=Zt(o),r=r(o),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,o=an(r,t.pendingProps),o=an(r.type,o),hm(e,t,r,o,n);case 15:return Uy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:an(r,o),bl(e,t),t.tag=1,Nt(r)?(e=!0,Gl(t)):e=!1,hi(t,n),vy(t,r,o),Bd(t,r,o,n),Wd(null,t,r,!0,e,n);case 19:return Ky(e,t,n);case 22:return Hy(e,t,n)}throw Error(F(156,t.tag))};function c1(e,t){return M0(e,t)}function BS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(e,t,n,r){return new BS(e,t,n,r)}function $p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function US(e){if(typeof e=="function")return $p(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kf)return 11;if(e===qf)return 14}return 2}function Or(e,t){var n=e.alternate;return n===null?(n=Yt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function El(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")$p(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Yo:return lo(n.children,o,i,t);case Gf:s=8,o|=8;break;case dd:return e=Yt(12,n,t,o|2),e.elementType=dd,e.lanes=i,e;case fd:return e=Yt(13,n,t,o),e.elementType=fd,e.lanes=i,e;case pd:return e=Yt(19,n,t,o),e.elementType=pd,e.lanes=i,e;case y0:return Uc(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case g0:s=10;break e;case v0:s=9;break e;case Kf:s=11;break e;case qf:s=14;break e;case yr:s=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=Yt(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function lo(e,t,n,r){return e=Yt(7,e,r,t),e.lanes=n,e}function Uc(e,t,n,r){return e=Yt(22,e,r,t),e.elementType=y0,e.lanes=n,e.stateNode={isHidden:!1},e}function Mu(e,t,n){return e=Yt(6,e,null,t),e.lanes=n,e}function Du(e,t,n){return t=Yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function HS(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gu(0),this.expirationTimes=gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rp(e,t,n,r,o,i,s,l,a){return e=new HS(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Yt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fp(i),e}function WS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(p1)}catch(e){console.error(e)}}p1(),d0.exports=zt;var So=d0.exports;const Op=Nc(So),YS=Zv({__proto__:null,default:Op},[So]);var $m=So;cd.createRoot=$m.createRoot,cd.hydrateRoot=$m.hydrateRoot;/** * @remix-run/router v1.14.0 * * Copyright (c) Remix Software Inc. @@ -46,8 +46,8 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HS(){return Math.random().toString(36).substr(2,8)}function $m(e,t){return{usr:e.state,key:e.key,idx:t}}function ta(e,t,n,r){return n===void 0&&(n=null),Le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?On(t):t,{state:n,key:t&&t.key||r||HS()})}function ga(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function On(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function WS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=ze.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(Le({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=ze.Pop;let w=d(),v=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:v})}function p(w,v){l=ze.Push;let x=ta(y.location,w,v);n&&n(x,w),u=d()+1;let b=$m(x,u),C=y.createHref(x);try{s.pushState(b,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&a&&a({action:l,location:y.location,delta:1})}function g(w,v){l=ze.Replace;let x=ta(y.location,w,v);n&&n(x,w),u=d();let b=$m(x,u),C=y.createHref(x);s.replaceState(b,"",C),i&&a&&a({action:l,location:y.location,delta:0})}function m(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof w=="string"?w:ga(w);return ue(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let y={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(jm,f),a=w,()=>{o.removeEventListener(jm,f),a=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let v=m(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:g,go(w){return s.go(w)}};return y}var De;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(De||(De={}));const VS=new Set(["lazy","caseSensitive","path","id","index","children"]);function GS(e){return e.index===!0}function tf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,i],l=typeof o.id=="string"?o.id:s.join("-");if(ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),ue(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),GS(o)){let a=Le({},o,t(o),{id:l});return r[l]=a,a}else{let a=Le({},o,t(o),{id:l,children:void 0});return r[l]=a,o.children&&(a.children=tf(o.children,t,s,r)),a}})}function si(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?On(t):t,o=va(r.pathname||"/",n);if(o==null)return null;let i=l1(e);qS(i);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=co([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),l1(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:tE(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of c1(i.path))o(i,s,a)}),t}function c1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=c1(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function qS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const YS=/^:\w+$/,QS=3,XS=2,JS=1,ZS=10,eE=-2,Rm=e=>e==="*";function tE(e,t){let n=e.split("/"),r=n.length;return n.some(Rm)&&(r+=eE),t&&(r+=XS),n.filter(o=>!Rm(o)).reduce((o,i)=>o+(YS.test(i)?QS:i===""?JS:ZS),r)}function nE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function rE(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=l[f]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=l[f];return g&&!m?u[p]=void 0:u[p]=aE(m||"",p),u},{}),pathname:i,pathnameBase:s,pattern:e}}function iE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sE(e){try{return decodeURI(e)}catch(t){return Lr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function aE(e,t){try{return decodeURIComponent(e)}catch(n){return Lr(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function va(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function lE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?On(e):e;return{pathname:n?n.startsWith("/")?n:cE(n,t):t,search:pE(r),hash:hE(o)}}function cE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Du(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function u1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function uE(e,t){let n=u1(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=On(e):(o=Le({},e),ue(!o.pathname||!o.pathname.includes("?"),Du("?","pathname","search",o)),ue(!o.pathname||!o.pathname.includes("#"),Du("#","pathname","hash",o)),ue(!o.search||!o.search.includes("#"),Du("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else if(r){let f=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f.pop();o.pathname=p.join("/")}l="/"+f.join("/")}else{let f=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}l=f>=0?t[f]:"/"}let a=lE(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const co=e=>e.join("/").replace(/\/\/+/g,"/"),fE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),pE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Op{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function d1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const f1=["post","put","patch","delete"],mE=new Set(f1),gE=["get",...f1],vE=new Set(gE),yE=new Set([301,302,303,307,308]),xE=new Set([307,308]),Iu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wE={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},rs={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},p1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bE=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),h1="remix-router-transitions";function _E(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;o=T=>({hasErrorBoundary:$(T)})}else o=bE;let i={},s=tf(e.routes,o,void 0,i),l,a=e.basename||"/",u=Le({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,p=null,g=null,m=null,y=e.hydrationData!=null,w=si(s,e.history.location,a),v=null;if(w==null){let $=Wt(404,{pathname:e.history.location.pathname}),{matches:T,route:O}=Im(s);w=T,v={[O.id]:$}}let x,b=w.some($=>$.route.lazy),C=w.some($=>$.route.loader);if(b)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,T=e.hydrationData?e.hydrationData.errors:null;x=w.every(O=>O.route.loader&&O.route.loader.hydrate!==!0&&($&&$[O.route.id]!==void 0||T&&T[O.route.id]!==void 0))}else x=e.hydrationData!=null;let E,_={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:Iu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},k=ze.Pop,j=!1,P,N=!1,M=new Map,I=null,H=!1,z=!1,Y=[],q=[],Q=new Map,L=0,V=-1,J=new Map,re=new Set,pe=new Map,st=new Map,Me=new Set,He=new Map,ye=new Map,at=!1;function yn(){if(d=e.history.listen($=>{let{action:T,location:O,delta:B}=$;if(at){at=!1;return}Lr(ye.size===0||B!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Po({currentLocation:_.location,nextLocation:O,historyAction:T});if(X&&B!=null){at=!0,e.history.go(B*-1),lr(X,{state:"blocked",location:O,proceed(){lr(X,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(B)},reset(){let se=new Map(_.blockers);se.set(X,rs),Ke({blockers:se})}});return}return qe(T,O)}),n){AE(t,M);let $=()=>ME(t,M);t.addEventListener("pagehide",$),I=()=>t.removeEventListener("pagehide",$)}return _.initialized||qe(ze.Pop,_.location,{initialHydration:!0}),E}function Mn(){d&&d(),I&&I(),f.clear(),P&&P.abort(),_.fetchers.forEach(($,T)=>lt(T)),_.blockers.forEach(($,T)=>No(T))}function Co($){return f.add($),()=>f.delete($)}function Ke($,T){T===void 0&&(T={}),_=Le({},_,$);let O=[],B=[];u.v7_fetcherPersist&&_.fetchers.forEach((X,se)=>{X.state==="idle"&&(Me.has(se)?B.push(se):O.push(se))}),[...f].forEach(X=>X(_,{deletedFetchers:B,unstable_viewTransitionOpts:T.viewTransitionOpts,unstable_flushSync:T.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(X=>_.fetchers.delete(X)),B.forEach(X=>lt(X)))}function xn($,T,O){var B,X;let{flushSync:se}=O===void 0?{}:O,ie=_.actionData!=null&&_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&_.navigation.state==="loading"&&((B=$.state)==null?void 0:B._isRedirect)!==!0,oe;T.actionData?Object.keys(T.actionData).length>0?oe=T.actionData:oe=null:ie?oe=_.actionData:oe=null;let Z=T.loaderData?Dm(_.loaderData,T.loaderData,T.matches||[],T.errors):_.loaderData,ce=_.blockers;ce.size>0&&(ce=new Map(ce),ce.forEach((we,tt)=>ce.set(tt,rs)));let Ye=j===!0||_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&((X=$.state)==null?void 0:X._isRedirect)!==!0;l&&(s=l,l=void 0),H||k===ze.Pop||(k===ze.Push?e.history.push($,$.state):k===ze.Replace&&e.history.replace($,$.state));let ae;if(k===ze.Pop){let we=M.get(_.location.pathname);we&&we.has($.pathname)?ae={currentLocation:_.location,nextLocation:$}:M.has($.pathname)&&(ae={currentLocation:$,nextLocation:_.location})}else if(N){let we=M.get(_.location.pathname);we?we.add($.pathname):(we=new Set([$.pathname]),M.set(_.location.pathname,we)),ae={currentLocation:_.location,nextLocation:$}}Ke(Le({},T,{actionData:oe,loaderData:Z,historyAction:k,location:$,initialized:!0,navigation:Iu,revalidation:"idle",restoreScrollPosition:gh($,T.matches||_.matches),preventScrollReset:Ye,blockers:ce}),{viewTransitionOpts:ae,flushSync:se===!0}),k=ze.Pop,j=!1,N=!1,H=!1,z=!1,Y=[],q=[]}async function rn($,T){if(typeof $=="number"){e.history.go($);return}let O=nf(_.location,_.matches,a,u.v7_prependBasename,$,u.v7_relativeSplatPath,T==null?void 0:T.fromRouteId,T==null?void 0:T.relative),{path:B,submission:X,error:se}=Tm(u.v7_normalizeFormMethod,!1,O,T),ie=_.location,oe=ta(_.location,B,T&&T.state);oe=Le({},oe,e.history.encodeLocation(oe));let Z=T&&T.replace!=null?T.replace:void 0,ce=ze.Push;Z===!0?ce=ze.Replace:Z===!1||X!=null&&cn(X.formMethod)&&X.formAction===_.location.pathname+_.location.search&&(ce=ze.Replace);let Ye=T&&"preventScrollReset"in T?T.preventScrollReset===!0:void 0,ae=(T&&T.unstable_flushSync)===!0,we=Po({currentLocation:ie,nextLocation:oe,historyAction:ce});if(we){lr(we,{state:"blocked",location:oe,proceed(){lr(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),rn($,T)},reset(){let tt=new Map(_.blockers);tt.set(we,rs),Ke({blockers:tt})}});return}return await qe(ce,oe,{submission:X,pendingError:se,preventScrollReset:Ye,replace:T&&T.replace,enableViewTransition:T&&T.unstable_viewTransition,flushSync:ae})}function Gr(){if(W(),Ke({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){qe(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}qe(k||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function qe($,T,O){P&&P.abort(),P=null,k=$,H=(O&&O.startUninterruptedRevalidation)===!0,fb(_.location,_.matches),j=(O&&O.preventScrollReset)===!0,N=(O&&O.enableViewTransition)===!0;let B=l||s,X=O&&O.overrideNavigation,se=si(B,T,a),ie=(O&&O.flushSync)===!0;if(!se){let tt=Wt(404,{pathname:T.pathname}),{matches:Ut,route:Qe}=Im(B);qr(),xn(T,{matches:Ut,loaderData:{},errors:{[Qe.id]:tt}},{flushSync:ie});return}if(_.initialized&&!z&&$E(_.location,T)&&!(O&&O.submission&&cn(O.submission.formMethod))){xn(T,{matches:se},{flushSync:ie});return}P=new AbortController;let oe=is(e.history,T,P.signal,O&&O.submission),Z,ce;if(O&&O.pendingError)ce={[Ns(se).route.id]:O.pendingError};else if(O&&O.submission&&cn(O.submission.formMethod)){let tt=await Dn(oe,T,O.submission,se,{replace:O.replace,flushSync:ie});if(tt.shortCircuited)return;Z=tt.pendingActionData,ce=tt.pendingActionError,X=Lu(T,O.submission),ie=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Ye,loaderData:ae,errors:we}=await Gi(oe,T,se,X,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ie,Z,ce);Ye||(P=null,xn(T,Le({matches:se},Z?{actionData:Z}:{},{loaderData:ae,errors:we})))}async function Dn($,T,O,B,X){X===void 0&&(X={}),W();let se=PE(T,O);Ke({navigation:se},{flushSync:X.flushSync===!0});let ie,oe=of(B,T);if(!oe.route.action&&!oe.route.lazy)ie={type:De.error,error:Wt(405,{method:$.method,pathname:T.pathname,routeId:oe.route.id})};else if(ie=await os("action",$,oe,B,i,o,a,u.v7_relativeSplatPath),$.signal.aborted)return{shortCircuited:!0};if(gi(ie)){let Z;return X&&X.replace!=null?Z=X.replace:Z=ie.location===_.location.pathname+_.location.search,await Pt(_,ie,{submission:O,replace:Z}),{shortCircuited:!0}}if(Ps(ie)){let Z=Ns(B,oe.route.id);return(X&&X.replace)!==!0&&(k=ze.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:ie.error}}}if(io(ie))throw Wt(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ie.data}}}async function Gi($,T,O,B,X,se,ie,oe,Z,ce,Ye){let ae=B||Lu(T,X),we=X||se||zm(ae),tt=l||s,[Ut,Qe]=Nm(e.history,_,O,we,T,u.v7_partialHydration&&oe===!0,z,Y,q,Me,pe,re,tt,a,ce,Ye);if(qr(xe=>!(O&&O.some(ke=>ke.route.id===xe))||Ut&&Ut.some(ke=>ke.route.id===xe)),V=++L,Ut.length===0&&Qe.length===0){let xe=$o();return xn(T,Le({matches:O,loaderData:{},errors:Ye||null},ce?{actionData:ce}:{},xe?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z}),{shortCircuited:!0}}if(!H&&(!u.v7_partialHydration||!oe)){Qe.forEach(ke=>{let wn=_.fetchers.get(ke.key),Pa=ss(void 0,wn?wn.data:void 0);_.fetchers.set(ke.key,Pa)});let xe=ce||_.actionData;Ke(Le({navigation:ae},xe?Object.keys(xe).length===0?{actionData:null}:{actionData:xe}:{},Qe.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z})}Qe.forEach(xe=>{Q.has(xe.key)&>(xe.key),xe.controller&&Q.set(xe.key,xe.controller)});let Oo=()=>Qe.forEach(xe=>gt(xe.key));P&&P.signal.addEventListener("abort",Oo);let{results:su,loaderResults:Ao,fetcherResults:cr}=await Ta(_.matches,O,Ut,Qe,$);if($.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Oo),Qe.forEach(xe=>Q.delete(xe.key));let Yr=Lm(su);if(Yr){if(Yr.idx>=Ut.length){let xe=Qe[Yr.idx-Ut.length].key;re.add(xe)}return await Pt(_,Yr.result,{replace:ie}),{shortCircuited:!0}}let{loaderData:au,errors:lu}=Mm(_,O,Ut,Ao,Ye,Qe,cr,He);He.forEach((xe,ke)=>{xe.subscribe(wn=>{(wn||xe.done)&&He.delete(ke)})});let cu=$o(),Mo=Ro(V),Na=cu||Mo||Qe.length>0;return Le({loaderData:au,errors:lu},Na?{fetchers:new Map(_.fetchers)}:{})}function Ki($,T,O,B){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Q.has($)&>($);let X=(B&&B.unstable_flushSync)===!0,se=l||s,ie=nf(_.location,_.matches,a,u.v7_prependBasename,O,u.v7_relativeSplatPath,T,B==null?void 0:B.relative),oe=si(se,ie,a);if(!oe){$e($,T,Wt(404,{pathname:ie}),{flushSync:X});return}let{path:Z,submission:ce,error:Ye}=Tm(u.v7_normalizeFormMethod,!0,ie,B);if(Ye){$e($,T,Ye,{flushSync:X});return}let ae=of(oe,Z);if(j=(B&&B.preventScrollReset)===!0,ce&&cn(ce.formMethod)){qi($,T,Z,ae,oe,X,ce);return}pe.set($,{routeId:T,path:Z}),ko($,T,Z,ae,oe,X,ce)}async function qi($,T,O,B,X,se,ie){if(W(),pe.delete($),!B.route.action&&!B.route.lazy){let ke=Wt(405,{method:ie.formMethod,pathname:O,routeId:T});$e($,T,ke,{flushSync:se});return}let oe=_.fetchers.get($);te($,OE(ie,oe),{flushSync:se});let Z=new AbortController,ce=is(e.history,O,Z.signal,ie);Q.set($,Z);let Ye=L,ae=await os("action",ce,B,X,i,o,a,u.v7_relativeSplatPath);if(ce.signal.aborted){Q.get($)===Z&&Q.delete($);return}if(Me.has($)){te($,gr(void 0));return}if(gi(ae))if(Q.delete($),V>Ye){te($,gr(void 0));return}else return re.add($),te($,ss(ie)),Pt(_,ae,{fetcherSubmission:ie});if(Ps(ae)){$e($,T,ae.error);return}if(io(ae))throw Wt(400,{type:"defer-action"});let we=_.navigation.location||_.location,tt=is(e.history,we,Z.signal),Ut=l||s,Qe=_.navigation.state!=="idle"?si(Ut,_.navigation.location,a):_.matches;ue(Qe,"Didn't find any matches after fetcher action");let Oo=++L;J.set($,Oo);let su=ss(ie,ae.data);_.fetchers.set($,su);let[Ao,cr]=Nm(e.history,_,Qe,ie,we,!1,z,Y,q,Me,pe,re,Ut,a,{[B.route.id]:ae.data},void 0);cr.filter(ke=>ke.key!==$).forEach(ke=>{let wn=ke.key,Pa=_.fetchers.get(wn),hb=ss(void 0,Pa?Pa.data:void 0);_.fetchers.set(wn,hb),Q.has(wn)&>(wn),ke.controller&&Q.set(wn,ke.controller)}),Ke({fetchers:new Map(_.fetchers)});let Yr=()=>cr.forEach(ke=>gt(ke.key));Z.signal.addEventListener("abort",Yr);let{results:au,loaderResults:lu,fetcherResults:cu}=await Ta(_.matches,Qe,Ao,cr,tt);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Yr),J.delete($),Q.delete($),cr.forEach(ke=>Q.delete(ke.key));let Mo=Lm(au);if(Mo){if(Mo.idx>=Ao.length){let ke=cr[Mo.idx-Ao.length].key;re.add(ke)}return Pt(_,Mo.result)}let{loaderData:Na,errors:xe}=Mm(_,_.matches,Ao,lu,void 0,cr,cu,He);if(_.fetchers.has($)){let ke=gr(ae.data);_.fetchers.set($,ke)}Ro(Oo),_.navigation.state==="loading"&&Oo>V?(ue(k,"Expected pending action"),P&&P.abort(),xn(_.navigation.location,{matches:Qe,loaderData:Na,errors:xe,fetchers:new Map(_.fetchers)})):(Ke({errors:xe,loaderData:Dm(_.loaderData,Na,Qe,xe),fetchers:new Map(_.fetchers)}),z=!1)}async function ko($,T,O,B,X,se,ie){let oe=_.fetchers.get($);te($,ss(ie,oe?oe.data:void 0),{flushSync:se});let Z=new AbortController,ce=is(e.history,O,Z.signal);Q.set($,Z);let Ye=L,ae=await os("loader",ce,B,X,i,o,a,u.v7_relativeSplatPath);if(io(ae)&&(ae=await v1(ae,ce.signal,!0)||ae),Q.get($)===Z&&Q.delete($),!ce.signal.aborted){if(Me.has($)){te($,gr(void 0));return}if(gi(ae))if(V>Ye){te($,gr(void 0));return}else{re.add($),await Pt(_,ae);return}if(Ps(ae)){$e($,T,ae.error);return}ue(!io(ae),"Unhandled fetcher deferred data"),te($,gr(ae.data))}}async function Pt($,T,O){let{submission:B,fetcherSubmission:X,replace:se}=O===void 0?{}:O;T.revalidate&&(z=!0);let ie=ta($.location,T.location,{_isRedirect:!0});if(ue(ie,"Expected a location on the redirect navigation"),n){let we=!1;if(T.reloadDocument)we=!0;else if(p1.test(T.location)){const tt=e.history.createURL(T.location);we=tt.origin!==t.location.origin||va(tt.pathname,a)==null}if(we){se?t.location.replace(T.location):t.location.assign(T.location);return}}P=null;let oe=se===!0?ze.Replace:ze.Push,{formMethod:Z,formAction:ce,formEncType:Ye}=$.navigation;!B&&!X&&Z&&ce&&Ye&&(B=zm($.navigation));let ae=B||X;if(xE.has(T.status)&&ae&&cn(ae.formMethod))await qe(oe,ie,{submission:Le({},ae,{formAction:T.location}),preventScrollReset:j});else{let we=Lu(ie,B);await qe(oe,ie,{overrideNavigation:we,fetcherSubmission:X,preventScrollReset:j})}}async function Ta($,T,O,B,X){let se=await Promise.all([...O.map(Z=>os("loader",X,Z,T,i,o,a,u.v7_relativeSplatPath)),...B.map(Z=>Z.matches&&Z.match&&Z.controller?os("loader",is(e.history,Z.path,Z.controller.signal),Z.match,Z.matches,i,o,a,u.v7_relativeSplatPath):{type:De.error,error:Wt(404,{pathname:Z.path})})]),ie=se.slice(0,O.length),oe=se.slice(O.length);return await Promise.all([Fm($,O,ie,ie.map(()=>X.signal),!1,_.loaderData),Fm($,B.map(Z=>Z.match),oe,B.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:se,loaderResults:ie,fetcherResults:oe}}function W(){z=!0,Y.push(...qr()),pe.forEach(($,T)=>{Q.has(T)&&(q.push(T),gt(T))})}function te($,T,O){O===void 0&&(O={}),_.fetchers.set($,T),Ke({fetchers:new Map(_.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function $e($,T,O,B){B===void 0&&(B={});let X=Ns(_.matches,T);lt($),Ke({errors:{[X.route.id]:O},fetchers:new Map(_.fetchers)},{flushSync:(B&&B.flushSync)===!0})}function et($){return u.v7_fetcherPersist&&(st.set($,(st.get($)||0)+1),Me.has($)&&Me.delete($)),_.fetchers.get($)||wE}function lt($){let T=_.fetchers.get($);Q.has($)&&!(T&&T.state==="loading"&&J.has($))&>($),pe.delete($),J.delete($),re.delete($),Me.delete($),_.fetchers.delete($)}function Kr($){if(u.v7_fetcherPersist){let T=(st.get($)||0)-1;T<=0?(st.delete($),Me.add($)):st.set($,T)}else lt($);Ke({fetchers:new Map(_.fetchers)})}function gt($){let T=Q.get($);ue(T,"Expected fetch controller: "+$),T.abort(),Q.delete($)}function jo($){for(let T of $){let O=et(T),B=gr(O.data);_.fetchers.set(T,B)}}function $o(){let $=[],T=!1;for(let O of re){let B=_.fetchers.get(O);ue(B,"Expected fetcher: "+O),B.state==="loading"&&(re.delete(O),$.push(O),T=!0)}return jo($),T}function Ro($){let T=[];for(let[O,B]of J)if(B<$){let X=_.fetchers.get(O);ue(X,"Expected fetcher: "+O),X.state==="loading"&&(gt(O),J.delete(O),T.push(O))}return jo(T),T.length>0}function To($,T){let O=_.blockers.get($)||rs;return ye.get($)!==T&&ye.set($,T),O}function No($){_.blockers.delete($),ye.delete($)}function lr($,T){let O=_.blockers.get($)||rs;ue(O.state==="unblocked"&&T.state==="blocked"||O.state==="blocked"&&T.state==="blocked"||O.state==="blocked"&&T.state==="proceeding"||O.state==="blocked"&&T.state==="unblocked"||O.state==="proceeding"&&T.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+T.state);let B=new Map(_.blockers);B.set($,T),Ke({blockers:B})}function Po($){let{currentLocation:T,nextLocation:O,historyAction:B}=$;if(ye.size===0)return;ye.size>1&&Lr(!1,"A router only supports one blocker at a time");let X=Array.from(ye.entries()),[se,ie]=X[X.length-1],oe=_.blockers.get(se);if(!(oe&&oe.state==="proceeding")&&ie({currentLocation:T,nextLocation:O,historyAction:B}))return se}function qr($){let T=[];return He.forEach((O,B)=>{(!$||$(B))&&(O.cancel(),T.push(B),He.delete(B))}),T}function iu($,T,O){if(p=$,m=T,g=O||null,!y&&_.navigation===Iu){y=!0;let B=gh(_.location,_.matches);B!=null&&Ke({restoreScrollPosition:B})}return()=>{p=null,m=null,g=null}}function mh($,T){return g&&g($,T.map(B=>KS(B,_.loaderData)))||$.key}function fb($,T){if(p&&m){let O=mh($,T);p[O]=m()}}function gh($,T){if(p){let O=mh($,T),B=p[O];if(typeof B=="number")return B}return null}function pb($){i={},l=tf($,o,void 0,i)}return E={get basename(){return a},get future(){return u},get state(){return _},get routes(){return s},get window(){return t},initialize:yn,subscribe:Co,enableScrollRestoration:iu,navigate:rn,fetch:Ki,revalidate:Gr,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:et,deleteFetcher:Kr,dispose:Mn,getBlocker:To,deleteBlocker:No,_internalFetchControllers:Q,_internalActiveDeferreds:He,_internalSetRoutes:pb},E}function SE(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function nf(e,t,n,r,o,i,s,l){let a,u;if(s){a=[];for(let f of t)if(a.push(f),f.route.id===s){u=f;break}}else a=t,u=t[t.length-1];let d=dE(o||".",uE(a,i),va(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Ap(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:co([n,d.pathname])),ga(d)}function Tm(e,t,n,r){if(!r||!SE(r))return{path:n};if(r.formMethod&&!NE(r.formMethod))return{path:n,error:Wt(405,{method:r.formMethod})};let o=()=>({path:n,error:Wt(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),l=g1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!cn(s))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,m)=>{let[y,w]=m;return""+g+y+"="+w+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!cn(s))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ue(typeof FormData=="function","FormData is not available in this environment");let a,u;if(r.formData)a=rf(r.formData),u=r.formData;else if(r.body instanceof FormData)a=rf(r.body),u=r.body;else if(r.body instanceof URLSearchParams)a=r.body,u=Am(a);else if(r.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(r.body),u=Am(a)}catch{return o()}let d={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(cn(d.formMethod))return{path:n,submission:d};let f=On(n);return t&&f.search&&Ap(f.search)&&a.append("index",""),f.search="?"+a,{path:ga(f),submission:d}}function EE(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Nm(e,t,n,r,o,i,s,l,a,u,d,f,p,g,m,y){let w=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),x=e.createURL(o),b=y?Object.keys(y)[0]:void 0,E=EE(n,b).filter((k,j)=>{if(i)return CE(t,k.route);if(k.route.lazy)return!0;if(k.route.loader==null)return!1;if(kE(t.loaderData,t.matches[j],k)||l.some(M=>M===k.route.id))return!0;let P=t.matches[j],N=k;return Pm(k,Le({currentUrl:v,currentParams:P.params,nextUrl:x,nextParams:N.params},r,{actionResult:w,defaultShouldRevalidate:s||v.pathname+v.search===x.pathname+x.search||v.search!==x.search||m1(P,N)}))}),_=[];return d.forEach((k,j)=>{if(i||!n.some(H=>H.route.id===k.routeId)||u.has(j))return;let P=si(p,k.path,g);if(!P){_.push({key:j,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let N=t.fetchers.get(j),M=of(P,k.path),I=!1;f.has(j)?I=!1:a.includes(j)?I=!0:N&&N.state!=="idle"&&N.data===void 0?I=s:I=Pm(M,Le({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),I&&_.push({key:j,routeId:k.routeId,path:k.path,matches:P,match:M,controller:new AbortController})}),[E,_]}function CE(e,t){return t.loader?t.loader.hydrate?!0:e.loaderData[t.id]===void 0&&(!e.errors||e.errors[t.id]===void 0):!1}function kE(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function m1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Pm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Om(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ue(o,"No route found in manifest");let i={};for(let s in r){let a=o[s]!==void 0&&s!=="hasErrorBoundary";Lr(!a,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!a&&!VS.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,Le({},t(o),{lazy:void 0}))}async function os(e,t,n,r,o,i,s,l,a){a===void 0&&(a={});let u,d,f,p=y=>{let w,v=new Promise((x,b)=>w=b);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([y({request:t,params:n.params,context:a.requestContext}),v])};try{let y=n.route[e];if(n.route.lazy)if(y){let w,v=await Promise.all([p(y).catch(x=>{w=x}),Om(n.route,i,o)]);if(w)throw w;d=v[0]}else if(await Om(n.route,i,o),y=n.route[e],y)d=await p(y);else if(e==="action"){let w=new URL(t.url),v=w.pathname+w.search;throw Wt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:De.data,data:void 0};else if(y)d=await p(y);else{let w=new URL(t.url),v=w.pathname+w.search;throw Wt(404,{pathname:v})}ue(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){u=De.error,d=y}finally{f&&t.signal.removeEventListener("abort",f)}if(TE(d)){let y=d.status;if(yE.has(y)){let v=d.headers.get("Location");if(ue(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!p1.test(v))v=nf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!a.isStaticRequest){let x=new URL(t.url),b=v.startsWith("//")?new URL(x.protocol+v):new URL(v),C=va(b.pathname,s)!=null;b.origin===x.origin&&C&&(v=b.pathname+b.search+b.hash)}if(a.isStaticRequest)throw d.headers.set("Location",v),d;return{type:De.redirect,status:y,location:v,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:u===De.error?De.error:De.data,response:d};let w;try{let v=d.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?w=await d.json():w=await d.text()}catch(v){return{type:De.error,error:v}}return u===De.error?{type:u,error:new Op(y,d.statusText,w),headers:d.headers}:{type:De.data,data:w,statusCode:d.status,headers:d.headers}}if(u===De.error)return{type:u,error:d};if(RE(d)){var g,m;return{type:De.deferred,deferredData:d,statusCode:(g=d.init)==null?void 0:g.status,headers:((m=d.init)==null?void 0:m.headers)&&new Headers(d.init.headers)}}return{type:De.data,data:d}}function is(e,t,n,r){let o=e.createURL(g1(t)).toString(),i={signal:n};if(r&&cn(r.formMethod)){let{formMethod:s,formEncType:l}=r;i.method=s.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=rf(r.formData):i.body=r.formData}return new Request(o,i)}function rf(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Am(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function jE(e,t,n,r,o){let i={},s=null,l,a=!1,u={};return n.forEach((d,f)=>{let p=t[f].route.id;if(ue(!gi(d),"Cannot handle redirect results in processLoaderData"),Ps(d)){let g=Ns(e,p),m=d.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=m),i[p]=void 0,a||(a=!0,l=d1(d.error)?d.error.status:500),d.headers&&(u[p]=d.headers)}else io(d)?(o.set(p,d.deferredData),i[p]=d.deferredData.data):i[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!a&&(l=d.statusCode),d.headers&&(u[p]=d.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:l||200,loaderHeaders:u}}function Mm(e,t,n,r,o,i,s,l){let{loaderData:a,errors:u}=jE(t,n,r,o,l);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Im(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Wt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Op(e||500,s,new Error(l),!0)}function Lm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(gi(n))return{result:n,idx:t}}}function g1(e){let t=typeof e=="string"?On(e):e;return ga(Le({},t,{hash:""}))}function $E(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function io(e){return e.type===De.deferred}function Ps(e){return e.type===De.error}function gi(e){return(e&&e.type)===De.redirect}function RE(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function TE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function NE(e){return vE.has(e.toLowerCase())}function cn(e){return mE.has(e.toLowerCase())}async function Fm(e,t,n,r,o,i){for(let s=0;sf.route.id===a.route.id),d=u!=null&&!m1(u,a)&&(i&&i[a.route.id])!==void 0;if(io(l)&&(o||d)){let f=r[s];ue(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await v1(l,f,o).then(p=>{p&&(n[s]=p||n[s])})}}}async function v1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:De.data,data:e.deferredData.unwrappedData}}catch(o){return{type:De.error,error:o}}return{type:De.data,data:e.deferredData.data}}}function Ap(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function of(e,t){let n=typeof t=="string"?On(t).search:t.search;if(e[e.length-1].route.index&&Ap(n||""))return e[e.length-1];let r=u1(e);return r[r.length-1]}function zm(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Lu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function PE(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function ss(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function OE(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function gr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function AE(e,t){try{let n=e.sessionStorage.getItem(h1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function ME(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(h1,JSON.stringify(n))}catch(r){Lr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + */function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Lr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function XS(){return Math.random().toString(36).substr(2,8)}function Nm(e,t){return{usr:e.state,key:e.key,idx:t}}function na(e,t,n,r){return n===void 0&&(n=null),Le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?On(t):t,{state:n,key:t&&t.key||r||XS()})}function va(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function On(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function JS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=ze.Pop,a=null,u=d();u==null&&(u=0,s.replaceState(Le({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){l=ze.Pop;let w=d(),v=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:v})}function p(w,v){l=ze.Push;let x=na(y.location,w,v);n&&n(x,w),u=d()+1;let b=Nm(x,u),C=y.createHref(x);try{s.pushState(b,"",C)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(C)}i&&a&&a({action:l,location:y.location,delta:1})}function g(w,v){l=ze.Replace;let x=na(y.location,w,v);n&&n(x,w),u=d();let b=Nm(x,u),C=y.createHref(x);s.replaceState(b,"",C),i&&a&&a({action:l,location:y.location,delta:0})}function m(w){let v=o.location.origin!=="null"?o.location.origin:o.location.href,x=typeof w=="string"?w:va(w);return ue(v,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,v)}let y={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Rm,f),a=w,()=>{o.removeEventListener(Rm,f),a=null}},createHref(w){return t(o,w)},createURL:m,encodeLocation(w){let v=m(w);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:g,go(w){return s.go(w)}};return y}var De;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(De||(De={}));const ZS=new Set(["lazy","caseSensitive","path","id","index","children"]);function eE(e){return e.index===!0}function nf(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let s=[...n,i],l=typeof o.id=="string"?o.id:s.join("-");if(ue(o.index!==!0||!o.children,"Cannot specify children on an index route"),ue(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),eE(o)){let a=Le({},o,t(o),{id:l});return r[l]=a,a}else{let a=Le({},o,t(o),{id:l,children:void 0});return r[l]=a,o.children&&(a.children=nf(o.children,t,s,r)),a}})}function si(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?On(t):t,o=ya(r.pathname||"/",n);if(o==null)return null;let i=h1(e);nE(i);let s=null;for(let l=0;s==null&&l{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(ue(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=co([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(ue(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),h1(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:cE(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of m1(i.path))o(i,s,a)}),t}function m1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=m1(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function nE(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rE=/^:\w+$/,oE=3,iE=2,sE=1,aE=10,lE=-2,Tm=e=>e==="*";function cE(e,t){let n=e.split("/"),r=n.length;return n.some(Tm)&&(r+=lE),t&&(r+=iE),n.filter(o=>!Tm(o)).reduce((o,i)=>o+(rE.test(i)?oE:i===""?sE:aE),r)}function uE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function dE(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let s=0;s{let{paramName:p,isOptional:g}=d;if(p==="*"){let y=l[f]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const m=l[f];return g&&!m?u[p]=void 0:u[p]=mE(m||"",p),u},{}),pathname:i,pathnameBase:s,pattern:e}}function pE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Lr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function hE(e){try{return decodeURI(e)}catch(t){return Lr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function mE(e,t){try{return decodeURIComponent(e)}catch(n){return Lr(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ya(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function gE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?On(e):e;return{pathname:n?n.startsWith("/")?n:vE(n,t):t,search:bE(r),hash:_E(o)}}function vE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Iu(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function g1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yE(e,t){let n=g1(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xE(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=On(e):(o=Le({},e),ue(!o.pathname||!o.pathname.includes("?"),Iu("?","pathname","search",o)),ue(!o.pathname||!o.pathname.includes("#"),Iu("#","pathname","hash",o)),ue(!o.search||!o.search.includes("#"),Iu("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else if(r){let f=t.length===0?[]:t[t.length-1].replace(/^\//,"").split("/");if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f.pop();o.pathname=p.join("/")}l="/"+f.join("/")}else{let f=t.length-1;if(s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}l=f>=0?t[f]:"/"}let a=gE(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const co=e=>e.join("/").replace(/\/\/+/g,"/"),wE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,_E=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ap{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function v1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const y1=["post","put","patch","delete"],SE=new Set(y1),EE=["get",...y1],CE=new Set(EE),kE=new Set([301,302,303,307,308]),jE=new Set([307,308]),Lu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},$E={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},os={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},x1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RE=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),w1="remix-router-transitions";function NE(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;ue(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let $=e.detectErrorBoundary;o=N=>({hasErrorBoundary:$(N)})}else o=RE;let i={},s=nf(e.routes,o,void 0,i),l,a=e.basename||"/",u=Le({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),d=null,f=new Set,p=null,g=null,m=null,y=e.hydrationData!=null,w=si(s,e.history.location,a),v=null;if(w==null){let $=Wt(404,{pathname:e.history.location.pathname}),{matches:N,route:O}=Fm(s);w=N,v={[O.id]:$}}let x,b=w.some($=>$.route.lazy),C=w.some($=>$.route.loader);if(b)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let $=e.hydrationData?e.hydrationData.loaderData:null,N=e.hydrationData?e.hydrationData.errors:null;x=w.every(O=>O.route.loader&&O.route.loader.hydrate!==!0&&($&&$[O.route.id]!==void 0||N&&N[O.route.id]!==void 0))}else x=e.hydrationData!=null;let E,_={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:Lu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},k=ze.Pop,j=!1,P,T=!1,M=new Map,I=null,H=!1,B=!1,Y=[],q=[],Q=new Map,L=0,V=-1,J=new Map,re=new Set,pe=new Map,st=new Map,Me=new Set,He=new Map,ye=new Map,at=!1;function yn(){if(d=e.history.listen($=>{let{action:N,location:O,delta:U}=$;if(at){at=!1;return}Lr(ye.size===0||U!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let X=Po({currentLocation:_.location,nextLocation:O,historyAction:N});if(X&&U!=null){at=!0,e.history.go(U*-1),lr(X,{state:"blocked",location:O,proceed(){lr(X,{state:"proceeding",proceed:void 0,reset:void 0,location:O}),e.history.go(U)},reset(){let se=new Map(_.blockers);se.set(X,os),Ke({blockers:se})}});return}return qe(N,O)}),n){UE(t,M);let $=()=>HE(t,M);t.addEventListener("pagehide",$),I=()=>t.removeEventListener("pagehide",$)}return _.initialized||qe(ze.Pop,_.location,{initialHydration:!0}),E}function Mn(){d&&d(),I&&I(),f.clear(),P&&P.abort(),_.fetchers.forEach(($,N)=>lt(N)),_.blockers.forEach(($,N)=>To(N))}function Co($){return f.add($),()=>f.delete($)}function Ke($,N){N===void 0&&(N={}),_=Le({},_,$);let O=[],U=[];u.v7_fetcherPersist&&_.fetchers.forEach((X,se)=>{X.state==="idle"&&(Me.has(se)?U.push(se):O.push(se))}),[...f].forEach(X=>X(_,{deletedFetchers:U,unstable_viewTransitionOpts:N.viewTransitionOpts,unstable_flushSync:N.flushSync===!0})),u.v7_fetcherPersist&&(O.forEach(X=>_.fetchers.delete(X)),U.forEach(X=>lt(X)))}function xn($,N,O){var U,X;let{flushSync:se}=O===void 0?{}:O,ie=_.actionData!=null&&_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&_.navigation.state==="loading"&&((U=$.state)==null?void 0:U._isRedirect)!==!0,oe;N.actionData?Object.keys(N.actionData).length>0?oe=N.actionData:oe=null:ie?oe=_.actionData:oe=null;let Z=N.loaderData?Lm(_.loaderData,N.loaderData,N.matches||[],N.errors):_.loaderData,ce=_.blockers;ce.size>0&&(ce=new Map(ce),ce.forEach((we,tt)=>ce.set(tt,os)));let Ye=j===!0||_.navigation.formMethod!=null&&cn(_.navigation.formMethod)&&((X=$.state)==null?void 0:X._isRedirect)!==!0;l&&(s=l,l=void 0),H||k===ze.Pop||(k===ze.Push?e.history.push($,$.state):k===ze.Replace&&e.history.replace($,$.state));let ae;if(k===ze.Pop){let we=M.get(_.location.pathname);we&&we.has($.pathname)?ae={currentLocation:_.location,nextLocation:$}:M.has($.pathname)&&(ae={currentLocation:$,nextLocation:_.location})}else if(T){let we=M.get(_.location.pathname);we?we.add($.pathname):(we=new Set([$.pathname]),M.set(_.location.pathname,we)),ae={currentLocation:_.location,nextLocation:$}}Ke(Le({},N,{actionData:oe,loaderData:Z,historyAction:k,location:$,initialized:!0,navigation:Lu,revalidation:"idle",restoreScrollPosition:yh($,N.matches||_.matches),preventScrollReset:Ye,blockers:ce}),{viewTransitionOpts:ae,flushSync:se===!0}),k=ze.Pop,j=!1,T=!1,H=!1,B=!1,Y=[],q=[]}async function rn($,N){if(typeof $=="number"){e.history.go($);return}let O=rf(_.location,_.matches,a,u.v7_prependBasename,$,u.v7_relativeSplatPath,N==null?void 0:N.fromRouteId,N==null?void 0:N.relative),{path:U,submission:X,error:se}=Pm(u.v7_normalizeFormMethod,!1,O,N),ie=_.location,oe=na(_.location,U,N&&N.state);oe=Le({},oe,e.history.encodeLocation(oe));let Z=N&&N.replace!=null?N.replace:void 0,ce=ze.Push;Z===!0?ce=ze.Replace:Z===!1||X!=null&&cn(X.formMethod)&&X.formAction===_.location.pathname+_.location.search&&(ce=ze.Replace);let Ye=N&&"preventScrollReset"in N?N.preventScrollReset===!0:void 0,ae=(N&&N.unstable_flushSync)===!0,we=Po({currentLocation:ie,nextLocation:oe,historyAction:ce});if(we){lr(we,{state:"blocked",location:oe,proceed(){lr(we,{state:"proceeding",proceed:void 0,reset:void 0,location:oe}),rn($,N)},reset(){let tt=new Map(_.blockers);tt.set(we,os),Ke({blockers:tt})}});return}return await qe(ce,oe,{submission:X,pendingError:se,preventScrollReset:Ye,replace:N&&N.replace,enableViewTransition:N&&N.unstable_viewTransition,flushSync:ae})}function Gr(){if(W(),Ke({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){qe(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}qe(k||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation})}}async function qe($,N,O){P&&P.abort(),P=null,k=$,H=(O&&O.startUninterruptedRevalidation)===!0,wb(_.location,_.matches),j=(O&&O.preventScrollReset)===!0,T=(O&&O.enableViewTransition)===!0;let U=l||s,X=O&&O.overrideNavigation,se=si(U,N,a),ie=(O&&O.flushSync)===!0;if(!se){let tt=Wt(404,{pathname:N.pathname}),{matches:Ut,route:Qe}=Fm(U);qr(),xn(N,{matches:Ut,loaderData:{},errors:{[Qe.id]:tt}},{flushSync:ie});return}if(_.initialized&&!B&&DE(_.location,N)&&!(O&&O.submission&&cn(O.submission.formMethod))){xn(N,{matches:se},{flushSync:ie});return}P=new AbortController;let oe=ss(e.history,N,P.signal,O&&O.submission),Z,ce;if(O&&O.pendingError)ce={[Ps(se).route.id]:O.pendingError};else if(O&&O.submission&&cn(O.submission.formMethod)){let tt=await Dn(oe,N,O.submission,se,{replace:O.replace,flushSync:ie});if(tt.shortCircuited)return;Z=tt.pendingActionData,ce=tt.pendingActionError,X=Fu(N,O.submission),ie=!1,oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:Ye,loaderData:ae,errors:we}=await Ki(oe,N,se,X,O&&O.submission,O&&O.fetcherSubmission,O&&O.replace,O&&O.initialHydration===!0,ie,Z,ce);Ye||(P=null,xn(N,Le({matches:se},Z?{actionData:Z}:{},{loaderData:ae,errors:we})))}async function Dn($,N,O,U,X){X===void 0&&(X={}),W();let se=zE(N,O);Ke({navigation:se},{flushSync:X.flushSync===!0});let ie,oe=sf(U,N);if(!oe.route.action&&!oe.route.lazy)ie={type:De.error,error:Wt(405,{method:$.method,pathname:N.pathname,routeId:oe.route.id})};else if(ie=await is("action",$,oe,U,i,o,a,u.v7_relativeSplatPath),$.signal.aborted)return{shortCircuited:!0};if(gi(ie)){let Z;return X&&X.replace!=null?Z=X.replace:Z=ie.location===_.location.pathname+_.location.search,await Pt(_,ie,{submission:O,replace:Z}),{shortCircuited:!0}}if(Os(ie)){let Z=Ps(U,oe.route.id);return(X&&X.replace)!==!0&&(k=ze.Push),{pendingActionData:{},pendingActionError:{[Z.route.id]:ie.error}}}if(io(ie))throw Wt(400,{type:"defer-action"});return{pendingActionData:{[oe.route.id]:ie.data}}}async function Ki($,N,O,U,X,se,ie,oe,Z,ce,Ye){let ae=U||Fu(N,X),we=X||se||Um(ae),tt=l||s,[Ut,Qe]=Om(e.history,_,O,we,N,u.v7_partialHydration&&oe===!0,B,Y,q,Me,pe,re,tt,a,ce,Ye);if(qr(xe=>!(O&&O.some(ke=>ke.route.id===xe))||Ut&&Ut.some(ke=>ke.route.id===xe)),V=++L,Ut.length===0&&Qe.length===0){let xe=$o();return xn(N,Le({matches:O,loaderData:{},errors:Ye||null},ce?{actionData:ce}:{},xe?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z}),{shortCircuited:!0}}if(!H&&(!u.v7_partialHydration||!oe)){Qe.forEach(ke=>{let wn=_.fetchers.get(ke.key),Oa=as(void 0,wn?wn.data:void 0);_.fetchers.set(ke.key,Oa)});let xe=ce||_.actionData;Ke(Le({navigation:ae},xe?Object.keys(xe).length===0?{actionData:null}:{actionData:xe}:{},Qe.length>0?{fetchers:new Map(_.fetchers)}:{}),{flushSync:Z})}Qe.forEach(xe=>{Q.has(xe.key)&>(xe.key),xe.controller&&Q.set(xe.key,xe.controller)});let Oo=()=>Qe.forEach(xe=>gt(xe.key));P&&P.signal.addEventListener("abort",Oo);let{results:au,loaderResults:Ao,fetcherResults:cr}=await Ta(_.matches,O,Ut,Qe,$);if($.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",Oo),Qe.forEach(xe=>Q.delete(xe.key));let Yr=zm(au);if(Yr){if(Yr.idx>=Ut.length){let xe=Qe[Yr.idx-Ut.length].key;re.add(xe)}return await Pt(_,Yr.result,{replace:ie}),{shortCircuited:!0}}let{loaderData:lu,errors:cu}=Im(_,O,Ut,Ao,Ye,Qe,cr,He);He.forEach((xe,ke)=>{xe.subscribe(wn=>{(wn||xe.done)&&He.delete(ke)})});let uu=$o(),Mo=Ro(V),Pa=uu||Mo||Qe.length>0;return Le({loaderData:lu,errors:cu},Pa?{fetchers:new Map(_.fetchers)}:{})}function qi($,N,O,U){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Q.has($)&>($);let X=(U&&U.unstable_flushSync)===!0,se=l||s,ie=rf(_.location,_.matches,a,u.v7_prependBasename,O,u.v7_relativeSplatPath,N,U==null?void 0:U.relative),oe=si(se,ie,a);if(!oe){$e($,N,Wt(404,{pathname:ie}),{flushSync:X});return}let{path:Z,submission:ce,error:Ye}=Pm(u.v7_normalizeFormMethod,!0,ie,U);if(Ye){$e($,N,Ye,{flushSync:X});return}let ae=sf(oe,Z);if(j=(U&&U.preventScrollReset)===!0,ce&&cn(ce.formMethod)){Yi($,N,Z,ae,oe,X,ce);return}pe.set($,{routeId:N,path:Z}),ko($,N,Z,ae,oe,X,ce)}async function Yi($,N,O,U,X,se,ie){if(W(),pe.delete($),!U.route.action&&!U.route.lazy){let ke=Wt(405,{method:ie.formMethod,pathname:O,routeId:N});$e($,N,ke,{flushSync:se});return}let oe=_.fetchers.get($);te($,BE(ie,oe),{flushSync:se});let Z=new AbortController,ce=ss(e.history,O,Z.signal,ie);Q.set($,Z);let Ye=L,ae=await is("action",ce,U,X,i,o,a,u.v7_relativeSplatPath);if(ce.signal.aborted){Q.get($)===Z&&Q.delete($);return}if(Me.has($)){te($,gr(void 0));return}if(gi(ae))if(Q.delete($),V>Ye){te($,gr(void 0));return}else return re.add($),te($,as(ie)),Pt(_,ae,{fetcherSubmission:ie});if(Os(ae)){$e($,N,ae.error);return}if(io(ae))throw Wt(400,{type:"defer-action"});let we=_.navigation.location||_.location,tt=ss(e.history,we,Z.signal),Ut=l||s,Qe=_.navigation.state!=="idle"?si(Ut,_.navigation.location,a):_.matches;ue(Qe,"Didn't find any matches after fetcher action");let Oo=++L;J.set($,Oo);let au=as(ie,ae.data);_.fetchers.set($,au);let[Ao,cr]=Om(e.history,_,Qe,ie,we,!1,B,Y,q,Me,pe,re,Ut,a,{[U.route.id]:ae.data},void 0);cr.filter(ke=>ke.key!==$).forEach(ke=>{let wn=ke.key,Oa=_.fetchers.get(wn),_b=as(void 0,Oa?Oa.data:void 0);_.fetchers.set(wn,_b),Q.has(wn)&>(wn),ke.controller&&Q.set(wn,ke.controller)}),Ke({fetchers:new Map(_.fetchers)});let Yr=()=>cr.forEach(ke=>gt(ke.key));Z.signal.addEventListener("abort",Yr);let{results:lu,loaderResults:cu,fetcherResults:uu}=await Ta(_.matches,Qe,Ao,cr,tt);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",Yr),J.delete($),Q.delete($),cr.forEach(ke=>Q.delete(ke.key));let Mo=zm(lu);if(Mo){if(Mo.idx>=Ao.length){let ke=cr[Mo.idx-Ao.length].key;re.add(ke)}return Pt(_,Mo.result)}let{loaderData:Pa,errors:xe}=Im(_,_.matches,Ao,cu,void 0,cr,uu,He);if(_.fetchers.has($)){let ke=gr(ae.data);_.fetchers.set($,ke)}Ro(Oo),_.navigation.state==="loading"&&Oo>V?(ue(k,"Expected pending action"),P&&P.abort(),xn(_.navigation.location,{matches:Qe,loaderData:Pa,errors:xe,fetchers:new Map(_.fetchers)})):(Ke({errors:xe,loaderData:Lm(_.loaderData,Pa,Qe,xe),fetchers:new Map(_.fetchers)}),B=!1)}async function ko($,N,O,U,X,se,ie){let oe=_.fetchers.get($);te($,as(ie,oe?oe.data:void 0),{flushSync:se});let Z=new AbortController,ce=ss(e.history,O,Z.signal);Q.set($,Z);let Ye=L,ae=await is("loader",ce,U,X,i,o,a,u.v7_relativeSplatPath);if(io(ae)&&(ae=await S1(ae,ce.signal,!0)||ae),Q.get($)===Z&&Q.delete($),!ce.signal.aborted){if(Me.has($)){te($,gr(void 0));return}if(gi(ae))if(V>Ye){te($,gr(void 0));return}else{re.add($),await Pt(_,ae);return}if(Os(ae)){$e($,N,ae.error);return}ue(!io(ae),"Unhandled fetcher deferred data"),te($,gr(ae.data))}}async function Pt($,N,O){let{submission:U,fetcherSubmission:X,replace:se}=O===void 0?{}:O;N.revalidate&&(B=!0);let ie=na($.location,N.location,{_isRedirect:!0});if(ue(ie,"Expected a location on the redirect navigation"),n){let we=!1;if(N.reloadDocument)we=!0;else if(x1.test(N.location)){const tt=e.history.createURL(N.location);we=tt.origin!==t.location.origin||ya(tt.pathname,a)==null}if(we){se?t.location.replace(N.location):t.location.assign(N.location);return}}P=null;let oe=se===!0?ze.Replace:ze.Push,{formMethod:Z,formAction:ce,formEncType:Ye}=$.navigation;!U&&!X&&Z&&ce&&Ye&&(U=Um($.navigation));let ae=U||X;if(jE.has(N.status)&&ae&&cn(ae.formMethod))await qe(oe,ie,{submission:Le({},ae,{formAction:N.location}),preventScrollReset:j});else{let we=Fu(ie,U);await qe(oe,ie,{overrideNavigation:we,fetcherSubmission:X,preventScrollReset:j})}}async function Ta($,N,O,U,X){let se=await Promise.all([...O.map(Z=>is("loader",X,Z,N,i,o,a,u.v7_relativeSplatPath)),...U.map(Z=>Z.matches&&Z.match&&Z.controller?is("loader",ss(e.history,Z.path,Z.controller.signal),Z.match,Z.matches,i,o,a,u.v7_relativeSplatPath):{type:De.error,error:Wt(404,{pathname:Z.path})})]),ie=se.slice(0,O.length),oe=se.slice(O.length);return await Promise.all([Bm($,O,ie,ie.map(()=>X.signal),!1,_.loaderData),Bm($,U.map(Z=>Z.match),oe,U.map(Z=>Z.controller?Z.controller.signal:null),!0)]),{results:se,loaderResults:ie,fetcherResults:oe}}function W(){B=!0,Y.push(...qr()),pe.forEach(($,N)=>{Q.has(N)&&(q.push(N),gt(N))})}function te($,N,O){O===void 0&&(O={}),_.fetchers.set($,N),Ke({fetchers:new Map(_.fetchers)},{flushSync:(O&&O.flushSync)===!0})}function $e($,N,O,U){U===void 0&&(U={});let X=Ps(_.matches,N);lt($),Ke({errors:{[X.route.id]:O},fetchers:new Map(_.fetchers)},{flushSync:(U&&U.flushSync)===!0})}function et($){return u.v7_fetcherPersist&&(st.set($,(st.get($)||0)+1),Me.has($)&&Me.delete($)),_.fetchers.get($)||$E}function lt($){let N=_.fetchers.get($);Q.has($)&&!(N&&N.state==="loading"&&J.has($))&>($),pe.delete($),J.delete($),re.delete($),Me.delete($),_.fetchers.delete($)}function Kr($){if(u.v7_fetcherPersist){let N=(st.get($)||0)-1;N<=0?(st.delete($),Me.add($)):st.set($,N)}else lt($);Ke({fetchers:new Map(_.fetchers)})}function gt($){let N=Q.get($);ue(N,"Expected fetch controller: "+$),N.abort(),Q.delete($)}function jo($){for(let N of $){let O=et(N),U=gr(O.data);_.fetchers.set(N,U)}}function $o(){let $=[],N=!1;for(let O of re){let U=_.fetchers.get(O);ue(U,"Expected fetcher: "+O),U.state==="loading"&&(re.delete(O),$.push(O),N=!0)}return jo($),N}function Ro($){let N=[];for(let[O,U]of J)if(U<$){let X=_.fetchers.get(O);ue(X,"Expected fetcher: "+O),X.state==="loading"&&(gt(O),J.delete(O),N.push(O))}return jo(N),N.length>0}function No($,N){let O=_.blockers.get($)||os;return ye.get($)!==N&&ye.set($,N),O}function To($){_.blockers.delete($),ye.delete($)}function lr($,N){let O=_.blockers.get($)||os;ue(O.state==="unblocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="blocked"||O.state==="blocked"&&N.state==="proceeding"||O.state==="blocked"&&N.state==="unblocked"||O.state==="proceeding"&&N.state==="unblocked","Invalid blocker state transition: "+O.state+" -> "+N.state);let U=new Map(_.blockers);U.set($,N),Ke({blockers:U})}function Po($){let{currentLocation:N,nextLocation:O,historyAction:U}=$;if(ye.size===0)return;ye.size>1&&Lr(!1,"A router only supports one blocker at a time");let X=Array.from(ye.entries()),[se,ie]=X[X.length-1],oe=_.blockers.get(se);if(!(oe&&oe.state==="proceeding")&&ie({currentLocation:N,nextLocation:O,historyAction:U}))return se}function qr($){let N=[];return He.forEach((O,U)=>{(!$||$(U))&&(O.cancel(),N.push(U),He.delete(U))}),N}function su($,N,O){if(p=$,m=N,g=O||null,!y&&_.navigation===Lu){y=!0;let U=yh(_.location,_.matches);U!=null&&Ke({restoreScrollPosition:U})}return()=>{p=null,m=null,g=null}}function vh($,N){return g&&g($,N.map(U=>tE(U,_.loaderData)))||$.key}function wb($,N){if(p&&m){let O=vh($,N);p[O]=m()}}function yh($,N){if(p){let O=vh($,N),U=p[O];if(typeof U=="number")return U}return null}function bb($){i={},l=nf($,o,void 0,i)}return E={get basename(){return a},get future(){return u},get state(){return _},get routes(){return s},get window(){return t},initialize:yn,subscribe:Co,enableScrollRestoration:su,navigate:rn,fetch:qi,revalidate:Gr,createHref:$=>e.history.createHref($),encodeLocation:$=>e.history.encodeLocation($),getFetcher:et,deleteFetcher:Kr,dispose:Mn,getBlocker:No,deleteBlocker:To,_internalFetchControllers:Q,_internalActiveDeferreds:He,_internalSetRoutes:bb},E}function TE(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function rf(e,t,n,r,o,i,s,l){let a,u;if(s){a=[];for(let f of t)if(a.push(f),f.route.id===s){u=f;break}}else a=t,u=t[t.length-1];let d=xE(o||".",yE(a,i),ya(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&u&&u.route.index&&!Mp(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:co([n,d.pathname])),va(d)}function Pm(e,t,n,r){if(!r||!TE(r))return{path:n};if(r.formMethod&&!FE(r.formMethod))return{path:n,error:Wt(405,{method:r.formMethod})};let o=()=>({path:n,error:Wt(400,{type:"invalid-body"})}),i=r.formMethod||"get",s=e?i.toUpperCase():i.toLowerCase(),l=_1(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!cn(s))return o();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,m)=>{let[y,w]=m;return""+g+y+"="+w+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!cn(s))return o();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:l,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return o()}}}ue(typeof FormData=="function","FormData is not available in this environment");let a,u;if(r.formData)a=of(r.formData),u=r.formData;else if(r.body instanceof FormData)a=of(r.body),u=r.body;else if(r.body instanceof URLSearchParams)a=r.body,u=Dm(a);else if(r.body==null)a=new URLSearchParams,u=new FormData;else try{a=new URLSearchParams(r.body),u=Dm(a)}catch{return o()}let d={formMethod:s,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(cn(d.formMethod))return{path:n,submission:d};let f=On(n);return t&&f.search&&Mp(f.search)&&a.append("index",""),f.search="?"+a,{path:va(f),submission:d}}function PE(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Om(e,t,n,r,o,i,s,l,a,u,d,f,p,g,m,y){let w=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,v=e.createURL(t.location),x=e.createURL(o),b=y?Object.keys(y)[0]:void 0,E=PE(n,b).filter((k,j)=>{if(i)return OE(t,k.route);if(k.route.lazy)return!0;if(k.route.loader==null)return!1;if(AE(t.loaderData,t.matches[j],k)||l.some(M=>M===k.route.id))return!0;let P=t.matches[j],T=k;return Am(k,Le({currentUrl:v,currentParams:P.params,nextUrl:x,nextParams:T.params},r,{actionResult:w,defaultShouldRevalidate:s||v.pathname+v.search===x.pathname+x.search||v.search!==x.search||b1(P,T)}))}),_=[];return d.forEach((k,j)=>{if(i||!n.some(H=>H.route.id===k.routeId)||u.has(j))return;let P=si(p,k.path,g);if(!P){_.push({key:j,routeId:k.routeId,path:k.path,matches:null,match:null,controller:null});return}let T=t.fetchers.get(j),M=sf(P,k.path),I=!1;f.has(j)?I=!1:a.includes(j)?I=!0:T&&T.state!=="idle"&&T.data===void 0?I=s:I=Am(M,Le({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),I&&_.push({key:j,routeId:k.routeId,path:k.path,matches:P,match:M,controller:new AbortController})}),[E,_]}function OE(e,t){return t.loader?t.loader.hydrate?!0:e.loaderData[t.id]===void 0&&(!e.errors||e.errors[t.id]===void 0):!1}function AE(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function b1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Am(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Mm(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];ue(o,"No route found in manifest");let i={};for(let s in r){let a=o[s]!==void 0&&s!=="hasErrorBoundary";Lr(!a,'Route "'+o.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!a&&!ZS.has(s)&&(i[s]=r[s])}Object.assign(o,i),Object.assign(o,Le({},t(o),{lazy:void 0}))}async function is(e,t,n,r,o,i,s,l,a){a===void 0&&(a={});let u,d,f,p=y=>{let w,v=new Promise((x,b)=>w=b);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([y({request:t,params:n.params,context:a.requestContext}),v])};try{let y=n.route[e];if(n.route.lazy)if(y){let w,v=await Promise.all([p(y).catch(x=>{w=x}),Mm(n.route,i,o)]);if(w)throw w;d=v[0]}else if(await Mm(n.route,i,o),y=n.route[e],y)d=await p(y);else if(e==="action"){let w=new URL(t.url),v=w.pathname+w.search;throw Wt(405,{method:t.method,pathname:v,routeId:n.route.id})}else return{type:De.data,data:void 0};else if(y)d=await p(y);else{let w=new URL(t.url),v=w.pathname+w.search;throw Wt(404,{pathname:v})}ue(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){u=De.error,d=y}finally{f&&t.signal.removeEventListener("abort",f)}if(LE(d)){let y=d.status;if(kE.has(y)){let v=d.headers.get("Location");if(ue(v,"Redirects returned/thrown from loaders/actions must have a Location header"),!x1.test(v))v=rf(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,v,l);else if(!a.isStaticRequest){let x=new URL(t.url),b=v.startsWith("//")?new URL(x.protocol+v):new URL(v),C=ya(b.pathname,s)!=null;b.origin===x.origin&&C&&(v=b.pathname+b.search+b.hash)}if(a.isStaticRequest)throw d.headers.set("Location",v),d;return{type:De.redirect,status:y,location:v,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(a.isRouteRequest)throw{type:u===De.error?De.error:De.data,response:d};let w;try{let v=d.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?w=await d.json():w=await d.text()}catch(v){return{type:De.error,error:v}}return u===De.error?{type:u,error:new Ap(y,d.statusText,w),headers:d.headers}:{type:De.data,data:w,statusCode:d.status,headers:d.headers}}if(u===De.error)return{type:u,error:d};if(IE(d)){var g,m;return{type:De.deferred,deferredData:d,statusCode:(g=d.init)==null?void 0:g.status,headers:((m=d.init)==null?void 0:m.headers)&&new Headers(d.init.headers)}}return{type:De.data,data:d}}function ss(e,t,n,r){let o=e.createURL(_1(t)).toString(),i={signal:n};if(r&&cn(r.formMethod)){let{formMethod:s,formEncType:l}=r;i.method=s.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=of(r.formData):i.body=r.formData}return new Request(o,i)}function of(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function Dm(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ME(e,t,n,r,o){let i={},s=null,l,a=!1,u={};return n.forEach((d,f)=>{let p=t[f].route.id;if(ue(!gi(d),"Cannot handle redirect results in processLoaderData"),Os(d)){let g=Ps(e,p),m=d.error;r&&(m=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=m),i[p]=void 0,a||(a=!0,l=v1(d.error)?d.error.status:500),d.headers&&(u[p]=d.headers)}else io(d)?(o.set(p,d.deferredData),i[p]=d.deferredData.data):i[p]=d.data,d.statusCode!=null&&d.statusCode!==200&&!a&&(l=d.statusCode),d.headers&&(u[p]=d.headers)}),r&&(s=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:s,statusCode:l||200,loaderHeaders:u}}function Im(e,t,n,r,o,i,s,l){let{loaderData:a,errors:u}=ME(t,n,r,o,l);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Fm(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Wt(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new Ap(e||500,s,new Error(l),!0)}function zm(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(gi(n))return{result:n,idx:t}}}function _1(e){let t=typeof e=="string"?On(e):e;return va(Le({},t,{hash:""}))}function DE(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function io(e){return e.type===De.deferred}function Os(e){return e.type===De.error}function gi(e){return(e&&e.type)===De.redirect}function IE(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function LE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function FE(e){return CE.has(e.toLowerCase())}function cn(e){return SE.has(e.toLowerCase())}async function Bm(e,t,n,r,o,i){for(let s=0;sf.route.id===a.route.id),d=u!=null&&!b1(u,a)&&(i&&i[a.route.id])!==void 0;if(io(l)&&(o||d)){let f=r[s];ue(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await S1(l,f,o).then(p=>{p&&(n[s]=p||n[s])})}}}async function S1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:De.data,data:e.deferredData.unwrappedData}}catch(o){return{type:De.error,error:o}}return{type:De.data,data:e.deferredData.data}}}function Mp(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function sf(e,t){let n=typeof t=="string"?On(t).search:t.search;if(e[e.length-1].route.index&&Mp(n||""))return e[e.length-1];let r=g1(e);return r[r.length-1]}function Um(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:s}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function Fu(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zE(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function as(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function BE(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function gr(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function UE(e,t){try{let n=e.sessionStorage.getItem(w1);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function HE(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(w1,JSON.stringify(n))}catch(r){Lr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.21.0 * * Copyright (c) Remix Software Inc. @@ -56,7 +56,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:co([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:co([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?h.createElement(Gc.Provider,{value:{location:ic({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ze.Pop}},y):y}function FE(){let e=KE(),t=d1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,i)}const zE=h.createElement(FE,null);class BE extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(ya.Provider,{value:this.props.routeContext},h.createElement(b1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function UE(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(y1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(ya.Provider,{value:t},r)}function HE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));d>=0||ue(!1),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}return s.reduceRight((d,f,p)=>{let g,m=!1,y=null,w=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||zE,a&&(u<0&&p===0?(qE("route-fallback",!1),m=!0,w=null):u===p&&(m=!0,w=f.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,p+1)),x=()=>{let b;return g?b=y:m?b=w:f.route.Component?b=h.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,h.createElement(UE,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?h.createElement(BE,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var sf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sf||{});function WE(e){let t=h.useContext(x1);return t||ue(!1),t}function VE(e){let t=h.useContext(ya);return t||ue(!1),t}function GE(e){let t=VE(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function KE(){var e;let t=h.useContext(b1),n=WE(sf.UseRouteError),r=GE(sf.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Bm={};function qE(e,t,n){!t&&!Bm[e]&&(Bm[e]=!0)}function YE(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ze.Pop,navigator:i,static:s=!1,future:l}=e;Mp()&&ue(!1);let a=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:a,navigator:i,static:s,future:ic({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=On(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:m="default"}=r,y=h.useMemo(()=>{let w=va(d,a);return w==null?null:{location:{pathname:w,search:f,hash:p,state:g,key:m},navigationType:o}},[a,d,f,p,g,m,o]);return y==null?null:h.createElement(w1.Provider,{value:u},h.createElement(Gc.Provider,{children:n,value:y}))}new Promise(()=>{});function QE(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + */function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.assign({},w,{params:Object.assign({},l,w.params),pathname:co([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:co([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?h.createElement(Kc.Provider,{value:{location:sc({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:ze.Pop}},y):y}function KE(){let e=tC(),t=v1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:o},n):null,i)}const qE=h.createElement(KE,null);class YE extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(xa.Provider,{value:this.props.routeContext},h.createElement(j1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function QE(e){let{routeContext:t,match:n,children:r}=e,o=h.useContext(E1);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(xa.Provider,{value:t},r)}function XE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id]));d>=0||ue(!1),s=s.slice(0,Math.min(s.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}return s.reduceRight((d,f,p)=>{let g,m=!1,y=null,w=null;n&&(g=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||qE,a&&(u<0&&p===0?(nC("route-fallback",!1),m=!0,w=null):u===p&&(m=!0,w=f.route.hydrateFallbackElement||null)));let v=t.concat(s.slice(0,p+1)),x=()=>{let b;return g?b=y:m?b=w:f.route.Component?b=h.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=d,h.createElement(QE,{match:f,routeContext:{outlet:d,matches:v,isDataRoute:n!=null},children:b})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?h.createElement(YE,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:x(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):x()},null)}var af=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(af||{});function JE(e){let t=h.useContext(C1);return t||ue(!1),t}function ZE(e){let t=h.useContext(xa);return t||ue(!1),t}function eC(e){let t=ZE(),n=t.matches[t.matches.length-1];return n.route.id||ue(!1),n.route.id}function tC(){var e;let t=h.useContext(j1),n=JE(af.UseRouteError),r=eC(af.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const Hm={};function nC(e,t,n){!t&&!Hm[e]&&(Hm[e]=!0)}function rC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ze.Pop,navigator:i,static:s=!1,future:l}=e;Dp()&&ue(!1);let a=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:a,navigator:i,static:s,future:sc({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=On(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:m="default"}=r,y=h.useMemo(()=>{let w=ya(d,a);return w==null?null:{location:{pathname:w,search:f,hash:p,state:g,key:m},navigationType:o}},[a,d,f,p,g,m,o]);return y==null?null:h.createElement(k1.Provider,{value:u},h.createElement(Kc.Provider,{children:n,value:y}))}new Promise(()=>{});function oC(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:h.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:h.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:h.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.21.0 * * Copyright (c) Remix Software Inc. @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function sC(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=h.useState(n.state),[s,l]=h.useState(),[a,u]=h.useState({isTransitioning:!1}),[d,f]=h.useState(),[p,g]=h.useState(),[m,y]=h.useState(),w=h.useRef(new Map),{v7_startTransition:v}=r||{},x=h.useCallback(k=>{v?oC(k):k()},[v]),b=h.useCallback((k,j)=>{let{deletedFetchers:P,unstable_flushSync:N,unstable_viewTransitionOpts:M}=j;P.forEach(H=>w.current.delete(H)),k.fetchers.forEach((H,z)=>{H.data!==void 0&&w.current.set(z,H.data)});let I=n.window==null||typeof n.window.document.startViewTransition!="function";if(!M||I){N?as(()=>i(k)):x(()=>i(k));return}if(N){as(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let H=n.window.document.startViewTransition(()=>{as(()=>i(k))});H.finished.finally(()=>{as(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})})}),as(()=>g(H));return}p?(d&&d.resolve(),p.skipTransition(),y({state:k,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(l(k),u({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,p,d,w,x]);h.useLayoutEffect(()=>n.subscribe(b),[n,b]),h.useEffect(()=>{a.isTransitioning&&!a.flushSync&&f(new iC)},[a]),h.useEffect(()=>{if(d&&s&&n.window){let k=s,j=d.promise,P=n.window.document.startViewTransition(async()=>{x(()=>i(k)),await j});P.finished.finally(()=>{f(void 0),g(void 0),l(void 0),u({isTransitioning:!1})}),g(P)}},[x,s,d,n.window]),h.useEffect(()=>{d&&s&&o.location.key===s.location.key&&d.resolve()},[d,p,o.location,s]),h.useEffect(()=>{!a.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[a.isTransitioning,m]),h.useEffect(()=>{},[]);let C=h.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:k=>n.navigate(k),push:(k,j,P)=>n.navigate(k,{state:j,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,j,P)=>n.navigate(k,{replace:!0,state:j,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[n]),E=n.basename||"/",_=h.useMemo(()=>({router:n,navigator:C,static:!1,basename:E}),[n,C,E]);return h.createElement(h.Fragment,null,h.createElement(y1.Provider,{value:_},h.createElement(x1.Provider,{value:o},h.createElement(tC.Provider,{value:w.current},h.createElement(eC.Provider,{value:a},h.createElement(YE,{basename:E,location:o.location,navigationType:o.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},o.initialized||n.future.v7_partialHydration?h.createElement(aC,{routes:n.routes,future:n.future,state:o}):t))))),null)}function aC(e){let{routes:t,future:n,state:r}=e;return LE(t,void 0,r,n)}var Wm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wm||(Wm={}));var Vm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vm||(Vm={}));var R=(e=>(e.Easy="Easy",e.Medium="Medium",e.Hard="Hard",e))(R||{}),U=(e=>(e.interview="interview",e.all="all",e))(U||{});const Gm=[R.Easy,R.Medium,R.Hard];function xa(e){return new Map([...e.entries()].sort((t,n)=>{const r=Gm.indexOf(t[1].difficulty),o=Gm.indexOf(n[1].difficulty);return r-o}))}const lC=new Map([["shapes",{title:"Shapes",link:"shapes/",difficulty:R.Easy,developer:"sadanandpai",tags:[]}],["loaders",{title:"Loaders",link:"loaders/",difficulty:R.Easy,developer:"sadanandpai",tags:[],isNew:!0}],["dialog",{title:"Dialog",link:"dialog/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/aIzyEDi6zgU",tags:[U.interview],isNew:!0}],["dynamic-tooltip",{title:"Dynamic Tooltip",link:"dynamic-tooltip/",difficulty:R.Easy,developer:"officialbidisha",tags:[U.interview],isNew:!0}],["light-dark-mode",{title:"Light & Dark mode",link:"light-dark-mode/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/hxcGGhjYNFE",tags:[]}],["skeleton-loader",{title:"Skeleton Loader",link:"skeleton-loader/",difficulty:R.Easy,developer:"sahankatta",youtube:"https://youtu.be/FEtTRjq1P6I",tags:[]}],["accordion",{title:"Accordion",link:"accordion/",difficulty:R.Easy,developer:"rashidtvmr",youtube:"https://youtu.be/03KFXudVaoo",tags:[U.interview]}],["navigation-bar",{title:"Navigation Bar",link:"navigation-bar/",difficulty:R.Easy,developer:"christian-lee1398",youtube:"https://youtu.be/urA5ogzG0L0",tags:[]}],["footer",{title:"Footer",link:"footer/",difficulty:R.Easy,developer:"AbhineshJha",youtube:"https://youtu.be/FRRlFLfdvBE?si=HWn88BwJGTJvEBUD",tags:[]}],["stagger-animation",{title:"Stagger Animation",link:"stagger-animation/",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["blobmaker",{title:"Blob Maker",link:"blobmaker/",difficulty:R.Easy,developer:"AbhineshJha",tags:[]}],["star-rating-display",{title:"Star Rating Display",link:"star-rating-display/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["gradient-generator",{title:"Gradient Generator",link:"gradient-generator/",difficulty:R.Medium,developer:"Sukomal07",tags:[],isNew:!0}]]);xa(lC);const cC=new Map([["counter",{title:"Counter",link:"counter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/9OIeUtXX3SA",tags:[U.interview]}],["color-me",{title:"Color Me",link:"color-me/",difficulty:R.Easy,developer:"X0rD3v1L",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator/",difficulty:R.Easy,developer:"itsayopapi",tags:[]}],["dice-game",{title:"Dice Game",link:"dice-game/",difficulty:R.Easy,developer:"shivam200446",tags:[],isNew:!0}],["roll-dice",{title:"Roll dice",link:"roll-dice/",difficulty:R.Easy,developer:"babandakale",tags:[]}],["guess-the-number",{title:"Guess the number",link:"guess-the-number/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/L1Da3GWEGpY",tags:[U.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/crCZEJ6Lmgc",tags:[U.interview]}],["file-uploader",{title:"File Uploader",link:"file-uploader/",difficulty:R.Easy,developer:"avtech",tags:[],isNew:!0}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter/",difficulty:R.Easy,developer:"sadanandpai",youtube:"https://youtu.be/E85ldVqAGjw",tags:[U.interview]}],["music-kit",{title:"Music Kit",link:"music-kit/",difficulty:R.Easy,developer:"shivam200446",tags:[]}],["currency-converter",{title:"Currency Converter",link:"currency-converter/",difficulty:R.Easy,developer:"pranav514",tags:[],isNew:!0}],["rock-paper-scissor",{title:"Rock Paper Scissor",link:"rock-paper-scissor/",difficulty:R.Easy,developer:"AckermanLevi1",tags:[],isNew:!0}],["story-generator",{title:"Story Generator",link:"story-generator/",difficulty:R.Easy,developer:"hritik",tags:[]}],["multi-typing",{title:"Multi Typing",link:"multi-typing/",difficulty:R.Easy,developer:"noorulaink00",youtube:"https://youtu.be/YCDeOT7DRnI",tags:[]}],["bill-spilt",{title:"Bill Split",link:"bill-spilt/",difficulty:R.Easy,developer:"Sukomal07",youtube:"https://youtu.be/4H2DyrSJeYc",tags:[]}],["simon-game",{title:"Simon game",link:"simon-game/",difficulty:R.Easy,developer:"VishakhaSainani",tags:[],isNew:!0}],["fitness-tracker",{title:"Fitness Tracker",link:"fitness-tracker/",difficulty:R.Easy,developer:"CrypticRevenger",tags:[]}],["atm-simulator",{title:"ATM Simulator",link:"atm-simulator/",difficulty:R.Easy,developer:"Bratajit-03",tags:[],isNew:!0}],["mouse-follower",{title:"Mouse Follower",link:"mouse-follower/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["finance-tracker",{title:"Finance Tracker",link:"finance-tracker/",difficulty:R.Medium,developer:"sujitmahapatra",tags:[]}],["meme-generator",{title:"Meme Generator",link:"meme-generator/",difficulty:R.Medium,developer:"noorulaink00",youtube:"https://youtu.be/LHo9Hi47MTo",tags:[]}],["weather-app",{title:"Weather App",link:"weather-app/",difficulty:R.Medium,developer:"shruti-sen2004",tags:[U.interview],isNew:!0}],["toast-snackbar",{title:"Toast/Snackbar",link:"toast-snackbar/",difficulty:R.Medium,developer:"sadanandpai",youtube:"https://youtu.be/-p3N5bJXEK8",tags:[U.interview]}],["column-table",{title:"Column Table",link:"column-table/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["password-strength",{title:"Password Strength",link:"password-strength/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["star-rating",{title:"Star Rating",link:"star-rating/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["pixel-art",{title:"Pixel Art",link:"pixel-art/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["word-counter",{title:"Word Counter (online)",link:"word-counter/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["color-spotter",{title:"Color Spotter",link:"color-spotter/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["todo-list",{title:"Todo List",link:"todo-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["transfer-list",{title:"Transfer List",link:"transfer-list/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["lift-simulation",{title:"Lift Simulation",link:"lift-simulation/",difficulty:R.Medium,developer:"gauravsinhaweb",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic-Tac-Toe",link:"tic-tac-toe/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["chess-board",{title:"Chess board",link:"chess-board/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["chips-input",{title:"Chips Input",link:"chips-input/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["infinite-scroll",{title:"Infinite Scroll",link:"infinite-scroll/",difficulty:R.Medium,developer:"srijanB7",tags:[U.interview]}],["password-generator",{title:"Password Generator",link:"password-generator/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["analog-clock",{title:"Analog Clock",link:"analog-clock/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["drag-and-drop-puzzle",{title:"Drag and Drop Puzzle",link:"drag-and-drop-puzzle/",difficulty:R.Medium,developer:"noorulaink00",tags:[],isNew:!0}],["basic-calculator",{title:"Basic calculator",link:"basic-calculator/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["match-pair",{title:"Match Pair",link:"match-pair/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["typing-speed-test",{title:"Typing Speed Test",link:"typing-speed-test/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["count-down-timer",{title:"Countdown Timer",link:"count-down-timer/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["quiz-app",{title:"Quiz App",link:"quiz-app/",difficulty:R.Medium,developer:"Kei-K23",tags:[U.interview],isNew:!0}],["sorting-visualizer",{title:"Sorting Visualizer",link:"sorting-visualizer/",difficulty:R.Medium,developer:"viditagrawal56",tags:[],isNew:!0}],["snake-game",{title:"Snake Game",link:"snake-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["hangman-game",{title:"Hangman Game",link:"hangman-game/",difficulty:R.Medium,developer:"Kei-K23",tags:[],isNew:!0}],["area-selector",{title:"Area Selector",link:"area-selector/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock/",difficulty:R.Medium,developer:"caesar003",tags:[]}],["carousel",{title:"Carousel",link:"carousel/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["calendar",{title:"Calendar",link:"calendar/",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["progress-bar",{title:"Progress Bar",link:"progress-bar/",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["movie-info",{title:"Movie Info",link:"movie-info/",difficulty:R.Medium,developer:"AckermanLevi1",tags:[]}],["timer-quiz",{title:"Timer Quiz",link:"timer-quiz/",difficulty:R.Medium,developer:"Vivek-GuptaXCode",tags:[]}],["otp-input",{title:"OTP Input",link:"otp-input/",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}],["paginator",{title:"Paginator",link:"paginator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["connect-four",{title:"Connect Four",link:"connect-four/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments/",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview],isNew:!0}],["json-creator",{title:"JSON Creator",link:"json-creator/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["array-methods",{title:"Array methods",link:"array-methods/",difficulty:R.Hard,developer:"sadanandpai",tags:[]}],["type-ahead",{title:"Typeahead (offline)",link:"type-ahead/",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}],["type-ahead-online",{title:"Typeahead (online)",link:"type-ahead-online/",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}]]);xa(cC);const uC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[U.interview]}],["programming-languages-multiverse",{title:"Programming Multiverse",link:"programming-languages-multiverse",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["anagram-checker",{title:"Anagram Checker",link:"anagram-checker",difficulty:R.Easy,developer:"Manmit Tiwade",tags:[]}],["image-gallery",{title:"Image Gallery",link:"image-gallery",difficulty:R.Easy,developer:"Bhushan1019",tags:[U.interview]}],["accordion",{title:"Accordion",link:"accordion",developer:"NikhilJHA01",difficulty:R.Easy,tags:[U.interview]}],["background-changer",{title:"Background Changer",link:"background-changer",developer:"AdityaSuryawanshi",difficulty:R.Easy,tags:[]}],["light-dark-mode",{title:"Light Dark Mode",link:"light-dark-mode",difficulty:R.Easy,developer:"NikhilJHA01",tags:[]}],["qr-code-generator",{title:"QR generator",link:"qr-code-generator",difficulty:R.Easy,developer:"Krishnakalani111",tags:[]}],["your-sport",{title:"Your Sport",link:"your-sport",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"table-colorizer",difficulty:R.Easy,developer:"ravi02205",tags:[]}],["Guess-the-number",{title:"Guess the number",link:"Guess-the-number",difficulty:R.Easy,developer:"deepakrajkranti",tags:[U.interview]}],["pagination",{title:"Pagination",link:"pagination",difficulty:R.Easy,developer:"Pancratzia",tags:[]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"kumaratul60",tags:[]}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["temperature-converter",{title:"Temperature Converter",link:"temperature-converter",difficulty:R.Easy,developer:"Sumitwarrior7",tags:[]}],["star-Rating",{title:"Star Rating",link:"star-Rating",difficulty:R.Easy,developer:"NikhilJHA01",tags:[U.interview]}],["telephone-formatter",{title:"Telephone formatter",link:"telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["string-transformers",{title:"String transformers",link:"string-transformers",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"rashidtvmr",tags:[U.interview]}],["expense-tracker",{title:"Expense Tracker",link:"expense-tracker",difficulty:R.Easy,developer:"harsh472000",tags:[]}],["25-5-clock",{title:"25-5 Clock",link:"25-5-clock",difficulty:R.Easy,developer:"caesar003",tags:[]}],["bmi-calculator",{title:"BMI Calculator",link:"bmi-calculator",difficulty:R.Easy,developer:"ashikjhonson",tags:[]}],["stepper",{title:"Stepper",link:"stepper",difficulty:R.Easy,developer:"codechitra",tags:[U.interview],isNew:!0}],["calculator",{title:"Calculator",link:"calculator",difficulty:R.Medium,developer:"liza",tags:[U.interview]}],["color-mixer",{title:"Color Mixer",link:"color-mixer",difficulty:R.Medium,developer:"Sumitwarrior7",tags:[]}],["traffic-lights",{title:"Traffic Lights",link:"traffic-lights",difficulty:R.Medium,developer:"rishabhm05",tags:[U.interview]}],["email-templates",{title:"Email Templates",link:"email-templates",difficulty:R.Medium,developer:"sadanandpai",tags:[]}],["toast-popup",{title:"Toast Popup",link:"toast-popup",difficulty:R.Medium,developer:"deepu0",tags:[U.interview]}],["modal-popup",{title:"Modal Popup",link:"modal-popup",difficulty:R.Medium,developer:"rishabhm05",tags:[U.interview]}],["password-strength",{title:"Password Strength",link:"password-strength",difficulty:R.Medium,developer:"deepu0",tags:[U.interview]}],["timeline",{title:"Timeline",link:"timeline",difficulty:R.Medium,developer:"Vivek7038",tags:[],isNew:!0}],["column-table",{title:"Column Table",link:"column-table",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["todo-list",{title:"Todo List",link:"todo-list",difficulty:R.Medium,developer:"deepakrajkranti",tags:[U.interview]}],["emoji-picker",{title:"Emoji Picker",link:"emoji-picker",difficulty:R.Medium,developer:"jeevaramanathan",tags:[]}],["investment-calculator",{title:"Investment Calculator",link:"investment-calculator",difficulty:R.Medium,developer:"insharahAyyubi",tags:[]}],["stopwatch",{title:"Stopwatch",link:"stopwatch",difficulty:R.Medium,developer:"rashidtvmr",tags:[U.interview]}],["progressbar",{title:"Progressbar",link:"progressbar",difficulty:R.Medium,developer:"dhanu084",tags:[]}],["quiz-app",{title:"Quiz App",link:"quiz-app",difficulty:R.Medium,developer:"AbhilashMadi",tags:[U.interview]}],["chess-board",{title:"Chess Board",link:"chess-board",difficulty:R.Medium,developer:"AbhilashMadi",tags:[]}],["nested-dropdown",{title:"Nested Dropdown",link:"nested-dropdown",difficulty:R.Medium,developer:"AnkitKTrivedi",tags:[]}],["food-recipe",{title:"Food Recipe",link:"food-recipe",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["nested-comments",{title:"Nested Comments",link:"nested-comments",difficulty:R.Hard,developer:"Akshay-Omkar",tags:[U.interview],isNew:!0}],["password-generator",{title:"Password Generator",link:"password-generator",difficulty:R.Medium,developer:"Kei-K23",tags:[]}],["transfer-list",{title:"Transfer List",link:"transfer-list",difficulty:R.Medium,developer:"DeePaK-HeeRaKaRi",tags:[U.interview]}],["infinite-scroll",{title:"Infinite Scroll (online)",link:"infinite-scrolling",difficulty:R.Medium,developer:"ayush-dutt-sharma",tags:[U.interview]}],["match-pair",{title:"Match Pair",link:"match-pair",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["word-connect",{title:"Word Connect",link:"word-connect",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview],isNew:!0}],["otp",{title:"OTP",link:"otp",difficulty:R.Hard,developer:"rishabhm05",tags:[U.interview]}],["file-explorer",{title:"File Explorer",link:"file-explorer",difficulty:R.Hard,developer:"sadanandpai",tags:[U.interview]}],["autocomplete-offline",{title:"Typeahead (offline)",link:"autocomplete-offline",difficulty:R.Hard,developer:"deepu0",tags:[U.interview]}],["autocomplete-online",{title:"Typeahead (online)",link:"autocomplete-online",difficulty:R.Hard,developer:"deepu0",tags:[U.interview]}],["water-balancer",{title:"Water Balancer",link:"water-balancer",difficulty:R.Hard,developer:"sadanandpai",tags:[],isNew:!0}],["inline-options",{title:"Inline Options",link:"inline-options",difficulty:R.Easy,developer:"takshch",tags:[]}],["digital-clock",{title:"Digital Clock",link:"digital-clock",difficulty:R.Medium,developer:"Syamsai-Polavarapu",tags:[],isNew:!0}],["15puzzle",{title:"15 Puzzle",link:"15puzzle",difficulty:R.Medium,developer:"Bateusz",tags:[],isNew:!0}],["feedback-modal",{title:"Feedback Modal",link:"feedback-modal",difficulty:R.Medium,developer:"ssudipta",tags:[]}],["memory-game",{title:"Memory Game",link:"memory-game",difficulty:R.Medium,developer:"Akshat-Gupta",tags:[],isNew:!0}],["chip-input",{title:"Chips Input",link:"chip-input",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[U.interview],isNew:!0}],["tabs",{title:"Tab",link:"tabs",difficulty:R.Easy,developer:"Akshay-Omkar",tags:[],isNew:!0}],["drag-drop",{title:"Drag-Drop",link:"drag-drop",difficulty:R.Medium,developer:"Akshay-Omkar",tags:[],isNew:!0}],["circles",{title:"Circles",link:"circles",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["analog-clock",{title:"Analog Clock",link:"analog-clock",difficulty:R.Medium,developer:"sadanandpai",tags:[],isNew:!0}],["advanced-counter",{title:"Advanced Counter",link:"advanced-counter",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview]}],["nested-checkbox",{title:"Nested Checkbox",link:"nested-checkbox",difficulty:R.Hard,developer:"SujithGunasekaran",tags:[U.interview]}]]),Km=xa(uC),dC=new Map([["counter",{title:"Counter",link:"/counter",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["accordion",{title:"Accordion",link:"/accordion",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["light-dark-mode",{title:"Light Dark Mode",link:"/light-dark-mode",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["table-colorizer",{title:"Table Colorizer",link:"/table-colorizer",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["guess-the-number",{title:"Guess the number",link:"/guess-the-number",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["pagination",{title:"Pagination",link:"/pagination",difficulty:R.Easy,developer:"arpansaha13",tags:[]}],["stack",{title:"Stack",link:"/stack",difficulty:R.Easy,developer:"jaydadhaniya",tags:[]}],["telephone-formatter",{title:"Telephone formatter",link:"/telephone-formatter",difficulty:R.Easy,developer:"arpansaha13",tags:[U.interview]}],["temprature-converter",{title:"Temprature Converter",link:"/temprature-converter",difficulty:R.Easy,developer:"bhumikkalola",tags:[]}],["tic-tac-toe",{title:"Tic Tac Toe",link:"/tic-tac-toe",difficulty:R.Medium,developer:"sadanandpai",tags:[U.interview],isNew:!0}],["toast-popup",{title:"Toast Popup",link:"/toast-popup",difficulty:R.Medium,developer:"arpansaha13",tags:[U.interview]}],["password-strength",{title:"Password Strength",link:"/password-strength",difficulty:R.Medium,developer:"jaydadhaniya",tags:[U.interview]}],["password-generator",{title:"Password Generator",link:"/password-generator",difficulty:R.Medium,developer:"bhumikkalola",tags:[]}],["stopwatch",{title:"Stopwatch",link:"/stopwatch",difficulty:R.Medium,developer:"Shardik04",tags:[U.interview]}]]);xa(dC);const fC=new Map([["counter",{title:"Counter",link:"counter",difficulty:R.Easy,developer:"sadanandpai",tags:[U.interview]}],["guess-number",{title:"Guess Number",link:"guess-number",difficulty:R.Easy,developer:"pankajparkar",tags:[U.interview]}],["todo-list",{title:"Todo list",link:"todo-list",difficulty:R.Easy,developer:"pankajparkar",tags:[U.interview]}],["stack",{title:"Stack",link:"stack",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}],["tic-tac-toe",{title:"Tic tac toe",link:"tic-tac-toe",difficulty:R.Easy,developer:"pankajparkar",tags:[U.interview],isNew:!0}],["word-count",{title:"Word Count",link:"word-count",difficulty:R.Easy,developer:"pankajparkar",tags:[],isNew:!0}]]);xa(fC);const pC=`