import{g as e}from"./linear.6duwCeOq.js";import{n as t}from"./init.ZlXS9mIS.js";function n(){var r=[.5],i=[0,1],a,o=1;function s(t){return t!=null&&t<=t?i[e(r,t,0,o)]:a}return s.domain=function(e){return arguments.length?(r=Array.from(e),o=Math.min(r.length,i.length-1),s):r.slice()},s.range=function(e){return arguments.length?(i=Array.from(e),o=Math.min(r.length,i.length-1),s):i.slice()},s.invertExtent=function(e){var t=i.indexOf(e);return[r[t-1],r[t]]},s.unknown=function(e){return arguments.length?(a=e,s):a},s.copy=function(){return n().domain(r).range(i).unknown(a)},t.apply(s,arguments)}export{n as t};