import{j as e}from"./chunk-5PVQY5BW-ZS1bFUpH-DRVOTwoJ.js";import{n as t,t as n}from"./path-D51p9iUn-CuGVSWlg.js";import{t as r}from"./array-CCeX_eWS-chaTJ1-P.js";function i(e){return e[0]}function a(e){return e[1]}function o(o,s){var c=n(!0),l=null,u=e,d=null,f=t(p);o=typeof o==`function`?o:o===void 0?i:n(o),s=typeof s==`function`?s:s===void 0?a:n(s);function p(e){var t,n=(e=r(e)).length,i,a=!1,p;for(l??(d=u(p=f())),t=0;t<=n;++t)!(t<n&&c(i=e[t],t,e))===a&&((a=!a)?d.lineStart():d.lineEnd()),a&&d.point(+o(i,t,e),+s(i,t,e));if(p)return d=null,p+``||null}return p.x=function(e){return arguments.length?(o=typeof e==`function`?e:n(+e),p):o},p.y=function(e){return arguments.length?(s=typeof e==`function`?e:n(+e),p):s},p.defined=function(e){return arguments.length?(c=typeof e==`function`?e:n(!!e),p):c},p.curve=function(e){return arguments.length?(u=e,l!=null&&(d=u(l)),p):u},p.context=function(e){return arguments.length?(e==null?l=d=null:d=u(l=e),p):l},p}export{o as t};
//# sourceMappingURL=line-C54hNi8F-DFvrSFrg.js.map