import{S as C,i as H,s as I,O as k,P as N,a as v,d as g,b as a,g as E,F as w,L as x,e as V,k as B,t as te,c as A,m as j,h as se,f as J,j as le,w as D,x as S,y as Z,Q as R,q as b,o as y,B as O,R as re,T as ne,D as ae,H as G,I as P,J as U,K as Y,n as L,p as T,G as ie,U as oe,V as ce}from"./vendor-7c454903.js";function ue(r){const e=document.createElement("textarea");document.body.appendChild(e),e.value=r,e.select(),document.execCommand("copy"),document.body.removeChild(e)}function fe(r){let e,l,t,s;return{c(){e=k("svg"),l=k("path"),t=k("path"),s=k("rect"),this.h()},l(n){e=N(n,"svg",{class:!0,xmlns:!0,"aria-hidden":!0,fill:!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var c=v(e);l=N(c,"path",{d:!0,transform:!0}),v(l).forEach(g),t=N(c,"path",{d:!0,transform:!0}),v(t).forEach(g),s=N(c,"rect",{fill:!0,width:!0,height:!0}),v(s).forEach(g),c.forEach(g),this.h()},h(){a(l,"d","M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z"),a(l,"transform","translate(0)"),a(t,"d","M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z"),a(t,"transform","translate(0)"),a(s,"fill","none"),a(s,"width","32"),a(s,"height","32"),a(e,"class",r[0]),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"aria-hidden","true"),a(e,"fill","currentColor"),a(e,"focusable","false"),a(e,"role","img"),a(e,"width","1em"),a(e,"height","1em"),a(e,"preserveAspectRatio","xMidYMid meet"),a(e,"viewBox","0 0 32 32")},m(n,c){E(n,e,c),w(e,l),w(e,t),w(e,s)},p(n,[c]){c&1&&a(e,"class",n[0])},i:x,o:x,d(n){n&&g(e)}}}function he(r,e,l){let{classNames:t=""}=e;return r.$$set=s=>{"classNames"in s&&l(0,t=s.classNames)},[t]}class de extends C{constructor(e){super();H(this,e,he,fe,I,{classNames:0})}}function me(r){let e,l,t,s,n;return{c(){e=V("div"),l=V("div"),t=B(),s=te(r[1]),this.h()},l(c){e=A(c,"DIV",{class:!0});var h=v(e);l=A(h,"DIV",{class:!0,style:!0}),v(l).forEach(g),t=j(h),s=se(h,r[1]),h.forEach(g),this.h()},h(){a(l,"class","absolute bottom-full left-1/2 transform -translate-x-1/2 w-0 h-0 border-black border-4 border-t-0"),J(l,"border-left-color","transparent"),J(l,"border-right-color","transparent"),a(e,"class",n="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow "+r[2]+" "+r[0])},m(c,h){E(c,e,h),w(e,l),w(e,t),w(e,s)},p(c,[h]){h&2&&le(s,c[1]),h&5&&n!==(n="absolute pointer-events-none transition-opacity bg-black text-white py-1 px-2 leading-tight rounded font-normal shadow "+c[2]+" "+c[0])&&a(e,"class",n)},i:x,o:x,d(c){c&&g(e)}}}function ge(r,e,l){let{classNames:t=""}=e,{label:s="Copied"}=e,{position:n="left-1/2 top-full transform -translate-x-1/2 translate-y-2"}=e;return r.$$set=c=>{"classNames"in c&&l(0,t=c.classNames),"label"in c&&l(1,s=c.label),"position"in c&&l(2,n=c.position)},[t,s,n]}class _e extends C{constructor(e){super();H(this,e,ge,me,I,{classNames:0,label:1,position:2})}}function pe(r){let e,l,t,s,n,c,h,u,_;return l=new de({}),s=new _e({props:{classNames:r[4]?"opacity-100":"opacity-0"}}),{c(){e=V("button"),D(l.$$.fragment),t=B(),D(s.$$.fragment),this.h()},l(o){e=A(o,"BUTTON",{class:!0,title:!0,type:!0});var i=v(e);S(l.$$.fragment,i),t=j(i),S(s.$$.fragment,i),i.forEach(g),this.h()},h(){a(e,"class",n="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none "+r[0]+" "+(r[2]==="text"?"mx-0.5":"")+" "+(r[2]==="button"?"btn":"")+" "+(r[2]==="button-clear"?"py-1 px-2 border rounded-lg shadow-sm":"")+" "+(!r[4]&&["button-clear","text"].includes(r[2])?"text-gray-600":"")+" "+(r[4]?"text-green-500":"")),a(e,"title",c=r[3]||r[1]||"Copy to clipboard"),a(e,"type","button")},m(o,i){E(o,e,i),Z(l,e,null),w(e,t),Z(s,e,null),h=!0,u||(_=R(e,"click",r[5]),u=!0)},p(o,[i]){const p={};i&16&&(p.classNames=o[4]?"opacity-100":"opacity-0"),s.$set(p),(!h||i&21&&n!==(n="inline-flex items-center relative text-sm focus:text-green-500 cursor-pointer focus:outline-none "+o[0]+" "+(o[2]==="text"?"mx-0.5":"")+" "+(o[2]==="button"?"btn":"")+" "+(o[2]==="button-clear"?"py-1 px-2 border rounded-lg shadow-sm":"")+" "+(!o[4]&&["button-clear","text"].includes(o[2])?"text-gray-600":"")+" "+(o[4]?"text-green-500":"")))&&a(e,"class",n),(!h||i&10&&c!==(c=o[3]||o[1]||"Copy to clipboard"))&&a(e,"title",c)},i(o){h||(b(l.$$.fragment,o),b(s.$$.fragment,o),h=!0)},o(o){y(l.$$.fragment,o),y(s.$$.fragment,o),h=!1},d(o){o&&g(e),O(l),O(s),u=!1,_()}}}function ve(r,e,l){let{classNames:t=""}=e,{label:s=""}=e,{style:n="text"}=e,{title:c=""}=e,{value:h}=e,u=!1,_;re(()=>{_&&clearTimeout(_)});function o(){ue(h),l(4,u=!0),_&&clearTimeout(_),_=setTimeout(()=>{l(4,u=!1)},1e3)}return r.$$set=i=>{"classNames"in i&&l(0,t=i.classNames),"label"in i&&l(1,s=i.label),"style"in i&&l(2,n=i.style),"title"in i&&l(3,c=i.title),"value"in i&&l(6,h=i.value)},[t,s,n,c,u,o,h]}class be extends C{constructor(e){super();H(this,e,ve,pe,I,{classNames:0,label:1,style:2,title:3,value:6})}}function we(r){let e,l,t,s,n,c,h,u;return t=new be({props:{classNames:"transition duration-200 ease-in-out "+(r[2]&&"opacity-0"),label:"code excerpt",value:r[0]}}),{c(){e=V("div"),l=V("div"),D(t.$$.fragment),s=B(),n=V("pre"),this.h()},l(_){e=A(_,"DIV",{class:!0});var o=v(e);l=A(o,"DIV",{class:!0});var i=v(l);S(t.$$.fragment,i),i.forEach(g),s=j(o),n=A(o,"PRE",{});var p=v(n);p.forEach(g),o.forEach(g),this.h()},h(){a(l,"class","absolute top-2.5 right-4"),a(e,"class","code-block relative")},m(_,o){E(_,e,o),w(e,l),Z(t,l,null),w(e,s),w(e,n),n.innerHTML=r[1],c=!0,h||(u=[R(e,"mouseover",r[3]),R(e,"focus",r[3]),R(e,"mouseout",r[4]),R(e,"blur",r[4])],h=!0)},p(_,[o]){const i={};o&4&&(i.classNames="transition duration-200 ease-in-out "+(_[2]&&"opacity-0")),o&1&&(i.value=_[0]),t.$set(i),(!c||o&2)&&(n.innerHTML=_[1])},i(_){c||(b(t.$$.fragment,_),c=!0)},o(_){y(t.$$.fragment,_),c=!1},d(_){_&&g(e),O(t),h=!1,ne(u)}}}function ye(r,e,l){let t=!0,{code:s=""}=e,{highlighted:n=""}=e;function c(){l(2,t=!1)}function h(){l(2,t=!0)}return r.$$set=u=>{"code"in u&&l(0,s=u.code),"highlighted"in u&&l(1,n=u.highlighted)},[s,n,t,c,h]}class Oe extends C{constructor(e){super();H(this,e,ye,we,I,{code:0,highlighted:1})}}const q=ae("python");function ke(r){let e;const l=r[1].default,t=G(l,r,r[0],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,n){t&&t.m(s,n),e=!0},p(s,[n]){t&&t.p&&(!e||n&1)&&P(t,l,s,s[0],e?Y(l,s[0],n,null):U(s[0]),null)},i(s){e||(b(t,s),e=!0)},o(s){y(t,s),e=!1},d(s){t&&t.d(s)}}}function Ne(r,e,l){let{$$slots:t={},$$scope:s}=e;return r.$$set=n=>{"$$scope"in n&&l(0,s=n.$$scope)},[s,t]}class Se extends C{constructor(e){super();H(this,e,Ne,ke,I,{})}}function Ee(r){let e,l,t;return{c(){e=k("svg"),l=k("path"),t=k("path"),this.h()},l(s){e=N(s,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var n=v(e);l=N(n,"path",{d:!0,fill:!0}),v(l).forEach(g),t=N(n,"path",{d:!0,fill:!0}),v(t).forEach(g),n.forEach(g),this.h()},h(){a(l,"d","M15.84.5a16.4,16.4,0,0,0-3.57.32C9.1,1.39,8.53,2.53,8.53,4.64V7.48H16v1H5.77a4.73,4.73,0,0,0-4.7,3.74,14.82,14.82,0,0,0,0,7.54c.57,2.28,1.86,3.82,4,3.82h2.6V20.14a4.73,4.73,0,0,1,4.63-4.63h7.38a3.72,3.72,0,0,0,3.73-3.73V4.64A4.16,4.16,0,0,0,19.65.82,20.49,20.49,0,0,0,15.84.5ZM11.78,2.77a1.39,1.39,0,0,1,1.38,1.46,1.37,1.37,0,0,1-1.38,1.38A1.42,1.42,0,0,1,10.4,4.23,1.44,1.44,0,0,1,11.78,2.77Z"),a(l,"fill","#5a9fd4"),a(t,"d","M16.16,31.5a16.4,16.4,0,0,0,3.57-.32c3.17-.57,3.74-1.71,3.74-3.82V24.52H16v-1H26.23a4.73,4.73,0,0,0,4.7-3.74,14.82,14.82,0,0,0,0-7.54c-.57-2.28-1.86-3.82-4-3.82h-2.6v3.41a4.73,4.73,0,0,1-4.63,4.63H12.35a3.72,3.72,0,0,0-3.73,3.73v7.14a4.16,4.16,0,0,0,3.73,3.82A20.49,20.49,0,0,0,16.16,31.5Zm4.06-2.27a1.39,1.39,0,0,1-1.38-1.46,1.37,1.37,0,0,1,1.38-1.38,1.42,1.42,0,0,1,1.38,1.38A1.44,1.44,0,0,1,20.22,29.23Z"),a(t,"fill","#ffd43b"),a(e,"class",r[0]),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"role","img"),a(e,"width","1em"),a(e,"height","1em"),a(e,"preserveAspectRatio","xMidYMid meet"),a(e,"viewBox","0 0 32 32")},m(s,n){E(s,e,n),w(e,l),w(e,t)},p(s,[n]){n&1&&a(e,"class",s[0])},i:x,o:x,d(s){s&&g(e)}}}function xe(r,e,l){let{classNames:t=""}=e;return r.$$set=s=>{"classNames"in s&&l(0,t=s.classNames)},[t]}class Me extends C{constructor(e){super();H(this,e,xe,Ee,I,{classNames:0})}}function Ve(r){let e,l,t;return{c(){e=k("svg"),l=k("rect"),t=k("path"),this.h()},l(s){e=N(s,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var n=v(e);l=N(n,"rect",{width:!0,height:!0,fill:!0}),v(l).forEach(g),t=N(n,"path",{d:!0}),v(t).forEach(g),n.forEach(g),this.h()},h(){a(l,"width","32"),a(l,"height","32"),a(l,"fill","#f7df1e"),a(t,"d","M21.5,25a3.27,3.27,0,0,0,3,1.83c1.25,0,2-.63,2-1.49,0-1-.81-1.39-2.19-2L23.56,23C21.39,22.1,20,20.94,20,18.49c0-2.25,1.72-4,4.41-4a4.44,4.44,0,0,1,4.27,2.41l-2.34,1.5a2,2,0,0,0-1.93-1.29,1.31,1.31,0,0,0-1.44,1.29c0,.9.56,1.27,1.85,1.83l.75.32c2.55,1.1,4,2.21,4,4.72,0,2.71-2.12,4.19-5,4.19a5.78,5.78,0,0,1-5.48-3.07Zm-10.63.26c.48.84.91,1.55,1.94,1.55s1.61-.39,1.61-1.89V14.69h3V25c0,3.11-1.83,4.53-4.49,4.53a4.66,4.66,0,0,1-4.51-2.75Z"),a(e,"class",r[0]),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"role","img"),a(e,"width","1em"),a(e,"height","1em"),a(e,"preserveAspectRatio","xMidYMid meet"),a(e,"viewBox","0 0 32 32")},m(s,n){E(s,e,n),w(e,l),w(e,t)},p(s,[n]){n&1&&a(e,"class",s[0])},i:x,o:x,d(s){s&&g(e)}}}function Ae(r,e,l){let{classNames:t=""}=e;return r.$$set=s=>{"classNames"in s&&l(0,t=s.classNames)},[t]}class Ce extends C{constructor(e){super();H(this,e,Ae,Ve,I,{classNames:0})}}function He(r){let e,l,t;return{c(){e=k("svg"),l=k("rect"),t=k("path"),this.h()},l(s){e=N(s,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var n=v(e);l=N(n,"rect",{width:!0,height:!0,rx:!0,fill:!0}),v(l).forEach(g),t=N(n,"path",{d:!0,fill:!0}),v(t).forEach(g),n.forEach(g),this.h()},h(){a(l,"width","32"),a(l,"height","32"),a(l,"rx","4"),a(l,"fill","#1683a5"),a(t,"d","M6.71,14A5,5,0,0,1,8.82,9.29l2.64-2.2c1.67-1.37,2.52-1.41,4.6-1.41H21.7c1.19,0,2.45.27,2.45,1.79s-1.4,1.78-2.45,1.78H15.44a3.31,3.31,0,0,0-2,.89L11.24,12c-.55.44-1,.81-1,1.52v4.41c0,.7.41,1.07,1,1.52l2.16,1.82a3.34,3.34,0,0,0,2,.89H21.7c1.05,0,2.45.23,2.45,1.78s-1.26,1.78-2.45,1.78H16.06c-2.08,0-2.94,0-4.6-1.4L8.82,22.09A5.05,5.05,0,0,1,6.71,17.4Z"),a(t,"fill","#fff"),a(e,"class",r[0]),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"role","img"),a(e,"width","1em"),a(e,"height","1em"),a(e,"preserveAspectRatio","xMidYMid meet"),a(e,"viewBox","0 0 32 32")},m(s,n){E(s,e,n),w(e,l),w(e,t)},p(s,[n]){n&1&&a(e,"class",s[0])},i:x,o:x,d(s){s&&g(e)}}}function Ie(r,e,l){let{classNames:t=""}=e;return r.$$set=s=>{"classNames"in s&&l(0,t=s.classNames)},[t]}class Be extends C{constructor(e){super();H(this,e,Ie,He,I,{classNames:0})}}const je=r=>({}),F=r=>({}),Re=r=>({}),K=r=>({}),Le=r=>({}),Q=r=>({});function z(r,e,l){const t=r.slice();return t[8]=e[l],t}function W(r){let e,l,t,s=r[8].label+"",n,c,h,u,_,o;var i=r[8].icon;function p(d){return{props:{classNames:"mr-1.5"}}}i&&(l=new i(p()));function f(){return r[7](r[8])}return{c(){e=V("div"),l&&D(l.$$.fragment),t=B(),n=te(s),c=B(),this.h()},l(d){e=A(d,"DIV",{class:!0});var m=v(e);l&&S(l.$$.fragment,m),t=j(m),n=se(m,s),c=j(m),m.forEach(g),this.h()},h(){a(e,"class",h="flex items-center border rounded-lg px-1.5 py-1 leading-none select-none text-smd "+(r[3]===r[8].id?"border-gray-800 bg-black dark:bg-gray-700 text-white":"text-gray-500 cursor-pointer opacity-90 hover:text-gray-700 dark:hover:text-gray-200 hover:shadow-sm"))},m(d,m){E(d,e,m),l&&Z(l,e,null),w(e,t),w(e,n),w(e,c),u=!0,_||(o=R(e,"click",f),_=!0)},p(d,m){if(r=d,i!==(i=r[8].icon)){if(l){L();const M=l;y(M.$$.fragment,1,0,()=>{O(M,1)}),T()}i?(l=new i(p()),D(l.$$.fragment),b(l.$$.fragment,1),Z(l,e,t)):l=null}(!u||m&8&&h!==(h="flex items-center border rounded-lg px-1.5 py-1 leading-none select-none text-smd "+(r[3]===r[8].id?"border-gray-800 bg-black dark:bg-gray-700 text-white":"text-gray-500 cursor-pointer opacity-90 hover:text-gray-700 dark:hover:text-gray-200 hover:shadow-sm")))&&a(e,"class",h)},i(d){u||(l&&b(l.$$.fragment,d),u=!0)},o(d){l&&y(l.$$.fragment,d),u=!1},d(d){d&&g(e),l&&O(l),_=!1,o()}}}function X(r){let e;const l=r[6].python,t=G(l,r,r[5],Q);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,n){t&&t.m(s,n),e=!0},p(s,n){t&&t.p&&(!e||n&32)&&P(t,l,s,s[5],e?Y(l,s[5],n,Le):U(s[5]),Q)},i(s){e||(b(t,s),e=!0)},o(s){y(t,s),e=!1},d(s){t&&t.d(s)}}}function $(r){let e;const l=r[6].js,t=G(l,r,r[5],K);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,n){t&&t.m(s,n),e=!0},p(s,n){t&&t.p&&(!e||n&32)&&P(t,l,s,s[5],e?Y(l,s[5],n,Re):U(s[5]),K)},i(s){e||(b(t,s),e=!0)},o(s){y(t,s),e=!1},d(s){t&&t.d(s)}}}function ee(r){let e;const l=r[6].curl,t=G(l,r,r[5],F);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,n){t&&t.m(s,n),e=!0},p(s,n){t&&t.p&&(!e||n&32)&&P(t,l,s,s[5],e?Y(l,s[5],n,je):U(s[5]),F)},i(s){e||(b(t,s),e=!0)},o(s){y(t,s),e=!1},d(s){t&&t.d(s)}}}function Te(r){let e,l,t,s,n,c,h=r[4],u=[];for(let f=0;f<h.length;f+=1)u[f]=W(z(r,h,f));const _=f=>y(u[f],1,1,()=>{u[f]=null});let o=r[0]&&r[3]==="python"&&X(r),i=r[1]&&r[3]==="js"&&$(r),p=r[2]&&r[3]==="curl"&&ee(r);return{c(){e=V("div");for(let f=0;f<u.length;f+=1)u[f].c();l=B(),t=V("div"),o&&o.c(),s=B(),i&&i.c(),n=B(),p&&p.c(),this.h()},l(f){e=A(f,"DIV",{class:!0});var d=v(e);for(let M=0;M<u.length;M+=1)u[M].l(d);d.forEach(g),l=j(f),t=A(f,"DIV",{class:!0});var m=v(t);o&&o.l(m),s=j(m),i&&i.l(m),n=j(m),p&&p.l(m),m.forEach(g),this.h()},h(){a(e,"class","flex space-x-2 items-center my-1.5 mr-8 h-7 !pl-0 -mx-3 md:mx-0"),a(t,"class","language-select")},m(f,d){E(f,e,d);for(let m=0;m<u.length;m+=1)u[m].m(e,null);E(f,l,d),E(f,t,d),o&&o.m(t,null),w(t,s),i&&i.m(t,null),w(t,n),p&&p.m(t,null),c=!0},p(f,[d]){if(d&24){h=f[4];let m;for(m=0;m<h.length;m+=1){const M=z(f,h,m);u[m]?(u[m].p(M,d),b(u[m],1)):(u[m]=W(M),u[m].c(),b(u[m],1),u[m].m(e,null))}for(L(),m=h.length;m<u.length;m+=1)_(m);T()}f[0]&&f[3]==="python"?o?(o.p(f,d),d&9&&b(o,1)):(o=X(f),o.c(),b(o,1),o.m(t,s)):o&&(L(),y(o,1,1,()=>{o=null}),T()),f[1]&&f[3]==="js"?i?(i.p(f,d),d&10&&b(i,1)):(i=$(f),i.c(),b(i,1),i.m(t,n)):i&&(L(),y(i,1,1,()=>{i=null}),T()),f[2]&&f[3]==="curl"?p?(p.p(f,d),d&12&&b(p,1)):(p=ee(f),p.c(),b(p,1),p.m(t,null)):p&&(L(),y(p,1,1,()=>{p=null}),T())},i(f){if(!c){for(let d=0;d<h.length;d+=1)b(u[d]);b(o),b(i),b(p),c=!0}},o(f){u=u.filter(Boolean);for(let d=0;d<u.length;d+=1)y(u[d]);y(o),y(i),y(p),c=!1},d(f){f&&g(e),ie(u,f),f&&g(l),f&&g(t),o&&o.d(),i&&i.d(),p&&p.d()}}}function De(r,e,l){let t;oe(r,q,i=>l(3,t=i));let{$$slots:s={},$$scope:n}=e;const c=[{id:"python",icon:Me,label:"Python"},{id:"js",icon:Ce,label:"JavaScript"},{id:"curl",icon:Be,label:"cURL"}];let{python:h=!1}=e,{js:u=!1}=e,{curl:_=!1}=e;const o=i=>ce(q,t=i.id,t);return r.$$set=i=>{"python"in i&&l(0,h=i.python),"js"in i&&l(1,u=i.js),"curl"in i&&l(2,_=i.curl),"$$scope"in i&&l(5,n=i.$$scope)},[h,u,_,t,c,n,s,o]}class Ge extends C{constructor(e){super();H(this,e,De,Te,I,{python:0,js:1,curl:2})}}export{Oe as C,Ge as I,Se as M};
