Buckets:

hf-doc-build/doc-dev / course /pr_1003 /te /_app /immutable /chunks /CourseFloatingBanner.74ef6ac0.js
rtrm's picture
download
raw
23.8 kB
import{s as P,c as V,u as W,g as F,d as U,f as Z,n as S,i as ke,o as Me,b as $,j as Ne,t as Ie}from"./scheduler.39a43cde.js";import{S as J,i as Q,g as y,h as I,j as z,f as h,k as u,a as v,d,t as g,y as T,D as x,B as te,C as le,l as je,s as R,c as X,p as B,b as G,r as E,u as H,v as Y,w as A,m as Ce,e as O,n as Le,o as ve,q,z as pe}from"./index.23ec2204.js";import{e as K}from"./each.e59479a4.js";const ze=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function Se(s){let e,n;const l=s[3].default,t=V(l,s,s[2],null);return{c(){e=y("div"),t&&t.c(),this.h()},l(a){e=I(a,"DIV",{class:!0});var o=z(e);t&&t.l(o),o.forEach(h),this.h()},h(){u(e,"class","course-tip "+(s[0]==="orange"?"course-tip-orange":"")+" bg-gradient-to-br dark:bg-gradient-to-r before:border-"+s[0]+"-500 dark:before:border-"+s[0]+"-800 from-"+s[0]+"-50 dark:from-gray-900 to-white dark:to-gray-950 border border-"+s[0]+"-50 text-"+s[0]+"-700 dark:text-gray-400")},m(a,o){v(a,e,o),t&&t.m(e,null),n=!0},p(a,[o]){t&&t.p&&(!n||o&4)&&W(t,l,a,a[2],n?U(l,a[2],o,null):F(a[2]),null)},i(a){n||(d(t,a),n=!0)},o(a){g(t,a),n=!1},d(a){a&&h(e),t&&t.d(a)}}}function Ee(s,e,n){let{$$slots:l={},$$scope:t}=e,{warning:a=!1}=e;const o=a?"orange":"green";return s.$$set=r=>{"warning"in r&&n(1,a=r.warning),"$$scope"in r&&n(2,t=r.$$scope)},[o,a,t,l]}class pt extends J{constructor(e){super(),Q(this,e,Ee,Se,P,{warning:1})}}function Ye(s){let e,n;return{c(){e=y("iframe"),this.h()},l(l){e=I(l,"IFRAME",{class:!0,src:!0,title:!0,frameborder:!0,allow:!0}),z(e).forEach(h),this.h()},h(){u(e,"class","w-full xl:w-4/6 h-80"),Z(e.src,n="https://www.youtube-nocookie.com/embed/"+s[0])||u(e,"src",n),u(e,"title","YouTube video player"),u(e,"frameborder","0"),u(e,"allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"),e.allowFullscreen=!0},m(l,t){v(l,e,t)},p(l,[t]){t&1&&!Z(e.src,n="https://www.youtube-nocookie.com/embed/"+l[0])&&u(e,"src",n)},i:S,o:S,d(l){l&&h(e)}}}function Ae(s,e,n){let{id:l}=e;return s.$$set=t=>{"id"in t&&n(0,l=t.id)},[l]}class Dt extends J{constructor(e){super(),Q(this,e,Ae,Ye,P,{id:0})}}function Te(s){let e,n,l,t,a,o;const r=s[7].default,i=V(r,s,s[6],null);return{c(){e=y("div"),n=y("ul"),i&&i.c(),this.h()},l(c){e=I(c,"DIV",{class:!0});var b=z(e);n=I(b,"UL",{class:!0});var L=z(n);i&&i.l(L),L.forEach(h),b.forEach(h),this.h()},h(){u(n,"class","min-w-full w-auto"),u(e,"class",l="absolute top-full mt-1 min-w-full w-auto bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 "+(s[2]==="right"?"right-0":"left-0")+" "+s[0])},m(c,b){v(c,e,b),T(e,n),i&&i.m(n,null),s[8](e),t=!0,a||(o=x(e,"click",function(){ke(s[1])&&s[1].apply(this,arguments)}),a=!0)},p(c,[b]){s=c,i&&i.p&&(!t||b&64)&&W(i,r,s,s[6],t?U(r,s[6],b,null):F(s[6]),null),(!t||b&5&&l!==(l="absolute top-full mt-1 min-w-full w-auto bg-white rounded-xl overflow-hidden shadow-lg z-10 border border-gray-100 "+(s[2]==="right"?"right-0":"left-0")+" "+s[0]))&&u(e,"class",l)},i(c){t||(d(i,c),t=!0)},o(c){g(i,c),t=!1},d(c){c&&h(e),i&&i.d(c),s[8](null),a=!1,o()}}}function Be(s,e,n){let{$$slots:l={},$$scope:t}=e,{classNames:a=""}=e,{dropdownElement:o=void 0}=e,{forceAlignement:r=void 0}=e,{onClose:i}=e,c=r??"left",b;Me(()=>{if(document.addEventListener("click",L),!r){const _=document.documentElement.clientWidth,f=b==null?void 0:b.getBoundingClientRect(),m=(f==null?void 0:f.left)??0,k=(f==null?void 0:f.width)??0;n(2,c=m+k>_?"right":"left")}return()=>{document.removeEventListener("click",L)}});function L(_){const f=_.target;f!==o&&!(o!=null&&o.contains(f))&&i(_)}function M(_){$[_?"unshift":"push"](()=>{b=_,n(3,b)})}return s.$$set=_=>{"classNames"in _&&n(0,a=_.classNames),"dropdownElement"in _&&n(4,o=_.dropdownElement),"forceAlignement"in _&&n(5,r=_.forceAlignement),"onClose"in _&&n(1,i=_.onClose),"$$scope"in _&&n(6,t=_.$$scope)},[a,i,c,b,o,r,t,l,M]}class Ge extends J{constructor(e){super(),Q(this,e,Be,Te,P,{classNames:0,dropdownElement:4,forceAlignement:5,onClose:1})}}function Oe(s){let e,n;return{c(){e=te("svg"),n=te("path"),this.h()},l(l){e=le(l,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0,style:!0});var t=z(e);n=le(t,"path",{d:!0,fill:!0}),z(n).forEach(h),t.forEach(h),this.h()},h(){u(n,"d","M7 10l5 5l5-5z"),u(n,"fill","currentColor"),u(e,"class",s[0]),u(e,"xmlns","http://www.w3.org/2000/svg"),u(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),u(e,"aria-hidden","true"),u(e,"focusable","false"),u(e,"role","img"),u(e,"width","1em"),u(e,"height","1em"),u(e,"preserveAspectRatio","xMidYMid meet"),u(e,"viewBox","0 0 24 24"),je(e,"transform","rotate(360deg)")},m(l,t){v(l,e,t),T(e,n)},p(l,[t]){t&1&&u(e,"class",l[0])},i:S,o:S,d(l){l&&h(e)}}}function Ve(s,e,n){let{classNames:l=""}=e;return s.$$set=t=>{"classNames"in t&&n(0,l=t.classNames)},[l]}class We extends J{constructor(e){super(),Q(this,e,Ve,Oe,P,{classNames:0})}}const Fe=s=>({}),ne=s=>({}),Ue=s=>({}),se=s=>({});function He(s){let e,n,l,t,a,o=s[2]&&ae(s),r=s[9]&&oe();return{c(){o&&o.c(),e=R(),n=Ce(s[4]),l=R(),r&&r.c(),t=O()},l(i){o&&o.l(i),e=X(i),n=Le(i,s[4]),l=X(i),r&&r.l(i),t=O()},m(i,c){o&&o.m(i,c),v(i,e,c),v(i,n,c),v(i,l,c),r&&r.m(i,c),v(i,t,c),a=!0},p(i,c){i[2]?o?(o.p(i,c),c&4&&d(o,1)):(o=ae(i),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(B(),g(o,1,1,()=>{o=null}),G()),(!a||c&16)&&ve(n,i[4]),i[9]?r?c&512&&d(r,1):(r=oe(),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(B(),g(r,1,1,()=>{r=null}),G())},i(i){a||(d(o),d(r),a=!0)},o(i){g(o),g(r),a=!1},d(i){i&&(h(e),h(n),h(l),h(t)),o&&o.d(i),r&&r.d(i)}}}function Pe(s){let e;const n=s[15].button,l=V(n,s,s[18],se);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&262144)&&W(l,n,t,t[18],e?U(n,t[18],a,Ue):F(t[18]),se)},i(t){e||(d(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function ae(s){let e,n,l;var t=s[2];function a(o,r){return{props:{classNames:"mr-1.5 "+o[3]}}}return t&&(e=q(t,a(s))),{c(){e&&E(e.$$.fragment),n=O()},l(o){e&&H(e.$$.fragment,o),n=O()},m(o,r){e&&Y(e,o,r),v(o,n,r),l=!0},p(o,r){if(r&4&&t!==(t=o[2])){if(e){B();const i=e;g(i.$$.fragment,1,0,()=>{A(i,1)}),G()}t?(e=q(t,a(o)),E(e.$$.fragment),d(e.$$.fragment,1),Y(e,n.parentNode,n)):e=null}else if(t){const i={};r&8&&(i.classNames="mr-1.5 "+o[3]),e.$set(i)}},i(o){l||(e&&d(e.$$.fragment,o),l=!0)},o(o){e&&g(e.$$.fragment,o),l=!1},d(o){o&&h(n),e&&A(e,o)}}}function oe(s){let e,n;return e=new We({props:{classNames:"-mr-1 text-gray-500"}}),{c(){E(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){Y(e,l,t),n=!0},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function ie(s){let e,n;return e=new Ge({props:{classNames:s[6]+" "+(s[8]?"v2-dropdown-menu hidden":""),dropdownElement:s[10],forceAlignement:s[5],onClose:s[12],$$slots:{default:[Je]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){Y(e,l,t),n=!0},p(l,t){const a={};t&320&&(a.classNames=l[6]+" "+(l[8]?"v2-dropdown-menu hidden":"")),t&1024&&(a.dropdownElement=l[10]),t&32&&(a.forceAlignement=l[5]),t&262144&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function Je(s){let e;const n=s[15].menu,l=V(n,s,s[18],ne);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&262144)&&W(l,n,t,t[18],e?U(n,t[18],a,Fe):F(t[18]),ne)},i(t){e||(d(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function Qe(s){let e,n,l,t,a,o,r,i,c,b;const L=[Pe,He],M=[];function _(m,k){return m[13].button?0:1}l=_(s),t=M[l]=L[l](s);let f=(s[11]||s[8])&&ie(s);return{c(){e=y("div"),n=y("button"),t.c(),o=R(),f&&f.c(),this.h()},l(m){e=I(m,"DIV",{class:!0});var k=z(e);n=I(k,"BUTTON",{class:!0,type:!0});var D=z(n);t.l(D),D.forEach(h),o=X(k),f&&f.l(k),k.forEach(h),this.h()},h(){u(n,"class",a=""+s[1]+" "+(s[7]?"":"cursor-pointer w-full btn text-sm")+" "+(s[8]?"v2-dropdown-button":"")),u(n,"type","button"),u(e,"class",r="relative "+s[0]+" "+(s[8]?"v2-dropdown":""))},m(m,k){v(m,e,k),T(e,n),M[l].m(n,null),T(e,o),f&&f.m(e,null),s[17](e),i=!0,c||(b=x(n,"click",s[16]),c=!0)},p(m,[k]){let D=l;l=_(m),l===D?M[l].p(m,k):(B(),g(M[D],1,1,()=>{M[D]=null}),G(),t=M[l],t?t.p(m,k):(t=M[l]=L[l](m),t.c()),d(t,1),t.m(n,null)),(!i||k&386&&a!==(a=""+m[1]+" "+(m[7]?"":"cursor-pointer w-full btn text-sm")+" "+(m[8]?"v2-dropdown-button":"")))&&u(n,"class",a),m[11]||m[8]?f?(f.p(m,k),k&2304&&d(f,1)):(f=ie(m),f.c(),d(f,1),f.m(e,null)):f&&(B(),g(f,1,1,()=>{f=null}),G()),(!i||k&257&&r!==(r="relative "+m[0]+" "+(m[8]?"v2-dropdown":"")))&&u(e,"class",r)},i(m){i||(d(t),d(f),i=!0)},o(m){g(t),g(f),i=!1},d(m){m&&h(e),M[l].d(),f&&f.d(),s[17](null),c=!1,b()}}}function Ze(s,e,n){let{$$slots:l={},$$scope:t}=e;const a=Ne(l);let{classNames:o=""}=e,{btnClassNames:r=""}=e,{btnIcon:i=void 0}=e,{btnIconClassNames:c=""}=e,{btnLabel:b=""}=e,{forceMenuAlignement:L=void 0}=e,{menuClassNames:M=""}=e,{noBtnClass:_=void 0}=e,{selectedValue:f=void 0}=e,{useDeprecatedJS:m=!0}=e,{withBtnCaret:k=!1}=e,D,j=!1;function w(C){var ee;C.target&&(ee=C.target)!=null&&ee.className.includes("do-not-close-dropdown")||n(11,j=!1)}const N=()=>n(11,j=!j);function p(C){$[C?"unshift":"push"](()=>{D=C,n(10,D)})}return s.$$set=C=>{"classNames"in C&&n(0,o=C.classNames),"btnClassNames"in C&&n(1,r=C.btnClassNames),"btnIcon"in C&&n(2,i=C.btnIcon),"btnIconClassNames"in C&&n(3,c=C.btnIconClassNames),"btnLabel"in C&&n(4,b=C.btnLabel),"forceMenuAlignement"in C&&n(5,L=C.forceMenuAlignement),"menuClassNames"in C&&n(6,M=C.menuClassNames),"noBtnClass"in C&&n(7,_=C.noBtnClass),"selectedValue"in C&&n(14,f=C.selectedValue),"useDeprecatedJS"in C&&n(8,m=C.useDeprecatedJS),"withBtnCaret"in C&&n(9,k=C.withBtnCaret),"$$scope"in C&&n(18,t=C.$$scope)},[o,r,i,c,b,L,M,_,m,k,D,j,w,a,f,l,N,p,t]}class De extends J{constructor(e){super(),Q(this,e,Ze,Qe,P,{classNames:0,btnClassNames:1,btnIcon:2,btnIconClassNames:3,btnLabel:4,forceMenuAlignement:5,menuClassNames:6,noBtnClass:7,selectedValue:14,useDeprecatedJS:8,withBtnCaret:9})}}function Re(s){let e,n,l,t=s[5]&&re(s);return{c(){t&&t.c(),e=R(),n=Ce(s[7])},l(a){t&&t.l(a),e=X(a),n=Le(a,s[7])},m(a,o){t&&t.m(a,o),v(a,e,o),v(a,n,o),l=!0},p(a,o){a[5]?t?(t.p(a,o),o&32&&d(t,1)):(t=re(a),t.c(),d(t,1),t.m(e.parentNode,e)):t&&(B(),g(t,1,1,()=>{t=null}),G()),(!l||o&128)&&ve(n,a[7])},i(a){l||(d(t),l=!0)},o(a){g(t),l=!1},d(a){a&&(h(e),h(n)),t&&t.d(a)}}}function Xe(s){let e;const n=s[15].default,l=V(n,s,s[14],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,a){l&&l.m(t,a),e=!0},p(t,a){l&&l.p&&(!e||a&16384)&&W(l,n,t,t[14],e?U(n,t[14],a,null):F(t[14]),null)},i(t){e||(d(l,t),e=!0)},o(t){g(l,t),e=!1},d(t){l&&l.d(t)}}}function re(s){let e,n,l;var t=s[5];function a(o,r){return{props:{classNames:"mr-1.5 "+o[6]}}}return t&&(e=q(t,a(s))),{c(){e&&E(e.$$.fragment),n=O()},l(o){e&&H(e.$$.fragment,o),n=O()},m(o,r){e&&Y(e,o,r),v(o,n,r),l=!0},p(o,r){if(r&32&&t!==(t=o[5])){if(e){B();const i=e;g(i.$$.fragment,1,0,()=>{A(i,1)}),G()}t?(e=q(t,a(o)),E(e.$$.fragment),d(e.$$.fragment,1),Y(e,n.parentNode,n)):e=null}else if(t){const i={};r&64&&(i.classNames="mr-1.5 "+o[6]),e.$set(i)}},i(o){l||(e&&d(e.$$.fragment,o),l=!0)},o(o){e&&g(e.$$.fragment,o),l=!1},d(o){o&&h(n),e&&A(e,o)}}}function qe(s){let e,n,l,t,a,o,r,i,c,b;const L=[Xe,Re],M=[];function _(f,m){return f[13].default?0:1}return l=_(s),t=M[l]=L[l](s),{c(){e=y("li"),n=y("a"),t.c(),this.h()},l(f){e=I(f,"LI",{class:!0});var m=z(e);n=I(m,"A",{class:!0,"data-label":!0,"data-url":!0,"data-value":!0,href:!0,rel:!0,target:!0});var k=z(n);t.l(k),k.forEach(h),m.forEach(h),this.h()},h(){u(n,"class",a="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+s[0]+" "+(s[9]?"hover:underline":"")+" "+(s[12]?"v2-dropdown-entry":"")),u(n,"data-label",s[1]),u(n,"data-url",s[2]),u(n,"data-value",s[3]),u(n,"href",s[4]),u(n,"rel",o=s[8]?"nofollow":void 0),u(n,"target",r=s[11]?"_blank":void 0),u(e,"class","not-prose")},m(f,m){v(f,e,m),T(e,n),M[l].m(n,null),i=!0,c||(b=x(n,"click",function(){ke(s[10])&&s[10].apply(this,arguments)}),c=!0)},p(f,[m]){s=f;let k=l;l=_(s),l===k?M[l].p(s,m):(B(),g(M[k],1,1,()=>{M[k]=null}),G(),t=M[l],t?t.p(s,m):(t=M[l]=L[l](s),t.c()),d(t,1),t.m(n,null)),(!i||m&4609&&a!==(a="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+s[0]+" "+(s[9]?"hover:underline":"")+" "+(s[12]?"v2-dropdown-entry":"")))&&u(n,"class",a),(!i||m&2)&&u(n,"data-label",s[1]),(!i||m&4)&&u(n,"data-url",s[2]),(!i||m&8)&&u(n,"data-value",s[3]),(!i||m&16)&&u(n,"href",s[4]),(!i||m&256&&o!==(o=s[8]?"nofollow":void 0))&&u(n,"rel",o),(!i||m&2048&&r!==(r=s[11]?"_blank":void 0))&&u(n,"target",r)},i(f){i||(d(t),i=!0)},o(f){g(t),i=!1},d(f){f&&h(e),M[l].d(),c=!1,b()}}}function Ke(s,e,n){let{$$slots:l={},$$scope:t}=e;const a=Ne(l);let{classNames:o=""}=e,{dataLabel:r=void 0}=e,{dataUrl:i=void 0}=e,{dataValue:c=void 0}=e,{href:b=void 0}=e,{icon:L=void 0}=e,{iconClassNames:M=""}=e,{label:_=""}=e,{noFollow:f=!1}=e,{underline:m=!1}=e,{onClick:k=()=>{}}=e,{targetBlank:D=!1}=e,{useDeprecatedJS:j=!0}=e;return s.$$set=w=>{"classNames"in w&&n(0,o=w.classNames),"dataLabel"in w&&n(1,r=w.dataLabel),"dataUrl"in w&&n(2,i=w.dataUrl),"dataValue"in w&&n(3,c=w.dataValue),"href"in w&&n(4,b=w.href),"icon"in w&&n(5,L=w.icon),"iconClassNames"in w&&n(6,M=w.iconClassNames),"label"in w&&n(7,_=w.label),"noFollow"in w&&n(8,f=w.noFollow),"underline"in w&&n(9,m=w.underline),"onClick"in w&&n(10,k=w.onClick),"targetBlank"in w&&n(11,D=w.targetBlank),"useDeprecatedJS"in w&&n(12,j=w.useDeprecatedJS),"$$scope"in w&&n(14,t=w.$$scope)},[o,r,i,c,b,L,M,_,f,m,k,D,j,a,t,l]}class ye extends J{constructor(e){super(),Q(this,e,Ke,qe,P,{classNames:0,dataLabel:1,dataUrl:2,dataValue:3,href:4,icon:5,iconClassNames:6,label:7,noFollow:8,underline:9,onClick:10,targetBlank:11,useDeprecatedJS:12})}}const{window:xe}=ze,$e=s=>({}),fe=s=>({slot:"button"});function ue(s,e,n){const l=s.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const et=s=>({}),ce=s=>({slot:"menu"}),tt=s=>({}),me=s=>({slot:"button"});function _e(s,e,n){const l=s.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const lt=s=>({}),de=s=>({slot:"menu"}),nt=s=>({}),ge=s=>({});function st(s){let e,n;return e=new De({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[ft],button:[it]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){Y(e,l,t),n=!0},p(l,t){const a={};t&1024&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function at(s){let e,n,l;return{c(){e=y("a"),n=y("img"),this.h()},l(t){e=I(t,"A",{href:!0,target:!0});var a=z(e);n=I(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(h),this.h()},h(){u(n,"alt","Open In Colab"),u(n,"class","!m-0"),Z(n.src,l="https://colab.research.google.com/assets/colab-badge.svg")||u(n,"src",l),u(e,"href",s[2][0].value),u(e,"target","_blank")},m(t,a){v(t,e,a),T(e,n)},p:S,i:S,o:S,d(t){t&&h(e)}}}function ot(s){let e,n;return{c(){e=y("img"),this.h()},l(l){e=I(l,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){u(e,"alt","Open In Colab"),u(e,"class","!m-0"),Z(e.src,n="https://colab.research.google.com/assets/colab-badge.svg")||u(e,"src",n)},m(l,t){v(l,e,t)},p:S,d(l){l&&h(e)}}}function it(s){let e;const n=s[6].default,l=V(n,s,s[10],me),t=l||ot();return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?U(n,a[10],o,tt):F(a[10]),me)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function he(s){let e,n;function l(){return s[7](s[12])}return e=new ye({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:s[11],onClick:l,useDeprecatedJS:!1}}),{c(){E(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,a){Y(e,t,a),n=!0},p(t,a){s=t},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function rt(s){let e,n,l=K(s[2]),t=[];for(let o=0;o<l.length;o+=1)t[o]=he(_e(s,l,o));const a=o=>g(t[o],1,1,()=>{t[o]=null});return{c(){for(let o=0;o<t.length;o+=1)t[o].c();e=O()},l(o){for(let r=0;r<t.length;r+=1)t[r].l(o);e=O()},m(o,r){for(let i=0;i<t.length;i+=1)t[i]&&t[i].m(o,r);v(o,e,r),n=!0},p(o,r){if(r&4){l=K(o[2]);let i;for(i=0;i<l.length;i+=1){const c=_e(o,l,i);t[i]?(t[i].p(c,r),d(t[i],1)):(t[i]=he(c),t[i].c(),d(t[i],1),t[i].m(e.parentNode,e))}for(B(),i=l.length;i<t.length;i+=1)a(i);G()}},i(o){if(!n){for(let r=0;r<l.length;r+=1)d(t[r]);n=!0}},o(o){t=t.filter(Boolean);for(let r=0;r<t.length;r+=1)g(t[r]);n=!1},d(o){o&&h(e),pe(t,o)}}}function ft(s){let e;const n=s[6].default,l=V(n,s,s[10],de),t=l||rt(s);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?U(n,a[10],o,lt):F(a[10]),de)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function ut(s){let e,n;return e=new De({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[gt],button:[_t]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){Y(e,l,t),n=!0},p(l,t){const a={};t&1024&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function ct(s){let e,n,l;return{c(){e=y("a"),n=y("img"),this.h()},l(t){e=I(t,"A",{href:!0,target:!0});var a=z(e);n=I(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(h),this.h()},h(){u(n,"alt","Open In Studio Lab"),u(n,"class","!m-0"),Z(n.src,l="https://studiolab.sagemaker.aws/studiolab.svg")||u(n,"src",l),u(e,"href",s[3][0].value),u(e,"target","_blank")},m(t,a){v(t,e,a),T(e,n)},p:S,i:S,o:S,d(t){t&&h(e)}}}function mt(s){let e,n;return{c(){e=y("img"),this.h()},l(l){e=I(l,"IMG",{alt:!0,class:!0,src:!0}),this.h()},h(){u(e,"alt","Open In Studio Lab"),u(e,"class","!m-0"),Z(e.src,n="https://studiolab.sagemaker.aws/studiolab.svg")||u(e,"src",n)},m(l,t){v(l,e,t)},p:S,d(l){l&&h(e)}}}function _t(s){let e;const n=s[6].default,l=V(n,s,s[10],fe),t=l||mt();return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?U(n,a[10],o,$e):F(a[10]),fe)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function be(s){let e,n;function l(){return s[8](s[12])}return e=new ye({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:s[11],onClick:l,useDeprecatedJS:!1}}),{c(){E(e.$$.fragment)},l(t){H(e.$$.fragment,t)},m(t,a){Y(e,t,a),n=!0},p(t,a){s=t},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){A(e,t)}}}function dt(s){let e,n,l=K(s[3]),t=[];for(let o=0;o<l.length;o+=1)t[o]=be(ue(s,l,o));const a=o=>g(t[o],1,1,()=>{t[o]=null});return{c(){for(let o=0;o<t.length;o+=1)t[o].c();e=O()},l(o){for(let r=0;r<t.length;r+=1)t[r].l(o);e=O()},m(o,r){for(let i=0;i<t.length;i+=1)t[i]&&t[i].m(o,r);v(o,e,r),n=!0},p(o,r){if(r&8){l=K(o[3]);let i;for(i=0;i<l.length;i+=1){const c=ue(o,l,i);t[i]?(t[i].p(c,r),d(t[i],1)):(t[i]=be(c),t[i].c(),d(t[i],1),t[i].m(e.parentNode,e))}for(B(),i=l.length;i<t.length;i+=1)a(i);G()}},i(o){if(!n){for(let r=0;r<l.length;r+=1)d(t[r]);n=!0}},o(o){t=t.filter(Boolean);for(let r=0;r<t.length;r+=1)g(t[r]);n=!1},d(o){o&&h(e),pe(t,o)}}}function gt(s){let e;const n=s[6].default,l=V(n,s,s[10],ce),t=l||dt(s);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,o){t&&t.m(a,o),e=!0},p(a,o){l&&l.p&&(!e||o&1024)&&W(l,n,a,a[10],e?U(n,a[10],o,et):F(a[10]),ce)},i(a){e||(d(t,a),e=!0)},o(a){g(t,a),e=!1},d(a){t&&t.d(a)}}}function ht(s){let e,n,l,t,a,o,r,i,c,b,L;const M=s[6].alwaysVisible,_=V(M,s,s[10],ge),f=[at,st],m=[];function k(N,p){return N[2].length===1?0:N[2].length>1?1:-1}~(l=k(s))&&(t=m[l]=f[l](s));const D=[ct,ut],j=[];function w(N,p){return N[3].length===1?0:N[3].length>1?1:-1}return~(o=w(s))&&(r=j[o]=D[o](s)),{c(){e=y("div"),_&&_.c(),n=R(),t&&t.c(),a=R(),r&&r.c(),this.h()},l(N){e=I(N,"DIV",{class:!0});var p=z(e);_&&_.l(p),n=X(p),t&&t.l(p),a=X(p),r&&r.l(p),p.forEach(h),this.h()},h(){u(e,"class",i="flex space-x-1 "+s[0])},m(N,p){v(N,e,p),_&&_.m(e,null),T(e,n),~l&&m[l].m(e,null),T(e,a),~o&&j[o].m(e,null),s[9](e),c=!0,b||(L=x(xe,"resize",s[4]),b=!0)},p(N,[p]){_&&_.p&&(!c||p&1024)&&W(_,M,N,N[10],c?U(M,N[10],p,nt):F(N[10]),ge),t&&t.p(N,p),r&&r.p(N,p),(!c||p&1&&i!==(i="flex space-x-1 "+N[0]))&&u(e,"class",i)},i(N){c||(d(_,N),d(t),d(r),c=!0)},o(N){g(_,N),g(t),g(r),c=!1},d(N){N&&h(e),_&&_.d(N),~l&&m[l].d(),~o&&j[o].d(),s[9](null),b=!1,L()}}}function we(s){window.open(s)}function bt(s,e,n){let{$$slots:l={},$$scope:t}=e,{options:a=[]}=e,{classNames:o=""}=e,r;const i=a.filter(f=>f.value.includes("colab.research.google.com")),c=a.filter(f=>f.value.includes("studiolab.sagemaker.aws"));function b(){const f=document.querySelector(".prose-doc h1"),m=document.querySelector(".prose-doc h1 > span");if(f&&m){const{width:k}=f.getBoundingClientRect(),{width:D}=m.getBoundingClientRect();let j=0;for(let N=0;N<r.children.length;N++){const p=r.children.item(N);p&&(j+=p.clientWidth)}const w=20;k-D<j+w?r.classList.remove("absolute"):r.classList.add("absolute")}}Me(()=>{(async()=>(await Ie(),b()))()});const L=f=>we(f),M=f=>we(f);function _(f){$[f?"unshift":"push"](()=>{r=f,n(1,r)})}return s.$$set=f=>{"options"in f&&n(5,a=f.options),"classNames"in f&&n(0,o=f.classNames),"$$scope"in f&&n(10,t=f.$$scope)},[o,r,i,c,b,a,l,L,M,_,t]}class wt extends J{constructor(e){super(),Q(this,e,bt,ht,P,{options:5,classNames:0})}}function kt(s){let e,n,l;return{c(){e=y("a"),n=y("img"),this.h()},l(t){e=I(t,"A",{href:!0,target:!0});var a=z(e);n=I(a,"IMG",{alt:!0,class:!0,src:!0}),a.forEach(h),this.h()},h(){u(n,"alt","Ask a Question"),u(n,"class","!m-0"),Z(n.src,l="https://img.shields.io/badge/Ask%20a%20question-ffcb4c.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgLTEgMTA0IDEwNiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiMyMzFmMjA7fS5jbHMtMntmaWxsOiNmZmY5YWU7fS5jbHMtM3tmaWxsOiMwMGFlZWY7fS5jbHMtNHtmaWxsOiMwMGE5NGY7fS5jbHMtNXtmaWxsOiNmMTVkMjI7fS5jbHMtNntmaWxsOiNlMzFiMjM7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5EaXNjb3Vyc2VfbG9nbzwvdGl0bGU+PGcgaWQ9IkxheWVyXzIiPjxnIGlkPSJMYXllcl8zIj48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik01MS44NywwQzIzLjcxLDAsMCwyMi44MywwLDUxYzAsLjkxLDAsNTIuODEsMCw1Mi44MWw1MS44Ni0uMDVjMjguMTYsMCw1MS0yMy43MSw1MS01MS44N1M4MCwwLDUxLjg3LDBaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNNTIuMzcsMTkuNzRBMzEuNjIsMzEuNjIsMCwwLDAsMjQuNTgsNjYuNDFsLTUuNzIsMTguNEwzOS40LDgwLjE3YTMxLjYxLDMxLjYxLDAsMSwwLDEzLTYwLjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTc3LjQ1LDMyLjEyYTMxLjYsMzEuNiwwLDAsMS0zOC4wNSw0OEwxOC44Niw4NC44MmwyMC45MS0yLjQ3QTMxLjYsMzEuNiwwLDAsMCw3Ny40NSwzMi4xMloiLz48cGF0aCBjbGFzcz0iY2xzLTQiIGQ9Ik03MS42MywyNi4yOUEzMS42LDMxLjYsMCwwLDEsMzguOCw3OEwxOC44Niw4NC44MiwzOS40LDgwLjE3QTMxLjYsMzEuNiwwLDAsMCw3MS42MywyNi4yOVoiLz48cGF0aCBjbGFzcz0iY2xzLTUiIGQ9Ik0yNi40Nyw2Ny4xMWEzMS42MSwzMS42MSwwLDAsMSw1MS0zNUEzMS42MSwzMS42MSwwLDAsMCwyNC41OCw2Ni40MWwtNS43MiwxOC40WiIvPjxwYXRoIGNsYXNzPSJjbHMtNiIgZD0iTTI0LjU4LDY2LjQxQTMxLjYxLDMxLjYxLDAsMCwxLDcxLjYzLDI2LjI5YTMxLjYxLDMxLjYxLDAsMCwwLTQ5LDM5LjYzbC0zLjc2LDE4LjlaIi8+PC9nPjwvZz48L3N2Zz4=")||u(n,"src",l),u(e,"href",s[2]),u(e,"target","_blank")},m(t,a){v(t,e,a),T(e,n)},p(t,a){a&4&&u(e,"href",t[2])},d(t){t&&h(e)}}}function Mt(s){let e,n;return e=new wt({props:{options:s[0],classNames:s[1],$$slots:{alwaysVisible:[kt]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(l){H(e.$$.fragment,l)},m(l,t){Y(e,l,t),n=!0},p(l,[t]){const a={};t&1&&(a.options=l[0]),t&2&&(a.classNames=l[1]),t&20&&(a.$$scope={dirty:t,ctx:l}),e.$set(a)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){g(e.$$.fragment,l),n=!1},d(l){A(e,l)}}}function Nt(s,e,n){let{chapter:l}=e,{notebooks:t=[]}=e,{classNames:a=""}=e,{askForHelpUrl:o=`https://discuss.huggingface.co/t/chapter-${l}-questions`}=e;return s.$$set=r=>{"chapter"in r&&n(3,l=r.chapter),"notebooks"in r&&n(0,t=r.notebooks),"classNames"in r&&n(1,a=r.classNames),"askForHelpUrl"in r&&n(2,o=r.askForHelpUrl)},[t,a,o,l]}class yt extends J{constructor(e){super(),Q(this,e,Nt,Mt,P,{chapter:3,notebooks:0,classNames:1,askForHelpUrl:2})}}export{yt as C,pt as T,Dt as Y};

Xet Storage Details

Size:
23.8 kB
·
Xet hash:
0bb4afd6bde0806e2ccf45a3b43d444ce0c24e2a7225c5ef341ed31047ca23d7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.