PageSourceSearch

https://www.braintrust.dev/_next/static/chunks/2ja-d3dajkqqh.js

js braintrust.dev collected 2026-10-02 02:27:16 UTC 32,707 bytes, 44 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="cdc62475-8cb6-0ecc-c0b8-67b275acb3ad")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,822776,e=>{"use strict";var t=e.i(430441),r=e.i(784472);e.s(["ChartAxisTick",0,function({left:e,label:a,side:n="bottom",showMark:o=!0,className:s}){return(0,t.jsx)("div",{className:(0,r.cn)("absolute flex -translate-x-1/2 flex-col items-center","bottom"===n?"top-0":"bottom-0",s),style:{left:e},children:"bottom"===n?(0,t.jsxs)(t.Fragment,{children:[o?(0,t.jsx)("div",{className:"h-1.5 w-px bg-gray-300","aria-hidden":!0}):null,(0,t.jsx)("span",{className:(0,r.cn)("font-display text-sm leading-none tabular-nums text-gray-500",o&&"mt-0.5"),children:a})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,r.cn)("font-display text-sm leading-none tabular-nums text-gray-500",o&&"mb-0.5"),children:a}),o?(0,t.jsx)("div",{className:"h-1.5 w-px bg-gray-300","aria-hidden":!0}):null]})})}])},778348,e=>{"use strict";var t=e.i(430441),r=e.i(297987),a=e.i(546766),n=e.i(224581),o=e.i(784472);function s(e,t,r){return r<t?t:Math.max(t,Math.min(e,r))}function i(e,t){return!(e instanceof Element&&t instanceof Node)||!e.contains(t)}e.s(["ChartHoverTooltip",0,function({children:e,content:l,className:u,delayDuration:c=150}){var d;let p,h,f=(0,r.useRef)(null),m=(0,r.useRef)(null),[y,g]=(0,r.useState)(!1),[v,b]=(0,r.useState)(null),[x,w]=(0,r.useState)(null),[P,j]=(0,r.useState)({width:0,height:0});(0,r.useEffect)(()=>()=>{null!==m.current&&window.clearTimeout(m.current)},[]),(0,r.useEffect)(()=>{if(!y)return;let e=f.current;if(!e)return;let t=()=>{let t=e.getBoundingClientRect();j({width:t.width,height:t.height})};t();let r=new ResizeObserver(t);return r.observe(e),()=>{r.disconnect()}},[y,l]);let C=()=>{null!==m.current&&(window.clearTimeout(m.current),m.current=null)},E=()=>{C(),g(!1),b(null),w(null)},N=(e,t,r)=>{let a;b({x:e,y:t}),w({left:(a=(r.closest("figure")??document.documentElement).getBoundingClientRect()).left,top:a.top,right:a.right,bottom:a.bottom})},S=()=>{C(),m.current=window.setTimeout(()=>{g(!0)},c)},k=v&&x?(d=P.width>0&&P.height>0?P:{width:200,height:64},p=s(v.x-d.width/2,x.left+8,x.right-8-d.width),{left:p,top:s((h=v.y-d.height-12)<x.top+8&&v.y+12+d.height<=x.bottom-8?v.y+12:h,x.top+8,x.bottom-8-d.height)}):void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"contents",onMouseOver:e=>{e.target instanceof Element&&(N(e.clientX,e.clientY,e.target),y||null!==m.current||S())},onMouseMove:e=>{e.target instanceof Element&&N(e.clientX,e.clientY,e.target)},onMouseOut:e=>{i(e.currentTarget,e.relatedTarget)&&E()},onFocus:e=>{if(!(e.target instanceof Element))return;let t=e.target.getBoundingClientRect();N(t.left+t.width/2,t.top,e.target),S()},onBlur:e=>{i(e.currentTarget,e.relatedTarget)&&E()},children:e}),y&&v&&k&&(0,a.createPortal)((0,t.jsx)("div",{ref:f,role:"tooltip",className:(0,o.cn)("pointer-events-none fixed z-50 overflow-auto",n.tooltipSurfaceClassName,"max-w-xs bg-white px-2 py-1.5 font-display text-sm leading-snug font-normal normal-case shadow-none",u),style:k,children:l}),document.body)]})}])},116323,e=>{"use strict";var t=e.i(430441),r=e.i(38111);e.s(["CopyablePrompts",0,function({prompts:e}){return(0,t.jsx)("div",{className:"not-prose my-8 flex flex-col gap-3",children:e.map(e=>(0,t.jsxs)("div",{className:"relative rounded-md border border-primary-200 bg-brand-ice-gray/30 px-4 py-3 pr-12",children:[(0,t.jsx)("p",{className:"m-0 text-xl leading-[1.4] text-primary-900",children:e}),(0,t.jsx)(r.CopyToClipboardButton,{textToCopy:e,"aria-label":"Copy prompt",disableTooltip:!0,variant:"ghost",size:"sm",className:"absolute top-2 right-2 bg-brand-ice-gray/50 p-0 hover:bg-brand-ice-gray"})]},e))})}])},427271,e=>{"use strict";var t=e.i(430441),r=e.i(83559);e.s(["YouTubeEmbed",0,({videoId:e})=>(0,t.jsx)(r.default,{videoId:e,className:"aspect-video w-full",iframeClassName:"w-full h-full"})])},581927,e=>{"use strict";var t=e.i(430441),r=e.i(791333),a=e.i(102134),n=e.i(797338);e.s(["RenderIfAnonymous",0,function({children:e}){let{status:r}=(0,a.useUser)();return"unauthenticated"===r?(0,t.jsx)(t.Fragment,{children:e}):null},"default",0,function({children:e}){return(0,t.jsx)(n.default,{href:(0,r.signUpPath)(),children:e})}])}
2,14117,e=>{"use strict";var t=e.i(430441),r=e.i(297987),a=e.i(495128),n=e.i(934226),o=e.i(324677);e.i(541536);var s=e.i(624349),i=e.i(208442),l=e.i(911189),u=e.i(987452),c=e.i(607760),d=e.i(784472),p=e.i(57332);let h=({children:e,items:r=["TypeScript","Python"]})=>(0,t.jsx)("div",{className:"code-tabs not-prose",children:(0,t.jsxs)(p.Tabs,{defaultValue:r[0],children:[(0,t.jsx)(p.TabsList,{className:"bg-black text-gray-400",children:r.map(e=>(0,t.jsx)(p.TabsTrigger,{value:e,className:"text-gray-400 transition-none data-[state=active]:bg-white/25 data-[state=active]:text-white data-[state=active]:shadow-none data-[state=inactive]:hover:text-gray-200",children:e},e))}),e]})}),f=({children:e,languageName:r})=>(0,t.jsx)(p.TabsContent,{value:r,className:"max-h-none!",children:e}),m=({children:e})=>(0,t.jsx)(f,{languageName:"TypeScript",children:e}),y=({children:e})=>(0,t.jsx)(f,{languageName:"Python",children:e}),g=({children:e})=>(0,t.jsx)(f,{languageName:"cURL",children:e});var v=e.i(220268);let b="gpt-4o-realtime-preview-2024-10-01",x=s.z.object({model:s.z.string().optional().transform(e=>e&&e.trim()),ttl_seconds:s.z.number().min(60),project_name:s.z.string().optional().transform(e=>e&&e.trim()),authToken:s.z.string().min(1).transform(e=>e.trim())});function w(e,t){switch(t=t||"YOUR_TEMPORARY_CREDENTIAL",e){case"typescript":return`import { OpenAI } from "openai";
3const client = new OpenAI({
4  baseURL: "https://api.braintrust.dev/v1/proxy",
5  apiKey: "${t}",
6  // It is safe to store temporary credentials in the browser because they have
7  // limited lifetime and access.
8  dangerouslyAllowBrowser: true,
9});
10
11async function main() {
12  const response = await client.chat.completions.create({
13    model: "gpt-4o-mini",
14    messages: [{ role: "user", content: "What is a proxy?" }],
15  });
16  console.log(response.choices[0].message.content);
17}
18
19main();
20`;case"python":return`from openai import OpenAI
21
22client = OpenAI(
23    base_url="https://api.braintrust.dev/v1/proxy",
24    api_key="${t}",
25)
26
27response = client.chat.completions.create(
28    model="gpt-4o-mini",
29    messages=[{"role": "user", "content": "What is a proxy?"}],
30)
31print(response.choices[0].message.content)
32`;case"curl":return`curl -i https://api.braintrust.dev/v1/proxy/chat/completions \\
33  -H "Content-Type: application/json" \\
34  -H "Accept: application/json" \\
35  -d '{
36    "model": "gpt-4o-mini",
37    "messages": [{ "role": "user", "content": "What is a proxy?" }]
38  }' \\
39  -H "Authorization: Bearer ${t}" \\
40  --compressed
41`}}e.s(["TemporaryCredentialForm",0,function({className:e,id:p,codeSampleDisplayMode:f="auto"}){let[P,j]=(0,r.useState)(""),[C,E]=(0,r.useState)(!1),N="always"===f||"auto"===f&&!!P,S=(0,i.useForm)({resolver:(0,l.zodResolver)(x),defaultValues:{model:b,ttl_seconds:600,authToken:""}}),k=async({authToken:e,model:t,project_name:r,ttl_seconds:a})=>{let n;try{n=await fetch("https://api.braintrust.dev/v1/proxy/credentials",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`},body:JSON.stringify({model:t||void 0,logging:r?{project_name:r,compress_audio:!0}:void 0,ttl_seconds:a}),cache:"no-store"})}catch(e){v.toast.error(`Couldn’t request temporary credential: ${e}`);return}if(!n.ok){let e=await n.text();v.toast.error(`Couldn’t request temporary credential: ${e}`);return}let o=s.z.object({key:s.z.string().min(1)}).safeParse(await n.json());o.success?j(o.data.key):v.toast.error(`Couldn’t request temporary credential: ${o.error}`)},A=S.handleSubmit(async e=>{E(!0),await k(e),E(!1)});return(0,t.jsxs)("div",{className:(0,d.cn)("not-prose flex flex-col gap-4",e),id:p,children:[(0,t.jsx)(o.Form,{...S,children:(0,t.jsxs)("form",{className:"flex max-w-lg flex-col gap-2 rounded-md border-2 border-primary-800 p-4",autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",onSubmit:A,children:[(0,t.jsx)("span",{className:"text-lg font-bold",children:"Temporary credential demo"}),(0,t.jsx)(o.FormField,{control:S.control,name:"authToken",render:({field:e})=>(0,t.jsxs)(o.FormItem,{className:"flex-1",children:[(0,t.jsx)(o.FormLabel,{children:"API key"}),(0,t.jsx)(o.FormControl,{children:(0,t.jsx)(n.Input,{type:"password",spellCheck:!1,...e,value:e.value??"",placeholder:"Braintrust API key or model provider API key",required:!0})}),(0,t.jsxs)(o.FormDescription,{children:["This secret will be encrypted at rest using"," ",(0,t.jsx)(c.BlueLink,{href:"https://en.wikipedia.org/wiki/Transparent_data_encryption",target:"_blank",children:"Transparent Data Encryption"})," ","with a"," ",(0,t.jsx)(c.BlueLink,{href:"https://libsodium.gitbook.io/doc/secret-key_cryptography/aead",target:"_blank",children:"unique 256-bit key and nonce"}),". The encrypted secret will be deleted at the expiration time. The plaintext secret is never saved."]}),(0,t.jsx)(o.FormMessage,{})]})}),(0,t.jsx)(o.FormField,{control:S.control,name:"model",render:({field:e})=>(0,t.jsxs)(o.FormItem,{className:"flex-1",children:[(0,t.jsx)(o.FormLabel,{children:"Model name (optional)"}),(0,t.jsx)(o.FormControl,{children:(0,t.jsx)(n.Input,{type:"text",spellCheck:!1,...e,value:e.value??"",placeholder:b})}),(0,t.jsx)(o.FormDescription,{children:"Enter a model name or leave blank to allow access to any model."}),(0,t.jsx)(o.FormMessage,{})]})}),(0,t.jsx)(o.FormField,{control:S.control,name:"project_name",render:({field:e})=>(0,t.jsxs)(o.FormItem,{className:"flex-1",children:[(0,t.jsx)(o.FormLabel,{children:"Braintrust project name (optional)"}),(0,t.jsx)(o.FormControl,{children:(0,t.jsx)(n.Input,{type:"text",spellCheck:!1,...e,value:e.value??"",placeholder:"My project"})}),(0,t.jsx)(o.FormDescription,{children:"Enter a project name for logging or leave blank to disable logging."}),(0,t.jsx)(o.FormMessage,{})]})}),(0,t.jsx)(o.FormField,{control:S.control,name:"ttl_seconds",render:({field:e})=>(0,t.jsxs)(o.FormItem,{className:"flex-1",children:[(0,t.jsx)(o.FormLabel,{children:"Expiration time"}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[(0,t.jsx)(o.FormControl,{children:(0,t.jsx)(n.Input,{type:"number",spellCheck:!1,...e,value:e.value,onChange:e=>{let t=parseInt(e.target.value);S.setValue("ttl_seconds",isNaN(t)?0:t)},placeholder:"600",required:!0})}),(0,t.jsx)("span",{className:"text-xs text-primary-500",children:"seconds"})]}),(0,t.jsx)(o.FormDescription,{}),(0,t.jsx)(o.FormMessage,{})]})}),(0,t.jsx)(a.Button,{type:"submit",variant:"primary",className:"mt-2",isLoading:C,children:"Generate"})]})}),P&&(0,t.jsx)(u.default,{className:"break-all",data:P,language:"html"}),N&&(0,t.jsxs)(h,{items:["TypeScript","Python","cURL"],children:[(0,t.jsx)(m,{children:(0,t.jsx)(u.default,{className:"break-all",language:"typescript",data:w("typescript",P)})}),(0,t.jsx)(y,{children:(0,t.jsx)(u.default,{className:"break-all",language:"python",data:w("python",P)})}),(0,t.jsx)(g,{children:(0,t.jsx)(u.default,{className:"break-all",language:"bash",data:w("curl",P)})})]})]})}
41],14117)},231958,e=>{"use strict";var t=e.i(430441),r=e.i(250724),a=e.i(495128),n=e.i(784472);let o=({className:e})=>(0,t.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,n.cn)("size-4",e),children:(0,t.jsx)("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})});function s({user:e="braintrustdata",repo:a}){let{data:n,isLoading:o,isError:i}=(0,r.useQuery)({queryKey:["githubStars",e,a],queryFn:async()=>{let t=await fetch(`https://api.github.com/repos/${e}/${a}`);if(!t.ok)throw Error("Network response was not ok");return t.json()},staleTime:864e5,gcTime:864e5});return o?null:i||!n?(0,t.jsx)("span",{className:"text-xs text-muted-foreground tabular-nums",children:"-"}):(0,t.jsx)("span",{className:"text-xs text-muted-foreground tabular-nums",children:n.stargazers_count>=1e3?`${(n.stargazers_count/1e3).toFixed(1)}k`:n.stargazers_count.toLocaleString()})}e.s(["GithubIcon",0,o,"StarGithubButton",0,function({user:e="braintrustdata",repo:r,children:i="Star us on GitHub"}){return(0,t.jsxs)("a",{href:`https://github.com/${e}/${r}`,rel:"noreferrer",className:(0,n.cn)((0,a.buttonVariants)(),"inline-flex items-center text-black hover:underline rounded-sm decoration-none !no-underline py-1 px-2"),target:"_blank",children:[(0,t.jsx)(o,{}),(0,t.jsxs)("span",{className:"flex items-baseline",children:[(0,t.jsx)("span",{className:"mr-1",children:i}),(0,t.jsx)(s,{user:e,repo:r})]})]})},"StarsCount",0,s])},659979,(e,t,r)=>{function a(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}t.exports=function(e,t){t=t||{};var r,n,o=typeof e;if("string"===o&&e.length>0){var s=e;if(!((s=String(s)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(s);if(i){var l=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===o&&!1===isNaN(e)){return t.long?a(r=e,864e5,"day")||a(r,36e5,"hour")||a(r,6e4,"minute")||a(r,1e3,"second")||r+" ms":(n=e)>=864e5?Math.round(n/864e5)+"d":n>=36e5?Math.round(n/36e5)+"h":n>=6e4?Math.round(n/6e4)+"m":n>=1e3?Math.round(n/1e3)+"s":n+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},600741,(e,t,r)=>{var a;function n(e){function t(){if(t.enabled){var e=+new Date;t.diff=e-(a||e),t.prev=a,t.curr=e,a=e;for(var n=Array(arguments.length),o=0;o<n.length;o++)n[o]=arguments[o];n[0]=r.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var s=0;
41n[0]=n[0].replace(/%([a-zA-Z%])/g,function(e,a){if("%%"===e)return e;s++;var o=r.formatters[a];if("function"==typeof o){var i=n[s];e=o.call(t,i),n.splice(s,1),s--}return e}),r.formatArgs.call(t,n),(t.log||r.log||console.log.bind(console)).apply(t,n)}}return t.namespace=e,t.enabled=r.enabled(e),t.useColors=r.useColors(),t.color=function(e){var t,a=0;for(t in e)a=(a<<5)-a+e.charCodeAt(t)|0;return r.colors[Math.abs(a)%r.colors.length]}(e),"function"==typeof r.init&&r.init(t),t}(r=t.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},r.disable=function(){r.enable("")},r.enable=function(e){r.save(e),r.names=[],r.skips=[];for(var t=("string"==typeof e?e:"").split(/[\s,]+/),a=t.length,n=0;n<a;n++)t[n]&&("-"===(e=t[n].replace(/\*/g,".*?"))[0]?r.skips.push(RegExp("^"+e.substr(1)+"$")):r.names.push(RegExp("^"+e+"$")))},r.enabled=function(e){var t,a;for(t=0,a=r.skips.length;t<a;t++)if(r.skips[t].test(e))return!1;for(t=0,a=r.names.length;t<a;t++)if(r.names[t].test(e))return!0;return!1},r.humanize=e.r(659979),r.names=[],r.skips=[],r.formatters={}},39359,(e,t,r)=>{var a=e.i(931375);function n(){var e;try{e=r.storage.debug}catch(e){}return!e&&void 0!==a.default&&"env"in a.default&&(e=a.default.env.DEBUG),e}(r=t.exports=e.r(600741)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var a="color: "+this.color;e.splice(1,0,a,"color: inherit");var n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(n++,"%c"===e&&(o=n))}),e.splice(o,0,a)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=n,r.useColors=function(){return"u">typeof window&&!!window.process&&"renderer"===window.process.type||"u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="u">typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(n())},429856,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
41setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],t.exports=r.default},308240,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],t.exports=r.default},151830,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},t.exports=r.default},956258,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a,n=(a=e.r(151830))&&a.__esModule?a:{default:a};r.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},t.exports=r.default},826548,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=i(e.r(39359)),n=i(e.r(429856)),o=i(e.r(308240)),s=i(e.r(956258));function i(e){return e&&e.__esModule?e:{default:e}}var l=(0,a.default)("youtube-player"),u={};u.proxyEvents=function(e){var t={},r=function(r){var a="on"+r.slice(0,1).toUpperCase()+r.slice(1);t[a]=function(t){l('event "%s"',a,t),e.trigger(r,t)}},a=!0,n=!1,s=void 0;try{for(var i,u=o.default[Symbol.iterator]();!(a=(i=u.next()).done);a=!0){var c=i.value;r(c)}}catch(e){n=!0,s=e}finally{try{!a&&u.return&&u.return()}finally{if(n)throw s}}return t},u.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},a=function(a){t&&s.default[a]?r[a]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.then(function(e){var t=s.default[a],n=e.getPlayerState(),o=e[a].apply(e,r);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(n)?new Promise(function(r){e.addEventListener("onStateChange",function a(){var n=e.getPlayerState(),o=void 0;"number"==typeof t.timeout&&(o=setTimeout(function(){e.removeEventListener("onStateChange",a),r()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(n)&&(e.removeEventListener("onStateChange",a),clearTimeout(o),r())})}).then(function(){return o}):o})}:r[a]=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return e.then(function(e){return e[a].apply(e,r)})}},o=!0,i=!1,l=void 0;try{for(var u,c=n.default[Symbol.iterator]();!(o=(u=c.next()).done);o=!0){var d=u.value;a(d)}}catch(e){i=!0,l=e}finally{try{!o&&c.return&&c.return()}finally{if(i)throw l}}return r},r.default=u,t.exports=r.default},904645,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=i(e.r(112311)),o=i(e.r(717129)),s=i(e.r(826548));function i(e){return e&&e.__esModule?e:{default:e}}var l=void 0;r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(0,n.default)();if(l||(l=(0,o.default)(i)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=s.default.proxyEvents(i);var u=new Promise(function(r){(void 0===e?"undefined":a(e))==="object"&&e.playVideo instanceof Function?r(e):l.then(function(a){var n=new a.Player(e,t);return i.on("ready",function(){r(n)}),null})}),c=s.default.promisifyPlayer(u,r);return c.on=i.on,c.off=i.off,c},t.exports=r.default},83559,e=>{"use strict";var t=e.i(304153),r=e.i(297987),a=e.i(65932),n=e.i(904645),o=Object.defineProperty,s=Object.defineProperties,i=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,d=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&d(e,r,t[r]);if(l)for(var r of l(t))c.call(t,r)&&d(e,r,t[r]);return e};function h(e={}){let t,r;return t=p({},e),r={height:0,width:0,playerVars:s(p({},e.playerVars),i({autoplay:0,start:0,end:0}))},s(t,i(r))}var f={videoId:t.default.string,id:t.default.string,className:t.default.string,iframeClassName:t.default.string,style:t.default.object,title:t.default.string,loading:t.default.oneOf(["lazy","eager"]),opts:t.default.objectOf(t.default.any),onReady:t.default.func,onError:t.default.func,onPlay:t.default.func,onPause:t.default.func,onEnd:t.default.func,onStateChange:t.default.func,onPlaybackRateChange:t.default.func,onPlaybackQualityChange:t.default.func},m=class extends r.default.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,r;return null==(r=(t=this.props).onReady)?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return null==(r=(t=this.props).onError)?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,a,n,o,s,i,l;switch(null==(r=(t=this.props).onStateChange)||r.call(t,e),e.data){case m.PlayerState.ENDED:null==(n=(a=this.props).onEnd)||n.call(a,e);break;case m.PlayerState.PLAYING:null==(s=(o=this.props).onPlay)||s.call(o,e);break;case m.PlayerState.PAUSED:null==(l=(i=this.props).onPause)||l.call(i,e)}},this.onPlayerPlaybackRateChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackRateChange)?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackQualityChange)?void 0:r.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("u"<typeof document)return;if(this.destroyPlayerPromise)return void this.destroyPlayerPromise.then(this.createPlayer);let e=s(p({},this.props.opts),i({videoId:this.props.videoId}));this.internalPlayer=(0,n.default)(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,a;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let n=!1,o={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(n=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(o.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(o.endSeconds=this.props.opts.playerVars.end)),n){null==(r=this.internalPlayer)||r.loadVideoById(o);return}null==(a=this.internalPlayer)||a.cueVideoById(o)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){let t,r;return t=this,r=function*(){var t,r,n,o,s,i;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(r=e.opts)?void 0:r.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(o=e.opts)?void 0:o.height)!==(null==(s=t.opts)?void 0:s.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),i=this.props,e.videoId===i.videoId&&(0,a.default)(h(e.opts),h(i.opts))||(yield this.resetPlayer()),function(e,t){var r,a;if(e.videoId!==t.videoId)return!0;let n=(null==(r=e.opts)?void 0:r.playerVars)||{},o=(null==(a=t.opts)?void 0:a.playerVars)||{};return n.start!==o.start||n.end!==o.end}(e,this.props)&&this.updateVideo()},new Promise((e,a)=>{var n=e=>
41{try{s(r.next(e))}catch(e){a(e)}},o=e=>{try{s(r.throw(e))}catch(e){a(e)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(n,o);s((r=r.apply(t,null)).next())})}componentWillUnmount(){this.destroyPlayer()}render(){return r.default.createElement("div",{className:this.props.className,style:this.props.style},r.default.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};m.propTypes=f,m.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},m.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5},e.s(["default",0,m])},353423,(e,t,r)=>{!function(a,n){if(t.exports)t.exports=n();else if("function"==typeof define&&define.amd){let a;void 0!==(a=n(e.r,r,t))&&e.v(a)}else this[a]=n()}("$script",function(){var e,t,r=document,a=r.getElementsByTagName("head")[0],n="push",o="readyState",s="onreadystatechange",i={},l={},u={},c={};function d(e,t){for(var r=0,a=e.length;r<a;++r)if(!t(e[r]))return!1;return 1}function p(e,t){d(e,function(e){return t(e),1})}function h(t,r,a){t=t[n]?t:[t];var o=r&&r.call,s=o?r:a,m=o?t.join(""):r,y=t.length;function g(e){return e.call?e():i[e]}function v(){if(!--y)for(var e in i[m]=1,s&&s(),u)d(e.split("|"),g)&&!p(u[e],g)&&(u[e]=[])}return setTimeout(function(){p(t,function t(r,a){return null===r?v():(a||/^https?:\/\//.test(r)||!e||(r=-1===r.indexOf(".js")?e+r+".js":e+r),c[r])?(m&&(l[m]=1),2==c[r]?v():setTimeout(function(){t(r,!0)},0)):void(c[r]=1,m&&(l[m]=1),f(r,v))})},0),h}function f(e,n){var i,l=r.createElement("script");l.onload=l.onerror=l[s]=function(){(!l[o]||/^c|loade/.test(l[o]))&&!i&&(l.onload=l[s]=null,i=1,c[e]=2,n())},l.async=1,l.src=t?e+(-1===e.indexOf("?")?"?":"&")+t:e,a.insertBefore(l,a.lastChild)}return h.get=f,h.order=function(e,t,r){!function a(n){n=e.shift(),e.length?h(n,a):h(n,t,r)}()},h.path=function(t){e=t},h.urlArgs=function(e){t=e},h.ready=function(e,t,r){e=e[n]?e:[e];var a,o=[];return!p(e,function(e){i[e]||o[n](e)})&&d(e,function(e){return i[e]})?t():(u[a=e.join("|")]=u[a]||[],u[a][n](t),r&&r(o)),h},h.done=function(e){h([null],e)},h})},94572,e=>{"use strict";var t=e.i(430441),r=e.i(297987),a="createTweet",n=function(t){var n=r.default.useRef(null),o=r.default.useState(!0),s=o[0],i=o[1];return r.default.useEffect(function(){var r=!0;return e.r(353423)("https://platform.twitter.com/widgets.js","twitter-embed",function(){if(!window.twttr)return void console.error("Failure to load window.twttr, aborting load");if(r){if(!window.twttr.widgets[a])return void console.error("Method "+a+" is not present anymore in twttr.widget api");window.twttr.widgets[a](t.tweetId,null==n?void 0:n.current,t.options).then(function(e){i(!1),t.onLoad&&t.onLoad(e)})}}),function(){r=!1}},[]),r.default.createElement(r.default.Fragment,null,s&&r.default.createElement(r.default.Fragment,null,t.placeholder),r.default.createElement("div",{ref:n}))};e.s(["Twitter",0,function({id:e}){return(0,t.jsx)(n,{tweetId:e})}],94572)},112311,(e,t,r)=>{"use strict";t.exports=function(){var e={},t={};return e.on=function(e,r){var a={name:e,handler:r};return t[e]=t[e]||[],t[e].unshift(a),a},e.off=function(e){var r=t[e.name].indexOf(e);-1!==r&&t[e.name].splice(r,1)},e.trigger=function(e,r){var a,n=t[e];if(n)for(a=n.length;a--;)n[a].handler(r)},e}},157664,(e,t,r)=>{function a(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}t.exports=function(e,t,r){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof t&&(r=t,t={}),r=r||function(){},o.type=(t=t||{}).type||"text/javascript",o.charset=t.charset||"utf8",o.async=!("async"in t)||!!t.async,o.src=e,t.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(o,t.attrs),t.text&&(o.text=""+t.text),("onload"in o?a:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(o,r),o.onload||a(o,r),n.appendChild(o)}},717129,(e,t,r)=>{"use strict";
41Object.defineProperty(r,"__esModule",{value:!0});var a,n=(a=e.r(157664))&&a.__esModule?a:{default:a};r.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function)return void t(window.YT);var r="http:"===window.location.protocol?"http:":"https:";(0,n.default)(r+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var a=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){a&&a(),t(window.YT)}})},t.exports=r.default}]);
42
43//# debugId=cdc62475-8cb6-0ecc-c0b8-67b275acb3ad
44//# sourceMappingURL=1vn9j8r34gab5.js.map

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.