Spaces:
Sleeping
Sleeping
Commit ·
481d8aa
1
Parent(s): d518d87
Add gradio lite edition
Browse files- har_extract/PINNED_HF_HUB/dist/assets/BlockTitle-xHZJuij_.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Blocks-D0rbzfnq.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/Blocks-DLMy55mz.js +5 -0
- har_extract/PINNED_HF_HUB/dist/assets/Button-CPMTGicC.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Button-VLJFaMM1.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/Check-D0Yh8zF7.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Copy-BnC0jKei.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Example-Cd_csAAb.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Example-DRnq2kzJ.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/IconButtonWrapper-CJArWTb9.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Image-COLVRtjh.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Image-Ds1uFAjO.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/ImagePreview-D5bl4ZzZ.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-B7S-J5dW.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-Bp6-wsMo.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-BtoD4fPF.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-Ci4eVLjY.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-CkHlsT8d.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-Cmhi_Y5F.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-DrdqQIFB.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/Index-WhXxpmre.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Info-B9mP7QY3.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/MarkdownCode-CAvV55n_.js +3 -0
- har_extract/PINNED_HF_HUB/dist/assets/Send-CjgBYKVY.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Square-CLYhrJ_i.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Textbox-CUmtFzE7.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/Textbox-D812IjdW.css +1 -0
- har_extract/PINNED_HF_HUB/dist/assets/Toast-BIScqxJI.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/file-url-DmoFipEB.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/index-CpyL3tPB.js +4 -0
- har_extract/PINNED_HF_HUB/dist/assets/theme-C62q9qmT.css +473 -0
- har_extract/PINNED_HF_HUB/dist/assets/utils-BsGrhMNe.js +2 -0
- har_extract/PINNED_HF_HUB/dist/assets/webworker-BsZ7XNFH.js +391 -0
- har_extract/PINNED_HF_HUB/dist/lite.css +1 -0
- har_extract/PINNED_HF_HUB/dist/lite.js +0 -0
har_extract/PINNED_HF_HUB/dist/assets/BlockTitle-xHZJuij_.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as k,i as w,s as $,f as b,J as q,d,t as h,c,K as B,M as I,N,q as m,j as _,e as j,h as v,k as g,n as C,o as J,y as K,b as M,m as S,p as T}from"../lite.js";import{I as z}from"./Info-B9mP7QY3.js";function p(o){let e,i;return e=new z({props:{info:o[1]}}),{c(){T(e.$$.fragment)},m(n,r){S(e,n,r),i=!0},p(n,r){const l={};r&2&&(l.info=n[1]),e.$set(l)},i(n){i||(c(e.$$.fragment,n),i=!0)},o(n){h(e.$$.fragment,n),i=!1},d(n){M(e,n)}}}function A(o){let e,i,n,r,l;const u=o[4].default,f=q(u,o,o[3],null);let t=o[1]&&p(o);return{c(){e=C("span"),f&&f.c(),n=J(),t&&t.c(),r=K(),m(e,"data-testid","block-info"),m(e,"dir",i=o[2]?"rtl":"ltr"),m(e,"class","svelte-g2oxp3"),_(e,"sr-only",!o[0]),_(e,"hide",!o[0]),_(e,"has-info",o[1]!=null)},m(s,a){g(s,e,a),f&&f.m(e,null),g(s,n,a),t&&t.m(s,a),g(s,r,a),l=!0},p(s,[a]){f&&f.p&&(!l||a&8)&&B(f,u,s,s[3],l?N(u,s[3],a,null):I(s[3]),null),(!l||a&4&&i!==(i=s[2]?"rtl":"ltr"))&&m(e,"dir",i),(!l||a&1)&&_(e,"sr-only",!s[0]),(!l||a&1)&&_(e,"hide",!s[0]),(!l||a&2)&&_(e,"has-info",s[1]!=null),s[1]?t?(t.p(s,a),a&2&&c(t,1)):(t=p(s),t.c(),c(t,1),t.m(r.parentNode,r)):t&&(j(),h(t,1,1,()=>{t=null}),v())},i(s){l||(c(f,s),c(t),l=!0)},o(s){h(f,s),h(t),l=!1},d(s){s&&(d(e),d(n),d(r)),f&&f.d(s),t&&t.d(s)}}}function D(o,e,i){let{$$slots:n={},$$scope:r}=e,{show_label:l=!0}=e,{info:u=void 0}=e,{rtl:f=!1}=e;return o.$$set=t=>{"show_label"in t&&i(0,l=t.show_label),"info"in t&&i(1,u=t.info),"rtl"in t&&i(2,f=t.rtl),"$$scope"in t&&i(3,r=t.$$scope)},[l,u,f,r,n]}class G extends k{constructor(e){super(),w(this,e,D,A,$,{show_label:0,info:1,rtl:2})}get show_label(){return this.$$.ctx[0]}set show_label(e){this.$$set({show_label:e}),b()}get info(){return this.$$.ctx[1]}set info(e){this.$$set({info:e}),b()}get rtl(){return this.$$.ctx[2]}set rtl(e){this.$$set({rtl:e}),b()}}export{G as B};
|
| 2 |
+
//# sourceMappingURL=BlockTitle-xHZJuij_.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Blocks-D0rbzfnq.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.wrap.svelte-czcr5b.svelte-czcr5b{display:flex;flex-grow:1;flex-direction:column;width:var(--size-full);font-weight:var(--body-text-weight);font-size:var(--body-text-size)}.contain.svelte-czcr5b.svelte-czcr5b{display:flex;flex-direction:column}footer.svelte-czcr5b.svelte-czcr5b{display:flex;justify-content:center;margin-top:var(--size-4);color:var(--body-text-color-subdued)}.divider.svelte-czcr5b.svelte-czcr5b{margin-left:var(--size-1);margin-right:var(--size-2)}.show-api.svelte-czcr5b.svelte-czcr5b,.settings.svelte-czcr5b.svelte-czcr5b,.record.svelte-czcr5b.svelte-czcr5b{display:flex;align-items:center}.show-api.svelte-czcr5b img.svelte-czcr5b{margin-right:var(--size-1);margin-left:var(--size-2);width:var(--size-3)}.settings.svelte-czcr5b img.svelte-czcr5b{margin-right:var(--size-1);margin-left:var(--size-1);width:var(--size-4)}.record.svelte-czcr5b img.svelte-czcr5b{margin-right:var(--size-1);margin-left:var(--size-1);width:var(--size-3)}.built-with.svelte-czcr5b.svelte-czcr5b{display:flex;align-items:center}.built-with.svelte-czcr5b.svelte-czcr5b:hover,.settings.svelte-czcr5b.svelte-czcr5b:hover,.record.svelte-czcr5b.svelte-czcr5b:hover{color:var(--body-text-color)}.built-with.svelte-czcr5b img.svelte-czcr5b{margin-right:var(--size-1);margin-left:var(--size-1);margin-bottom:1px;width:var(--size-4)}.api-docs.svelte-czcr5b.svelte-czcr5b{display:flex;position:fixed;top:0;right:0;z-index:var(--layer-top);background:#00000080;width:var(--size-screen);height:var(--size-screen-h)}.backdrop.svelte-czcr5b.svelte-czcr5b{flex:1 1 0%;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.api-docs-wrap.svelte-czcr5b.svelte-czcr5b{box-shadow:var(--shadow-drop-lg);background:var(--background-fill-primary);overflow-x:hidden;overflow-y:auto}@media (min-width: 768px){.api-docs-wrap.svelte-czcr5b.svelte-czcr5b{border-top-left-radius:var(--radius-lg);border-bottom-left-radius:var(--radius-lg);width:950px}}@media (min-width: 1536px){.api-docs-wrap.svelte-czcr5b.svelte-czcr5b{width:1150px}}#api-recorder-container.svelte-czcr5b.svelte-czcr5b{position:fixed;left:10px;bottom:10px;z-index:1000}.show-api.svelte-czcr5b.svelte-czcr5b{display:flex;align-items:center}@media (max-width: 640px){.show-api.svelte-czcr5b.svelte-czcr5b,.show-api-divider.svelte-czcr5b.svelte-czcr5b{display:none}}.show-api.svelte-czcr5b.svelte-czcr5b:hover{color:var(--body-text-color)}.hidden.svelte-czcr5b.svelte-czcr5b{display:none}
|
har_extract/PINNED_HF_HUB/dist/assets/Blocks-DLMy55mz.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ApiDocs-Dj_cFfnC.js","../lite.js","../lite.css","./clear-BF6QKi4N.js","./Button-CPMTGicC.js","./Image-COLVRtjh.js","./file-url-DmoFipEB.js","./Image-Ds1uFAjO.css","./Button-VLJFaMM1.css","./ImagePreview-D5bl4ZzZ.css","./Toast-BIScqxJI.js","./index-CpyL3tPB.js","./utils-BsGrhMNe.js","./ApiDocs-MshfCJX-.css","./ApiRecorder-DOzEbWNJ.js","./ApiRecorder-N1NZAe7o.css","./Settings-CFoHYGJg.js","./Dropdown-lmemrUB8.js","./BlockTitle-xHZJuij_.js","./Info-B9mP7QY3.js","./MarkdownCode-CAvV55n_.js","./DropdownArrow-_eq25kA2.js","./Dropdown-B8k0osbz.css","./Checkbox-w7V02UH6.js","./Checkbox-Cv2bC0-H.css","./Settings-BELQ81Ru.css","./Example-2_XpXLIx.css","./Index-BGSgs-bL.js","./Index-Ke5YRLT1.css"])))=>i.map(i=>d[i]);
|
| 2 |
+
import{a as ct,i as ft,ax as Xn,f as w,d as G,t as O,c as M,e as x,h as $,k as V,y as ue,V as Gt,Q as Je,W as xn,bv as Ut,ay as ge,C as de,a2 as ve,b as ne,p as ie,m as oe,T as Mt,a3 as Lt,a4 as Qe,B as yt,J as $n,K as ei,M as ti,N as ni,s as Nt,aq as Re,bw as ii,r as _n,a7 as lt,aC as oi,bx as si,au as qt,ba as ri,bb as li,_ as Pe,l as B,o as Y,n as Q,q as R,ar as ai,by as ci,aB as fi,G as St,bz as Wt,bc as _i,D as un,w as Ve,j as ot,a5 as ui,z as Ce,x as He,U as rt,a6 as mi,A as st,ap as Ie,bj as di,bA as Vt,aD as hi}from"../lite.js";import{T as gi}from"./Toast-BIScqxJI.js";import{G as pi}from"./utils-BsGrhMNe.js";function Ht(i){let e,t,n,s;const o=[{elem_id:i[5]},{elem_classes:i[6]},{target:i[3]},{visible:i[7]},i[9],{theme_mode:i[4]},{root:i[2]}];function f(l){i[14](l)}var c=i[8];function a(l,_){let u={$$slots:{default:[bi]},$$scope:{ctx:l}};for(let h=0;h<o.length;h+=1)u=Je(u,o[h]);return _!==void 0&&_&764&&(u=Je(u,Mt(o,[_&32&&{elem_id:l[5]},_&64&&{elem_classes:l[6]},_&8&&{target:l[3]},_&128&&{visible:l[7]},_&512&&Lt(l[9]),_&16&&{theme_mode:l[4]},_&4&&{root:l[2]}]))),l[0]!==void 0&&(u.value=l[0]),{props:u}}return c&&(e=ge(c,a(i)),i[13](e),de.push(()=>ve(e,"value",f)),e.$on("prop_change",i[15])),{c(){e&&ie(e.$$.fragment),n=ue()},m(l,_){e&&oe(e,l,_),V(l,n,_),s=!0},p(l,_){if(c!==(c=l[8])){if(e){x();const u=e;O(u.$$.fragment,1,0,()=>{ne(u,1)}),$()}c?(e=ge(c,a(l,_)),l[13](e),de.push(()=>ve(e,"value",f)),e.$on("prop_change",l[15]),ie(e.$$.fragment),M(e.$$.fragment,1),oe(e,n.parentNode,n)):e=null}else if(c){const u=_&764?Mt(o,[_&32&&{elem_id:l[5]},_&64&&{elem_classes:l[6]},_&8&&{target:l[3]},_&128&&{visible:l[7]},_&512&&Lt(l[9]),_&16&&{theme_mode:l[4]},_&4&&{root:l[2]}]):{};_&65536&&(u.$$scope={dirty:_,ctx:l}),!t&&_&1&&(t=!0,u.value=l[0],Qe(()=>t=!1)),e.$set(u)}},i(l){s||(e&&M(e.$$.fragment,l),s=!0)},o(l){e&&O(e.$$.fragment,l),s=!1},d(l){l&&G(n),i[13](null),e&&ne(e,l)}}}function bi(i){let e;const t=i[12].default,n=$n(t,i,i[16],null);return{c(){n&&n.c()},m(s,o){n&&n.m(s,o),e=!0},p(s,o){n&&n.p&&(!e||o&65536)&&ei(n,t,s,s[16],e?ni(t,s[16],o,null):ti(s[16]),null)},i(s){e||(M(n,s),e=!0)},o(s){O(n,s),e=!1},d(s){n&&n.d(s)}}}function wi(i){let e,t,n=i[7]&&Ht(i);return{c(){n&&n.c(),e=ue()},m(s,o){n&&n.m(s,o),V(s,e,o),t=!0},p(s,[o]){s[7]?n?(n.p(s,o),o&128&&M(n,1)):(n=Ht(s),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(x(),O(n,1,1,()=>{n=null}),$())},i(s){t||(M(n),t=!0)},o(s){O(n),t=!1},d(s){s&&G(e),n&&n.d(s)}}}function vi(i,e,t){const n=["root","component","target","theme_mode","instance","value","elem_id","elem_classes","_id","visible"];let s=Gt(e,n),{$$slots:o={},$$scope:f}=e,{root:c}=e,{component:a}=e,{target:l}=e,{theme_mode:_}=e,{instance:u}=e,{value:h}=e,{elem_id:d}=e,{elem_classes:L}=e,{_id:p}=e,{visible:k}=e;const E=(S,le,ee)=>new CustomEvent("prop_change",{detail:{id:S,prop:le,value:ee}});function I(S){return new Proxy(S,{construct(ee,Se){const ae=new ee(...Se),ze=Object.keys(ae.$$.props);function pe(he){return function(K){if(!l)return;const H=E(p,he,K);l.dispatchEvent(H)}}return ze.forEach(he=>{de.push(()=>ve(ae,he,pe(he)))}),ae}})}let g=I(a);const T=["description","info","title","placeholder","value","label"];function F(S){for(const le in S)T.includes(le)&&(S[le]=Ut(S[le]))}function y(S){de[S?"unshift":"push"](()=>{u=S,t(1,u)})}function m(S){h=S,t(0,h)}function N(S){yt.call(this,i,S)}return i.$$set=S=>{e=Je(Je({},e),xn(S)),t(9,s=Gt(e,n)),"root"in S&&t(2,c=S.root),"component"in S&&t(10,a=S.component),"target"in S&&t(3,l=S.target),"theme_mode"in S&&t(4,_=S.theme_mode),"instance"in S&&t(1,u=S.instance),"value"in S&&t(0,h=S.value),"elem_id"in S&&t(5,d=S.elem_id),"elem_classes"in S&&t(6,L=S.elem_classes),"_id"in S&&t(11,p=S._id),"visible"in S&&t(7,k=S.visible),"$$scope"in S&&t(16,f=S.$$scope)},i.$$.update=()=>{F(s),i.$$.dirty&1&&t(0,h=Ut(h))},[h,u,c,l,_,d,L,k,g,s,a,p,o,y,m,N,f]}class ki extends ct{constructor(e){super(),ft(this,e,vi,wi,Xn,{root:2,component:10,target:3,theme_mode:4,instance:1,value:0,elem_id:5,elem_classes:6,_id:11,visible:7})}get root(){return this.$$.ctx[2]}set root(e){this.$$set({root:e}),w()}get component(){return this.$$.ctx[10]}set component(e){this.$$set({component:e}),w()}get target(){return this.$$.ctx[3]}set target(e){this.$$set({target:e}),w()}get theme_mode(){return this.$$.ctx[4]}set theme_mode(e){this.$$set({theme_mode:e}),w()}get instance(){return this.$$.ctx[1]}set instance(e){this.$$set({instance:e}),w()}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),w()}get elem_id(){return this.$$.ctx[5]}set elem_id(e){this.$$set({elem_id:e}),w()}get elem_classes(){return this.$$.ctx[6]}set elem_classes(e){this.$$set({elem_classes:e}),w()}get _id(){return this.$$.ctx[11]}set _id(e){this.$$set({_id:e}),w()}get visible(){return this.$$.ctx[7]}set visible(e){this.$$set({visible:e}),w()}}function Zt(i,e,t){const n=i.slice();return n[16]=e[t],n}function Jt(i){let e,t,n,s;const o=[{_id:i[0]?.id},{component:i[0].component},{elem_id:"elem_id"in i[0].props&&i[0].props.elem_id||`component-${i[0].id}`},{elem_classes:"elem_classes"in i[0].props&&i[0].props.elem_classes||[]},{target:i[2]},i[0].props,{theme_mode:i[3]},{root:i[1]},{visible:typeof i[0].props.visible=="boolean"?i[0].props.visible:!0}];function f(l){i[12](l)}function c(l){i[13](l)}let a={$$slots:{default:[Ei]},$$scope:{ctx:i}};for(let l=0;l<o.length;l+=1)a=Je(a,o[l]);return i[0].instance!==void 0&&(a.instance=i[0].instance),i[0].props.value!==void 0&&(a.value=i[0].props.value),e=new ki({props:a}),de.push(()=>ve(e,"instance",f)),de.push(()=>ve(e,"value",c)),{c(){ie(e.$$.fragment)},m(l,_){oe(e,l,_),s=!0},p(l,_){const u=_&15?Mt(o,[_&1&&{_id:l[0]?.id},_&1&&{component:l[0].component},_&1&&{elem_id:"elem_id"in l[0].props&&l[0].props.elem_id||`component-${l[0].id}`},_&1&&{elem_classes:"elem_classes"in l[0].props&&l[0].props.elem_classes||[]},_&4&&{target:l[2]},_&1&&Lt(l[0].props),_&8&&{theme_mode:l[3]},_&2&&{root:l[1]},_&1&&{visible:typeof l[0].props.visible=="boolean"?l[0].props.visible:!0}]):{};_&524351&&(u.$$scope={dirty:_,ctx:l}),!t&&_&1&&(t=!0,u.instance=l[0].instance,Qe(()=>t=!1)),!n&&_&1&&(n=!0,u.value=l[0].props.value,Qe(()=>n=!1)),e.$set(u)},i(l){s||(M(e.$$.fragment,l),s=!0)},o(l){O(e.$$.fragment,l),s=!1},d(l){ne(e,l)}}}function Qt(i){let e=[],t=new Map,n,s,o=qt(i[0].children);const f=c=>c[16].id;for(let c=0;c<o.length;c+=1){let a=Zt(i,o,c),l=f(a);t.set(l,e[c]=Kt(l,a))}return{c(){for(let c=0;c<e.length;c+=1)e[c].c();n=ue()},m(c,a){for(let l=0;l<e.length;l+=1)e[l]&&e[l].m(c,a);V(c,n,a),s=!0},p(c,a){a&63&&(o=qt(c[0].children),x(),e=ri(e,a,f,1,c,o,t,n.parentNode,li,Kt,n,Zt),$())},i(c){if(!s){for(let a=0;a<o.length;a+=1)M(e[a]);s=!0}},o(c){for(let a=0;a<e.length;a+=1)O(e[a]);s=!1},d(c){c&&G(n);for(let a=0;a<e.length;a+=1)e[a].d(c)}}}function Kt(i,e){let t,n,s;return n=new mn({props:{node:e[16],component:e[16].component,target:e[2],id:e[16].id,root:e[1],theme_mode:e[3],max_file_size:e[4],client:e[5]}}),n.$on("destroy",e[10]),n.$on("mount",e[11]),{key:i,first:null,c(){t=ue(),ie(n.$$.fragment),this.first=t},m(o,f){V(o,t,f),oe(n,o,f),s=!0},p(o,f){e=o;const c={};f&1&&(c.node=e[16]),f&1&&(c.component=e[16].component),f&4&&(c.target=e[2]),f&1&&(c.id=e[16].id),f&2&&(c.root=e[1]),f&8&&(c.theme_mode=e[3]),f&16&&(c.max_file_size=e[4]),f&32&&(c.client=e[5]),n.$set(c)},i(o){s||(M(n.$$.fragment,o),s=!0)},o(o){O(n.$$.fragment,o),s=!1},d(o){o&&G(t),ne(n,o)}}}function Ei(i){let e,t,n=i[0].children&&i[0].children.length&&Qt(i);return{c(){n&&n.c(),e=ue()},m(s,o){n&&n.m(s,o),V(s,e,o),t=!0},p(s,o){s[0].children&&s[0].children.length?n?(n.p(s,o),o&1&&M(n,1)):(n=Qt(s),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(x(),O(n,1,1,()=>{n=null}),$())},i(s){t||(M(n),t=!0)},o(s){O(n),t=!1},d(s){s&&G(e),n&&n.d(s)}}}function Ci(i){let e,t,n=i[0].component&&Jt(i);return{c(){n&&n.c(),e=ue()},m(s,o){n&&n.m(s,o),V(s,e,o),t=!0},p(s,[o]){s[0].component?n?(n.p(s,o),o&1&&M(n,1)):(n=Jt(s),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(x(),O(n,1,1,()=>{n=null}),$())},i(s){t||(M(n),t=!0)},o(s){O(n),t=!1},d(s){s&&G(e),n&&n.d(s)}}}function Si(i,e,t){let n;Re(i,ii,g=>t(9,n=g));let{root:s}=e,{node:o}=e,{parent:f=null}=e,{target:c}=e,{theme_mode:a}=e,{version:l}=e,{autoscroll:_}=e,{max_file_size:u}=e,{client:h}=e;const d=_n();let L=[];lt(()=>{d("mount",o.id);for(const g of L)d("mount",g.id);return()=>{d("destroy",o.id);for(const g of L)d("mount",g.id)}}),oi("BLOCK_KEY",f);function p(g){yt.call(this,i,g)}function k(g){yt.call(this,i,g)}function E(g){i.$$.not_equal(o.instance,g)&&(o.instance=g,t(0,o),t(15,L),t(2,c),t(3,a),t(7,l),t(1,s),t(8,_),t(4,u),t(9,n),t(5,h))}function I(g){i.$$.not_equal(o.props.value,g)&&(o.props.value=g,t(0,o),t(15,L),t(2,c),t(3,a),t(7,l),t(1,s),t(8,_),t(4,u),t(9,n),t(5,h))}return i.$$set=g=>{"root"in g&&t(1,s=g.root),"node"in g&&t(0,o=g.node),"parent"in g&&t(6,f=g.parent),"target"in g&&t(2,c=g.target),"theme_mode"in g&&t(3,a=g.theme_mode),"version"in g&&t(7,l=g.version),"autoscroll"in g&&t(8,_=g.autoscroll),"max_file_size"in g&&t(4,u=g.max_file_size),"client"in g&&t(5,h=g.client)},i.$$.update=()=>{i.$$.dirty&1&&o&&t(0,o.children=o.children&&o.children.filter(g=>{const T=o.type!=="statustracker";return T||L.push(g),T}),o),i.$$.dirty&1&&o&&o.type==="form"&&(o.children?.every(g=>typeof g.props.visible=="boolean"&&!g.props.visible)?t(0,o.props.visible=!1,o):t(0,o.props.visible=!0,o)),i.$$.dirty&959&&t(0,o.props.gradio=new pi(o.id,c,a,l,s,_,u,n,h,si),o)},[o,s,c,a,u,h,f,l,_,n,p,k,E,I]}class mn extends ct{constructor(e){super(),ft(this,e,Si,Ci,Nt,{root:1,node:0,parent:6,target:2,theme_mode:3,version:7,autoscroll:8,max_file_size:4,client:5})}get root(){return this.$$.ctx[1]}set root(e){this.$$set({root:e}),w()}get node(){return this.$$.ctx[0]}set node(e){this.$$set({node:e}),w()}get parent(){return this.$$.ctx[6]}set parent(e){this.$$set({parent:e}),w()}get target(){return this.$$.ctx[2]}set target(e){this.$$set({target:e}),w()}get theme_mode(){return this.$$.ctx[3]}set theme_mode(e){this.$$set({theme_mode:e}),w()}get version(){return this.$$.ctx[7]}set version(e){this.$$set({version:e}),w()}get autoscroll(){return this.$$.ctx[8]}set autoscroll(e){this.$$set({autoscroll:e}),w()}get max_file_size(){return this.$$.ctx[4]}set max_file_size(e){this.$$set({max_file_size:e}),w()}get client(){return this.$$.ctx[5]}set client(e){this.$$set({client:e}),w()}}function Yt(i){let e,t;return e=new mn({props:{node:i[0],root:i[1],target:i[2],theme_mode:i[3],version:i[4],autoscroll:i[5],max_file_size:i[6],client:i[7]}}),{c(){ie(e.$$.fragment)},m(n,s){oe(e,n,s),t=!0},p(n,s){const o={};s&1&&(o.node=n[0]),s&2&&(o.root=n[1]),s&4&&(o.target=n[2]),s&8&&(o.theme_mode=n[3]),s&16&&(o.version=n[4]),s&32&&(o.autoscroll=n[5]),s&64&&(o.max_file_size=n[6]),s&128&&(o.client=n[7]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){O(e.$$.fragment,n),t=!1},d(n){ne(e,n)}}}function zi(i){let e,t,n=i[0]&&Yt(i);return{c(){n&&n.c(),e=ue()},m(s,o){n&&n.m(s,o),V(s,e,o),t=!0},p(s,[o]){s[0]?n?(n.p(s,o),o&1&&M(n,1)):(n=Yt(s),n.c(),M(n,1),n.m(e.parentNode,e)):n&&(x(),O(n,1,1,()=>{n=null}),$())},i(s){t||(M(n),t=!0)},o(s){O(n),t=!1},d(s){s&&G(e),n&&n.d(s)}}}function Mi(i,e,t){let{rootNode:n}=e,{root:s}=e,{target:o}=e,{theme_mode:f}=e,{version:c}=e,{autoscroll:a}=e,{max_file_size:l=null}=e,{client:_}=e;const u=_n();return lt(()=>{u("mount")}),i.$$set=h=>{"rootNode"in h&&t(0,n=h.rootNode),"root"in h&&t(1,s=h.root),"target"in h&&t(2,o=h.target),"theme_mode"in h&&t(3,f=h.theme_mode),"version"in h&&t(4,c=h.version),"autoscroll"in h&&t(5,a=h.autoscroll),"max_file_size"in h&&t(6,l=h.max_file_size),"client"in h&&t(7,_=h.client)},[n,s,o,f,c,a,l,_]}class Li extends ct{constructor(e){super(),ft(this,e,Mi,zi,Nt,{rootNode:0,root:1,target:2,theme_mode:3,version:4,autoscroll:5,max_file_size:6,client:7})}get rootNode(){return this.$$.ctx[0]}set rootNode(e){this.$$set({rootNode:e}),w()}get root(){return this.$$.ctx[1]}set root(e){this.$$set({root:e}),w()}get target(){return this.$$.ctx[2]}set target(e){this.$$set({target:e}),w()}get theme_mode(){return this.$$.ctx[3]}set theme_mode(e){this.$$set({theme_mode:e}),w()}get version(){return this.$$.ctx[4]}set version(e){this.$$set({version:e}),w()}get autoscroll(){return this.$$.ctx[5]}set autoscroll(e){this.$$set({autoscroll:e}),w()}get max_file_size(){return this.$$.ctx[6]}set max_file_size(e){this.$$set({max_file_size:e}),w()}get client(){return this.$$.ctx[7]}set client(e){this.$$set({client:e}),w()}}const yi="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='576'%20height='576'%20viewBox='0%200%20576%20576'%20fill='none'%3e%3cpath%20d='M287.5%20229L86%20344.5L287.5%20460L489%20344.5L287.5%20229Z'%20stroke='url(%23paint0_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M287.5%20116L86%20231.5L287.5%20347L489%20231.5L287.5%20116Z'%20stroke='url(%23paint1_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='round'/%3e%3cpath%20d='M86%20344L288%20229'%20stroke='url(%23paint2_linear_102_7)'%20stroke-width='59'%20stroke-linejoin='bevel'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_102_7'%20x1='60'%20y1='341'%20x2='429.5'%20y2='344'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_102_7'%20x1='513.5'%20y1='231'%20x2='143.5'%20y2='231'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_102_7'%20x1='60'%20y1='344'%20x2='428.987'%20y2='341.811'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F9D100'/%3e%3cstop%20offset='1'%20stop-color='%23F97700'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",Ni="data:image/svg+xml,%3csvg%20width='28'%20height='28'%20viewBox='0%200%2028%2028'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M26.9425%202.94265C27.4632%202.42195%2027.4632%201.57773%2026.9425%201.05703C26.4218%200.536329%2025.5776%200.536329%2025.0569%201.05703L22.5713%203.54256C21.1213%202.59333%2019.5367%202.43378%2018.1753%202.64006C16.5495%202.88638%2015.1127%203.66838%2014.3905%204.39053L12.3905%206.39053C12.1405%206.64058%2012%206.97972%2012%207.33334C12%207.68697%2012.1405%208.0261%2012.3905%208.27615L19.7239%2015.6095C20.2446%2016.1302%2021.0888%2016.1302%2021.6095%2015.6095L23.6095%2013.6095C24.3316%2012.8873%2025.1136%2011.4505%2025.36%209.82475C25.5663%208.46312%2025.4066%206.87827%2024.4571%205.42807L26.9425%202.94265Z'%20fill='%233c4555'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.276%2012.9426C12.7967%2012.4219%2012.7967%2011.5777%2012.276%2011.057C11.7553%2010.5363%2010.9111%2010.5363%2010.3904%2011.057L8.66651%2012.7809L8.27615%2012.3905C8.0261%2012.1405%207.68697%2012%207.33334%2012C6.97972%2012%206.64058%2012.1405%206.39053%2012.3905L4.39053%2014.3905C3.66838%2015.1127%202.88638%2016.5495%202.64006%2018.1753C2.43377%2019.5367%202.59333%2021.1214%203.54262%2022.5714L1.05703%2025.057C0.536329%2025.5777%200.536329%2026.4219%201.05703%2026.9426C1.57773%2027.4633%202.42195%2027.4633%202.94265%2026.9426L5.42817%2024.4571C6.87835%2025.4066%208.46315%2025.5663%209.82475%2025.36C11.4505%2025.1136%2012.8873%2024.3316%2013.6095%2023.6095L15.6095%2021.6095C16.1302%2021.0888%2016.1302%2020.2446%2015.6095%2019.7239L15.2188%2019.3332L16.9426%2017.6093C17.4633%2017.0886%2017.4633%2016.2444%2016.9426%2015.7237C16.4219%2015.203%2015.5777%2015.203%2015.057%2015.7237L13.3332%2017.4475L10.5521%2014.6665L12.276%2012.9426Z'%20fill='%23FF7C00'/%3e%3c/svg%3e",Ri="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3c!--%20Outer%20gear%20teeth%20(gray)%20--%3e%3cpath%20d='M19.14%2012.94c.04-.3.06-.61.06-.94%200-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24%200-.43.17-.47.41l-.36%202.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47%200-.59.22L2.74%208.87c-.12.21-.08.47.12.61l2.03%201.58c-.05.3-.07.62-.07.94s.02.64.07.94l-2.03%201.58c-.18.14-.23.41-.12.61l1.92%203.32c.12.22.37.29.59.22l2.39-.96c.5.38%201.03.7%201.62.94l.36%202.54c.05.24.24.41.48.41h3.84c.24%200%20.44-.17.47-.41l.36-2.54c.59-.24%201.13-.56%201.62-.94l2.39.96c.22.08.47%200%20.59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12%2015.6c-1.98%200-3.6-1.62-3.6-3.6s1.62-3.6%203.6-3.6%203.6%201.62%203.6%203.6-1.62%203.6-3.6%203.6z'%20fill='%23808080'/%3e%3c!--%20Inner%20circle%20(now%20gray)%20--%3e%3ccircle%20cx='12'%20cy='12'%20r='2.5'%20fill='%23808080'/%3e%3c/svg%3e",Oi="data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23000000'%3e%3cg%20id='SVGRepo_bgCarrier'%20stroke-width='0'%3e%3c/g%3e%3cg%20id='SVGRepo_tracerCarrier'%20stroke-linecap='round'%20stroke-linejoin='round'%3e%3c/g%3e%3cg%20id='SVGRepo_iconCarrier'%3e%3ctitle%3erecord%20[%23982]%3c/title%3e%3cdesc%3eCreated%20with%20Sketch.%3c/desc%3e%3cdefs%3e%3c/defs%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Dribbble-Light-Preview'%20transform='translate(-380.000000,%20-3839.000000)'%20fill='%23FF0000'%3e%3cg%20id='icons'%20transform='translate(56.000000,%20160.000000)'%3e%3cpath%20d='M338,3689%20C338,3691.209%20336.209,3693%20334,3693%20C331.791,3693%20330,3691.209%20330,3689%20C330,3686.791%20331.791,3685%20334,3685%20C336.209,3685%20338,3686.791%20338,3689%20M334,3697%20C329.589,3697%20326,3693.411%20326,3689%20C326,3684.589%20329.589,3681%20334,3681%20C338.411,3681%20342,3684.589%20342,3689%20C342,3693.411%20338.411,3697%20334,3697%20M334,3679%20C328.477,3679%20324,3683.477%20324,3689%20C324,3694.523%20328.477,3699%20334,3699%20C339.523,3699%20344,3694.523%20344,3689%20C344,3683.477%20339.523,3679%20334,3679'%20id='record-[%23982]'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";let ke=!1,Oe=null,Rt=[],_t=0,Ee={},dn,at,Ae=null,Ze=[];function Ai(i,e,t){dn=i,at=e,t&&(Ae=t)}async function Ti(){if(!ke)try{const i=document.title;document.title="[Sharing] Gradio Tab";const e=await navigator.mediaDevices.getDisplayMedia({video:{width:{ideal:1920},height:{ideal:1080},frameRate:{ideal:30}},audio:!0,selfBrowserSurface:"include"});document.title=i;const t={videoBitsPerSecond:5e6};Oe=new MediaRecorder(e,t),Rt=[],Ee={},Oe.ondataavailable=Fi,Oe.onstop=ji,Oe.start(1e3),ke=!0,Ae&&Ae(!0),_t=Date.now()}catch(i){at("Recording Error","Failed to start recording: "+i.message,"error")}}function Pi(){!ke||!Oe||(Oe.stop(),ke=!1,Ae&&Ae(!1))}function Ii(){if(!ke)return;const i=(Date.now()-_t)/1e3;Ee.start=i}function Di(){if(!ke||Ee.start===void 0)return;const i=(Date.now()-_t)/1e3;Ee.end=i}function Bi(i,e){if(!ke)return;const t=30,n=(Date.now()-_t)/1e3,s=Math.floor(i?(n-2)*t:n*t);if(e.boundingBox&&e.boundingBox.topLeft&&e.boundingBox.bottomRight&&e.boundingBox.topLeft.length===2&&e.boundingBox.bottomRight.length===2){const o=e.duration||2,f=s+Math.floor(o*t);Ze.some(a=>{const l=a.start_frame+Math.floor((a.duration||2)*t);return s>=a.start_frame&&s<=l||f>=a.start_frame&&f<=l||s<=a.start_frame&&f>=l})||Ze.push({boundingBox:e.boundingBox,start_frame:s,duration:o})}}function Xt(i,e,t=2){if(ke)try{setTimeout(()=>{if(!e||e.length===0)return;let n=1/0,s=1/0,o=0,f=0,c=!1;for(const E of e){const I=`#component-${E}`,g=document.querySelector(I);if(g){c=!0;const T=g.getBoundingClientRect();n=Math.min(n,T.left),s=Math.min(s,T.top),o=Math.max(o,T.right),f=Math.max(f,T.bottom)}}if(!c)return;const a=window.innerWidth,l=window.innerHeight,_=Math.min(o,a)-Math.max(0,n),u=Math.min(f,l)-Math.max(0,s),h=_/a,d=u/l;if(h>=.8||d>=.8)return;const L=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);let p=[Math.max(0,n)/a,Math.max(0,s)/l],k=[Math.min(o,a)/a,Math.min(f,l)/l];if(L){p[0]=Math.max(0,p[0]*.9),k[0]=Math.min(1,k[0]*.9);const E=k[0]-p[0],g=(p[0]+k[0])/2*.9;p[0]=Math.max(0,g-E/2),k[0]=Math.min(1,g+E/2)}p[0]=Math.max(0,p[0]),p[1]=Math.max(0,p[1]),k[0]=Math.min(1,k[0]),k[1]=Math.min(1,k[1]),Bi(i,{boundingBox:{topLeft:p,bottomRight:k},duration:t})},300)}catch{}}function Fi(i){i.data.size>0&&Rt.push(i.data)}function ji(){ke=!1,Ae&&Ae(!1);const i=new Blob(Rt,{type:"video/mp4"});Gi(i),(Oe?.stream?.getTracks()||[]).forEach(t=>t.stop())}async function Gi(i){try{at("Processing video","This may take a few seconds...","info");const e=new FormData;e.append("video",i,"recording.mp4"),Ee.start!==void 0&&Ee.end!==void 0&&(e.append("remove_segment_start",Ee.start.toString()),e.append("remove_segment_end",Ee.end.toString())),Ze.length>0&&e.append("zoom_effects",JSON.stringify(Ze));const t=await fetch(dn+"/gradio_api/process_recording",{method:"POST",body:e});if(!t.ok)throw new Error(`Server returned ${t.status}: ${t.statusText}`);const n=await t.blob(),s=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;xt(n,s),Ze=[]}catch{at("Processing Error","Failed to process recording. Saving original version.","warning");const t=`gradio-screen-recording-${new Date().toISOString().replace(/:/g,"-").replace(/\..+/,"")}.mp4`;xt(i,t)}}function xt(i,e){const t=URL.createObjectURL(i),n=document.createElement("a");n.style.display="none",n.href=t,n.download=e,document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(t)},100)}function $t(i){return document.title=i[2],{c:St,m:St,d:St}}function en(i){let e,t=`<style>${Wt(i[15],i[12])}</style>`,n;return{c(){e=new _i(!1),n=ue(),e.a=n},m(s,o){e.m(t,s,o),V(s,n,o)},p(s,o){o[0]&36864&&t!==(t=`<style>${Wt(s[15],s[12])}</style>`)&&e.p(t)},d(s){s&&(G(n),e.d())}}}function tn(i){let e,t;return e=new Li({props:{rootNode:i[18],root:i[0],target:i[3],theme_mode:i[9],version:i[12],autoscroll:i[4],max_file_size:i[14],client:i[10]}}),e.$on("mount",i[44]),{c(){ie(e.$$.fragment)},m(n,s){oe(e,n,s),t=!0},p(n,s){const o={};s[0]&262144&&(o.rootNode=n[18]),s[0]&1&&(o.root=n[0]),s[0]&8&&(o.target=n[3]),s[0]&512&&(o.theme_mode=n[9]),s[0]&4096&&(o.version=n[12]),s[0]&16&&(o.autoscroll=n[4]),s[0]&16384&&(o.max_file_size=n[14]),s[0]&1024&&(o.client=n[10]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){O(e.$$.fragment,n),t=!1},d(n){ne(e,n)}}}function nn(i){let e,t,n,s=i[33]("common.built_with_gradio")+"",o,f,c,a,l,_,u,h,d,L=i[33]("common.stop_recording")+"",p,k,E,I,g,T,F,y,m,N=i[33]("common.settings")+"",S,le,ee,Se,ae,ze,pe,he,K=i[5]&&on(i);return{c(){e=Q("footer"),K&&K.c(),t=Y(),n=Q("a"),o=He(s),f=Y(),c=Q("img"),_=Y(),u=Q("div"),u.textContent="·",h=Y(),d=Q("button"),p=He(L),k=Y(),E=Q("img"),T=Y(),F=Q("div"),F.textContent="·",y=Y(),m=Q("button"),S=He(N),le=Y(),ee=Q("img"),rt(c.src,a=yi)||R(c,"src",a),R(c,"alt",l=i[33]("common.logo")),R(c,"class","svelte-czcr5b"),R(n,"href","https://gradio.app"),R(n,"class","built-with svelte-czcr5b"),R(n,"target","_blank"),R(n,"rel","noreferrer"),R(u,"class","divider svelte-czcr5b"),ot(u,"hidden",!i[32]),rt(E.src,I=Oi)||R(E,"src",I),R(E,"alt",g=i[33]("common.stop_recording")),R(E,"class","svelte-czcr5b"),R(d,"class","record svelte-czcr5b"),ot(d,"hidden",!i[32]),R(F,"class","divider svelte-czcr5b"),rt(ee.src,Se=Ri)||R(ee,"src",Se),R(ee,"alt",ae=i[33]("common.settings")),R(ee,"class","svelte-czcr5b"),R(m,"class","settings svelte-czcr5b"),R(e,"class","svelte-czcr5b"),mi(()=>i[66].call(e))},m(H,se){V(H,e,se),K&&K.m(e,null),B(e,t),B(e,n),B(n,o),B(n,f),B(n,c),B(e,_),B(e,u),B(e,h),B(e,d),B(d,p),B(d,k),B(d,E),B(e,T),B(e,F),B(e,y),B(e,m),B(m,S),B(m,le),B(m,ee),ze=ui(e,i[66].bind(e)),pe||(he=[Ce(d,"click",i[63]),Ce(m,"click",i[64]),Ce(m,"mouseenter",i[65])],pe=!0)},p(H,se){H[5]?K?K.p(H,se):(K=on(H),K.c(),K.m(e,t)):K&&(K.d(1),K=null),se[1]&4&&s!==(s=H[33]("common.built_with_gradio")+"")&&Ve(o,s),se[1]&4&&l!==(l=H[33]("common.logo"))&&R(c,"alt",l),se[1]&2&&ot(u,"hidden",!H[32]),se[1]&4&&L!==(L=H[33]("common.stop_recording")+"")&&Ve(p,L),se[1]&4&&g!==(g=H[33]("common.stop_recording"))&&R(E,"alt",g),se[1]&2&&ot(d,"hidden",!H[32]),se[1]&4&&N!==(N=H[33]("common.settings")+"")&&Ve(S,N),se[1]&4&&ae!==(ae=H[33]("common.settings"))&&R(ee,"alt",ae)},d(H){H&&G(e),K&&K.d(),ze(),pe=!1,un(he)}}}function on(i){let e,t,n,s,o,f,c,a,l;function _(d,L){return d[10].config?.mcp_server?qi:Ui}let u=_(i),h=u(i);return{c(){e=Q("button"),h.c(),t=Y(),n=Q("img"),f=Y(),c=Q("div"),c.textContent="·",rt(n.src,s=Ni)||R(n,"src",s),R(n,"alt",o=i[33]("common.logo")),R(n,"class","svelte-czcr5b"),R(e,"class","show-api svelte-czcr5b"),R(c,"class","divider show-api-divider svelte-czcr5b")},m(d,L){V(d,e,L),h.m(e,null),B(e,t),B(e,n),V(d,f,L),V(d,c,L),a||(l=[Ce(e,"click",i[61]),Ce(e,"mouseenter",i[62])],a=!0)},p(d,L){u===(u=_(d))&&h?h.p(d,L):(h.d(1),h=u(d),h&&(h.c(),h.m(e,t))),L[1]&4&&o!==(o=d[33]("common.logo"))&&R(n,"alt",o)},d(d){d&&(G(e),G(f),G(c)),h.d(),a=!1,un(l)}}}function Ui(i){let e=i[33]("errors.use_via_api")+"",t;return{c(){t=He(e)},m(n,s){V(n,t,s)},p(n,s){s[1]&4&&e!==(e=n[33]("errors.use_via_api")+"")&&Ve(t,e)},d(n){n&&G(t)}}}function qi(i){let e=i[33]("errors.use_via_api_or_mcp")+"",t;return{c(){t=He(e)},m(n,s){V(n,t,s)},p(n,s){s[1]&4&&e!==(e=n[33]("errors.use_via_api_or_mcp")+"")&&Ve(t,e)},d(n){n&&G(t)}}}function sn(i){let e,t,n,s,o;var f=i[26];function c(a,l){return{props:{api_calls:a[29],dependencies:a[1]}}}return f&&(t=ge(f,c(i))),{c(){e=Q("div"),t&&ie(t.$$.fragment),R(e,"id","api-recorder-container"),R(e,"class","svelte-czcr5b")},m(a,l){V(a,e,l),t&&oe(t,e,null),n=!0,s||(o=Ce(e,"click",i[67]),s=!0)},p(a,l){if(l[0]&67108864&&f!==(f=a[26])){if(t){x();const _=t;O(_.$$.fragment,1,0,()=>{ne(_,1)}),$()}f?(t=ge(f,c(a)),ie(t.$$.fragment),M(t.$$.fragment,1),oe(t,e,null)):t=null}else if(f){const _={};l[0]&536870912&&(_.api_calls=a[29]),l[0]&2&&(_.dependencies=a[1]),t.$set(_)}},i(a){n||(t&&M(t.$$.fragment,a),n=!0)},o(a){t&&O(t.$$.fragment,a),n=!1},d(a){a&&G(e),t&&ne(t),s=!1,o()}}}function rn(i){let e,t,n,s,o,f,c,a;var l=i[25];function _(u,h){return{props:{root_node:u[18],dependencies:u[1],root:u[0],app:u[10],space_id:u[11],api_calls:u[29],username:u[13]}}}return l&&(o=ge(l,_(i)),o.$on("close",i[69])),{c(){e=Q("div"),t=Q("div"),n=Y(),s=Q("div"),o&&ie(o.$$.fragment),R(t,"class","backdrop svelte-czcr5b"),R(s,"class","api-docs-wrap svelte-czcr5b"),R(e,"class","api-docs svelte-czcr5b")},m(u,h){V(u,e,h),B(e,t),B(e,n),B(e,s),o&&oe(o,s,null),f=!0,c||(a=Ce(t,"click",i[68]),c=!0)},p(u,h){if(h[0]&33554432&&l!==(l=u[25])){if(o){x();const d=o;O(d.$$.fragment,1,0,()=>{ne(d,1)}),$()}l?(o=ge(l,_(u)),o.$on("close",u[69]),ie(o.$$.fragment),M(o.$$.fragment,1),oe(o,s,null)):o=null}else if(l){const d={};h[0]&262144&&(d.root_node=u[18]),h[0]&2&&(d.dependencies=u[1]),h[0]&1&&(d.root=u[0]),h[0]&1024&&(d.app=u[10]),h[0]&2048&&(d.space_id=u[11]),h[0]&536870912&&(d.api_calls=u[29]),h[0]&8192&&(d.username=u[13]),o.$set(d)}},i(u){f||(o&&M(o.$$.fragment,u),f=!0)},o(u){o&&O(o.$$.fragment,u),f=!1},d(u){u&&G(e),o&&ne(o),c=!1,a()}}}function ln(i){let e,t,n,s,o,f,c,a,l,_;function u(p){i[71](p)}function h(p){i[72](p)}var d=i[27];function L(p,k){let E={pwa_enabled:p[10].config.pwa,root:p[0],space_id:p[11]};return p[23]!==void 0&&(E.allow_zoom=p[23]),p[24]!==void 0&&(E.allow_video_trim=p[24]),{props:E}}return d&&(o=ge(d,L(i)),de.push(()=>ve(o,"allow_zoom",u)),de.push(()=>ve(o,"allow_video_trim",h)),o.$on("close",i[73]),o.$on("start_recording",i[74])),{c(){e=Q("div"),t=Q("div"),n=Y(),s=Q("div"),o&&ie(o.$$.fragment),R(t,"class","backdrop svelte-czcr5b"),R(s,"class","api-docs-wrap svelte-czcr5b"),R(e,"class","api-docs svelte-czcr5b")},m(p,k){V(p,e,k),B(e,t),B(e,n),B(e,s),o&&oe(o,s,null),a=!0,l||(_=Ce(t,"click",i[70]),l=!0)},p(p,k){if(k[0]&134217728&&d!==(d=p[27])){if(o){x();const E=o;O(E.$$.fragment,1,0,()=>{ne(E,1)}),$()}d?(o=ge(d,L(p)),de.push(()=>ve(o,"allow_zoom",u)),de.push(()=>ve(o,"allow_video_trim",h)),o.$on("close",p[73]),o.$on("start_recording",p[74]),ie(o.$$.fragment),M(o.$$.fragment,1),oe(o,s,null)):o=null}else if(d){const E={};k[0]&1024&&(E.pwa_enabled=p[10].config.pwa),k[0]&1&&(E.root=p[0]),k[0]&2048&&(E.space_id=p[11]),!f&&k[0]&8388608&&(f=!0,E.allow_zoom=p[23],Qe(()=>f=!1)),!c&&k[0]&16777216&&(c=!0,E.allow_video_trim=p[24],Qe(()=>c=!1)),o.$set(E)}},i(p){a||(o&&M(o.$$.fragment,p),a=!0)},o(p){o&&O(o.$$.fragment,p),a=!1},d(p){p&&G(e),o&&ne(o),l=!1,_()}}}function an(i){let e,t;return e=new gi({props:{messages:i[30]}}),e.$on("close",i[43]),{c(){ie(e.$$.fragment)},m(n,s){oe(e,n,s),t=!0},p(n,s){const o={};s[0]&1073741824&&(o.messages=n[30]),e.$set(o)},i(n){t||(M(e.$$.fragment,n),t=!0)},o(n){O(e.$$.fragment,n),t=!1},d(n){ne(e,n)}}}function cn(i){let e,t,n;var s=i[28];function o(f,c){return{props:{app:f[10],root:f[0]}}}return s&&(e=ge(s,o(i))),{c(){e&&ie(e.$$.fragment),t=ue()},m(f,c){e&&oe(e,f,c),V(f,t,c),n=!0},p(f,c){if(c[0]&268435456&&s!==(s=f[28])){if(e){x();const a=e;O(a.$$.fragment,1,0,()=>{ne(a,1)}),$()}s?(e=ge(s,o(f)),ie(e.$$.fragment),M(e.$$.fragment,1),oe(e,t.parentNode,t)):e=null}else if(s){const a={};c[0]&1024&&(a.app=f[10]),c[0]&1&&(a.root=f[0]),e.$set(a)}},i(f){n||(e&&M(e.$$.fragment,f),n=!0)},o(f){e&&O(e.$$.fragment,f),n=!1},d(f){f&&G(t),e&&ne(e,f)}}}function Wi(i){let e,t,n,s,o,f,c,a,l,_,u,h,d,L=i[7]&&$t(i),p=i[15]&&en(i),k=i[18]&&i[10].config&&tn(i),E=i[6]&&nn(i),I=i[22]&&i[26]&&sn(i),g=i[20]&&i[18]&&i[25]&&rn(i),T=i[21]&&i[18]&&i[10].config&&i[27]&&ln(i),F=i[30]&&an(i),y=i[16]&&i[28]&&cn(i);return{c(){L&&L.c(),e=ue(),p&&p.c(),t=ue(),n=Y(),s=Q("div"),o=Q("div"),k&&k.c(),f=Y(),E&&E.c(),c=Y(),I&&I.c(),a=Y(),g&&g.c(),l=Y(),T&&T.c(),_=Y(),F&&F.c(),u=Y(),y&&y.c(),h=ue(),R(o,"class","contain svelte-czcr5b"),Pe(o,"flex-grow",i[8]?"1":"auto"),Pe(o,"margin-right",i[16]?`${i[19]}px`:"0"),R(s,"class","wrap svelte-czcr5b"),Pe(s,"min-height",i[8]?"100%":"auto")},m(m,N){L&&L.m(document.head,null),B(document.head,e),p&&p.m(document.head,null),B(document.head,t),V(m,n,N),V(m,s,N),B(s,o),k&&k.m(o,null),i[60](o),B(s,f),E&&E.m(s,null),V(m,c,N),I&&I.m(m,N),V(m,a,N),g&&g.m(m,N),V(m,l,N),T&&T.m(m,N),V(m,_,N),F&&F.m(m,N),V(m,u,N),y&&y.m(m,N),V(m,h,N),d=!0},p(m,N){m[7]?L||(L=$t(m),L.c(),L.m(e.parentNode,e)):L&&(L.d(1),L=null),m[15]?p?p.p(m,N):(p=en(m),p.c(),p.m(t.parentNode,t)):p&&(p.d(1),p=null),m[18]&&m[10].config?k?(k.p(m,N),N[0]&263168&&M(k,1)):(k=tn(m),k.c(),M(k,1),k.m(o,null)):k&&(x(),O(k,1,1,()=>{k=null}),$()),N[0]&256&&Pe(o,"flex-grow",m[8]?"1":"auto"),N[0]&589824&&Pe(o,"margin-right",m[16]?`${m[19]}px`:"0"),m[6]?E?E.p(m,N):(E=nn(m),E.c(),E.m(s,null)):E&&(E.d(1),E=null),N[0]&256&&Pe(s,"min-height",m[8]?"100%":"auto"),m[22]&&m[26]?I?(I.p(m,N),N[0]&71303168&&M(I,1)):(I=sn(m),I.c(),M(I,1),I.m(a.parentNode,a)):I&&(x(),O(I,1,1,()=>{I=null}),$()),m[20]&&m[18]&&m[25]?g?(g.p(m,N),N[0]&34865152&&M(g,1)):(g=rn(m),g.c(),M(g,1),g.m(l.parentNode,l)):g&&(x(),O(g,1,1,()=>{g=null}),$()),m[21]&&m[18]&&m[10].config&&m[27]?T?(T.p(m,N),N[0]&136578048&&M(T,1)):(T=ln(m),T.c(),M(T,1),T.m(_.parentNode,_)):T&&(x(),O(T,1,1,()=>{T=null}),$()),m[30]?F?(F.p(m,N),N[0]&1073741824&&M(F,1)):(F=an(m),F.c(),M(F,1),F.m(u.parentNode,u)):F&&(x(),O(F,1,1,()=>{F=null}),$()),m[16]&&m[28]?y?(y.p(m,N),N[0]&268500992&&M(y,1)):(y=cn(m),y.c(),M(y,1),y.m(h.parentNode,h)):y&&(x(),O(y,1,1,()=>{y=null}),$())},i(m){d||(M(k),M(I),M(g),M(T),M(F),M(y),d=!0)},o(m){O(k),O(I),O(g),O(T),O(F),O(y),d=!1},d(m){m&&(G(n),G(s),G(c),G(a),G(l),G(_),G(u),G(h)),L&&L.d(m),G(e),p&&p.d(m),G(t),k&&k.d(),i[60](null),E&&E.d(),I&&I.d(m),g&&g.d(m),T&&T.d(m),F&&F.d(m),y&&y.d(m)}}}const Vi=/^'([^]+)'$/,zt="Connection to the server was lost. Attempting reconnection...",Hi="Reconnected to server, but the server has changed. You may need to <a href=''>refresh the page</a>.",Zi="Connection re-established.",Ji="Session not found - this is likely because the machine you were connected to has changed. <a href=''>Refresh the page</a> to continue.",Qi=15,Ki=10;function fn(i){return"detail"in i}function Yi(i){return i?i.children[i.children.length-1]:null}function Xi(i,e,t){let n,s,o,f,c,a,l;Re(i,ai,r=>t(33,l=r));let{root:_}=e,{components:u}=e,{layout:h}=e,{dependencies:d}=e,{title:L="Gradio"}=e,{target:p}=e,{autoscroll:k}=e,{show_api:E=!0}=e,{show_footer:I=!0}=e,{control_page_title:g=!1}=e,{app_mode:T}=e,{theme_mode:F}=e,{app:y}=e,{space_id:m}=e,{version:N}=e,{js:S}=e,{fill_height:le=!1}=e,{ready:ee}=e,{username:Se}=e,{api_prefix:ae=""}=e,{max_file_size:ze=void 0}=e,{initial_layout:pe=void 0}=e,{css:he=null}=e,{vibe_mode:K=!1}=e,H=!1,{layout:se,targets:Ot,update_value:Me,get_data:At,modify_stream:ut,get_stream_state:Tt,set_time_limit:hn,loading_status:Le,scheduled_updates:mt,create_layout:gn,rerender_layout:pn,value_change:bn}=ci({initial_layout:pe});Re(i,se,r=>t(18,s=r)),Re(i,Ot,r=>t(82,c=r)),Re(i,Le,r=>t(59,f=r)),Re(i,mt,r=>t(83,a=r));let dt=d,Pt=350;async function wn(){await di(y.config?.i18n_translations||void 0),t(58,nt=!0),await gn({components:u,layout:h,dependencies:d,root:_+ae,app:y,options:{fill_height:le}}),t(58,nt=!1)}let{search_params:De}=e,Ke=De.get("view")==="api"&&E,Be=De.get("view")==="settings",ye=De.get("view")==="api-recorder"&&E,Ye=!0,Fe=!0,Xe=null,Te=null,ht=null,gt=null;async function xe(){if(!Xe||!Te){const r=await Ie(()=>import("./ApiDocs-Dj_cFfnC.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),C=await Ie(()=>import("./ApiRecorder-DOzEbWNJ.js"),__vite__mapDeps([14,1,2,4,5,6,7,8,9,15]),import.meta.url);Xe||t(25,Xe=r.default),Te||t(26,Te=C.default)}}async function pt(){if(!Te){const r=await Ie(()=>import("./ApiRecorder-DOzEbWNJ.js"),__vite__mapDeps([14,1,2,4,5,6,7,8,9,15]),import.meta.url);t(26,Te=r.default)}}async function $e(){if(!ht){const r=await Ie(()=>import("./Settings-CFoHYGJg.js"),__vite__mapDeps([16,1,2,3,17,11,18,19,20,21,22,23,24,10,12,25,26]),import.meta.url);t(27,ht=r.default)}}async function vn(){if(!gt){const r=await Ie(()=>import("./Index-BGSgs-bL.js"),__vite__mapDeps([27,1,2,28]),import.meta.url);t(28,gt=r.default)}}async function je(r){t(22,ye=!1),r&&await xe(),t(20,Ke=r);let C=new URLSearchParams(window.location.search);r?C.set("view","api"):C.delete("view"),history.replaceState(null,"","?"+C.toString())}async function et(r){r&&await $e();let C=new URLSearchParams(window.location.search);r?C.set("view","settings"):C.delete("view"),history.replaceState(null,"","?"+C.toString()),t(21,Be=!Be)}let tt=[],nt=!1,{render_complete:Ge=!1}=e;async function bt(r,C){const v=d.find(W=>W.id===C),U=u.find(W=>W.id===v?.inputs[0])?.type;if(Ye&&v&&U!=="dataset"&&(v&&v.inputs&&v.inputs.length>0&&o&&Xt(!0,v.inputs,1),v&&v.outputs&&v.outputs.length>0&&o&&Xt(!1,v.outputs,2)),!v)return;const b=v.outputs,j=r?.map((W,fe)=>({id:b[fe],prop:"value_is_output",value:!0}));Me(j),await st();const Z=[];r?.forEach((W,fe)=>{if(typeof W=="object"&&W!==null&&W.__type__==="update")for(const[_e,z]of Object.entries(W))_e!=="__type__"&&Z.push({id:b[fe],prop:_e,value:z});else Z.push({id:b[fe],prop:"value",value:W})}),Me(Z),Z.forEach(W=>{const fe=u.find(_e=>_e.id===W.id);fe&&fe.type==="navbar"&&Ie(async()=>{const{navbar_config:_e}=await import("../lite.js").then(z=>z.bI);return{navbar_config:_e}},__vite__mapDeps([1,2]),import.meta.url).then(({navbar_config:_e})=>{_e.update(z=>({...z,[W.prop]:W.value}))})}),await st()}let be=new Map,D=[];function ce(r,C,v,U,b=10,j=!0){return{title:r,message:C,fn_index:v,type:U,id:++kn,duration:b,visible:j}}function wt(r,C,v){t(30,D=[ce(r,C,-1,v),...D])}let kn=-1;const En=l("blocks.long_requests_queue"),Cn=l("blocks.connection_can_break"),Sn=l("blocks.waiting_for_inputs");let It=!1,Dt=!1,Bt=!1,Ue=[];function Ne(r,C=null,v=null){let U=()=>{};function b(){U()}a?U=mt.subscribe(j=>{j||st().then(()=>{Ft(r,C,v),b()})}):Ft(r,C,v)}async function zn(r,C,v){return r===C&&v&&v.is_value_data===!0?v.value:At(r)}async function Ft(r,C=null,v=null){const U=d.find(z=>z.id===r);if(U===void 0)return;const b=U;if(Ue.length>0){for(const z of Ue)if(b.inputs.includes(z)){wt("Warning",Sn,"warning");return}}const j=Le.get_status_for_fn(r);t(30,D=D.filter(({fn_index:z})=>z!==r)),(j==="pending"||j==="generating")&&(b.pending_request=!0);let Z={fn_index:r,data:await Promise.all(b.inputs.map(z=>zn(z,C,v))),event_data:b.collects_event_data?v:null,trigger_id:C};b.frontend_fn&&typeof b.frontend_fn!="boolean"?b.frontend_fn(Z.data.concat(await Promise.all(b.outputs.map(z=>At(z))))).then(z=>{b.backend_fn?(Z.data=z,W(b,Z)):bt(z,r)}):b.types.cancel&&b.cancels?await Promise.all(b.cancels.map(async z=>{const J=be.get(z);return J?.cancel(),J})):b.backend_fn&&(b.js_implementation&&new Vt(`let result = await (${b.js_implementation})(...arguments);
|
| 3 |
+
return (!Array.isArray(result)) ? [result] : result;`)(...Z.data).then(J=>{bt(J,r),Z.js_implementation=!0}).catch(J=>{console.error(J),Z.js_implementation=!1}),W(b,Z));function W(z,J){z.trigger_mode==="once"?z.pending_request||_e(J,z.connection=="stream"):z.trigger_mode==="multiple"?_e(J,z.connection=="stream"):z.trigger_mode==="always_last"&&(z.pending_request?z.final_event=J:_e(J,z.connection=="stream"))}async function fe(){const z=await y.reconnect();z==="broken"?setTimeout(fe,1e3):z==="changed"?(H=!1,t(30,D=[ce("Changed Connection",Hi,-1,"info",3,!0),...D.map(J=>J.message===zt?{...J,visible:!1}:J)])):z==="connected"&&(H=!1,t(30,D=[ce("Reconnected",Zi,-1,"success",null,!0),...D.map(J=>J.message===zt?{...J,visible:!1}:J)]))}async function _e(z,J=!1){Fe&&Ii(),ye&&t(29,tt=[...tt,JSON.parse(JSON.stringify(z))]);let Et;if(y.set_current_payload(z),J)if(!be.has(r))b.inputs.forEach(A=>ut(A,"waiting"));else{if(be.has(r)&&b.inputs.some(A=>Tt(A)==="waiting"))return;if(be.has(r)&&b.inputs.some(A=>Tt(A)==="open")){await y.send_ws_message(`${y.config.root+y.config.api_prefix}/stream/${be.get(r).event_id()}`,{...z,session_hash:y.session_hash});return}}try{Et=y.submit(z.fn_index,z.data,z.event_data,z.trigger_id)}catch(A){if(y.closed)return;t(30,D=[ce("Error",String(A),0,"error"),...D]),Le.update({status:"error",fn_index:0,eta:0,queue:!1,queue_position:null}),qe(f);return}be.set(r,Et);for await(const A of Et){if(z.js_implementation)return;A.type==="data"?Zn(A):A.type==="render"?Jn(A):A.type==="status"?Yn(A):A.type==="log"&&Qn(A)}function Zn(A){const{data:X,fn_index:P}=A;b.pending_request&&b.final_event&&(b.pending_request=!1,_e(b.final_event,b.connection=="stream")),b.pending_request=!1,bt(X,P),qe(f)}function Jn(A){const{data:X}=A;let P=X.components,q=X.layout,te=X.dependencies,re=X.render_id,me=[];d.forEach((we,Ct)=>{we.rendered_in===b.render_id&&me.push(Ct)}),me.reverse().forEach(we=>{d.splice(we,1)}),te.forEach(we=>{d.push(we)}),pn({components:P,layout:q,root:_+ae,dependencies:d,render_id:re}),te.forEach(we=>{we.targets.some(Ct=>Ct[1]==="load")&&Ne(we.id)})}function Qn(A){const{title:X,log:P,fn_index:q,level:te,duration:re,visible:me}=A;t(30,D=[ce(X,P,q,te,re,me),...D])}function Kn(A,X,P){A.original_msg==="process_starts"&&P.connection==="stream"&&ut(X,"open")}function Yn(A){if(A.code==="validation_error"){const q=d.find(re=>re.id===A.fn_index);if(q===void 0||A.message===void 0||typeof A.message=="string")return;const te=[];if(A.message.forEach((re,me)=>{re.is_valid||(te.push({id:q.inputs[me],prop:"validation_error",value:re.message}),te.push({id:q.inputs[me],prop:"loading_status",value:{validation_error:re.message}}))}),te.length>0){Me(te),Le.update({status:"complete",fn_index:A.fn_index,eta:0,queue:!1,queue_position:null}),qe(f);return}}A.broken&&!H&&(t(30,D=[ce("Broken Connection",zt,-1,"error",null,!0),...D]),H=!0,setTimeout(fe,1e3)),A.session_not_found&&t(30,D=[ce("Session Not Found",Ji,-1,"error",null,!0),...D]);const{fn_index:X,...P}=A;if(P.stage==="streaming"&&P.time_limit&&b.inputs.forEach(q=>{hn(q,P.time_limit)}),b.inputs.forEach(q=>{Kn(A,q,b)}),Le.update({...P,time_limit:P.time_limit,status:P.stage,progress:P.progress_data,fn_index:X}),qe(f),!Dt&&m!==null&&P.position!==void 0&&P.position>=2&&P.eta!==void 0&&P.eta>Qi&&(Dt=!0,t(30,D=[ce("Warning",En,X,"warning"),...D])),!Bt&&It&&P.eta!==void 0&&P.eta>Ki&&(Bt=!0,t(30,D=[ce("Warning",Cn,X,"warning"),...D])),P.stage==="complete"||P.stage==="generating"){const q=new Set;P.changed_state_ids?.forEach(te=>{d.filter(re=>re.targets.some(([me,we])=>me===te)).forEach(re=>{q.add(re)})}),q.forEach(te=>{Ne(te.id,z.trigger_id)})}if(P.stage==="complete"&&(d.forEach(async q=>{q.trigger_after===X&&!q.trigger_only_on_failure&&Ne(q.id,z.trigger_id)}),b.inputs.forEach(q=>{ut(q,"closed")}),be.delete(r)),P.stage==="error"&&!H&&!A.session_not_found){if(P.message&&typeof P.message=="string"){const q=P.message.replace(Vi,(re,me)=>me),te=P.title??"Error";t(30,D=[ce(te,q,X,"error",P.duration,P.visible),...D])}d.map(async q=>{q.trigger_after===X&&(!q.trigger_only_on_success||q.trigger_only_on_failure)&&Ne(q.id,z.trigger_id)})}}Fe&&Di()}}function Mn(r,C){if(m===null)return;const v=new URL(`https://huggingface.co/spaces/${m}/discussions/new`);r!==void 0&&r.length>0&&v.searchParams.set("title",r),v.searchParams.set("description",C),window.open(v.toString(),"_blank")}function Ln(r){const C=r.detail;t(30,D=D.filter(v=>v.id!==C))}const yn=r=>!!(r&&new URL(r,location.href).origin!==location.origin);async function Nn(){S&&await new Vt(`let result = await (${S})();
|
| 4 |
+
return (!Array.isArray(result)) ? [result] : result;`)(),await st();for(var r=p.getElementsByTagName("a"),C=0;C<r.length;C++){const v=r[C].getAttribute("target"),U=r[C].getAttribute("href");yn(U)&&v!=="_blank"&&r[C].setAttribute("target","_blank")}jt(),!(!p||Ge)&&(p.addEventListener("prop_change",v=>{if(!fn(v))throw new Error("not a custom event");const{id:U,prop:b,value:j}=v.detail;b==="value"&&Me([{id:U,prop:"loading_status",value:{validation_error:void 0}}]),Me([{id:U,prop:b,value:j}]),b==="input_ready"&&j===!1&&Ue.push(U),b==="input_ready"&&j===!0&&(Ue=Ue.filter(Z=>Z!==U))}),p.addEventListener("gradio",v=>{if(!fn(v))throw new Error("not a custom event");const{id:U,event:b,data:j}=v.detail;if(b==="share"){const{title:Z,description:W}=j;Mn(Z,W)}else b==="error"?t(30,D=[ce("Error",j,-1,b),...D]):b==="warning"?t(30,D=[ce("Warning",j,-1,b),...D]):b==="info"?t(30,D=[ce("Info",j,-1,b),...D]):b=="clear_status"?Rn(U,"complete",j):b=="close_stream"?c[U]?.[j]?.forEach(W=>{if(be.has(W)){const fe=`${y.config.root+y.config.api_prefix}/stream/${be.get(W).event_id()}`;y.post_data(`${fe}/close`,{}),y.close_ws(fe)}}):c[U]?.[b]?.forEach(W=>{requestAnimationFrame(()=>{Ne(W,U,j)})})}),t(47,Ge=!0))}bn((r,C)=>{c[r]?.change?.forEach(U=>{requestAnimationFrame(()=>{Ne(U,r,C)})})});const jt=()=>{d.forEach(r=>{r.targets.some(C=>C[1]==="load")&&Ne(r.id)})};function Rn(r,C,v){v.status=C,Me([{id:r,prop:"loading_status",value:v}])}function qe(r){let C=[];Object.entries(r).forEach(([b,j])=>{if(y.closed&&j.status==="error")return;let Z=d.find(W=>W.id==j.fn_index);Z!==void 0&&(j.scroll_to_output=Z.scroll_to_output,j.show_progress=Z.show_progress,C.push({id:parseInt(b),prop:"loading_status",value:j}))});const v=Le.get_inputs_to_update(),U=Array.from(v).map(([b,j])=>({id:b,prop:"pending",value:j==="pending"}));Me([...C,...U])}let vt=fi(!1);Re(i,vt,r=>t(32,o=r)),lt(()=>{It=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Ai(_,(C,v,U)=>{wt(C,v,U)},C=>{hi(vt,o=C,o)});const r=C=>{t(19,Pt=C.detail.width)};window.addEventListener("vibeEditorResize",r),Ke&&xe(),ye&&pt(),Be&&$e(),K&&vn()});function kt(){o?Pi():Ti()}let it=0,We;lt(()=>{"parentIFrame"in window&&window.parentIFrame?.autoResize(!1);const r=new MutationObserver(C=>{if("parentIFrame"in window){const v=n?.getBoundingClientRect();if(!v)return;window.parentIFrame?.size(v.bottom+it+32)}});return r.observe(We,{childList:!0,subtree:!0,attributes:!0}),()=>{r.disconnect()}});function On(r){de[r?"unshift":"push"](()=>{We=r,t(17,We)})}const An=()=>{je(!Ke)},Tn=()=>{xe(),pt()},Pn=()=>{kt()},In=()=>{et(!Be)},Dn=()=>{$e()};function Bn(){it=this.clientHeight,t(31,it)}const Fn=()=>{je(!0),t(22,ye=!1)},jn=()=>{je(!1)},Gn=r=>{je(!1),t(29,tt=[]),t(22,ye=t(22,ye=r.detail?.api_recorder_visible))},Un=()=>{et(!1)};function qn(r){Ye=r,t(23,Ye)}function Wn(r){Fe=r,t(24,Fe)}const Vn=()=>{et(!1)},Hn=()=>{kt()};return i.$$set=r=>{"root"in r&&t(0,_=r.root),"components"in r&&t(49,u=r.components),"layout"in r&&t(50,h=r.layout),"dependencies"in r&&t(1,d=r.dependencies),"title"in r&&t(2,L=r.title),"target"in r&&t(3,p=r.target),"autoscroll"in r&&t(4,k=r.autoscroll),"show_api"in r&&t(5,E=r.show_api),"show_footer"in r&&t(6,I=r.show_footer),"control_page_title"in r&&t(7,g=r.control_page_title),"app_mode"in r&&t(8,T=r.app_mode),"theme_mode"in r&&t(9,F=r.theme_mode),"app"in r&&t(10,y=r.app),"space_id"in r&&t(11,m=r.space_id),"version"in r&&t(12,N=r.version),"js"in r&&t(51,S=r.js),"fill_height"in r&&t(52,le=r.fill_height),"ready"in r&&t(48,ee=r.ready),"username"in r&&t(13,Se=r.username),"api_prefix"in r&&t(53,ae=r.api_prefix),"max_file_size"in r&&t(14,ze=r.max_file_size),"initial_layout"in r&&t(54,pe=r.initial_layout),"css"in r&&t(15,he=r.css),"vibe_mode"in r&&t(16,K=r.vibe_mode),"search_params"in r&&t(55,De=r.search_params),"render_complete"in r&&t(47,Ge=r.render_complete)},i.$$.update=()=>{i.$$.dirty[0]&1035|i.$$.dirty[1]&2883584&&wn(),i.$$.dirty[0]&262144&&t(48,ee=!!s),i.$$.dirty[0]&2|i.$$.dirty[1]&201392128&&d!==dt&&Ge&&!nt&&(jt(),t(57,dt=d)),i.$$.dirty[1]&268435456&&qe(f),i.$$.dirty[0]&393216&&(n=s&&Yi(We))},[_,d,L,p,k,E,I,g,T,F,y,m,N,Se,ze,he,K,We,s,Pt,Ke,Be,ye,Ye,Fe,Xe,Te,ht,gt,tt,D,it,o,l,se,Ot,Le,mt,xe,pt,$e,je,et,Ln,Nn,vt,kt,Ge,ee,u,h,S,le,ae,pe,De,wt,dt,nt,f,On,An,Tn,Pn,In,Dn,Bn,Fn,jn,Gn,Un,qn,Wn,Vn,Hn]}class xi extends ct{constructor(e){super(),ft(this,e,Xi,Wi,Nt,{root:0,components:49,layout:50,dependencies:1,title:2,target:3,autoscroll:4,show_api:5,show_footer:6,control_page_title:7,app_mode:8,theme_mode:9,app:10,space_id:11,version:12,js:51,fill_height:52,ready:48,username:13,api_prefix:53,max_file_size:14,initial_layout:54,css:15,vibe_mode:16,search_params:55,render_complete:47,add_new_message:56},null,[-1,-1,-1,-1])}get root(){return this.$$.ctx[0]}set root(e){this.$$set({root:e}),w()}get components(){return this.$$.ctx[49]}set components(e){this.$$set({components:e}),w()}get layout(){return this.$$.ctx[50]}set layout(e){this.$$set({layout:e}),w()}get dependencies(){return this.$$.ctx[1]}set dependencies(e){this.$$set({dependencies:e}),w()}get title(){return this.$$.ctx[2]}set title(e){this.$$set({title:e}),w()}get target(){return this.$$.ctx[3]}set target(e){this.$$set({target:e}),w()}get autoscroll(){return this.$$.ctx[4]}set autoscroll(e){this.$$set({autoscroll:e}),w()}get show_api(){return this.$$.ctx[5]}set show_api(e){this.$$set({show_api:e}),w()}get show_footer(){return this.$$.ctx[6]}set show_footer(e){this.$$set({show_footer:e}),w()}get control_page_title(){return this.$$.ctx[7]}set control_page_title(e){this.$$set({control_page_title:e}),w()}get app_mode(){return this.$$.ctx[8]}set app_mode(e){this.$$set({app_mode:e}),w()}get theme_mode(){return this.$$.ctx[9]}set theme_mode(e){this.$$set({theme_mode:e}),w()}get app(){return this.$$.ctx[10]}set app(e){this.$$set({app:e}),w()}get space_id(){return this.$$.ctx[11]}set space_id(e){this.$$set({space_id:e}),w()}get version(){return this.$$.ctx[12]}set version(e){this.$$set({version:e}),w()}get js(){return this.$$.ctx[51]}set js(e){this.$$set({js:e}),w()}get fill_height(){return this.$$.ctx[52]}set fill_height(e){this.$$set({fill_height:e}),w()}get ready(){return this.$$.ctx[48]}set ready(e){this.$$set({ready:e}),w()}get username(){return this.$$.ctx[13]}set username(e){this.$$set({username:e}),w()}get api_prefix(){return this.$$.ctx[53]}set api_prefix(e){this.$$set({api_prefix:e}),w()}get max_file_size(){return this.$$.ctx[14]}set max_file_size(e){this.$$set({max_file_size:e}),w()}get initial_layout(){return this.$$.ctx[54]}set initial_layout(e){this.$$set({initial_layout:e}),w()}get css(){return this.$$.ctx[15]}set css(e){this.$$set({css:e}),w()}get vibe_mode(){return this.$$.ctx[16]}set vibe_mode(e){this.$$set({vibe_mode:e}),w()}get search_params(){return this.$$.ctx[55]}set search_params(e){this.$$set({search_params:e}),w()}get render_complete(){return this.$$.ctx[47]}set render_complete(e){this.$$set({render_complete:e}),w()}get add_new_message(){return this.$$.ctx[56]}}const no=Object.freeze(Object.defineProperty({__proto__:null,default:xi},Symbol.toStringTag,{value:"Module"}));export{no as B,Ni as a,Ri as s};
|
| 5 |
+
//# sourceMappingURL=Blocks-DLMy55mz.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Button-CPMTGicC.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as Q,i as R,s as T,f as b,d as w,t as g,c as d,e as v,h as z,k as q,y as U,J as K,K as M,M as S,N as A,q as h,j as k,_ as c,l as D,n as E,o as F,z as V,B as W,b as G,m as H,p as L}from"../lite.js";import{I as O}from"./Image-COLVRtjh.js";/* empty css */function X(i){let e,n,t,s,f,_,u=i[7]&&C(i);const l=i[12].default,a=K(l,i,i[11],null);return{c(){e=E("button"),u&&u.c(),n=F(),a&&a.c(),h(e,"class",t=i[4]+" "+i[3]+" "+i[1].join(" ")+" svelte-o34uqh"),h(e,"id",i[0]),e.disabled=i[8],k(e,"hidden",!i[2]),c(e,"flex-grow",i[9]),c(e,"width",i[9]===0?"fit-content":null),c(e,"min-width",typeof i[10]=="number"?`calc(min(${i[10]}px, 100%))`:null)},m(o,m){q(o,e,m),u&&u.m(e,null),D(e,n),a&&a.m(e,null),s=!0,f||(_=V(e,"click",i[13]),f=!0)},p(o,m){o[7]?u?(u.p(o,m),m&128&&d(u,1)):(u=C(o),u.c(),d(u,1),u.m(e,n)):u&&(v(),g(u,1,1,()=>{u=null}),z()),a&&a.p&&(!s||m&2048)&&M(a,l,o,o[11],s?A(l,o[11],m,null):S(o[11]),null),(!s||m&26&&t!==(t=o[4]+" "+o[3]+" "+o[1].join(" ")+" svelte-o34uqh"))&&h(e,"class",t),(!s||m&1)&&h(e,"id",o[0]),(!s||m&256)&&(e.disabled=o[8]),(!s||m&30)&&k(e,"hidden",!o[2]),m&512&&c(e,"flex-grow",o[9]),m&512&&c(e,"width",o[9]===0?"fit-content":null),m&1024&&c(e,"min-width",typeof o[10]=="number"?`calc(min(${o[10]}px, 100%))`:null)},i(o){s||(d(u),d(a,o),s=!0)},o(o){g(u),g(a,o),s=!1},d(o){o&&w(e),u&&u.d(),a&&a.d(o),f=!1,_()}}}function Y(i){let e,n,t,s,f=i[7]&&J(i);const _=i[12].default,u=K(_,i,i[11],null);return{c(){e=E("a"),f&&f.c(),n=F(),u&&u.c(),h(e,"href",i[6]),h(e,"rel","noopener noreferrer"),h(e,"aria-disabled",i[8]),h(e,"class",t=i[4]+" "+i[3]+" "+i[1].join(" ")+" svelte-o34uqh"),h(e,"id",i[0]),k(e,"hidden",!i[2]),k(e,"disabled",i[8]),c(e,"flex-grow",i[9]),c(e,"pointer-events",i[8]?"none":null),c(e,"width",i[9]===0?"fit-content":null),c(e,"min-width",typeof i[10]=="number"?`calc(min(${i[10]}px, 100%))`:null)},m(l,a){q(l,e,a),f&&f.m(e,null),D(e,n),u&&u.m(e,null),s=!0},p(l,a){l[7]?f?(f.p(l,a),a&128&&d(f,1)):(f=J(l),f.c(),d(f,1),f.m(e,n)):f&&(v(),g(f,1,1,()=>{f=null}),z()),u&&u.p&&(!s||a&2048)&&M(u,_,l,l[11],s?A(_,l[11],a,null):S(l[11]),null),(!s||a&64)&&h(e,"href",l[6]),(!s||a&256)&&h(e,"aria-disabled",l[8]),(!s||a&26&&t!==(t=l[4]+" "+l[3]+" "+l[1].join(" ")+" svelte-o34uqh"))&&h(e,"class",t),(!s||a&1)&&h(e,"id",l[0]),(!s||a&30)&&k(e,"hidden",!l[2]),(!s||a&282)&&k(e,"disabled",l[8]),a&512&&c(e,"flex-grow",l[9]),a&256&&c(e,"pointer-events",l[8]?"none":null),a&512&&c(e,"width",l[9]===0?"fit-content":null),a&1024&&c(e,"min-width",typeof l[10]=="number"?`calc(min(${l[10]}px, 100%))`:null)},i(l){s||(d(f),d(u,l),s=!0)},o(l){g(f),g(u,l),s=!1},d(l){l&&w(e),f&&f.d(),u&&u.d(l)}}}function C(i){let e,n;return e=new O({props:{class:`button-icon ${i[5]?"right-padded":""}`,src:i[7].url,alt:`${i[5]} icon`}}),{c(){L(e.$$.fragment)},m(t,s){H(e,t,s),n=!0},p(t,s){const f={};s&32&&(f.class=`button-icon ${t[5]?"right-padded":""}`),s&128&&(f.src=t[7].url),s&32&&(f.alt=`${t[5]} icon`),e.$set(f)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function J(i){let e,n;return e=new O({props:{class:"button-icon",src:i[7].url,alt:`${i[5]} icon`}}),{c(){L(e.$$.fragment)},m(t,s){H(e,t,s),n=!0},p(t,s){const f={};s&128&&(f.src=t[7].url),s&32&&(f.alt=`${t[5]} icon`),e.$set(f)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function Z(i){let e,n,t,s;const f=[Y,X],_=[];function u(l,a){return l[6]&&l[6].length>0?0:1}return e=u(i),n=_[e]=f[e](i),{c(){n.c(),t=U()},m(l,a){_[e].m(l,a),q(l,t,a),s=!0},p(l,[a]){let o=e;e=u(l),e===o?_[e].p(l,a):(v(),g(_[o],1,1,()=>{_[o]=null}),z(),n=_[e],n?n.p(l,a):(n=_[e]=f[e](l),n.c()),d(n,1),n.m(t.parentNode,t))},i(l){s||(d(n),s=!0)},o(l){g(n),s=!1},d(l){l&&w(t),_[e].d(l)}}}function p(i,e,n){let{$$slots:t={},$$scope:s}=e,{elem_id:f=""}=e,{elem_classes:_=[]}=e,{visible:u=!0}=e,{variant:l="secondary"}=e,{size:a="lg"}=e,{value:o=null}=e,{link:m=null}=e,{icon:j=null}=e,{disabled:B=!1}=e,{scale:I=null}=e,{min_width:N=void 0}=e;function P(r){W.call(this,i,r)}return i.$$set=r=>{"elem_id"in r&&n(0,f=r.elem_id),"elem_classes"in r&&n(1,_=r.elem_classes),"visible"in r&&n(2,u=r.visible),"variant"in r&&n(3,l=r.variant),"size"in r&&n(4,a=r.size),"value"in r&&n(5,o=r.value),"link"in r&&n(6,m=r.link),"icon"in r&&n(7,j=r.icon),"disabled"in r&&n(8,B=r.disabled),"scale"in r&&n(9,I=r.scale),"min_width"in r&&n(10,N=r.min_width),"$$scope"in r&&n(11,s=r.$$scope)},[f,_,u,l,a,o,m,j,B,I,N,s,t,P]}class ee extends Q{constructor(e){super(),R(this,e,p,Z,T,{elem_id:0,elem_classes:1,visible:2,variant:3,size:4,value:5,link:6,icon:7,disabled:8,scale:9,min_width:10})}get elem_id(){return this.$$.ctx[0]}set elem_id(e){this.$$set({elem_id:e}),b()}get elem_classes(){return this.$$.ctx[1]}set elem_classes(e){this.$$set({elem_classes:e}),b()}get visible(){return this.$$.ctx[2]}set visible(e){this.$$set({visible:e}),b()}get variant(){return this.$$.ctx[3]}set variant(e){this.$$set({variant:e}),b()}get size(){return this.$$.ctx[4]}set size(e){this.$$set({size:e}),b()}get value(){return this.$$.ctx[5]}set value(e){this.$$set({value:e}),b()}get link(){return this.$$.ctx[6]}set link(e){this.$$set({link:e}),b()}get icon(){return this.$$.ctx[7]}set icon(e){this.$$set({icon:e}),b()}get disabled(){return this.$$.ctx[8]}set disabled(e){this.$$set({disabled:e}),b()}get scale(){return this.$$.ctx[9]}set scale(e){this.$$set({scale:e}),b()}get min_width(){return this.$$.ctx[10]}set min_width(e){this.$$set({min_width:e}),b()}}export{ee as B};
|
| 2 |
+
//# sourceMappingURL=Button-CPMTGicC.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Button-VLJFaMM1.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
button.svelte-o34uqh,a.svelte-o34uqh{display:inline-flex;justify-content:center;align-items:center;transition:var(--button-transition);padding:var(--size-0-5) var(--size-2);text-align:center}button.svelte-o34uqh:hover{transform:var(--button-transform-hover)}button.svelte-o34uqh:active,a.svelte-o34uqh:active{transform:var(--button-transform-active)}button[disabled].svelte-o34uqh,a.disabled.svelte-o34uqh{opacity:.5;filter:grayscale(30%);cursor:not-allowed;transform:none}.hidden.svelte-o34uqh{display:none}.primary.svelte-o34uqh{border:var(--button-border-width) solid var(--button-primary-border-color);background:var(--button-primary-background-fill);color:var(--button-primary-text-color);box-shadow:var(--button-primary-shadow)}.primary.svelte-o34uqh:hover,.primary[disabled].svelte-o34uqh{background:var(--button-primary-background-fill-hover);color:var(--button-primary-text-color-hover)}.primary.svelte-o34uqh:hover{border-color:var(--button-primary-border-color-hover);box-shadow:var(--button-primary-shadow-hover)}.primary.svelte-o34uqh:active{box-shadow:var(--button-primary-shadow-active)}.primary[disabled].svelte-o34uqh{border-color:var(--button-primary-border-color)}.secondary.svelte-o34uqh{border:var(--button-border-width) solid var(--button-secondary-border-color);background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color);box-shadow:var(--button-secondary-shadow)}.secondary.svelte-o34uqh:hover,.secondary[disabled].svelte-o34uqh{background:var(--button-secondary-background-fill-hover);color:var(--button-secondary-text-color-hover)}.secondary.svelte-o34uqh:hover{border-color:var(--button-secondary-border-color-hover);box-shadow:var(--button-secondary-shadow-hover)}.secondary.svelte-o34uqh:active{box-shadow:var(--button-secondary-shadow-active)}.secondary[disabled].svelte-o34uqh{border-color:var(--button-secondary-border-color)}.stop.svelte-o34uqh{background:var(--button-cancel-background-fill);color:var(--button-cancel-text-color);border:var(--button-border-width) solid var(--button-cancel-border-color);box-shadow:var(--button-cancel-shadow)}.stop.svelte-o34uqh:hover,.stop[disabled].svelte-o34uqh{background:var(--button-cancel-background-fill-hover)}.stop.svelte-o34uqh:hover{border-color:var(--button-cancel-border-color-hover);box-shadow:var(--button-cancel-shadow-hover)}.stop.svelte-o34uqh:active{box-shadow:var(--button-cancel-shadow-active)}.stop[disabled].svelte-o34uqh{border-color:var(--button-cancel-border-color)}.sm.svelte-o34uqh{border-radius:var(--button-small-radius);padding:var(--button-small-padding);font-weight:var(--button-small-text-weight);font-size:var(--button-small-text-size)}.md.svelte-o34uqh{border-radius:var(--button-medium-radius);padding:var(--button-medium-padding);font-weight:var(--button-medium-text-weight);font-size:var(--button-medium-text-size)}.lg.svelte-o34uqh{border-radius:var(--button-large-radius);padding:var(--button-large-padding);font-weight:var(--button-large-text-weight);font-size:var(--button-large-text-size)}.button-icon{width:var(--text-xl);height:var(--text-xl)}.button-icon.right-padded{margin-right:var(--spacing-md)}.huggingface.svelte-o34uqh{background:#141c2e;color:#fff}.huggingface.svelte-o34uqh:hover{background:#283042;color:#fff}
|
har_extract/PINNED_HF_HUB/dist/assets/Check-D0Yh8zF7.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as l,i as c,s as p,G as r,d,k as h,l as u,O as n,q as e}from"../lite.js";function w(a){let t,o;return{c(){t=n("svg"),o=n("path"),e(o,"d","M5 13L9 17L19 7"),e(o,"stroke","currentColor"),e(o,"stroke-width","1.5"),e(o,"stroke-linecap","round"),e(o,"stroke-linejoin","round"),e(t,"width","100%"),e(t,"height","100%"),e(t,"stroke-width","1.5"),e(t,"viewBox","0 0 24 24"),e(t,"fill","none"),e(t,"xmlns","http://www.w3.org/2000/svg"),e(t,"color","currentColor")},m(s,i){h(s,t,i),u(t,o)},p:r,i:r,o:r,d(s){s&&d(t)}}}class k extends l{constructor(t){super(),c(this,t,null,w,p,{})}}export{k as C};
|
| 2 |
+
//# sourceMappingURL=Check-D0Yh8zF7.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Copy-BnC0jKei.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as p,i as c,s as d,G as o,d as u,k as v,l,O as n,q as a}from"../lite.js";function m(i){let t,e,r;return{c(){t=n("svg"),e=n("path"),r=n("path"),a(e,"fill","currentColor"),a(e,"d","M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"),a(r,"fill","currentColor"),a(r,"d","M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"),a(t,"xmlns","http://www.w3.org/2000/svg"),a(t,"viewBox","0 0 33 33"),a(t,"color","currentColor"),a(t,"aria-hidden","true"),a(t,"width","100%"),a(t,"height","100%")},m(s,h){v(s,t,h),l(t,e),l(t,r)},p:o,i:o,o,d(s){s&&u(t)}}}class g extends p{constructor(t){super(),c(this,t,null,m,d,{})}}export{g as C};
|
| 2 |
+
//# sourceMappingURL=Copy-BnC0jKei.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Example-Cd_csAAb.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as g,i as y,s as b,f,G as d,d as v,w as m,j as r,k as p,l as z,a5 as k,n as q,x as S,q as C,a6 as j,a7 as w,C as E}from"../lite.js";/* empty css */function G(t){let e,s=o(t[0])+"",i,u;return{c(){e=q("div"),i=S(s),C(e,"class","svelte-1oitfqa"),j(()=>t[5].call(e)),r(e,"table",t[1]==="table"),r(e,"gallery",t[1]==="gallery"),r(e,"selected",t[2])},m(l,a){p(l,e,a),z(e,i),u=k(e,t[5].bind(e)),t[6](e)},p(l,[a]){a&1&&s!==(s=o(l[0])+"")&&m(i,s),a&2&&r(e,"table",l[1]==="table"),a&2&&r(e,"gallery",l[1]==="gallery"),a&4&&r(e,"selected",l[2])},i:d,o:d,d(l){l&&v(e),u(),t[6](null)}}}function M(t,e){t.style.setProperty("--local-text-width",`${e&&e<150?e:200}px`),t.style.whiteSpace="unset"}function o(t,e=60){if(!t)return"";const s=String(t);return s.length<=e?s:s.slice(0,e)+"..."}function P(t,e,s){let{value:i}=e,{type:u}=e,{selected:l=!1}=e,a,c;w(()=>{M(c,a)});function _(){a=this.clientWidth,s(3,a)}function h(n){E[n?"unshift":"push"](()=>{c=n,s(4,c)})}return t.$$set=n=>{"value"in n&&s(0,i=n.value),"type"in n&&s(1,u=n.type),"selected"in n&&s(2,l=n.selected)},[i,u,l,a,c,_,h]}class B extends g{constructor(e){super(),y(this,e,P,G,b,{value:0,type:1,selected:2})}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),f()}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),f()}get selected(){return this.$$.ctx[2]}set selected(e){this.$$set({selected:e}),f()}}export{B as default};
|
| 2 |
+
//# sourceMappingURL=Example-Cd_csAAb.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Example-DRnq2kzJ.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.gallery.svelte-1oitfqa{padding:var(--size-1) var(--size-2)}div.svelte-1oitfqa{overflow:hidden;white-space:nowrap}
|
har_extract/PINNED_HF_HUB/dist/assets/IconButtonWrapper-CJArWTb9.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as u,i as c,s as f,f as i,J as d,d as h,t as m,c as y,K as g,M as v,N as $,P as p,q as _,k as b,n as q}from"../lite.js";function w(l){let e,o,a;const r=l[3].default,s=d(r,l,l[2],null);return{c(){e=q("div"),s&&s.c(),_(e,"class",o=p(`icon-button-wrapper ${l[0]?"top-panel":""} ${l[1]?"display-top-corner":"hide-top-corner"}`)+" svelte-ud4hud")},m(t,n){b(t,e,n),s&&s.m(e,null),a=!0},p(t,[n]){s&&s.p&&(!a||n&4)&&g(s,r,t,t[2],a?$(r,t[2],n,null):v(t[2]),null),(!a||n&3&&o!==(o=p(`icon-button-wrapper ${t[0]?"top-panel":""} ${t[1]?"display-top-corner":"hide-top-corner"}`)+" svelte-ud4hud"))&&_(e,"class",o)},i(t){a||(y(s,t),a=!0)},o(t){m(s,t),a=!1},d(t){t&&h(e),s&&s.d(t)}}}function I(l,e,o){let{$$slots:a={},$$scope:r}=e,{top_panel:s=!0}=e,{display_top_corner:t=!1}=e;return l.$$set=n=>{"top_panel"in n&&o(0,s=n.top_panel),"display_top_corner"in n&&o(1,t=n.display_top_corner),"$$scope"in n&&o(2,r=n.$$scope)},[s,t,r,a]}class B extends u{constructor(e){super(),c(this,e,I,w,f,{top_panel:0,display_top_corner:1})}get top_panel(){return this.$$.ctx[0]}set top_panel(e){this.$$set({top_panel:e}),i()}get display_top_corner(){return this.$$.ctx[1]}set display_top_corner(e){this.$$set({display_top_corner:e}),i()}}export{B as I};
|
| 2 |
+
//# sourceMappingURL=IconButtonWrapper-CJArWTb9.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Image-COLVRtjh.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as p,i as h,s as v,f as b,Q as u,G as _,d as j,R as m,T as q,U as y,j as g,k as I,z as k,n as x,V as f,W as z,B}from"../lite.js";import{r as C}from"./file-url-DmoFipEB.js";/* empty css */function G(t){let s,r,i,o,a=[{src:r=t[0]},t[1]],l={};for(let e=0;e<a.length;e+=1)l=u(l,a[e]);return{c(){s=x("img"),m(s,l),g(s,"svelte-1pijsyv",!0)},m(e,n){I(e,s,n),i||(o=k(s,"load",t[4]),i=!0)},p(e,[n]){m(s,l=q(a,[n&1&&!y(s.src,r=e[0])&&{src:r},n&2&&e[1]])),g(s,"svelte-1pijsyv",!0)},i:_,o:_,d(e){e&&j(s),i=!1,o()}}}function P(t,s,r){const i=["src"];let o=f(s,i),{src:a=void 0}=s,l,e;function n(c){B.call(this,t,c)}return t.$$set=c=>{s=u(u({},s),z(c)),r(1,o=f(s,i)),"src"in c&&r(2,a=c.src)},t.$$.update=()=>{if(t.$$.dirty&12){r(0,l=a),r(3,e=a);const c=a;C(c).then(d=>{e===c&&r(0,l=d)})}},[l,o,a,e,n]}class T extends p{constructor(s){super(),h(this,s,P,G,v,{src:2})}get src(){return this.$$.ctx[2]}set src(s){this.$$set({src:s}),b()}}export{T as I};
|
| 2 |
+
//# sourceMappingURL=Image-COLVRtjh.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Image-Ds1uFAjO.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
img.svelte-1pijsyv{object-fit:cover}
|
har_extract/PINNED_HF_HUB/dist/assets/ImagePreview-D5bl4ZzZ.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.image-container.svelte-zxsjoa.svelte-zxsjoa{height:100%;position:relative;min-width:var(--size-20)}.image-container.svelte-zxsjoa button.svelte-zxsjoa{width:var(--size-full);height:var(--size-full);border-radius:var(--radius-lg);display:flex;align-items:center;justify-content:center}.image-frame.svelte-zxsjoa img{width:var(--size-full);height:var(--size-full);object-fit:scale-down}.selectable.svelte-zxsjoa.svelte-zxsjoa{cursor:crosshair}.fullscreen-controls svg{position:relative;top:0}.image-container:fullscreen{background-color:#000;display:flex;justify-content:center;align-items:center}.image-container:fullscreen img{max-width:90vw;max-height:90vh;object-fit:scale-down}.image-frame.svelte-zxsjoa.svelte-zxsjoa{width:auto;height:100%;display:flex;align-items:center;justify-content:center}
|
har_extract/PINNED_HF_HUB/dist/assets/Index-B7S-J5dW.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as S,i as q,s as z,f,J as C,d as I,t as w,c,e as J,h as K,K as M,M as N,N as Q,q as h,j as m,_ as d,k as T,l as A,n as B,o as D,Q as E,S as F,b as G,T as H,a3 as L,m as O,p as P}from"../lite.js";function j(i){let e,n;const r=[{autoscroll:i[7].autoscroll},{i18n:i[7].i18n},i[6],{status:i[6]?i[6].status=="pending"?"generating":i[6].status:null}];let o={};for(let s=0;s<r.length;s+=1)o=E(o,r[s]);return e=new F({props:o}),{c(){P(e.$$.fragment)},m(s,t){O(e,s,t),n=!0},p(s,t){const g=t&192?H(r,[t&128&&{autoscroll:s[7].autoscroll},t&128&&{i18n:s[7].i18n},t&64&&L(s[6]),t&64&&{status:s[6]?s[6].status=="pending"?"generating":s[6].status:null}]):{};e.$set(g)},i(s){n||(c(e.$$.fragment,s),n=!0)},o(s){w(e.$$.fragment,s),n=!1},d(s){G(e,s)}}}function R(i){let e,n,r,o=`calc(min(${i[1]}px, 100%))`,s,t=i[6]&&i[8]&&i[7]&&j(i);const g=i[10].default,_=C(g,i,i[9],null);return{c(){e=B("div"),t&&t.c(),n=D(),_&&_.c(),h(e,"id",i[2]),h(e,"class",r="column "+i[3].join(" ")+" svelte-bnzux8"),m(e,"compact",i[5]==="compact"),m(e,"panel",i[5]==="panel"),m(e,"hide",!i[4]),d(e,"flex-grow",i[0]),d(e,"min-width",o)},m(a,u){T(a,e,u),t&&t.m(e,null),A(e,n),_&&_.m(e,null),s=!0},p(a,[u]){a[6]&&a[8]&&a[7]?t?(t.p(a,u),u&448&&c(t,1)):(t=j(a),t.c(),c(t,1),t.m(e,n)):t&&(J(),w(t,1,1,()=>{t=null}),K()),_&&_.p&&(!s||u&512)&&M(_,g,a,a[9],s?Q(g,a[9],u,null):N(a[9]),null),(!s||u&4)&&h(e,"id",a[2]),(!s||u&8&&r!==(r="column "+a[3].join(" ")+" svelte-bnzux8"))&&h(e,"class",r),(!s||u&40)&&m(e,"compact",a[5]==="compact"),(!s||u&40)&&m(e,"panel",a[5]==="panel"),(!s||u&24)&&m(e,"hide",!a[4]),u&1&&d(e,"flex-grow",a[0]),u&2&&o!==(o=`calc(min(${a[1]}px, 100%))`)&&d(e,"min-width",o)},i(a){s||(c(t),c(_,a),s=!0)},o(a){w(t),w(_,a),s=!1},d(a){a&&I(e),t&&t.d(),_&&_.d(a)}}}function U(i,e,n){let{$$slots:r={},$$scope:o}=e,{scale:s=null}=e,{min_width:t=0}=e,{elem_id:g=""}=e,{elem_classes:_=[]}=e,{visible:a=!0}=e,{variant:u="default"}=e,{loading_status:b=void 0}=e,{gradio:v=void 0}=e,{show_progress:k=!1}=e;return i.$$set=l=>{"scale"in l&&n(0,s=l.scale),"min_width"in l&&n(1,t=l.min_width),"elem_id"in l&&n(2,g=l.elem_id),"elem_classes"in l&&n(3,_=l.elem_classes),"visible"in l&&n(4,a=l.visible),"variant"in l&&n(5,u=l.variant),"loading_status"in l&&n(6,b=l.loading_status),"gradio"in l&&n(7,v=l.gradio),"show_progress"in l&&n(8,k=l.show_progress),"$$scope"in l&&n(9,o=l.$$scope)},[s,t,g,_,a,u,b,v,k,o,r]}class W extends S{constructor(e){super(),q(this,e,U,R,z,{scale:0,min_width:1,elem_id:2,elem_classes:3,visible:4,variant:5,loading_status:6,gradio:7,show_progress:8})}get scale(){return this.$$.ctx[0]}set scale(e){this.$$set({scale:e}),f()}get min_width(){return this.$$.ctx[1]}set min_width(e){this.$$set({min_width:e}),f()}get elem_id(){return this.$$.ctx[2]}set elem_id(e){this.$$set({elem_id:e}),f()}get elem_classes(){return this.$$.ctx[3]}set elem_classes(e){this.$$set({elem_classes:e}),f()}get visible(){return this.$$.ctx[4]}set visible(e){this.$$set({visible:e}),f()}get variant(){return this.$$.ctx[5]}set variant(e){this.$$set({variant:e}),f()}get loading_status(){return this.$$.ctx[6]}set loading_status(e){this.$$set({loading_status:e}),f()}get gradio(){return this.$$.ctx[7]}set gradio(e){this.$$set({gradio:e}),f()}get show_progress(){return this.$$.ctx[8]}set show_progress(e){this.$$set({show_progress:e}),f()}}export{W as default};
|
| 2 |
+
//# sourceMappingURL=Index-B7S-J5dW.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Index-Bp6-wsMo.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
div.svelte-bnzux8{display:flex;position:relative;flex-direction:column;gap:var(--layout-gap)}div.svelte-bnzux8>*,div.svelte-bnzux8>.form>*{width:var(--size-full)}.hide.svelte-bnzux8{display:none}.compact.svelte-bnzux8>*,.compact.svelte-bnzux8 .box{border-radius:0}.compact.svelte-bnzux8,.panel.svelte-bnzux8{border:solid var(--panel-border-width) var(--panel-border-color);border-radius:var(--container-radius);background:var(--panel-background-fill);padding:var(--spacing-lg)}
|
har_extract/PINNED_HF_HUB/dist/assets/Index-BtoD4fPF.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as r,i as h,s as m,f as _,J as d,d as g,t as w,c as b,K as v,M as q,N as j,j as o,_ as u,k,n as C,q as I}from"../lite.js";function J(n){let e,i;const f=n[4].default,s=d(f,n,n[3],null);return{c(){e=C("div"),s&&s.c(),I(e,"class","form svelte-633qhp"),o(e,"hidden",!n[0]),u(e,"flex-grow",n[1]),u(e,"min-width",`calc(min(${n[2]}px, 100%))`)},m(t,l){k(t,e,l),s&&s.m(e,null),i=!0},p(t,[l]){s&&s.p&&(!i||l&8)&&v(s,f,t,t[3],i?j(f,t[3],l,null):q(t[3]),null),(!i||l&1)&&o(e,"hidden",!t[0]),l&2&&u(e,"flex-grow",t[1]),l&4&&u(e,"min-width",`calc(min(${t[2]}px, 100%))`)},i(t){i||(b(s,t),i=!0)},o(t){w(s,t),i=!1},d(t){t&&g(e),s&&s.d(t)}}}function K(n,e,i){let{$$slots:f={},$$scope:s}=e,{visible:t=!0}=e,{scale:l=null}=e,{min_width:c=0}=e;return n.$$set=a=>{"visible"in a&&i(0,t=a.visible),"scale"in a&&i(1,l=a.scale),"min_width"in a&&i(2,c=a.min_width),"$$scope"in a&&i(3,s=a.$$scope)},[t,l,c,s,f]}class N extends r{constructor(e){super(),h(this,e,K,J,m,{visible:0,scale:1,min_width:2})}get visible(){return this.$$.ctx[0]}set visible(e){this.$$set({visible:e}),_()}get scale(){return this.$$.ctx[1]}set scale(e){this.$$set({scale:e}),_()}get min_width(){return this.$$.ctx[2]}set min_width(e){this.$$set({min_width:e}),_()}}export{N as default};
|
| 2 |
+
//# sourceMappingURL=Index-BtoD4fPF.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Index-Ci4eVLjY.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
div.svelte-1xp0cw7{display:flex;flex-wrap:wrap;gap:var(--layout-gap);width:var(--size-full);position:relative}.hide.svelte-1xp0cw7{display:none}.compact.svelte-1xp0cw7>*,.compact.svelte-1xp0cw7 .box{border-radius:0}.compact.svelte-1xp0cw7,.panel.svelte-1xp0cw7{border-radius:var(--container-radius);background:var(--background-fill-secondary);padding:var(--size-2)}.unequal-height.svelte-1xp0cw7{align-items:flex-start}.stretch.svelte-1xp0cw7{align-items:stretch}.stretch.svelte-1xp0cw7>.column>*,.stretch.svelte-1xp0cw7>.column>.form>*{flex-grow:1;flex-shrink:0}div.svelte-1xp0cw7>*,div.svelte-1xp0cw7>.form>*{flex:1 1 0%;flex-wrap:wrap;min-width:min(160px,100%)}.grow-children.svelte-1xp0cw7>.column{align-self:stretch}
|
har_extract/PINNED_HF_HUB/dist/assets/Index-CkHlsT8d.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as b,i as k,s as w,f as c,b as z,t as B,c as q,m as C,p as I,d as S,w as j,k as A,x as D}from"../lite.js";import{B as E}from"./Button-CPMTGicC.js";import"./Image-COLVRtjh.js";import"./file-url-DmoFipEB.js";/* empty css *//* empty css */function F(l){let e=(l[3]??"")+"",s;return{c(){s=D(e)},m(t,n){A(t,s,n)},p(t,n){n&8&&e!==(e=(t[3]??"")+"")&&j(s,e)},d(t){t&&S(s)}}}function G(l){let e,s;return e=new E({props:{value:l[3],variant:l[4],elem_id:l[0],elem_classes:l[1],size:l[6],scale:l[7],link:l[9],icon:l[8],min_width:l[10],visible:l[2],disabled:!l[5],$$slots:{default:[F]},$$scope:{ctx:l}}}),e.$on("click",l[12]),{c(){I(e.$$.fragment)},m(t,n){C(e,t,n),s=!0},p(t,[n]){const a={};n&8&&(a.value=t[3]),n&16&&(a.variant=t[4]),n&1&&(a.elem_id=t[0]),n&2&&(a.elem_classes=t[1]),n&64&&(a.size=t[6]),n&128&&(a.scale=t[7]),n&512&&(a.link=t[9]),n&256&&(a.icon=t[8]),n&1024&&(a.min_width=t[10]),n&4&&(a.visible=t[2]),n&32&&(a.disabled=!t[5]),n&8200&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i(t){s||(q(e.$$.fragment,t),s=!0)},o(t){B(e.$$.fragment,t),s=!1},d(t){z(e,t)}}}function H(l,e,s){let{elem_id:t=""}=e,{elem_classes:n=[]}=e,{visible:a=!0}=e,{value:m}=e,{variant:f="secondary"}=e,{interactive:h}=e,{size:_="lg"}=e,{scale:r=null}=e,{icon:g=null}=e,{link:o=null}=e,{min_width:v=void 0}=e,{gradio:u}=e;const d=()=>u.dispatch("click");return l.$$set=i=>{"elem_id"in i&&s(0,t=i.elem_id),"elem_classes"in i&&s(1,n=i.elem_classes),"visible"in i&&s(2,a=i.visible),"value"in i&&s(3,m=i.value),"variant"in i&&s(4,f=i.variant),"interactive"in i&&s(5,h=i.interactive),"size"in i&&s(6,_=i.size),"scale"in i&&s(7,r=i.scale),"icon"in i&&s(8,g=i.icon),"link"in i&&s(9,o=i.link),"min_width"in i&&s(10,v=i.min_width),"gradio"in i&&s(11,u=i.gradio)},[t,n,a,m,f,h,_,r,g,o,v,u,d]}class P extends b{constructor(e){super(),k(this,e,H,G,w,{elem_id:0,elem_classes:1,visible:2,value:3,variant:4,interactive:5,size:6,scale:7,icon:8,link:9,min_width:10,gradio:11})}get elem_id(){return this.$$.ctx[0]}set elem_id(e){this.$$set({elem_id:e}),c()}get elem_classes(){return this.$$.ctx[1]}set elem_classes(e){this.$$set({elem_classes:e}),c()}get visible(){return this.$$.ctx[2]}set visible(e){this.$$set({visible:e}),c()}get value(){return this.$$.ctx[3]}set value(e){this.$$set({value:e}),c()}get variant(){return this.$$.ctx[4]}set variant(e){this.$$set({variant:e}),c()}get interactive(){return this.$$.ctx[5]}set interactive(e){this.$$set({interactive:e}),c()}get size(){return this.$$.ctx[6]}set size(e){this.$$set({size:e}),c()}get scale(){return this.$$.ctx[7]}set scale(e){this.$$set({scale:e}),c()}get icon(){return this.$$.ctx[8]}set icon(e){this.$$set({icon:e}),c()}get link(){return this.$$.ctx[9]}set link(e){this.$$set({link:e}),c()}get min_width(){return this.$$.ctx[10]}set min_width(e){this.$$set({min_width:e}),c()}get gradio(){return this.$$.ctx[11]}set gradio(e){this.$$set({gradio:e}),c()}}export{E as BaseButton,P as default};
|
| 2 |
+
//# sourceMappingURL=Index-CkHlsT8d.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Index-Cmhi_Y5F.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as J,i as K,s as M,f as _,J as N,d as Q,t as d,c as m,e as T,h as z,K as A,M as B,N as D,q as c,j as r,_ as o,k as E,l as F,n as G,o as H,Q as L,S as O,b as P,T as R,a3 as U,m as V,p as W}from"../lite.js";function C(i){let e,l;const f=[{autoscroll:i[6].autoscroll},{i18n:i[6].i18n},i[5],{status:i[5]?i[5].status=="pending"?"generating":i[5].status:null}];let n={};for(let t=0;t<f.length;t+=1)n=L(n,f[t]);return e=new O({props:n}),{c(){W(e.$$.fragment)},m(t,u){V(e,t,u),l=!0},p(t,u){const g=u&96?R(f,[u&64&&{autoscroll:t[6].autoscroll},u&64&&{i18n:t[6].i18n},u&32&&U(t[5]),u&32&&{status:t[5]?t[5].status=="pending"?"generating":t[5].status:null}]):{};e.$set(g)},i(t){l||(m(e.$$.fragment,t),l=!0)},o(t){d(e.$$.fragment,t),l=!1},d(t){P(e,t)}}}function X(i){let e,l,f,n,t=i[5]&&i[7]&&i[6]&&C(i);const u=i[14].default,g=N(u,i,i[13],null);return{c(){e=G("div"),t&&t.c(),l=H(),g&&g.c(),c(e,"id",i[1]),c(e,"class",f="row "+i[2].join(" ")+" svelte-1xp0cw7"),r(e,"compact",i[4]==="compact"),r(e,"panel",i[4]==="panel"),r(e,"unequal-height",i[0]===!1),r(e,"stretch",i[0]),r(e,"hide",!i[3]),r(e,"grow-children",i[11]&&i[11]>=1),o(e,"height",i[12](i[8])),o(e,"max-height",i[12](i[10])),o(e,"min-height",i[12](i[9])),o(e,"flex-grow",i[11])},m(s,h){E(s,e,h),t&&t.m(e,null),F(e,l),g&&g.m(e,null),n=!0},p(s,[h]){s[5]&&s[7]&&s[6]?t?(t.p(s,h),h&224&&m(t,1)):(t=C(s),t.c(),m(t,1),t.m(e,l)):t&&(T(),d(t,1,1,()=>{t=null}),z()),g&&g.p&&(!n||h&8192)&&A(g,u,s,s[13],n?D(u,s[13],h,null):B(s[13]),null),(!n||h&2)&&c(e,"id",s[1]),(!n||h&4&&f!==(f="row "+s[2].join(" ")+" svelte-1xp0cw7"))&&c(e,"class",f),(!n||h&20)&&r(e,"compact",s[4]==="compact"),(!n||h&20)&&r(e,"panel",s[4]==="panel"),(!n||h&5)&&r(e,"unequal-height",s[0]===!1),(!n||h&5)&&r(e,"stretch",s[0]),(!n||h&12)&&r(e,"hide",!s[3]),(!n||h&2052)&&r(e,"grow-children",s[11]&&s[11]>=1),h&256&&o(e,"height",s[12](s[8])),h&1024&&o(e,"max-height",s[12](s[10])),h&512&&o(e,"min-height",s[12](s[9])),h&2048&&o(e,"flex-grow",s[11])},i(s){n||(m(t),m(g,s),n=!0)},o(s){d(t),d(g,s),n=!1},d(s){s&&Q(e),t&&t.d(),g&&g.d(s)}}}function Y(i,e,l){let{$$slots:f={},$$scope:n}=e,{equal_height:t=!0}=e,{elem_id:u}=e,{elem_classes:g=[]}=e,{visible:s=!0}=e,{variant:h="default"}=e,{loading_status:w=void 0}=e,{gradio:b=void 0}=e,{show_progress:q=!1}=e,{height:k}=e,{min_height:v}=e,{max_height:j}=e,{scale:S=null}=e;const I=a=>{if(a!==void 0){if(typeof a=="number")return a+"px";if(typeof a=="string")return a}};return i.$$set=a=>{"equal_height"in a&&l(0,t=a.equal_height),"elem_id"in a&&l(1,u=a.elem_id),"elem_classes"in a&&l(2,g=a.elem_classes),"visible"in a&&l(3,s=a.visible),"variant"in a&&l(4,h=a.variant),"loading_status"in a&&l(5,w=a.loading_status),"gradio"in a&&l(6,b=a.gradio),"show_progress"in a&&l(7,q=a.show_progress),"height"in a&&l(8,k=a.height),"min_height"in a&&l(9,v=a.min_height),"max_height"in a&&l(10,j=a.max_height),"scale"in a&&l(11,S=a.scale),"$$scope"in a&&l(13,n=a.$$scope)},[t,u,g,s,h,w,b,q,k,v,j,S,I,n,f]}class y extends J{constructor(e){super(),K(this,e,Y,X,M,{equal_height:0,elem_id:1,elem_classes:2,visible:3,variant:4,loading_status:5,gradio:6,show_progress:7,height:8,min_height:9,max_height:10,scale:11})}get equal_height(){return this.$$.ctx[0]}set equal_height(e){this.$$set({equal_height:e}),_()}get elem_id(){return this.$$.ctx[1]}set elem_id(e){this.$$set({elem_id:e}),_()}get elem_classes(){return this.$$.ctx[2]}set elem_classes(e){this.$$set({elem_classes:e}),_()}get visible(){return this.$$.ctx[3]}set visible(e){this.$$set({visible:e}),_()}get variant(){return this.$$.ctx[4]}set variant(e){this.$$set({variant:e}),_()}get loading_status(){return this.$$.ctx[5]}set loading_status(e){this.$$set({loading_status:e}),_()}get gradio(){return this.$$.ctx[6]}set gradio(e){this.$$set({gradio:e}),_()}get show_progress(){return this.$$.ctx[7]}set show_progress(e){this.$$set({show_progress:e}),_()}get height(){return this.$$.ctx[8]}set height(e){this.$$set({height:e}),_()}get min_height(){return this.$$.ctx[9]}set min_height(e){this.$$set({min_height:e}),_()}get max_height(){return this.$$.ctx[10]}set max_height(e){this.$$set({max_height:e}),_()}get scale(){return this.$$.ctx[11]}set scale(e){this.$$set({scale:e}),_()}}export{y as default};
|
| 2 |
+
//# sourceMappingURL=Index-Cmhi_Y5F.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Index-DrdqQIFB.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
div.svelte-633qhp{display:flex;flex-direction:inherit;flex-wrap:wrap;gap:var(--form-gap-width);box-shadow:var(--block-shadow);border:var(--block-border-width) solid var(--block-border-color);border-radius:var(--block-radius);background:var(--border-color-primary);overflow-y:hidden}div.svelte-633qhp .block{box-shadow:none!important;border-width:0px!important;border-radius:0!important}.hidden.svelte-633qhp{display:none}
|
har_extract/PINNED_HF_HUB/dist/assets/Index-WhXxpmre.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as tt,i as et,s as st,f as o,a1 as it,b as k,t as m,c as b,m as T,p as B,C as K,a2 as L,d as lt,e as nt,h as at,a4 as M,k as ut,o as _t,Q as ot,S as ht,T as ft,a3 as rt}from"../lite.js";import{T as ct}from"./Textbox-CUmtFzE7.js";import{default as zt}from"./Example-Cd_csAAb.js";import"./BlockTitle-xHZJuij_.js";import"./Info-B9mP7QY3.js";import"./MarkdownCode-CAvV55n_.js";import"./Check-D0Yh8zF7.js";import"./Copy-BnC0jKei.js";import"./Send-CjgBYKVY.js";import"./Square-CLYhrJ_i.js";import"./IconButtonWrapper-CJArWTb9.js";/* empty css *//* empty css */function O(i){let t,s;const n=[{autoscroll:i[3].autoscroll},{i18n:i[3].i18n},i[20],{show_validation_error:!1}];let f={};for(let a=0;a<n.length;a+=1)f=ot(f,n[a]);return t=new ht({props:f}),t.$on("clear_status",i[29]),{c(){B(t.$$.fragment)},m(a,_){T(t,a,_),s=!0},p(a,_){const c=_[0]&1048584?ft(n,[_[0]&8&&{autoscroll:a[3].autoscroll},_[0]&8&&{i18n:a[3].i18n},_[0]&1048576&&rt(a[20]),n[3]]):{};t.$set(c)},i(a){s||(b(t.$$.fragment,a),s=!0)},o(a){m(t.$$.fragment,a),s=!1},d(a){k(t,a)}}}function bt(i){let t,s,n,f,a,_=i[20]&&O(i);function c(l){i[30](l)}function g(l){i[31](l)}let r={label:i[4],info:i[5],show_label:i[11],lines:i[9],type:i[13],rtl:i[21],text_align:i[22],max_lines:i[12],placeholder:i[10],submit_btn:i[17],stop_btn:i[18],show_copy_button:i[19],autofocus:i[23],container:i[14],autoscroll:i[24],max_length:i[26],html_attributes:i[27],validation_error:i[20]?.validation_error||i[2],disabled:!i[25]};return i[0]!==void 0&&(r.value=i[0]),i[1]!==void 0&&(r.value_is_output=i[1]),s=new ct({props:r}),K.push(()=>L(s,"value",c)),K.push(()=>L(s,"value_is_output",g)),s.$on("change",i[32]),s.$on("input",i[33]),s.$on("submit",i[34]),s.$on("blur",i[35]),s.$on("select",i[36]),s.$on("focus",i[37]),s.$on("stop",i[38]),s.$on("copy",i[39]),{c(){_&&_.c(),t=_t(),B(s.$$.fragment)},m(l,u){_&&_.m(l,u),ut(l,t,u),T(s,l,u),a=!0},p(l,u){l[20]?_?(_.p(l,u),u[0]&1048576&&b(_,1)):(_=O(l),_.c(),b(_,1),_.m(t.parentNode,t)):_&&(nt(),m(_,1,1,()=>{_=null}),at());const h={};u[0]&16&&(h.label=l[4]),u[0]&32&&(h.info=l[5]),u[0]&2048&&(h.show_label=l[11]),u[0]&512&&(h.lines=l[9]),u[0]&8192&&(h.type=l[13]),u[0]&2097152&&(h.rtl=l[21]),u[0]&4194304&&(h.text_align=l[22]),u[0]&4096&&(h.max_lines=l[12]),u[0]&1024&&(h.placeholder=l[10]),u[0]&131072&&(h.submit_btn=l[17]),u[0]&262144&&(h.stop_btn=l[18]),u[0]&524288&&(h.show_copy_button=l[19]),u[0]&8388608&&(h.autofocus=l[23]),u[0]&16384&&(h.container=l[14]),u[0]&16777216&&(h.autoscroll=l[24]),u[0]&67108864&&(h.max_length=l[26]),u[0]&134217728&&(h.html_attributes=l[27]),u[0]&1048580&&(h.validation_error=l[20]?.validation_error||l[2]),u[0]&33554432&&(h.disabled=!l[25]),!n&&u[0]&1&&(n=!0,h.value=l[0],M(()=>n=!1)),!f&&u[0]&2&&(f=!0,h.value_is_output=l[1],M(()=>f=!1)),s.$set(h)},i(l){a||(b(_),b(s.$$.fragment,l),a=!0)},o(l){m(_),m(s.$$.fragment,l),a=!1},d(l){l&<(t),_&&_.d(l),k(s,l)}}}function mt(i){let t,s;return t=new it({props:{visible:i[8],elem_id:i[6],elem_classes:i[7],scale:i[15],min_width:i[16],allow_overflow:!1,padding:i[14],$$slots:{default:[bt]},$$scope:{ctx:i}}}),{c(){B(t.$$.fragment)},m(n,f){T(t,n,f),s=!0},p(n,f){const a={};f[0]&256&&(a.visible=n[8]),f[0]&64&&(a.elem_id=n[6]),f[0]&128&&(a.elem_classes=n[7]),f[0]&32768&&(a.scale=n[15]),f[0]&65536&&(a.min_width=n[16]),f[0]&16384&&(a.padding=n[14]),f[0]&268336703|f[1]&512&&(a.$$scope={dirty:f,ctx:n}),t.$set(a)},i(n){s||(b(t.$$.fragment,n),s=!0)},o(n){m(t.$$.fragment,n),s=!1},d(n){k(t,n)}}}function gt(i,t,s){let{gradio:n}=t,{label:f="Textbox"}=t,{info:a=void 0}=t,{elem_id:_=""}=t,{elem_classes:c=[]}=t,{visible:g=!0}=t,{value:r=""}=t,{lines:l}=t,{placeholder:u=""}=t,{show_label:h}=t,{max_lines:S=void 0}=t,{type:x="text"}=t,{container:C=!0}=t,{scale:j=null}=t,{min_width:q=void 0}=t,{submit_btn:E=null}=t,{stop_btn:I=null}=t,{show_copy_button:N=!1}=t,{loading_status:v=void 0}=t,{value_is_output:d=!1}=t,{rtl:Q=!1}=t,{text_align:z=void 0}=t,{autofocus:A=!1}=t,{autoscroll:D=!0}=t,{interactive:F}=t,{max_length:G=void 0}=t,{html_attributes:H=null}=t,{validation_error:w=null}=t;function J(e){n.dispatch("change",e)}const P=()=>n.dispatch("clear_status",v);function R(e){r=e,s(0,r)}function U(e){d=e,s(1,d)}const V=e=>J(e.detail),W=()=>n.dispatch("input"),X=()=>{s(2,w=null),n.dispatch("submit")},Y=()=>n.dispatch("blur"),Z=e=>n.dispatch("select",e.detail),y=()=>n.dispatch("focus"),p=()=>n.dispatch("stop"),$=e=>n.dispatch("copy",e.detail);return i.$$set=e=>{"gradio"in e&&s(3,n=e.gradio),"label"in e&&s(4,f=e.label),"info"in e&&s(5,a=e.info),"elem_id"in e&&s(6,_=e.elem_id),"elem_classes"in e&&s(7,c=e.elem_classes),"visible"in e&&s(8,g=e.visible),"value"in e&&s(0,r=e.value),"lines"in e&&s(9,l=e.lines),"placeholder"in e&&s(10,u=e.placeholder),"show_label"in e&&s(11,h=e.show_label),"max_lines"in e&&s(12,S=e.max_lines),"type"in e&&s(13,x=e.type),"container"in e&&s(14,C=e.container),"scale"in e&&s(15,j=e.scale),"min_width"in e&&s(16,q=e.min_width),"submit_btn"in e&&s(17,E=e.submit_btn),"stop_btn"in e&&s(18,I=e.stop_btn),"show_copy_button"in e&&s(19,N=e.show_copy_button),"loading_status"in e&&s(20,v=e.loading_status),"value_is_output"in e&&s(1,d=e.value_is_output),"rtl"in e&&s(21,Q=e.rtl),"text_align"in e&&s(22,z=e.text_align),"autofocus"in e&&s(23,A=e.autofocus),"autoscroll"in e&&s(24,D=e.autoscroll),"interactive"in e&&s(25,F=e.interactive),"max_length"in e&&s(26,G=e.max_length),"html_attributes"in e&&s(27,H=e.html_attributes),"validation_error"in e&&s(2,w=e.validation_error)},[r,d,w,n,f,a,_,c,g,l,u,h,S,x,C,j,q,E,I,N,v,Q,z,A,D,F,G,H,J,P,R,U,V,W,X,Y,Z,y,p,$]}class It extends tt{constructor(t){super(),et(this,t,gt,mt,st,{gradio:3,label:4,info:5,elem_id:6,elem_classes:7,visible:8,value:0,lines:9,placeholder:10,show_label:11,max_lines:12,type:13,container:14,scale:15,min_width:16,submit_btn:17,stop_btn:18,show_copy_button:19,loading_status:20,value_is_output:1,rtl:21,text_align:22,autofocus:23,autoscroll:24,interactive:25,max_length:26,html_attributes:27,validation_error:2},null,[-1,-1])}get gradio(){return this.$$.ctx[3]}set gradio(t){this.$$set({gradio:t}),o()}get label(){return this.$$.ctx[4]}set label(t){this.$$set({label:t}),o()}get info(){return this.$$.ctx[5]}set info(t){this.$$set({info:t}),o()}get elem_id(){return this.$$.ctx[6]}set elem_id(t){this.$$set({elem_id:t}),o()}get elem_classes(){return this.$$.ctx[7]}set elem_classes(t){this.$$set({elem_classes:t}),o()}get visible(){return this.$$.ctx[8]}set visible(t){this.$$set({visible:t}),o()}get value(){return this.$$.ctx[0]}set value(t){this.$$set({value:t}),o()}get lines(){return this.$$.ctx[9]}set lines(t){this.$$set({lines:t}),o()}get placeholder(){return this.$$.ctx[10]}set placeholder(t){this.$$set({placeholder:t}),o()}get show_label(){return this.$$.ctx[11]}set show_label(t){this.$$set({show_label:t}),o()}get max_lines(){return this.$$.ctx[12]}set max_lines(t){this.$$set({max_lines:t}),o()}get type(){return this.$$.ctx[13]}set type(t){this.$$set({type:t}),o()}get container(){return this.$$.ctx[14]}set container(t){this.$$set({container:t}),o()}get scale(){return this.$$.ctx[15]}set scale(t){this.$$set({scale:t}),o()}get min_width(){return this.$$.ctx[16]}set min_width(t){this.$$set({min_width:t}),o()}get submit_btn(){return this.$$.ctx[17]}set submit_btn(t){this.$$set({submit_btn:t}),o()}get stop_btn(){return this.$$.ctx[18]}set stop_btn(t){this.$$set({stop_btn:t}),o()}get show_copy_button(){return this.$$.ctx[19]}set show_copy_button(t){this.$$set({show_copy_button:t}),o()}get loading_status(){return this.$$.ctx[20]}set loading_status(t){this.$$set({loading_status:t}),o()}get value_is_output(){return this.$$.ctx[1]}set value_is_output(t){this.$$set({value_is_output:t}),o()}get rtl(){return this.$$.ctx[21]}set rtl(t){this.$$set({rtl:t}),o()}get text_align(){return this.$$.ctx[22]}set text_align(t){this.$$set({text_align:t}),o()}get autofocus(){return this.$$.ctx[23]}set autofocus(t){this.$$set({autofocus:t}),o()}get autoscroll(){return this.$$.ctx[24]}set autoscroll(t){this.$$set({autoscroll:t}),o()}get interactive(){return this.$$.ctx[25]}set interactive(t){this.$$set({interactive:t}),o()}get max_length(){return this.$$.ctx[26]}set max_length(t){this.$$set({max_length:t}),o()}get html_attributes(){return this.$$.ctx[27]}set html_attributes(t){this.$$set({html_attributes:t}),o()}get validation_error(){return this.$$.ctx[2]}set validation_error(t){this.$$set({validation_error:t}),o()}}export{zt as BaseExample,ct as BaseTextbox,It as default};
|
| 2 |
+
//# sourceMappingURL=Index-WhXxpmre.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Info-B9mP7QY3.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as i,i as f,s as m,f as c,d as u,b as l,t as d,c as $,k as p,m as _,n as g,p as h,q as k}from"../lite.js";import{M as v}from"./MarkdownCode-CAvV55n_.js";function w(a){let e,n,s;return n=new v({props:{message:a[0],sanitize_html:!0}}),{c(){e=g("div"),h(n.$$.fragment),k(e,"class","svelte-j9uq24")},m(t,o){p(t,e,o),_(n,e,null),s=!0},p(t,[o]){const r={};o&1&&(r.message=t[0]),n.$set(r)},i(t){s||($(n.$$.fragment,t),s=!0)},o(t){d(n.$$.fragment,t),s=!1},d(t){t&&u(e),l(n)}}}function q(a,e,n){let{info:s}=e;return a.$$set=t=>{"info"in t&&n(0,s=t.info)},[s]}class I extends i{constructor(e){super(),f(this,e,q,w,m,{info:0})}get info(){return this.$$.ctx[0]}set info(e){this.$$set({info:e}),c()}}export{I};
|
| 2 |
+
//# sourceMappingURL=Info-B9mP7QY3.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/MarkdownCode-CAvV55n_.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./katex-DO5s4sR4.css","./auto-render-DsjrxxwK.js","./katex-DsmCZfJr.js","./mermaid.core-CxigrlQ0.js","../lite.js","../lite.css","./step-Wxge9qY-.js","./dispatch-kxCwF96_.js","./select-BigU4G0v.js"])))=>i.map(i=>d[i]);
|
| 2 |
+
import{b5 as H,a as q,i as G,s as I,f as d,G as A,d as V,j as g,k as j,n as N,q as U,b6 as K,v as X,C as Z,ap as _,A as J}from"../lite.js";const Q=(i,e=location.href)=>{try{return!!i&&new URL(i).origin!==new URL(e).origin}catch{return!1}};function E(i){const e=new H,r=new DOMParser().parseFromString(i,"text/html");return O(r.body,"A",n=>{n instanceof HTMLElement&&"target"in n&&Q(n.getAttribute("href"),location.href)&&(n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"))}),e.sanitize(r).body.innerHTML}function O(i,e,r){i&&i.nodeName===e&&r(i);const n=i?.childNodes||[];for(let m=0;m<n.length;m++)O(n[m],e,r)}const T=["!--","!doctype","a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","big","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","search","section","select","small","source","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr"],W=["g","defs","use","symbol","rect","circle","ellipse","line","polyline","polygon","path","image","text","tspan","textPath","linearGradient","radialGradient","stop","pattern","clipPath","mask","filter","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feGaussianBlur","feMerge","feMorphology","feOffset","feSpecularLighting","feTurbulence","feMergeNode","feFuncR","feFuncG","feFuncB","feFuncA","feDistantLight","fePointLight","feSpotLight","feFlood","feTile","animate","animateTransform","animateMotion","mpath","set","view","cursor","foreignObject","desc","title","metadata","switch"],Y=[...T,...W.filter(i=>!T.includes(i))];function $(i){let e;return{c(){e=N("span"),U(e,"class","md svelte-7ddecg"),g(e,"chatbot",i[0]),g(e,"prose",i[1])},m(r,n){j(r,e,n),e.innerHTML=i[3],i[11](e)},p(r,[n]){n&8&&(e.innerHTML=r[3]),n&1&&g(e,"chatbot",r[0]),n&2&&g(e,"prose",r[1])},i:A,o:A,d(r){r&&V(e),i[11](null)}}}function M(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ee(i,e,r){let{chatbot:n=!0}=e,{message:m}=e,{sanitize_html:b=!0}=e,{latex_delimiters:c=[]}=e,{render_markdown:p=!0}=e,{line_breaks:k=!0}=e,{header_links:w=!1}=e,{allow_tags:h=!1}=e,{theme_mode:x="system"}=e,f,y,L=!1;const D=K({header_links:w,line_breaks:k,latex_delimiters:c||[]});function R(t){return!c||c.length===0?!1:c.some(a=>t.includes(a.left)&&t.includes(a.right))}function z(t,a){if(a===!0){const l=/<\/?([a-zA-Z][a-zA-Z0-9-]*)([\s>])/g;return t.replace(l,(s,o,u)=>Y.includes(o.toLowerCase())?s:s.replace(/</g,"<").replace(/>/g,">"))}if(Array.isArray(a)){const l=a.map(o=>({open:new RegExp(`<(${o})(\\s+[^>]*)?>`,"gi"),close:new RegExp(`</(${o})>`,"gi")}));let s=t;return l.forEach(o=>{s=s.replace(o.open,u=>u.replace(/</g,"<").replace(/>/g,">")),s=s.replace(o.close,u=>u.replace(/</g,"<").replace(/>/g,">"))}),s}return t}function C(t){let a=t;if(p){const l=[];c.forEach((s,o)=>{const u=M(s.left),S=M(s.right),B=new RegExp(`${u}([\\s\\S]+?)${S}`,"g");a=a.replace(B,(F,te)=>(l.push(F),`%%%LATEX_BLOCK_${l.length-1}%%%`))}),a=D.parse(a),a=a.replace(/%%%LATEX_BLOCK_(\d+)%%%/g,(s,o)=>l[parseInt(o,10)])}return h&&(a=z(a,h)),b&&E&&(a=E(a)),a}async function P(t){if(c.length>0&&t&&R(t))if(!L)await Promise.all([_(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),_(()=>import("./auto-render-DsjrxxwK.js"),__vite__mapDeps([1,2]),import.meta.url)]).then(([,{default:a}])=>{L=!0,a(f,{delimiters:c,throwOnError:!1})});else{const{default:a}=await _(async()=>{const{default:l}=await import("./auto-render-DsjrxxwK.js");return{default:l}},__vite__mapDeps([1,2]),import.meta.url);a(f,{delimiters:c,throwOnError:!1})}if(f){const a=f.querySelectorAll(".mermaid");if(a.length>0){await J();const{default:l}=await _(async()=>{const{default:s}=await import("./mermaid.core-CxigrlQ0.js").then(o=>o.b6);return{default:s}},__vite__mapDeps([3,4,5,6,7,8]),import.meta.url);l.initialize({startOnLoad:!1,theme:x==="dark"?"dark":"default",securityLevel:"antiscript"}),await l.run({nodes:Array.from(a).map(s=>s)})}}}X(async()=>{f&&document.body.contains(f)?await P(m):console.error("Element is not in the DOM")});function v(t){Z[t?"unshift":"push"](()=>{f=t,r(2,f)})}return i.$$set=t=>{"chatbot"in t&&r(0,n=t.chatbot),"message"in t&&r(4,m=t.message),"sanitize_html"in t&&r(5,b=t.sanitize_html),"latex_delimiters"in t&&r(6,c=t.latex_delimiters),"render_markdown"in t&&r(1,p=t.render_markdown),"line_breaks"in t&&r(7,k=t.line_breaks),"header_links"in t&&r(8,w=t.header_links),"allow_tags"in t&&r(9,h=t.allow_tags),"theme_mode"in t&&r(10,x=t.theme_mode)},i.$$.update=()=>{i.$$.dirty&16&&(m&&m.trim()?r(3,y=C(m)):r(3,y=""))},[n,p,f,y,m,b,c,k,w,h,x,v]}class ae extends q{constructor(e){super(),G(this,e,ee,$,I,{chatbot:0,message:4,sanitize_html:5,latex_delimiters:6,render_markdown:1,line_breaks:7,header_links:8,allow_tags:9,theme_mode:10})}get chatbot(){return this.$$.ctx[0]}set chatbot(e){this.$$set({chatbot:e}),d()}get message(){return this.$$.ctx[4]}set message(e){this.$$set({message:e}),d()}get sanitize_html(){return this.$$.ctx[5]}set sanitize_html(e){this.$$set({sanitize_html:e}),d()}get latex_delimiters(){return this.$$.ctx[6]}set latex_delimiters(e){this.$$set({latex_delimiters:e}),d()}get render_markdown(){return this.$$.ctx[1]}set render_markdown(e){this.$$set({render_markdown:e}),d()}get line_breaks(){return this.$$.ctx[7]}set line_breaks(e){this.$$set({line_breaks:e}),d()}get header_links(){return this.$$.ctx[8]}set header_links(e){this.$$set({header_links:e}),d()}get allow_tags(){return this.$$.ctx[9]}set allow_tags(e){this.$$set({allow_tags:e}),d()}get theme_mode(){return this.$$.ctx[10]}set theme_mode(e){this.$$set({theme_mode:e}),d()}}export{ae as M};
|
| 3 |
+
//# sourceMappingURL=MarkdownCode-CAvV55n_.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Send-CjgBYKVY.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as l,i as p,s as d,G as i,d as g,k as c,l as a,O as r,q as e}from"../lite.js";function h(M){let L,o,t,s,C;return{c(){L=r("svg"),o=r("g"),t=r("g"),s=r("g"),C=r("path"),e(o,"id","SVGRepo_bgCarrier"),e(o,"stroke-width","0"),e(t,"id","SVGRepo_tracerCarrier"),e(t,"stroke-linecap","round"),e(t,"stroke-linejoin","round"),e(C,"d","M19.1168 12.1484C19.474 12.3581 19.9336 12.2384 20.1432 11.8811C20.3528 11.5238 20.2331 11.0643 19.8758 10.8547L19.1168 12.1484ZM6.94331 4.13656L6.55624 4.77902L6.56378 4.78344L6.94331 4.13656ZM5.92408 4.1598L5.50816 3.5357L5.50816 3.5357L5.92408 4.1598ZM5.51031 5.09156L4.76841 5.20151C4.77575 5.25101 4.78802 5.29965 4.80505 5.34671L5.51031 5.09156ZM7.12405 11.7567C7.26496 12.1462 7.69495 12.3477 8.08446 12.2068C8.47397 12.0659 8.67549 11.6359 8.53458 11.2464L7.12405 11.7567ZM19.8758 12.1484C20.2331 11.9388 20.3528 11.4793 20.1432 11.122C19.9336 10.7648 19.474 10.6451 19.1168 10.8547L19.8758 12.1484ZM6.94331 18.8666L6.56375 18.2196L6.55627 18.2241L6.94331 18.8666ZM5.92408 18.8433L5.50815 19.4674H5.50815L5.92408 18.8433ZM5.51031 17.9116L4.80505 17.6564C4.78802 17.7035 4.77575 17.7521 4.76841 17.8016L5.51031 17.9116ZM8.53458 11.7567C8.67549 11.3672 8.47397 10.9372 8.08446 10.7963C7.69495 10.6554 7.26496 10.8569 7.12405 11.2464L8.53458 11.7567ZM19.4963 12.2516C19.9105 12.2516 20.2463 11.9158 20.2463 11.5016C20.2463 11.0873 19.9105 10.7516 19.4963 10.7516V12.2516ZM7.82931 10.7516C7.4151 10.7516 7.07931 11.0873 7.07931 11.5016C7.07931 11.9158 7.4151 12.2516 7.82931 12.2516V10.7516ZM19.8758 10.8547L7.32284 3.48968L6.56378 4.78344L19.1168 12.1484L19.8758 10.8547ZM7.33035 3.49414C6.76609 3.15419 6.05633 3.17038 5.50816 3.5357L6.34 4.78391C6.40506 4.74055 6.4893 4.73863 6.55627 4.77898L7.33035 3.49414ZM5.50816 3.5357C4.95998 3.90102 4.67184 4.54987 4.76841 5.20151L6.25221 4.98161C6.24075 4.90427 6.27494 4.82727 6.34 4.78391L5.50816 3.5357ZM4.80505 5.34671L7.12405 11.7567L8.53458 11.2464L6.21558 4.83641L4.80505 5.34671ZM19.1168 10.8547L6.56378 18.2197L7.32284 19.5134L19.8758 12.1484L19.1168 10.8547ZM6.55627 18.2241C6.4893 18.2645 6.40506 18.2626 6.34 18.2192L5.50815 19.4674C6.05633 19.8327 6.76609 19.8489 7.33035 19.509L6.55627 18.2241ZM6.34 18.2192C6.27494 18.1759 6.24075 18.0988 6.25221 18.0215L4.76841 17.8016C4.67184 18.4532 4.95998 19.1021 5.50815 19.4674L6.34 18.2192ZM6.21558 18.1667L8.53458 11.7567L7.12405 11.2464L4.80505 17.6564L6.21558 18.1667ZM19.4963 10.7516H7.82931V12.2516H19.4963V10.7516Z"),e(C,"fill","currentColor"),e(s,"id","SVGRepo_iconCarrier"),e(L,"viewBox","0 0 22 24"),e(L,"width","100%"),e(L,"height","100%"),e(L,"fill","none"),e(L,"xmlns","http://www.w3.org/2000/svg")},m(n,Z){c(n,L,Z),a(L,o),a(L,t),a(L,s),a(s,C)},p:i,i,o:i,d(n){n&&g(L)}}}class f extends l{constructor(L){super(),p(this,L,null,h,d,{})}}export{f as S};
|
| 2 |
+
//# sourceMappingURL=Send-CjgBYKVY.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Square-CLYhrJ_i.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as f,i as u,s as d,f as o,G as a,d as w,q as e,k as c,l as k,O as h}from"../lite.js";function _(n){let t,s,l;return{c(){t=h("svg"),s=h("rect"),e(s,"x","3"),e(s,"y","3"),e(s,"width","18"),e(s,"height","18"),e(s,"rx","2"),e(s,"ry","2"),e(t,"xmlns","http://www.w3.org/2000/svg"),e(t,"width","100%"),e(t,"height","100%"),e(t,"viewBox","0 0 24 24"),e(t,"fill",n[0]),e(t,"stroke","currentColor"),e(t,"stroke-width",l=`${n[1]}`),e(t,"stroke-linecap","round"),e(t,"stroke-linejoin","round"),e(t,"class","feather feather-square")},m(i,r){c(i,t,r),k(t,s)},p(i,[r]){r&1&&e(t,"fill",i[0]),r&2&&l!==(l=`${i[1]}`)&&e(t,"stroke-width",l)},i:a,o:a,d(i){i&&w(t)}}}function g(n,t,s){let{fill:l="currentColor"}=t,{stroke_width:i=1.5}=t;return n.$$set=r=>{"fill"in r&&s(0,l=r.fill),"stroke_width"in r&&s(1,i=r.stroke_width)},[l,i]}class v extends f{constructor(t){super(),u(this,t,g,_,d,{fill:0,stroke_width:1})}get fill(){return this.$$.ctx[0]}set fill(t){this.$$set({fill:t}),o()}get stroke_width(){return this.$$.ctx[1]}set stroke_width(t){this.$$set({stroke_width:t}),o()}}export{v as S};
|
| 2 |
+
//# sourceMappingURL=Square-CLYhrJ_i.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Textbox-CUmtFzE7.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{a as Pe,i as Qe,s as Re,f as k,d as T,b as A,t as C,c as z,e as U,h as j,j as H,k as S,l as L,m as G,n as I,o as N,p as W,q as n,r as Ve,u as Xe,v as Ze,w as V,x as X,y as ge,z as g,A as _e,B as q,C as R,I as $e,D as Z,E as D,F as xe,G as M,H as et}from"../lite.js";import{B as tt}from"./BlockTitle-xHZJuij_.js";import{C as ce}from"./Check-D0Yh8zF7.js";import{C as he}from"./Copy-BnC0jKei.js";import{S as lt}from"./Send-CjgBYKVY.js";import{S as it}from"./Square-CLYhrJ_i.js";import{I as nt}from"./IconButtonWrapper-CJArWTb9.js";/* empty css */function be(t){let e,i;return e=new nt({props:{$$slots:{default:[at]},$$scope:{ctx:t}}}),{c(){W(e.$$.fragment)},m(l,a){G(e,l,a),i=!0},p(l,a){const s={};a[0]&1048576|a[1]&67108864&&(s.$$scope={dirty:a,ctx:l}),e.$set(s)},i(l){i||(z(e.$$.fragment,l),i=!0)},o(l){C(e.$$.fragment,l),i=!1},d(l){A(e,l)}}}function at(t){let e,i;return e=new $e({props:{Icon:t[20]?ce:he,label:t[20]?"Copied":"Copy"}}),e.$on("click",t[22]),{c(){W(e.$$.fragment)},m(l,a){G(e,l,a),i=!0},p(l,a){const s={};a[0]&1048576&&(s.Icon=l[20]?ce:he),a[0]&1048576&&(s.label=l[20]?"Copied":"Copy"),e.$set(s)},i(l){i||(z(e.$$.fragment,l),i=!0)},o(l){C(e.$$.fragment,l),i=!1},d(l){A(e,l)}}}function pe(t){let e,i;return{c(){e=I("div"),i=X(t[17]),n(e,"class","validation-error svelte-1ae7ssi")},m(l,a){S(l,e,a),L(e,i)},p(l,a){a[0]&131072&&V(i,l[17])},d(l){l&&T(e)}}}function ot(t){let e,i,l,a=t[17]&&pe(t);return{c(){e=X(t[3]),i=N(),a&&a.c(),l=ge()},m(s,h){S(s,e,h),S(s,i,h),a&&a.m(s,h),S(s,l,h)},p(s,h){h[0]&8&&V(e,s[3]),s[17]?a?a.p(s,h):(a=pe(s),a.c(),a.m(l.parentNode,l)):a&&(a.d(1),a=null)},d(s){s&&(T(e),T(i),T(l)),a&&a.d(s)}}}function st(t){let e,i,l,a,s,h,m,b,p,u,f,d,c;return{c(){e=I("textarea"),n(e,"data-testid","textbox"),n(e,"dir",i=t[12]?"rtl":"ltr"),n(e,"placeholder",t[2]),n(e,"rows",t[1]),e.disabled=t[5],e.autofocus=t[13],n(e,"maxlength",t[15]),n(e,"style",l=t[14]?"text-align: "+t[14]:""),n(e,"autocapitalize",a=t[16]?.autocapitalize),n(e,"autocorrect",s=t[16]?.autocorrect),n(e,"spellcheck",h=t[16]?.spellcheck),n(e,"autocomplete",m=t[16]?.autocomplete),n(e,"tabindex",b=t[16]?.tabindex),n(e,"enterkeyhint",p=t[16]?.enterkeyhint),n(e,"lang",u=t[16]?.lang),n(e,"class","svelte-1ae7ssi"),H(e,"no-label",!t[6]&&(t[10]||t[11])),H(e,"validation-error",t[17])},m(r,_){S(r,e,_),D(e,t[0]),t[47](e),t[13]&&e.focus(),d||(c=[xe(f=t[28].call(null,e,t[0])),g(e,"input",t[46]),g(e,"keypress",t[24]),g(e,"blur",t[38]),g(e,"select",t[23]),g(e,"focus",t[39]),g(e,"scroll",t[25])],d=!0)},p(r,_){_[0]&4096&&i!==(i=r[12]?"rtl":"ltr")&&n(e,"dir",i),_[0]&4&&n(e,"placeholder",r[2]),_[0]&2&&n(e,"rows",r[1]),_[0]&32&&(e.disabled=r[5]),_[0]&8192&&(e.autofocus=r[13]),_[0]&32768&&n(e,"maxlength",r[15]),_[0]&16384&&l!==(l=r[14]?"text-align: "+r[14]:"")&&n(e,"style",l),_[0]&65536&&a!==(a=r[16]?.autocapitalize)&&n(e,"autocapitalize",a),_[0]&65536&&s!==(s=r[16]?.autocorrect)&&n(e,"autocorrect",s),_[0]&65536&&h!==(h=r[16]?.spellcheck)&&n(e,"spellcheck",h),_[0]&65536&&m!==(m=r[16]?.autocomplete)&&n(e,"autocomplete",m),_[0]&65536&&b!==(b=r[16]?.tabindex)&&n(e,"tabindex",b),_[0]&65536&&p!==(p=r[16]?.enterkeyhint)&&n(e,"enterkeyhint",p),_[0]&65536&&u!==(u=r[16]?.lang)&&n(e,"lang",u),f&&et(f.update)&&_[0]&1&&f.update.call(null,r[0]),_[0]&1&&D(e,r[0]),_[0]&3136&&H(e,"no-label",!r[6]&&(r[10]||r[11])),_[0]&131072&&H(e,"validation-error",r[17])},d(r){r&&T(e),t[47](null),d=!1,Z(c)}}}function ut(t){let e;function i(s,h){if(s[8]==="text")return _t;if(s[8]==="password")return ft;if(s[8]==="email")return rt}let l=i(t),a=l&&l(t);return{c(){a&&a.c(),e=ge()},m(s,h){a&&a.m(s,h),S(s,e,h)},p(s,h){l===(l=i(s))&&a?a.p(s,h):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(e.parentNode,e)))},d(s){s&&T(e),a&&a.d(s)}}}function rt(t){let e,i,l,a,s,h,m,b,p;return{c(){e=I("input"),n(e,"data-testid","textbox"),n(e,"type","email"),n(e,"class","scroll-hide svelte-1ae7ssi"),n(e,"placeholder",t[2]),e.disabled=t[5],e.autofocus=t[13],n(e,"maxlength",t[15]),n(e,"autocomplete","email"),n(e,"autocapitalize",i=t[16]?.autocapitalize),n(e,"autocorrect",l=t[16]?.autocorrect),n(e,"spellcheck",a=t[16]?.spellcheck),n(e,"tabindex",s=t[16]?.tabindex),n(e,"enterkeyhint",h=t[16]?.enterkeyhint),n(e,"lang",m=t[16]?.lang),H(e,"validation-error",t[17])},m(u,f){S(u,e,f),D(e,t[0]),t[45](e),t[13]&&e.focus(),b||(p=[g(e,"input",t[44]),g(e,"keypress",t[24]),g(e,"blur",t[36]),g(e,"select",t[23]),g(e,"focus",t[37])],b=!0)},p(u,f){f[0]&4&&n(e,"placeholder",u[2]),f[0]&32&&(e.disabled=u[5]),f[0]&8192&&(e.autofocus=u[13]),f[0]&32768&&n(e,"maxlength",u[15]),f[0]&65536&&i!==(i=u[16]?.autocapitalize)&&n(e,"autocapitalize",i),f[0]&65536&&l!==(l=u[16]?.autocorrect)&&n(e,"autocorrect",l),f[0]&65536&&a!==(a=u[16]?.spellcheck)&&n(e,"spellcheck",a),f[0]&65536&&s!==(s=u[16]?.tabindex)&&n(e,"tabindex",s),f[0]&65536&&h!==(h=u[16]?.enterkeyhint)&&n(e,"enterkeyhint",h),f[0]&65536&&m!==(m=u[16]?.lang)&&n(e,"lang",m),f[0]&1&&e.value!==u[0]&&D(e,u[0]),f[0]&131072&&H(e,"validation-error",u[17])},d(u){u&&T(e),t[45](null),b=!1,Z(p)}}}function ft(t){let e,i,l,a,s,h,m,b,p;return{c(){e=I("input"),n(e,"data-testid","password"),n(e,"type","password"),n(e,"class","scroll-hide svelte-1ae7ssi"),n(e,"placeholder",t[2]),e.disabled=t[5],e.autofocus=t[13],n(e,"maxlength",t[15]),n(e,"autocomplete",""),n(e,"autocapitalize",i=t[16]?.autocapitalize),n(e,"autocorrect",l=t[16]?.autocorrect),n(e,"spellcheck",a=t[16]?.spellcheck),n(e,"tabindex",s=t[16]?.tabindex),n(e,"enterkeyhint",h=t[16]?.enterkeyhint),n(e,"lang",m=t[16]?.lang),H(e,"validation-error",t[17])},m(u,f){S(u,e,f),D(e,t[0]),t[43](e),t[13]&&e.focus(),b||(p=[g(e,"input",t[42]),g(e,"keypress",t[24]),g(e,"blur",t[34]),g(e,"select",t[23]),g(e,"focus",t[35])],b=!0)},p(u,f){f[0]&4&&n(e,"placeholder",u[2]),f[0]&32&&(e.disabled=u[5]),f[0]&8192&&(e.autofocus=u[13]),f[0]&32768&&n(e,"maxlength",u[15]),f[0]&65536&&i!==(i=u[16]?.autocapitalize)&&n(e,"autocapitalize",i),f[0]&65536&&l!==(l=u[16]?.autocorrect)&&n(e,"autocorrect",l),f[0]&65536&&a!==(a=u[16]?.spellcheck)&&n(e,"spellcheck",a),f[0]&65536&&s!==(s=u[16]?.tabindex)&&n(e,"tabindex",s),f[0]&65536&&h!==(h=u[16]?.enterkeyhint)&&n(e,"enterkeyhint",h),f[0]&65536&&m!==(m=u[16]?.lang)&&n(e,"lang",m),f[0]&1&&e.value!==u[0]&&D(e,u[0]),f[0]&131072&&H(e,"validation-error",u[17])},d(u){u&&T(e),t[43](null),b=!1,Z(p)}}}function _t(t){let e,i,l,a,s,h,m,b,p,u,f,d;return{c(){e=I("input"),n(e,"data-testid","textbox"),n(e,"type","text"),n(e,"class","scroll-hide svelte-1ae7ssi"),n(e,"dir",i=t[12]?"rtl":"ltr"),n(e,"placeholder",t[2]),e.disabled=t[5],e.autofocus=t[13],n(e,"maxlength",t[15]),n(e,"style",l=t[14]?"text-align: "+t[14]:""),n(e,"autocapitalize",a=t[16]?.autocapitalize),n(e,"autocorrect",s=t[16]?.autocorrect),n(e,"spellcheck",h=t[16]?.spellcheck),n(e,"autocomplete",m=t[16]?.autocomplete),n(e,"tabindex",b=t[16]?.tabindex),n(e,"enterkeyhint",p=t[16]?.enterkeyhint),n(e,"lang",u=t[16]?.lang),H(e,"validation-error",t[17])},m(c,r){S(c,e,r),D(e,t[0]),t[41](e),t[13]&&e.focus(),f||(d=[g(e,"input",t[40]),g(e,"keypress",t[24]),g(e,"blur",t[32]),g(e,"select",t[23]),g(e,"focus",t[33])],f=!0)},p(c,r){r[0]&4096&&i!==(i=c[12]?"rtl":"ltr")&&n(e,"dir",i),r[0]&4&&n(e,"placeholder",c[2]),r[0]&32&&(e.disabled=c[5]),r[0]&8192&&(e.autofocus=c[13]),r[0]&32768&&n(e,"maxlength",c[15]),r[0]&16384&&l!==(l=c[14]?"text-align: "+c[14]:"")&&n(e,"style",l),r[0]&65536&&a!==(a=c[16]?.autocapitalize)&&n(e,"autocapitalize",a),r[0]&65536&&s!==(s=c[16]?.autocorrect)&&n(e,"autocorrect",s),r[0]&65536&&h!==(h=c[16]?.spellcheck)&&n(e,"spellcheck",h),r[0]&65536&&m!==(m=c[16]?.autocomplete)&&n(e,"autocomplete",m),r[0]&65536&&b!==(b=c[16]?.tabindex)&&n(e,"tabindex",b),r[0]&65536&&p!==(p=c[16]?.enterkeyhint)&&n(e,"enterkeyhint",p),r[0]&65536&&u!==(u=c[16]?.lang)&&n(e,"lang",u),r[0]&1&&e.value!==c[0]&&D(e,c[0]),r[0]&131072&&H(e,"validation-error",c[17])},d(c){c&&T(e),t[41](null),f=!1,Z(d)}}}function me(t){let e,i,l,a,s,h;const m=[ht,ct],b=[];function p(u,f){return u[10]===!0?0:1}return i=p(t),l=b[i]=m[i](t),{c(){e=I("button"),l.c(),n(e,"class","submit-button svelte-1ae7ssi"),H(e,"padded-button",t[10]!==!0)},m(u,f){S(u,e,f),b[i].m(e,null),a=!0,s||(h=g(e,"click",t[27]),s=!0)},p(u,f){let d=i;i=p(u),i===d?b[i].p(u,f):(U(),C(b[d],1,1,()=>{b[d]=null}),j(),l=b[i],l?l.p(u,f):(l=b[i]=m[i](u),l.c()),z(l,1),l.m(e,null)),(!a||f[0]&1024)&&H(e,"padded-button",u[10]!==!0)},i(u){a||(z(l),a=!0)},o(u){C(l),a=!1},d(u){u&&T(e),b[i].d(),s=!1,h()}}}function ct(t){let e;return{c(){e=X(t[10])},m(i,l){S(i,e,l)},p(i,l){l[0]&1024&&V(e,i[10])},i:M,o:M,d(i){i&&T(e)}}}function ht(t){let e,i;return e=new lt({}),{c(){W(e.$$.fragment)},m(l,a){G(e,l,a),i=!0},p:M,i(l){i||(z(e.$$.fragment,l),i=!0)},o(l){C(e.$$.fragment,l),i=!1},d(l){A(e,l)}}}function de(t){let e,i,l,a,s,h;const m=[pt,bt],b=[];function p(u,f){return u[11]===!0?0:1}return i=p(t),l=b[i]=m[i](t),{c(){e=I("button"),l.c(),n(e,"class","stop-button svelte-1ae7ssi"),H(e,"padded-button",t[11]!==!0)},m(u,f){S(u,e,f),b[i].m(e,null),a=!0,s||(h=g(e,"click",t[26]),s=!0)},p(u,f){let d=i;i=p(u),i===d?b[i].p(u,f):(U(),C(b[d],1,1,()=>{b[d]=null}),j(),l=b[i],l?l.p(u,f):(l=b[i]=m[i](u),l.c()),z(l,1),l.m(e,null)),(!a||f[0]&2048)&&H(e,"padded-button",u[11]!==!0)},i(u){a||(z(l),a=!0)},o(u){C(l),a=!1},d(u){u&&T(e),b[i].d(),s=!1,h()}}}function bt(t){let e;return{c(){e=X(t[11])},m(i,l){S(i,e,l)},p(i,l){l[0]&2048&&V(e,i[11])},i:M,o:M,d(i){i&&T(e)}}}function pt(t){let e,i;return e=new it({props:{fill:"none",stroke_width:2.5}}),{c(){W(e.$$.fragment)},m(l,a){G(e,l,a),i=!0},p:M,i(l){i||(z(e.$$.fragment,l),i=!0)},o(l){C(e.$$.fragment,l),i=!1},d(l){A(e,l)}}}function mt(t){let e,i,l,a,s,h,m,b,p=t[6]&&t[9]&&be(t);l=new tt({props:{show_label:t[17]?!0:t[6],info:t[4],$$slots:{default:[ot]},$$scope:{ctx:t}}});function u(_,v){return _[1]===1&&_[19]===1?ut:st}let f=u(t),d=f(t),c=t[10]&&me(t),r=t[11]&&de(t);return{c(){e=I("label"),p&&p.c(),i=N(),W(l.$$.fragment),a=N(),s=I("div"),d.c(),h=N(),c&&c.c(),m=N(),r&&r.c(),n(s,"class","input-container svelte-1ae7ssi"),n(e,"class","svelte-1ae7ssi"),H(e,"container",t[7]),H(e,"show_textbox_border",t[21])},m(_,v){S(_,e,v),p&&p.m(e,null),L(e,i),G(l,e,null),L(e,a),L(e,s),d.m(s,null),L(s,h),c&&c.m(s,null),L(s,m),r&&r.m(s,null),b=!0},p(_,v){_[6]&&_[9]?p?(p.p(_,v),v[0]&576&&z(p,1)):(p=be(_),p.c(),z(p,1),p.m(e,i)):p&&(U(),C(p,1,1,()=>{p=null}),j());const Y={};v[0]&131136&&(Y.show_label=_[17]?!0:_[6]),v[0]&16&&(Y.info=_[4]),v[0]&131080|v[1]&67108864&&(Y.$$scope={dirty:v,ctx:_}),l.$set(Y),f===(f=u(_))&&d?d.p(_,v):(d.d(1),d=f(_),d&&(d.c(),d.m(s,h))),_[10]?c?(c.p(_,v),v[0]&1024&&z(c,1)):(c=me(_),c.c(),z(c,1),c.m(s,m)):c&&(U(),C(c,1,1,()=>{c=null}),j()),_[11]?r?(r.p(_,v),v[0]&2048&&z(r,1)):(r=de(_),r.c(),z(r,1),r.m(s,null)):r&&(U(),C(r,1,1,()=>{r=null}),j()),(!b||v[0]&128)&&H(e,"container",_[7])},i(_){b||(z(p),z(l.$$.fragment,_),z(c),z(r),b=!0)},o(_){C(p),C(l.$$.fragment,_),C(c),C(r),b=!1},d(_){_&&T(e),p&&p.d(),A(l),d.d(),c&&c.d(),r&&r.d()}}}function dt(t){const e=t.scrollHeight,i=t.clientHeight,l=parseFloat(window.getComputedStyle(t).lineHeight);e>i+l?t.style.overflowY="scroll":t.style.overflowY="hidden"}function gt(t,e,i){let{value:l=""}=e,{value_is_output:a=!1}=e,{lines:s=1}=e,{placeholder:h="Type here..."}=e,{label:m}=e,{info:b=void 0}=e,{disabled:p=!1}=e,{show_label:u=!0}=e,{container:f=!0}=e,{max_lines:d=void 0}=e,{type:c="text"}=e,{show_copy_button:r=!1}=e,{submit_btn:_=null}=e,{stop_btn:v=null}=e,{rtl:Y=!1}=e,{autofocus:$=!1}=e,{text_align:ne=void 0}=e,{autoscroll:J=!0}=e,{max_length:ae=void 0}=e,{html_attributes:oe=null}=e,{validation_error:se=void 0}=e,w,x=!1,ee,te,ue=0,O=!1,E;const ke=!_,F=Ve();Xe(()=>{!O&&w&&w.offsetHeight+w.scrollTop>w.scrollHeight-100&&(te=!0)});const ve=()=>{te&&J&&!O&&w.scrollTo(0,w.scrollHeight)};function we(){F("change",l),a||F("input")}Ze(()=>{$&&w.focus(),te&&J&&ve(),i(29,a=!1)});async function ze(){"clipboard"in navigator&&(await navigator.clipboard.writeText(l),F("copy",{value:l}),ye())}function ye(){i(20,x=!0),ee&&clearTimeout(ee),ee=setTimeout(()=>{i(20,x=!1)},1e3)}function He(o){const y=o.target,B=y.value,K=[y.selectionStart,y.selectionEnd];F("select",{value:B.substring(...K),index:K})}async function Ce(o){await _e(),(o.key==="Enter"&&o.shiftKey&&s>1||o.key==="Enter"&&!o.shiftKey&&s===1&&E>=1)&&(o.preventDefault(),F("submit"))}function Te(o){const y=o.target,B=y.scrollTop;B<ue&&(O=!0),ue=B;const K=y.scrollHeight-y.clientHeight;B>=K&&(O=!1)}function Se(){F("stop")}function Ee(){F("submit")}async function P(o){if(await _e(),s===E)return;const y=o.target,B=window.getComputedStyle(y),K=parseFloat(B.paddingTop),le=parseFloat(B.paddingBottom),re=parseFloat(B.lineHeight);let ie=E===void 0?!1:K+le+re*E,fe=K+le+s*re;y.style.height="1px";let Q;ie&&y.scrollHeight>ie?Q=ie:y.scrollHeight<fe?Q=fe:Q=y.scrollHeight,y.style.height=`${Q}px`,dt(y)}function Be(o,y){if(!(s===E||s===1&&E===1)&&(o.style.overflowY="scroll",o.addEventListener("input",P),!!y.trim()))return P({target:o}),{destroy:()=>o.removeEventListener("input",P)}}function Ie(o){q.call(this,t,o)}function Fe(o){q.call(this,t,o)}function qe(o){q.call(this,t,o)}function De(o){q.call(this,t,o)}function Ye(o){q.call(this,t,o)}function Ke(o){q.call(this,t,o)}function Le(o){q.call(this,t,o)}function Me(o){q.call(this,t,o)}function Ne(){l=this.value,i(0,l)}function Ue(o){R[o?"unshift":"push"](()=>{w=o,i(18,w)})}function je(){l=this.value,i(0,l)}function Ae(o){R[o?"unshift":"push"](()=>{w=o,i(18,w)})}function Ge(){l=this.value,i(0,l)}function We(o){R[o?"unshift":"push"](()=>{w=o,i(18,w)})}function Je(){l=this.value,i(0,l)}function Oe(o){R[o?"unshift":"push"](()=>{w=o,i(18,w)})}return t.$$set=o=>{"value"in o&&i(0,l=o.value),"value_is_output"in o&&i(29,a=o.value_is_output),"lines"in o&&i(1,s=o.lines),"placeholder"in o&&i(2,h=o.placeholder),"label"in o&&i(3,m=o.label),"info"in o&&i(4,b=o.info),"disabled"in o&&i(5,p=o.disabled),"show_label"in o&&i(6,u=o.show_label),"container"in o&&i(7,f=o.container),"max_lines"in o&&i(30,d=o.max_lines),"type"in o&&i(8,c=o.type),"show_copy_button"in o&&i(9,r=o.show_copy_button),"submit_btn"in o&&i(10,_=o.submit_btn),"stop_btn"in o&&i(11,v=o.stop_btn),"rtl"in o&&i(12,Y=o.rtl),"autofocus"in o&&i(13,$=o.autofocus),"text_align"in o&&i(14,ne=o.text_align),"autoscroll"in o&&i(31,J=o.autoscroll),"max_length"in o&&i(15,ae=o.max_length),"html_attributes"in o&&i(16,oe=o.html_attributes),"validation_error"in o&&i(17,se=o.validation_error)},t.$$.update=()=>{t.$$.dirty[0]&1073742082&&(d==null?c==="text"?i(19,E=Math.max(s,20)):i(19,E=1):i(19,E=Math.max(d,s))),t.$$.dirty[0]&1&&l===null&&i(0,l=""),t.$$.dirty[0]&917507&&w&&s!==E&&s>1&&P({target:w}),t.$$.dirty[0]&1&&we()},[l,s,h,m,b,p,u,f,c,r,_,v,Y,$,ne,ae,oe,se,w,E,x,ke,ze,He,Ce,Te,Se,Ee,Be,a,d,J,Ie,Fe,qe,De,Ye,Ke,Le,Me,Ne,Ue,je,Ae,Ge,We,Je,Oe]}class St extends Pe{constructor(e){super(),Qe(this,e,gt,mt,Re,{value:0,value_is_output:29,lines:1,placeholder:2,label:3,info:4,disabled:5,show_label:6,container:7,max_lines:30,type:8,show_copy_button:9,submit_btn:10,stop_btn:11,rtl:12,autofocus:13,text_align:14,autoscroll:31,max_length:15,html_attributes:16,validation_error:17},null,[-1,-1])}get value(){return this.$$.ctx[0]}set value(e){this.$$set({value:e}),k()}get value_is_output(){return this.$$.ctx[29]}set value_is_output(e){this.$$set({value_is_output:e}),k()}get lines(){return this.$$.ctx[1]}set lines(e){this.$$set({lines:e}),k()}get placeholder(){return this.$$.ctx[2]}set placeholder(e){this.$$set({placeholder:e}),k()}get label(){return this.$$.ctx[3]}set label(e){this.$$set({label:e}),k()}get info(){return this.$$.ctx[4]}set info(e){this.$$set({info:e}),k()}get disabled(){return this.$$.ctx[5]}set disabled(e){this.$$set({disabled:e}),k()}get show_label(){return this.$$.ctx[6]}set show_label(e){this.$$set({show_label:e}),k()}get container(){return this.$$.ctx[7]}set container(e){this.$$set({container:e}),k()}get max_lines(){return this.$$.ctx[30]}set max_lines(e){this.$$set({max_lines:e}),k()}get type(){return this.$$.ctx[8]}set type(e){this.$$set({type:e}),k()}get show_copy_button(){return this.$$.ctx[9]}set show_copy_button(e){this.$$set({show_copy_button:e}),k()}get submit_btn(){return this.$$.ctx[10]}set submit_btn(e){this.$$set({submit_btn:e}),k()}get stop_btn(){return this.$$.ctx[11]}set stop_btn(e){this.$$set({stop_btn:e}),k()}get rtl(){return this.$$.ctx[12]}set rtl(e){this.$$set({rtl:e}),k()}get autofocus(){return this.$$.ctx[13]}set autofocus(e){this.$$set({autofocus:e}),k()}get text_align(){return this.$$.ctx[14]}set text_align(e){this.$$set({text_align:e}),k()}get autoscroll(){return this.$$.ctx[31]}set autoscroll(e){this.$$set({autoscroll:e}),k()}get max_length(){return this.$$.ctx[15]}set max_length(e){this.$$set({max_length:e}),k()}get html_attributes(){return this.$$.ctx[16]}set html_attributes(e){this.$$set({html_attributes:e}),k()}get validation_error(){return this.$$.ctx[17]}set validation_error(e){this.$$set({validation_error:e}),k()}}export{St as T};
|
| 2 |
+
//# sourceMappingURL=Textbox-CUmtFzE7.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/Textbox-D812IjdW.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
label.svelte-1ae7ssi.svelte-1ae7ssi{display:block;width:100%}input.svelte-1ae7ssi.svelte-1ae7ssi,textarea.svelte-1ae7ssi.svelte-1ae7ssi{flex-grow:1;margin-top:0;margin-bottom:0;resize:none;z-index:1;display:block;position:relative;outline:none!important;background:var(--input-background-fill);padding:var(--input-padding);width:100%;color:var(--body-text-color);font-weight:var(--input-text-weight);font-size:var(--input-text-size);line-height:var(--line-sm);border:none}textarea.no-label.svelte-1ae7ssi.svelte-1ae7ssi{padding-top:5px;padding-bottom:5px}label.show_textbox_border.svelte-1ae7ssi input.svelte-1ae7ssi,label.show_textbox_border.svelte-1ae7ssi textarea.svelte-1ae7ssi{box-shadow:var(--input-shadow)}label.svelte-1ae7ssi.svelte-1ae7ssi:not(.container),label.svelte-1ae7ssi:not(.container) input.svelte-1ae7ssi,label.svelte-1ae7ssi:not(.container) textarea.svelte-1ae7ssi{height:100%}label.container.show_textbox_border.svelte-1ae7ssi input.svelte-1ae7ssi,label.container.show_textbox_border.svelte-1ae7ssi textarea.svelte-1ae7ssi{border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-radius)}input.svelte-1ae7ssi.svelte-1ae7ssi:disabled,textarea.svelte-1ae7ssi.svelte-1ae7ssi:disabled{-webkit-opacity:1;opacity:1}label.container.show_textbox_border.svelte-1ae7ssi input.svelte-1ae7ssi:focus,label.container.show_textbox_border.svelte-1ae7ssi textarea.svelte-1ae7ssi:focus{box-shadow:var(--input-shadow-focus);border-color:var(--input-border-color-focus);background:var(--input-background-fill-focus)}input.svelte-1ae7ssi.svelte-1ae7ssi::placeholder,textarea.svelte-1ae7ssi.svelte-1ae7ssi::placeholder{color:var(--input-placeholder-color)}.input-container.svelte-1ae7ssi.svelte-1ae7ssi{display:flex;position:relative;align-items:flex-end}.submit-button.svelte-1ae7ssi.svelte-1ae7ssi,.stop-button.svelte-1ae7ssi.svelte-1ae7ssi{border:none;text-align:center;text-decoration:none;font-size:14px;cursor:pointer;border-radius:15px;min-width:30px;height:30px;flex-shrink:0;display:flex;justify-content:center;align-items:center;z-index:var(--layer-1)}.stop-button.svelte-1ae7ssi.svelte-1ae7ssi,.submit-button.svelte-1ae7ssi.svelte-1ae7ssi{background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color)}.stop-button.svelte-1ae7ssi.svelte-1ae7ssi:hover,.submit-button.svelte-1ae7ssi.svelte-1ae7ssi:hover{background:var(--button-secondary-background-fill-hover)}.stop-button.svelte-1ae7ssi.svelte-1ae7ssi:disabled,.submit-button.svelte-1ae7ssi.svelte-1ae7ssi:disabled{background:var(--button-secondary-background-fill);cursor:pointer}.stop-button.svelte-1ae7ssi.svelte-1ae7ssi:active,.submit-button.svelte-1ae7ssi.svelte-1ae7ssi:active{box-shadow:var(--button-shadow-active)}.submit-button.svelte-1ae7ssi svg{height:22px;width:22px}.stop-button.svelte-1ae7ssi svg{height:16px;width:16px}.padded-button.svelte-1ae7ssi.svelte-1ae7ssi{padding:0 10px}div.validation-error.svelte-1ae7ssi.svelte-1ae7ssi{color:var(--error-icon-color);font-size:var(--font-sans);margin-top:var(--spacing-sm);font-weight:var(--weight-semibold)}label.container.svelte-1ae7ssi input.validation-error.svelte-1ae7ssi,label.container.svelte-1ae7ssi textarea.validation-error.svelte-1ae7ssi{border-color:transparent!important;box-shadow:0 0 3px 1px var(--error-icon-color),var(--shadow-inset)!important}
|
har_extract/PINNED_HF_HUB/dist/assets/Toast-BIScqxJI.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{G as p,as as ct,bn as ft,bo as dt,bp as ht,bq as gt,a as R,i as S,s as A,d as x,k as H,l as _,O as T,q as i,H as _t,b5 as mt,f as L,D as pt,t as j,br as vt,c as z,a6 as bt,be as wt,e as at,h as lt,w as kt,j as et,z as K,b7 as nt,n as M,o as O,x as yt,r as $t,a7 as Mt,b as D,m as E,p as N,B as Q,au as st,ba as Ct,_ as X,bs as Tt,aq as jt,bt as zt}from"../lite.js";import{c as Bt,f as it}from"./index-CpyL3tPB.js";function Lt(s,t,e,n){if(!t)return p;const r=s.getBoundingClientRect();if(t.left===r.left&&t.right===r.right&&t.top===r.top&&t.bottom===r.bottom)return p;const{delay:u=0,duration:f=300,easing:l=ct,start:o=ft()+u,end:a=o+f,tick:h=p,css:y}=e(s,{from:t,to:r},n);let v=!0,g=!1,b;function d(){y&&(b=gt(s,0,1,f,u,l,y)),u||(g=!0)}function w(){y&&ht(s,b),v=!1}return dt($=>{if(!g&&$>=o&&(g=!0),g&&$>=a&&(h(1,0),w()),!v)return!1;if(g){const C=$-o,F=0+1*l(C/f);h(F,1-F)}return!0}),d(),h(0,1),w}function xt(s){const t=getComputedStyle(s);if(t.position!=="absolute"&&t.position!=="fixed"){const{width:e,height:n}=t,r=s.getBoundingClientRect();s.style.position="absolute",s.style.width=e,s.style.height=n,Ht(s,r)}}function Ht(s,t){const e=s.getBoundingClientRect();if(t.left!==e.left||t.top!==e.top){const n=getComputedStyle(s),r=n.transform==="none"?"":n.transform;s.style.transform=`${r} translate(${t.left-e.left}px, ${t.top-e.top}px)`}}function qt(s){let t,e;return{c(){t=T("svg"),e=T("path"),i(e,"stroke-linecap","round"),i(e,"stroke-linejoin","round"),i(e,"d","M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"),i(t,"fill","none"),i(t,"stroke","currentColor"),i(t,"viewBox","0 0 24 24"),i(t,"width","100%"),i(t,"height","100%"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"aria-hidden","true"),i(t,"stroke-width","2"),i(t,"stroke-linecap","round"),i(t,"stroke-linejoin","round")},m(n,r){H(n,t,r),_(t,e)},p,i:p,o:p,d(n){n&&x(t)}}}class Rt extends R{constructor(t){super(),S(this,t,null,qt,A,{})}}function St(s){let t,e;return{c(){t=T("svg"),e=T("path"),i(e,"stroke-linecap","round"),i(e,"stroke-linejoin","round"),i(e,"d","M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z"),i(t,"fill","none"),i(t,"stroke","currentColor"),i(t,"viewBox","0 0 24 24"),i(t,"width","100%"),i(t,"height","100%"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"aria-hidden","true"),i(t,"stroke-width","2"),i(t,"stroke-linecap","round"),i(t,"stroke-linejoin","round")},m(n,r){H(n,t,r),_(t,e)},p,i:p,o:p,d(n){n&&x(t)}}}class At extends R{constructor(t){super(),S(this,t,null,St,A,{})}}function Ft(s){let t,e;return{c(){t=T("svg"),e=T("path"),i(e,"stroke-linecap","round"),i(e,"stroke-linejoin","round"),i(e,"d","M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),i(t,"fill","none"),i(t,"stroke","currentColor"),i(t,"viewBox","0 0 24 24"),i(t,"width","100%"),i(t,"height","100%"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"aria-hidden","true"),i(t,"stroke-width","2"),i(t,"stroke-linecap","round"),i(t,"stroke-linejoin","round")},m(n,r){H(n,t,r),_(t,e)},p,i:p,o:p,d(n){n&&x(t)}}}class It extends R{constructor(t){super(),S(this,t,null,Ft,A,{})}}function Ot(s){let t,e;return{c(){t=T("svg"),e=T("path"),i(e,"stroke-linecap","round"),i(e,"stroke-linejoin","round"),i(e,"d","M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"),i(t,"fill","none"),i(t,"stroke","currentColor"),i(t,"stroke-width","2"),i(t,"viewBox","0 0 24 24"),i(t,"width","100%"),i(t,"height","100%"),i(t,"xmlns","http://www.w3.org/2000/svg"),i(t,"aria-hidden","true"),i(t,"stroke-linecap","round"),i(t,"stroke-linejoin","round")},m(n,r){H(n,t,r),_(t,e)},p,i:p,o:p,d(n){n&&x(t)}}}class Dt extends R{constructor(t){super(),S(this,t,null,Ot,A,{})}}function Et(s,{from:t,to:e},n={}){const r=getComputedStyle(s),u=r.transform==="none"?"":r.transform,[f,l]=r.transformOrigin.split(" ").map(parseFloat),o=t.left+t.width*f/e.width-(e.left+f),a=t.top+t.height*l/e.height-(e.top+l),{delay:h=0,duration:y=g=>Math.sqrt(g)*120,easing:v=Bt}=n;return{delay:h,duration:_t(y)?y(Math.sqrt(o*o+a*a)):y,easing:v,css:(g,b)=>{const d=b*o,w=b*a,$=g+b*t.width/e.width,C=g+b*t.height/e.height;return`transform: ${u} translate(${d}px, ${w}px) scale(${$}, ${C});`}}}const Nt=(s,t=location.href)=>{try{return!!s&&new URL(s).origin!==new URL(t).origin}catch{return!1}};function Pt(s){const t=new mt,e=new DOMParser().parseFromString(s,"text/html");return ut(e.body,"A",n=>{n instanceof HTMLElement&&"target"in n&&Nt(n.getAttribute("href"),location.href)&&(n.setAttribute("target","_blank"),n.setAttribute("rel","noopener noreferrer"))}),t.sanitize(e).body.innerHTML}function ut(s,t,e){s&&s.nodeName===t&&e(s);const n=s?.childNodes||[];for(let r=0;r<n.length;r++)ut(n[r],t,e)}function Ut(s){let t,e;return t=new Rt({}),{c(){N(t.$$.fragment)},m(n,r){E(t,n,r),e=!0},i(n){e||(z(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){D(t,n)}}}function Gt(s){let t,e;return t=new It({}),{c(){N(t.$$.fragment)},m(n,r){E(t,n,r),e=!0},i(n){e||(z(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){D(t,n)}}}function Vt(s){let t,e;return t=new At({}),{c(){N(t.$$.fragment)},m(n,r){E(t,n,r),e=!0},i(n){e||(z(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){D(t,n)}}}function Wt(s){let t,e;return t=new Dt({}),{c(){N(t.$$.fragment)},m(n,r){E(t,n,r),e=!0},i(n){e||(z(t.$$.fragment,n),e=!0)},o(n){j(t.$$.fragment,n),e=!1},d(n){D(t,n)}}}function Jt(s){let t,e,n,r,u,f,l,o,a,h,y,v,g,b,d,w,$,C,F,q,P,U,G,V,I,m,W,Y;const Z=[Wt,Vt,Gt,Ut],B=[];function tt(c,k){return c[2]==="warning"?0:c[2]==="info"?1:c[2]==="success"?2:c[2]==="error"?3:-1}return~(n=tt(s))&&(r=B[n]=Z[n](s)),{c(){t=M("div"),e=M("div"),r&&r.c(),f=O(),l=M("div"),o=M("div"),a=yt(s[1]),y=O(),v=M("div"),d=O(),w=M("button"),$=M("span"),$.textContent="×",F=O(),q=M("div"),i(e,"class",u="toast-icon "+s[2]+" svelte-fee5uc"),i(o,"class",h="toast-title "+s[2]+" svelte-fee5uc"),i(v,"class",g="toast-text "+s[2]+" svelte-fee5uc"),i(l,"class",b="toast-details "+s[2]+" svelte-fee5uc"),i($,"aria-hidden","true"),i(w,"class",C="toast-close "+s[2]+" svelte-fee5uc"),i(w,"type","button"),i(w,"aria-label","Close"),i(w,"data-testid","toast-close"),i(q,"class",P="timer "+s[2]+" svelte-fee5uc"),i(q,"style",U=`animation-duration: ${s[3]};`),i(t,"class",G="toast-body "+s[2]+" svelte-fee5uc"),i(t,"role","alert"),i(t,"data-testid","toast-body"),et(t,"hidden",!s[4])},m(c,k){H(c,t,k),_(t,e),~n&&B[n].m(e,null),_(t,f),_(t,l),_(l,o),_(o,a),_(l,y),_(l,v),v.innerHTML=s[0],_(t,d),_(t,w),_(w,$),_(t,F),_(t,q),m=!0,W||(Y=[K(w,"click",s[5]),K(t,"click",nt(s[9])),K(t,"keydown",nt(s[10]))],W=!0)},p(c,[k]){let J=n;n=tt(c),n!==J&&(r&&(at(),j(B[J],1,1,()=>{B[J]=null}),lt()),~n?(r=B[n],r||(r=B[n]=Z[n](c),r.c()),z(r,1),r.m(e,null)):r=null),(!m||k&4&&u!==(u="toast-icon "+c[2]+" svelte-fee5uc"))&&i(e,"class",u),(!m||k&2)&&kt(a,c[1]),(!m||k&4&&h!==(h="toast-title "+c[2]+" svelte-fee5uc"))&&i(o,"class",h),(!m||k&1)&&(v.innerHTML=c[0]),(!m||k&4&&g!==(g="toast-text "+c[2]+" svelte-fee5uc"))&&i(v,"class",g),(!m||k&4&&b!==(b="toast-details "+c[2]+" svelte-fee5uc"))&&i(l,"class",b),(!m||k&4&&C!==(C="toast-close "+c[2]+" svelte-fee5uc"))&&i(w,"class",C),(!m||k&4&&P!==(P="timer "+c[2]+" svelte-fee5uc"))&&i(q,"class",P),(!m||k&8&&U!==(U=`animation-duration: ${c[3]};`))&&i(q,"style",U),(!m||k&4&&G!==(G="toast-body "+c[2]+" svelte-fee5uc"))&&i(t,"class",G),(!m||k&20)&&et(t,"hidden",!c[4])},i(c){m||(z(r),c&&bt(()=>{m&&(I&&I.end(1),V=wt(t,it,{duration:200,delay:100}),V.start())}),m=!0)},o(c){j(r),V&&V.invalidate(),c&&(I=vt(t,it,{duration:200})),m=!1},d(c){c&&x(t),~n&&B[n].d(),c&&I&&I.end(),W=!1,pt(Y)}}}function Kt(s,t,e){let n,r,{title:u=""}=t,{message:f=""}=t,{type:l}=t,{id:o}=t,{duration:a=10}=t,{visible:h=!0}=t;const y=$t();function v(){y("close",o)}Mt(()=>{a!==null&&setTimeout(()=>{v()},a*1e3)});function g(d){Q.call(this,s,d)}function b(d){Q.call(this,s,d)}return s.$$set=d=>{"title"in d&&e(1,u=d.title),"message"in d&&e(0,f=d.message),"type"in d&&e(2,l=d.type),"id"in d&&e(7,o=d.id),"duration"in d&&e(6,a=d.duration),"visible"in d&&e(8,h=d.visible)},s.$$.update=()=>{s.$$.dirty&1&&e(0,f=Pt(f)),s.$$.dirty&256&&e(4,n=h),s.$$.dirty&64&&e(6,a=a||null),s.$$.dirty&64&&e(3,r=`${a||0}s`)},[f,u,l,r,n,v,a,o,h,g,b]}class Qt extends R{constructor(t){super(),S(this,t,Kt,Jt,A,{title:1,message:0,type:2,id:7,duration:6,visible:8})}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),L()}get message(){return this.$$.ctx[0]}set message(t){this.$$set({message:t}),L()}get type(){return this.$$.ctx[2]}set type(t){this.$$set({type:t}),L()}get id(){return this.$$.ctx[7]}set id(t){this.$$set({id:t}),L()}get duration(){return this.$$.ctx[6]}set duration(t){this.$$set({duration:t}),L()}get visible(){return this.$$.ctx[8]}set visible(t){this.$$set({visible:t}),L()}}function rt(s,t,e){const n=s.slice();return n[5]=t[e].type,n[6]=t[e].title,n[7]=t[e].message,n[8]=t[e].id,n[9]=t[e].duration,n[10]=t[e].visible,n}function ot(s,t){let e,n,r,u,f=p,l;return n=new Qt({props:{type:t[5],title:t[6],message:t[7],duration:t[9],visible:t[10],id:t[8]}}),n.$on("close",t[3]),{key:s,first:null,c(){e=M("div"),N(n.$$.fragment),r=O(),X(e,"width","100%"),this.first=e},m(o,a){H(o,e,a),E(n,e,null),_(e,r),l=!0},p(o,a){t=o;const h={};a&1&&(h.type=t[5]),a&1&&(h.title=t[6]),a&1&&(h.message=t[7]),a&1&&(h.duration=t[9]),a&1&&(h.visible=t[10]),a&1&&(h.id=t[8]),n.$set(h)},r(){u=e.getBoundingClientRect()},f(){xt(e),f()},a(){f(),f=Lt(e,u,Et,{duration:300})},i(o){l||(z(n.$$.fragment,o),l=!0)},o(o){j(n.$$.fragment,o),l=!1},d(o){o&&x(e),D(n)}}}function Xt(s){let t,e=[],n=new Map,r,u=st(s[0]);const f=l=>l[8];for(let l=0;l<u.length;l+=1){let o=rt(s,u,l),a=f(o);n.set(a,e[l]=ot(a,o))}return{c(){t=M("div");for(let l=0;l<e.length;l+=1)e[l].c();i(t,"class","toast-wrap svelte-1jktj9z"),X(t,"--toast-top",s[1]+"px")},m(l,o){H(l,t,o);for(let a=0;a<e.length;a+=1)e[a]&&e[a].m(t,null);r=!0},p(l,[o]){if(o&1){u=st(l[0]),at();for(let a=0;a<e.length;a+=1)e[a].r();e=Ct(e,o,f,1,l,u,n,t,zt,ot,null,rt);for(let a=0;a<e.length;a+=1)e[a].a();lt()}(!r||o&2)&&X(t,"--toast-top",l[1]+"px")},i(l){if(!r){for(let o=0;o<u.length;o+=1)z(e[o]);r=!0}},o(l){for(let o=0;o<e.length;o+=1)j(e[o]);r=!1},d(l){l&&x(t);for(let o=0;o<e.length;o+=1)e[o].d()}}}function Yt(s,t,e){let n,{messages:r=[]}=t;const u=Tt(0,{stiffness:.4,damping:.5});jt(s,u,o=>e(1,n=o));function f(o){o.length>0&&"parentIFrame"in window&&window.parentIFrame?.getPageInfo(a=>{a.scrollTop<a.offsetTop?u.set(0):u.set(a.scrollTop-a.offsetTop)})}function l(o){Q.call(this,s,o)}return s.$$set=o=>{"messages"in o&&e(0,r=o.messages)},s.$$.update=()=>{s.$$.dirty&1&&f(r)},[r,n,u,l]}class ee extends R{constructor(t){super(),S(this,t,Yt,Xt,A,{messages:0})}get messages(){return this.$$.ctx[0]}set messages(t){this.$$set({messages:t}),L()}}export{ee as T};
|
| 2 |
+
//# sourceMappingURL=Toast-BIScqxJI.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/file-url-DmoFipEB.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{X as a,Y as u,Z as i}from"../lite.js";function f(e){const n=typeof window<"u";if(e==null||!n)return!1;const t=new URL(e,window.location.href);return!(!i(t)||t.protocol!=="http:"&&t.protocol!=="https:")}let o;async function c(e){const n=typeof window<"u";if(e==null||!n||!f(e))return e;if(o==null)try{o=a()}catch{return e}if(o==null)return e;const l=new URL(e,window.location.href).pathname;return o.httpRequest({method:"GET",path:l,headers:{},query_string:""}).then(r=>{if(r.status!==200)throw new Error(`Failed to get file ${l} from the Wasm worker.`);const s=new Blob([r.body],{type:u(r.headers,"content-type")});return URL.createObjectURL(s)})}export{c as r,f as s};
|
| 2 |
+
//# sourceMappingURL=file-url-DmoFipEB.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/index-CpyL3tPB.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import{as as x,at as f}from"../lite.js";function h(n){const o=n-1;return o*o*o+1}function v(n,{delay:o=0,duration:p=400,easing:c=x}={}){const s=+getComputedStyle(n).opacity;return{delay:o,duration:p,easing:c,css:t=>`opacity: ${t*s}`}}function F(n,{delay:o=0,duration:p=400,easing:c=h,x:s=0,y:t=0,opacity:l=0}={}){const i=getComputedStyle(n),d=+i.opacity,r=i.transform==="none"?"":i.transform,e=d*(1-l),[y,u]=f(s),[_,m]=f(t);return{delay:o,duration:p,easing:c,css:($,g)=>`
|
| 2 |
+
transform: ${r} translate(${(1-$)*y}${u}, ${(1-$)*_}${m});
|
| 3 |
+
opacity: ${d-e*g}`}}function w(n,{delay:o=0,duration:p=400,easing:c=h,axis:s="y"}={}){const t=getComputedStyle(n),l=+t.opacity,i=s==="y"?"height":"width",d=parseFloat(t[i]),r=s==="y"?["top","bottom"]:["left","right"],e=r.map(a=>`${a[0].toUpperCase()}${a.slice(1)}`),y=parseFloat(t[`padding${e[0]}`]),u=parseFloat(t[`padding${e[1]}`]),_=parseFloat(t[`margin${e[0]}`]),m=parseFloat(t[`margin${e[1]}`]),$=parseFloat(t[`border${e[0]}Width`]),g=parseFloat(t[`border${e[1]}Width`]);return{delay:o,duration:p,easing:c,css:a=>`overflow: hidden;opacity: ${Math.min(a*20,1)*l};${i}: ${a*d}px;padding-${r[0]}: ${a*y}px;padding-${r[1]}: ${a*u}px;margin-${r[0]}: ${a*_}px;margin-${r[1]}: ${a*m}px;border-${r[0]}-width: ${a*$}px;border-${r[1]}-width: ${a*g}px;`}}export{F as a,h as c,v as f,w as s};
|
| 4 |
+
//# sourceMappingURL=index-CpyL3tPB.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/theme-C62q9qmT.css
ADDED
|
@@ -0,0 +1,473 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
@font-face {
|
| 3 |
+
font-family: 'IBM Plex Mono';
|
| 4 |
+
src: url('static/fonts/IBMPlexMono/IBMPlexMono-Regular.woff2') format('woff2');
|
| 5 |
+
font-weight: Regular;
|
| 6 |
+
font-style: normal;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
@font-face {
|
| 11 |
+
font-family: 'IBM Plex Mono';
|
| 12 |
+
src: url('static/fonts/IBMPlexMono/IBMPlexMono-Bold.woff2') format('woff2');
|
| 13 |
+
font-weight: Bold;
|
| 14 |
+
font-style: normal;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
:root {
|
| 18 |
+
--name: default;
|
| 19 |
+
--primary-50: #fff7ed;
|
| 20 |
+
--primary-100: #ffedd5;
|
| 21 |
+
--primary-200: #ffddb3;
|
| 22 |
+
--primary-300: #fdba74;
|
| 23 |
+
--primary-400: #fb923c;
|
| 24 |
+
--primary-500: #f97316;
|
| 25 |
+
--primary-600: #ea580c;
|
| 26 |
+
--primary-700: #c2410c;
|
| 27 |
+
--primary-800: #9a3412;
|
| 28 |
+
--primary-900: #7c2d12;
|
| 29 |
+
--primary-950: #6c2e12;
|
| 30 |
+
--secondary-50: #eff6ff;
|
| 31 |
+
--secondary-100: #dbeafe;
|
| 32 |
+
--secondary-200: #bfdbfe;
|
| 33 |
+
--secondary-300: #93c5fd;
|
| 34 |
+
--secondary-400: #60a5fa;
|
| 35 |
+
--secondary-500: #3b82f6;
|
| 36 |
+
--secondary-600: #2563eb;
|
| 37 |
+
--secondary-700: #1d4ed8;
|
| 38 |
+
--secondary-800: #1e40af;
|
| 39 |
+
--secondary-900: #1e3a8a;
|
| 40 |
+
--secondary-950: #1d3660;
|
| 41 |
+
--neutral-50: #fafafa;
|
| 42 |
+
--neutral-100: #f4f4f5;
|
| 43 |
+
--neutral-200: #e4e4e7;
|
| 44 |
+
--neutral-300: #d4d4d8;
|
| 45 |
+
--neutral-400: #bbbbc2;
|
| 46 |
+
--neutral-500: #71717a;
|
| 47 |
+
--neutral-600: #52525b;
|
| 48 |
+
--neutral-700: #3f3f46;
|
| 49 |
+
--neutral-800: #27272a;
|
| 50 |
+
--neutral-900: #18181b;
|
| 51 |
+
--neutral-950: #0f0f11;
|
| 52 |
+
--spacing-xxs: 1px;
|
| 53 |
+
--spacing-xs: 2px;
|
| 54 |
+
--spacing-sm: 4px;
|
| 55 |
+
--spacing-md: 6px;
|
| 56 |
+
--spacing-lg: 8px;
|
| 57 |
+
--spacing-xl: 10px;
|
| 58 |
+
--spacing-xxl: 16px;
|
| 59 |
+
--radius-xxs: 1px;
|
| 60 |
+
--radius-xs: 2px;
|
| 61 |
+
--radius-sm: 4px;
|
| 62 |
+
--radius-md: 6px;
|
| 63 |
+
--radius-lg: 8px;
|
| 64 |
+
--radius-xl: 12px;
|
| 65 |
+
--radius-xxl: 22px;
|
| 66 |
+
--text-xxs: 9px;
|
| 67 |
+
--text-xs: 10px;
|
| 68 |
+
--text-sm: 12px;
|
| 69 |
+
--text-md: 14px;
|
| 70 |
+
--text-lg: 16px;
|
| 71 |
+
--text-xl: 22px;
|
| 72 |
+
--text-xxl: 26px;
|
| 73 |
+
--font: 'Source Sans Pro', ui-sans-serif, system-ui, sans-serif;
|
| 74 |
+
--font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
|
| 75 |
+
--body-background-fill: var(--background-fill-primary);
|
| 76 |
+
--body-text-color: var(--neutral-800);
|
| 77 |
+
--body-text-size: var(--text-md);
|
| 78 |
+
--body-text-weight: 400;
|
| 79 |
+
--embed-radius: var(--radius-sm);
|
| 80 |
+
--color-accent: var(--primary-500);
|
| 81 |
+
--color-accent-soft: var(--primary-50);
|
| 82 |
+
--background-fill-primary: white;
|
| 83 |
+
--background-fill-secondary: var(--neutral-50);
|
| 84 |
+
--border-color-accent: var(--primary-300);
|
| 85 |
+
--border-color-primary: var(--neutral-200);
|
| 86 |
+
--link-text-color: var(--secondary-600);
|
| 87 |
+
--link-text-color-active: var(--secondary-600);
|
| 88 |
+
--link-text-color-hover: var(--secondary-700);
|
| 89 |
+
--link-text-color-visited: var(--secondary-500);
|
| 90 |
+
--body-text-color-subdued: var(--neutral-400);
|
| 91 |
+
--accordion-text-color: var(--body-text-color);
|
| 92 |
+
--table-text-color: var(--body-text-color);
|
| 93 |
+
--shadow-drop: rgba(0,0,0,0.05) 0px 1px 2px 0px;
|
| 94 |
+
--shadow-drop-lg: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
| 95 |
+
--shadow-inset: rgba(0,0,0,0.05) 0px 2px 4px 0px inset;
|
| 96 |
+
--shadow-spread: 3px;
|
| 97 |
+
--block-background-fill: var(--background-fill-primary);
|
| 98 |
+
--block-border-color: var(--border-color-primary);
|
| 99 |
+
--block-border-width: 1px;
|
| 100 |
+
--block-info-text-color: var(--body-text-color-subdued);
|
| 101 |
+
--block-info-text-size: var(--text-sm);
|
| 102 |
+
--block-info-text-weight: 400;
|
| 103 |
+
--block-label-background-fill: var(--background-fill-primary);
|
| 104 |
+
--block-label-border-color: var(--border-color-primary);
|
| 105 |
+
--block-label-border-width: 1px;
|
| 106 |
+
--block-label-shadow: var(--block-shadow);
|
| 107 |
+
--block-label-text-color: var(--neutral-500);
|
| 108 |
+
--block-label-margin: 0;
|
| 109 |
+
--block-label-padding: var(--spacing-sm) var(--spacing-lg);
|
| 110 |
+
--block-label-radius: calc(var(--radius-sm) - 1px) 0 calc(var(--radius-sm) - 1px) 0;
|
| 111 |
+
--block-label-right-radius: 0 calc(var(--radius-sm) - 1px) 0 calc(var(--radius-sm) - 1px);
|
| 112 |
+
--block-label-text-size: var(--text-sm);
|
| 113 |
+
--block-label-text-weight: 400;
|
| 114 |
+
--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
|
| 115 |
+
--block-radius: var(--radius-sm);
|
| 116 |
+
--block-shadow: none;
|
| 117 |
+
--block-title-background-fill: none;
|
| 118 |
+
--block-title-border-color: none;
|
| 119 |
+
--block-title-border-width: 0px;
|
| 120 |
+
--block-title-text-color: var(--neutral-500);
|
| 121 |
+
--block-title-padding: 0;
|
| 122 |
+
--block-title-radius: none;
|
| 123 |
+
--block-title-text-size: var(--text-md);
|
| 124 |
+
--block-title-text-weight: 400;
|
| 125 |
+
--container-radius: var(--radius-sm);
|
| 126 |
+
--form-gap-width: 0px;
|
| 127 |
+
--layout-gap: var(--spacing-xxl);
|
| 128 |
+
--panel-background-fill: var(--background-fill-secondary);
|
| 129 |
+
--panel-border-color: var(--border-color-primary);
|
| 130 |
+
--panel-border-width: 0;
|
| 131 |
+
--section-header-text-size: var(--text-md);
|
| 132 |
+
--section-header-text-weight: 400;
|
| 133 |
+
--border-color-accent-subdued: var(--primary-200);
|
| 134 |
+
--code-background-fill: var(--neutral-100);
|
| 135 |
+
--chatbot-text-size: var(--text-lg);
|
| 136 |
+
--checkbox-background-color: var(--background-fill-primary);
|
| 137 |
+
--checkbox-background-color-focus: var(--checkbox-background-color);
|
| 138 |
+
--checkbox-background-color-hover: var(--checkbox-background-color);
|
| 139 |
+
--checkbox-background-color-selected: var(--color-accent);
|
| 140 |
+
--checkbox-border-color: var(--neutral-300);
|
| 141 |
+
--checkbox-border-color-focus: var(--color-accent);
|
| 142 |
+
--checkbox-border-color-hover: var(--neutral-300);
|
| 143 |
+
--checkbox-border-color-selected: var(--color-accent);
|
| 144 |
+
--checkbox-border-radius: var(--radius-sm);
|
| 145 |
+
--checkbox-border-width: var(--input-border-width);
|
| 146 |
+
--checkbox-label-background-fill: var(--background-fill-primary);
|
| 147 |
+
--checkbox-label-background-fill-hover: var(--background-fill-secondary);
|
| 148 |
+
--checkbox-label-background-fill-selected: var(--checkbox-label-background-fill);
|
| 149 |
+
--checkbox-label-border-color: var(--border-color-primary);
|
| 150 |
+
--checkbox-label-border-color-hover: var(--checkbox-label-border-color);
|
| 151 |
+
--checkbox-label-border-color-selected: var(--checkbox-label-border-color);
|
| 152 |
+
--checkbox-label-border-width: var(--input-border-width);
|
| 153 |
+
--checkbox-label-gap: var(--spacing-lg);
|
| 154 |
+
--checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
|
| 155 |
+
--checkbox-label-shadow: none;
|
| 156 |
+
--checkbox-label-text-size: var(--text-md);
|
| 157 |
+
--checkbox-label-text-weight: 400;
|
| 158 |
+
--checkbox-check: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
| 159 |
+
--radio-circle: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
| 160 |
+
--checkbox-shadow: var(--input-shadow);
|
| 161 |
+
--checkbox-label-text-color: var(--body-text-color);
|
| 162 |
+
--checkbox-label-text-color-selected: var(--checkbox-label-text-color);
|
| 163 |
+
--error-background-fill: #fef2f2;
|
| 164 |
+
--error-border-color: #b91c1c;
|
| 165 |
+
--error-border-width: 1px;
|
| 166 |
+
--error-text-color: #b91c1c;
|
| 167 |
+
--error-icon-color: #b91c1c;
|
| 168 |
+
--input-background-fill: white;
|
| 169 |
+
--input-background-fill-focus: var(--input-background-fill);
|
| 170 |
+
--input-background-fill-hover: var(--input-background-fill);
|
| 171 |
+
--input-border-color: var(--border-color-primary);
|
| 172 |
+
--input-border-color-focus: var(--secondary-300);
|
| 173 |
+
--input-border-color-hover: var(--input-border-color);
|
| 174 |
+
--input-border-width: 1px;
|
| 175 |
+
--input-padding: var(--spacing-xl);
|
| 176 |
+
--input-placeholder-color: var(--neutral-400);
|
| 177 |
+
--input-radius: var(--radius-sm);
|
| 178 |
+
--input-shadow: none;
|
| 179 |
+
--input-shadow-focus: 0 0 0 var(--shadow-spread) var(--secondary-50), var(--shadow-inset);
|
| 180 |
+
--input-text-size: var(--text-md);
|
| 181 |
+
--input-text-weight: 400;
|
| 182 |
+
--loader-color: var(--color-accent);
|
| 183 |
+
--prose-text-size: var(--text-md);
|
| 184 |
+
--prose-text-weight: 400;
|
| 185 |
+
--prose-header-text-weight: 600;
|
| 186 |
+
--slider-color: var(--color-accent);
|
| 187 |
+
--stat-background-fill: linear-gradient(to right, var(--primary-400), var(--primary-200));
|
| 188 |
+
--table-border-color: var(--neutral-300);
|
| 189 |
+
--table-even-background-fill: white;
|
| 190 |
+
--table-odd-background-fill: var(--neutral-50);
|
| 191 |
+
--table-radius: var(--radius-sm);
|
| 192 |
+
--table-row-focus: var(--color-accent-soft);
|
| 193 |
+
--button-border-width: 0px;
|
| 194 |
+
--button-cancel-background-fill: #ef4444;
|
| 195 |
+
--button-cancel-background-fill-hover: #dc2626;
|
| 196 |
+
--button-cancel-border-color: var(--button-secondary-border-color);
|
| 197 |
+
--button-cancel-border-color-hover: var(--button-secondary-border-color-hover);
|
| 198 |
+
--button-cancel-text-color: white;
|
| 199 |
+
--button-cancel-text-color-hover: white;
|
| 200 |
+
--button-cancel-shadow: var(--button-secondary-shadow);
|
| 201 |
+
--button-cancel-shadow-hover: var(--button-secondary-shadow-hover);
|
| 202 |
+
--button-cancel-shadow-active: var(--button-secondary-shadow-active);
|
| 203 |
+
--button-transform-hover: none;
|
| 204 |
+
--button-transform-active: none;
|
| 205 |
+
--button-transition: all 0.2s ease;
|
| 206 |
+
--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
|
| 207 |
+
--button-large-radius: var(--radius-md);
|
| 208 |
+
--button-large-text-size: var(--text-lg);
|
| 209 |
+
--button-large-text-weight: 600;
|
| 210 |
+
--button-primary-background-fill: var(--primary-500);
|
| 211 |
+
--button-primary-background-fill-hover: var(--primary-600);
|
| 212 |
+
--button-primary-border-color: var(--primary-500);
|
| 213 |
+
--button-primary-border-color-hover: var(--primary-500);
|
| 214 |
+
--button-primary-text-color: white;
|
| 215 |
+
--button-primary-text-color-hover: var(--button-primary-text-color);
|
| 216 |
+
--button-primary-shadow: none;
|
| 217 |
+
--button-primary-shadow-hover: var(--button-primary-shadow);
|
| 218 |
+
--button-primary-shadow-active: var(--button-primary-shadow);
|
| 219 |
+
--button-secondary-background-fill: var(--neutral-200);
|
| 220 |
+
--button-secondary-background-fill-hover: var(--neutral-300);
|
| 221 |
+
--button-secondary-border-color: var(--neutral-200);
|
| 222 |
+
--button-secondary-border-color-hover: var(--neutral-200);
|
| 223 |
+
--button-secondary-text-color: black;
|
| 224 |
+
--button-secondary-text-color-hover: var(--button-secondary-text-color);
|
| 225 |
+
--button-secondary-shadow: var(--button-primary-shadow);
|
| 226 |
+
--button-secondary-shadow-hover: var(--button-secondary-shadow);
|
| 227 |
+
--button-secondary-shadow-active: var(--button-secondary-shadow);
|
| 228 |
+
--button-small-padding: var(--spacing-sm) calc(1.5 * var(--spacing-sm));
|
| 229 |
+
--button-small-radius: var(--radius-md);
|
| 230 |
+
--button-small-text-size: var(--text-sm);
|
| 231 |
+
--button-small-text-weight: 400;
|
| 232 |
+
--button-medium-padding: var(--spacing-md) calc(2 * var(--spacing-md));
|
| 233 |
+
--button-medium-radius: var(--radius-md);
|
| 234 |
+
--button-medium-text-size: var(--text-md);
|
| 235 |
+
--button-medium-text-weight: 600;
|
| 236 |
+
}
|
| 237 |
+
|
| 238 |
+
:root .dark {
|
| 239 |
+
--body-background-fill: var(--background-fill-primary);
|
| 240 |
+
--body-text-color: var(--neutral-100);
|
| 241 |
+
--color-accent-soft: var(--neutral-700);
|
| 242 |
+
--background-fill-primary: var(--neutral-950);
|
| 243 |
+
--background-fill-secondary: var(--neutral-900);
|
| 244 |
+
--border-color-accent: var(--neutral-600);
|
| 245 |
+
--border-color-primary: var(--neutral-700);
|
| 246 |
+
--link-text-color-active: var(--secondary-500);
|
| 247 |
+
--link-text-color: var(--secondary-500);
|
| 248 |
+
--link-text-color-hover: var(--secondary-400);
|
| 249 |
+
--link-text-color-visited: var(--secondary-600);
|
| 250 |
+
--body-text-color-subdued: var(--neutral-400);
|
| 251 |
+
--accordion-text-color: var(--body-text-color);
|
| 252 |
+
--table-text-color: var(--body-text-color);
|
| 253 |
+
--shadow-spread: 1px;
|
| 254 |
+
--block-background-fill: var(--neutral-800);
|
| 255 |
+
--block-border-color: var(--border-color-primary);
|
| 256 |
+
--block_border_width: None;
|
| 257 |
+
--block-info-text-color: var(--body-text-color-subdued);
|
| 258 |
+
--block-label-background-fill: var(--background-fill-secondary);
|
| 259 |
+
--block-label-border-color: var(--border-color-primary);
|
| 260 |
+
--block_label_border_width: None;
|
| 261 |
+
--block-label-text-color: var(--neutral-200);
|
| 262 |
+
--block_shadow: None;
|
| 263 |
+
--block_title_background_fill: None;
|
| 264 |
+
--block_title_border_color: None;
|
| 265 |
+
--block_title_border_width: None;
|
| 266 |
+
--block-title-text-color: var(--neutral-200);
|
| 267 |
+
--panel-background-fill: var(--background-fill-secondary);
|
| 268 |
+
--panel-border-color: var(--border-color-primary);
|
| 269 |
+
--panel_border_width: None;
|
| 270 |
+
--border-color-accent-subdued: var(--border-color-accent);
|
| 271 |
+
--code-background-fill: var(--neutral-800);
|
| 272 |
+
--checkbox-background-color: var(--neutral-800);
|
| 273 |
+
--checkbox-background-color-focus: var(--checkbox-background-color);
|
| 274 |
+
--checkbox-background-color-hover: var(--checkbox-background-color);
|
| 275 |
+
--checkbox-background-color-selected: var(--color-accent);
|
| 276 |
+
--checkbox-border-color: var(--neutral-700);
|
| 277 |
+
--checkbox-border-color-focus: var(--color-accent);
|
| 278 |
+
--checkbox-border-color-hover: var(--neutral-600);
|
| 279 |
+
--checkbox-border-color-selected: var(--color-accent);
|
| 280 |
+
--checkbox-border-width: var(--input-border-width);
|
| 281 |
+
--checkbox-label-background-fill: var(--neutral-800);
|
| 282 |
+
--checkbox-label-background-fill-hover: var(--checkbox-label-background-fill);
|
| 283 |
+
--checkbox-label-background-fill-selected: var(--checkbox-label-background-fill);
|
| 284 |
+
--checkbox-label-border-color: var(--border-color-primary);
|
| 285 |
+
--checkbox-label-border-color-hover: var(--checkbox-label-border-color);
|
| 286 |
+
--checkbox-label-border-color-selected: var(--checkbox-label-border-color);
|
| 287 |
+
--checkbox-label-border-width: var(--input-border-width);
|
| 288 |
+
--checkbox-label-text-color: var(--body-text-color);
|
| 289 |
+
--checkbox-label-text-color-selected: var(--checkbox-label-text-color);
|
| 290 |
+
--error-background-fill: var(--neutral-900);
|
| 291 |
+
--error-border-color: #ef4444;
|
| 292 |
+
--error_border_width: None;
|
| 293 |
+
--error-text-color: #fef2f2;
|
| 294 |
+
--error-icon-color: #ef4444;
|
| 295 |
+
--input-background-fill: var(--neutral-800);
|
| 296 |
+
--input_background_fill_focus: None;
|
| 297 |
+
--input-background-fill-hover: var(--input-background-fill);
|
| 298 |
+
--input-border-color: var(--border-color-primary);
|
| 299 |
+
--input-border-color-focus: var(--neutral-700);
|
| 300 |
+
--input-border-color-hover: var(--input-border-color);
|
| 301 |
+
--input_border_width: None;
|
| 302 |
+
--input-placeholder-color: var(--neutral-500);
|
| 303 |
+
--input_shadow: None;
|
| 304 |
+
--input-shadow-focus: 0 0 0 var(--shadow-spread) var(--neutral-700), var(--shadow-inset);
|
| 305 |
+
--loader_color: None;
|
| 306 |
+
--slider_color: None;
|
| 307 |
+
--stat-background-fill: linear-gradient(to right, var(--primary-400), var(--primary-600));
|
| 308 |
+
--table-border-color: var(--neutral-700);
|
| 309 |
+
--table-even-background-fill: var(--neutral-950);
|
| 310 |
+
--table-odd-background-fill: var(--neutral-900);
|
| 311 |
+
--table-row-focus: var(--color-accent-soft);
|
| 312 |
+
--button_border_width: None;
|
| 313 |
+
--button-cancel-background-fill: #b91c1c;
|
| 314 |
+
--button-cancel-background-fill-hover: #991b1b;
|
| 315 |
+
--button-cancel-border-color: var(--button-secondary-border-color);
|
| 316 |
+
--button-cancel-border-color-hover: var(--button-secondary-border-color-hover);
|
| 317 |
+
--button-cancel-text-color: white;
|
| 318 |
+
--button-cancel-text-color-hover: white;
|
| 319 |
+
--button-cancel-shadow: var(--button-secondary-shadow);
|
| 320 |
+
--button-cancel-shadow-hover: var(--button-secondary-shadow-hover);
|
| 321 |
+
--button-cancel-shadow-active: var(--button-secondary-shadow-active);
|
| 322 |
+
--button-primary-background-fill: var(--primary-600);
|
| 323 |
+
--button-primary-background-fill-hover: var(--primary-700);
|
| 324 |
+
--button-primary-border-color: var(--primary-600);
|
| 325 |
+
--button-primary-border-color-hover: var(--primary-500);
|
| 326 |
+
--button-primary-text-color: white;
|
| 327 |
+
--button-primary-text-color-hover: var(--button-primary-text-color);
|
| 328 |
+
--button_primary_shadow: None;
|
| 329 |
+
--button-primary-shadow-hover: var(--button-primary-shadow);
|
| 330 |
+
--button-primary-shadow-active: var(--button-primary-shadow);
|
| 331 |
+
--button-secondary-background-fill: var(--neutral-600);
|
| 332 |
+
--button-secondary-background-fill-hover: var(--neutral-700);
|
| 333 |
+
--button-secondary-border-color: var(--neutral-600);
|
| 334 |
+
--button-secondary-border-color-hover: var(--neutral-500);
|
| 335 |
+
--button-secondary-text-color: white;
|
| 336 |
+
--button-secondary-text-color-hover: var(--button-secondary-text-color);
|
| 337 |
+
--button_secondary_shadow: None;
|
| 338 |
+
--button-secondary-shadow-hover: var(--button-secondary-shadow);
|
| 339 |
+
--button-secondary-shadow-active: var(--button-secondary-shadow);
|
| 340 |
+
--name: default;
|
| 341 |
+
--primary-50: #fff7ed;
|
| 342 |
+
--primary-100: #ffedd5;
|
| 343 |
+
--primary-200: #ffddb3;
|
| 344 |
+
--primary-300: #fdba74;
|
| 345 |
+
--primary-400: #fb923c;
|
| 346 |
+
--primary-500: #f97316;
|
| 347 |
+
--primary-600: #ea580c;
|
| 348 |
+
--primary-700: #c2410c;
|
| 349 |
+
--primary-800: #9a3412;
|
| 350 |
+
--primary-900: #7c2d12;
|
| 351 |
+
--primary-950: #6c2e12;
|
| 352 |
+
--secondary-50: #eff6ff;
|
| 353 |
+
--secondary-100: #dbeafe;
|
| 354 |
+
--secondary-200: #bfdbfe;
|
| 355 |
+
--secondary-300: #93c5fd;
|
| 356 |
+
--secondary-400: #60a5fa;
|
| 357 |
+
--secondary-500: #3b82f6;
|
| 358 |
+
--secondary-600: #2563eb;
|
| 359 |
+
--secondary-700: #1d4ed8;
|
| 360 |
+
--secondary-800: #1e40af;
|
| 361 |
+
--secondary-900: #1e3a8a;
|
| 362 |
+
--secondary-950: #1d3660;
|
| 363 |
+
--neutral-50: #fafafa;
|
| 364 |
+
--neutral-100: #f4f4f5;
|
| 365 |
+
--neutral-200: #e4e4e7;
|
| 366 |
+
--neutral-300: #d4d4d8;
|
| 367 |
+
--neutral-400: #bbbbc2;
|
| 368 |
+
--neutral-500: #71717a;
|
| 369 |
+
--neutral-600: #52525b;
|
| 370 |
+
--neutral-700: #3f3f46;
|
| 371 |
+
--neutral-800: #27272a;
|
| 372 |
+
--neutral-900: #18181b;
|
| 373 |
+
--neutral-950: #0f0f11;
|
| 374 |
+
--spacing-xxs: 1px;
|
| 375 |
+
--spacing-xs: 2px;
|
| 376 |
+
--spacing-sm: 4px;
|
| 377 |
+
--spacing-md: 6px;
|
| 378 |
+
--spacing-lg: 8px;
|
| 379 |
+
--spacing-xl: 10px;
|
| 380 |
+
--spacing-xxl: 16px;
|
| 381 |
+
--radius-xxs: 1px;
|
| 382 |
+
--radius-xs: 2px;
|
| 383 |
+
--radius-sm: 4px;
|
| 384 |
+
--radius-md: 6px;
|
| 385 |
+
--radius-lg: 8px;
|
| 386 |
+
--radius-xl: 12px;
|
| 387 |
+
--radius-xxl: 22px;
|
| 388 |
+
--text-xxs: 9px;
|
| 389 |
+
--text-xs: 10px;
|
| 390 |
+
--text-sm: 12px;
|
| 391 |
+
--text-md: 14px;
|
| 392 |
+
--text-lg: 16px;
|
| 393 |
+
--text-xl: 22px;
|
| 394 |
+
--text-xxl: 26px;
|
| 395 |
+
--font: 'Source Sans Pro', ui-sans-serif, system-ui, sans-serif;
|
| 396 |
+
--font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
|
| 397 |
+
--body-text-size: var(--text-md);
|
| 398 |
+
--body-text-weight: 400;
|
| 399 |
+
--embed-radius: var(--radius-sm);
|
| 400 |
+
--color-accent: var(--primary-500);
|
| 401 |
+
--shadow-drop: rgba(0,0,0,0.05) 0px 1px 2px 0px;
|
| 402 |
+
--shadow-drop-lg: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
| 403 |
+
--shadow-inset: rgba(0,0,0,0.05) 0px 2px 4px 0px inset;
|
| 404 |
+
--block-border-width: 1px;
|
| 405 |
+
--block-info-text-size: var(--text-sm);
|
| 406 |
+
--block-info-text-weight: 400;
|
| 407 |
+
--block-label-border-width: 1px;
|
| 408 |
+
--block-label-shadow: var(--block-shadow);
|
| 409 |
+
--block-label-margin: 0;
|
| 410 |
+
--block-label-padding: var(--spacing-sm) var(--spacing-lg);
|
| 411 |
+
--block-label-radius: calc(var(--radius-sm) - 1px) 0 calc(var(--radius-sm) - 1px) 0;
|
| 412 |
+
--block-label-right-radius: 0 calc(var(--radius-sm) - 1px) 0 calc(var(--radius-sm) - 1px);
|
| 413 |
+
--block-label-text-size: var(--text-sm);
|
| 414 |
+
--block-label-text-weight: 400;
|
| 415 |
+
--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);
|
| 416 |
+
--block-radius: var(--radius-sm);
|
| 417 |
+
--block-shadow: none;
|
| 418 |
+
--block-title-background-fill: none;
|
| 419 |
+
--block-title-border-color: none;
|
| 420 |
+
--block-title-border-width: 0px;
|
| 421 |
+
--block-title-padding: 0;
|
| 422 |
+
--block-title-radius: none;
|
| 423 |
+
--block-title-text-size: var(--text-md);
|
| 424 |
+
--block-title-text-weight: 400;
|
| 425 |
+
--container-radius: var(--radius-sm);
|
| 426 |
+
--form-gap-width: 0px;
|
| 427 |
+
--layout-gap: var(--spacing-xxl);
|
| 428 |
+
--panel-border-width: 0;
|
| 429 |
+
--section-header-text-size: var(--text-md);
|
| 430 |
+
--section-header-text-weight: 400;
|
| 431 |
+
--chatbot-text-size: var(--text-lg);
|
| 432 |
+
--checkbox-border-radius: var(--radius-sm);
|
| 433 |
+
--checkbox-label-gap: var(--spacing-lg);
|
| 434 |
+
--checkbox-label-padding: var(--spacing-md) calc(2 * var(--spacing-md));
|
| 435 |
+
--checkbox-label-shadow: none;
|
| 436 |
+
--checkbox-label-text-size: var(--text-md);
|
| 437 |
+
--checkbox-label-text-weight: 400;
|
| 438 |
+
--checkbox-check: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
|
| 439 |
+
--radio-circle: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
|
| 440 |
+
--checkbox-shadow: var(--input-shadow);
|
| 441 |
+
--error-border-width: 1px;
|
| 442 |
+
--input-background-fill-focus: var(--input-background-fill);
|
| 443 |
+
--input-border-width: 1px;
|
| 444 |
+
--input-padding: var(--spacing-xl);
|
| 445 |
+
--input-radius: var(--radius-sm);
|
| 446 |
+
--input-shadow: none;
|
| 447 |
+
--input-text-size: var(--text-md);
|
| 448 |
+
--input-text-weight: 400;
|
| 449 |
+
--loader-color: var(--color-accent);
|
| 450 |
+
--prose-text-size: var(--text-md);
|
| 451 |
+
--prose-text-weight: 400;
|
| 452 |
+
--prose-header-text-weight: 600;
|
| 453 |
+
--slider-color: var(--color-accent);
|
| 454 |
+
--table-radius: var(--radius-sm);
|
| 455 |
+
--button-border-width: 0px;
|
| 456 |
+
--button-transform-hover: none;
|
| 457 |
+
--button-transform-active: none;
|
| 458 |
+
--button-transition: all 0.2s ease;
|
| 459 |
+
--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));
|
| 460 |
+
--button-large-radius: var(--radius-md);
|
| 461 |
+
--button-large-text-size: var(--text-lg);
|
| 462 |
+
--button-large-text-weight: 600;
|
| 463 |
+
--button-primary-shadow: none;
|
| 464 |
+
--button-secondary-shadow: var(--button-primary-shadow);
|
| 465 |
+
--button-small-padding: var(--spacing-sm) calc(1.5 * var(--spacing-sm));
|
| 466 |
+
--button-small-radius: var(--radius-md);
|
| 467 |
+
--button-small-text-size: var(--text-sm);
|
| 468 |
+
--button-small-text-weight: 400;
|
| 469 |
+
--button-medium-padding: var(--spacing-md) calc(2 * var(--spacing-md));
|
| 470 |
+
--button-medium-radius: var(--radius-md);
|
| 471 |
+
--button-medium-text-size: var(--text-md);
|
| 472 |
+
--button-medium-text-weight: 600;
|
| 473 |
+
}
|
har_extract/PINNED_HF_HUB/dist/assets/utils-BsGrhMNe.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class p extends Error{constructor(o){super(o),this.name="ShareError"}}async function y(t,o){if(window.__gradio_space__==null)throw new p("Must be on Spaces to share.");let e,n,r;{let c;if(typeof t=="object"&&t.url)c=t.url;else if(typeof t=="string")c=t;else throw new Error("Invalid data format for URL type");const a=await fetch(c);e=await a.blob(),n=a.headers.get("content-type")||"",r=a.headers.get("content-disposition")||""}const s=new File([e],r,{type:n}),i=await fetch("https://huggingface.co/uploads",{method:"POST",body:s,headers:{"Content-Type":s.type,"X-Requested-With":"XMLHttpRequest"}});if(!i.ok){if(i.headers.get("content-type")?.includes("application/json")){const c=await i.json();throw new p(`Upload failed: ${c.error}`)}throw new p("Upload failed.")}return await i.text()}function _(t){t.addEventListener("click",o);async function o(e){const n=e.composedPath(),[r]=n.filter(s=>s?.tagName==="BUTTON"&&s.classList.contains("copy_code_button"));if(r){let s=function(a){a.style.opacity="1",setTimeout(()=>{a.style.opacity="0"},2e3)};e.stopImmediatePropagation();const i=r.parentElement.innerText.trim(),l=Array.from(r.children)[1];await h(i)&&s(l)}}return{destroy(){t.removeEventListener("click",o)}}}async function h(t){let o=!1;if("clipboard"in navigator)await navigator.clipboard.writeText(t),o=!0;else{const e=document.createElement("textarea");e.value=t,e.style.position="absolute",e.style.left="-999999px",document.body.prepend(e),e.select();try{document.execCommand("copy"),o=!0}catch(n){console.error(n),o=!1}finally{e.remove()}}return o}const w=t=>{const o=Math.floor(t/3600),e=Math.floor(t%3600/60),n=Math.round(t)%60,r=`${e<10?"0":""}${e}`,s=`${n<10?"0":""}${n}`;return o>0?`${o}:${r}:${s}`:`${e}:${s}`},f=typeof window<"u";class b{#e;theme;version;i18n;#t;root;autoscroll;max_file_size;client;_load_component;load_component=m.bind(this);constructor(o,e,n,r,s,i,l,c=u=>u,a,d){this.#e=o,this.theme=n,this.version=r,this.#t=e,this.max_file_size=l,this.i18n=c,this.root=s,this.autoscroll=i,this.client=a,this._load_component=d}dispatch(o,e){if(!f||!this.#t)return;const n=new CustomEvent("gradio",{bubbles:!0,detail:{data:e,id:this.#e,event:o}});this.#t.dispatchEvent(n)}}function m(t,o="component"){return this._load_component({name:t,api_url:this.client.config?.root,variant:o})}const g=t=>typeof t=="number"?t+"px":t;export{b as G,p as S,_ as a,g as c,w as f,y as u};
|
| 2 |
+
//# sourceMappingURL=utils-BsGrhMNe.js.map
|
har_extract/PINNED_HF_HUB/dist/assets/webworker-BsZ7XNFH.js
ADDED
|
@@ -0,0 +1,391 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(function(){"use strict";var H=Object.defineProperty,U=(e,t,o)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,I=(e,t,o)=>U(e,typeof t!="symbol"?t+"":t,o);function q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function R(e,t){for(var o="",i=0,s=-1,a=0,n,r=0;r<=e.length;++r){if(r<e.length)n=e.charCodeAt(r);else{if(n===47)break;n=47}if(n===47){if(!(s===r-1||a===1))if(s!==r-1&&a===2){if(o.length<2||i!==2||o.charCodeAt(o.length-1)!==46||o.charCodeAt(o.length-2)!==46){if(o.length>2){var l=o.lastIndexOf("/");if(l!==o.length-1){l===-1?(o="",i=0):(o=o.slice(0,l),i=o.length-1-o.lastIndexOf("/")),s=r,a=0;continue}}else if(o.length===2||o.length===1){o="",i=0,s=r,a=0;continue}}t&&(o.length>0?o+="/..":o="..",i=2)}else o.length>0?o+="/"+e.slice(s+1,r):o=e.slice(s+1,r),i=r-s-1;s=r,a=0}else n===46&&a!==-1?++a:a=-1}return o}function W(e,t){var o=t.dir||t.root,i=t.base||(t.name||"")+(t.ext||"");return o?o===t.root?o+i:o+e+i:i}var b={resolve:function(){for(var e="",t=!1,o,i=arguments.length-1;i>=-1&&!t;i--){var s;i>=0?s=arguments[i]:(o===void 0&&(o=process.cwd()),s=o),_(s),s.length!==0&&(e=s+"/"+e,t=s.charCodeAt(0)===47)}return e=R(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(_(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return e=R(e,!t),e.length===0&&!t&&(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return _(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];_(o),o.length>0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":b.normalize(e)},relative:function(e,t){if(_(e),_(t),e===t||(e=b.resolve(e),t=b.resolve(t),e===t))return"";for(var o=1;o<e.length&&e.charCodeAt(o)===47;++o);for(var i=e.length,s=i-o,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var n=t.length,r=n-a,l=s<r?s:r,p=-1,c=0;c<=l;++c){if(c===l){if(r>l){if(t.charCodeAt(a+c)===47)return t.slice(a+c+1);if(c===0)return t.slice(a+c)}else s>l&&(e.charCodeAt(o+c)===47?p=c:c===0&&(p=0));break}var h=e.charCodeAt(o+c),u=t.charCodeAt(a+c);if(h!==u)break;h===47&&(p=c)}var f="";for(c=o+p+1;c<=i;++c)(c===i||e.charCodeAt(c)===47)&&(f.length===0?f+="..":f+="/..");return f.length>0?f+t.slice(a+p):(a+=p,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(_(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,i=-1,s=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!s){i=a;break}}else s=!1;return i===-1?o?"/":".":o&&i===1?"//":e.slice(0,i)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');_(e);var o=0,i=-1,s=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var n=t.length-1,r=-1;for(a=e.length-1;a>=0;--a){var l=e.charCodeAt(a);if(l===47){if(!s){o=a+1;break}}else r===-1&&(s=!1,r=a+1),n>=0&&(l===t.charCodeAt(n)?--n===-1&&(i=a):(n=-1,i=r))}return o===i?i=r:i===-1&&(i=e.length),e.slice(o,i)}else{for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===47){if(!s){o=a+1;break}}else i===-1&&(s=!1,i=a+1);return i===-1?"":e.slice(o,i)}},extname:function(e){_(e);for(var t=-1,o=0,i=-1,s=!0,a=0,n=e.length-1;n>=0;--n){var r=e.charCodeAt(n);if(r===47){if(!s){o=n+1;break}continue}i===-1&&(s=!1,i=n+1),r===46?t===-1?t=n:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||i===-1||a===0||a===1&&t===i-1&&t===o+1?"":e.slice(t,i)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return W("/",e)},parse:function(e){_(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o=e.charCodeAt(0),i=o===47,s;i?(t.root="/",s=1):s=0;for(var a=-1,n=0,r=-1,l=!0,p=e.length-1,c=0;p>=s;--p){if(o=e.charCodeAt(p),o===47){if(!l){n=p+1;break}continue}r===-1&&(l=!1,r=p+1),o===46?a===-1?a=p:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||r===-1||c===0||c===1&&a===r-1&&a===n+1?r!==-1&&(n===0&&i?t.base=t.name=e.slice(1,r):t.base=t.name=e.slice(n,r)):(n===0&&i?(t.name=e.slice(1,a),t.base=e.slice(1,r)):(t.name=e.slice(n,a),t.base=e.slice(n,r)),t.ext=e.slice(a,r)),n>0?t.dir=e.slice(0,n-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};b.posix=b;var G=b;const T=q(G),j="/home/pyodide",v=e=>`${j}/${e}`,w=(e,t)=>T.resolve(v(e),t);function L(e,t){const o=T.normalize(t),i=T.dirname(o).split("/"),s=[];for(const a of i){s.push(a);const n=s.join("/");if(e.FS.analyzePath(n).exists){if(e.FS.isDir(n))throw new Error(`"${n}" already exists and is not a directory.`);continue}try{e.FS.mkdir(n)}catch(r){throw console.error(`Failed to create a directory "${n}"`),r}}}function N(e,t,o,i){L(e,t),e.FS.writeFile(t,o,i)}function Y(e,t,o){L(e,o),e.FS.rename(t,o)}function z(e){e.forEach(t=>{let o;try{o=new URL(t)}catch{return}if(o.protocol==="emfs:"||o.protocol==="file:")throw new Error(`"emfs:" and "file:" protocols are not allowed for the requirement (${t})`)})}function B(e,t){const o=e.pyimport("packaging.requirements.Requirement");try{const i=o(t);return i.name==="plotly"&&i.specifier.contains("6")}catch{return!1}}function $(e,t){const o=e.pyimport("packaging.requirements.Requirement");try{return o(t).name==="altair"}catch{return!1}}function V(e,t){const o="huggingface-hub==0.35.0";function i(l){try{return new URL(l).pathname.split("/").pop()??null}catch{return null}}function s(l,p){const c=i(l);if(!c)return!1;const h=c.toLowerCase(),u=p.toLowerCase().replace(/_/g,"-"),f=p.toLowerCase().replace(/-/g,"_");return h.startsWith(`${u}-`)||h.startsWith(`${f}-`)}function a(l,p){try{return e.pyimport("packaging.requirements.Requirement")(l).name===p}catch{return s(l,p)}}let n=!1;const r=t.map(l=>a(l,"huggingface-hub")?(n=!0,o):l);return(r.some(l=>a(l,"gradio")||a(l,"gradio-client")||a(l,"gradio_client"))||n)&&!r.some(l=>l===o)&&r.push(o),r.some(l=>$(e,l))?r.map(l=>B(e,l)?"plotly==5.*":l):r}class J{constructor(){I(this,"_buffer",[]),I(this,"_promise"),I(this,"_resolve"),this._resolve=null,this._promise=null,this._notifyAll()}async _wait(){await this._promise}_notifyAll(){this._resolve&&this._resolve(),this._promise=new Promise(t=>this._resolve=t)}async dequeue(){for(;this._buffer.length===0;)await this._wait();return this._buffer.shift()}enqueue(t){this._buffer.push(t),this._notifyAll()}}function K(e,t,o){const i=new J;o.addEventListener("message",n=>{i.enqueue(n.data)}),o.start();async function s(){return await i.dequeue()}async function a(n){const r=Object.fromEntries(n.toJs());o.postMessage(r)}return e(t,s,a)}const P="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";function X(e){return Array.from(Array(e)).map(()=>P[Math.floor(Math.random()*P.length)]).join("")}const Q=`import jedi
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def get_code_completions(code: str, line: int, column: int):
|
| 5 |
+
script = jedi.Script(code)
|
| 6 |
+
completions = script.complete(line, column)
|
| 7 |
+
serializable_completions = [
|
| 8 |
+
{
|
| 9 |
+
"label": completion.name,
|
| 10 |
+
"type": completion.type,
|
| 11 |
+
"docstring": completion.docstring(raw=True),
|
| 12 |
+
"completion_prefix_length": completion.get_completion_prefix_length(),
|
| 13 |
+
}
|
| 14 |
+
for completion in completions
|
| 15 |
+
]
|
| 16 |
+
return serializable_completions
|
| 17 |
+
`;class Z{constructor(t){I(this,"setupPromise"),this.pyodide=t,this.setupPromise=this.setup().catch(o=>(console.error("Error while setting up code completion",o),null))}async setup(){return await this.pyodide.pyimport("micropip").install.callKwargs(["jedi"],{keep_going:!0}),this.pyodide.runPython(Q),this.pyodide.globals.get("get_code_completions")}async getCodeCompletions(t){const o=await this.setupPromise;if(!o)return console.debug("Code completion setup failed, returning empty response"),[];const{code:i,line:s,column:a}=t,n=o(i,s,a),r=n.toJs({dict_converter:Object.fromEntries});return n.destroy(),r}}const ee=`import ast
|
| 18 |
+
import os
|
| 19 |
+
import sys
|
| 20 |
+
import tokenize
|
| 21 |
+
import types
|
| 22 |
+
from inspect import CO_COROUTINE
|
| 23 |
+
|
| 24 |
+
from gradio.wasm_utils import app_id_context
|
| 25 |
+
|
| 26 |
+
# BSD 3-Clause License
|
| 27 |
+
#
|
| 28 |
+
# - Copyright (c) 2008-Present, IPython Development Team
|
| 29 |
+
# - Copyright (c) 2001-2007, Fernando Perez <fernando.perez@colorado.edu>
|
| 30 |
+
# - Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>
|
| 31 |
+
# - Copyright (c) 2001, Nathaniel Gray <n8gray@caltech.edu>
|
| 32 |
+
#
|
| 33 |
+
# All rights reserved.
|
| 34 |
+
#
|
| 35 |
+
# Redistribution and use in source and binary forms, with or without
|
| 36 |
+
# modification, are permitted provided that the following conditions are met:
|
| 37 |
+
#
|
| 38 |
+
# * Redistributions of source code must retain the above copyright notice, this
|
| 39 |
+
# list of conditions and the following disclaimer.
|
| 40 |
+
|
| 41 |
+
# * Redistributions in binary form must reproduce the above copyright notice,
|
| 42 |
+
# this list of conditions and the following disclaimer in the documentation
|
| 43 |
+
# and/or other materials provided with the distribution.
|
| 44 |
+
|
| 45 |
+
# * Neither the name of the copyright holder nor the names of its
|
| 46 |
+
# contributors may be used to endorse or promote products derived from
|
| 47 |
+
# this software without specific prior written permission.
|
| 48 |
+
|
| 49 |
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 50 |
+
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 51 |
+
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 52 |
+
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 53 |
+
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 54 |
+
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 55 |
+
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 56 |
+
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 57 |
+
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 58 |
+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 59 |
+
|
| 60 |
+
# Code modified from IPython (BSD license)
|
| 61 |
+
# Source: https://github.com/ipython/ipython/blob/master/IPython/utils/syspathcontext.py#L42
|
| 62 |
+
class modified_sys_path: # noqa: N801
|
| 63 |
+
"""A context for prepending a directory to sys.path for a second."""
|
| 64 |
+
|
| 65 |
+
def __init__(self, script_path: str):
|
| 66 |
+
self._script_path = script_path
|
| 67 |
+
self._added_path = False
|
| 68 |
+
|
| 69 |
+
def __enter__(self):
|
| 70 |
+
if self._script_path not in sys.path:
|
| 71 |
+
sys.path.insert(0, self._script_path)
|
| 72 |
+
self._added_path = True
|
| 73 |
+
|
| 74 |
+
def __exit__(self, type, value, traceback):
|
| 75 |
+
if self._added_path:
|
| 76 |
+
try:
|
| 77 |
+
sys.path.remove(self._script_path)
|
| 78 |
+
except ValueError:
|
| 79 |
+
# It's already removed.
|
| 80 |
+
pass
|
| 81 |
+
|
| 82 |
+
# Returning False causes any exceptions to be re-raised.
|
| 83 |
+
return False
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)
|
| 87 |
+
# Copyright (c) Yuichiro Tachibana (2023)
|
| 88 |
+
#
|
| 89 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 90 |
+
# you may not use this file except in compliance with the License.
|
| 91 |
+
# You may obtain a copy of the License at
|
| 92 |
+
#
|
| 93 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 94 |
+
#
|
| 95 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 96 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 97 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 98 |
+
# See the License for the specific language governing permissions and
|
| 99 |
+
# limitations under the License.
|
| 100 |
+
def _new_module(name: str) -> types.ModuleType:
|
| 101 |
+
"""Create a new module with the given name."""
|
| 102 |
+
return types.ModuleType(name)
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
def set_home_dir(home_dir: str) -> None:
|
| 106 |
+
os.environ["HOME"] = home_dir
|
| 107 |
+
os.chdir(home_dir)
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
async def _run_script(app_id: str, home_dir: str, script_path: str) -> None:
|
| 111 |
+
# This function is based on the following code from Streamlit:
|
| 112 |
+
# https://github.com/streamlit/streamlit/blob/1.24.0/lib/streamlit/runtime/scriptrunner/script_runner.py#L519-L554
|
| 113 |
+
# with modifications to support top-level await.
|
| 114 |
+
set_home_dir(home_dir)
|
| 115 |
+
|
| 116 |
+
with tokenize.open(script_path) as f:
|
| 117 |
+
filebody = f.read()
|
| 118 |
+
|
| 119 |
+
await _run_code(app_id, home_dir, filebody, script_path)
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
async def _run_code(
|
| 123 |
+
app_id: str,
|
| 124 |
+
home_dir: str,
|
| 125 |
+
filebody: str,
|
| 126 |
+
script_path: str = '<string>' # This default value follows the convention. Ref: https://docs.python.org/3/library/functions.html#compile
|
| 127 |
+
) -> None:
|
| 128 |
+
set_home_dir(home_dir)
|
| 129 |
+
|
| 130 |
+
# NOTE: In Streamlit, the bytecode caching mechanism has been introduced.
|
| 131 |
+
# However, we skipped it here for simplicity and because Gradio doesn't need to rerun the script so frequently,
|
| 132 |
+
# while we may do it in the future.
|
| 133 |
+
bytecode = compile( # type: ignore
|
| 134 |
+
filebody,
|
| 135 |
+
# Pass in the file path so it can show up in exceptions.
|
| 136 |
+
script_path,
|
| 137 |
+
# We're compiling entire blocks of Python, so we need "exec"
|
| 138 |
+
# mode (as opposed to "eval" or "single").
|
| 139 |
+
mode="exec",
|
| 140 |
+
# Don't inherit any flags or "future" statements.
|
| 141 |
+
flags=ast.PyCF_ALLOW_TOP_LEVEL_AWAIT, # Allow top-level await. Ref: https://github.com/whitphx/streamlit/commit/277dc580efb315a3e9296c9a0078c602a0904384
|
| 142 |
+
dont_inherit=1,
|
| 143 |
+
# Use the default optimization options.
|
| 144 |
+
optimize=-1,
|
| 145 |
+
)
|
| 146 |
+
|
| 147 |
+
module = _new_module("__main__")
|
| 148 |
+
|
| 149 |
+
# Install the fake module as the __main__ module. This allows
|
| 150 |
+
# the pickle module to work inside the user's code, since it now
|
| 151 |
+
# can know the module where the pickled objects stem from.
|
| 152 |
+
# IMPORTANT: This means we can't use "if __name__ == '__main__'" in
|
| 153 |
+
# our code, as it will point to the wrong module!!!
|
| 154 |
+
sys.modules["__main__"] = module
|
| 155 |
+
|
| 156 |
+
# Add special variables to the module's globals dict.
|
| 157 |
+
module.__dict__["__file__"] = script_path
|
| 158 |
+
|
| 159 |
+
with modified_sys_path(script_path), modified_sys_path(home_dir), app_id_context(app_id):
|
| 160 |
+
# Allow top-level await. Ref: https://github.com/whitphx/streamlit/commit/277dc580efb315a3e9296c9a0078c602a0904384
|
| 161 |
+
if bytecode.co_flags & CO_COROUTINE:
|
| 162 |
+
# The source code includes top-level awaits, so the compiled code object is a coroutine.
|
| 163 |
+
await eval(bytecode, module.__dict__)
|
| 164 |
+
else:
|
| 165 |
+
exec(bytecode, module.__dict__)
|
| 166 |
+
`,te=`# Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022)
|
| 167 |
+
# Copyright (c) Yuichiro Tachibana (2023)
|
| 168 |
+
#
|
| 169 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 170 |
+
# you may not use this file except in compliance with the License.
|
| 171 |
+
# You may obtain a copy of the License at
|
| 172 |
+
#
|
| 173 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 174 |
+
#
|
| 175 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 176 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 177 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 178 |
+
# See the License for the specific language governing permissions and
|
| 179 |
+
# limitations under the License.
|
| 180 |
+
|
| 181 |
+
import fnmatch
|
| 182 |
+
import logging
|
| 183 |
+
import os
|
| 184 |
+
import sys
|
| 185 |
+
import types
|
| 186 |
+
from typing import Optional, Set
|
| 187 |
+
|
| 188 |
+
LOGGER = logging.getLogger(__name__)
|
| 189 |
+
|
| 190 |
+
#
|
| 191 |
+
# Copied from https://github.com/streamlit/streamlit/blob/1.24.0/lib/streamlit/file_util.py
|
| 192 |
+
#
|
| 193 |
+
|
| 194 |
+
def file_is_in_folder_glob(filepath, folderpath_glob) -> bool:
|
| 195 |
+
"""Test whether a file is in some folder with globbing support.
|
| 196 |
+
|
| 197 |
+
Parameters
|
| 198 |
+
----------
|
| 199 |
+
filepath : str
|
| 200 |
+
A file path.
|
| 201 |
+
folderpath_glob: str
|
| 202 |
+
A path to a folder that may include globbing.
|
| 203 |
+
|
| 204 |
+
"""
|
| 205 |
+
# Make the glob always end with "/*" so we match files inside subfolders of
|
| 206 |
+
# folderpath_glob.
|
| 207 |
+
if not folderpath_glob.endswith("*"):
|
| 208 |
+
if folderpath_glob.endswith("/"):
|
| 209 |
+
folderpath_glob += "*"
|
| 210 |
+
else:
|
| 211 |
+
folderpath_glob += "/*"
|
| 212 |
+
|
| 213 |
+
file_dir = os.path.dirname(filepath) + "/"
|
| 214 |
+
return fnmatch.fnmatch(file_dir, folderpath_glob)
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
def get_directory_size(directory: str) -> int:
|
| 218 |
+
"""Return the size of a directory in bytes."""
|
| 219 |
+
total_size = 0
|
| 220 |
+
for dirpath, _, filenames in os.walk(directory):
|
| 221 |
+
for f in filenames:
|
| 222 |
+
fp = os.path.join(dirpath, f)
|
| 223 |
+
total_size += os.path.getsize(fp)
|
| 224 |
+
return total_size
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
def file_in_pythonpath(filepath) -> bool:
|
| 228 |
+
"""Test whether a filepath is in the same folder of a path specified in the PYTHONPATH env variable.
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
Parameters
|
| 232 |
+
----------
|
| 233 |
+
filepath : str
|
| 234 |
+
An absolute file path.
|
| 235 |
+
|
| 236 |
+
Returns
|
| 237 |
+
-------
|
| 238 |
+
boolean
|
| 239 |
+
True if contained in PYTHONPATH, False otherwise. False if PYTHONPATH is not defined or empty.
|
| 240 |
+
|
| 241 |
+
"""
|
| 242 |
+
pythonpath = os.environ.get("PYTHONPATH", "")
|
| 243 |
+
if len(pythonpath) == 0:
|
| 244 |
+
return False
|
| 245 |
+
|
| 246 |
+
absolute_paths = [os.path.abspath(path) for path in pythonpath.split(os.pathsep)]
|
| 247 |
+
return any(
|
| 248 |
+
file_is_in_folder_glob(os.path.normpath(filepath), path)
|
| 249 |
+
for path in absolute_paths
|
| 250 |
+
)
|
| 251 |
+
|
| 252 |
+
#
|
| 253 |
+
# Copied from https://github.com/streamlit/streamlit/blob/1.24.0/lib/streamlit/watcher/local_sources_watcher.py
|
| 254 |
+
#
|
| 255 |
+
|
| 256 |
+
def get_module_paths(module: types.ModuleType) -> Set[str]:
|
| 257 |
+
paths_extractors = [
|
| 258 |
+
# https://docs.python.org/3/reference/datamodel.html
|
| 259 |
+
# __file__ is the pathname of the file from which the module was loaded
|
| 260 |
+
# if it was loaded from a file.
|
| 261 |
+
# The __file__ attribute may be missing for certain types of modules
|
| 262 |
+
lambda m: [m.__file__],
|
| 263 |
+
# https://docs.python.org/3/reference/import.html#__spec__
|
| 264 |
+
# The __spec__ attribute is set to the module spec that was used
|
| 265 |
+
# when importing the module. one exception is __main__,
|
| 266 |
+
# where __spec__ is set to None in some cases.
|
| 267 |
+
# https://www.python.org/dev/peps/pep-0451/#id16
|
| 268 |
+
# "origin" in an import context means the system
|
| 269 |
+
# (or resource within a system) from which a module originates
|
| 270 |
+
# ... It is up to the loader to decide on how to interpret
|
| 271 |
+
# and use a module's origin, if at all.
|
| 272 |
+
lambda m: [m.__spec__.origin],
|
| 273 |
+
# https://www.python.org/dev/peps/pep-0420/
|
| 274 |
+
# Handling of "namespace packages" in which the __path__ attribute
|
| 275 |
+
# is a _NamespacePath object with a _path attribute containing
|
| 276 |
+
# the various paths of the package.
|
| 277 |
+
lambda m: list(m.__path__._path),
|
| 278 |
+
]
|
| 279 |
+
|
| 280 |
+
all_paths = set()
|
| 281 |
+
for extract_paths in paths_extractors:
|
| 282 |
+
potential_paths = []
|
| 283 |
+
try:
|
| 284 |
+
potential_paths = extract_paths(module)
|
| 285 |
+
except AttributeError:
|
| 286 |
+
# Some modules might not have __file__ or __spec__ attributes.
|
| 287 |
+
pass
|
| 288 |
+
except Exception as e:
|
| 289 |
+
LOGGER.warning(f"Examining the path of {module.__name__} raised: {e}")
|
| 290 |
+
|
| 291 |
+
all_paths.update(
|
| 292 |
+
[os.path.abspath(str(p)) for p in potential_paths if _is_valid_path(p)]
|
| 293 |
+
)
|
| 294 |
+
return all_paths
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
def _is_valid_path(path: Optional[str]) -> bool:
|
| 298 |
+
return isinstance(path, str) and (os.path.isfile(path) or os.path.isdir(path))
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
#
|
| 302 |
+
# Original code
|
| 303 |
+
#
|
| 304 |
+
|
| 305 |
+
def unload_local_modules(target_dir_path: str = "."):
|
| 306 |
+
""" Unload all modules that are in the target directory or in a subdirectory of it.
|
| 307 |
+
It is necessary to unload modules before re-executing a script that imports the modules,
|
| 308 |
+
so that the new version of the modules is loaded.
|
| 309 |
+
The module unloading feature is extracted from Streamlit's LocalSourcesWatcher (https://github.com/streamlit/streamlit/blob/1.24.0/lib/streamlit/watcher/local_sources_watcher.py)
|
| 310 |
+
and packaged as a standalone function.
|
| 311 |
+
"""
|
| 312 |
+
target_dir_path = os.path.abspath(target_dir_path)
|
| 313 |
+
loaded_modules = {} # filepath -> module_name
|
| 314 |
+
|
| 315 |
+
# Copied from \`LocalSourcesWatcher.update_watched_modules()\`
|
| 316 |
+
module_paths = {
|
| 317 |
+
name: get_module_paths(module)
|
| 318 |
+
for name, module in dict(sys.modules).items()
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
# Copied from \`LocalSourcesWatcher._register_necessary_watchers()\`
|
| 322 |
+
for name, paths in module_paths.items():
|
| 323 |
+
for path in paths:
|
| 324 |
+
if file_is_in_folder_glob(path, target_dir_path) or file_in_pythonpath(path):
|
| 325 |
+
loaded_modules[path] = name
|
| 326 |
+
|
| 327 |
+
# Copied from \`LocalSourcesWatcher.on_file_changed()\`
|
| 328 |
+
for module_name in loaded_modules.values():
|
| 329 |
+
if module_name is not None and module_name in sys.modules:
|
| 330 |
+
del sys.modules[module_name]
|
| 331 |
+
`;importScripts("https://cdn.jsdelivr.net/pyodide/v0.27.3/full/pyodide.js");let M,x,F,S;async function E(e,t,o,i=3){const s=V(e,o);for(let a=0;a<i;a++){const n=a===i-1;try{return t.install.callKwargs(s,{keep_going:!0})}catch(r){if(n)throw r;console.error("Failed to install packages. Retrying...",r)}}}async function oe(e,t,o,i){console.debug("Loading Pyodide."),t("Loading Pyodide");const s=await loadPyodide({stdout:o,stderr:i});console.debug("Pyodide is loaded."),console.debug("Loading micropip"),t("Loading micropip"),await s.loadPackage("micropip");const a=s.pyimport("micropip");console.debug("micropip is loaded.");const n=[e.gradioWheelUrl,e.gradioClientWheelUrl];console.debug("Loading Gradio wheels.",n),t("Loading Gradio wheels"),await s.loadPackage(["ssl","setuptools"]),await a.add_mock_package("ffmpy","0.3.0"),await E(s,a,n),console.debug("Gradio wheels are loaded."),console.debug("Mocking os module methods."),t("Mock os module methods"),await s.runPythonAsync(`
|
| 332 |
+
import os
|
| 333 |
+
|
| 334 |
+
os.link = lambda src, dst: None
|
| 335 |
+
`),console.debug("os module methods are mocked."),console.debug("Importing gradio package."),t("Importing gradio package"),await s.runPythonAsync("import gradio"),console.debug("gradio package is imported."),console.debug("Defining a ASGI wrapper function."),t("Defining a ASGI wrapper function"),await s.runPythonAsync(`
|
| 336 |
+
# Based on Shiny's App.call_pyodide().
|
| 337 |
+
# https://github.com/rstudio/py-shiny/blob/v0.3.3/shiny/_app.py#L224-L258
|
| 338 |
+
async def _call_asgi_app_from_js(app_id, scope, receive, send):
|
| 339 |
+
# TODO: Pretty sure there are objects that need to be destroy()'d here?
|
| 340 |
+
scope = scope.to_py()
|
| 341 |
+
|
| 342 |
+
# ASGI requires some values to be byte strings, not character strings. Those are
|
| 343 |
+
# not that easy to create in JavaScript, so we let the JS side pass us strings
|
| 344 |
+
# and we convert them to bytes here.
|
| 345 |
+
if "headers" in scope:
|
| 346 |
+
# JS doesn't have \`bytes\` so we pass as strings and convert here
|
| 347 |
+
scope["headers"] = [
|
| 348 |
+
[value.encode("latin-1") for value in header]
|
| 349 |
+
for header in scope["headers"]
|
| 350 |
+
]
|
| 351 |
+
if "query_string" in scope and scope["query_string"]:
|
| 352 |
+
scope["query_string"] = scope["query_string"].encode("latin-1")
|
| 353 |
+
if "raw_path" in scope and scope["raw_path"]:
|
| 354 |
+
scope["raw_path"] = scope["raw_path"].encode("latin-1")
|
| 355 |
+
|
| 356 |
+
async def rcv():
|
| 357 |
+
event = await receive()
|
| 358 |
+
py_event = event.to_py()
|
| 359 |
+
if "body" in py_event:
|
| 360 |
+
if isinstance(py_event["body"], memoryview):
|
| 361 |
+
py_event["body"] = py_event["body"].tobytes()
|
| 362 |
+
return py_event
|
| 363 |
+
|
| 364 |
+
async def snd(event):
|
| 365 |
+
await send(event)
|
| 366 |
+
|
| 367 |
+
app = gradio.wasm_utils.get_registered_app(app_id)
|
| 368 |
+
if app is None:
|
| 369 |
+
raise RuntimeError("Gradio app has not been launched.")
|
| 370 |
+
|
| 371 |
+
await app(scope, rcv, snd)
|
| 372 |
+
`),M=s.globals.get("_call_asgi_app_from_js"),console.debug("The ASGI wrapper function is defined."),console.debug("Mocking async libraries."),t("Mocking async libraries"),await s.runPythonAsync(`
|
| 373 |
+
async def mocked_anyio_to_thread_run_sync(func, *args, cancellable=False, limiter=None):
|
| 374 |
+
return func(*args)
|
| 375 |
+
|
| 376 |
+
import anyio.to_thread
|
| 377 |
+
anyio.to_thread.run_sync = mocked_anyio_to_thread_run_sync
|
| 378 |
+
`),console.debug("Async libraries are mocked."),console.debug("Setting up Python utility functions."),t("Setting up Python utility functions"),await s.runPythonAsync(ee),x=s.globals.get("_run_code"),F=s.globals.get("_run_script"),await s.runPythonAsync(te),S=s.globals.get("unload_local_modules"),console.debug("Python utility functions are set up."),t("Initialization completed");const r=new Z(s);return{pyodide:s,micropip:a,codeCompleter:r}}async function ae(e,t,o,i,s,a){const n=v(o);console.debug("Creating a home directory for the app.",{appId:o,appHomeDir:n}),e.FS.mkdir(n),console.debug("Mounting files.",i.files),s("Mounting files");const r=[];await Promise.all(Object.keys(i.files).map(async u=>{const f=i.files[u];let d;"url"in f?(console.debug(`Fetch a file from ${f.url}`),d=await fetch(f.url).then(y=>y.arrayBuffer()).then(y=>new Uint8Array(y))):d=f.data;const{opts:m}=i.files[u],g=w(o,u);console.debug(`Write a file "${g}"`),N(e,g,d,m),typeof d=="string"&&u.endsWith(".py")&&r.push(d)})),console.debug("Files are mounted."),console.debug("Installing packages.",i.requirements),s("Installing packages"),await E(e,t,i.requirements),console.debug("Packages are installed."),console.debug("Auto-loading modules.");const l=await Promise.all(r.map(u=>e.loadPackagesFromImports(u))),p=new Set(l.flat()),c=Array.from(p);c.length>0&&a(c);const h=c.map(u=>u.name);console.debug("Modules are auto-loaded.",c),(i.requirements.includes("matplotlib")||h.includes("matplotlib"))&&(console.debug("Setting matplotlib backend."),s("Setting matplotlib backend"),await e.runPythonAsync(`
|
| 379 |
+
try:
|
| 380 |
+
import matplotlib
|
| 381 |
+
matplotlib.use("agg")
|
| 382 |
+
except ImportError:
|
| 383 |
+
pass
|
| 384 |
+
`),console.debug("matplotlib backend is set.")),s("App is now loaded")}const O=self;"postMessage"in O?D(O):O.onconnect=e=>{const t=e.ports[0];D(t),t.start()};let A;function D(e){const t=X(8);console.debug("Set up a new app.",{appId:t});const o=l=>{e.postMessage({type:"progress-update",data:{log:l}})},i=l=>{console.log(l),e.postMessage({type:"stdout",data:{output:l}})},s=l=>{console.error(l),e.postMessage({type:"stderr",data:{output:l}})},a=l=>{console.error("Python error:",l),e.postMessage({type:"python-error",data:{traceback:l}})},n=l=>{const p={type:"modules-auto-loaded",data:{packages:l}};e.postMessage(p)};let r;e.onmessage=async function(l){const p=l.data;console.debug("worker.onmessage",p);const c=l.ports[0];try{if(p.type==="init-env"){A==null?A=oe(p.data,o,i,s):o("Pyodide environment initialization is ongoing in another session"),A.then(()=>{const d={type:"reply:success",data:null};c.postMessage(d)}).catch(d=>{const m={type:"reply:error",error:d};c.postMessage(m)});return}if(A==null)throw new Error("Pyodide Initialization is not started.");const{pyodide:h,micropip:u,codeCompleter:f}=await A;if(h.pyimport("gradio").wasm_utils.register_error_traceback_callback(t,a),p.type==="init-app"){r=ae(h,u,t,p.data,o,n);const d={type:"reply:success",data:null};c.postMessage(d);return}if(r==null)throw new Error("App initialization is not started.");switch(await r,p.type){case"echo":{const d={type:"reply:success",data:p.data};c.postMessage(d);break}case"run-python-code":{S(),console.debug("Auto install the requirements");const d=await h.loadPackagesFromImports(p.data.code);d.length>0&&n(d),console.debug("Modules are auto-loaded.",d),await x(t,v(t),p.data.code);const m={type:"reply:success",data:null};c.postMessage(m);break}case"run-python-file":{S(),await F(t,v(t),p.data.path);const d={type:"reply:success",data:null};c.postMessage(d);break}case"asgi-request":{console.debug("ASGI request",p.data),K(M.bind(null,t),p.data.scope,c);break}case"file:write":{const{path:d,data:m,opts:g}=p.data;if(typeof m=="string"&&d.endsWith(".py")){console.debug(`Auto install the requirements in ${d}`);const k=await h.loadPackagesFromImports(m);k.length>0&&n(k),console.debug("Modules are auto-loaded.",k)}const y=w(t,d);console.debug(`Write a file "${y}"`),N(h,y,m,g);const C={type:"reply:success",data:null};c.postMessage(C);break}case"file:rename":{const{oldPath:d,newPath:m}=p.data,g=w(t,d),y=w(t,m);console.debug(`Rename "${g}" to ${y}`),Y(h,g,y);const C={type:"reply:success",data:null};c.postMessage(C);break}case"file:unlink":{const{path:d}=p.data,m=w(t,d);console.debug(`Remove "${m}`),h.FS.unlink(m);const g={type:"reply:success",data:null};c.postMessage(g);break}case"install":{const{requirements:d}=p.data;console.debug("Install the requirements:",d),z(d),await E(h,u,d).then(()=>{if(d.includes("matplotlib"))return h.runPythonAsync(`
|
| 385 |
+
try:
|
| 386 |
+
import matplotlib
|
| 387 |
+
matplotlib.use("agg")
|
| 388 |
+
except ImportError:
|
| 389 |
+
pass
|
| 390 |
+
`)}).then(()=>{console.debug("Successfully installed");const m={type:"reply:success",data:null};c.postMessage(m)});break}case"code-completion":{const d=p.data,m={type:"reply:success",data:await f.getCodeCompletions(d)};c.postMessage(m);break}}}catch(h){if(console.error(h),!(h instanceof Error))throw h;const u=new Error(h.message);u.name=h.name,u.stack=h.stack;const f={type:"reply:error",error:u};c.postMessage(f)}}}})();
|
| 391 |
+
//# sourceMappingURL=webworker-BsZ7XNFH.js.map
|
har_extract/PINNED_HF_HUB/dist/lite.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
.gradio-container-5-45-0,.gradio-container-5-45-0 *,.gradio-container-5-45-0 :before,.gradio-container-5-45-0 :after{box-sizing:border-box;border-width:0;border-style:solid}.gradio-container-5-45-0 html{-webkit-text-size-adjust:100%;line-height:1.5;font-family:var(--font-sans);-moz-tab-size:4;tab-size:2}body{margin:0;line-height:inherit}.gradio-container-5-45-0 hr{border-top-width:1px;height:0;color:inherit}.gradio-container-5-45-0 abbr:where([title]){text-decoration:underline dotted}.gradio-container-5-45-0 h1,.gradio-container-5-45-0 h2,.gradio-container-5-45-0 h3,.gradio-container-5-45-0 h4,.gradio-container-5-45-0 h5,.gradio-container-5-45-0 h6{font-weight:inherit;font-size:inherit}.gradio-container-5-45-0 a{color:inherit;text-decoration:inherit}.gradio-container-5-45-0 b,.gradio-container-5-45-0 strong{font-weight:bolder}.gradio-container-5-45-0 code,.gradio-container-5-45-0 kbd,.gradio-container-5-45-0 samp,.gradio-container-5-45-0 pre{font-family:-var(--font-mono)}.gradio-container-5-45-0 small{font-size:80%}.gradio-container-5-45-0 sub,.gradio-container-5-45-0 sup{position:relative;vertical-align:baseline;font-size:75%;line-height:0}.gradio-container-5-45-0 sub{bottom:-.25em}.gradio-container-5-45-0 sup{top:-.5em}.gradio-container-5-45-0 table{border-color:inherit;text-indent:0}.gradio-container-5-45-0 button,.gradio-container-5-45-0 input,.gradio-container-5-45-0 optgroup,.gradio-container-5-45-0 select,.gradio-container-5-45-0 textarea{margin:0;padding:0;color:inherit;font-weight:inherit;font-size:100%;line-height:inherit;font-family:inherit}.gradio-container-5-45-0 button,.gradio-container-5-45-0 select{text-transform:none}.gradio-container-5-45-0 button,.gradio-container-5-45-0 [type=button],.gradio-container-5-45-0 [type=reset],.gradio-container-5-45-0 [type=submit]{-webkit-appearance:button;background-image:none;background-color:transparent}.gradio-container-5-45-0 :-moz-focusring{outline:auto}.gradio-container-5-45-0 :-moz-ui-invalid{box-shadow:none}.gradio-container-5-45-0 progress{vertical-align:baseline}.gradio-container-5-45-0 ::-webkit-inner-spin-button,.gradio-container-5-45-0 ::-webkit-outer-spin-button{height:auto}.gradio-container-5-45-0 [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.gradio-container-5-45-0 ::-webkit-search-decoration{-webkit-appearance:none}.gradio-container-5-45-0 ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.gradio-container-5-45-0 summary{display:list-item}.gradio-container-5-45-0 blockquote,.gradio-container-5-45-0 dl,.gradio-container-5-45-0 dd,.gradio-container-5-45-0 h1,.gradio-container-5-45-0 h2,.gradio-container-5-45-0 h3,.gradio-container-5-45-0 h4,.gradio-container-5-45-0 h5,.gradio-container-5-45-0 h6,.gradio-container-5-45-0 hr,.gradio-container-5-45-0 figure,.gradio-container-5-45-0 p,.gradio-container-5-45-0 pre{margin:0}.gradio-container-5-45-0 fieldset{margin:0;padding:0}.gradio-container-5-45-0 legend{padding:0}.gradio-container-5-45-0 ol,.gradio-container-5-45-0 ul,.gradio-container-5-45-0 menu{margin:0;padding:0}.gradio-container-5-45-0 textarea{resize:vertical}.gradio-container-5-45-0 input::placeholder,.gradio-container-5-45-0 textarea::placeholder{opacity:1;color:--color-var(--color-grey-400)}.gradio-container-5-45-0 button,.gradio-container-5-45-0 [role=button]{cursor:pointer}.gradio-container-5-45-0 :disabled{cursor:default}.gradio-container-5-45-0 img,.gradio-container-5-45-0 svg,.gradio-container-5-45-0 video,.gradio-container-5-45-0 canvas,.gradio-container-5-45-0 audio,.gradio-container-5-45-0 iframe,.gradio-container-5-45-0 embed,.gradio-container-5-45-0 object{display:block;vertical-align:middle}.gradio-container-5-45-0 img,.gradio-container-5-45-0 video{max-width:100%;height:auto;margin:0}.gradio-container-5-45-0 [hidden]{display:none}.gradio-container-5-45-0 [type=text],.gradio-container-5-45-0 [type=email],.gradio-container-5-45-0 [type=url],.gradio-container-5-45-0 [type=password],.gradio-container-5-45-0 [type=number],.gradio-container-5-45-0 [type=date],.gradio-container-5-45-0 [type=datetime-local],.gradio-container-5-45-0 [type=month],.gradio-container-5-45-0 [type=search],.gradio-container-5-45-0 [type=tel],.gradio-container-5-45-0 [type=time],.gradio-container-5-45-0 [type=week],.gradio-container-5-45-0 [multiple],.gradio-container-5-45-0 textarea,.gradio-container-5-45-0 select{--tw-shadow: 0 0 #0000;appearance:none;border-width:1px;border-color:#6b7280;border-radius:0;background-color:#fff;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem}.gradio-container-5-45-0 [type=checkbox],.gradio-container-5-45-0 [type=radio]{color-adjust:exact;display:inline-block;flex-shrink:0;vertical-align:middle;appearance:none;border-width:1px;background-origin:border-box;padding:0;width:1rem;height:1rem;color:#2563eb;user-select:none}.gradio-container-5-45-0 [type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}.gradio-container-5-45-0 [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}.gradio-container-5-45-0 select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-size:1.5em 1.5em;background-repeat:no-repeat;padding-right:2.5rem}.gradio-container-5-45-0 [type=checkbox]:checked,.gradio-container-5-45-0 [type=radio]:checked{background-position:center;background-size:100% 100%;background-repeat:no-repeat}.gradio-container-5-45-0 [type=checkbox]:checked:hover,.gradio-container-5-45-0 [type=checkbox]:checked:focus,.gradio-container-5-45-0 [type=radio]:checked:hover,.gradio-container-5-45-0 [type=radio]:checked:focus{border-color:transparent}.gradio-container-5-45-0 [type=checkbox]:focus-visible,.gradio-container-5-45-0 [type=radio]:focus-visible{outline:none}gradio-lite{display:flex}gradio-lite:not(:defined){display:none}.gradio-container-5-45-0 .scroll-hide{-ms-overflow-style:none;scrollbar-width:none}.gradio-container-5-45-0 .sr-only{clip:rect(0,0,0,0);position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap}.gradio-container-5-45-0 .scroll-hide::-webkit-scrollbar{display:none}.gradio-container-5-45-0{-webkit-text-size-adjust:100%;line-height:1.5;font-family:var(--font);-moz-tab-size:4;tab-size:4}.gradio-container-5-45-0 .cropper-container{position:relative;-ms-touch-action:none;touch-action:none;font-size:0;line-height:0;direction:ltr;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gradio-container-5-45-0 .cropper-container img{display:block;image-orientation:0deg;width:100%;min-width:0!important;max-width:none!important;height:100%;min-height:0!important;max-height:none!important}.gradio-container-5-45-0 .cropper-wrap-box,.gradio-container-5-45-0 .cropper-canvas,.gradio-container-5-45-0 .cropper-drag-box,.gradio-container-5-45-0 .cropper-crop-box,.gradio-container-5-45-0 .cropper-modal{position:absolute;inset:0}.gradio-container-5-45-0 .cropper-wrap-box,.gradio-container-5-45-0 .cropper-canvas{overflow:hidden}.gradio-container-5-45-0 .cropper-drag-box{opacity:0;background-color:#fff}.gradio-container-5-45-0 .cropper-modal{opacity:.5;background-color:#000}.gradio-container-5-45-0 .cropper-view-box{display:block;outline:1px solid #39f;outline-color:#3399ffbf;width:100%;height:100%;overflow:hidden}.gradio-container-5-45-0 .cropper-dashed{display:block;position:absolute;opacity:.5;border:0 dashed #eee}.gradio-container-5-45-0 .cropper-dashed.dashed-h{top:calc(100% / 3);left:0;border-top-width:1px;border-bottom-width:1px;width:100%;height:calc(100% / 3)}.gradio-container-5-45-0 .cropper-dashed.dashed-v{top:0;left:calc(100% / 3);border-right-width:1px;border-left-width:1px;width:calc(100% / 3);height:100%}.gradio-container-5-45-0 .cropper-center{display:block;position:absolute;top:50%;left:50%;opacity:.75;width:0;height:0}.gradio-container-5-45-0 .cropper-center:before,.gradio-container-5-45-0 .cropper-center:after{display:block;position:absolute;background-color:#eee;content:" "}.gradio-container-5-45-0 .cropper-center:before{top:0;left:-3px;width:7px;height:1px}.gradio-container-5-45-0 .cropper-center:after{top:-3px;left:0;width:1px;height:7px}.gradio-container-5-45-0 .cropper-face,.gradio-container-5-45-0 .cropper-line,.gradio-container-5-45-0 .cropper-point{display:block;position:absolute;opacity:.1;width:100%;height:100%}.gradio-container-5-45-0 .cropper-face{top:0;left:0;background-color:#fff}.gradio-container-5-45-0 .cropper-line{background-color:#39f}.gradio-container-5-45-0 .cropper-line.line-e{top:0;right:-3px;cursor:ew-resize;width:5px}.gradio-container-5-45-0 .cropper-line.line-n{top:-3px;left:0;cursor:ns-resize;height:5px}.gradio-container-5-45-0 .cropper-line.line-w{top:0;left:-3px;cursor:ew-resize;width:5px}.gradio-container-5-45-0 .cropper-line.line-s{bottom:-3px;left:0;cursor:ns-resize;height:5px}.gradio-container-5-45-0 .cropper-point{opacity:.75;background-color:#39f;width:5px;height:5px}.gradio-container-5-45-0 .cropper-point.point-e{top:50%;right:-3px;cursor:ew-resize;margin-top:-3px}.gradio-container-5-45-0 .cropper-point.point-n{top:-3px;left:50%;cursor:ns-resize;margin-left:-3px}.gradio-container-5-45-0 .cropper-point.point-w{top:50%;left:-3px;cursor:ew-resize;margin-top:-3px}.gradio-container-5-45-0 .cropper-point.point-s{bottom:-3px;left:50%;cursor:s-resize;margin-left:-3px}.gradio-container-5-45-0 .cropper-point.point-ne{top:-3px;right:-3px;cursor:nesw-resize}.gradio-container-5-45-0 .cropper-point.point-nw{top:-3px;left:-3px;cursor:nwse-resize}.gradio-container-5-45-0 .cropper-point.point-sw{bottom:-3px;left:-3px;cursor:nesw-resize}.gradio-container-5-45-0 .cropper-point.point-se{right:-3px;bottom:-3px;opacity:1;cursor:nwse-resize;width:20px;height:20px}@media (min-width: 768px){.gradio-container-5-45-0 .cropper-point.point-se{width:15px;height:15px}}@media (min-width: 992px){.gradio-container-5-45-0 .cropper-point.point-se{width:10px;height:10px}}@media (min-width: 1200px){.gradio-container-5-45-0 .cropper-point.point-se{opacity:.75;width:5px;height:5px}}.gradio-container-5-45-0 .cropper-point.point-se:before{display:block;position:absolute;right:-50%;bottom:-50%;opacity:0;background-color:#39f;width:200%;height:200%;content:" "}.gradio-container-5-45-0 .cropper-invisible{opacity:0}.gradio-container-5-45-0 .cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.gradio-container-5-45-0 .cropper-hide{display:block;position:absolute;width:0;height:0}.gradio-container-5-45-0 .cropper-hidden{display:none!important}.gradio-container-5-45-0 .cropper-move{cursor:move}.gradio-container-5-45-0 .cropper-crop{cursor:crosshair}.gradio-container-5-45-0 .cropper-disabled .cropper-drag-box,.gradio-container-5-45-0 .cropper-disabled .cropper-face,.gradio-container-5-45-0 .cropper-disabled .cropper-line,.gradio-container-5-45-0 .cropper-disabled .cropper-point{cursor:not-allowed}:root{--scale-0: 1rem;--scale-1: 1.125rem;--scale-2: 1.25rem;--scale-3: 1.5rem;--scale-4: 1.875rem;--scale-5: 2.25rem;--scale-6: 3rem;--scale-7: 3.75rem;--scale-8: 4.5rem;--scale-9: 6rem;--scale-10: 8rem;--scale-000: .75rem;--scale-00: .875rem;--scale-fluid-0: clamp(.875rem, .8rem + .25vw, 1rem);--scale-fluid-1: clamp(1rem, .925rem + .25vw, 1.125rem);--scale-fluid-2: clamp(1.125rem, 1.05rem + .25vw, 1.25rem);--scale-fluid-3: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);--scale-fluid-4: clamp(1.5rem, 1.275rem + .75vw, 1.875rem);--scale-fluid-5: clamp(1.875rem, 1.65rem + .75vw, 2.25rem);--scale-fluid-6: clamp(2.25rem, 1.8rem + 1.5vw, 3rem);--scale-fluid-7: clamp(3rem, 2.55rem + 1.5vw, 3.75rem);--scale-fluid-8: clamp(3.75rem, 3.3rem + 1.5vw, 4.5rem);--scale-fluid-9: clamp(4.5rem, 3.6rem + 3vw, 6rem);--scale-fluid-10: clamp(6rem, 4.8rem + 4vw, 8rem);--scale-fluid-000: clamp(.625rem, .55rem + .25vw, .75rem);--scale-fluid-00: clamp(.75rem, .675rem + .25vw, .875rem);--font-sans: IBM Plex Sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-serif: Georgia, Cambria, "Times New Roman", Times, serif;--font-mono: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--weight-light: 300;--weight-regular: 400;--weight-medium: 500;--weight-semibold: 600;--weight-bold: 700;--weight-extrabold: 800;--weight-black: 900;--line-none: 1;--line-xs: 1.125;--line-sm: 1.4;--line-md: 1.5;--line-lg: 1.625;--line-xl: 2;--letter-xs: -.05em;--letter-sm: -.025em;--letter-none: 0em;--letter-lg: .025em;--letter-xl: .05em;--prose-xs: 45ch;--prose-sm: 55ch;--prose-md: 65ch;--prose-lg: 75ch;--prose-xl: 85ch;--size-1: 4px;--size-2: 8px;--size-3: 12px;--size-4: 16px;--size-5: 20px;--size-6: 24px;--size-7: 28px;--size-8: 32px;--size-9: 36px;--size-10: 40px;--size-11: 44px;--size-12: 48px;--size-14: 56px;--size-16: 64px;--size-20: 80px;--size-24: 96px;--size-28: 112px;--size-32: 128px;--size-36: 144px;--size-40: 160px;--size-44: 176px;--size-48: 192px;--size-52: 208px;--size-56: 224px;--size-60: 240px;--size-64: 256px;--size-72: 288px;--size-80: 320px;--size-96: 384px;--size-px: 1px;--size-full: 100%;--size-screen: 100vw;--size-min: min-content;--size-max: max-content;--size-0-5: 2px;--size-1-5: 6px;--size-2-5: 10px;--size-screen-h: 100vh;--width-xs: 480px;--width-sm: 640px;--width-md: 768px;--width-lg: 1024px;--width-xl: 1280px;--ratio-square: 1/1;--ratio-portrait: 3/4;--ratio-landscape: 4/3;--ratio-tall: 2/3;--ratio-wide: 3/2;--ratio-widescreen: 16/9;--ratio-golden: 1.618/1;--radius-100: 100%;--radius-xs: 2px;--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px;--radius-xl: 12px;--radius-full: 9999px;--radius-2xl: 16px;--radius-3xl: 22px;--blur-xs: blur(4px);--blur-sm: blur(8px);--blur-md: blur(16px);--blur-lg: blur(24px);--blur-xl: blur(40px);--layer-1: 10;--layer-2: 20;--layer-3: 30;--layer-4: 40;--layer-5: 50;--layer-below: -1;--layer-top: 2147483647;--shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);--shadow-sm: 0 4px 6px -2px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .06);--shadow-md: 0 12px 16px -4px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--shadow-lg: 0 20px 24px -4px rgba(0, 0, 0, .1), 0 8px 8px -4px rgba(0, 0, 0, .04);--shadow-xl: 0 24px 48px -12px rgba(0, 0, 0, .25);--ease-in-sine: cubic-bezier(.47, 0, .745, .715);--ease-out-sine: cubic-bezier(.39, .575, .565, 1);--ease-in-out-sine: cubic-bezier(.445, .05, .55, .95);--ease-in-quad: cubic-bezier(.55, .085, .68, .53);--ease-out-quad: cubic-bezier(.25, .46, .45, .94);--ease-in-out-quad: cubic-bezier(.455, .03, .515, .955);--ease-in-cubic: cubic-bezier(.55, .055, .675, .19);--ease-out-cubic: cubic-bezier(.215, .61, .355, 1);--ease-in-out-cubic: cubic-bezier(.645, .045, .355, 1);--ease-in-quart: cubic-bezier(.895, .03, .685, .22);--ease-out-quart: cubic-bezier(.165, .84, .44, 1);--ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);--ease-in-quint: cubic-bezier(.755, .05, .855, .06);--ease-out-quint: cubic-bezier(.23, 1, .32, 1);--ease-in-out-quint: cubic-bezier(.86, 0, .07, 1);--ease-in-expo: cubic-bezier(.95, .05, .795, .035);--ease-out-expo: cubic-bezier(.19, 1, .22, 1);--ease-in-out-expo: cubic-bezier(1, 0, 0, 1);--ease-in-circ: cubic-bezier(.6, .04, .98, .335);--ease-out-circ: cubic-bezier(.075, .82, .165, 1);--ease-in-out-circ: cubic-bezier(.785, .135, .15, .86);--ease-in-back: cubic-bezier(.6, -.28, .735, .045);--ease-out-back: cubic-bezier(.175, .885, .32, 1.275);--ease-in-out-back: cubic-bezier(.68, -.55, .265, 1.55);--easing-standard: cubic-bezier(.4, 0, .2, 1);--easing-accelerate: cubic-bezier(.4, 0, 1, 1);--easing-decelerate: cubic-bezier(0, 0, .2, 1);--elevation-1: 0 1px 2px 0 rgba(0, 0, 0, .05);--elevation-2: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06);--elevation-3: 0 4px 6px -2px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .06);--elevation-4: 0 12px 16px -4px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);--elevation-5: 0 20px 24px -4px rgba(0, 0, 0, .1), 0 8px 8px -4px rgba(0, 0, 0, .04);--elevation-6: 0 24px 48px -12px rgba(0, 0, 0, .25);--elevation-7: 0 32px 64px -12px rgba(0, 0, 0, .2);--color-grey-50: #f9fafb;--color-grey-100: #f3f4f6;--color-grey-200: #e5e7eb;--color-grey-300: #d1d5db;--color-grey-400: #9ca3af;--color-grey-500: #6b7280;--color-grey-600: #4b5563;--color-grey-700: #374151;--color-grey-800: #1f2937;--color-grey-900: #111827;--color-black: #14141b;--color-grey: #6b7280;--color-red-300: #fca5a5;--color-red-500: #ef4444;--color-red-700: #b91c1c;--color-red: #ef4444;--color-green-300: #86efac;--color-green-500: #22c55e;--color-green-700: #15803d;--color-green: #22c55e;--color-blue-300: #93c5fd;--color-blue-500: #0ea5e9;--color-blue-700: #1d4ed8;--color-blue: #0ea5e9;--color-pink-300: #fbb6ce;--color-pink-500: #ed64a6;--color-pink-700: #d53f8c;--color-pink: var(--color-pink-500);--color-purple-300: #b794f4;--color-purple-500: #805ad5;--color-purple-700: #6b46c1;--color-purple: var(--color-purple-500);--color-teal-300: #81e6d9;--color-teal-500: #38b2ac;--color-teal-700: #2c7a7b;--color-teal: var(--color-teal-500);--color-yellow-300: #fde047;--color-yellow-500: #eab308;--color-yellow-700: #a16207;--color-yellow: #eab308;--color-orange-300: #ffb066;--color-orange-500: #ff7c00;--color-orange-700: #ce6400;--color-orange: #f97316;--color-brown-300: #a1887f;--color-brown-500: #795548;--color-brown-700: #5d4037;--color-brown: var(--color-brown-500);--color-blue-10: #fafcff;--color-blue-50: #eff6ff;--color-blue-100: #dbeafe;--color-blue-200: #bfdbfe;--color-blue-400: #60a5fa;--color-blue-600: #2563eb;--color-blue-800: #1e40af;--color-blue-900: #1e3a8a;--color-blue-950: #1c366b;--color-grey-10: #fdfdfe;--color-grey-950: #0b0f19;--color-red-10: #fffbfb;--color-red-50: #fef2f2;--color-red-100: #fee2e2;--color-red-200: #fecaca;--color-red-400: #f87171;--color-red-600: #dc2626;--color-red-800: #991b1b;--color-red-900: #7f1d1d;--color-red-950: #63171a;--color-green-10: #f9fefc;--color-green-50: #ecfdf5;--color-green-100: #d1fae5;--color-green-200: #bbf7d0;--color-green-400: #4ade80;--color-green-600: #16a34a;--color-green-800: #166534;--color-green-900: #14532d;--color-green-950: #134227;--color-orange-10: #fffbf6;--color-orange-50: #fff2e5;--color-orange-100: #ffe5cc;--color-orange-200: #ffd8b4;--color-orange-400: #ff9633;--color-orange-600: #ee7400;--color-orange-800: #a45000;--color-orange-900: #5c2d00;--color-orange-950: #3c1f00;--color-yellow-10: #fffef8;--color-yellow-50: #fffbeb;--color-yellow-100: #fff9c2;--color-yellow-200: #fef08a;--color-yellow-400: #facc15;--color-yellow-600: #ca8a04;--color-yellow-800: #854d0e;--color-yellow-900: #713f12;--color-yellow-950: #633112;--grid-2: repeat(2, minmax(0, 1fr));--grid-3: repeat(3, minmax(0, 1fr));--grid-4: repeat(4, minmax(0, 1fr));--grid-5: repeat(5, minmax(0, 1fr));--grid-6: repeat(6, minmax(0, 1fr));--grid-7: repeat(7, minmax(0, 1fr));--grid-8: repeat(8, minmax(0, 1fr));--grid-9: repeat(9, minmax(0, 1fr));--grid-10: repeat(10, minmax(0, 1fr));--grid-11: repeat(11, minmax(0, 1fr));--grid-12: repeat(12, minmax(0, 1fr));--grid-page-width: var(--width-xl);--grid-page-gutter: 5vw;--grid-page-main: 2 / 3;--grid-page: minmax(var(--grid-page-gutter), 1fr) minmax(0, var(--grid-page-width)) minmax(var(--grid-page-gutter), 1fr)}.gradio-container-5-45-0 .prose{font-weight:var(--prose-text-weight);font-size:var(--text-md)}.gradio-container-5-45-0 .prose *{color:var(--body-text-color)}.gradio-container-5-45-0 .prose p{margin-bottom:var(--spacing-sm);line-height:var(--line-lg)}.gradio-container-5-45-0 .prose h1,.gradio-container-5-45-0 .prose h2,.gradio-container-5-45-0 .prose h3,.gradio-container-5-45-0 .prose h4,.gradio-container-5-45-0 .prose h5{margin:var(--spacing-xxl) 0 var(--spacing-lg);font-weight:var(--prose-header-text-weight);line-height:1.3;color:var(--body-text-color)}.gradio-container-5-45-0 .prose>*:first-child{margin-top:0}.gradio-container-5-45-0 .prose h1{font-size:var(--text-xxl)}.gradio-container-5-45-0 .prose h2{font-size:var(--text-xl)}.gradio-container-5-45-0 .prose h3{font-size:var(--text-lg)}.gradio-container-5-45-0 .prose h4{font-size:1.1em}.gradio-container-5-45-0 .prose h5{font-size:1.05em}.gradio-container-5-45-0 .prose ul{list-style:circle inside}.gradio-container-5-45-0 .prose ol{list-style:decimal inside}.gradio-container-5-45-0 .prose ul>p,.gradio-container-5-45-0 .prose li>p{display:inline}.gradio-container-5-45-0 .prose ol,.gradio-container-5-45-0 .prose ul{margin-top:0;padding-left:0}.gradio-container-5-45-0 .prose ul ul,.gradio-container-5-45-0 .prose ul ol,.gradio-container-5-45-0 .prose ol ol,.gradio-container-5-45-0 .prose ol ul{margin:.5em 0;font-size:90%;padding-inline-start:2em}.gradio-container-5-45-0 .prose li{margin-bottom:.5em}.gradio-container-5-45-0 .prose th,.gradio-container-5-45-0 .prose td{border-bottom:1px solid #e1e1e1;padding:var(--text-xs) var(--text-md);text-align:left}.gradio-container-5-45-0 .prose button,.gradio-container-5-45-0 .prose .button,.gradio-container-5-45-0 .prose input,.gradio-container-5-45-0 .prose textarea,.gradio-container-5-45-0 .prose select,.gradio-container-5-45-0 .prose fieldset{margin-bottom:var(--spacing-sm)}.gradio-container-5-45-0 .prose pre,.gradio-container-5-45-0 .prose blockquote,.gradio-container-5-45-0 .prose dl,.gradio-container-5-45-0 .prose figure,.gradio-container-5-45-0 .prose table,.gradio-container-5-45-0 .prose p,.gradio-container-5-45-0 .prose ul,.gradio-container-5-45-0 .prose ol,.gradio-container-5-45-0 .prose form{margin-bottom:var(--spacing-md)}.gradio-container-5-45-0 .prose table,.gradio-container-5-45-0 .prose tr,.gradio-container-5-45-0 .prose td,.gradio-container-5-45-0 .prose th{border:1px solid var(--body-text-color)}.gradio-container-5-45-0 .prose table{border-collapse:collapse;margin-bottom:var(--spacing-xxl)}.gradio-container-5-45-0 .prose a{color:var(--link-text-color);text-decoration:underline}.gradio-container-5-45-0 .prose a:visited{color:var(--link-text-color-visited)}.gradio-container-5-45-0 .prose a:hover{color:var(--link-text-color-hover)}.gradio-container-5-45-0 .prose a:active{color:var(--link-text-color-active)}.gradio-container-5-45-0 .prose hr{margin-top:3em;margin-bottom:3.5em;border-width:0;border-top:1px solid #e1e1e1}.gradio-container-5-45-0 .prose blockquote{margin:var(--size-6) 0!important;border-left:5px solid var(--border-color-primary);padding-left:var(--size-2)}.gradio-container-5-45-0 .prose :last-child{margin-bottom:0!important}.nav-holder.svelte-9kqdow.svelte-9kqdow{padding:var(--size-2) 0;border-bottom:solid 1px var(--border-color-primary)}nav.svelte-9kqdow.svelte-9kqdow{display:flex;flex-wrap:wrap;gap:var(--size-2);justify-content:flex-end;margin:0 auto;padding:0 var(--size-8)}nav.svelte-9kqdow a.svelte-9kqdow,button.svelte-9kqdow.svelte-9kqdow{padding:var(--size-1) var(--size-2);border-radius:var(--block-radius);border-width:var(--block-border-width);border-color:transparent;color:var(--body-text-color-subdued)}nav.svelte-9kqdow a.active.svelte-9kqdow,button.active.svelte-9kqdow.svelte-9kqdow{color:var(--body-text-color);border-color:var(--block-border-color);background-color:var(--block-background-fill)}.gradio-container-5-45-0{display:flex;position:relative;flex-direction:column;padding:0;min-height:1px;overflow:hidden;color:var(--button-secondary-text-color)}.embed-container.svelte-9kqdow.svelte-9kqdow{margin:var(--size-4) 0px;border:1px solid var(--button-secondary-border-color);border-radius:var(--embed-radius)}.with-info.svelte-9kqdow.svelte-9kqdow{padding-bottom:var(--size-7)}.embed-container.svelte-9kqdow>main.svelte-9kqdow{padding:var(--size-4)}main.svelte-9kqdow.svelte-9kqdow{display:flex;flex-grow:1;flex-direction:column}.app.svelte-9kqdow.svelte-9kqdow{position:relative;margin:auto;padding:var(--size-4) var(--size-8);width:100%;height:100%}@media (min-width: 640px){.fillable.svelte-9kqdow.svelte-9kqdow:not(.fill_width){max-width:640px}}@media (min-width: 768px){.fillable.svelte-9kqdow.svelte-9kqdow:not(.fill_width){max-width:768px}}@media (min-width: 1024px){.fillable.svelte-9kqdow.svelte-9kqdow:not(.fill_width){max-width:1024px}}@media (min-width: 1280px){.fillable.svelte-9kqdow.svelte-9kqdow:not(.fill_width){max-width:1280px}}@media (min-width: 1536px){.fillable.svelte-9kqdow.svelte-9kqdow:not(.fill_width){max-width:1536px}}@media (min-width: 1920px){.fillable.svelte-9kqdow.svelte-9kqdow:not(.fill_width){max-width:1920px}}.info.svelte-9kqdow.svelte-9kqdow{display:flex;position:absolute;bottom:0;justify-content:flex-start;border-top:1px solid var(--button-secondary-border-color);padding:var(--size-1) var(--size-5);width:100%;color:var(--body-text-color-subdued);font-size:var(--text-md);white-space:nowrap}.info.svelte-9kqdow>span.svelte-9kqdow{word-wrap:break-word;-break:keep-all;display:block;word-break:keep-all}.info.svelte-9kqdow>span.svelte-9kqdow:nth-child(1){margin-right:4px;min-width:0px;max-width:max-content;overflow:hidden;color:var(--body-text-color);text-overflow:ellipsis;white-space:nowrap}.info.svelte-9kqdow>span.svelte-9kqdow:nth-child(2){margin-right:3px}.info.svelte-9kqdow>span.svelte-9kqdow:nth-child(2),.info.svelte-9kqdow>span.svelte-9kqdow:nth-child(3){width:max-content}.info.svelte-9kqdow>span.svelte-9kqdow:nth-child(3){align-self:flex-end;justify-self:flex-end;margin-left:auto;text-align:right}.info.svelte-9kqdow>span.svelte-9kqdow:nth-child(1){flex-shrink:9}.hidden-title.svelte-9kqdow.svelte-9kqdow{position:absolute;left:var(--size-5);opacity:0;background:var(--button-secondary-background-fill);padding-right:4px}.info.svelte-9kqdow a.svelte-9kqdow{color:var(--body-text-color)}.title.svelte-9kqdow.svelte-9kqdow{font-size:var(--text-sm);font-family:var(--font-mono)}.hf.svelte-9kqdow.svelte-9kqdow{margin-left:5px}.space-logo.svelte-9kqdow img.svelte-9kqdow{display:inline-block;margin-bottom:4px;height:12px}main.svelte-9kqdow a.svelte-9kqdow:hover{text-decoration:underline}svg.svelte-zyxd38.svelte-zyxd38{width:var(--size-20);height:var(--size-20)}svg.svelte-zyxd38 path.svelte-zyxd38{fill:var(--loader-color)}div.svelte-zyxd38.svelte-zyxd38{z-index:var(--layer-2)}.margin.svelte-zyxd38.svelte-zyxd38{margin:var(--size-4)}.block.svelte-1svsvh2{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.fullscreen.svelte-1svsvh2{border-radius:0}.auto-margin.svelte-1svsvh2{margin-left:auto;margin-right:auto}.block.border_focus.svelte-1svsvh2{border-color:var(--color-accent)}.block.border_contrast.svelte-1svsvh2{border-color:var(--body-text-color)}.padded.svelte-1svsvh2{padding:var(--block-padding)}.hidden.svelte-1svsvh2{display:none}.flex.svelte-1svsvh2{display:flex;flex-direction:column}.hide-container.svelte-1svsvh2:not(.fullscreen){margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}.resize-handle.svelte-1svsvh2{position:absolute;bottom:0;right:0;width:10px;height:10px;fill:var(--block-border-color);cursor:nwse-resize}.fullscreen.svelte-1svsvh2{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1000;overflow:auto}.animating.svelte-1svsvh2{animation:svelte-1svsvh2-pop-out .1s ease-out forwards}@keyframes svelte-1svsvh2-pop-out{0%{position:fixed;top:var(--start-top);left:var(--start-left);width:var(--start-width);height:var(--start-height);z-index:100}to{position:fixed;top:0vh;left:0vw;width:100vw;height:100vh;z-index:1000}}.placeholder.svelte-1svsvh2{border-radius:var(--block-radius);border-width:var(--block-border-width);border-color:var(--block-border-color);border-style:dashed}.gradio-container-5-45-0 Tables */ table,.gradio-container-5-45-0 tr,.gradio-container-5-45-0 td,.gradio-container-5-45-0 th{margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);padding:var(--spacing-xl)}.gradio-container-5-45-0 .md code,.gradio-container-5-45-0 .md pre{background:none;font-family:var(--font-mono);font-size:var(--text-sm);text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;tab-size:2;hyphens:none}.gradio-container-5-45-0 .md pre[class*=language-]::selection,.gradio-container-5-45-0 .md pre[class*=language-] ::selection,.gradio-container-5-45-0 .md code[class*=language-]::selection,.gradio-container-5-45-0 .md code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}.gradio-container-5-45-0 .md pre{padding:1em;margin:.5em 0;overflow:auto;position:relative;margin-top:var(--spacing-sm);margin-bottom:var(--spacing-sm);box-shadow:none;border:none;border-radius:var(--radius-md);background:var(--code-background-fill);padding:var(--spacing-xxl);font-family:var(--font-mono);text-shadow:none;border-radius:var(--radius-sm);white-space:nowrap;display:block;white-space:pre}.gradio-container-5-45-0 .md :not(pre)>code{padding:.1em;border-radius:var(--radius-xs);white-space:normal;background:var(--code-background-fill);border:1px solid var(--panel-border-color);padding:var(--spacing-xxs) var(--spacing-xs)}.gradio-container-5-45-0 .md .token.comment,.gradio-container-5-45-0 .md .token.prolog,.gradio-container-5-45-0 .md .token.doctype,.gradio-container-5-45-0 .md .token.cdata{color:#708090}.gradio-container-5-45-0 .md .token.punctuation{color:#999}.gradio-container-5-45-0 .md .token.namespace{opacity:.7}.gradio-container-5-45-0 .md .token.property,.gradio-container-5-45-0 .md .token.tag,.gradio-container-5-45-0 .md .token.boolean,.gradio-container-5-45-0 .md .token.number,.gradio-container-5-45-0 .md .token.constant,.gradio-container-5-45-0 .md .token.symbol,.gradio-container-5-45-0 .md .token.deleted{color:#905}.gradio-container-5-45-0 .md .token.selector,.gradio-container-5-45-0 .md .token.attr-name,.gradio-container-5-45-0 .md .token.string,.gradio-container-5-45-0 .md .token.char,.gradio-container-5-45-0 .md .token.builtin,.gradio-container-5-45-0 .md .token.inserted{color:#690}.gradio-container-5-45-0 .md .token.atrule,.gradio-container-5-45-0 .md .token.attr-value,.gradio-container-5-45-0 .md .token.keyword{color:#07a}.gradio-container-5-45-0 .md .token.function,.gradio-container-5-45-0 .md .token.class-name{color:#dd4a68}.gradio-container-5-45-0 .md .token.regex,.gradio-container-5-45-0 .md .token.important,.gradio-container-5-45-0 .md .token.variable{color:#e90}.gradio-container-5-45-0 .md .token.important,.gradio-container-5-45-0 .md .token.bold{font-weight:700}.gradio-container-5-45-0 .md .token.italic{font-style:italic}.gradio-container-5-45-0 .md .token.entity{cursor:help}.dark .md .token.comment,.dark .md .token.prolog,.dark .md .token.cdata{color:#5c6370}.dark .md .token.doctype,.dark .md .token.punctuation,.dark .md .token.entity{color:#abb2bf}.dark .md .token.attr-name,.dark .md .token.class-name,.dark .md .token.boolean,.dark .md .token.constant,.dark .md .token.number,.dark .md .token.atrule{color:#d19a66}.dark .md .token.keyword{color:#c678dd}.dark .md .token.property,.dark .md .token.tag,.dark .md .token.symbol,.dark .md .token.deleted,.dark .md .token.important{color:#e06c75}.dark .md .token.selector,.dark .md .token.string,.dark .md .token.char,.dark .md .token.builtin,.dark .md .token.inserted,.dark .md .token.regex,.dark .md .token.attr-value,.dark .md .token.attr-value>.token.punctuation{color:#98c379}.dark .md .token.variable,.dark .md .token.operator,.dark .md .token.function{color:#61afef}.dark .md .token.url{color:#56b6c2}span.svelte-7ddecg div[class*=code_wrap]{position:relative}span.svelte-7ddecg span.katex{font-size:var(--text-lg);direction:ltr}span.svelte-7ddecg div[class*=code_wrap]>button{z-index:1;cursor:pointer;border-bottom-left-radius:var(--radius-sm);padding:var(--spacing-md);width:25px;height:25px;position:absolute;right:0}span.svelte-7ddecg .check{opacity:0;z-index:var(--layer-top);transition:opacity .2s;background:var(--code-background-fill);color:var(--body-text-color);position:absolute;top:var(--size-1-5);left:var(--size-1-5)}span.svelte-7ddecg p:not(:first-child){margin-top:var(--spacing-xxl)}span.svelte-7ddecg .md-header-anchor{margin-left:-25px;padding-right:8px;line-height:1;color:var(--body-text-color-subdued);opacity:0}span.svelte-7ddecg h1:hover .md-header-anchor,span.svelte-7ddecg h2:hover .md-header-anchor,span.svelte-7ddecg h3:hover .md-header-anchor,span.svelte-7ddecg h4:hover .md-header-anchor,span.svelte-7ddecg h5:hover .md-header-anchor,span.svelte-7ddecg h6:hover .md-header-anchor{opacity:1}span.md.svelte-7ddecg .md-header-anchor>svg{color:var(--body-text-color-subdued)}span.svelte-7ddecg table{word-break:break-word}div.svelte-j9uq24>.md.prose{font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}div.svelte-j9uq24>.md.prose *{color:var(--block-info-text-color)}div.svelte-j9uq24{margin-bottom:var(--spacing-md)}span.has-info.svelte-g2oxp3{margin-bottom:var(--spacing-xs)}span.svelte-g2oxp3:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-g2oxp3{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}span[dir=rtl].svelte-g2oxp3{display:block}.hide.svelte-g2oxp3{margin:0;height:0}label.svelte-1to105q.svelte-1to105q{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--block-label-border-color);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-1to105q.svelte-1to105q{border-top-left-radius:0}label.float.svelte-1to105q.svelte-1to105q{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-1to105q.svelte-1to105q:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-1to105q.svelte-1to105q{height:0}span.svelte-1to105q.svelte-1to105q{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-1to105q.svelte-1to105q{box-shadow:none;border-width:0;background:transparent;overflow:visible}label[dir=rtl].svelte-1to105q.svelte-1to105q{border:var(--block-label-border-width) solid var(--block-label-border-color);border-top:none;border-right:none;border-bottom-left-radius:var(--block-radius);border-bottom-right-radius:var(--block-label-radius);border-top-left-radius:var(--block-label-radius)}label[dir=rtl].svelte-1to105q span.svelte-1to105q{margin-left:var(--size-2);margin-right:0}button.svelte-fuq25k{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-xs);color:var(--block-label-text-color);border:1px solid var(--border-color);padding:var(--spacing-xxs)}button.svelte-fuq25k:hover{background-color:var(--background-fill-secondary)}button[disabled].svelte-fuq25k{opacity:.5;box-shadow:none}button[disabled].svelte-fuq25k:hover{cursor:not-allowed}.padded.svelte-fuq25k{background:var(--bg-color)}button.svelte-fuq25k:hover,button.highlight.svelte-fuq25k{cursor:pointer;color:var(--color-accent)}.padded.svelte-fuq25k:hover{color:var(--block-label-text-color)}span.svelte-fuq25k{padding:0 1px;font-size:10px}div.svelte-fuq25k{display:flex;align-items:center;justify-content:center;transition:filter .2s ease-in-out}.x-small.svelte-fuq25k{width:10px;height:10px}.small.svelte-fuq25k{width:14px;height:14px}.medium.svelte-fuq25k{width:20px;height:20px}.large.svelte-fuq25k{width:22px;height:22px}.pending.svelte-fuq25k{animation:svelte-fuq25k-flash .5s infinite}@keyframes svelte-fuq25k-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.transparent.svelte-fuq25k{background:transparent;border:none;box-shadow:none}.empty.svelte-1oiin9d{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-1oiin9d{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-1oiin9d{min-height:calc(var(--size-32) - 20px)}.large.svelte-1oiin9d{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-1oiin9d{margin-top:0}.small_parent.svelte-1oiin9d{min-height:100%!important}.dropdown-arrow.svelte-xjn76a,.dropdown-arrow.svelte-1m886t3{fill:currentColor}.circle.svelte-1m886t3{fill:currentColor;opacity:.1}svg.svelte-184ngxt{animation:svelte-184ngxt-spin 1.5s linear infinite}@keyframes svelte-184ngxt-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}h2.svelte-12ioyct{font-size:var(--text-xl)!important}p.svelte-12ioyct,h2.svelte-12ioyct{white-space:pre-line}.wrap.svelte-12ioyct{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3);text-align:center;margin:auto var(--spacing-lg)}.or.svelte-12ioyct{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-12ioyct{width:30px;margin-bottom:var(--spacing-lg)}@media (min-width: 768px){.wrap.svelte-12ioyct{font-size:var(--text-lg)}}.hovered.svelte-12ioyct{color:var(--color-accent)}div.svelte-1ua59x3{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;align-items:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;color:var(--block-label-text-color);flex-shrink:0}.show_border.svelte-1ua59x3{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl);box-shadow:var(--shadow-drop)}.source-selection.svelte-snayfm{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-color-primary);width:100%;margin-left:auto;margin-right:auto;height:var(--size-10)}.icon.svelte-snayfm{width:22px;height:22px;margin:var(--spacing-lg) var(--spacing-xs);padding:var(--spacing-xs);color:var(--neutral-400);border-radius:var(--radius-md)}.selected.svelte-snayfm{color:var(--color-accent)}.icon.svelte-snayfm:hover,.icon.svelte-snayfm:focus{color:var(--color-accent)}.icon-button-wrapper.svelte-ud4hud{display:flex;flex-direction:row;align-items:center;justify-content:center;z-index:var(--layer-2);gap:var(--spacing-sm);box-shadow:var(--shadow-drop);border:1px solid var(--border-color-primary);background:var(--block-background-fill);padding:var(--spacing-xxs)}.icon-button-wrapper.hide-top-corner.svelte-ud4hud{border-top:none;border-right:none;border-radius:var(--block-label-right-radius)}.icon-button-wrapper.display-top-corner.svelte-ud4hud{border-radius:var(--radius-sm) 0 0 var(--radius-sm);top:var(--spacing-sm);right:-1px}.icon-button-wrapper.svelte-ud4hud:not(.top-panel){border:1px solid var(--border-color-primary);border-radius:var(--radius-sm)}.top-panel.svelte-ud4hud{position:absolute;top:var(--block-label-margin);right:var(--block-label-margin);margin:0}.icon-button-wrapper.svelte-ud4hud button{margin:var(--spacing-xxs);border-radius:var(--radius-xs);position:relative}.icon-button-wrapper.svelte-ud4hud a.download-link:not(:last-child),.icon-button-wrapper.svelte-ud4hud button:not(:last-child){margin-right:var(--spacing-xxs)}.icon-button-wrapper.svelte-ud4hud a.download-link:not(:last-child):not(.no-border *):after,.icon-button-wrapper.svelte-ud4hud button:not(:last-child):not(.no-border *):after{content:"";position:absolute;right:-4.5px;top:15%;height:70%;width:1px;background-color:var(--border-color-primary)}.icon-button-wrapper.svelte-ud4hud>*{height:100%}.wrap.svelte-btia7y.svelte-btia7y{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-3);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);overflow:hidden;pointer-events:none}.wrap.center.svelte-btia7y.svelte-btia7y{top:0;right:0;left:0}.wrap.default.svelte-btia7y.svelte-btia7y{inset:0}.hide.svelte-btia7y.svelte-btia7y{opacity:0;pointer-events:none}.generating.svelte-btia7y.svelte-btia7y{animation:svelte-btia7y-pulseStart 1s cubic-bezier(.4,0,.6,1),svelte-btia7y-pulse 2s cubic-bezier(.4,0,.6,1) 1s infinite;border:2px solid var(--color-accent);background:transparent;z-index:var(--layer-1);pointer-events:none}.translucent.svelte-btia7y.svelte-btia7y{background:none}@keyframes svelte-btia7y-pulseStart{0%{opacity:0}to{opacity:1}}@keyframes svelte-btia7y-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-btia7y.svelte-btia7y{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-btia7y.svelte-btia7y{position:absolute;inset:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-btia7y.svelte-btia7y{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-btia7y.svelte-btia7y{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-btia7y.svelte-btia7y{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-btia7y.svelte-btia7y{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-btia7y.svelte-btia7y{position:absolute;bottom:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-btia7y.svelte-btia7y{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-btia7y.svelte-btia7y{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.validation-error.svelte-btia7y.svelte-btia7y{pointer-events:auto;color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font);position:absolute;background:var(--error-background-fill);top:0;right:0;z-index:var(--layer-3);padding:var(--size-1) var(--size-2);font-size:var(--text-md);text-align:center;border-bottom-left-radius:var(--radius-sm);border-bottom:1px solid var(--error-border-color);border-left:1px solid var(--error-border-color);display:flex;justify-content:space-between;align-items:center;gap:var(--spacing-xl)}.minimal.svelte-btia7y.svelte-btia7y{pointer-events:none}.minimal.svelte-btia7y .progress-text.svelte-btia7y{background:var(--block-background-fill)}.border.svelte-btia7y.svelte-btia7y{border:1px solid var(--border-color-primary)}.clear-status.svelte-btia7y.svelte-btia7y{position:absolute;display:flex;top:var(--size-2);right:var(--size-2);justify-content:flex-end;gap:var(--spacing-sm);z-index:var(--layer-1)}.toast-body.svelte-fee5uc{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-fee5uc{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-fee5uc{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-fee5uc{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-fee5uc{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-fee5uc{border:1px solid var(--color-grey-700);background:var(--color-grey-50)}.dark .toast-body.info.svelte-fee5uc{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-body.success.svelte-fee5uc{border:1px solid var(--color-green-700);background:var(--color-green-50)}.dark .toast-body.success.svelte-fee5uc{border:1px solid var(--color-green-500);background-color:var(--color-grey-950)}.toast-title.svelte-fee5uc{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm)}.toast-title.error.svelte-fee5uc{color:var(--color-red-700)}.dark .toast-title.error.svelte-fee5uc{color:var(--color-red-50)}.toast-title.warning.svelte-fee5uc{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-fee5uc{color:var(--color-yellow-50)}.toast-title.info.svelte-fee5uc{color:var(--color-grey-700)}.dark .toast-title.info.svelte-fee5uc{color:var(--color-grey-50)}.toast-title.success.svelte-fee5uc{color:var(--color-green-700)}.dark .toast-title.success.svelte-fee5uc{color:var(--color-green-50)}.toast-close.svelte-fee5uc{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-fee5uc{color:var(--color-red-700)}.dark .toast-close.error.svelte-fee5uc{color:var(--color-red-500)}.toast-close.warning.svelte-fee5uc{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-fee5uc{color:var(--color-yellow-500)}.toast-close.info.svelte-fee5uc{color:var(--color-grey-700)}.dark .toast-close.info.svelte-fee5uc{color:var(--color-grey-500)}.toast-close.success.svelte-fee5uc{color:var(--color-green-700)}.dark .toast-close.success.svelte-fee5uc{color:var(--color-green-500)}.toast-text.svelte-fee5uc{font-size:var(--text-lg);word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}.toast-text.error.svelte-fee5uc{color:var(--color-red-700)}.dark .toast-text.error.svelte-fee5uc{color:var(--color-red-50)}.toast-text.warning.svelte-fee5uc{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-fee5uc{color:var(--color-yellow-50)}.toast-text.info.svelte-fee5uc{color:var(--color-grey-700)}.dark .toast-text.info.svelte-fee5uc{color:var(--color-grey-50)}.toast-text.success.svelte-fee5uc{color:var(--color-green-700)}.dark .toast-text.success.svelte-fee5uc{color:var(--color-green-50)}.toast-details.svelte-fee5uc{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-fee5uc{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-fee5uc{color:var(--color-red-700)}.dark .toast-icon.error.svelte-fee5uc{color:var(--color-red-500)}.toast-icon.warning.svelte-fee5uc{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-fee5uc{color:var(--color-yellow-500)}.toast-icon.info.svelte-fee5uc{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-fee5uc{color:var(--color-grey-500)}.toast-icon.success.svelte-fee5uc{color:var(--color-green-700)}.dark .toast-icon.success.svelte-fee5uc{color:var(--color-green-500)}@keyframes svelte-fee5uc-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-fee5uc{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-fee5uc-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-fee5uc{background:var(--color-red-700)}.dark .timer.error.svelte-fee5uc{background:var(--color-red-500)}.timer.warning.svelte-fee5uc{background:var(--color-yellow-700)}.dark .timer.warning.svelte-fee5uc{background:var(--color-yellow-500)}.timer.info.svelte-fee5uc{background:var(--color-grey-700)}.dark .timer.info.svelte-fee5uc{background:var(--color-grey-500)}.timer.success.svelte-fee5uc{background:var(--color-green-700)}.dark .timer.success.svelte-fee5uc{background:var(--color-green-500)}.hidden.svelte-fee5uc{display:none}.toast-text.svelte-fee5uc a{text-decoration:underline}.toast-wrap.svelte-1jktj9z{--toast-top:var(--size-4);display:flex;position:fixed;top:calc(var(--toast-top) + var(--size-4));right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (min-width: 640px){.toast-wrap.svelte-1jktj9z{width:calc(var(--size-96) + var(--size-10))}}.streaming-bar.svelte-roz8lq{position:absolute;bottom:0;left:0;right:0;height:4px;background-color:var(--primary-600);animation:svelte-roz8lq-countdown linear forwards;z-index:1}@keyframes svelte-roz8lq-countdown{0%{transform:translate(0)}to{transform:translate(-100%)}}.unstyled-link.svelte-1s8vnbx{all:unset;cursor:pointer}.error.svelte-y6l4b.svelte-y6l4b{position:relative;padding:var(--size-4);color:var(--body-text-color);text-align:center}.error.svelte-y6l4b>.svelte-y6l4b{margin-top:var(--size-4)}a.svelte-y6l4b.svelte-y6l4b{color:var(--link-text-color)}a.svelte-y6l4b.svelte-y6l4b:hover{color:var(--link-text-color-hover);text-decoration:underline}a.svelte-y6l4b.svelte-y6l4b:visited{color:var(--link-text-color-visited)}a.svelte-y6l4b.svelte-y6l4b:active{color:var(--link-text-color-active)}.wrap.svelte-scxcch{display:flex;flex-direction:column;flex-grow:1;margin:0;padding:0;height:100%}.codemirror-wrapper.svelte-scxcch{flex-grow:1;overflow:auto}.cm-editor{height:100%}.cm-selectionBackground{background-color:#b9d2ff30!important}.cm-focused{outline:none!important}pre.svelte-agpzo2{text-align:left}.gallery.svelte-agpzo2{padding:var(--size-1) var(--size-2)}.parent-container.svelte-1w96vmo.svelte-1w96vmo{width:100%;height:100%;overflow:hidden;border:1px solid rgb(229 231 235);border-radius:.375rem;box-sizing:border-box;display:flex;flex-direction:column;overflow:scroll}.dark .parent-container{border-color:#374151!important;color-scheme:dark!important}.child-container.svelte-1w96vmo.svelte-1w96vmo{flex-grow:1;display:flex;flex-direction:column}.child-container.horizontal.svelte-1w96vmo.svelte-1w96vmo{flex-direction:row}.child-container.vertical.svelte-1w96vmo.svelte-1w96vmo{flex-direction:column;height:100%;overflow:hidden}.half-container.svelte-1w96vmo.svelte-1w96vmo{position:relative;flex-grow:1}.child-container.horizontal.svelte-1w96vmo .half-container.svelte-1w96vmo{width:50%}.child-container.vertical.svelte-1w96vmo .half-container.svelte-1w96vmo{height:50%;overflow:scroll}.child-container.horizontal.svelte-1w96vmo .code-editor.code-editor-border.svelte-1w96vmo{position:absolute;inset:0}.vertical.svelte-1w96vmo .code-editor-border.svelte-1w96vmo{border-right:none}.horizontal.svelte-1w96vmo .code-editor-border.svelte-1w96vmo{border-right:1px solid rgb(229 231 235);border-bottom:none}.dark .horizontal .code-editor-border{border-right:1px solid #374151}@media (min-width: 768px){.child-container.svelte-1w96vmo.svelte-1w96vmo{flex-direction:row}.code-editor-border.svelte-1w96vmo.svelte-1w96vmo{border-right:1px solid rgb(229 231 235)}.dark .code-editor-border{border-right:1px solid #374151}}.code-editor.svelte-1w96vmo.svelte-1w96vmo{height:100%;flex:1 1 50%;display:flex;flex-direction:column;border-bottom:1px solid;border-color:#e5e7eb}.dark .code-editor{border-color:#374151!important}.loading-panel.svelte-1w96vmo.svelte-1w96vmo{display:flex;justify-content:space-between;vertical-align:middle;height:2rem;padding-left:.5rem;padding-right:.5rem;border-bottom:1px solid rgb(229 231 235)}.dark .loading-panel{background:#1f2937!important;border-color:#374151!important}.code-header.svelte-1w96vmo.svelte-1w96vmo{align-self:center;font-family:monospace;font-size:14px;font-weight:lighter;margin-right:4px;color:#535d6d}.dark .code-header{color:#fff!important}.loading-section.svelte-1w96vmo.svelte-1w96vmo{align-items:center;display:flex;margin-left:.5rem;margin-right:.5rem;color:#999b9e;font-family:sans-serif;font-size:15px;align-self:center}.dark .loading-section{color:#fff!important}.lightning-logo.svelte-1w96vmo.svelte-1w96vmo{width:1rem;height:1rem;margin:.125rem}.preview.svelte-1w96vmo.svelte-1w96vmo{min-height:100%}.buttons.svelte-1w96vmo.svelte-1w96vmo{display:flex;justify-content:space-between;align-items:middle;height:2rem}.run.svelte-1w96vmo.svelte-1w96vmo{display:flex;align-items:center;color:#999b9e;font-size:15px}.button.svelte-1w96vmo.svelte-1w96vmo{display:flex;height:80%;align-items:center;font-weight:600;padding-left:.8rem;padding-right:.8rem;border-radius:.375rem;float:right;margin:.25rem;border:1px solid #e5e7eb;background:linear-gradient(to bottom right,#f3f4f6,#e5e7eb);color:#374151;cursor:pointer;font-family:sans-serif}.dark .button{border-color:#374151!important;background:linear-gradient(to bottom right,#4b5563,#374151)!important;color:#fff!important}.shortcut.svelte-1w96vmo.svelte-1w96vmo{align-self:center;margin-top:2px;font-size:10px;font-weight:lighter;padding-left:.15rem;color:#374151}.dark .shortcut{color:#fff!important}div.code-editor div.block{border-radius:0;border:none}div.code-editor div.block .cm-gutters{background-color:#fff}.dark div.code-editor div.block .cm-gutters{background:#1f2937!important}div.code-editor div.block .cm-content{width:0}.code-editor.svelte-1w96vmo label{display:none}.code-editor.svelte-1w96vmo .codemirror-wrappper{border-radius:var(--block-radius)}.code-editor.svelte-1w96vmo>.block{border:none!important}.code-editor.svelte-1w96vmo .cm-scroller{height:100%!important}.code-editor .block{border-style:none!important;height:100%}.code-editor .container{padding:2px 0 2px 2px;height:100%}.code-editor .container a{display:block;width:65%;color:#9095a0;margin:auto}.code-editor .block button{background-color:transparent;border:none;color:#9095a0;height:100%;padding:5px 5px 5px 0}.code-editor .block .check{width:65%;color:#ff7c00;margin:auto}.loading-dot.svelte-1w96vmo.svelte-1w96vmo{position:relative;left:-9999px;width:10px;height:10px;border-radius:5px;background-color:#fd7b00;color:#fd7b00;box-shadow:9999px 0 0 -1px;animation:svelte-1w96vmo-loading-dot 2s infinite linear;animation-delay:.25s;margin-left:.5rem;margin-right:.5rem}@keyframes svelte-1w96vmo-loading-dot{0%{box-shadow:9999px 0 0 -1px}50%{box-shadow:9999px 0 0 2px}to{box-shadow:9999px 0 0 -1px}}.error.svelte-iyt7t3{position:relative;width:100%;padding:var(--size-4);color:var(--body-text-color);overflow:scroll;pointer-events:all}.error-name.svelte-iyt7t3{text-align:center}.error-stack.svelte-iyt7t3{width:100%;overflow:scroll}
|
har_extract/PINNED_HF_HUB/dist/lite.js
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|