1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,184746,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(132441),i=e.i(174886),r=e.i(643531),s=e.i(37727),a=e.i(530734);e.s(["default",0,function({skillText:e,variant:o="outline",size:c,className:d,ctaLocation:u="product_hero"}){let[h,m]=(0,l.useState)(!1),[x,p]=(0,l.useState)(!1),f=(0,l.useRef)(null),y=(0,l.useRef)(null),k=(0,l.useCallback)(()=>{navigator?.clipboard?.writeText&&navigator.clipboard.writeText(e).then(()=>{p(!0),setTimeout(()=>p(!1),2500)}).catch(()=>{})},[e]);return(0,l.useEffect)(()=>{if(!h)return;y.current=document.activeElement;let e=document.body.style.overflow,t=e=>{"Escape"===e.key&&m(!1)};return document.addEventListener("keydown",t),document.body.style.overflow="hidden",f.current?.focus(),()=>{document.removeEventListener("keydown",t),document.body.style.overflow=e,y.current instanceof HTMLElement&&y.current.focus()}},[h]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Button,{variant:o,size:c,className:d,onClick:e=>{e.stopPropagation(),(0,a.pushToDataLayer)("cta_clicked",{cta_location:u,cta_text:"Integrate with AI"}),m(!0)},children:"Integrate with AI"}),h&&(0,t.jsxs)("div",{className:"fixed inset-0 z-50 flex items-end md:items-center justify-center md:p-4 overflow-hidden",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/50 hidden md:block",onClick:()=>m(!1)}),(0,t.jsxs)("div",{ref:f,role:"dialog","aria-modal":"true","aria-labelledby":"integrate-ai-product-title",tabIndex:-1,className:"relative bg-background shadow-xl w-full max-w-[900px] flex flex-col overflow-hidden theme-default text-foreground outline-none h-full md:h-auto md:max-h-[85vh] md:rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4 p-4 md:p-6 pb-3 border-b border-border",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{id:"integrate-ai-product-title",className:"text-lg font-semibold text-foreground",children:"Integrate with AI"}),(0,t.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Copy this skill and paste it into Claude Code, Cursor, or any AI coding assistant to integrate this Inworld API into your project."})]}),(0,t.jsx)("button",{onClick:()=>m(!1),className:"flex-shrink-0 p-1.5 rounded-md hover:bg-muted transition-colors","aria-label":"Close",children:(0,t.jsx)(s.X,{className:"size-4"})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 px-4 md:px-6 py-3 flex-wrap",children:[(0,t.jsx)(n.Button,{size:"sm",onClick:k,className:"gap-2",children:x?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Check,{className:"size-3.5"}),"Copied"]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.Copy,{className:"size-3.5"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Copy skill to clipboard"}),(0,t.jsx)("span",{className:"sm:hidden",children:"Copy skill"})]})}),(0,t.jsx)(n.Button,{size:"sm",variant:"outline",asChild:!0,children:(0,t.jsx)("a",{href:"https://platform.inworld.ai/",target:"_blank",rel:"noopener noreferrer",children:"Get started yourself"})}),(0,t.jsxs)("div",{className:"flex gap-3 text-xs",children:[(0,t.jsx)("a",{href:"https://platform.inworld.ai/api-keys",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Get API Key"}),(0,t.jsx)("a",{href:"https://docs.inworld.ai",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Docs"}),(0,t.jsx)("a",{href:"https://github.com/inworld-ai/inworld-api-examples",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"Examples"})]})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-4 md:px-6 pb-6",children:(0,t.jsx)("div",{className:"rounded-lg border border-border bg-muted/30",children:(0,t.jsx)("pre",{className:"p-3 md:p-4 text-[11px] leading-[1.6] text-foreground/80 whitespace-pre-wrap break-all font-mono overflow-x-hidden",children:e})})})]})]})]})}])},65172,e=>{"use strict";e.s(["PortableTextHeadingContext",()=>H,"default",()=>K],65172);var t=e.i(843476),l=e.i(271645);function n(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(void 0===e.marks||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function i(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>
1"object"==typeof e&&"_type"in e)}function r(e){return i(e)&&"listItem"in e&&"string"==typeof e.listItem&&(void 0===e.level||"number"==typeof e.level)}function s(e){return"@list"===e._type}function a(e){return"@span"===e._type}function o(e){return"@text"===e._type}let c=["strong","em","code","underline","strike-through"];function d(e,t,l){if(!n(e)||!e.marks||!e.marks.length)return[];let i=e.marks.slice(),r={};return i.forEach(e=>{r[e]=1;for(let i=t+1;i<l.length;i++){let t=l[i];if(t&&n(t)&&Array.isArray(t.marks)&&-1!==t.marks.indexOf(e))r[e]++;else break}}),i.sort((e,t)=>(function(e,t,l){let n=e[t],i=e[l];if(n!==i)return i-n;let r=c.indexOf(t),s=c.indexOf(l);return r===s?t.localeCompare(l):r-s})(r,e,t))}function u(e,t,l){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:l,level:e.level||1,listItem:e.listItem,children:[e]}}function h(e,t){let l=t.level||1,i=t.listItem||"normal",r="string"==typeof t.listItem;if(s(e)&&(e.level||1)===l&&r&&(e.listItem||"normal")===i)return e;if(!("children"in e))return;let a=e.children[e.children.length-1];return a&&!n(a)?h(a,t):void 0}let m={textDecoration:"underline"},x=(e,t)=>`[@portabletext/react] Unknown ${e}, specify a component for it in the \`components.${t}\` prop`,p=e=>x(`block type "${e}"`,"types");function f(e){console.warn(e)}let y={display:"none"},k={types:{},block:{normal:({children:e})=>(0,t.jsx)("p",{children:e}),blockquote:({children:e})=>(0,t.jsx)("blockquote",{children:e}),h1:({children:e})=>(0,t.jsx)("h1",{children:e}),h2:({children:e})=>(0,t.jsx)("h2",{children:e}),h3:({children:e})=>(0,t.jsx)("h3",{children:e}),h4:({children:e})=>(0,t.jsx)("h4",{children:e}),h5:({children:e})=>(0,t.jsx)("h5",{children:e}),h6:({children:e})=>(0,t.jsx)("h6",{children:e})},marks:{em:({children:e})=>(0,t.jsx)("em",{children:e}),strong:({children:e})=>(0,t.jsx)("strong",{children:e}),code:({children:e})=>(0,t.jsx)("code",{children:e}),underline:({children:e})=>(0,t.jsx)("span",{style:m,children:e}),"strike-through":({children:e})=>(0,t.jsx)("del",{children:e}),link:({children:e,value:l})=>(0,t.jsx)("a",{href:l?.href,children:e})},list:{number:({children:e})=>(0,t.jsx)("ol",{children:e}),bullet:({children:e})=>(0,t.jsx)("ul",{children:e})},listItem:({children:e})=>(0,t.jsx)("li",{children:e}),hardBreak:()=>(0,t.jsx)("br",{}),unknownType:({value:e,isInline:l})=>{let n=p(e._type);return(0,t.jsx)(l?"span":"div",{style:y,children:n})},unknownMark:({markType:e,children:l})=>(0,t.jsx)("span",{className:`unknown__pt__mark__${e}`,children:l}),unknownList:({children:e})=>(0,t.jsx)("ul",{children:e}),unknownListItem:({children:e})=>(0,t.jsx)("li",{children:e}),unknownBlockStyle:({children:e})=>(0,t.jsx)("p",{children:e})};function b(e,t,l){let n=t[l],i=e[l];return"function"==typeof n||n&&"function"==typeof i?n:n?{...i,...n}:i}function v({value:e,components:n,listNestingMode:i,onMissingComponent:s=f}){let a=s||w,o=function(e,t){let l=[],n;for(let a=0;a<e.length;a++){let o=e[a];if(o){var i,s;if(!r(o)){l.push(o),n=void 0;continue}if(!n){n=u(o,a,t),l.push(n);continue}if(i=o,s=n,(i.level||1)===s.level&&i.listItem===s.listItem){n.children.push(o);continue}if((o.level||1)>n.level){let e=u(o,a,t);if("html"===t){let t=n.children[n.children.length-1],l={...t,children:[...t.children,e]};n.children[n.children.length-1]=l}else n.children.push(e);n=e;continue}if((o.level||1)<n.level){let e=l[l.length-1],i=e&&h(e,o);if(i){(n=i).children.push(o);continue}n=u(o,a,t),l.push(n);continue}if(o.listItem!==n.listItem){let e=l[l.length-1],i=e&&h(e,{level:o.level||1});if(i&&i.listItem===o.listItem){(n=i).children.push(o);continue}n=u(o,a,t),l.push(n);continue}console.warn("Unknown state encountered for block",o),l.push(o)}}return l}(Array.isArray(e)?e:[e],i||"html"),c=(0,l.useMemo)(()=>n?function(e,t){let{block:l,list:n,listItem:i,marks:r,types:s,...a}=t;return{...e,block:b(e,t,"block"),list:b(e,t,"list"),listItem:b(e,t,"listItem"),marks:b(e,t,"marks"),types:b(e,t,"types"),...a}}(k,n):k,[n]),d=(0,l.useMemo)(()=>j(c,a),[c,a]);return(0,t.jsx)(t.Fragment,{children:o.map((e,t)=>d({node:e,index:t,isInline:!1,renderNode:d}))})}let j=(e,l)=>function n(c){var d,u,h,m,f,y,k,b;let v,j,{node:w,index:_,isInline:N}=c,T=w._key||`node-${_}`;return s(w)?function(i,r,s){let a=i.children.map((e,t)=>n({node:e._key?e:{...e,_key:`li-${r}-${t}`},index:t,isInline:!1,renderNode:n})),o=e.list,c=("function"==typeof o?o:o[i.listItem])||e.unknownList;if(c===e.unknownList){let e=i.listItem||"bullet";l(x(`list style "${e}"`,"list"),{nodeType:"listStyle",type:e})}return(0,t.jsx)(c,{value:i,index:r,isInline:!1,renderNode:n,children:a},s)}(w,_,T):r(w)?function(i,r,s){let a=g({node:i,index:r,isInline:!1,renderNode:n}),o=e.listItem,c=("function"==typeof o?o:o[i.listItem])||e.unknownListItem;if(c===e.unknownListItem){let e=i.listItem||"bullet";l(x(`list item style "${e}"`,"listItem"),{type:e,nodeType:"listItemStyle"})}let d=a.children;if(i.style&&"normal"!==i.style){let{listItem:e,...t}=i;d=n({node:t,index:r,isInline:!1,renderNode:n})}return(0,t.jsx)(c,{value:i,index:r,isInline:!1,renderNode:n,children:d},s)}(w,_,T):a(w)?function(i,r){let{markDef:s,markType:c,markKey:d}=i,u=e.marks[c]||e.unknownMark,h=i.children.map((e,t)=>n({node:e,index:t,isInline:!0,renderNode:n}));return u===e.unknownMark&&l(x(`mark type "${c}"`,"marks"),{nodeType:"mark",type:c}),(0,t.jsx)(u,{text:function e(t){let l="";
1return t.children.forEach(t=>{o(t)?l+=t.text:a(t)&&(l+=e(t))}),l}(i),value:s,markType:c,markKey:d,renderNode:n,children:h},r)}(w,T):w._type in e.types?(d=w,u=_,h=T,m=N,(v=e.types[d._type])?(0,t.jsx)(v,{value:d,isInline:m,index:u,renderNode:n},h):null):i(w)?function(i,r,s,a){let{_key:o,...c}=g({node:i,index:r,isInline:a,renderNode:n}),d=c.node.style||"normal",u=("function"==typeof e.block?e.block:e.block[d])||e.unknownBlockStyle;return u===e.unknownBlockStyle&&l(x(`block style "${d}"`,"block"),{nodeType:"blockStyle",type:d}),(0,t.jsx)(u,{...c,value:c.node,renderNode:n},s)}(w,_,T,N):o(w)?function(l,n){if("\n"===l.text){let l=e.hardBreak;return l?(0,t.jsx)(l,{},n):"\n"}return l.text}(w,T):(f=w,y=_,k=T,b=N,l(p(f._type),{nodeType:"block",type:f._type}),j=e.unknownType,(0,t.jsx)(j,{value:f,isInline:b,index:y,renderNode:n},k))};function g(e){let{node:t,index:l,isInline:i,renderNode:r}=e,s=(function(e){let{children:t}=e,l=e.markDefs??[];if(!t||!t.length)return[];let i=t.map(d),r={_type:"@span",children:[],markType:"<unknown>"},s=[r];for(let e=0;e<t.length;e++){let r=t[e];if(!r)continue;let a=i[e]||[],o=1;if(s.length>1)for(;o<s.length;o++){let e=s[o]?.markKey||"",t=a.indexOf(e);if(-1===t)break;a.splice(t,1)}let c=(s=s.slice(0,o))[s.length-1];if(c){for(let e of a){let t=l?.find(t=>t._key===e),n={_type:"@span",_key:r._key,children:[],markDef:t,markType:t?t._type:e,markKey:e};c.children.push(n),s.push(n),c=n}if(n(r)){let e=r.text.split("\n");for(let t=e.length;t-- >1;)e.splice(t,0,"\n");c.children=c.children.concat(e.map(e=>({_type:"@text",text:e})))}else c.children=c.children.concat(r)}}return r.children})(t).map((e,t)=>r({node:e,isInline:!0,index:t,renderNode:r}));return{_key:t._key||`block-${l}`,children:s,index:l,isInline:i,node:t}}function w(){}var _=e.i(154097),N=e.i(147737);let T=({children:e,value:l})=>(0,N.isLinkValid)(l)?(0,t.jsx)(_.default,{link:l,className:"underline hover:opacity-70",children:e}):e;var I=e.i(296072),C=e.i(770703),A=e.i(686529),L=e.i(132441),$=e.i(604608),D=e.i(184746);function S(e){let{buttons:n,integrateSkill:i,integrateHideOnMobile:r}=e.value,s=l.default.useContext(H);return n&&0!==n.length?(0,t.jsx)("div",{className:"flex flex-wrap gap-2 items-center my-10",children:n.map((e,n)=>{let a=(0,N.getLinkProps)(e.linkWithLabel.link),o=(0,$.isExternalDomain)(a?.href);return(0,t.jsxs)(l.default.Fragment,{children:[(0,t.jsx)(L.Button,{variant:e.variant,asChild:!0,className:e.hideOnMobile?"hidden md:inline-flex":void 0,children:(0,t.jsx)(_.default,{link:e.linkWithLabel.link,onClick:t=>{t.stopPropagation(),window.dataLayer&&window.dataLayer.push({event:o?"outbound_cta_clicked":"cta_clicked",cta_location:s,cta_text:e.linkWithLabel.label})},children:e.mobileLabel?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"md:hidden",children:e.mobileLabel}),(0,t.jsx)("span",{className:"hidden md:inline",children:e.linkWithLabel.label})]}):e.linkWithLabel.label})}),0===n&&i&&(0,t.jsx)(D.default,{skillText:i,variant:"ghost",ctaLocation:s,className:r?"hidden md:inline-flex":void 0})]},e._key)})}):null}function B(e){let{quote:l,author:n}=e.value;return l&&n?(0,t.jsxs)("div",{className:"flex flex-wrap gap-8 items-center !my-16 py-16 border-t border-b",children:[(0,t.jsx)(I.Text,{as:"blockquote",variant:"quote",className:"w-full text-center",children:l}),(0,t.jsx)(I.Text,{variant:"md",className:"w-full text-center",children:n})]}):null}var W=e.i(368902),z=e.i(174886),E=e.i(643531),P=e.i(652992),M=e.i(530734);function O(e){let{shortCode:l}=e.value,{copied:n,copy:i}=(0,P.useCopyToClipboard)();if(!l)return null;let r=function(e=[]){return Array.isArray(e)?e.map(e=>"block"===e._type&&e.children?e.children.map(e=>e.text).join(""):"").join("\n\n"):""}(l);return(0,t.jsxs)("div",{className:(0,A.cn)("bg-background-raised/50 py-2 px-3 rounded flex items-start justify-between gap-2"),children:[(0,t.jsx)("div",{className:"min-h-6 flex items-center",children:(0,t.jsx)("div",{children:(0,t.jsx)(K,{blocks:l,variant:"code"})})}),(0,t.jsxs)("button",{onClick:()=>{i(r),(0,M.pushToDataLayer)("website_code_block_copy",{variant:"short"})},className:"relative shrink-0 p-1 hover:bg-background-hover rounded transition-colors","aria-label":"Copy to clipboard",children:[(0,t.jsx)(z.Copy,{className:(0,A.cn)("size-4 transition-all duration-200 text-disabled-foreground hover:text-foreground",n&&"opacity-0 scale-0")}),(0,t.jsx)(E.Check,{className:(0,A.cn)("size-4 absolute right-1 top-1/2 -translate-y-1/2 transition-all duration-200",n?"opacity-100 scale-100":"opacity-0 scale-0")})]})]})}var R=e.i(424154);function F({value:e}){let{html:n}=e,[i,r]=(0,l.useState)("");return((0,l.useEffect)(()=>
1{n&&r(R.default.sanitize(n,{FORBID_TAGS:["script"],FORBID_ATTR:["onerror","onload","onclick","onmouseover","onmouseout","onmouseenter","onmouseleave","onfocus","onblur","onchange","onsubmit","onreset","onkeydown","onkeyup","onkeypress"],ALLOW_DATA_ATTR:!0,ADD_TAGS:["iframe","style"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","loading"],FORCE_BODY:!0}))},[n]),n)?(0,t.jsx)("div",{className:"html-block my-6",dangerouslySetInnerHTML:{__html:i}}):null}let H=l.default.createContext("content_section"),q=(0,C.default)(()=>e.A(28928),{loadableGenerated:{modules:[804951]}}),G=(0,C.default)(()=>e.A(174057),{loadableGenerated:{modules:[155128]}}),U=(0,C.default)(()=>e.A(169657),{loadableGenerated:{modules:[633560]}}),K=function(e){let{blocks:l,components:n,tight:i,className:r,...s}=e,a=Array.isArray(l)?l.find(e=>e?._type==="block"&&("h1"===e.style||"h2"===e.style||"h3"===e.style||"h4"===e.style)):null,o=a?.style==="h1"?"hero_section":(0,W.sanitizeLocationText)((0,W.extractPortableTextHeading)(l,"content_section"));return(0,t.jsx)(H.Provider,{value:o,children:(0,t.jsx)(()=>(0,t.jsx)(v,{value:l,components:{types:{videoBlock:G,imageBlock:U,buttonsBlock:S,responsiveText:({value:e})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(I.Text,{as:"div",className:(0,A.cn)("max-w-md md:hidden",r),...s,children:e.mobile}),(0,t.jsx)(I.Text,{as:"div",className:(0,A.cn)("max-w-md hidden md:block",r),...s,children:e.desktop})]}),blockquoteWithAuthorBlock:B,shortCodeSnippet:O,longCodeSnippet:q,htmlBlock:F,undefined:()=>null},block:{normal:({children:e})=>(0,t.jsx)(I.Text,{as:"div",className:(0,A.cn)(i&&"max-w-[480px]",r),...s,children:e}),h1:({children:e})=>(0,t.jsx)(I.Text,{as:"h1",variant:"h1",className:(0,A.cn)(i&&"max-w-[550px]",r),...s,children:e}),h2:({children:e})=>(0,t.jsx)(I.Text,{as:"h2",variant:"h2",className:(0,A.cn)(i&&"max-w-[550px]",r),...s,children:e}),h3:({children:e})=>(0,t.jsx)(I.Text,{as:"h3",variant:"h3",className:(0,A.cn)(i&&"max-w-[550px]",r),...s,children:e}),h4:({children:e})=>(0,t.jsx)(I.Text,{as:"h4",variant:"h4",className:(0,A.cn)(i&&"max-w-[550px]",r),...s,children:e}),blockquote:({children:e})=>(0,t.jsx)(I.Text,{as:"blockquote",variant:"quote",className:(0,A.cn)(i&&"max-w-[550px]","border-t border-b text-center py-16",r),...s,children:e}),...n?.block},marks:{link:e=>(0,t.jsx)(T,{value:e.value,...e}),muted:e=>(0,t.jsx)("span",{className:"text-muted-foreground",children:e.children}),accent:e=>(0,t.jsx)("span",{className:"text-accent italic",children:e.children})},list:{bullet:({children:e})=>(0,t.jsx)("ul",{className:"list-disc",...s,children:e}),number:({children:e})=>(0,t.jsx)("ol",{className:"list-decimal",...s,children:e}),"lower-alpha":({children:e})=>(0,t.jsx)("ol",{className:"list-[lower-alpha]",...s,children:e}),"upper-alpha":({children:e})=>(0,t.jsx)("ol",{className:"list-[upper-alpha]",...s,children:e}),"lower-roman":({children:e})=>(0,t.jsx)("ol",{className:"list-[lower-roman]",...s,children:e}),"upper-roman":({children:e})=>(0,t.jsx)("ol",{className:"list-[upper-roman]",...s,children:e})},listItem:{bullet:({children:e})=>(0,t.jsx)(I.Text,{as:"li",className:"list-outside",...s,children:e}),number:({children:e})=>(0,t.jsx)(I.Text,{as:"li",className:"list-outside",...s,children:e}),"lower-alpha":({children:e})=>(0,t.jsx)(I.Text,{as:"li",className:"list-outside",...s,children:e}),"upper-alpha":({children:e})=>(0,t.jsx)(I.Text,{as:"li",className:"list-outside",...s,children:e}),"lower-roman":({children:e})=>(0,t.jsx)(I.Text,{as:"li",className:"list-outside",...s,children:e}),"upper-roman":({children:e})=>(0,t.jsx)(I.Text,{as:"li",className:"list-outside",...s,children:e})}}}),{})})}},36276,e=>{"use strict";var t=e.i(843476),l=e.i(657688),n=e.i(686529);let i="https://static.inworld.ai/public-website-2025";e.s(["default",0,({image:e,height:r,width:s,mode:a="cover",quality:o=75,alt:c,priority:d=!1,className:u,sizes:h,loading:m,style:x})=>{let p,f=e?.asset;if(!f?._id)return null;let y=function(e){let t,l=(t=e.match(/^image-([a-f0-9]+)-(\d+)x(\d+)-(\w+)$/))?{hash:t[1],sourceWidth:parseInt(t[2],10),sourceHeight:parseInt(t[3],10),ext:t[4]}:null;if(!l)return null;let n=`/images/content/${l.hash}
1-${l.sourceWidth}x${l.sourceHeight}.${l.ext}`;return{src:`${i}${n}`,parsed:l}}(f._id);if(!y)return null;let{src:k,parsed:b}=y,v=c||e.altText||f.altText||"",j=s??b.sourceWidth,g=r??(s?Math.round(s*(b.sourceHeight/b.sourceWidth)):b.sourceHeight),w=e.hotspot,_=e.crop;if(_&&w){let e=_.left??0,t=_.right??0,l=_.top??0,n=_.bottom??0,i=1-e-t,r=1-l-n;if(i>0&&r>0){let t=Math.max(0,Math.min(1,((w.x??.5)-e)/i)),n=Math.max(0,Math.min(1,((w.y??.5)-l)/r));p=`${100*t}% ${100*n}%`}}else if(w)p=`${(w.x??.5)*100}% ${(w.y??.5)*100}%`;else if(_){let e=((_.left??0)+(1-(_.right??0)))/2,t=((_.top??0)+(1-(_.bottom??0)))/2;p=`${100*e}% ${100*t}%`}let N="cover"!==a&&_&&(_.top||_.right||_.bottom||_.left)?`inset(${(_.top??0)*100}% ${(_.right??0)*100}% ${(_.bottom??0)*100}% ${(_.left??0)*100}%)`:void 0,T={...x,...p?{objectPosition:p}:{},...N?{clipPath:N}:{}};if(i&&"svg"!==b.ext){let e=k.replace(/\.[^.]+$/,".avif"),l=(0,n.cn)("block w-full max-w-full h-auto","cover"===a?"object-cover":"object-contain",u);return(0,t.jsxs)("picture",{className:"contents",children:[(0,t.jsx)("source",{srcSet:e,type:"image/avif"}),(0,t.jsx)("img",{src:k,alt:v,width:j,height:g,decoding:"async",loading:d?"eager":m??"lazy",fetchPriority:d?"high":"auto",className:l,style:T})]})}return(0,t.jsx)(l.default,{src:k,alt:v,width:j,height:g,quality:o,priority:d,fetchPriority:d?"high":void 0,sizes:h,...!d&&m?{loading:m}:{},className:(0,n.cn)("block w-full max-w-full h-auto","cover"===a?"object-cover":"object-contain",u),style:T})}])},746047,e=>{"use strict";var t=e.i(843476),l=e.i(271645),n=e.i(686529);let i=l.default.forwardRef(({children:e,globals:l,_type:i,className:r,theme:s,...a},o)=>{let{sectionId:c}=l||{},d=a["data-sanity"];return(0,t.jsx)("section",{ref:o,"data-slicetype":i,id:c||null,className:(0,n.cn)(s&&`${s} bg-background text-foreground`,c&&"scroll-mt-20",r),"data-sanity":d,children:e})});i.displayName="SliceSection",e.s(["default",0,i])},373647,e=>{"use strict";var t=e.i(271645);e.s(["default",0,function({theme:e}){return(0,t.useEffect)(()=>{let t=document.body.classList,l=Array.from(t).filter(e=>e.startsWith("theme-"));t.remove(...l),t.add(e||"theme-default")},[e]),null}])},877276,e=>{"use strict";var t=e.i(843476),l=e.i(686529),n=e.i(746047),i=e.i(36276),r=e.i(65172),s=e.i(132441),a=e.i(154097),o=e.i(687671),c=e.i(147737),d=e.i(604608),u=e.i(368902),h=e.i(530734);e.s(["default",0,function(e){let{cardTheme:m,backgroundImage:x,assetImage:p,heading:f,buttons:y}=e,k=f?(0,u.extractPortableTextHeading)(f,"Card Section"):"Card Section",b=(0,u.sanitizeLocationText)(k);return(0,t.jsx)(n.default,{...e,children:(0,t.jsx)("div",{className:"grid-default xpad",children:(0,t.jsxs)("div",{className:(0,l.cn)("relative","col-[1/-1]",!x&&"bg-background",m&&`${m} text-foreground`,"rounded-lg overflow-hidden","flex max-md:flex-col","min-h-[300px]"),children:[x&&(0,t.jsx)(i.default,{image:x,width:1440,height:400,sizes:(0,o.default)({md:"1440px"}),className:"absolute inset-0 h-full object-cover w-full"}),(0,t.jsxs)("div",{className:" md:basis-[55%] h-full p-6 max-md:!pt-8 flex flex-col justify-between gap-10 relative z-10",children:[f&&(0,t.jsx)("div",{className:"prose",children:(0,t.jsx)(r.default,{blocks:f,tight:!0})}),y?.length>0&&(0,t.jsx)("div",{className:"flex flex-col items-start sm:flex-row sm:flex-wrap gap-3",children:y.map((e,l)=>{let n=(0,c.getLinkProps)(e.linkWithLabel.link),i=(0,d.isExternalDomain)(n?.href);return(0,t.jsx)(s.Button,{variant:e.variant,asChild:!0,children:(0,t.jsx)(a.default,{link:e.linkWithLabel.link,onClick:t=>{t.stopPropagation(),(0,h.pushToDataLayer)(i?"outbound_cta_clicked":"cta_clicked",{cta_location:b,cta_text:e.linkWithLabel.label})},children:e.linkWithLabel.label})},e._key??l)})})]}),p&&(0,t.jsx)("div",{className:"md:basis-[45%] relative z-10",children:(0,t.jsx)(i.default,{image:p,width:400,sizes:(0,o.default)({md:"400px"})})})]})})})}])},687671,e=>{"use strict";e.s(["default",0,function(e){let t={sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},l="";return"string"==typeof e?e:("object"==typeof e&&(Object.keys(t).map(n=>{e[n]&&(l+=`(min-width: ${t[n]}) ${e[n]}, `)}),l+=`${e.DEFAULT||"100vw"}`),l)}])},604608,368902,e=>{"use strict";e.s(["isExternalDomain",0,function(e){if(!e)return!1;try{if(e.startsWith("/")||e.startsWith("#"))return!1;let t=new URL(e,window.location.origin).hostname;if("localhost"===t||"127.0.0.1"===t||t.startsWith("192.168.")||"inworld.ai"===t||t.endsWith(".inworld.ai"))return!1;return!0}catch(e){return!1}}],604608),e.s(["extractPortableTextHeading",0,function(e,t="Content"){if(!e||!Array.isArray(e))return t;let l=e.find(e=>"block"===e._type&&("h1"===e.style||"h2"===e.style||"h3"===e.style||"h4"===e.style));return l&&l.children?.map(e=>e.text).join("").trim()||t},"sanitizeLocationText",0,function(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"_").substring(0,50)}],368902)},652992,e=>{"use strict";var t=e.i(271645);e.s(["useCopyToClipboard",0,function(e=2e3){let[l,n]=(0,t.useState)(!1),i=(0,t.useRef)(null);return(0,t.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[]),{copied:l,copy:(0,t.useCallback)(t=>{i.current&&clearTimeout(i.current);let l=()=>{n(!0),i.current=setTimeout(()=>{n(!1),i.current=null},e)};function r(){try{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select();let n=document.execCommand("copy");document.body.removeChild(e),n&&l()}catch{}}navigator.clipboard?.writeText?navigator.clipboard.writeText(t).then(l).catch(r):r()},[e])}}])}]);
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.