@globalfishingwatch/dataviews-client
Advanced tools
Comparing version 11.5.0 to 11.6.0
@@ -1,2 +0,2 @@ | ||
export{D as default}from"./resolve-endpoint-6935fc9f.js";import"lodash";import"@globalfishingwatch/api-client";import"@globalfishingwatch/api-types";import"luxon";import"@globalfishingwatch/fourwings-aggregate";import"@globalfishingwatch/data-transforms";import"@globalfishingwatch/layer-composer"; | ||
export{D as default}from"./resolve-endpoint-fd08b994.js";import"lodash";import"@globalfishingwatch/api-client";import"@globalfishingwatch/api-types";import"luxon";import"@globalfishingwatch/fourwings-aggregate";import"@globalfishingwatch/data-transforms";import"@globalfishingwatch/layer-composer"; | ||
//# sourceMappingURL=dataviews-client.js.map |
@@ -1,2 +0,2 @@ | ||
import{_ as t,r as n,a as e,b as i}from"./resolve-endpoint-6935fc9f.js";export{D as default,m as mergeWorkspaceUrlDataviewInstances,r as resolveDataviewDatasetResource,b as resolveDataviewEventsResources,c as resolveDataviews,d as resolveEndpoint}from"./resolve-endpoint-6935fc9f.js";import{uniq as a}from"lodash";import{DatasetStatus as o,DatasetTypes as l,DatasetCategory as u,DataviewCategory as s,EndpointId as h}from"@globalfishingwatch/api-types";import{Generators as f,Group as g,DEFAULT_HEATMAP_INTERVALS as v,COLOR_RAMP_DEFAULT_NUM_STEPS as p}from"@globalfishingwatch/layer-composer";import{AggregationOperation as y,VALUE_MULTIPLIER as w}from"@globalfishingwatch/fourwings-aggregate";import"@globalfishingwatch/api-client";import"luxon";import"@globalfishingwatch/data-transforms";function M(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function x(t){let n=t,e=t;function r(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const a=r+i>>>1;e(t[a],n)<0?r=a+1:i=a}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=function(t){return(n,e)=>M(t(n),e)}(t)),{left:r,center:function(t,e,i,a){null==i&&(i=0),null==a&&(a=t.length);const o=r(t,e,i,a-1);return o>i&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const a=r+i>>>1;e(t[a],n)>0?i=a:r=a+1}return r}}}const k=x(M).right;x((function(t){return null===t?NaN:+t})).center;var N=Math.sqrt(50),A=Math.sqrt(10),E=Math.sqrt(2);function T(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=N?10:a>=A?5:a>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=N?10:a>=A?5:a>=E?2:1)}function S(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function R(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function H(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function I(){}var j=1/.7,F="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",q=/^#([0-9a-f]{3,8})$/,$=new RegExp("^rgb\\("+[F,F,F]+"\\)$"),_=new RegExp("^rgb\\("+[C,C,C]+"\\)$"),O=new RegExp("^rgba\\("+[F,F,F,U]+"\\)$"),z=new RegExp("^rgba\\("+[C,C,C,U]+"\\)$"),L=new RegExp("^hsl\\("+[U,C,C]+"\\)$"),P=new RegExp("^hsla\\("+[U,C,C,U]+"\\)$"),V={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function W(){return this.rgb().formatHex()}function Z(){return this.rgb().formatRgb()}function B(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=q.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?G(n):3===e?new K(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?X(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?X(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=$.exec(t))?new K(n[1],n[2],n[3],1):(n=_.exec(t))?new K(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=O.exec(t))?X(n[1],n[2],n[3],n[4]):(n=z.exec(t))?X(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=L.exec(t))?et(n[1],n[2]/100,n[3]/100,1):(n=P.exec(t))?et(n[1],n[2]/100,n[3]/100,n[4]):V.hasOwnProperty(t)?G(V[t]):"transparent"===t?new K(NaN,NaN,NaN,0):null}function G(t){return new K(t>>16&255,t>>8&255,255&t,1)}function X(t,n,e,r){return r<=0&&(t=n=e=NaN),new K(t,n,e,r)}function Y(t){return t instanceof I||(t=B(t)),t?new K((t=t.rgb()).r,t.g,t.b,t.opacity):new K}function J(t,n,e,r){return 1===arguments.length?Y(t):new K(t,n,e,null==r?1:r)}function K(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Q(){return"#"+nt(this.r)+nt(this.g)+nt(this.b)}function tt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function nt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function et(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new it(t,n,e,r)}function rt(t){if(t instanceof it)return new it(t.h,t.s,t.l,t.opacity);if(t instanceof I||(t=B(t)),!t)return new it;if(t instanceof it)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,l=a-i,u=(a+i)/2;return l?(o=n===a?(e-r)/l+6*(e<r):e===a?(r-n)/l+2:(n-e)/l+4,l/=u<.5?a+i:2-a-i,o*=60):l=u>0&&u<1?0:o,new it(o,l,u,t.opacity)}function it(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function at(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}R(I,B,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:W,formatHex:W,formatHsl:function(){return rt(this).formatHsl()},formatRgb:Z,toString:Z}),R(K,J,H(I,{brighter:function(t){return t=null==t?j:Math.pow(j,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Q,formatHex:Q,formatRgb:tt,toString:tt})),R(it,(function(t,n,e,r){return 1===arguments.length?rt(t):new it(t,n,e,null==r?1:r)}),H(I,{brighter:function(t){return t=null==t?j:Math.pow(j,t),new it(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new it(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new K(at(t>=240?t-240:t+120,i,r),at(t,i,r),at(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ot=t=>()=>t;function lt(t){return 1==(t=+t)?ut:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):ot(isNaN(n)?e:n)}}function ut(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):ot(isNaN(t)?n:t)}var st=function t(n){var e=lt(n);function r(t,n){var r=e((t=J(t)).r,(n=J(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=ut(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function ct(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(a){for(e=0;e<r;++e)i[e]=t[e]*(1-a)+n[e]*a;return i}}function dt(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(e=0;e<i;++e)a[e]=yt(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=a[e](t);return o}}function ht(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function ft(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function gt(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=yt(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}var vt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pt=new RegExp(vt.source,"g");function mt(t,n){var e,r,i,a=vt.lastIndex=pt.lastIndex=0,o=-1,l=[],u=[];for(t+="",n+="";(e=vt.exec(t))&&(r=pt.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),l[o]?l[o]+=i:l[++o]=i),(e=e[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,u.push({i:o,x:ft(e,r)})),a=pt.lastIndex;return a<n.length&&(i=n.slice(a),l[o]?l[o]+=i:l[++o]=i),l.length<2?u[0]?function(t){return function(n){return t(n)+""}}(u[0].x):function(t){return function(){return t}}(n):(n=u.length,function(t){for(var e,r=0;r<n;++r)l[(e=u[r]).i]=e.x(t);return l.join("")})}function yt(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?ot(n):("number"===i?ft:"string"===i?(e=B(n))?(n=e,st):mt:n instanceof B?st:n instanceof Date?ht:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?dt:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?gt:ft:ct))(t,n)}function bt(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function wt(t){return+t}var Mt=[0,1];function xt(t){return t}function kt(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Nt(t,n,e){var r=t[0],i=t[1],a=n[0],o=n[1];return i<r?(r=kt(i,r),a=e(o,a)):(r=kt(r,i),a=e(a,o)),function(t){return a(r(t))}}function At(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<r;)i[o]=kt(t[o],t[o+1]),a[o]=e(n[o],n[o+1]);return function(n){var e=k(t,n,1,r)-1;return a[e](i[e](n))}}function Et(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Tt(){var t,n,e,r,i,a,o=Mt,l=Mt,u=yt,s=xt;function c(){var t=Math.min(o.length,l.length);return s!==xt&&(s=function(t,n){var e;return t>n&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(o[0],o[t-1])),r=t>2?At:Nt,i=a=null,d}function d(n){return isNaN(n=+n)?e:(i||(i=r(o.map(t),l,u)))(t(s(n)))}return d.invert=function(e){return s(n((a||(a=r(l,o.map(t),ft)))(e)))},d.domain=function(t){return arguments.length?(o=Array.from(t,wt),c()):o.slice()},d.range=function(t){return arguments.length?(l=Array.from(t),c()):l.slice()},d.rangeRound=function(t){return l=Array.from(t),u=bt,c()},d.clamp=function(t){return arguments.length?(s=!!t||xt,c()):s!==xt},d.interpolate=function(t){return arguments.length?(u=t,c()):u},d.unknown=function(t){return arguments.length?(e=t,d):e},function(e,r){return t=e,n=r,c()}}function St(){return Tt()(xt,xt)}function Dt(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Rt(t){return(t=Dt(Math.abs(t)))?t[1]:NaN}var Ht,It=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jt(t){if(!(n=It.exec(t)))throw new Error("invalid format: "+t);var n;return new Ft({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Ft(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ut(t,n){var e=Dt(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}jt.prototype=Ft.prototype,Ft.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ct={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ut(100*t,n),r:Ut,s:function(t,n){var e=Dt(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(Ht=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Dt(t,Math.max(0,n+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function qt(t){return t}var $t,_t,Ot,zt=Array.prototype.map,Lt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Pt(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?qt:(n=zt.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,l=n[0],u=0;i>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),a.push(t.substring(i-=l,i+l)),!((u+=l+1)>r));)l=n[o=(o+1)%n.length];return a.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?qt:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(zt.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function d(t){var n=(t=jt(t)).fill,e=t.align,d=t.sign,h=t.symbol,f=t.zero,g=t.width,v=t.comma,p=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):Ct[y]||(void 0===p&&(p=12),m=!0,y="g"),(f||"0"===n&&"="===e)&&(f=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===h?a:/[%p]/.test(y)?u:"",M=Ct[y],x=/[defgprs%]/.test(y);function k(t){var i,a,u,h=b,k=w;if("c"===y)k=M(t)+k,t="";else{var N=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:M(Math.abs(t),p),m&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),N&&0==+t&&"+"!==d&&(N=!1),h=(N?"("===d?d:s:"-"===d||"("===d?"":d)+h,k=("s"===y?Lt[8+Ht/3]:"")+k+(N&&"("===d?")":""),x)for(i=-1,a=t.length;++i<a;)if(48>(u=t.charCodeAt(i))||u>57){k=(46===u?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}v&&!f&&(t=r(t,1/0));var A=h.length+t.length+k.length,E=A<g?new Array(g-A+1).join(n):"";switch(v&&f&&(t=r(E+t,E.length?g-k.length:1/0),E=""),e){case"<":t=h+t+k+E;break;case"=":t=h+E+t+k;break;case"^":t=E.slice(0,A=E.length>>1)+h+t+k+E.slice(A);break;default:t=E+h+t+k}return l(t)}return p=void 0===p?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),k.toString=function(){return t+""},k}return{format:d,formatPrefix:function(t,n){var e=d(((t=jt(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Rt(n)/3))),i=Math.pow(10,-r),a=Lt[8+r/3];return function(t){return e(i*t)+a}}}}function Vt(t,n,e,r){var i,a=function(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=N?i*=10:a>=A?i*=5:a>=E&&(i*=2),n<t?-i:i}(t,n,e);switch((r=jt(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rt(n)/3)))-Rt(Math.abs(t)))}(a,o))||(r.precision=i),Ot(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Rt(n)-Rt(t))+1}(a,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Rt(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return _t(r)}function Wt(t){var n=t.domain;return t.ticks=function(t){var e=n();return function(t,n,e){var r,i,a,o,l=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=T(t,n,e))||!isFinite(o))return[];if(o>0){let e=Math.round(t/o),r=Math.round(n/o);for(e*o<t&&++e,r*o>n&&--r,a=new Array(i=r-e+1);++l<i;)a[l]=(e+l)*o}else{o=-o;let e=Math.round(t*o),r=Math.round(n*o);for(e/o<t&&++e,r/o>n&&--r,a=new Array(i=r-e+1);++l<i;)a[l]=(e+l)/o}return r&&a.reverse(),a}(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Vt(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,a=n(),o=0,l=a.length-1,u=a[o],s=a[l],c=10;for(s<u&&(i=u,u=s,s=i,i=o,o=l,l=i);c-- >0;){if((i=T(u,s,e))===r)return a[o]=u,a[l]=s,n(a);if(i>0)u=Math.floor(u/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function Zt(){var t=St();return t.copy=function(){return Et(t,Zt())},S.apply(t,arguments),Wt(t)}$t=Pt({thousands:",",grouping:[3],currency:["$",""]}),_t=$t.format,Ot=$t.formatPrefix;var Bt="__",Gt="mergedAnimatedHeatmap",Xt=function(t){var n=new Date(t);return new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes()))};function Yt(r,a,c){var d,v,m,b,M,x,k,N,A,E,T,S,D,R,H,I,j,F,U,C,q,$,_,O=a||{},z=O.debug,L=void 0!==z&&z,P=O.highlightedTime,V=O.highlightedEvent,W=t({id:r.id},r.config);switch(null===(d=r.config)||void 0===d?void 0:d.type){case f.Type.TileCluster:var Z=n(r,l.Events),B=Z.dataset,G=Z.url;return B&&G?(W.tilesUrl=G,W):(console.warn("No dataset config for TileCluster generator",r),[]);case f.Type.Track:P&&(W.highlightedTime=P);var X=r.datasets&&(null===(m=null===(v=r.datasets)||void 0===v?void 0:v[0])||void 0===m?void 0:m.type)===l.UserTracks?l.UserTracks:l.Tracks,Y=n(r,X).url;if(Y&&(null==c?void 0:c[Y])){var J=null==c?void 0:c[Y];W.data=J.data}var K=i(r);if((null==K?void 0:K.length)&&K.some((function(t){var n,e=t.url;return null===(n=null==c?void 0:c[e])||void 0===n?void 0:n.data}))){var Q=K.flatMap((function(t){var n,e=t.url;return e?null===(n=null==c?void 0:c[e])||void 0===n?void 0:n.data:[]})),tt=t(t({id:r.id+"__vessel_events",type:f.Type.VesselEvents,showIcons:null===(b=r.config)||void 0===b?void 0:b.showIcons,data:Q,color:null===(M=r.config)||void 0===M?void 0:M.color},W.data&&{track:W.data}),V&&{currentEventId:V.id});return[W,tt]}return W;case f.Type.Heatmap:var nt=null===(x=r.datasets)||void 0===x?void 0:x.find((function(t){return t.type===l.Fourwings})),et=null===(k=null==nt?void 0:nt.endpoints)||void 0===k?void 0:k.find((function(t){return t.id===h.FourwingsTiles})),rt=null===(N=null==nt?void 0:nt.endpoints)||void 0===N?void 0:N.find((function(t){return t.id===h.FourwingsLegend}));return W=t(t({},W),{maxZoom:8,fetchStats:!r.config.steps,datasets:[null==nt?void 0:nt.id],tilesUrl:null==et?void 0:et.pathTemplate,statsUrl:null==rt?void 0:rt.pathTemplate,metadata:{color:null===(A=null==r?void 0:r.config)||void 0===A?void 0:A.color,group:g.OutlinePolygonsBackground,interactive:!0,legend:{label:null==nt?void 0:nt.name,unit:null==nt?void 0:nt.unit}}});case f.Type.HeatmapAnimated:var it=r.category===s.Environment,at={},ot=null===(E=r.datasets)||void 0===E?void 0:E.find((function(t){return t.type===l.Fourwings}));if(it){var lt=r.config.datasets||(null===(T=r.datasetsConfig)||void 0===T?void 0:T.map((function(t){return t.datasetId})));at={sublayers:[{id:W.id,colorRamp:null===(S=r.config)||void 0===S?void 0:S.colorRamp,colorRampWhiteEnd:!1,visible:null===(R=null===(D=r.config)||void 0===D?void 0:D.visible)||void 0===R||R,breaks:null===(H=r.config)||void 0===H?void 0:H.breaks,datasets:lt,legend:{label:null==ot?void 0:ot.name,unit:null==ot?void 0:ot.unit,color:null==r?void 0:r.config.color}}],maxZoom:8,mode:f.HeatmapAnimatedMode.Single,aggregationOperation:y.Avg,interactive:!0,breaksMultiplier:(null===(I=r.config)||void 0===I?void 0:I.breaksMultiplier)||w,interval:(null===(j=r.config)||void 0===j?void 0:j.interval)||"month"}}var ut=null===(F=(W=t(t({},W),at)).sublayers)||void 0===F?void 0:F.some((function(t){return!0===t.visible})),st=(q=r.datasets,$=null==q?void 0:q.flatMap((function(t){return(null==t?void 0:t.startDate)?new Date(t.startDate).getTime():[]})),_=null==q?void 0:q.flatMap((function(t){return(null==t?void 0:t.endDate)?new Date(t.endDate).getTime():[]})),{extentStart:(null==$?void 0:$.length)?Xt(Math.min.apply(Math,$)).toISOString():void 0,extentEnd:(null==_?void 0:_.length)?Xt(Math.max.apply(Math,_)).toISOString():void 0}),ct=st.extentStart,dt=st.extentEnd;return W=t(t(t(t({},W),{visible:ut,debug:L,debugLabels:L}),ct&&{datasetsStart:ct}),dt&&{datasetsEnd:dt});case f.Type.Context:case f.Type.UserContext:if(Array.isArray(r.config.layers))return(null===(U=r.config.layers)||void 0===U?void 0:U.flatMap((function(t){var e=t.id,i=t.dataset,a=n(r,i),l=a.dataset,u=a.url;return u&&(null==l?void 0:l.status)===o.Done?{id:e,tilesUrl:u,attribution:null==l?void 0:l.source}:[]}))).map((function(n){var e=n.id,i=n.tilesUrl,a=n.attribution;return t(t({},W),{id:r.id+"__"+e,layer:e,attribution:a,tilesUrl:i})}));W.id=r.config.layers?r.id+"__"+r.config.layers:r.id,W.layer=r.config.layers;var ht=n(r,l.Context),ft=(ot=ht.dataset,ht.url);if((null==ot?void 0:ot.status)!==o.Done)return[];if(ft&&(W.tilesUrl=ft),(null==ot?void 0:ot.source)&&(W.attribution=ot.source),ot.category===u.Environment){var gt=(null===(C=ot.configuration)||void 0===C?void 0:C.propertyToIncludeRange)||{},vt=gt.min,pt=gt.max,mt=Zt().range([vt,pt]).domain([0,1]),yt=p,bt=e([],Array(yt)).map((function(t,n){var e;return parseFloat(null===(e=n/(yt-1))||void 0===e?void 0:e.toFixed(2))})).map((function(t){var n;return parseFloat(null===(n=mt(t))||void 0===n?void 0:n.toFixed(3))}));W.steps=bt}return W.tilesUrl?W:(console.warn("Missing tiles url for dataview",r),[]);default:return W}}function Jt(n,e,r){var i=(e||{}).heatmapAnimatedMode,o=void 0===i?f.HeatmapAnimatedMode.Compare:i,l=[],u=n.filter((function(t){var n,e=(t.category===s.Fishing||t.category===s.Presence)&&(null===(n=t.config)||void 0===n?void 0:n.type)===f.Type.HeatmapAnimated;return e&&l.push(t),!e}));if(l.length){var c=l.flatMap((function(t){var n,e,r,i,o=t.config,l=t.datasetsConfig;if(!o||!l||!l.length)return[];var u=o.datasets||l.map((function(t){return t.datasetId})),s=a(null===(n=t.datasets)||void 0===n?void 0:n.map((function(t){return t.unit})));if(1!==s.length)throw new Error("Shouldnt have distinct units for the same heatmap layer");var c=a(null===(e=t.datasets)||void 0===e?void 0:e.map((function(t){var n;return(null===(n=t.configuration)||void 0===n?void 0:n.type)||"fishing-effort"})));if(1!==c.length)throw new Error("Shouldnt have distinct dataset config types for the same heatmap layer: "+c.toString());var d="presence"===c[0]?!0===(null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.presenceDetails)?"presence-detail":"presence":c[0];return{id:t.id,datasets:u,colorRamp:o.colorRamp,colorRampWhiteEnd:!0,filter:o.filter,visible:o.visible,legend:{label:t.name,unit:s[0],color:null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.color},interactionType:d}})),d=function(t){var n=v.find((function(n){return t.every((function(t){var e;return(null===(e=t.configuration)||void 0===e?void 0:e.resolution)===n}))}));return n&&v.slice(v.findIndex((function(t){return t===n})))}(l.flatMap((function(t){return t.datasets||[]})).filter((function(t){var n;return null===(n=null==t?void 0:t.configuration)||void 0===n?void 0:n.resolution}))),h={id:e.mergedActivityGeneratorId||"mergedAnimatedHeatmap",config:t({type:f.Type.HeatmapAnimated,sublayers:c,mode:o},d&&{interval:d})};u.push(h)}return u.flatMap((function(t){return Yt(t,e,r)}))}export{Gt as MERGED_ACTIVITY_ANIMATED_HEATMAP_GENERATOR_ID,Bt as MULTILAYER_SEPARATOR,Jt as getDataviewsGeneratorConfigs,Yt as getGeneratorConfig}; | ||
import{_ as t,r as n,a as e,b as i}from"./resolve-endpoint-fd08b994.js";export{D as default,m as mergeWorkspaceUrlDataviewInstances,r as resolveDataviewDatasetResource,b as resolveDataviewEventsResources,c as resolveDataviews,d as resolveEndpoint}from"./resolve-endpoint-fd08b994.js";import{uniq as a}from"lodash";import{DatasetStatus as o,DatasetTypes as l,DatasetCategory as u,DataviewCategory as s,EndpointId as h}from"@globalfishingwatch/api-types";import{Generators as f,Group as g,DEFAULT_HEATMAP_INTERVALS as v,COLOR_RAMP_DEFAULT_NUM_STEPS as p}from"@globalfishingwatch/layer-composer";import{AggregationOperation as y,VALUE_MULTIPLIER as w}from"@globalfishingwatch/fourwings-aggregate";import"@globalfishingwatch/api-client";import"luxon";import"@globalfishingwatch/data-transforms";function M(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function x(t){let n=t,e=t;function r(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const a=r+i>>>1;e(t[a],n)<0?r=a+1:i=a}return r}return 1===t.length&&(n=(n,e)=>t(n)-e,e=function(t){return(n,e)=>M(t(n),e)}(t)),{left:r,center:function(t,e,i,a){null==i&&(i=0),null==a&&(a=t.length);const o=r(t,e,i,a-1);return o>i&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const a=r+i>>>1;e(t[a],n)>0?i=a:r=a+1}return r}}}const k=x(M).right;x((function(t){return null===t?NaN:+t})).center;var N=Math.sqrt(50),A=Math.sqrt(10),E=Math.sqrt(2);function T(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=N?10:a>=A?5:a>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=N?10:a>=A?5:a>=E?2:1)}function S(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function R(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function I(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function H(){}var j=1/.7,F="\\s*([+-]?\\d+)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",C="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",q=/^#([0-9a-f]{3,8})$/,$=new RegExp("^rgb\\("+[F,F,F]+"\\)$"),_=new RegExp("^rgb\\("+[C,C,C]+"\\)$"),O=new RegExp("^rgba\\("+[F,F,F,U]+"\\)$"),z=new RegExp("^rgba\\("+[C,C,C,U]+"\\)$"),L=new RegExp("^hsl\\("+[U,C,C]+"\\)$"),P=new RegExp("^hsla\\("+[U,C,C,U]+"\\)$"),V={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function W(){return this.rgb().formatHex()}function Z(){return this.rgb().formatRgb()}function B(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=q.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?G(n):3===e?new K(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?X(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?X(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=$.exec(t))?new K(n[1],n[2],n[3],1):(n=_.exec(t))?new K(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=O.exec(t))?X(n[1],n[2],n[3],n[4]):(n=z.exec(t))?X(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=L.exec(t))?et(n[1],n[2]/100,n[3]/100,1):(n=P.exec(t))?et(n[1],n[2]/100,n[3]/100,n[4]):V.hasOwnProperty(t)?G(V[t]):"transparent"===t?new K(NaN,NaN,NaN,0):null}function G(t){return new K(t>>16&255,t>>8&255,255&t,1)}function X(t,n,e,r){return r<=0&&(t=n=e=NaN),new K(t,n,e,r)}function Y(t){return t instanceof H||(t=B(t)),t?new K((t=t.rgb()).r,t.g,t.b,t.opacity):new K}function J(t,n,e,r){return 1===arguments.length?Y(t):new K(t,n,e,null==r?1:r)}function K(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Q(){return"#"+nt(this.r)+nt(this.g)+nt(this.b)}function tt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function nt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function et(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new it(t,n,e,r)}function rt(t){if(t instanceof it)return new it(t.h,t.s,t.l,t.opacity);if(t instanceof H||(t=B(t)),!t)return new it;if(t instanceof it)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),a=Math.max(n,e,r),o=NaN,l=a-i,u=(a+i)/2;return l?(o=n===a?(e-r)/l+6*(e<r):e===a?(r-n)/l+2:(n-e)/l+4,l/=u<.5?a+i:2-a-i,o*=60):l=u>0&&u<1?0:o,new it(o,l,u,t.opacity)}function it(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function at(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}R(H,B,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:W,formatHex:W,formatHsl:function(){return rt(this).formatHsl()},formatRgb:Z,toString:Z}),R(K,J,I(H,{brighter:function(t){return t=null==t?j:Math.pow(j,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Q,formatHex:Q,formatRgb:tt,toString:tt})),R(it,(function(t,n,e,r){return 1===arguments.length?rt(t):new it(t,n,e,null==r?1:r)}),I(H,{brighter:function(t){return t=null==t?j:Math.pow(j,t),new it(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new it(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new K(at(t>=240?t-240:t+120,i,r),at(t,i,r),at(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ot=t=>()=>t;function lt(t){return 1==(t=+t)?ut:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):ot(isNaN(n)?e:n)}}function ut(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):ot(isNaN(t)?n:t)}var st=function t(n){var e=lt(n);function r(t,n){var r=e((t=J(t)).r,(n=J(n)).r),i=e(t.g,n.g),a=e(t.b,n.b),o=ut(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return r.gamma=t,r}(1);function ct(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(a){for(e=0;e<r;++e)i[e]=t[e]*(1-a)+n[e]*a;return i}}function dt(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(e=0;e<i;++e)a[e]=yt(t[e],n[e]);for(;e<r;++e)o[e]=n[e];return function(t){for(e=0;e<i;++e)o[e]=a[e](t);return o}}function ht(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function ft(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function gt(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=yt(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}var vt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pt=new RegExp(vt.source,"g");function mt(t,n){var e,r,i,a=vt.lastIndex=pt.lastIndex=0,o=-1,l=[],u=[];for(t+="",n+="";(e=vt.exec(t))&&(r=pt.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),l[o]?l[o]+=i:l[++o]=i),(e=e[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,u.push({i:o,x:ft(e,r)})),a=pt.lastIndex;return a<n.length&&(i=n.slice(a),l[o]?l[o]+=i:l[++o]=i),l.length<2?u[0]?function(t){return function(n){return t(n)+""}}(u[0].x):function(t){return function(){return t}}(n):(n=u.length,function(t){for(var e,r=0;r<n;++r)l[(e=u[r]).i]=e.x(t);return l.join("")})}function yt(t,n){var e,r,i=typeof n;return null==n||"boolean"===i?ot(n):("number"===i?ft:"string"===i?(e=B(n))?(n=e,st):mt:n instanceof B?st:n instanceof Date?ht:(r=n,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(n)?dt:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?gt:ft:ct))(t,n)}function bt(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function wt(t){return+t}var Mt=[0,1];function xt(t){return t}function kt(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:(e=isNaN(n)?NaN:.5,function(){return e});var e}function Nt(t,n,e){var r=t[0],i=t[1],a=n[0],o=n[1];return i<r?(r=kt(i,r),a=e(o,a)):(r=kt(r,i),a=e(a,o)),function(t){return a(r(t))}}function At(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<r;)i[o]=kt(t[o],t[o+1]),a[o]=e(n[o],n[o+1]);return function(n){var e=k(t,n,1,r)-1;return a[e](i[e](n))}}function Et(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Tt(){var t,n,e,r,i,a,o=Mt,l=Mt,u=yt,s=xt;function c(){var t=Math.min(o.length,l.length);return s!==xt&&(s=function(t,n){var e;return t>n&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(o[0],o[t-1])),r=t>2?At:Nt,i=a=null,d}function d(n){return isNaN(n=+n)?e:(i||(i=r(o.map(t),l,u)))(t(s(n)))}return d.invert=function(e){return s(n((a||(a=r(l,o.map(t),ft)))(e)))},d.domain=function(t){return arguments.length?(o=Array.from(t,wt),c()):o.slice()},d.range=function(t){return arguments.length?(l=Array.from(t),c()):l.slice()},d.rangeRound=function(t){return l=Array.from(t),u=bt,c()},d.clamp=function(t){return arguments.length?(s=!!t||xt,c()):s!==xt},d.interpolate=function(t){return arguments.length?(u=t,c()):u},d.unknown=function(t){return arguments.length?(e=t,d):e},function(e,r){return t=e,n=r,c()}}function St(){return Tt()(xt,xt)}function Dt(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Rt(t){return(t=Dt(Math.abs(t)))?t[1]:NaN}var It,Ht=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jt(t){if(!(n=Ht.exec(t)))throw new Error("invalid format: "+t);var n;return new Ft({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Ft(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Ut(t,n){var e=Dt(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}jt.prototype=Ft.prototype,Ft.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ct={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ut(100*t,n),r:Ut,s:function(t,n){var e=Dt(t,n);if(!e)return t+"";var r=e[0],i=e[1],a=i-(It=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Dt(t,Math.max(0,n+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function qt(t){return t}var $t,_t,Ot,zt=Array.prototype.map,Lt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Pt(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?qt:(n=zt.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,a=[],o=0,l=n[0],u=0;i>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),a.push(t.substring(i-=l,i+l)),!((u+=l+1)>r));)l=n[o=(o+1)%n.length];return a.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?qt:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(zt.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function d(t){var n=(t=jt(t)).fill,e=t.align,d=t.sign,h=t.symbol,f=t.zero,g=t.width,v=t.comma,p=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):Ct[y]||(void 0===p&&(p=12),m=!0,y="g"),(f||"0"===n&&"="===e)&&(f=!0,n="0",e="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",w="$"===h?a:/[%p]/.test(y)?u:"",M=Ct[y],x=/[defgprs%]/.test(y);function k(t){var i,a,u,h=b,k=w;if("c"===y)k=M(t)+k,t="";else{var N=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:M(Math.abs(t),p),m&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),N&&0==+t&&"+"!==d&&(N=!1),h=(N?"("===d?d:s:"-"===d||"("===d?"":d)+h,k=("s"===y?Lt[8+It/3]:"")+k+(N&&"("===d?")":""),x)for(i=-1,a=t.length;++i<a;)if(48>(u=t.charCodeAt(i))||u>57){k=(46===u?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}v&&!f&&(t=r(t,1/0));var A=h.length+t.length+k.length,E=A<g?new Array(g-A+1).join(n):"";switch(v&&f&&(t=r(E+t,E.length?g-k.length:1/0),E=""),e){case"<":t=h+t+k+E;break;case"=":t=h+E+t+k;break;case"^":t=E.slice(0,A=E.length>>1)+h+t+k+E.slice(A);break;default:t=E+h+t+k}return l(t)}return p=void 0===p?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),k.toString=function(){return t+""},k}return{format:d,formatPrefix:function(t,n){var e=d(((t=jt(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Rt(n)/3))),i=Math.pow(10,-r),a=Lt[8+r/3];return function(t){return e(i*t)+a}}}}function Vt(t,n,e,r){var i,a=function(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=N?i*=10:a>=A?i*=5:a>=E&&(i*=2),n<t?-i:i}(t,n,e);switch((r=jt(null==r?",f":r)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rt(n)/3)))-Rt(Math.abs(t)))}(a,o))||(r.precision=i),Ot(r,o);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Rt(n)-Rt(t))+1}(a,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Rt(Math.abs(t)))}(a))||(r.precision=i-2*("%"===r.type))}return _t(r)}function Wt(t){var n=t.domain;return t.ticks=function(t){var e=n();return function(t,n,e){var r,i,a,o,l=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(o=T(t,n,e))||!isFinite(o))return[];if(o>0){let e=Math.round(t/o),r=Math.round(n/o);for(e*o<t&&++e,r*o>n&&--r,a=new Array(i=r-e+1);++l<i;)a[l]=(e+l)*o}else{o=-o;let e=Math.round(t*o),r=Math.round(n*o);for(e/o<t&&++e,r/o>n&&--r,a=new Array(i=r-e+1);++l<i;)a[l]=(e+l)/o}return r&&a.reverse(),a}(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return Vt(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,a=n(),o=0,l=a.length-1,u=a[o],s=a[l],c=10;for(s<u&&(i=u,u=s,s=i,i=o,o=l,l=i);c-- >0;){if((i=T(u,s,e))===r)return a[o]=u,a[l]=s,n(a);if(i>0)u=Math.floor(u/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,s=Math.floor(s*i)/i}r=i}return t},t}function Zt(){var t=St();return t.copy=function(){return Et(t,Zt())},S.apply(t,arguments),Wt(t)}$t=Pt({thousands:",",grouping:[3],currency:["$",""]}),_t=$t.format,Ot=$t.formatPrefix;var Bt="__",Gt="mergedAnimatedHeatmap",Xt=function(t){var n=new Date(t);return new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes()))};function Yt(r,a,c){var d,v,m,b,M,x,k,N,A,E,T,S,D,R,I,H,j,F,U,C,q,$,_,O=a||{},z=O.debug,L=void 0!==z&&z,P=O.highlightedTime,V=O.highlightedEvent,W=t({id:r.id},r.config);switch(null===(d=r.config)||void 0===d?void 0:d.type){case f.Type.TileCluster:var Z=n(r,l.Events),B=Z.dataset,G=Z.url;return B&&G?(W.tilesUrl=G,t(t({},W),V&&{currentEventId:V.id})):(console.warn("No dataset config for TileCluster generator",r),[]);case f.Type.Track:P&&(W.highlightedTime=P);var X=r.datasets&&(null===(m=null===(v=r.datasets)||void 0===v?void 0:v[0])||void 0===m?void 0:m.type)===l.UserTracks?l.UserTracks:l.Tracks,Y=n(r,X).url;if(Y&&(null==c?void 0:c[Y])){var J=null==c?void 0:c[Y];W.data=J.data}var K=i(r);if((null==K?void 0:K.length)&&K.some((function(t){var n,e=t.url;return null===(n=null==c?void 0:c[e])||void 0===n?void 0:n.data}))){var Q=K.flatMap((function(t){var n,e=t.url;return e?null===(n=null==c?void 0:c[e])||void 0===n?void 0:n.data:[]})),tt=t({id:r.id+"__vessel_events",type:f.Type.VesselEvents,showIcons:null===(b=r.config)||void 0===b?void 0:b.showIcons,data:Q,color:null===(M=r.config)||void 0===M?void 0:M.color,track:W.data},V&&{currentEventId:V.id});return[W,tt]}return W;case f.Type.Heatmap:var nt=null===(x=r.datasets)||void 0===x?void 0:x.find((function(t){return t.type===l.Fourwings})),et=null===(k=null==nt?void 0:nt.endpoints)||void 0===k?void 0:k.find((function(t){return t.id===h.FourwingsTiles})),rt=null===(N=null==nt?void 0:nt.endpoints)||void 0===N?void 0:N.find((function(t){return t.id===h.FourwingsLegend}));return W=t(t({},W),{maxZoom:8,fetchStats:!r.config.steps,datasets:[null==nt?void 0:nt.id],tilesUrl:null==et?void 0:et.pathTemplate,statsUrl:null==rt?void 0:rt.pathTemplate,metadata:{color:null===(A=null==r?void 0:r.config)||void 0===A?void 0:A.color,group:g.OutlinePolygonsBackground,interactive:!0,legend:{label:null==nt?void 0:nt.name,unit:null==nt?void 0:nt.unit}}});case f.Type.HeatmapAnimated:var it=r.category===s.Environment,at={},ot=null===(E=r.datasets)||void 0===E?void 0:E.find((function(t){return t.type===l.Fourwings}));if(it){var lt=r.config.datasets||(null===(T=r.datasetsConfig)||void 0===T?void 0:T.map((function(t){return t.datasetId})));at={sublayers:[{id:W.id,colorRamp:null===(S=r.config)||void 0===S?void 0:S.colorRamp,colorRampWhiteEnd:!1,visible:null===(R=null===(D=r.config)||void 0===D?void 0:D.visible)||void 0===R||R,breaks:null===(I=r.config)||void 0===I?void 0:I.breaks,datasets:lt,legend:{label:null==ot?void 0:ot.name,unit:null==ot?void 0:ot.unit,color:null==r?void 0:r.config.color}}],maxZoom:8,mode:f.HeatmapAnimatedMode.Single,aggregationOperation:y.Avg,interactive:!0,breaksMultiplier:(null===(H=r.config)||void 0===H?void 0:H.breaksMultiplier)||w,interval:(null===(j=r.config)||void 0===j?void 0:j.interval)||"month"}}var ut=null===(F=(W=t(t({},W),at)).sublayers)||void 0===F?void 0:F.some((function(t){return!0===t.visible})),st=(q=r.datasets,$=null==q?void 0:q.flatMap((function(t){return(null==t?void 0:t.startDate)?new Date(t.startDate).getTime():[]})),_=null==q?void 0:q.flatMap((function(t){return(null==t?void 0:t.endDate)?new Date(t.endDate).getTime():[]})),{extentStart:(null==$?void 0:$.length)?Xt(Math.min.apply(Math,$)).toISOString():void 0,extentEnd:(null==_?void 0:_.length)?Xt(Math.max.apply(Math,_)).toISOString():void 0}),ct=st.extentStart,dt=st.extentEnd;return W=t(t(t(t({},W),{visible:ut,debug:L,debugLabels:L}),ct&&{datasetsStart:ct}),dt&&{datasetsEnd:dt});case f.Type.Context:case f.Type.UserContext:if(Array.isArray(r.config.layers))return(null===(U=r.config.layers)||void 0===U?void 0:U.flatMap((function(t){var e=t.id,i=t.dataset,a=n(r,i),l=a.dataset,u=a.url;return u&&(null==l?void 0:l.status)===o.Done?{id:e,tilesUrl:u,attribution:null==l?void 0:l.source}:[]}))).map((function(n){var e=n.id,i=n.tilesUrl,a=n.attribution;return t(t({},W),{id:r.id+"__"+e,layer:e,attribution:a,tilesUrl:i})}));W.id=r.config.layers?r.id+"__"+r.config.layers:r.id,W.layer=r.config.layers;var ht=n(r,l.Context),ft=(ot=ht.dataset,ht.url);if((null==ot?void 0:ot.status)!==o.Done)return[];if(ft&&(W.tilesUrl=ft),(null==ot?void 0:ot.source)&&(W.attribution=ot.source),ot.category===u.Environment){var gt=(null===(C=ot.configuration)||void 0===C?void 0:C.propertyToIncludeRange)||{},vt=gt.min,pt=gt.max,mt=Zt().range([vt,pt]).domain([0,1]),yt=p,bt=e([],Array(yt)).map((function(t,n){var e;return parseFloat(null===(e=n/(yt-1))||void 0===e?void 0:e.toFixed(2))})).map((function(t){var n;return parseFloat(null===(n=mt(t))||void 0===n?void 0:n.toFixed(3))}));W.steps=bt}return W.tilesUrl?W:(console.warn("Missing tiles url for dataview",r),[]);default:return W}}function Jt(n,e,r){var i=(e||{}).heatmapAnimatedMode,o=void 0===i?f.HeatmapAnimatedMode.Compare:i,l=[],u=n.filter((function(t){var n,e=(t.category===s.Fishing||t.category===s.Presence)&&(null===(n=t.config)||void 0===n?void 0:n.type)===f.Type.HeatmapAnimated;return e&&l.push(t),!e}));if(l.length){var c=l.flatMap((function(t){var n,e,r,i,o=t.config,l=t.datasetsConfig;if(!o||!l||!l.length)return[];var u=o.datasets||l.map((function(t){return t.datasetId})),s=a(null===(n=t.datasets)||void 0===n?void 0:n.map((function(t){return t.unit})));if(1!==s.length)throw new Error("Shouldnt have distinct units for the same heatmap layer");var c=a(null===(e=t.datasets)||void 0===e?void 0:e.map((function(t){var n;return(null===(n=t.configuration)||void 0===n?void 0:n.type)||"fishing-effort"})));if(1!==c.length)throw new Error("Shouldnt have distinct dataset config types for the same heatmap layer: "+c.toString());var d="presence"===c[0]?!0===(null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.presenceDetails)?"presence-detail":"presence":c[0];return{id:t.id,datasets:u,colorRamp:o.colorRamp,colorRampWhiteEnd:!0,filter:o.filter,visible:o.visible,legend:{label:t.name,unit:s[0],color:null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.color},interactionType:d}})),d=function(t){var n=v.find((function(n){return t.every((function(t){var e;return(null===(e=t.configuration)||void 0===e?void 0:e.resolution)===n}))}));return n&&v.slice(v.findIndex((function(t){return t===n})))}(l.flatMap((function(t){return t.datasets||[]})).filter((function(t){var n;return null===(n=null==t?void 0:t.configuration)||void 0===n?void 0:n.resolution}))),h={id:e.mergedActivityGeneratorId||"mergedAnimatedHeatmap",config:t({type:f.Type.HeatmapAnimated,sublayers:c,mode:o},d&&{interval:d})};u.push(h)}return u.flatMap((function(t){return Yt(t,e,r)}))}export{Gt as MERGED_ACTIVITY_ANIMATED_HEATMAP_GENERATOR_ID,Bt as MULTILAYER_SEPARATOR,Jt as getDataviewsGeneratorConfigs,Yt as getGeneratorConfig}; | ||
//# sourceMappingURL=index.js.map |
@@ -21,3 +21,11 @@ import { Resource, ApiEvent } from '@globalfishingwatch/api-types'; | ||
declare type DataviewsGeneratorResource = Record<string, Resource>; | ||
export declare function getGeneratorConfig(dataview: UrlDataviewInstance, params?: DataviewsGeneratorConfigsParams, resources?: DataviewsGeneratorResource): any[] | GeneratorDataviewConfig<Generators.Type>; | ||
export declare function getGeneratorConfig(dataview: UrlDataviewInstance, params?: DataviewsGeneratorConfigsParams, resources?: DataviewsGeneratorResource): GeneratorDataviewConfig<Generators.Type> | (GeneratorDataviewConfig<Generators.Type> | { | ||
currentEventId?: string | undefined; | ||
id: string; | ||
type: Generators.Type; | ||
showIcons: any; | ||
data: unknown[]; | ||
color: string | undefined; | ||
track: any; | ||
})[]; | ||
/** | ||
@@ -24,0 +32,0 @@ * Generates generator configs to be consumed by LayerComposer, based on the list of dataviews provided, |
{ | ||
"name": "@globalfishingwatch/dataviews-client", | ||
"version": "11.5.0", | ||
"version": "11.6.0", | ||
"description": "", | ||
@@ -36,3 +36,3 @@ "author": "satellitestudio <contact@satellitestud.io>", | ||
"@globalfishingwatch/api-types": "^4.6.0", | ||
"@globalfishingwatch/layer-composer": "^8.6.0", | ||
"@globalfishingwatch/layer-composer": "^8.7.0", | ||
"@rollup/plugin-commonjs": "^16.0.0", | ||
@@ -60,3 +60,3 @@ "@rollup/plugin-json": "^4.1.0", | ||
}, | ||
"gitHead": "9b3f2e42c353f95e04593513fc2b729cc94c908a" | ||
"gitHead": "767f8a477277adac1d64cebe3ce063e777d79ac3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
734
830900