${e}`}function _t(e,{template:t=yt}={}){e=[...e];let n=e.map(({value:i})=>i);return Object.defineProperty(t(e),"value",{get(){for(let i=0,r=e.length;i
${Object.values(e)}`}function wt(e,{template:t=gt}={}){e={...e};let n=Object.fromEntries(Object.entries(e).map(([i,{value:r}])=>[i,r]));return Object.defineProperty(t(e),"value",{get(){for(const i in n){const r=e[i].value;Object.is(r,n[i])||(n={...n},n[i]=r)}return n},set(i={}){for(const r in e)e[r].value=i[r]}})}function Se(e){class t extends e{constructor(i){super(i.name),Object.defineProperty(this,"_",{value:i}),Object.defineProperty(this,"_url",{writable:!0})}async url(){return this._url||(this._url=URL.createObjectURL(this._))}async blob(){return this._}async stream(){return this._.stream()}}return function({label:n,required:i,accept:r,capture:o,multiple:a,disabled:c,width:f,value:u,submit:m,...v}={}){const g=p``,h=p``;return W(h,g,void 0,v,{get:$=>a?Array.from($.files,N=>new t(N)):$.files.length?new t($.files[0]):null,set:()=>{},same:()=>!1})}}const oe=1e-6;function kt(e,t){return arguments.length<2&&(t=e,e=void 0),e===void 0&&(e=[]),je({extent:e},t)}function xt(e=[0,1],t){return je({extent:e,range:!0},t)}function je({extent:[e,t],range:n},{format:i=ge,transform:r,invert:o,label:a="",value:c,step:f,disabled:u,placeholder:m,validate:v=be,width:g}={}){let h;if(typeof i!="function")throw new TypeError("format is not a function");(e==null||isNaN(e=+e))&&(e=-1/0),(t==null||isNaN(t=+t))&&(t=1/0),e>t&&([e,t]=[t,e],r===void 0&&(r=pe)),f!==void 0&&(f=+f);const $=p``;let N;if(n){if(r===void 0&&(r=P),typeof r!="function")throw new TypeError("transform is not a function");if(o===void 0&&(o=r.invert===void 0?At(r):r.invert),typeof o!="function")throw new TypeError("invert is not a function");let d=+r(e),w=+r(t);d>w&&([d,w]=[w,d]),n=p``,N=r===P?n:p``}else n=null,r=o=P;const y=p``;y.addEventListener("submit",G);function b(d){return N?(d=Math.max(e,Math.min(t,d)),isFinite(d)?(N.valueAsNumber=d,N.valueAsNumber):d):+d}function E(d){const w=b(o(n.valueAsNumber));if(isFinite(w)&&($.valueAsNumber=Math.max(e,Math.min(t,w)),v($))){h=$.valueAsNumber,$.value=i(h);return}d&&d.stopPropagation()}function k(d){const w=b($.valueAsNumber);if(isFinite(w)&&(n&&(n.valueAsNumber=r(w)),v($))){h=w;return}d&&d.stopPropagation()}return Object.defineProperty(y,"value",{get(){return h},set(d){d=b(d),isFinite(d)&&($.valueAsNumber=d,n&&(n.valueAsNumber=r(d)),v($)&&(h=d,$.value=i(h)))}}),c===void 0&&N&&(c=N.valueAsNumber),c!==void 0&&(y.value=c),y}function pe(e){return-e}function Nt(e){return e*e}function At(e){return e===P||e===pe?e:e===Math.sqrt?Nt:e===Math.log?Math.exp:e===Math.exp?Math.log:t=>Et(e,t,t)}function Et(e,t,n){let i=100,r,o,a;n=n===void 0?0:+n,t=+t;do o=e(n),a=e(n+oe),o===a&&(a=o+oe),n-=r=-1*oe*(o-t)/(o-a);while(i-- >0&&Math.abs(r)>oe);return i<0?NaN:n}function Ot(e,{locale:t,format:n=Lt(t),label:i,query:r="",placeholder:o="Search",columns:a=_e(e),spellcheck:c,autocomplete:f,autocapitalize:u,filter:m=a===void 0?ze:St(a),datalist:v,disabled:g,required:h=!0,width:$}={}){let N=[];e=H(e),h=!!h;const[y,b]=ce(v),E=p``,k=p`