PageSourceSearch

https://www.aihero.dev/_next/static/chunks/1e743v9mz6mfd.js

js aihero.dev collected 2026-10-02 03:43:45 UTC 50,156 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,821716,621790,e=>{"use strict";var t=e.i(31350),r=0,n=null;function s(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}e.s(["useFocusGuards",0,function(){t.useEffect(()=>{n||(n={start:s(),end:s()});let{start:e,end:t}=n;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),r++,()=>{1===r&&(n?.start.remove(),n?.end.remove(),n=null),r=Math.max(0,r-1)}},[])}],821716);var i=e.i(824627),a=e.i(559087),l=e.i(76837),o=(0,e.i(759897).createSidecarMedium)(),c=function(){},u=t.forwardRef(function(e,r){var n=t.useRef(null),s=t.useState({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:c}),a=s[0],u=s[1],d=e.forwardProps,f=e.children,h=e.className,m=e.removeScrollBar,p=e.enabled,x=e.shards,g=e.sideCar,v=e.noRelative,b=e.noIsolation,y=e.inert,k=e.allowPinchZoom,j=e.as,w=e.gapMode,N=(0,i.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(0,l.useMergeRefs)([n,r]),E=(0,i.__assign)((0,i.__assign)({},N),a);return t.createElement(t.Fragment,null,p&&t.createElement(g,{sideCar:o,removeScrollBar:m,shards:x,noRelative:v,noIsolation:b,inert:y,setCallbacks:u,allowPinchZoom:!!k,lockRef:n,gapMode:w}),d?t.cloneElement(t.Children.only(f),(0,i.__assign)((0,i.__assign)({},E),{ref:C})):t.createElement(void 0===j?"div":j,(0,i.__assign)({},E,{className:h,ref:C}),f))});u.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},u.classNames={fullWidth:a.fullWidthClassName,zeroRight:a.zeroRightClassName};var d=e.i(183223);e.i(638698);var f=e.i(507435);e.i(582917);var h=e.i(962012),m=!1;if("u">typeof window)try{var p=Object.defineProperty({},"passive",{get:function(){return m=!0,!0}});window.addEventListener("test",p,p),window.removeEventListener("test",p,p)}catch(e){m=!1}var x=!!m&&{passive:!1},g=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},v=function(e,t){var r=t.ownerDocument,n=t;do{if("u">typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),b(e,n)){var s=y(e,n);if(s[1]>s[2])return!0}n=n.parentNode}while(n&&n!==r.body)return!1},b=function(e,t){return"v"===e?g(t,"overflowY"):g(t,"overflowX")},y=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},k=function(e,t,r,n,s){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*n,o=r.target,c=t.contains(o),u=!1,d=l>0,f=0,h=0;do{if(!o)break;var m=y(e,o),p=m[0],x=m[1]-m[2]-a*p;(p||x)&&b(e,o)&&(f+=x,h+=p);var g=o.parentNode;o=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&o!==document.body||c&&(t.contains(o)||t===o))return d&&(s&&1>Math.abs(f)||!s&&l>f)?u=!0:!d&&(s&&1>Math.abs(h)||!s&&-l>h)&&(u=!0),u},j=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},w=function(e){return[e.deltaX,e.deltaY]},N=function(e){return e&&"current"in e?e.current:e},C=0,E=[];let R=(0,d.exportSidecar)(o,function(e){var r=t.useRef([]),n=t.useRef([0,0]),s=t.useRef(),a=t.useState(C++)[0],l=t.useState(h.styleSingleton)[0],o=t.useRef(e);t.useEffect(function(){o.current=e},[e]),t.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,i.__spreadArray)([e.lockRef.current],(e.shards||[]).map(N),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=t.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var r,i=j(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>
1Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===u||h.contains(u)))return!1;var m=v(d,u);if(!m)return!0;if(m?r=d:(r="v"===d?"h":"v",m=v(d,u)),!m)return!1;if(!s.current&&"changedTouches"in e&&(l||c)&&(s.current=r),!r)return!0;var p=s.current||r;return k(p,t,e,"h"===p?l:c,!0)},[]),u=t.useCallback(function(e){if(E.length&&E[E.length-1]===l){var t="deltaY"in e?w(e):j(e),n=r.current.filter(function(r){var n;return r.name===e.type&&(r.target===e.target||e.target===r.shadowParent)&&(n=r.delta,n[0]===t[0]&&n[1]===t[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var s=(o.current.shards||[]).map(N).filter(Boolean).filter(function(t){return t.contains(e.target)});(s.length>0?c(e,s[0]):!o.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=t.useCallback(function(e,t,n,s){var i={name:e,delta:t,target:n,should:s,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};r.current.push(i),setTimeout(function(){r.current=r.current.filter(function(e){return e!==i})},1)},[]),m=t.useCallback(function(e){n.current=j(e),s.current=void 0},[]),p=t.useCallback(function(t){d(t.type,w(t),t.target,c(t,e.lockRef.current))},[]),g=t.useCallback(function(t){d(t.type,j(t),t.target,c(t,e.lockRef.current))},[]);t.useEffect(function(){return E.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",u,x),document.addEventListener("touchmove",u,x),document.addEventListener("touchstart",m,x),function(){E=E.filter(function(e){return e!==l}),document.removeEventListener("wheel",u,x),document.removeEventListener("touchmove",u,x),document.removeEventListener("touchstart",m,x)}},[]);var b=e.removeScrollBar,y=e.inert;return t.createElement(t.Fragment,null,y?t.createElement(l,{styles:"\n  .block-interactivity-".concat(a," {pointer-events: none;}\n  .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,b?t.createElement(f.RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)});var A=t.forwardRef(function(e,r){return t.createElement(u,(0,i.__assign)({},e,{ref:r,sideCar:R}))});A.classNames=u.classNames,e.s(["RemoveScroll",0,A],621790)},744917,528862,e=>{"use strict";let t;var r=e.i(31350),n=e.i(161462),s=e.i(723673),i=e.i(802661),a=e.i(130384),l=new WeakMap;function o(e,t){var r,n;let s,i,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,s=r.length,(a=(i=c(n))>=0?i:s+i)<0||a>=s?-1:a);return -1===l?void 0:e[l]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],l.set(this,!0)}set(e,t){return l.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,s=this.has(t),i=this.#e.length,a=c(e),l=a>=0?a:i+a,o=l<0||l>=i?-1:l;if(o===this.size||s&&o===this.size-1||-1===o)return this.set(t,r),this;let u=this.size+ +!s;a<0&&l++;let d=[...this.#e],f=!1;for(let e=l;e<u;e++)if(l===e){let i=d[e];d[e]===t&&(i=d[e+1]),s&&this.delete(t),n=this.get(i),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],s=n;n=this.get(r),this.delete(r),this.set(r,s)}return this}with(t,r,n){let s=new e(this);return s.insert(t,r,n),s}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=o(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=o(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return o(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],s=0;for(let e of this)Reflect.apply(t,r,[e,s,this])&&n.push(e),s++;return new e(n)}map(t,r){let n=[],s=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,s,this])]),s++;return new e(n)}reduce(...e){let[t,r]=e,n=0,s=r??this.at(0);for(let r of this)s=0===n&&1===e.length?r:Reflect.apply(t,this,[s,r,n,this]),n++;return s}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let s=this.at(r);n=r===this.size-1&&1===e.length?s:Reflect.apply(t,this,[n,s,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,s=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(s=r-1);for(let e=t;e<=s;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let t=e+"CollectionProvider",[l,o]=(0,n.createContextScope)(t),[c,u]=l(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,s=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:t,itemMap:i,collectionRef:s,children:n})};d.displayName=t;let f=e+"CollectionSlot",h=(0,i.createSlot)(f),m=r.forwardRef((e,t)=>
1{let{scope:r,children:n}=e,i=u(f,r),l=(0,s.useComposedRefs)(t,i.collectionRef);return(0,a.jsx)(h,{ref:l,children:n})});m.displayName=f;let p=e+"CollectionItemSlot",x="data-radix-collection-item",g=(0,i.createSlot)(p),v=r.forwardRef((e,t)=>{let{scope:n,children:i,...l}=e,o=r.useRef(null),c=(0,s.useComposedRefs)(t,o),d=u(p,n);return r.useEffect(()=>(d.itemMap.set(o,{ref:o,...l}),()=>void d.itemMap.delete(o))),(0,a.jsx)(g,{...{[x]:""},ref:c,children:i})});return v.displayName=p,[{Provider:d,Slot:m,ItemSlot:v},function(t){let n=u(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${x}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},o]}],744917);var u=e.i(371954),d=e.i(290253),f="focusScope.autoFocusOnMount",h="focusScope.autoFocusOnUnmount",m={bubbles:!1,cancelable:!0},p=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:o,...c}=e,[p,y]=r.useState(null),k=(0,d.useCallbackRef)(l),j=(0,d.useCallbackRef)(o),w=r.useRef(null),N=(0,s.useComposedRefs)(t,e=>y(e)),C=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(i){let e=function(e){if(C.paused||!p)return;let t=e.target;p.contains(t)?w.current=t:v(w.current,{select:!0})},t=function(e){if(C.paused||!p)return;let t=e.relatedTarget;null!==t&&(p.contains(t)||v(w.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&v(p)});return p&&r.observe(p,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[i,p,C.paused]),r.useEffect(()=>{if(p){b.add(C);let e=document.activeElement;if(!p.contains(e)){let t=new CustomEvent(f,m);p.addEventListener(f,k),p.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(v(n,{select:t}),document.activeElement!==r)return}(x(p).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(p))}return()=>{p.removeEventListener(f,k),setTimeout(()=>{let t=new CustomEvent(h,m);p.addEventListener(h,j),p.dispatchEvent(t),t.defaultPrevented||v(e??document.body,{select:!0}),p.removeEventListener(h,j),b.remove(C)},0)}}},[p,k,j,C]);let E=r.useCallback(e=>{if(!n&&!i||C.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){var s;let t,i=e.currentTarget,[a,l]=[g(t=x(s=i),s),g(t.reverse(),s)];a&&l?e.shiftKey||r!==l?e.shiftKey&&r===a&&(e.preventDefault(),n&&v(l,{select:!0})):(e.preventDefault(),n&&v(a,{select:!0})):r===i&&e.preventDefault()}},[n,i,C.paused]);return(0,a.jsx)(u.Primitive.div,{tabIndex:-1,...c,ref:N,onKeyDown:E})});function x(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function g(e,t){for(let r of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function v(e,{select:t=!1}={}){if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}p.displayName="FocusScope";var b=(t=[],{add(e){let r=t[0];e!==r&&r?.pause(),(t=y(t,e)).unshift(e)},remove(e){t=y(t,e),t[0]?.resume()}});function y(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}e.s(["FocusScope",0,p],528862)},516174,e=>{"use strict";let t=(0,e.i(965883).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,t])},967860,e=>{"use strict";var t=e.i(516174);e.s(["ChevronRightIcon",()=>t.default])},242898,e=>{"use strict";var t=e.i(130384),r=e.i(87422);e.s(["Skeleton",0,function({className:e,...n}){return(0,t.jsx)("div",{className:(0,r.cn)("bg-muted animate-pulse rounded-md",e),...n})}])},917392,e=>{"use strict";let t={label:"Courses",href:"/courses"},r=[{label:"Skills",href:"/skills"},{label:"Open source",href:"/open-source"},t];e.s(["COURSES_NAV_ITEM",0,t,"PRIMARY_LEARNING_ENTRY",0,{label:"Start Here",href:"/learn"},"PRIMARY_NAV_ITEMS",0,r])},91683,e=>{"use strict";var t=e.i(130384),r=e.i(31350),n=e.i(787416),s=e.i(965883);let i=(0,s.default)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),a=(0,s.default)("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"}]]);var l=e.i(645046),o=e.i(265476),c=e.i(808022),u=e.i(87422);e.s(["ThemeToggle",0,function({className:e}){let{setTheme:s,theme:d}=(0,l.useTheme)(),[f,h]=r.useState(!1);return r.useEffect(()=>{h(!0)},[]),(0,t.jsxs)(c.DropdownMenu,{modal:!1,children:[(0,t.jsx)(c.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsxs)(o.Button,{variant:"outline",className:(0,u.cn)("text-foreground flex gap-2 rounded-sm sm:aspect-square",e),children:[(0,t.jsxs)("span",{className:"relative inline-flex size-5 shrink-0 items-center justify-center",children:[(0,t.jsx)(a,{className:"absolute size-3.5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0 motion-reduce:transition-none"}),(0,t.jsx)(i,{className:"absolute size-3.5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100 motion-reduce:transition-none"})]}),(0,t.jsxs)("span",{className:"text-xs font-normal capitalize opacity-80 sm:text-sm",children:[f&&d," Theme"]})]})}),(0,t.jsxs)(c.DropdownMenuContent,{align:"end",children:[(0,t.jsx)(c.DropdownMenuLabel,{children:"Theme"}),(0,t.jsxs)(c.DropdownMenuItem,{onClick:()=>s("light"),className:"flex items-center justify-between gap-2",children:["Light ","light"===d&&(0,t.jsx)(n.Check,{className:"h-4 w-4"})]}),(0,t.jsxs)(c.DropdownMenuItem,{onClick:()=>s("dark"),className:"flex items-center justify-between gap-2",children:["Dark ","dark"===d&&(0,t.jsx)(n.Check,{className:"h-4 w-4"})]}),(0,t.jsxs)(c.DropdownMenuItem,{onClick:()=>s("system"),className:"flex items-center justify-between gap-2",children:["System ","system"===d&&(0,t.jsx)(n.Check,{className:"h-4 w-4"})]})]})]})}],91683)},529547,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(130384),s=e.r(31350),i=e.r(992944),a=e.r(554358);function l(e){return{default:e&&"default"in e?e.default:e}}let o={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},c=function(e){let t={...o,...e},r=(0,s.lazy)(()=>t.loader().then(l)),c=t.loading;function u(e){let l=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,o=!t.ssr||!!t.loading,u=o?s.Suspense:s.Fragment,d=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...o?{fallback:l}:{},children:d})}return u.displayName="LoadableComponent",u}},328657,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return s}});let n=e.r(481258)._(e.r(529547));function s(e,t){let r={};"function"==typeof e&&(r.loader=e);let s={...r,...t};return(0,n.default)({...s,modules:s.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},465504,(e,t,r)=>{var n,s;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t.exports=s={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 0xff00ff&s.rotl(e,8)|0xff00ff00&s.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=s.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var s=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?t.push(n.charAt(s>>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/ig,"");for(var t=[],r=0,s=0;r<e.length;s=++r%4)0!=s&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*s+8)-1)<<2*s|n.indexOf(e.charAt(r))>>>6-2*s);return t}}},598839,(e,t,r)=>{var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};t.exports=n},718758,(e,t,r)=>{function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){var t;return null!=e&&(n(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&n(t.slice(0,0))||!!e._isBuffer)}},323613,(e,t,r)=>{var n,s,i,a,l;n=e.r(465504),s=e.r(598839).utf8,i=e.r(718758),a=e.r(598839).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):s.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var r=n.bytesToWords(e),o=8*e.length,c=0x67452301,u=-0x10325477,d=-0x67452302,f=0x10325476,h=0;h<r.length;h++)r[h]=(r[h]<<8|r[h]>>>24)&0xff00ff|(r[h]<<24|r[h]>>>8)&0xff00ff00;r[o>>>5]|=128<<o%32,r[(o+64>>>9<<4)+14]=o;for(var m=l._ff,p=l._gg,x=l._hh,g=l._ii,h=0;h<r.length;h+=16){var v=c,b=u,y=d,k=f;c=m(c,u,d,f,r[h+0],7,-0x28955b88),f=m(f,c,u,d,r[h+1],12,-0x173848aa),d=m(d,f,c,u,r[h+2],17,0x242070db),u=m(u,d,f,c,r[h+3],22,-0x3e423112),c=m(c,u,d,f,r[h+4],7,-0xa83f051),f=m(f,c,u,d,r[h+5],12,0x4787c62a),d=m(d,f,c,u,r[h+6],17,-0x57cfb9ed),u=m(u,d,f,c,r[h+7],22,-0x2b96aff),c=m(c,u,d,f,r[h+8],7,0x698098d8),f=m(f,c,u,d,r[h+9],12,-0x74bb0851),d=m(d,f,c,u,r[h+10],17,-42063),u=m(u,d,f,c,r[h+11],22,-0x76a32842),c=m(c,u,d,f,r[h+12],7,0x6b901122),f=m(f,c,u,d,r[h+13],12,-0x2678e6d),d=m(d,f,c,u,r[h+14],17,-0x5986bc72),u=m(u,d,f,c,r[h+15],22,0x49b40821),c=p(c,u,d,f,r[h+1],5,-0x9e1da9e),f=p(f,c,u,d,r[h+6],9,-0x3fbf4cc0),d=p(d,f,c,u,r[h+11],14,0x265e5a51),u=p(u,d,f,c,r[h+0],20,-0x16493856),c=p(c,u,d,f,r[h+5],5,-0x29d0efa3),f=p(f,c,u,d,r[h+10],9,0x2441453),d=p(d,f,c,u,r[h+15],14,-0x275e197f),u=p(u,d,f,c,r[h+4],20,-0x182c0438),c=p(c,u,d,f,r[h+9],5,0x21e1cde6),f=p(f,c,u,d,r[h+14],9,-0x3cc8f82a),d=p(d,f,c,u,r[h+3],14,-0xb2af279),u=p(u,d,f,c,r[h+8],20,0x455a14ed),c=p(c,u,d,f,r[h+13],5,-0x561c16fb),f=p(f,c,u,d,r[h+2],9,-0x3105c08),d=p(d,f,c,u,r[h+7],14,0x676f02d9),u=p(u,d,f,c,r[h+12],20,-0x72d5b376),c=x(c,u,d,f,r[h+5],4,-378558),f=x(f,c,u,d,r[h+8],11,-0x788e097f),d=x(d,f,c,u,r[h+11],16,0x6d9d6122),u=x(u,d,f,c,r[h+14],23,-0x21ac7f4),c=x(c,u,d,f,r[h+1],4,-0x5b4115bc),f=x(f,c,u,d,r[h+4],11,0x4bdecfa9),d=x(d,f,c,u,r[h+7],16,-0x944b4a0),u=x(u,d,f,c,r[h+10],23,-0x41404390),c=x(c,u,d,f,r[h+13],4,0x289b7ec6),f=x(f,c,u,d,r[h+0],11,-0x155ed806),d=x(d,f,c,u,r[h+3],16,-0x2b10cf7b),u=x(u,d,f,c,r[h+6],23,0x4881d05
1),c=x(c,u,d,f,r[h+9],4,-0x262b2fc7),f=x(f,c,u,d,r[h+12],11,-0x1924661b),d=x(d,f,c,u,r[h+15],16,0x1fa27cf8),u=x(u,d,f,c,r[h+2],23,-0x3b53a99b),c=g(c,u,d,f,r[h+0],6,-0xbd6ddbc),f=g(f,c,u,d,r[h+7],10,0x432aff97),d=g(d,f,c,u,r[h+14],15,-0x546bdc59),u=g(u,d,f,c,r[h+5],21,-0x36c5fc7),c=g(c,u,d,f,r[h+12],6,0x655b59c3),f=g(f,c,u,d,r[h+3],10,-0x70f3336e),d=g(d,f,c,u,r[h+10],15,-1051523),u=g(u,d,f,c,r[h+1],21,-0x7a7ba22f),c=g(c,u,d,f,r[h+8],6,0x6fa87e4f),f=g(f,c,u,d,r[h+15],10,-0x1d31920),d=g(d,f,c,u,r[h+6],15,-0x5cfebcec),u=g(u,d,f,c,r[h+13],21,0x4e0811a1),c=g(c,u,d,f,r[h+4],6,-0x8ac817e),f=g(f,c,u,d,r[h+11],10,-0x42c50dcb),d=g(d,f,c,u,r[h+2],15,0x2ad7d2bb),u=g(u,d,f,c,r[h+9],21,-0x14792c6f),c=c+v>>>0,u=u+b>>>0,d=d+y>>>0,f=f+k>>>0}return n.endian([c,u,d,f])})._ff=function(e,t,r,n,s,i,a){var l=e+(t&r|~t&n)+(s>>>0)+a;return(l<<i|l>>>32-i)+t},l._gg=function(e,t,r,n,s,i,a){var l=e+(t&n|r&~n)+(s>>>0)+a;return(l<<i|l>>>32-i)+t},l._hh=function(e,t,r,n,s,i,a){var l=e+(t^r^n)+(s>>>0)+a;return(l<<i|l>>>32-i)+t},l._ii=function(e,t,r,n,s,i,a){var l=e+(r^(t|~n))+(s>>>0)+a;return(l<<i|l>>>32-i)+t},l._blocksize=16,l._digestsize=16,t.exports=function(e,t){if(null==e)throw Error("Illegal argument "+e);var r=n.wordsToBytes(l(e,t));return t&&t.asBytes?r:t&&t.asString?a.bytesToString(r):n.bytesToHex(r)}},746580,e=>{"use strict";var t=e.i(130384),r=e.i(323613),n=e.i(120482);function s({email:e,md5:i,size:a=50,rating:l="g",default:o="retro",protocol:c="//",domain:u="www.gravatar.com",style:d,className:f,...h}){let m,p=`${c}${u}/avatar/`,x=n.default.stringify({s:a,r:l,d:o}),g=n.default.stringify({s:2*a,r:l,d:o}),v=(e??"").trim().toLowerCase();if(i)m=i;else{if("string"!=typeof e)return console.warn('Gravatar image can not be fetched. Either the "email" or "md5" prop must be specified.'),null;m=(0,r.default)(v,{encoding:"binary"})}let b=`${p}${m}?${x}`,y=`${p}${m}?${g}`,k="srcset"in document.createElement("img"),j=f?`react-gravatar ${f}`:"react-gravatar";return!k&&null!==window&&(window.devicePixelRatio>1.25||window.matchMedia&&window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25), (min--moz-device-pixel-ratio: 1.25), (-o-min-device-pixel-ratio: 5/4), (min-resolution: 1.25dppx)").matches)?(0,t.jsx)("img",{alt:e?`Gravatar for ${v}`:"Gravatar",style:d,src:y,height:a,width:a,className:j,...h}):(0,t.jsx)("img",{alt:`Gravatar for ${v}`,style:d,src:b,srcSet:`${y} 2x`,height:a,width:a,className:j,...h})}s.displayName="Gravatar",e.s(["Gravatar",0,s])},21280,e=>{"use strict";let t=(0,e.i(965883).default)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);e.s(["default",0,t])},421489,e=>{"use strict";var t=e.i(21280);e.s(["Search",()=>t.default])},730175,e=>{"use strict";e.s(["FEATURED_PROMO",0,{label:"New",message:"AI Coding Crash Course is out now.",href:"/s/crash-course",resourceId:"workshop-2ozd9",navLabel:"Get the course",navHref:"/workshops/ai-coding-crash-course",startsAt:"2026-08-17T07:00:00.000Z"},"isPromoActive",0,function(e,t=new Date){if(!e)return!1;let r=t.getTime();return!(e.startsAt&&r<new Date(e.startsAt).getTime()||e.endsAt&&r>=new Date(e.endsAt).getTime())}])},235049,e=>{"use strict";let t=(0,e.i(965883).default)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);e.s(["default",0,t])},216552,e=>{"use strict";var t=e.i(130384),r=e.i(31350),n=e.i(241849),s=e.i(233526),i=e.i(62695),a=e.i(41037),l=e.i(810485),o=e.i(43004),c=e.i(967860),u=e.i(578427),d=e.i(710508),f=e.i(514553),h=e.i(91683);function m(){return{learn:{courses:[{href:"/workshops/ai-sdk-v6-crash-course",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1769629206/v6imageforproduct.png",alt:"AI SDK v6 Crash Course",width:160,height:90},title:"AI SDK v6 Crash Course",description:"Master AI SDK v6 with AI Hero's comprehensive crash course."}],freeTutorials:{featured:{href:"/llm-fundamentals",badge:void 0,title:"LLM Fundamentals",description:"A free tutorial teaching you the fundamentals of LLM's so you can use them better.",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1759305215/llm-fundamentals-thumbn
1ail_2x.jpg",alt:"LLM Fundamentals",width:160,height:90}},items:[{href:"/ai-coding-dictionary",title:"AI Coding Dictionary",description:"The vocabulary of AI coding, translated into plain English.",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1778594002/dictionary.jpg",alt:"AI Coding Dictionary",width:160,height:90}},{href:"/ai-engineer-roadmap",title:"The AI Engineer Roadmap",description:"Want to build AI-powered apps, but don't know where to start? You need a roadmap.",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1743163055/posts/post_m8cq7/xmqatojwrl7isjkmayxf.png",alt:"The AI Engineer Roadmap",width:160,height:90}},{href:"/vercel-ai-sdk-tutorial",title:"Vercel AI SDK Tutorial",description:"Learn streaming, structured outputs, tool calls and agents.",image:{src:"https://image.mux.com/REovA4vqWq5df5zWXn52Pszwl1nseCMUF02epwdfkB1s/thumbnail.png?time=6",alt:"Vercel AI SDK Tutorial",width:160,height:90}},{href:"/model-context-protocol-tutorial",title:"Model Context Protocol Tutorial",description:"Learn the essentials of the Model Context Protocol in AI.",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1741881129/posts/post_dy34a/xdfinlb07yuyfmleoejz.png",alt:"Model Context Protocol Tutorial",width:160,height:90}}]}},live:{events:[],pastEvents:[{href:"/events/turn-ai-agents-into-autonomous-software-engineers-with-ralph",date:"February 11, 2026",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1768901937/events/event-w2789/vsanotsxrpkxykezruby.jpg",alt:"Turn AI Agents into Autonomous Software Engineers with Ralph",width:160,height:90},title:"Turn AI Agents into Autonomous Software Engineers with Ralph",description:"Learn to build backlog agents, design effective PRDs, and implement feedback loops."}],cohorts:[{href:"/cohorts/ai-coding-for-real-engineers-m0k0w",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1778482299/cohorts/cohort-m0k0w/fh5sosv36pw0ogibmc0p.jpg",alt:"AI Coding for Real Engineers",width:160,height:90},title:"AI Coding for Real Engineers",subtitle:"June 1 – June 12, 2026"}],pastCohorts:[{href:"/cohorts/claude-code-for-real-engineers-2026-04",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1773381499/claude-code-for-real-engineers-cohort_2x.jpg",alt:"Claude Code for Real Engineers",width:160,height:90},title:"Claude Code for Real Engineers",subtitle:"April, 2026"},{href:"/cohorts/build-your-own-ai-personal-assistant-in-typescript",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1762890580/cohorts/cohort-ytorn/dmkvhhpfp5kg9ew5rtef.jpg",alt:"Build Your Own AI Personal Assistant in TypeScript",width:160,height:90},title:"Build Your Own AI Personal Assistant in TypeScript",subtitle:"December, 2025"},{href:"/cohorts/build-deepsearch-in-typescript",image:{src:"https://res.cloudinary.com/total-typescript/image/upload/v1748619829/cohorts/cohort-5uyf5/kttfkqzngqj6uvbpgjhl.jpg",alt:"Build DeepSearch in TypeScript",width:160,height:90},title:"Build DeepSearch in TypeScript",subtitle:"July, 2025"}]},browseAll:{href:"/posts",label:(0,t.jsxs)("span",{children:["Browse"," ",(0,t.jsx)("span",{className:"inline-block sm:hidden lg:inline-block",children:"all"})]})}}}let p=[{href:"/sitemap.md",label:"sitemap.md"},{href:"/llms.txt",label:"llms.txt"},{href:"/skills.md",label:"skills.md"},{href:"/rss.xml",label:"rss.xml"}];function x(e,t){(0,o.track)("navigation_menu_item_click",{resource:e,type:t,category:"footer"})}let g="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",v=(0,f.cn)(a.TYPE.meta,g,"inline-block py-[5px] text-[color:var(--ah-fg-muted)] hover:text-foreground transition-colors"),b=(0,f.cn)(a.TYPE.metaMono,g,"inline-block py-[5px] text-[color:var(--ah-fg-muted)] hover:text-foreground transition-colors"),y="-my-[5px] flex flex-col items-start",k="[&:has(a:hover,button:hover)_a:not(:hover)]:opacity-60 [&:has(a:hover,button:hover)_button:not(:hover)]:opacity-60";function j({children:e}){return(0,t.jsx)("h3",{className:(0,f.cn)(a.TYPE.groupLabel,"mb-4"),children:e})}function w(){let e=m(),r=e.learn.courses,s=[e.learn.freeTutorials.featured,...e.learn.freeTutorials.items];return(0,t.jsxs)("div",{children:[(0,t.jsx)(j,{children:"Learn"}),(0,t.jsxs)("ul",{className:(0,f.cn)(y,k),children:[(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"/workshops/ai-coding-crash-course",className:v,onClick:()=>x("AI Coding Crash Course","course"),children:"AI Coding Crash Course"})}),r.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.href,className:v,onClick:()=>x(e.title,"course"),children:e.title})},e.href)),s.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.href,className:v,onClick:()=>x(e.title,"tutorial"),children:e.title})},e.href))]})]})}function N(){let e=m(),r=[...e.live.cohorts,...e.live.pastCohorts];return(0,t.jsxs)("div",{children:[(0,t.jsx)(j,{children:"Cohorts"}),0===r.length?(0,t.jsxs)("div",{className:"flex flex-col items-start gap-2.5",children:[(0,t.jsx)("p",{className:(0,f.cn)(a.TYPE.metaProse,"text-[color:var(--ah-fg-muted)]"),children:"No cohorts scheduled atm."}),(0,t.jsxs)(n.default,{href:"/newsletter",className:(0,f.cn)(v,"group inline-flex items-center gap-1"),onClick:()=>x("/newsletter","newsletter"),children:["Subscribe to get notified",(0,t.jsx)("span",{className:"inline-block transition group-hover:translate-x-0.5",children:(0,t.jsx)(c.ChevronRightIcon,{className:"size-3.5"})})]})]}):(0,t.jsx)("ul",{className:(0,f.cn)(y,k),children:r.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.href,className:v,onClick:()=>x(e.title,"cohort"),children:e.title})},e.href))})]})}function C(){let[e,s]=r.useState(!1),{data:a,status:o}=(0,u.useSession)(),{data:c}=l.api.ability.getCurrentAbilityRules.useQuery(),h=(0,i.createAppAbility)(c||[]).can("read","Invoice"),{setIsFeedbackDialogOpen:m}=(0,d.useFeedback)();if(r.useEffect(()=>{s(!0)},[]),!e||"loading"===o)return(0,t.jsxs)("div",{children:[(0,t.jsx)(j,{children:"Account"}
1),(0,t.jsx)("div",{className:"bg-foreground/10 h-3 w-24 rounded-sm"})]});let p=!!a?.user?.email;return(0,t.jsxs)("div",{children:[(0,t.jsx)(j,{children:"Account"}),(0,t.jsxs)("ul",{className:(0,f.cn)(y,k),children:[!p&&(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"/login",className:v,onClick:()=>x("/login","account"),children:"Log in / Sign up"})}),p&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"/profile#my-courses",className:v,onClick:()=>x("/profile#my-courses","account"),children:"My Courses"})}),h&&(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:"/invoices",className:v,onClick:()=>x("/invoices","account"),children:"Invoices"})}),(0,t.jsx)("li",{children:(0,t.jsx)("button",{type:"button",className:(0,f.cn)(v,"cursor-pointer text-left"),onClick:()=>{x("feedback","account"),m(!0)},children:"Feedback"})})]})]})]})}function E(){return(0,t.jsxs)("div",{children:[(0,t.jsx)(j,{children:"Agents"}),(0,t.jsx)("ul",{className:(0,f.cn)(y,k),children:p.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(n.default,{href:e.href,className:b,target:"_blank",rel:"noopener",onClick:()=>x(e.href,"wrangler"),children:e.label})},e.href))})]})}function R(){let e=[{href:m().browseAll.href,label:"Browse All",type:"browse_all"},{href:"/skills",label:"Skills",type:"skills"},{href:"/skills/subscribe",label:"Free course",type:"skills_newsletter"},{href:"/ai-coding-dictionary",label:"Dictionary",type:"dictionary"},{href:"/faq",label:"FAQ",type:"legal"},{href:"/privacy",label:"Terms",type:"legal"}];return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-5 px-[18px] pb-8 pt-5 sm:flex-row sm:items-center lg:px-11 lg:pb-[34px] lg:pt-[22px]",children:[(0,t.jsx)("nav",{"aria-label":"Footer",className:(0,f.cn)("-mx-2.5 -my-1 flex flex-wrap items-center",k),children:e.map(e=>(0,t.jsx)(n.default,{href:e.href,className:(0,f.cn)(a.TYPE.metaSm,g,"inline-block px-2.5 py-1 text-[color:var(--ah-fg-subtle)] hover:text-foreground transition-colors"),onClick:()=>x(e.href,e.type),children:e.label},e.href))}),(0,t.jsx)(h.ThemeToggle,{className:(0,f.cn)(a.TYPE.metaSm,"sm:ml-auto","h-auto gap-2 rounded-[9px] border-input px-[13px] py-2","text-[color:var(--ah-fg-subtle)] hover:text-foreground bg-transparent shadow-none dark:bg-transparent","hover:bg-muted dark:hover:bg-muted sm:aspect-auto")})]})}e.s(["default",0,function(){return(0,s.usePathname)().includes("/edit")?null:(0,t.jsxs)("footer",{className:"border-border w-full border-t print:hidden",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-9 border-b border-border px-[18px] pb-8 pt-10 sm:grid-cols-2 lg:grid-cols-[repeat(4,minmax(0,1fr))] lg:px-11 lg:pb-[26px] lg:pt-[52px]",children:[(0,t.jsx)(w,{}),(0,t.jsx)(N,{}),(0,t.jsx)(C,{}),(0,t.jsx)(E,{})]}),(0,t.jsx)(R,{})]})}],216552)},816667,e=>{"use strict";var t=e.i(130384),r=e.i(87422),n=e.i(31350),s=e.i(328657),i=e.i(439622),a=e.i(241849),l=e.i(233526),o=e.i(214625),c=e.i(801145),u=e.i(810485),d=e.i(43004),f=e.i(578427),h=e.i(710508),m=e.i(514553),p=e.i(235049),p=p,x=e.i(421489),g=e.i(264482);let v=({isMobileMenuOpen:e,setIsMobileMenuOpen:r,onSearchOpen:n,subscriber:s,showSearch:i=!0})=>
1{let l="text-foreground opacity-70 hover:bg-foreground/[0.06] hover:opacity-100 focus-visible:ring-ring flex size-9 items-center justify-center rounded-[7px] transition focus-visible:outline-none focus-visible:ring-2 dark:opacity-60 dark:hover:opacity-100";return(0,t.jsxs)("div",{className:"ml-auto flex items-center gap-0.5 lg:hidden",children:[i&&(0,t.jsx)("button",{type:"button","aria-label":"Search",onClick:()=>{(0,d.track)("search_palette_opened",{via:"mobile_nav_icon"}),n()},className:l,children:(0,t.jsx)(x.Search,{"aria-hidden":!0,className:"size-5"})}),!s&&(0,t.jsx)(a.default,{href:"/newsletter","aria-label":"Subscribe to the newsletter",onClick:()=>(0,d.track)("nav_link_clicked",{label:"Newsletter",href:"/newsletter"}),className:l,children:(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"size-5",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M6 8h8m-8 4h8m-8 4h4m8-8h1c1.414 0 2.121 0 2.56.44.44.439.44 1.146.44 2.56v8a2 2 0 1 1-4 0V8Z"}),(0,t.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 3H8c-2.828 0-4.243 0-5.121.879C2 4.757 2 6.172 2 9v6c0 2.828 0 4.243.879 5.121C3.757 21 5.172 21 8 21h12a2 2 0 0 1-2-2V9c0-2.828 0-4.243-.879-5.121C16.243 3 14.828 3 12 3Z"})]})}),(0,t.jsx)("button",{className:l,type:"button","aria-label":e?"Close menu":"Open menu","aria-expanded":e,"aria-controls":"mobile-menu-panel",onClick:()=>r(!e),children:e?(0,t.jsx)(g.X,{className:"size-5"}):(0,t.jsx)(p.default,{className:"size-5"})})]})};var b=e.i(817422),y=e.i(265476);function k({children:e,active:r,className:n}){return(0,t.jsx)("span",{"data-active":r?"":void 0,className:(0,m.cn)("inline-flex items-center rounded-[7px] px-3 py-[7px] text-[13.5px] leading-none transition-colors duration-200","group-hover/nav-item:bg-foreground
1/[0.06] group-hover/nav-item:text-foreground","group-data-[state=open]/nav-item:bg-foreground/[0.06] group-data-[state=open]/nav-item:text-foreground","data-active:bg-foreground/10 data-active:text-foreground",n),children:e})}let j="text-[color:var(--ah-fg-muted)] hover:text-foreground focus-visible:ring-ring inline-flex items-center rounded-[6px] text-[13px] leading-none transition-colors focus-visible:outline-none focus-visible:ring-2";b.z.object({href:b.z.string().optional(),label:b.z.union([b.z.string(),b.z.any()]),onClick:b.z.function().optional(),className:b.z.string().optional(),icon:b.z.any().optional(),variant:b.z.enum(["nav","menu"]).default("nav").optional(),textLabel:b.z.string().optional()});let w=({href:e,label:r,onClick:n,className:s,icon:i,textLabel:o,variant:c="nav"})=>{let u=(0,l.usePathname)(),f=e&&u===e.replace(/\/$/,""),h=(0,t.jsxs)(t.Fragment,{children:[i&&i,(0,t.jsx)("span",{className:"wrap-break-word whitespace-normal text-balance",children:r})]}),p="nav"===c?(0,t.jsx)(k,{active:f||void 0,children:h}):h;return(0,t.jsx)("li",{className:"nav"===c?"flex items-center":"flex items-stretch",children:(0,t.jsx)(y.Button,{className:(0,m.cn)({nav:"group/nav-item text-[color:var(--ah-fg-muted)] hover:text-foreground relative flex h-auto w-auto items-center justify-start p-0 text-[13.5px] font-normal transition hover:no-underline",menu:"text-foreground hover:bg-background flex w-full items-center justify-start font-normal text-xl hover:no-underline px-3 sm:text-sm"}[c],{"":f,"bg-muted":f&&"menu"===c},s),asChild:!n,variant:"link",onClick:n,children:n?p:(0,t.jsx)(a.default,{prefetch:!0,href:e,onClick:()=>{(0,d.track)("nav_link_clicked",{label:"string"==typeof r?r:o,href:e}),n&&n()},"aria-current":f?"page":void 0,className:(0,m.cn)("relative",{"underline md:no-underline":f}),children:p})})})};var N=e.i(495906),C=e.i(730175),E=e.i(412848),R=e.i(917392),A=e.i(630597),S=e.i(62695),T=e.i(41037),M=e.i(835061);let _=(0,e.i(965883).default)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);var I=e.i(808022),P=e.i(746580),L=e.i(242898);let O=(0,m.cn)(T.TYPE.nav,"text-[color:var(--ah-fg-muted)] focus:bg-foreground
1/[0.06] focus:text-foreground cursor-pointer rounded-sm px-2.5 py-2 transition-colors duration-200");function D({href:e,label:r}){return(0,t.jsx)(I.DropdownMenuItem,{asChild:!0,className:O,children:(0,t.jsx)(a.default,{href:e,prefetch:!0,onClick:()=>(0,d.track)("nav_link_clicked",{label:r,href:e}),children:r})})}let z=()=>(0,t.jsx)("li",{className:"flex items-center",children:(0,t.jsx)(L.Skeleton,{className:"bg-foreground/10 h-2 w-[35px] rounded"})}),F=()=>{let[e,r]=n.useState(!1),{data:s,status:l}=(0,f.useSession)(),{data:o}=u.api.ability.getCurrentAbilityRules.useQuery(),c=(0,S.createAppAbility)(o||[]),d=c.can("invite","Team"),p=c.can("create","Content"),x=c.can("read","Invoice"),g=c.can("manage","all"),{setIsFeedbackDialogOpen:v}=(0,h.useFeedback)();if(n.useEffect(()=>{r(!0)},[]),!e||"loading"===l)return(0,t.jsx)(z,{});if(!s?.user?.email)return(0,t.jsx)("li",{className:"flex items-center",children:(0,t.jsx)(a.default,{href:"/login",className:j,children:"Log in"})});let b=s.user.image?(0,t.jsx)(i.default,{src:s.user.image,alt:s.user.name||"",width:28,height:28,className:"rounded-full"}):(0,t.jsx)(P.Gravatar,{className:"h-7 w-7 rounded-full",email:s.user.email,default:"mp"});return(0,t.jsxs)(t.Fragment,{children:[d&&!g&&(0,t.jsx)(w,{label:"Invite Team",className:"",href:"/team"}),(0,t.jsx)("li",{className:"flex items-center",children:(0,t.jsxs)(I.DropdownMenu,{modal:!1,children:[(0,t.jsx)(I.DropdownMenuTrigger,{className:"group/nav-item focus-visible:ring-ring flex items-center rounded-[7px] focus-visible:outline-none focus-visible:ring-2",children:(0,t.jsxs)("span",{className:"group-hover/nav-item:bg-foreground
1/[0.06] group-data-[state=open]/nav-item:bg-foreground/[0.06] inline-flex items-center gap-2 rounded-[7px] p-1 pr-2.5 transition-colors duration-200",children:[b,(0,t.jsxs)("span",{className:(0,m.cn)(T.TYPE.metaSm,"inline-flex items-center gap-1 text-[color:var(--ah-fg-muted)] group-hover/nav-item:text-foreground group-data-[state=open]/nav-item:text-foreground transition-colors duration-200"),children:[(0,t.jsx)("span",{className:"truncate sm:max-w-[8rem] lg:max-w-[11rem] xl:max-w-none",children:s.user.name?.split(" ")[0]||"Account"}),(0,t.jsx)(M.ChevronDownIcon,{"aria-hidden":!0,className:"size-3 shrink-0 transition-transform duration-200 group-data-[state=open]/nav-item:rotate-180"})]})]})}),(0,t.jsxs)(I.DropdownMenuContent,{side:"bottom",align:"end",sideOffset:8,className:"w-56 p-1.5 shadow-lg",children:[(0,t.jsx)(I.DropdownMenuLabel,{className:(0,m.cn)(T.TYPE.metaSm,"truncate px-2.5 py-1.5 font-normal text-[color:var(--ah-fg-subtle)]"),children:s.user.email||"Account"}),(0,t.jsx)(I.DropdownMenuSeparator,{className:"-mx-1.5 my-1.5 bg-[color:var(--ah-line-soft)]"}),x&&(0,t.jsx)(D,{href:"/invoices",label:"Invoices"}),(0,t.jsx)(D,{href:"/profile#my-courses",label:"My Courses"}),p&&(0,t.jsx)(D,{href:"/admin/dashboard",label:"Admin"}),"authenticated"===l&&(0,t.jsx)(I.DropdownMenuItem,{className:O,onSelect:()=>v(!0),children:"Feedback"}),(0,t.jsx)(I.DropdownMenuSeparator,{className:"-mx-1.5 my-1.5 bg-[color:var(--ah-line-soft)]"}),(0,t.jsxs)(I.DropdownMenuItem,{className:O,onSelect:()=>(0,f.signOut)(),children:[(0,t.jsx)(_,{"aria-hidden":!0,className:"size-3.5 shrink-0"}),"Log out"]})]})]})})]})},B=(0,s.default)(()=>e.A(233774).then(e=>e.SearchPalette),{loadableGenerated:{modules:[98565]}}),Y=(0,s.default)(()=>e.A(164577).then(e=>e.MobileMenuPanel),{loadableGenerated:{modules:[885896]}}),U=({sessionStatus:e,subscriber:r,setIsFeedbackDialogOpen:s})=>{let[i,l]=n.useState(!1);return n.useEffect(()=>{l(!0)},[]),(0,t.jsxs)(t.Fragment,{children:[i&&"authenticated"===e&&(0,t.jsx)("li",{className:"hidden items-center lg:flex",children:(0,t.jsx)("button",{type:"button",onClick:()=>s(!0),className:j,children:"Feedback"})}),!(0,c.isOnEmailList)(r)&&(0,t.jsx)("li",{className:"hidden items-center lg:flex",children:(0,t.jsx)(a.default,{prefetch:!0,href:"/newsletter",onClick:()=>{(0,d.track)("nav_link_clicked",{label:"Newsletter",href:"/newsletter"})},className:j,children:"Newsletter"})})]})},G=({isActive:e,highlighted:r})=>(0,t.jsx)("li",{className:"flex items-center",children:(0,t.jsx)(a.default,{prefetch:!0,href:R.PRIMARY_LEARNING_ENTRY.href,onClick:()=>{(0,d.track)("nav_link_clicked",{label:R.PRIMARY_LEARNING_ENTRY.label,href:R.PRIMARY_LEARNING_ENTRY.href})},"aria-current":e?"page":void 0,className:"group/nav-item focus-visible:ring-ring text-[color:var(--ah-fg-muted)] relative flex items-center rounded-[7px] focus-visible:outline-none focus-visible:ring-2",children:(0,t.jsx)(k,{active:r||void 0,className:"font-medium",children:R.PRIMARY_LEARNING_ENTRY.label})})}),W=({pathname:e,subscriber:r,subscriberResolved:n})=>{let s=(0,N.useCohortOffer)(),i=(0,A.useTimedActivation)(C.FEATURED_PROMO,!1)&&C.FEATURED_PROMO.resourceId&&C.FEATURED_PROMO.navLabel&&C.FEATURED_PROMO.navHref?{id:C.FEATURED_PROMO.resourceId,label:C.FEATURED_PROMO.navLabel,href:C.FEATURED_PROMO.navHref}:s,{data:l,isPending:o}=u.api.ability.getSkillsCourseCtaState.useQuery(),h=l?.state==="subscribed",{status:m}=(0,f.useSession)(),p=!!i?.id&&"unauthenticated"!==m,{data:x,isPending:g}=u.api.ability.ownsResource.useQuery({resourceId:i?.id??""},{enabled:p,staleTime:3e5,refetchOnWindowFocus:!1,retry:1}),v=i&&"waitlist"in i?i.waitlist:void 0,b=(0,c.hasJoinedOfferWaitlist)(r,v),y=x?.owned===!0||b,k=h?i&&!y?{label:i.label,href:i.href}:null:{label:"Get the free course",href:"/skills/subscribe"};return!n||o||p&&g?(0,t.jsx)("li",{className:"hidden items-center lg:flex",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"bg-foreground
1/[0.06] inline-flex min-w-[152px] items-center justify-center rounded-[8px] px-3.5 py-2 text-[13px] font-bold leading-none",children:" "})}):!k||e.startsWith(k.href)?null:(0,t.jsx)("li",{className:"hidden items-center lg:flex",children:(0,t.jsx)(a.default,{prefetch:!0,href:k.href,onClick:()=>{(0,d.track)("nav_link_clicked",{label:k.label,href:k.href})},className:"bg-accent-fill text-accent-fill-foreground hover:bg-accent-fill-hover focus-visible:ring-ring inline-flex min-w-[152px] items-center justify-center rounded-[8px] px-3.5 py-2 text-[13px] font-bold leading-none transition focus-visible:outline-none focus-visible:ring-2",children:k.label})})},K=()=>{let e=(0,l.usePathname)(),r=(0,E.getNavMode)(e),s="/"===e,c=(0,l.useParams)(),u=(0,l.useRouter)(),{setIsFeedbackDialogOpen:p}=(0,h.useFeedback)(),[x,g]=n.useState(!1),[b,y]=n.useState(!1);n.useEffect(()=>{g(!1),y(!1)},[e]);let{data:k,status:N}=(0,f.useSession)(),{subscriber:C,isResolved:A}=(0,o.useCtaGate)(),S="full"===r||"hub"===r,[T,M]=n.useState(!1),[_,I]=n.useState(!1);return n.useEffect(()=>{b&&M(!0)},[b]),n.useEffect(()=>{x&&I(!0)},[x]),n.useEffect(()=>{if(!S)return;let e=e=>{"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y(e=>(e||(0,d.track)("search_palette_opened",{via:"keyboard"}),!e)))};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[S]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("header",{className:(0,m.cn)("bg-background/90 h-(--nav-height) relative z-50 flex w-full items-center gap-5 border-b px-[18px] backdrop-blur-md print:hidden lg:px-11",{"sticky top-0":!c.lesson}),children:[(0,t.jsx)("span",{className:"flex shrink-0 items-center",onContextMenu:e=>{e.preventDefault(),u.push("/brand")},children:(0,t.jsxs)(a.default,{prefetch:!0,tabIndex:s?-1:0,href:"/","aria-label":"AI Hero home",className:"group focus-visible:ring-ring flex items-center gap-2.5 rounded-[7px] leading-none transition focus-visible:outline-none focus-visible:ring-2",children:[(0,t.jsx)(i.default,{src:"/[email protected]",alt:"",width:124,height:124,priority:!0,className:"h-(--nav-height) w-auto shrink-0 object-contain object-bottom"}),(0,t.jsxs)("span",{className:"text-foreground text-[15.5px] font-bold leading-none tracking-[-0.01em]",children:[(0,t.jsx)("span",{className:"font-mono",children:"AI"}),"Hero"]})]})}),"minimal"!==r&&(0,t.jsx)("nav",{className:"hidden items-center lg:flex","aria-label":"Primary navigation",children:(0,t.jsx)("ul",{className:"flex items-center gap-0.5",children:"full"===r?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(G,{isActive:e===R.PRIMARY_LEARNING_ENTRY.href,highlighted:e===R.PRIMARY_LEARNING_ENTRY.href||!R.PRIMARY_NAV_ITEMS.some(t=>e===t.href.replace(/\/$/,""))}),R.PRIMARY_NAV_ITEMS.map(e=>(0,t.jsx)(w,{href:e.href,label:e.label,textLabel:e.label},e.href))]}):(0,t.jsx)(w,{href:R.COURSES_NAV_ITEM.href,label:R.COURSES_NAV_ITEM.label,textLabel:R.COURSES_NAV_ITEM.label})})}),(0,t.jsx)("nav",{className:"ml-auto hidden items-center lg:flex","aria-label":"User navigation",children:(0,t.jsxs)("ul",{className:"flex items-center gap-[18px]",children:[S&&(0,t.jsx)("li",{className:"flex items-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>{(0,d.track)("search_palette_opened",{via:"nav_icon"}),y(!0)},className:(0,m.cn)(j,b&&"text-foreground"),children:"Search"})}),(0,t.jsx)(U,{sessionStatus:N,subscriber:C,setIsFeedbackDialogOpen:p}),(0,t.jsx)(F,{}),"minimal"!==r&&(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(W,{pathname:e,subscriber:C,subscriberResolved:A})})]})}),(0,t.jsx)(v,{isMobileMenuOpen:x,setIsMobileMenuOpen:g,onSearchOpen:()=>y(!0),subscriber:C,showSearch:S})]}),_&&(0,t.jsx)(Y,{isOpen:x,onClose:()=>g(!1),mode:r}),S&&T&&(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(B,{open:b,onOpenChange:y})})]})};var H=e.i(216552);e.s(["default",0,function({children:e,withContainer:n=!1,className:s,withNavigation:i=!0,withFooter:a=!0}){return(0,t.jsx)("div",{className:(0,r.cn)("",!i&&"[--nav-height:0px]",{"relative mx-auto w-full max-w-[1456px] px-2":n},s),children:(0,t.jsxs)("div",{className:"bg-background border-x print:border-none",children:[i&&(0,t.jsx)(K,{}),e,a&&(0,t.jsx)(H.default,{})]})})}],816667)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.