(window.webpackJsonp=window.webpackJsonp||[]).push([[182],{270:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return g}));var r=n(1),u=n(98);function i(e,t){for(var n,u,i=t.fields,c=t.values,f=i.length,l=0;l<f;++l)if((u=i[l]).getter=r.u.getter||Object(r.u)(u.field),n=u.getter(e),Object(r.D)(n)&&(n=Object(r.eb)(n)),Object(r.D)(c[l])&&(c[l]=Object(r.eb)(c[l])),Object(r.D)(c[l][0])&&(c[l]=c[l].map(r.eb)),"E"===u.type){if(Object(r.B)(c[l])?c[l].indexOf(n)<0:n!==c[l])return!1}else if("R"===u.type){if(!Object(r.A)(n,c[l]))return!1}else if("R-RE"===u.type){if(!Object(r.A)(n,c[l],!0,!1))return!1}else if("R-E"===u.type){if(!Object(r.A)(n,c[l],!1,!1))return!1}else if("R-LE"===u.type&&!Object(r.A)(n,c[l],!1,!0))return!1;return!0}function c(e,t,n){for(var r,u,c,f,l,o=this.context.data[e],a=o?o.values.value:[],s=o?o["index:unit"]&&o["index:unit"].value:void 0,b="intersect"===n,d=a.length,O=0;O<d;++O)if(r=a[O],s&&b){if(-1===(c=(u=u||{})[f=r.unit]||0))continue;if(l=i(t,r),u[f]=l?-1:++c,l&&1===s.size)return!0;if(!l&&c===s.get(f).count)return!1}else if(b^(l=i(t,r)))return l;return d&&b}const f=Object(r.u)("_vgsid_"),l=function(e){let t=e,n=e;function r(e,t,r,u){for(null==r&&(r=0),null==u&&(u=e.length);r<u;){const i=r+u>>>1;n(e[i],t)<0?r=i+1:u=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>{return(r=e(t))<(u=n)?-1:r>u?1:r>=u?0:NaN;var r,u}}(e)),{left:r,center:function(e,n,u,i){null==u&&(u=0),null==i&&(i=e.length);const c=r(e,n,u,i-1);return c>u&&t(e[c-1],n)>-t(e[c],n)?c-1:c},right:function(e,t,r,u){for(null==r&&(r=0),null==u&&(u=e.length);r<u;){const i=r+u>>>1;n(e[i],t)>0?u=i:r=i+1}return r}}}(f),o=l.left,a=l.right;function s(e,t,n){const r=this.context.data[e],u=r?r.values.value:[],i=r?r["index:unit"]&&r["index:unit"].value:void 0,c="intersect"===n,l=f(t),s=o(u,l);if(s===u.length)return!1;if(f(u[s])!==l)return!1;if(i&&c){if(1===i.size)return!0;if(a(u,l)-s<i.size)return!1}return!0}function b(e,t){return e.map(e=>Object(r.p)({values:t.fields.map(t=>(t.getter||(t.getter=Object(r.u)(t.field)))(e.datum))},t))}function d(e,t,n,u){for(var i,c,f,l,o,a,s,b,d,g,v,h=this.context.data[e],j=h?h.values.value:[],p={},x={},y={},R=j.length,m=0;m<R;++m){for(l=(i=j[m]).unit,c=i.fields,f=i.values,g=0,v=c.length;g<v;++g)o=c[g],s=(a=p[o.field]||(p[o.field]={}))[l]||(a[l]=[]),y[o.field]=b=o.type.charAt(0),d=O[b+"_union"],a[l]=d(s,Object(r.i)(f[g]));n&&(s=x[l]||(x[l]=[])).push(Object(r.i)(f).reduce((e,t,n)=>(e[c[n].field]=t,e),{}))}if(t=t||"union",Object.keys(p).forEach(e=>{p[e]=Object.keys(p[e]).map(t=>p[e][t]).reduce((n,r)=>void 0===n?r:O[y[e]+"_"+t](n,r))}),j=Object.keys(x),n&&j.length){p[u?"vlPoint":"vlMulti"]="union"===t?{or:j.reduce((e,t)=>(e.push(...x[t]),e),[])}:{and:j.map(e=>({or:x[e]}))}}return p}var O={E_union:function(e,t){if(!e.length)return t;for(var n=0,r=t.length;n<r;++n)e.indexOf(t[n])<0&&e.push(t[n]);return e},E_intersect:function(e,t){return e.length?e.filter(e=>t.indexOf(e)>=0):t},R_union:function(e,t){var n=Object(r.eb)(t[0]),u=Object(r.eb)(t[1]);return n>u&&(n=t[1],u=t[0]),e.length?(e[0]>n&&(e[0]=n),e[1]<u&&(e[1]=u),e):[n,u]},R_intersect:function(e,t){var n=Object(r.eb)(t[0]),u=Object(r.eb)(t[1]);return n>u&&(n=t[1],u=t[0]),e.length?u<e[0]||e[1]<n?[]:(e[0]<n&&(e[0]=n),e[1]>u&&(e[1]=u),e):[n,u]}};function g(e,t,n,i){t[0].type!==u.b&&Object(r.o)("First argument to selection functions must be a string literal.");const c=t[0].value,f=":"+c;"intersect"!==(t.length>=2&&Object(r.W)(t).value)||Object(r.w)(i,"@unit")||(i["@unit"]=n.getData(c).indataRef(n,"unit")),Object(r.w)(i,f)||(i[f]=n.getData(c).tuplesRef())}}}]);