import{S as P,i as U,s as q,M as L,N as S,a as B,d as h,b as f,g as M,F as D,L as A,H as G,e as y,c as I,Q,U as ve,I as T,J as j,K as Y,q as _,o as k,v as ke,V as x,f as Me,w as V,x as W,y as z,B as J,k as K,m as Z,n as R,p as F,W as pe,l as O,t as $,h as ee,j as Ne,X as De,P as X,G as te}from"./vendor-378cdcd7.js";function ye(a){let e,n,l,t,r,s;return{c(){e=L("svg"),n=L("defs"),l=L("clipPath"),t=L("rect"),r=L("g"),s=L("path"),this.h()},l(i){e=S(i,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var o=B(e);n=S(o,"defs",{});var u=B(n);l=S(u,"clipPath",{id:!0});var g=B(l);t=S(g,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0}),B(t).forEach(h),g.forEach(h),u.forEach(h),r=S(o,"g",{"clip-path":!0});var C=B(r);s=S(C,"path",{d:!0,fill:!0}),B(s).forEach(h),C.forEach(h),o.forEach(h),this.h()},h(){f(t,"x","3.05"),f(t,"y","0.5"),f(t,"width","25.73"),f(t,"height","31"),f(t,"fill","none"),f(l,"id","a"),f(s,"d","M24.94,9.51a12.81,12.81,0,0,1,0,18.16,12.68,12.68,0,0,1-18,0,12.81,12.81,0,0,1,0-18.16l9-9V5l-.84.83-6,6a9.58,9.58,0,1,0,13.55,0ZM20.44,9a1.68,1.68,0,1,1,1.67-1.67A1.68,1.68,0,0,1,20.44,9Z"),f(s,"fill","#ee4c2c"),f(r,"clip-path","url(#a)"),f(e,"class",a[0]),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),f(e,"aria-hidden","true"),f(e,"focusable","false"),f(e,"role","img"),f(e,"width","1em"),f(e,"height","1em"),f(e,"preserveAspectRatio","xMidYMid meet"),f(e,"viewBox","0 0 32 32")},m(i,o){M(i,e,o),D(e,n),D(n,l),D(l,t),D(e,r),D(r,s)},p(i,[o]){o&1&&f(e,"class",i[0])},i:A,o:A,d(i){i&&h(e)}}}function Ie(a,e,n){let{classNames:l=""}=e;return a.$$set=t=>{"classNames"in t&&n(0,l=t.classNames)},[l]}class Le extends P{constructor(e){super();U(this,e,Ie,ye,q,{classNames:0})}}function Se(a){let e,n,l,t;return{c(){e=L("svg"),n=L("path"),l=L("path"),t=L("path"),this.h()},l(r){e=S(r,"svg",{class:!0,xmlns:!0,"xmlns:xlink":!0,"aria-hidden":!0,focusable:!0,role:!0,width:!0,height:!0,preserveAspectRatio:!0,viewBox:!0});var s=B(e);n=S(s,"path",{d:!0,fill:!0}),B(n).forEach(h),l=S(s,"path",{d:!0,fill:!0}),B(l).forEach(h),t=S(s,"path",{d:!0,fill:!0}),B(t).forEach(h),s.forEach(h),this.h()},h(){f(n,"d","M145.726 42.065v42.07l72.861 42.07v-42.07l-72.86-42.07zM0 84.135v42.07l36.43 21.03V105.17L0 84.135zm109.291 21.035l-36.43 21.034v126.2l36.43 21.035v-84.135l36.435 21.035v-42.07l-36.435-21.034V105.17z"),f(n,"fill","#E55B2D"),f(l,"d","M145.726 42.065L36.43 105.17v42.065l72.861-42.065v42.065l36.435-21.03v-84.14zM255.022 63.1l-36.435 21.035v42.07l36.435-21.035V63.1zm-72.865 84.135l-36.43 21.035v42.07l36.43-21.036v-42.07zm-36.43 63.104l-36.436-21.035v84.135l36.435-21.035V210.34z"),f(l,"fill","#ED8E24"),f(t,"d","M145.726 0L0 84.135l36.43 21.035l109.296-63.105l72.861 42.07L255.022 63.1L145.726 0zm0 126.204l-36.435 21.03l36.435 21.036l36.43-21.035l-36.43-21.03z"),f(t,"fill","#F8BF3C"),f(e,"class",a[0]),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),f(e,"aria-hidden","true"),f(e,"focusable","false"),f(e,"role","img"),f(e,"width","0.94em"),f(e,"height","1em"),f(e,"preserveAspectRatio","xMidYMid meet"),f(e,"viewBox","0 0 256 274")},m(r,s){M(r,e,s),D(e,n),D(e,l),D(e,t)},p(r,[s]){s&1&&f(e,"class",r[0])},i:A,o:A,d(r){r&&h(e)}}}function Ae(a,e,n){let{classNames:l=""}=e;return a.$$set=t=>{"classNames"in t&&n(0,l=t.classNames)},[l]}class Ve extends P{constructor(e){super();U(this,e,Ae,Se,q,{classNames:0})}}function ze(a){let e,n,l,t,r,s;const i=a[7].default,o=G(i,a,a[6],null);return{c(){e=y("div"),n=y("ul"),o&&o.c(),this.h()},l(u){e=I(u,"DIV",{class:!0});var g=B(e);n=I(g,"UL",{class:!0});var C=B(n);o&&o.l(C),C.forEach(h),g.forEach(h),this.h()},h(){f(n,"class","min-w-full w-auto"),f(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 "+(a[2]==="right"?"right-0":"left-0")+" "+a[0])},m(u,g){M(u,e,g),D(e,n),o&&o.m(n,null),a[8](e),t=!0,r||(s=Q(e,"click",function(){ve(a[1])&&a[1].apply(this,arguments)}),r=!0)},p(u,[g]){a=u,o&&o.p&&(!t||g&64)&&T(o,i,a,a[6],t?Y(i,a[6],g,null):j(a[6]),null),(!t||g&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 "+(a[2]==="right"?"right-0":"left-0")+" "+a[0]))&&f(e,"class",l)},i(u){t||(_(o,u),t=!0)},o(u){k(o,u),t=!1},d(u){u&&h(e),o&&o.d(u),a[8](null),r=!1,s()}}}function Je(a,e,n){let{$$slots:l={},$$scope:t}=e,{classNames:r=""}=e,{dropdownElement:s=void 0}=e,{forceAlignement:i=void 0}=e,{onClose:o}=e,u=i!=null?i:"left",g;ke(()=>{var m,c;if(document.addEventListener("click",C),!i){const d=document.documentElement.clientWidth,b=(g==null?void 0:g.getBoundingClientRect())||{},v=(m=b.left)!=null?m:0,p=(c=b.width)!=null?c:0;n(2,u=v+p>d?"right":"left")}return()=>{document.removeEventListener("click",C)}});function C(m){const c=m.target;c!==s&&!(s==null?void 0:s.contains(c))&&o()}function w(m){x[m?"unshift":"push"](()=>{g=m,n(3,g)})}return a.$$set=m=>{"classNames"in m&&n(0,r=m.classNames),"dropdownElement"in m&&n(4,s=m.dropdownElement),"forceAlignement"in m&&n(5,i=m.forceAlignement),"onClose"in m&&n(1,o=m.onClose),"$$scope"in m&&n(6,t=m.$$scope)},[r,o,u,g,s,i,t,l,w]}class Re extends P{constructor(e){super();U(this,e,Je,ze,q,{classNames:0,dropdownElement:4,forceAlignement:5,onClose:1})}}function Fe(a){let e,n;return{c(){e=L("svg"),n=L("path"),this.h()},l(l){e=S(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=B(e);n=S(t,"path",{d:!0,fill:!0}),B(n).forEach(h),t.forEach(h),this.h()},h(){f(n,"d","M7 10l5 5l5-5z"),f(n,"fill","currentColor"),f(e,"class",a[0]),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),f(e,"aria-hidden","true"),f(e,"focusable","false"),f(e,"role","img"),f(e,"width","1em"),f(e,"height","1em"),f(e,"preserveAspectRatio","xMidYMid meet"),f(e,"viewBox","0 0 24 24"),Me(e,"transform","rotate(360deg)")},m(l,t){M(l,e,t),D(e,n)},p(l,[t]){t&1&&f(e,"class",l[0])},i:A,o:A,d(l){l&&h(e)}}}function Oe(a,e,n){let{classNames:l=""}=e;return a.$$set=t=>{"classNames"in t&&n(0,l=t.classNames)},[l]}class We extends P{constructor(e){super();U(this,e,Oe,Fe,q,{classNames:0})}}const Pe=a=>({}),le=a=>({}),Ue=a=>({}),ne=a=>({});function qe(a){let e,n,l,t,r,s=a[2]&&se(a),i=a[10]&&ae();return{c(){s&&s.c(),e=K(),n=$(a[4]),l=K(),i&&i.c(),t=O()},l(o){s&&s.l(o),e=Z(o),n=ee(o,a[4]),l=Z(o),i&&i.l(o),t=O()},m(o,u){s&&s.m(o,u),M(o,e,u),M(o,n,u),M(o,l,u),i&&i.m(o,u),M(o,t,u),r=!0},p(o,u){o[2]?s?(s.p(o,u),u&4&&_(s,1)):(s=se(o),s.c(),_(s,1),s.m(e.parentNode,e)):s&&(R(),k(s,1,1,()=>{s=null}),F()),(!r||u&16)&&Ne(n,o[4]),o[10]?i?u&1024&&_(i,1):(i=ae(),i.c(),_(i,1),i.m(t.parentNode,t)):i&&(R(),k(i,1,1,()=>{i=null}),F())},i(o){r||(_(s),_(i),r=!0)},o(o){k(s),k(i),r=!1},d(o){s&&s.d(o),o&&h(e),o&&h(n),o&&h(l),i&&i.d(o),o&&h(t)}}}function Ge(a){let e;const n=a[14].button,l=G(n,a,a[18],ne);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,r){l&&l.m(t,r),e=!0},p(t,r){l&&l.p&&(!e||r&262144)&&T(l,n,t,t[18],e?Y(n,t[18],r,Ue):j(t[18]),ne)},i(t){e||(_(l,t),e=!0)},o(t){k(l,t),e=!1},d(t){l&&l.d(t)}}}function se(a){let e,n,l;var t=a[2];function r(s){return{props:{classNames:"mr-1.5 "+s[3]}}}return t&&(e=new t(r(a))),{c(){e&&V(e.$$.fragment),n=O()},l(s){e&&W(e.$$.fragment,s),n=O()},m(s,i){e&&z(e,s,i),M(s,n,i),l=!0},p(s,i){const o={};if(i&8&&(o.classNames="mr-1.5 "+s[3]),t!==(t=s[2])){if(e){R();const u=e;k(u.$$.fragment,1,0,()=>{J(u,1)}),F()}t?(e=new t(r(s)),V(e.$$.fragment),_(e.$$.fragment,1),z(e,n.parentNode,n)):e=null}else t&&e.$set(o)},i(s){l||(e&&_(e.$$.fragment,s),l=!0)},o(s){e&&k(e.$$.fragment,s),l=!1},d(s){s&&h(n),e&&J(e,s)}}}function ae(a){let e,n;return e=new We({props:{classNames:"-mr-1 text-gray-500"}}),{c(){V(e.$$.fragment)},l(l){W(e.$$.fragment,l)},m(l,t){z(e,l,t),n=!0},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){k(e.$$.fragment,l),n=!1},d(l){J(e,l)}}}function re(a){let e,n;return e=new Re({props:{classNames:a[6]+" "+(a[9]?"v2-dropdown-menu hidden":""),dropdownElement:a[11],forceAlignement:a[5],onClose:a[16],$$slots:{default:[Te]},$$scope:{ctx:a}}}),{c(){V(e.$$.fragment)},l(l){W(e.$$.fragment,l)},m(l,t){z(e,l,t),n=!0},p(l,t){const r={};t&576&&(r.classNames=l[6]+" "+(l[9]?"v2-dropdown-menu hidden":"")),t&2048&&(r.dropdownElement=l[11]),t&32&&(r.forceAlignement=l[5]),t&4096&&(r.onClose=l[16]),t&262144&&(r.$$scope={dirty:t,ctx:l}),e.$set(r)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){k(e.$$.fragment,l),n=!1},d(l){J(e,l)}}}function Te(a){let e;const n=a[14].menu,l=G(n,a,a[18],le);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,r){l&&l.m(t,r),e=!0},p(t,r){l&&l.p&&(!e||r&262144)&&T(l,n,t,t[18],e?Y(n,t[18],r,Pe):j(t[18]),le)},i(t){e||(_(l,t),e=!0)},o(t){k(l,t),e=!1},d(t){l&&l.d(t)}}}function je(a){let e,n,l,t,r,s,i,o,u,g,C;const w=[Ge,qe],m=[];function c(b,v){return b[13].button?0:1}l=c(a),t=m[l]=w[l](a);let d=(a[12]||a[9])&&re(a);return{c(){e=y("div"),n=y("button"),t.c(),s=K(),d&&d.c(),this.h()},l(b){e=I(b,"DIV",{class:!0,"selected-value":!0});var v=B(e);n=I(v,"BUTTON",{class:!0,type:!0});var p=B(n);t.l(p),p.forEach(h),s=Z(v),d&&d.l(v),v.forEach(h),this.h()},h(){f(n,"class",r=""+a[1]+" "+(a[7]?"":"cursor-pointer w-full btn text-sm")+" "+(a[9]?"v2-dropdown-button":"")),f(n,"type","button"),f(e,"class",i="relative "+a[0]+" "+(a[9]?"v2-dropdown":"")),f(e,"selected-value",o=a[8]||void 0)},m(b,v){M(b,e,v),D(e,n),m[l].m(n,null),D(e,s),d&&d.m(e,null),a[17](e),u=!0,g||(C=Q(n,"click",a[15]),g=!0)},p(b,[v]){let p=l;l=c(b),l===p?m[l].p(b,v):(R(),k(m[p],1,1,()=>{m[p]=null}),F(),t=m[l],t?t.p(b,v):(t=m[l]=w[l](b),t.c()),_(t,1),t.m(n,null)),(!u||v&642&&r!==(r=""+b[1]+" "+(b[7]?"":"cursor-pointer w-full btn text-sm")+" "+(b[9]?"v2-dropdown-button":"")))&&f(n,"class",r),b[12]||b[9]?d?(d.p(b,v),v&4608&&_(d,1)):(d=re(b),d.c(),_(d,1),d.m(e,null)):d&&(R(),k(d,1,1,()=>{d=null}),F()),(!u||v&513&&i!==(i="relative "+b[0]+" "+(b[9]?"v2-dropdown":"")))&&f(e,"class",i),(!u||v&256&&o!==(o=b[8]||void 0))&&f(e,"selected-value",o)},i(b){u||(_(t),_(d),u=!0)},o(b){k(t),k(d),u=!1},d(b){b&&h(e),m[l].d(),d&&d.d(),a[17](null),g=!1,C()}}}function Ye(a,e,n){let{$$slots:l={},$$scope:t}=e;const r=pe(l);let{classNames:s=""}=e,{btnClassNames:i=""}=e,{btnIcon:o=void 0}=e,{btnIconClassNames:u=""}=e,{btnLabel:g=""}=e,{forceMenuAlignement:C=void 0}=e,{menuClassNames:w=""}=e,{noBtnClass:m=void 0}=e,{selectedValue:c=void 0}=e,{useDeprecatedJS:d=!0}=e,{withBtnCaret:b=!1}=e,v,p=!1;const N=()=>n(12,p=!p),H=()=>n(12,p=!1);function Be(E){x[E?"unshift":"push"](()=>{v=E,n(11,v)})}return a.$$set=E=>{"classNames"in E&&n(0,s=E.classNames),"btnClassNames"in E&&n(1,i=E.btnClassNames),"btnIcon"in E&&n(2,o=E.btnIcon),"btnIconClassNames"in E&&n(3,u=E.btnIconClassNames),"btnLabel"in E&&n(4,g=E.btnLabel),"forceMenuAlignement"in E&&n(5,C=E.forceMenuAlignement),"menuClassNames"in E&&n(6,w=E.menuClassNames),"noBtnClass"in E&&n(7,m=E.noBtnClass),"selectedValue"in E&&n(8,c=E.selectedValue),"useDeprecatedJS"in E&&n(9,d=E.useDeprecatedJS),"withBtnCaret"in E&&n(10,b=E.withBtnCaret),"$$scope"in E&&n(18,t=E.$$scope)},[s,i,o,u,g,C,w,m,c,d,b,v,p,r,l,N,H,Be,t]}class Ce extends P{constructor(e){super();U(this,e,Ye,je,q,{classNames:0,btnClassNames:1,btnIcon:2,btnIconClassNames:3,btnLabel:4,forceMenuAlignement:5,menuClassNames:6,noBtnClass:7,selectedValue:8,useDeprecatedJS:9,withBtnCaret:10})}}function Ke(a){let e,n,l,t=a[5]&&oe(a);return{c(){t&&t.c(),e=K(),n=$(a[7])},l(r){t&&t.l(r),e=Z(r),n=ee(r,a[7])},m(r,s){t&&t.m(r,s),M(r,e,s),M(r,n,s),l=!0},p(r,s){r[5]?t?(t.p(r,s),s&32&&_(t,1)):(t=oe(r),t.c(),_(t,1),t.m(e.parentNode,e)):t&&(R(),k(t,1,1,()=>{t=null}),F()),(!l||s&128)&&Ne(n,r[7])},i(r){l||(_(t),l=!0)},o(r){k(t),l=!1},d(r){t&&t.d(r),r&&h(e),r&&h(n)}}}function Ze(a){let e;const n=a[15].default,l=G(n,a,a[14],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,r){l&&l.m(t,r),e=!0},p(t,r){l&&l.p&&(!e||r&16384)&&T(l,n,t,t[14],e?Y(n,t[14],r,null):j(t[14]),null)},i(t){e||(_(l,t),e=!0)},o(t){k(l,t),e=!1},d(t){l&&l.d(t)}}}function oe(a){let e,n,l;var t=a[5];function r(s){return{props:{classNames:"mr-1.5 "+s[6]}}}return t&&(e=new t(r(a))),{c(){e&&V(e.$$.fragment),n=O()},l(s){e&&W(e.$$.fragment,s),n=O()},m(s,i){e&&z(e,s,i),M(s,n,i),l=!0},p(s,i){const o={};if(i&64&&(o.classNames="mr-1.5 "+s[6]),t!==(t=s[5])){if(e){R();const u=e;k(u.$$.fragment,1,0,()=>{J(u,1)}),F()}t?(e=new t(r(s)),V(e.$$.fragment),_(e.$$.fragment,1),z(e,n.parentNode,n)):e=null}else t&&e.$set(o)},i(s){l||(e&&_(e.$$.fragment,s),l=!0)},o(s){e&&k(e.$$.fragment,s),l=!1},d(s){s&&h(n),e&&J(e,s)}}}function He(a){let e,n,l,t,r,s,i,o,u,g;const C=[Ze,Ke],w=[];function m(c,d){return c[13].default?0:1}return l=m(a),t=w[l]=C[l](a),{c(){e=y("li"),n=y("a"),t.c(),this.h()},l(c){e=I(c,"LI",{});var d=B(e);n=I(d,"A",{class:!0,"data-label":!0,"data-url":!0,"data-value":!0,href:!0,rel:!0,target:!0});var b=B(n);t.l(b),b.forEach(h),d.forEach(h),this.h()},h(){f(n,"class",r="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+a[0]+" "+(a[9]?"hover:underline":"")+" "+(a[12]?"v2-dropdown-entry":"")),f(n,"data-label",a[1]),f(n,"data-url",a[2]),f(n,"data-value",a[3]),f(n,"href",a[4]),f(n,"rel",s=a[8]?"nofollow":void 0),f(n,"target",i=a[11]?"_blank":void 0)},m(c,d){M(c,e,d),D(e,n),w[l].m(n,null),o=!0,u||(g=Q(n,"click",function(){ve(a[10])&&a[10].apply(this,arguments)}),u=!0)},p(c,[d]){a=c;let b=l;l=m(a),l===b?w[l].p(a,d):(R(),k(w[b],1,1,()=>{w[b]=null}),F(),t=w[l],t?t.p(a,d):(t=w[l]=C[l](a),t.c()),_(t,1),t.m(n,null)),(!o||d&4609&&r!==(r="flex items-center hover:bg-gray-50 dark:hover:bg-gray-800 cursor-pointer px-3 py-1.5 whitespace-nowrap "+a[0]+" "+(a[9]?"hover:underline":"")+" "+(a[12]?"v2-dropdown-entry":"")))&&f(n,"class",r),(!o||d&2)&&f(n,"data-label",a[1]),(!o||d&4)&&f(n,"data-url",a[2]),(!o||d&8)&&f(n,"data-value",a[3]),(!o||d&16)&&f(n,"href",a[4]),(!o||d&256&&s!==(s=a[8]?"nofollow":void 0))&&f(n,"rel",s),(!o||d&2048&&i!==(i=a[11]?"_blank":void 0))&&f(n,"target",i)},i(c){o||(_(t),o=!0)},o(c){k(t),o=!1},d(c){c&&h(e),w[l].d(),u=!1,g()}}}function Qe(a,e,n){let{$$slots:l={},$$scope:t}=e;const r=pe(l);let{classNames:s=""}=e,{dataLabel:i=void 0}=e,{dataUrl:o=void 0}=e,{dataValue:u=void 0}=e,{href:g=void 0}=e,{icon:C=void 0}=e,{iconClassNames:w=""}=e,{label:m=""}=e,{noFollow:c=!1}=e,{underline:d=!1}=e,{onClick:b=()=>{}}=e,{targetBlank:v=!1}=e,{useDeprecatedJS:p=!0}=e;return a.$$set=N=>{"classNames"in N&&n(0,s=N.classNames),"dataLabel"in N&&n(1,i=N.dataLabel),"dataUrl"in N&&n(2,o=N.dataUrl),"dataValue"in N&&n(3,u=N.dataValue),"href"in N&&n(4,g=N.href),"icon"in N&&n(5,C=N.icon),"iconClassNames"in N&&n(6,w=N.iconClassNames),"label"in N&&n(7,m=N.label),"noFollow"in N&&n(8,c=N.noFollow),"underline"in N&&n(9,d=N.underline),"onClick"in N&&n(10,b=N.onClick),"targetBlank"in N&&n(11,v=N.targetBlank),"useDeprecatedJS"in N&&n(12,p=N.useDeprecatedJS),"$$scope"in N&&n(14,t=N.$$scope)},[s,i,o,u,g,C,w,m,c,d,b,v,p,r,t,l]}class Ee extends P{constructor(e){super();U(this,e,Qe,He,q,{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}=De,xe=a=>({}),ie=a=>({slot:"button"});function fe(a,e,n){const l=a.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const $e=a=>({}),ue=a=>({slot:"menu"}),et=a=>({}),ce=a=>({slot:"button"});function de(a,e,n){const l=a.slice();return l[11]=e[n].label,l[12]=e[n].value,l}const tt=a=>({}),me=a=>({slot:"menu"});function lt(a){let e,n;return e=new Ce({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[ot],button:[at]},$$scope:{ctx:a}}}),{c(){V(e.$$.fragment)},l(l){W(e.$$.fragment,l)},m(l,t){z(e,l,t),n=!0},p(l,t){const r={};t&1024&&(r.$$scope={dirty:t,ctx:l}),e.$set(r)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){k(e.$$.fragment,l),n=!1},d(l){J(e,l)}}}function nt(a){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 r=B(e);n=I(r,"IMG",{alt:!0,class:!0,src:!0}),r.forEach(h),this.h()},h(){f(n,"alt","Open In Colab"),f(n,"class","!m-0"),X(n.src,l="https://colab.research.google.com/assets/colab-badge.svg")||f(n,"src",l),f(e,"href",a[2][0].value),f(e,"target","_blank")},m(t,r){M(t,e,r),D(e,n)},p:A,i:A,o:A,d(t){t&&h(e)}}}function st(a){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(){f(e,"alt","Open In Colab"),f(e,"class","!m-0"),X(e.src,n="https://colab.research.google.com/assets/colab-badge.svg")||f(e,"src",n)},m(l,t){M(l,e,t)},d(l){l&&h(e)}}}function at(a){let e;const n=a[6].default,l=G(n,a,a[10],ce),t=l||st();return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&1024)&&T(l,n,r,r[10],e?Y(n,r[10],s,et):j(r[10]),ce)},i(r){e||(_(t,r),e=!0)},o(r){k(t,r),e=!1},d(r){t&&t.d(r)}}}function _e(a){let e,n;function l(){return a[7](a[12])}return e=new Ee({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:a[11],onClick:l,useDeprecatedJS:!1}}),{c(){V(e.$$.fragment)},l(t){W(e.$$.fragment,t)},m(t,r){z(e,t,r),n=!0},p(t,r){a=t},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){k(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function rt(a){let e,n,l=a[2],t=[];for(let s=0;s<l.length;s+=1)t[s]=_e(de(a,l,s));const r=s=>k(t[s],1,1,()=>{t[s]=null});return{c(){for(let s=0;s<t.length;s+=1)t[s].c();e=O()},l(s){for(let i=0;i<t.length;i+=1)t[i].l(s);e=O()},m(s,i){for(let o=0;o<t.length;o+=1)t[o].m(s,i);M(s,e,i),n=!0},p(s,i){if(i&4){l=s[2];let o;for(o=0;o<l.length;o+=1){const u=de(s,l,o);t[o]?(t[o].p(u,i),_(t[o],1)):(t[o]=_e(u),t[o].c(),_(t[o],1),t[o].m(e.parentNode,e))}for(R(),o=l.length;o<t.length;o+=1)r(o);F()}},i(s){if(!n){for(let i=0;i<l.length;i+=1)_(t[i]);n=!0}},o(s){t=t.filter(Boolean);for(let i=0;i<t.length;i+=1)k(t[i]);n=!1},d(s){te(t,s),s&&h(e)}}}function ot(a){let e;const n=a[6].default,l=G(n,a,a[10],me),t=l||rt(a);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&1024)&&T(l,n,r,r[10],e?Y(n,r[10],s,tt):j(r[10]),me)},i(r){e||(_(t,r),e=!0)},o(r){k(t,r),e=!1},d(r){t&&t.d(r)}}}function it(a){let e,n;return e=new Ce({props:{btnLabel:"",classNames:"colab-dropdown",noBtnClass:!0,useDeprecatedJS:!1,$$slots:{menu:[mt],button:[ct]},$$scope:{ctx:a}}}),{c(){V(e.$$.fragment)},l(l){W(e.$$.fragment,l)},m(l,t){z(e,l,t),n=!0},p(l,t){const r={};t&1024&&(r.$$scope={dirty:t,ctx:l}),e.$set(r)},i(l){n||(_(e.$$.fragment,l),n=!0)},o(l){k(e.$$.fragment,l),n=!1},d(l){J(e,l)}}}function ft(a){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 r=B(e);n=I(r,"IMG",{alt:!0,class:!0,src:!0}),r.forEach(h),this.h()},h(){f(n,"alt","Open In Studio Lab"),f(n,"class","!m-0"),X(n.src,l="https://studiolab.sagemaker.aws/studiolab.svg")||f(n,"src",l),f(e,"href",a[3][0].value),f(e,"target","_blank")},m(t,r){M(t,e,r),D(e,n)},p:A,i:A,o:A,d(t){t&&h(e)}}}function ut(a){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(){f(e,"alt","Open In Studio Lab"),f(e,"class","!m-0"),X(e.src,n="https://studiolab.sagemaker.aws/studiolab.svg")||f(e,"src",n)},m(l,t){M(l,e,t)},d(l){l&&h(e)}}}function ct(a){let e;const n=a[6].default,l=G(n,a,a[10],ie),t=l||ut();return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&1024)&&T(l,n,r,r[10],e?Y(n,r[10],s,xe):j(r[10]),ie)},i(r){e||(_(t,r),e=!0)},o(r){k(t,r),e=!1},d(r){t&&t.d(r)}}}function he(a){let e,n;function l(){return a[8](a[12])}return e=new Ee({props:{classNames:"text-sm !no-underline",iconClassNames:"text-gray-500",label:a[11],onClick:l,useDeprecatedJS:!1}}),{c(){V(e.$$.fragment)},l(t){W(e.$$.fragment,t)},m(t,r){z(e,t,r),n=!0},p(t,r){a=t},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){k(e.$$.fragment,t),n=!1},d(t){J(e,t)}}}function dt(a){let e,n,l=a[3],t=[];for(let s=0;s<l.length;s+=1)t[s]=he(fe(a,l,s));const r=s=>k(t[s],1,1,()=>{t[s]=null});return{c(){for(let s=0;s<t.length;s+=1)t[s].c();e=O()},l(s){for(let i=0;i<t.length;i+=1)t[i].l(s);e=O()},m(s,i){for(let o=0;o<t.length;o+=1)t[o].m(s,i);M(s,e,i),n=!0},p(s,i){if(i&8){l=s[3];let o;for(o=0;o<l.length;o+=1){const u=fe(s,l,o);t[o]?(t[o].p(u,i),_(t[o],1)):(t[o]=he(u),t[o].c(),_(t[o],1),t[o].m(e.parentNode,e))}for(R(),o=l.length;o<t.length;o+=1)r(o);F()}},i(s){if(!n){for(let i=0;i<l.length;i+=1)_(t[i]);n=!0}},o(s){t=t.filter(Boolean);for(let i=0;i<t.length;i+=1)k(t[i]);n=!1},d(s){te(t,s),s&&h(e)}}}function mt(a){let e;const n=a[6].default,l=G(n,a,a[10],ue),t=l||dt(a);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&1024)&&T(l,n,r,r[10],e?Y(n,r[10],s,$e):j(r[10]),ue)},i(r){e||(_(t,r),e=!0)},o(r){k(t,r),e=!1},d(r){t&&t.d(r)}}}function _t(a){let e,n,l,t,r,s,i,o,u,g;const C=[nt,lt],w=[];function m(v,p){return v[2].length===1?0:1}n=m(a),l=w[n]=C[n](a);const c=[ft,it],d=[];function b(v,p){return v[3].length===1?0:1}return r=b(a),s=d[r]=c[r](a),{c(){e=y("div"),l.c(),t=K(),s.c(),this.h()},l(v){e=I(v,"DIV",{class:!0});var p=B(e);l.l(p),t=Z(p),s.l(p),p.forEach(h),this.h()},h(){f(e,"class",i="flex space-x-1 "+a[0])},m(v,p){M(v,e,p),w[n].m(e,null),D(e,t),d[r].m(e,null),a[9](e),o=!0,u||(g=Q(Xe,"resize",a[4]),u=!0)},p(v,[p]){l.p(v,p),s.p(v,p),(!o||p&1&&i!==(i="flex space-x-1 "+v[0]))&&f(e,"class",i)},i(v){o||(_(l),_(s),o=!0)},o(v){k(l),k(s),o=!1},d(v){v&&h(e),w[n].d(),d[r].d(),a[9](null),u=!1,g()}}}function ge(a){window.open(a)}function ht(a,e,n){let{$$slots:l={},$$scope:t}=e,{options:r=[]}=e,{classNames:s=""}=e,i;const o=r.filter(c=>c.value.includes("colab.research.google.com")),u=r.filter(c=>c.value.includes("studiolab.sagemaker.aws"));function g(){const c=document.querySelector(".prose-doc h1"),d=document.querySelector(".prose-doc h1 > span");if(c&&d){const{width:b}=c.getBoundingClientRect(),{width:v}=d.getBoundingClientRect();let p=0;for(let H=0;H<i.children.length;H++)p+=i.children.item(H).clientWidth;const N=20;b-v<p+N?i.classList.remove("absolute"):i.classList.add("absolute")}}ke(()=>{g()});const C=c=>ge(c),w=c=>ge(c);function m(c){x[c?"unshift":"push"](()=>{i=c,n(1,i)})}return a.$$set=c=>{"options"in c&&n(5,r=c.options),"classNames"in c&&n(0,s=c.classNames),"$$scope"in c&&n(10,t=c.$$scope)},[s,i,o,u,g,r,l,C,w,m,t]}class vt extends P{constructor(e){super();U(this,e,ht,_t,q,{options:5,classNames:0})}}function be(a,e,n){const l=a.slice();return l[2]=e[n],l[4]=n,l}function we(a){let e,n,l,t=a[2].name+"",r,s,i,o,u;var g=a[2].icon;function C(w){return{props:{classNames:"mr-1.5"}}}return g&&(n=new g(C())),{c(){e=y("a"),n&&V(n.$$.fragment),l=K(),r=$(t),s=K(),this.h()},l(w){e=I(w,"A",{class:!0,href:!0});var m=B(e);n&&W(n.$$.fragment,m),l=Z(m),r=ee(m,t),s=Z(m),m.forEach(h),this.h()},h(){f(e,"class",i="flex justify-center flex-1 py-1.5 px-2.5 focus:outline-none !no-underline rounded-"+(a[4]?"r":"l")+" "+(a[2].id===a[0]?a[2].classNames:"text-gray-500 filter grayscale")),f(e,"href",o="?fw="+a[2].id)},m(w,m){M(w,e,m),n&&z(n,e,null),D(e,l),D(e,r),D(e,s),u=!0},p(w,m){if(g!==(g=w[2].icon)){if(n){R();const c=n;k(c.$$.fragment,1,0,()=>{J(c,1)}),F()}g?(n=new g(C()),V(n.$$.fragment),_(n.$$.fragment,1),z(n,e,l)):n=null}(!u||m&1&&i!==(i="flex justify-center flex-1 py-1.5 px-2.5 focus:outline-none !no-underline rounded-"+(w[4]?"r":"l")+" "+(w[2].id===w[0]?w[2].classNames:"text-gray-500 filter grayscale")))&&f(e,"class",i)},i(w){u||(n&&_(n.$$.fragment,w),u=!0)},o(w){n&&k(n.$$.fragment,w),u=!1},d(w){w&&h(e),n&&J(n)}}}function gt(a){let e,n,l=a[1],t=[];for(let s=0;s<l.length;s+=1)t[s]=we(be(a,l,s));const r=s=>k(t[s],1,1,()=>{t[s]=null});return{c(){e=y("div");for(let s=0;s<t.length;s+=1)t[s].c();this.h()},l(s){e=I(s,"DIV",{class:!0});var i=B(e);for(let o=0;o<t.length;o+=1)t[o].l(i);i.forEach(h),this.h()},h(){f(e,"class","bg-white leading-none border border-gray-100 rounded-lg flex p-0.5 w-56 text-sm mb-4")},m(s,i){M(s,e,i);for(let o=0;o<t.length;o+=1)t[o].m(e,null);n=!0},p(s,[i]){if(i&3){l=s[1];let o;for(o=0;o<l.length;o+=1){const u=be(s,l,o);t[o]?(t[o].p(u,i),_(t[o],1)):(t[o]=we(u),t[o].c(),_(t[o],1),t[o].m(e,null))}for(R(),o=l.length;o<t.length;o+=1)r(o);F()}},i(s){if(!n){for(let i=0;i<l.length;i+=1)_(t[i]);n=!0}},o(s){t=t.filter(Boolean);for(let i=0;i<t.length;i+=1)k(t[i]);n=!1},d(s){s&&h(e),te(t,s)}}}function bt(a,e,n){let{fw:l}=e;const t=[{id:"pt",classNames:"bg-red-50 dark:bg-transparent text-red-600",icon:Le,name:"Pytorch"},{id:"tf",classNames:"bg-orange-50 dark:bg-transparent text-yellow-600",icon:Ve,name:"TensorFlow"}];return a.$$set=r=>{"fw"in r&&n(0,l=r.fw)},[l,t]}class kt extends P{constructor(e){super();U(this,e,bt,gt,q,{fw:0})}}export{vt as D,kt as F};
