1import{S as H,i as M,s as N,e as b,t as E,b as _,f as g,g as p,h as D,w,n as v,A as q,aa as we,H as ye,L as J,l as T,x as K,z as ge,a as R,B as V,d as B,Y as Q,v as U,j as C,k as S,E as je,C as F,o as Y,D as O,c as G,m as Z}from"./index.e0c646e0.js";import{E as Ce}from"./Image.70947e40.js";import{c as Ae}from"./csv.27f5436c.js";import{d as Ee}from"./dsv.7fe76a93.js";import{E as ze}from"./Model3D.b527a682.js";var Se=Ee(" "),De=Se.parseRows;function He(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","gr-sample-number")},m(t,n){g(t,e,n),p(e,l)},p(t,[n]){n&1&&D(l,t[0])},i:w,o:w,d(t){t&&v(e)}}}function Me(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Ne extends H{constructor(e){super(),M(this,e,Me,He,N,{value:0})}}function Be(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","gr-sample-dropdown")},m(t,n){g(t,e,n),p(e,l)},p(t,[n]){n&1&&D(l,t[0])},i:w,o:w,d(t){t&&v(e)}}}function Re(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Ie extends H{constructor(e){super(),M(this,e,Re,Be,N,{value:0})}}function Pe(r){let e,l=r[0].toLocaleString()+"",t;return{c(){e=b("div"),t=E(l),_(e,"class","gr-sample-checkbox")},m(n,s){g(n,e,s),p(e,t)},p(n,[s]){s&1&&l!==(l=n[0].toLocaleString()+"")&&D(t,l)},i:w,o:w,d(n){n&&v(e)}}}function Le(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Te extends H{constructor(e){super(),M(this,e,Le,Pe,N,{value:0})}}function Ve(r){let e,l=r[0].join(", ")+"",t;return{c(){e=b("div"),t=E(l),_(e,"class","gr-sample-checkboxgroup")},m(n,s){g(n,e,s),p(e,t)},p(n,[s]){s&1&&l!==(l=n[0].join(", ")+"")&&D(t,l)},i:w,o:w,d(n){n&&v(e)}}}function qe(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Fe extends H{constructor(e){super(),M(this,e,qe,Ve,N,{value:0})}}function Oe(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","gr-sample-slider")},m(t,n){g(t,e,n),p(e,l)},p(t,[n]){n&1&&D(l,t[0])},i:w,o:w,d(t){t&&v(e)}}}function We(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Ye extends H{constructor(e){super(),M(this,e,We,Oe,N,{value:0})}}function Ge(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","gr-sample-radio")},m(t,n){g(t,e,n),p(e,l)},p(t,[n]){n&1&&D(l,t[0])},i:w,o:w,d(t){t&&v(e)}}}function Ze(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Je extends H{constructor(e){super(),M(this,e,Ze,Ge,N,{value:0})}}function Ke(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","gr-sample-textbox")},m(t,n){g(t,e,n),p(e,l)},p(t,[n]){n&1&&D(l,t[0])},i:w,o:w,d(t){t&&v(e)}}}function Qe(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class Ue extends H{constructor(e){super(),M(this,e,Qe,Ke,N,{value:0})}}function Xe(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","gr-sample-audio")},m(t,n){g(t,e,n),p(e,l)},p(t,[n]){n&1&&D(l,t[0])},i:w,o:w,d(t){t&&v(e)}}}function xe(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class $e extends H{constructor(e){super(),M(this,e,xe,Xe,N,{value:0})}}function et(r){let e,l,t,n;return{c(){e=b("video"),e.muted=!0,e.playsInline=!0,_(e,"class","gr-sample-video"),J(e.src,l=r[1]+r[0])||_(e,"src",l)},m(s,i){g(s,e,i),r[3](e),t||(n=[T(e,"mouseover",function(){K(r[2].play)&&r[2].play.apply(this,arguments)}),T(e,"mouseout",function(){K(r[2].pause)&&r[2].pause.apply(this,arguments)})],t=!0)},p(s,i){r=s,i&3&&!J(e.src,l=r[1]+r[0])&&_(e,"src",l)},d(s){s&&v(e),r[3](null),t=!1,ge(n)}}}function tt(r){let e;function l(s,i){return et}let n=l()(r);return{c(){n.c(),e=q()},m(s,i){n.m(s,i),g(s,e,i)},p(s,[i]){n.p(s,i)},i:w,o:w,d(s){n.d(s),s&&v(e)}}}function lt(r,e,l){let{value:t}=e,{samples_dir:n}=e,s;we(()=>{l(2,s.muted=!0,s),l(2,s.playsInline=!0,s),l(2,s.controls=!1,s),s.setAttribute("muted",""),s.play(),s.pause()});function i(o){ye[o?"unshift":"push"](()=>{s=o,l(2,s)})}return r.$$set=o=>{"value"in o&&l(0,t=o.value),"samples_dir"in o&&l(1,n=o.samples_dir)},[t,n,s,i]}class nt extends H{constructor(e){super(),M(this,e,lt,tt,N,{value:0,samples_dir:1})}}function rt(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","truncate")},m(t,n){g(t,e,n),p(e,l)},p(t,n){n&1&&D(l,t[0])},d(t){t&&v(e)}}}function it(r){let e,l=r[0].join(", ")+"",t;return{c(){e=b("div"),t=E(l),_(e,"class","truncate")},m(n,s){g(n,e,s),p(e,t)},p(n,s){s&1&&l!==(l=n[0].join(", ")+"")&&D(t,l)},d(n){n&&v(e)}}}function st(r){let e,l;function t(i,o){return o&1&&(e=null),e==null&&(e=!!Array.isArray(i[0])),e?it:rt}let n=t(r,-1),s=n(r);return{c(){s.c(),l=q()},m(i,o){s.m(i,o),g(i,l,o)},p(i,[o]){n===(n=t(i,o))&&s?s.p(i,o):(s.d(1),s=n(i),s&&(s.c(),s.m(l.parentNode,l)))},i:w,o:w,d(i){s.d(i),i&&v(l)}}}function ot(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class ct extends H{constructor(e){super(),M(this,e,ot,st,N,{value:0})}}function X(r,e,l){const t=r.slice();return t[6]=e[l],t[8]=l,t}function x(r,e,l){const t=r.slice();return t[9]=e[l],t[11]=l,t}function $(r){let e,l,t,n,s,i=r[0].slice(0,3),o=[];for(let a=0;a<i.length;a+=1)o[a]=le(X(r,i,a));let c=r[0].length>3&&ne(r);return{c(){e=b("div"),l=b("table");for(let a=0;a<o.length;a+=1)o[a].c();t=R(),c&&c.c(),_(l,"class","gr-sample-dataframe relative"),_(e,"class","gr-sample-dataframe")},m(a,u){g(a,e,u),p(e,l);for(let f=0;f<o.length;f+=1)o[f].m(l,null);p(l,t),c&&c.m(l,null),n||(s=[T(e,"mouseenter",r[4]),T(e,"mouseleave",r[5])],n=!0)},p(a,u){if(u&1){i=a[0].slice(0,3);let f;for(f=0;f<i.length;f+=1){const h=X(a,i,f);o[f]?o[f].p(h,u):(o[f]=le(h),o[f].c(),o[f].m(l,t))}for(;f<o.length;f+=1)o[f].d(1);o.length=i.length}a[0].length>3?c?c.p(a,u):(c=ne(a),c.c(),c.m(l,null)):c&&(c.d(1),c=null)},d(a){a&&v(e),V(o,a),c&&c.d(),n=!1,ge(s)}}}function ee(r){let e,l=r[9]+"",t,n;return{c(){e=b("td"),t=E(l),_(e,"class",n="p-2 "+(r[8]<3?"border-b border-b-slate-300 dark:border-b-slate-700":"")+" "+(r[11]<3?"border-r border-r-slate-300 dark:border-r-slate-700 ":""))},m(s,i){g(s,e,i),p(e,t)},p(s,i){i&1&&l!==(l=s[9]+"")&&D(t,l)},d(s){s&&v(e)}}}function te(r){let e;return{c(){e=b("td"),e.textContent="\u2026",_(e,"class","p-2 border-r border-b border-r-slate-300 dark:border-r-slate-700 border-b-slate-300 dark:border-b-slate-700")},m(l,t){g(l,e,t)},d(l){l&&v(e)}}}function le(r){let e,l,t=r[6].slice(0,3),n=[];for(let i=0;i<t.length;i+=1)n[i]=ee(x(r,t,i));let s=r[6].length>3&&te();return{c(){e=b("tr");for(let i=0;i<n.length;i+=1)n[i].c();l=R(),s&&s.c()},m(i,o){g(i,e,o);for(let c=0;c<n.length;c+=1)n[c].m(e,null);p(e,l),s&&s.m(e,null)},p(i,o){if(o&1){t=i[6].slice(0,3);let c;for(c=0;c<t.length;c+=1){const a=x(i,t,c);n[c]?n[c].p(a,o):(n[c]=ee(a),n[c].c(),n[c].m(e,l))}for(;c<n.length;c+=1)n[c].d(1);n.length=t.length}i[6].length>3?s||(s=te(),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},d(i){i&&v(e),V(n,i),s&&s.d()}}}function ne(r){let e;return{c(){e=b("div"),_(e,"class","absolute w-full h-[50%] bottom-0 bg-gradient-to-b from-[rgba(255,255,255,0)] dark:from-[rgba(0,0,0,0)] to-white"),B(e,"dark:to-gray-950",!r[2]),B(e,"dark:to-gray-800",r[2]),B(e,"to-gray-50",r[2])},m(l,t){g(l,e,t)},p(l,t){t&4&&B(e,"dark:to-gray-950",!l[2]),t&4&&B(e,"dark:to-gray-800",l[2]),t&4&&B(e,"to-gray-50",l[2])},d(l){l&&v(e)}}}function at(r){let e,l=r[1]&&$(r);return{c(){l&&l.c(),e=q()},m(t,n){l&&l.m(t,n),g(t,e,n)},p(t,[n]){t[1]?l?l.p(t,n):(l=$(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},i:w,o:w,d(t){l&&l.d(t),t&&v(e)}}}function ft(r,e,l){let{value:t}=e,{samples_dir:n}=e,s=!1,i=Array.isArray(t);const o=()=>l(2,s=!0),c=()=>l(2,s=!1);return r.$$set=a=>{"value"in a&&l(0,t=a.value),"samples_dir"in a&&l(3,n=a.samples_dir)},r.$$.update=()=>{r.$$.dirty&11&&!i&&typeof t=="string"&&/\.[a-zA-Z]+$/.test(t)&&fetch(n+t).then(a=>a.text()).then(a=>{try{if(t.endsWith("csv")){const u=a.split(` 2`).slice(0,4).map(f=>f.split(",").slice(0,4).join(",")).join(` 3`);l(0,t=Ae(u))}else if(t.endsWith("tsv")){const u=a.split(` 4`).slice(0,4).map(f=>f.split(" ").slice(0,4).join(" ")).join(` 5`);l(0,t=De(u))}else throw new Error("Incorrect format, only CSV and TSV files are supported");l(1,i=!0)}catch(u){console.error(u)}})},[t,i,s,n,o,c]}class ut extends H{constructor(e){super(),M(this,e,ft,at,N,{value:0,samples_dir:3})}}function dt(r){let e;return{c(){e=b("div"),_(e,"class","w-10 h-10 border dark:border-slate-300"),Q(e,"background-color",r[0])},m(l,t){g(l,e,t)},p(l,[t]){t&1&&Q(e,"background-color",l[0])},i:w,o:w,d(l){l&&v(e)}}}function _t(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class mt extends H{constructor(e){super(),M(this,e,_t,dt,N,{value:0})}}function ht(r){let e,l;return{c(){e=b("div"),l=E(r[0]),_(e,"class","truncate")},m(t,n){g(t,e,n),p(e,l)},p(t,[n]){n&1&&D(l,t[0])},i:w,o:w,d(t){t&&v(e)}}}function gt(r,e,l){let{value:t}=e;return r.$$set=n=>{"value"in n&&l(0,t=n.value)},[t]}class vt extends H{constructor(e){super(),M(this,e,gt,ht,N,{value:0})}}const L={dropdown:Ie,checkbox:Te,checkboxgroup:Fe,number:Ne,slider:Ye,radio:Je,image:Ce,textbox:Ue,audio:$e,video:nt,file:ct,dataframe:ut,model3d:ze,colorpicker:mt,timeseries:vt};function re(r,e,l){const t=r.slice();return t[21]=e[l],t}function ie(r,e,l){const t=r.slice();return t[24]=e[l],t[26]=l,t}function se(r,e,l){const t=r.slice();return t[0]=e[l].value,t[28]=e[l].component,t[30]=l,t}function oe(r,e,l){const t=r.slice();return t[31]=e[l],t}function ce(r,e,l){const t=r.slice();return t[24]=e[l],t[26]=l,t}function bt(r){let e,l,t,n,s,i,o,c=r[3],a=[];for(let m=0;m<c.length;m+=1)a[m]=ae(oe(r,c,m));let u=r[10],f=[];for(let m=0;m<u.length;m+=1)f[m]=de(ie(r,u,m));const h=m=>S(f[m],1,1,()=>{f[m]=null});return{c(){e=b("div"),l=b("table"),t=b("thead"),n=b("tr");for(let m=0;m<a.length;m+=1)a[m].c();s=R(),i=b("tbody");for(let m=0;m<f.length;m+=1)f[m].c();_(n,"class","border-b dark:border-gray-800 divide-x dark:divide-gray-800 shadow-sm"),_(l,"class","gr-samples-table"),_(e,"class","overflow-x-auto border table-auto rounded-lg w-full text-sm")},m(m,j){g(m,e,j),p(e,l),p(l,t),p(t,n);for(let d=0;d<a.length;d+=1)a[d].m(n,null);p(l,s),p(l,i);for(let d=0;d<f.length;d+=1)f[d].m(i,null);o=!0},p(m,j){if(j[0]&8){c=m[3];let d;for(d=0;d<c.length;d+=1){const z=oe(m,c,d);a[d]?a[d].p(z,j):(a[d]=ae(z),a[d].c(),a[d].m(n,null))}for(;d<a.length;d+=1)a[d].d(1);a.length=c.length}if(j[0]&7363){u=m[10];let d;for(d=0;d<u.length;d+=1){const z=ie(m,u,d);f[d]?(f[d].p(z,j),C(f[d],1)):(f[d]=de(z),f[d].c(),C(f[d],1),f[d].m(i,null))}for(F(),d=u.length;d<f.length;d+=1)h(d);O()}},i(m){if(!o){for(let j=0;j<u.length;j+=1)C(f[j]);o=!0}},o(m){f=f.filter(Boolean);for(let j=0;j<f.length;j+=1)S(f[j]);o=!1}
5,d(m){m&&v(e),V(a,m),V(f,m)}}}function pt(r){let e,l,t=r[8],n=[];for(let i=0;i<t.length;i+=1)n[i]=me(ce(r,t,i));const s=i=>S(n[i],1,1,()=>{n[i]=null});return{c(){e=b("div");for(let i=0;i<n.length;i+=1)n[i].c();_(e,"class","gr-samples-gallery")},m(i,o){g(i,e,o);for(let c=0;c<n.length;c+=1)n[c].m(e,null);l=!0},p(i,o){if(o[0]&7619){t=i[8];let c;for(c=0;c<t.length;c+=1){const a=ce(i,t,c);n[c]?(n[c].p(a,o),C(n[c],1)):(n[c]=me(a),n[c].c(),C(n[c],1),n[c].m(e,null))}for(F(),c=t.length;c<n.length;c+=1)s(c);O()}},i(i){if(!l){for(let o=0;o<t.length;o+=1)C(n[o]);l=!0}},o(i){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)S(n[o]);l=!1},d(i){i&&v(e),V(n,i)}}}function ae(r){let e,l=r[31]+"",t,n;return{c(){e=b("th"),t=E(l),n=R(),_(e,"class","p-2 whitespace-nowrap min-w-lg text-left")},m(s,i){g(s,e,i),p(e,t),p(e,n)},p(s,i){i[0]&8&&l!==(l=s[31]+"")&&D(t,l)},d(s){s&&v(e)}}}function fe(r){let e,l,t;var n=r[28];function s(i){return{props:{value:i[0],samples_dir:i[12]}}}return n&&(l=new n(s(r))),{c(){e=b("td"),l&&G(l.$$.fragment),_(e,"class","p-2")},m(i,o){g(i,e,o),l&&Z(l,e,null),t=!0},p(i,o){const c={};if(o[0]&1024&&(c.value=i[0]),n!==(n=i[28])){if(l){F();const a=l;S(a.$$.fragment,1,0,()=>{Y(a,1)}),O()}n?(l=new n(s(i)),G(l.$$.fragment),C(l.$$.fragment,1),Z(l,e,null)):l=null}else n&&l.$set(c)},i(i){t||(l&&C(l.$$.fragment,i),t=!0)},o(i){l&&S(l.$$.fragment,i),t=!1},d(i){i&&v(e),l&&Y(l)}}}function ue(r){let e,l,t=r[1][r[30]]!==void 0&&L[r[1][r[30]]]!==void 0&&fe(r);return{c(){t&&t.c(),e=q()},m(n,s){t&&t.m(n,s),g(n,e,s),l=!0},p(n,s){n[1][n[30]]!==void 0&&L[n[1][n[30]]]!==void 0?t?(t.p(n,s),s[0]&2&&C(t,1)):(t=fe(n),t.c(),C(t,1),t.m(e.parentNode,e)):t&&(F(),S(t,1,1,()=>{t=null}),O())},i(n){l||(C(t),l=!0)},o(n){S(t),l=!1},d(n){t&&t.d(n),n&&v(e)}}}function de(r){let e,l,t,n,s,i=r[24],o=[];for(let u=0;u<i.length;u+=1)o[u]=ue(se(r,i,u));const c=u=>S(o[u],1,1,()=>{o[u]=null});function a(){return r[19](r[26])}return{c(){e=b("tr");for(let u=0;u<o.length;u+=1)o[u].c();l=R(),_(e,"class","group cursor-pointer odd:bg-gray-50 border-b dark:border-gray-800 divide-x dark:divide-gray-800 last:border-none hover:bg-orange-50 hover:divide-orange-100 dark:hover:bg-gray-700")},m(u,f){g(u,e,f);for(let h=0;h<o.length;h+=1)o[h].m(e,null);p(e,l),t=!0,n||(s=T(e,"click",a),n=!0)},p(u,f){if(r=u,f[0]&5122){i=r[24];let h;for(h=0;h<i.length;h+=1){const m=se(r,i,h);o[h]?(o[h].p(m,f),C(o[h],1)):(o[h]=ue(m),o[h].c(),C(o[h],1),o[h].m(e,l))}for(F(),h=i.length;h<o.length;h+=1)c(h);O()}},i(u){if(!t){for(let f=0;f<i.length;f+=1)C(o[f]);t=!0}},o(u){o=o.filter(Boolean);for(let f=0;f<o.length;f+=1)S(o[f]);t=!1},d(u){u&&v(e),V(o,u),n=!1,s()}}}function _e(r){let e,l,t;var n=r[10][0][0].component;function s(i){return{props:{value:i[24][0],samples_dir:i[12]}}}
5return n&&(e=new n(s(r))),{c(){e&&G(e.$$.fragment),l=q()},m(i,o){e&&Z(e,i,o),g(i,l,o),t=!0},p(i,o){const c={};if(o[0]&256&&(c.value=i[24][0]),n!==(n=i[10][0][0].component)){if(e){F();const a=e;S(a.$$.fragment,1,0,()=>{Y(a,1)}),O()}n?(e=new n(s(i)),G(e.$$.fragment),C(e.$$.fragment,1),Z(e,l.parentNode,l)):e=null}else n&&e.$set(c)},i(i){t||(e&&C(e.$$.fragment,i),t=!0)},o(i){e&&S(e.$$.fragment,i),t=!1},d(i){i&&v(l),e&&Y(e,i)}}}function me(r){let e,l=Object.keys(L).includes(r[1][0])&&L[r[1][0]],t,n,s,i,o=l&&_e(r);function c(){return r[18](r[26])}return{c(){e=b("button"),o&&o.c(),t=R(),_(e,"class","group rounded-lg")},m(a,u){g(a,e,u),o&&o.m(e,null),p(e,t),n=!0,s||(i=T(e,"click",c),s=!0)},p(a,u){r=a,u[0]&2&&(l=Object.keys(L).includes(r[1][0])&&L[r[1][0]]),l?o?(o.p(r,u),u[0]&2&&C(o,1)):(o=_e(r),o.c(),C(o,1),o.m(e,t)):o&&(F(),S(o,1,1,()=>{o=null}),O())},i(a){n||(C(o),n=!0)},o(a){S(o),n=!1},d(a){a&&v(e),o&&o.d(),s=!1,i()}}}function kt(r){let e,l,t=r[9],n=[];for(let s=0;s<t.length;s+=1)n[s]=he(re(r,t,s));return{c(){e=b("div"),l=E(`Pages: 6 `);for(let s=0;s<n.length;s+=1)n[s].c();_(e,"class","flex gap-2 items-center justify-center text-sm")},m(s,i){g(s,e,i),p(e,l);for(let o=0;o<n.length;o+=1)n[o].m(e,null)},p(s,i){if(i[0]&640){t=s[9];let o;for(o=0;o<t.length;o+=1){const c=re(s,t,o);n[o]?n[o].p(c,i):(n[o]=he(c),n[o].c(),n[o].m(e,null))}for(;o<n.length;o+=1)n[o].d(1);n.length=t.length}},d(s){s&&v(e),V(n,s)}}}function wt(r){let e,l=r[21]+1+"",t,n,s,i;function o(){return r[20](r[21])}return{c(){e=b("button"),t=E(l),n=R(),B(e,"font-bold",r[7]===r[21])},m(c,a){g(c,e,a),p(e,t),p(e,n),s||(i=T(e,"click",o),s=!0)},p(c,a){r=c,a[0]&512&&l!==(l=r[21]+1+"")&&D(t,l),a[0]&640&&B(e,"font-bold",r[7]===r[21])},d(c){c&&v(e),s=!1,i()}}}function yt(r){let e;return{c(){e=b("div"),e.textContent="..."},m(l,t){g(l,e,t)},p:w,d(l){l&&v(e)}}}function he(r){let e;function l(s,i){return s[21]===-1?yt:wt}let t=l(r),n=t(r);return{c(){n.c(),e=q()},m(s,i){n.m(s,i),g(s,e,i)},p(s,i){t===(t=l(s))&&n?n.p(s,i):(n.d(1),n=t(s),n&&(n.c(),n.m(e.parentNode,e)))},d(s){n.d(s),s&&v(e)}}}function jt(r){let e,l,t,n,s,i,o,c,a,u,f,h;const m=[pt,bt],j=[];function d(y,A){return y[13]?0:1}c=d(r),a=j[c]=m[c](r);let z=r[14]&&kt(r);return{c(){e=b("div"),l=b("div"),t=U("svg"),n=U("path"),s=R(),i=E(r[2]),o=R(),a.c(),u=R(),z&&z.c(),f=q(),_(n,"fill","currentColor"),_(n,"d","M10 6h18v2H10zm0 18h18v2H10zm0-9h18v2H10zm-6 0h2v2H4zm0-9h2v2H4zm0 18h2v2H4z"),_(t,"xmlns","http://www.w3.org/2000/svg"),_(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),_(t,"aria-hidden","true"),_(t,"role","img"),_(t,"class","mr-1"),_(t,"width","1em"),_(t,"height","1em"),_(t,"preserveAspectRatio","xMidYMid meet"),_(t,"viewBox","0 0 32 32"),_(l,"class","text-xs mb-2 flex items-center text-gray-500"),_(e,"id",r[4]),_(e,"class","mt-4 inline-block max-w-full text-gray-700 w-full"),B(e,"!hidden",!r[5])},m(y,A){g(y,e,A),p(e,l),p(l,t),p(t,n),p(l,s),p(l,i),p(e,o),j[c].m(e,null),g(y,u,A),z&&z.m(y,A),g(y,f,A),h=!0},p(y,A){(!h||A[0]&4)&&D(i,y[2]),a.p(y,A),(!h||A[0]&16)&&_(e,"id",y[4]),A[0]&32&&B(e,"!hidden",!y[5]),y[14]&&z.p(y,A)},i(y){h||(C(a),h=!0)},o(y){S(a),h=!1},d(y){y&&v(e),j[c].d(),y&&v(u),z&&z.d(y),y&&v(f)}}}function Ct(r,e,l){let t,{components:n}=e,{label:s="Examples"}=e,{headers:i}=e,{samples:o}=e,{elem_id:c=""}=e,{visible:a=!0}=e,{value:u=null}=e,{root:f}=e,{samples_per_page:h=10}=e;const m=je();let j=f+"file=",d=0,z=i.length===1,y=o.length>h,A,W,P=[];const ve=k=>{l(0,u=k+d*h),m("click",u)},be=k=>{l(0,u=k+d*h),m("click",u)},pe=k=>l(7,d=k);return r.$$set=k=>{"components"in k&&l(1,n=k.components),"label"in k&&l(2,s=k.label),"headers"in k&&l(3,i=k.headers),"samples"in k&&l(15,o=k.samples),"elem_id"in k&&l(4,c=k.elem_id),"visible"in k&&l(5,a=k.visible),"value"in k&&l(0,u=k.value),"root"in k&&l(16,f=k.root),"samples_per_page"in k&&l(6,h=k.samples_per_page)},r.$$.update=()=>{r.$$.dirty[0]&164544&&(y?(l(9,P=[]),l(8,A=o.slice(d*h,(d+1)*h)),l(17,W=Math.ceil(o.length/h)),[0,d,W-1].forEach(k=>{for(let I=k-2;I<=k+2;I++)I>=0&&I<W&&!P.includes(I)&&(P.length>0&&I-P[P.length-1]>1&&P.push(-1),P.push(I))})):l(8,A=o.slice())),r.$$.dirty[0]&258&&l(10,t=A.map(k=>k.map((I,ke)=>({value:I,component:L[n[ke]]}))))},[u,n,s,i,c,a,h,d,A,P,t,m,j,z,y,o,f,W,ve,be,pe]}class At extends H{constructor(e){super(),M(this,e,Ct,jt,N,{components:1,label:2,headers:3,samples:15,elem_id:4,visible:5,value:0,root:16,samples_per_page:6},null,[-1,-1])}}var Mt=At;const Nt=["dynamic"];export{Mt as Component,Nt as modes};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.