import{s as F,a as U,n as j,o as B}from"../chunks/scheduler.eb244325.js";import{S as G,i as O,e as h,s as f,c as E,h as D,a as g,d as a,b as m,f as q,g as C,j as z,k as d,q as k,l as J,m as r,n as H,t as I,o as M,p as A}from"../chunks/index.661680a1.js";import{C as K,H as N,E as Q}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.86f975ce.js";function V(S){let i,_,p,$,s,w,o,b,l,L=`Inference Endpoints can be used through the <a href="https://endpoints.huggingface.co/endpoints" rel="nofollow">UI</a> and programmatically through an API.
Here you’ll find the <a href="https://api.endpoints.huggingface.cloud/" rel="nofollow">open-API specification</a> for each available route, which you can call directly,
or through the <a href="https://huggingface.co/docs/huggingface_hub/guides/inference_endpoints" rel="nofollow">Hugging Face Hub python client</a>.`,y,n,T="Browser not compatible.",R,x,c,v,u,P;return s=new K({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),o=new N({props:{title:"API Reference (Swagger)",local:"api-reference-swagger",headingTag:"h1"}}),c=new Q({props:{source:"https://github.com/huggingface/hf-endpoints-documentation/blob/main/docs/source/api_reference.md"}}),{c(){i=h("meta"),_=f(),p=h("p"),$=f(),E(s.$$.fragment),w=f(),E(o.$$.fragment),b=f(),l=h("p"),l.innerHTML=L,y=f(),n=h("iframe"),n.textContent=T,x=f(),E(c.$$.fragment),v=f(),u=h("p"),this.h()},l(e){const t=D("svelte-u9bgzb",document.head);i=g(t,"META",{name:!0,content:!0}),t.forEach(a),_=m(e),p=g(e,"P",{}),q(p).forEach(a),$=m(e),C(s.$$.fragment,e),w=m(e),C(o.$$.fragment,e),b=m(e),l=g(e,"P",{"data-svelte-h":!0}),z(l)!=="svelte-1b55y40"&&(l.innerHTML=L),y=m(e),n=g(e,"IFRAME",{src:!0,style:!0,frameborder:!0,id:!0,"data-svelte-h":!0}),z(n)!=="svelte-17lkzlc"&&(n.textContent=T),x=m(e),C(c.$$.fragment,e),v=m(e),u=g(e,"P",{}),q(u).forEach(a),this.h()},h(){d(i,"name","hf:doc:metadata"),d(i,"content",W),U(n.src,R="https://api.endpoints.huggingface.cloud/")||d(n,"src",R),k(n,"height","60vh"),k(n,"width","100%"),d(n,"frameborder","0"),d(n,"id","iframe")},m(e,t){J(document.head,i),r(e,_,t),r(e,p,t),r(e,$,t),H(s,e,t),r(e,w,t),H(o,e,t),r(e,b,t),r(e,l,t),r(e,y,t),r(e,n,t),r(e,x,t),H(c,e,t),r(e,v,t),r(e,u,t),P=!0},p:j,i(e){P||(I(s.$$.fragment,e),I(o.$$.fragment,e),I(c.$$.fragment,e),P=!0)},o(e){M(s.$$.fragment,e),M(o.$$.fragment,e),M(c.$$.fragment,e),P=!1},d(e){e&&(a(_),a(p),a($),a(w),a(b),a(l),a(y),a(n),a(x),a(v),a(u)),a(i),A(s,e),A(o,e),A(c,e)}}}const W='{"title":"API Reference (Swagger)","local":"api-reference-swagger","sections":[],"depth":1}';function X(S){return B(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class te extends G{constructor(i){super(),O(this,i,X,V,F,{})}}export{te as component};
