import{s as gt,d as l,i,a as Ue,b as p,e as u,h as kt,f as m,g as Ne,j as _,k as c,l as $,m as ht,n as xt,o as bt,p as Ct,q as Tt,r as v,t as Mt,u as Ht,v as yt}from"../chunks/scheduler.DvKrEcvj.js";import{S as Lt,i as Pt,d as k,t as x,a as b,m as C,c as T,b as M}from"../chunks/index.mYUrQtkg.js";import{P as H}from"../chunks/PropListing.CkjAHd3M.js";import{C as Re}from"../chunks/VennDiagram.svelte_svelte_type_style_lang.BhK-BAty.js";import{w as Et}from"../chunks/entry.CFTpQVQ7.js";import{e as jt,s as It,p as qt,a as _t,r as wt,C as At}from"../chunks/inferColumnTypes.jN6ZEpJ5.js";import{p as St}from"../chunks/stores.DIVqs-NN.js";import{p as Dt}from"../chunks/profile.BW8tN6E9.js";function Ft(f){let t,a=w.title+"",s;return{c(){t=$("h1"),s=yt(a),this.h()},l(o){t=m(o,"H1",{class:!0});var d=Mt(t);s=Ht(d,a),d.forEach(l),this.h()},h(){p(t,"class","title")},m(o,d){i(o,t,d),Ue(t,s)},p:v,d(o){o&&l(t)}}}function Ot(f){return{c(){this.h()},l(t){this.h()},h(){document.title="Evidence"},m:v,p:v,d:v}}function zt(f){let t,a,s,o,d;return document.title=t=w.title,{c(){a=c(),s=$("meta"),o=c(),d=$("meta"),this.h()},l(r){a=u(r),s=m(r,"META",{property:!0,content:!0}),o=u(r),d=m(r,"META",{name:!0,content:!0}),this.h()},h(){var r,h;p(s,"property","og:title"),p(s,"content",((r=w.og)==null?void 0:r.title)??w.title),p(d,"name","twitter:title"),p(d,"content",((h=w.og)==null?void 0:h.title)??w.title)},m(r,h){i(r,a,h),i(r,s,h),i(r,o,h),i(r,d,h)},p(r,h){h&0&&t!==(t=w.title)&&(document.title=t)},d(r){r&&(l(a),l(s),l(o),l(d))}}}function Ut(f){var d;let t,a,s=Nt(),o=((d=w.og)==null?void 0:d.image)&&Rt();return{c(){s&&s.c(),t=c(),o&&o.c(),a=Ne()},l(r){s&&s.l(r),t=u(r),o&&o.l(r),a=Ne()},m(r,h){s&&s.m(r,h),i(r,t,h),o&&o.m(r,h),i(r,a,h)},p(r,h){var L;s.p(r,h),(L=w.og)!=null&&L.image&&o.p(r,h)},d(r){r&&(l(t),l(a)),s&&s.d(r),o&&o.d(r)}}}function Nt(f){let t,a,s,o,d;return{c(){t=$("meta"),a=c(),s=$("meta"),o=c(),d=$("meta"),this.h()},l(r){t=m(r,"META",{name:!0,content:!0}),a=u(r),s=m(r,"META",{property:!0,content:!0}),o=u(r),d=m(r,"META",{name:!0,content:!0}),this.h()},h(){var r,h;p(t,"name","description"),p(t,"content",w.description),p(s,"property","og:description"),p(s,"content",((r=w.og)==null?void 0:r.description)??w.description),p(d,"name","twitter:description"),p(d,"content",((h=w.og)==null?void 0:h.description)??w.description)},m(r,h){i(r,t,h),i(r,a,h),i(r,s,h),i(r,o,h),i(r,d,h)},p:v,d(r){r&&(l(t),l(a),l(s),l(o),l(d))}}}function Rt(f){let t,a,s;return{c(){t=$("meta"),a=c(),s=$("meta"),this.h()},l(o){t=m(o,"META",{property:!0,content:!0}),a=u(o),s=m(o,"META",{name:!0,content:!0}),this.h()},h(){var o,d;p(t,"property","og:image"),p(t,"content",_t((o=w.og)==null?void 0:o.image)),p(s,"name","twitter:image"),p(s,"content",_t((d=w.og)==null?void 0:d.image))},m(o,d){i(o,t,d),i(o,a,d),i(o,s,d)},p:v,d(o){o&&(l(t),l(a),l(s))}}}function Gt(f){let t,a="Name or Title of the option";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-8ugd8f"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Bt(f){let t,a="Control to show";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-154a3d9"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Qt(f){let t,a='Secret values are placed in connection.options.yaml, which is not source controlled';return{c(){t=$("p"),t.innerHTML=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-ofwfq7"&&(t.innerHTML=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Xt(f){let t,a="Displays value in UI elements (e.g. for usernames, that should not be source controlled but are not 'secret'. Otherwise the field will display as ∙∙∙)";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-1qc1x9e"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Yt(f){let t,a="Disables saving a field, useful for credential files";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-zm5rlr"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Kt(f){let t,a='Indicates that the field should get its value from another field if it is available, useful for credential files. Formatted as a json path';return{c(){t=$("p"),t.innerHTML=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-zubd4m"&&(t.innerHTML=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Vt(f){let t,a="If true, the input is disabled and the value can only come from a reference";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-x8u3cn"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Jt(f){let t,a='If type is file, set how it should be parsed. It will then be available to references';return{c(){t=$("p"),t.innerHTML=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-o8pt6d"&&(t.innerHTML=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Wt(f){let t,a="Description of the option, shown as a hint in UI";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-pur4td"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function Zt(f){let t,a='See children';return{c(){t=$("p"),t.innerHTML=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-14ij1ot"&&(t.innerHTML=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function es(f){let t,a="Indicates that the user must provide this option";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-64iaq"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function ts(f){let t,a='Available options for select type';return{c(){t=$("p"),t.innerHTML=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-111r6gd"&&(t.innerHTML=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function ss(f){let t,a='Determines behavior of children';return{c(){t=$("p"),t.innerHTML=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-1rxi15j"&&(t.innerHTML=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function ns(f){let t,a="Default Value";return{c(){t=$("p"),t.textContent=a,this.h()},l(s){t=m(s,"P",{class:!0,"data-svelte-h":!0}),_(t)!=="svelte-1e1p2ws"&&(t.textContent=a),this.h()},h(){p(t,"class","markdown")},m(s,o){i(s,t,o)},p:v,d(s){s&&l(t)}}}function ls(f){let t,a,s,o,d,r,h=`To see a working example of a data source plugin, the Evidence postgres source plugin is a good
reference.`,L,y,pe='Get started',oe,g,fe='To get started, go to the data source template repo and click to "Use This Template". Then, follow the directions in the README in that repo.',ue,P,Ge='Options Specification',ce,A,Be=`Evidence Datasources must provide an options export; this is used to
build UI and validation to ensure an excellent UX for Evidence users.`,me,S,Qe="Options can have the following fields:",$e,D,de,F,he,O,_e,z,we,U,ve,N,ge,R,ke,G,xe,B,be,Q,Ce,X,Te,Y,Me,K,He,V,ye,E,Xe='Children',Le,J,Ye=`Many datasources have variable configuration (e.g. if ssl is enabled for postgres, then an ssl mode can be selected), and Evidence
options support this workflow.`,Pe,W,Ke="Consider this partial postgres ssl option:",Ee,le,je,Z,Ve=`ssl.children is a record of possible values to an additional set of options that are exposed then the values match.
In this example, the sslmode option is only displayed when ssl is true.`,Ie,ee,Je="The resulting type of this option is:",qe,ie,Ae,te,We='In cases where you want a flat object, rather than a nested object; set nest to false.',Se,se,Ze="This would produce",De,ae,Fe,j,et='Promoting Your Plugin',Oe,ne,tt='If you are building a plugin for other Evidence users, let us know in Slack and we can share it with the community.',ze,I=typeof w<"u"&&w.title&&w.hide_title!==!0&&Ft();function vt(e,n){return typeof w<"u"&&w.title?zt:Ot}let re=vt()(f),q=typeof w=="object"&&Ut();return D=new H({props:{name:"title",type:"string",required:!0,$$slots:{default:[Gt]},$$scope:{ctx:f}}}),F=new H({props:{name:"type",type:["string","number","boolean","select","file"],required:!0,$$slots:{default:[Bt]},$$scope:{ctx:f}}}),O=new H({props:{name:"secret",type:"boolean",$$slots:{default:[Qt]},$$scope:{ctx:f}}}),z=new H({props:{name:"shown",type:"boolean",$$slots:{default:[Xt]},$$scope:{ctx:f}}}),U=new H({props:{name:"virtual",type:"boolean",$$slots:{default:[Yt]},$$scope:{ctx:f}}}),N=new H({props:{name:"references",type:"string",$$slots:{default:[Kt]},$$scope:{ctx:f}}}),R=new H({props:{name:"forceReference",type:"boolean",$$slots:{default:[Vt]},$$scope:{ctx:f}}}),G=new H({props:{name:"fileFormat",type:["json","yaml"],$$slots:{default:[Jt]},$$scope:{ctx:f}}}),B=new H({props:{name:"description",type:"string",$$slots:{default:[Wt]},$$scope:{ctx:f}}}),Q=new H({props:{name:"children",type:"Record",$$slots:{default:[Zt]},$$scope:{ctx:f}}}),X=new H({props:{name:"required",type:"boolean",$$slots:{default:[es]},$$scope:{ctx:f}}}),Y=new H({props:{name:"options",type:"Array<{label: string, value:string}>",$$slots:{default:[ts]},$$scope:{ctx:f}}}),K=new H({props:{name:"nest",type:"boolean",$$slots:{default:[ss]},$$scope:{ctx:f}}}),V=new H({props:{name:"default",type:["string","number","boolean"],$$slots:{default:[ns]},$$scope:{ctx:f}}}),le=new Re({props:{source:`ssl: {
type: 'boolean',
// ...
nest: true,
children: {
[true]: {
sslmode: {
// ...
}
}
}
},`,copyToClipboard:"true",language:"javascript"}}),ie=new Re({props:{source:"{ ssl: false } | { ssl: { sslmode: string } }",copyToClipboard:"true",language:"typescript"}}),ae=new Re({props:{source:"{ ssl: false } | { ssl: true, sslmode: string }",copyToClipboard:"true",language:"typescript"}}),{c(){I&&I.c(),t=c(),re.c(),a=$("meta"),s=$("meta"),q&&q.c(),o=Ne(),d=c(),r=$("p"),r.innerHTML=h,L=c(),y=$("h2"),y.innerHTML=pe,oe=c(),g=$("p"),g.innerHTML=fe,ue=c(),P=$("h2"),P.innerHTML=Ge,ce=c(),A=$("p"),A.innerHTML=Be,me=c(),S=$("p"),S.textContent=Qe,$e=c(),M(D.$$.fragment),de=c(),M(F.$$.fragment),he=c(),M(O.$$.fragment),_e=c(),M(z.$$.fragment),we=c(),M(U.$$.fragment),ve=c(),M(N.$$.fragment),ge=c(),M(R.$$.fragment),ke=c(),M(G.$$.fragment),xe=c(),M(B.$$.fragment),be=c(),M(Q.$$.fragment),Ce=c(),M(X.$$.fragment),Te=c(),M(Y.$$.fragment),Me=c(),M(K.$$.fragment),He=c(),M(V.$$.fragment),ye=c(),E=$("h3"),E.innerHTML=Xe,Le=c(),J=$("p"),J.textContent=Ye,Pe=c(),W=$("p"),W.textContent=Ke,Ee=c(),M(le.$$.fragment),je=c(),Z=$("p"),Z.innerHTML=Ve,Ie=c(),ee=$("p"),ee.textContent=Je,qe=c(),M(ie.$$.fragment),Ae=c(),te=$("p"),te.innerHTML=We,Se=c(),se=$("p"),se.textContent=Ze,De=c(),M(ae.$$.fragment),Fe=c(),j=$("h2"),j.innerHTML=et,Oe=c(),ne=$("p"),ne.innerHTML=tt,this.h()},l(e){I&&I.l(e),t=u(e);const n=kt("svelte-2igo1p",document.head);re.l(n),a=m(n,"META",{name:!0,content:!0}),s=m(n,"META",{name:!0,content:!0}),q&&q.l(n),o=Ne(),n.forEach(l),d=u(e),r=m(e,"P",{class:!0,"data-svelte-h":!0}),_(r)!=="svelte-k6em2e"&&(r.innerHTML=h),L=u(e),y=m(e,"H2",{class:!0,id:!0,"data-svelte-h":!0}),_(y)!=="svelte-a18rux"&&(y.innerHTML=pe),oe=u(e),g=m(e,"P",{class:!0,"data-svelte-h":!0}),_(g)!=="svelte-1artwcz"&&(g.innerHTML=fe),ue=u(e),P=m(e,"H2",{class:!0,id:!0,"data-svelte-h":!0}),_(P)!=="svelte-v4vfof"&&(P.innerHTML=Ge),ce=u(e),A=m(e,"P",{class:!0,"data-svelte-h":!0}),_(A)!=="svelte-1bjren7"&&(A.innerHTML=Be),me=u(e),S=m(e,"P",{class:!0,"data-svelte-h":!0}),_(S)!=="svelte-154mruz"&&(S.textContent=Qe),$e=u(e),T(D.$$.fragment,e),de=u(e),T(F.$$.fragment,e),he=u(e),T(O.$$.fragment,e),_e=u(e),T(z.$$.fragment,e),we=u(e),T(U.$$.fragment,e),ve=u(e),T(N.$$.fragment,e),ge=u(e),T(R.$$.fragment,e),ke=u(e),T(G.$$.fragment,e),xe=u(e),T(B.$$.fragment,e),be=u(e),T(Q.$$.fragment,e),Ce=u(e),T(X.$$.fragment,e),Te=u(e),T(Y.$$.fragment,e),Me=u(e),T(K.$$.fragment,e),He=u(e),T(V.$$.fragment,e),ye=u(e),E=m(e,"H3",{class:!0,id:!0,"data-svelte-h":!0}),_(E)!=="svelte-1xpwx7h"&&(E.innerHTML=Xe),Le=u(e),J=m(e,"P",{class:!0,"data-svelte-h":!0}),_(J)!=="svelte-jnyzd1"&&(J.textContent=Ye),Pe=u(e),W=m(e,"P",{class:!0,"data-svelte-h":!0}),_(W)!=="svelte-vsx598"&&(W.textContent=Ke),Ee=u(e),T(le.$$.fragment,e),je=u(e),Z=m(e,"P",{class:!0,"data-svelte-h":!0}),_(Z)!=="svelte-1wfjnwx"&&(Z.innerHTML=Ve),Ie=u(e),ee=m(e,"P",{class:!0,"data-svelte-h":!0}),_(ee)!=="svelte-12zu652"&&(ee.textContent=Je),qe=u(e),T(ie.$$.fragment,e),Ae=u(e),te=m(e,"P",{class:!0,"data-svelte-h":!0}),_(te)!=="svelte-wk231r"&&(te.innerHTML=We),Se=u(e),se=m(e,"P",{class:!0,"data-svelte-h":!0}),_(se)!=="svelte-12ofi05"&&(se.textContent=Ze),De=u(e),T(ae.$$.fragment,e),Fe=u(e),j=m(e,"H2",{class:!0,id:!0,"data-svelte-h":!0}),_(j)!=="svelte-1gz182r"&&(j.innerHTML=et),Oe=u(e),ne=m(e,"P",{class:!0,"data-svelte-h":!0}),_(ne)!=="svelte-1hgvhrk"&&(ne.innerHTML=tt),this.h()},h(){p(a,"name","twitter:card"),p(a,"content","summary_large_image"),p(s,"name","twitter:site"),p(s,"content","@evidence_dev"),p(r,"class","markdown"),p(y,"class","markdown"),p(y,"id","get-started"),p(g,"class","markdown"),p(P,"class","markdown"),p(P,"id","options-specification"),p(A,"class","markdown"),p(S,"class","markdown"),p(E,"class","markdown"),p(E,"id","children"),p(J,"class","markdown"),p(W,"class","markdown"),p(Z,"class","markdown"),p(ee,"class","markdown"),p(te,"class","markdown"),p(se,"class","markdown"),p(j,"class","markdown"),p(j,"id","promoting-your-plugin"),p(ne,"class","markdown")},m(e,n){I&&I.m(e,n),i(e,t,n),re.m(document.head,null),Ue(document.head,a),Ue(document.head,s),q&&q.m(document.head,null),Ue(document.head,o),i(e,d,n),i(e,r,n),i(e,L,n),i(e,y,n),i(e,oe,n),i(e,g,n),i(e,ue,n),i(e,P,n),i(e,ce,n),i(e,A,n),i(e,me,n),i(e,S,n),i(e,$e,n),C(D,e,n),i(e,de,n),C(F,e,n),i(e,he,n),C(O,e,n),i(e,_e,n),C(z,e,n),i(e,we,n),C(U,e,n),i(e,ve,n),C(N,e,n),i(e,ge,n),C(R,e,n),i(e,ke,n),C(G,e,n),i(e,xe,n),C(B,e,n),i(e,be,n),C(Q,e,n),i(e,Ce,n),C(X,e,n),i(e,Te,n),C(Y,e,n),i(e,Me,n),C(K,e,n),i(e,He,n),C(V,e,n),i(e,ye,n),i(e,E,n),i(e,Le,n),i(e,J,n),i(e,Pe,n),i(e,W,n),i(e,Ee,n),C(le,e,n),i(e,je,n),i(e,Z,n),i(e,Ie,n),i(e,ee,n),i(e,qe,n),C(ie,e,n),i(e,Ae,n),i(e,te,n),i(e,Se,n),i(e,se,n),i(e,De,n),C(ae,e,n),i(e,Fe,n),i(e,j,n),i(e,Oe,n),i(e,ne,n),ze=!0},p(e,[n]){typeof w<"u"&&w.title&&w.hide_title!==!0&&I.p(e,n),re.p(e,n),typeof w=="object"&&q.p(e,n);const st={};n&4096&&(st.$$scope={dirty:n,ctx:e}),D.$set(st);const nt={};n&4096&&(nt.$$scope={dirty:n,ctx:e}),F.$set(nt);const lt={};n&4096&&(lt.$$scope={dirty:n,ctx:e}),O.$set(lt);const it={};n&4096&&(it.$$scope={dirty:n,ctx:e}),z.$set(it);const at={};n&4096&&(at.$$scope={dirty:n,ctx:e}),U.$set(at);const ot={};n&4096&&(ot.$$scope={dirty:n,ctx:e}),N.$set(ot);const rt={};n&4096&&(rt.$$scope={dirty:n,ctx:e}),R.$set(rt);const pt={};n&4096&&(pt.$$scope={dirty:n,ctx:e}),G.$set(pt);const ft={};n&4096&&(ft.$$scope={dirty:n,ctx:e}),B.$set(ft);const ut={};n&4096&&(ut.$$scope={dirty:n,ctx:e}),Q.$set(ut);const ct={};n&4096&&(ct.$$scope={dirty:n,ctx:e}),X.$set(ct);const mt={};n&4096&&(mt.$$scope={dirty:n,ctx:e}),Y.$set(mt);const $t={};n&4096&&($t.$$scope={dirty:n,ctx:e}),K.$set($t);const dt={};n&4096&&(dt.$$scope={dirty:n,ctx:e}),V.$set(dt)},i(e){ze||(b(D.$$.fragment,e),b(F.$$.fragment,e),b(O.$$.fragment,e),b(z.$$.fragment,e),b(U.$$.fragment,e),b(N.$$.fragment,e),b(R.$$.fragment,e),b(G.$$.fragment,e),b(B.$$.fragment,e),b(Q.$$.fragment,e),b(X.$$.fragment,e),b(Y.$$.fragment,e),b(K.$$.fragment,e),b(V.$$.fragment,e),b(le.$$.fragment,e),b(ie.$$.fragment,e),b(ae.$$.fragment,e),ze=!0)},o(e){x(D.$$.fragment,e),x(F.$$.fragment,e),x(O.$$.fragment,e),x(z.$$.fragment,e),x(U.$$.fragment,e),x(N.$$.fragment,e),x(R.$$.fragment,e),x(G.$$.fragment,e),x(B.$$.fragment,e),x(Q.$$.fragment,e),x(X.$$.fragment,e),x(Y.$$.fragment,e),x(K.$$.fragment,e),x(V.$$.fragment,e),x(le.$$.fragment,e),x(ie.$$.fragment,e),x(ae.$$.fragment,e),ze=!1},d(e){e&&(l(t),l(d),l(r),l(L),l(y),l(oe),l(g),l(ue),l(P),l(ce),l(A),l(me),l(S),l($e),l(de),l(he),l(_e),l(we),l(ve),l(ge),l(ke),l(xe),l(be),l(Ce),l(Te),l(Me),l(He),l(ye),l(E),l(Le),l(J),l(Pe),l(W),l(Ee),l(je),l(Z),l(Ie),l(ee),l(qe),l(Ae),l(te),l(Se),l(se),l(De),l(Fe),l(j),l(Oe),l(ne)),I&&I.d(e),re.d(e),l(a),l(s),q&&q.d(e),l(o),k(D,e),k(F,e),k(O,e),k(z,e),k(U,e),k(N,e),k(R,e),k(G,e),k(B,e),k(Q,e),k(X,e),k(Y,e),k(K,e),k(V,e),k(le,e),k(ie,e),k(ae,e)}}}const w={title:"Create Data Source Plugin",description:"How to create a data source plugin for Evidence"};function is(f,t,a){let s,o;ht(f,St,g=>a(2,s=g)),ht(f,wt,g=>a(8,o=g));let{data:d}=t,{data:r={},customFormattingSettings:h,__db:L,inputs:y}=d;xt(wt,o="f2163e2bf481531a0ed64fec05cf0286",o);let pe=jt(Et(y));return bt(pe.subscribe(g=>y=g)),Ct(At,{getCustomFormats:()=>h.customFormats||[]}),It((g,fe)=>Dt(L.query,g,{query_name:fe})),s.params,Tt(()=>!0),f.$$set=g=>{"data"in g&&a(0,d=g.data)},f.$$.update=()=>{f.$$.dirty&1&&a(1,{data:r={},customFormattingSettings:h,__db:L}=d,r),f.$$.dirty&2&&qt.set(Object.keys(r).length>0),f.$$.dirty&4&&s.params},[d,r,s]}class ds extends Lt{constructor(t){super(),Pt(this,t,is,ls,gt,{data:0})}}export{ds as component};