All Downloads are FREE. Search and download functionalities are using the official Maven repository.

[email protected] Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta-1
Show newest version
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vega"),require("vega-lite")):"function"==typeof define&&define.amd?define(["vega","vega-lite"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).vegaEmbed=t(e.vega,e.vegaLite)}(this,(function(e,t){"use strict";function n(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var r,i=n(e),o=n(t),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=Object.prototype.hasOwnProperty;function l(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&t<=57))return!1;n++}return!0}function d(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function u(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function f(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t0&&"constructor"==s[c-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===f&&(void 0===l[g]?f=s.slice(0,c).join("/"):c==d-1&&(f=t.path),void 0!==f&&m(t,0,e,f)),c++,Array.isArray(l)){if("-"===g)g=l.length;else{if(n&&!p(g))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);p(g)&&(g=~~g)}if(c>=d){if(n&&"add"===t.op&&g>l.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);if(!1===(a=y[t.op].call(t,l,g,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}}else if(c>=d){if(!1===(a=b[t.op].call(t,l,g,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}if(l=l[g],n&&c0)throw new v('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new v("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&f(e.value))throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var i=e.path.split("/").length,o=r.split("/").length;if(i!==o+1&&i!==o)throw new v("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==r)throw new v("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var a=I([{op:"_get",path:e.from,value:void 0}],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new v("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function I(e,t,n){try{if(!Array.isArray(e))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)A(h(t),h(e),n||!0);else{n=n||x;for(var r=0;r0&&(e.patches=[],e.callback&&e.callback(r)),r}function D(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=c(t),a=c(e),s=!1,p=a.length-1;p>=0;p--){var u=e[g=a[p]];if(!l(t,g)||void 0===t[g]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+d(g),value:h(u)}),n.push({op:"remove",path:r+"/"+d(g)}),s=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}));else{var f=t[g];"object"==typeof u&&null!=u&&"object"==typeof f&&null!=f&&Array.isArray(u)===Array.isArray(f)?D(u,f,n,r+"/"+d(g),i):u!==f&&(i&&n.push({op:"test",path:r+"/"+d(g),value:h(u)}),n.push({op:"replace",path:r+"/"+d(g),value:h(f)}))}}if(s||o.length!=a.length)for(p=0;p0)return[m,n+c.join(",\n"+f),s].join("\n"+o)}return v}(e,"",0)};var M=j;function j(e){var t=this;if(t instanceof j||(t=new j),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},j.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},j.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},j.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},j.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new j;if(tthis.length&&(t=this.length);for(var r=0,i=this.head;null!==i&&rthis.length&&(t=this.length);for(var r=this.length,i=this.tail;null!==i&&r>t;r--)i=i.prev;for(;null!==i&&r>e;r--,i=i.prev)n.push(i.value);return n},j.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n1;const ne=(e,t,n)=>{const r=e[K].get(t);if(r){const t=r.value;if(re(e,t)){if(oe(e,r),!e[q])return}else n&&(e[ee]&&(r.value.now=Date.now()),e[Z].unshiftNode(r));return t.value}},re=(e,t)=>{if(!t||!t.maxAge&&!e[Y])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Y]&&n>e[Y]},ie=e=>{if(e[V]>e[W])for(let t=e[Z].tail;e[V]>e[W]&&null!==t;){const n=t.prev;oe(e,t),t=n}},oe=(e,t)=>{if(t){const n=t.value;e[J]&&e[J](n.key,n.value),e[V]-=n.length,e[K].delete(n.key),e[Z].removeNode(t)}};class ae{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const se=(e,t,n,r)=>{let i=n.value;re(e,i)&&(oe(e,n),e[q]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};var le=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[W]=e.max||1/0;const t=e.length||te;if(this[H]="function"!=typeof t?te:t,this[q]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[Y]=e.maxAge||0,this[J]=e.dispose,this[Q]=e.noDisposeOnSet||!1,this[ee]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[W]=e||1/0,ie(this)}get max(){return this[W]}set allowStale(e){this[q]=!!e}get allowStale(){return this[q]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[Y]=e,ie(this)}get maxAge(){return this[Y]}set lengthCalculator(e){"function"!=typeof e&&(e=te),e!==this[H]&&(this[H]=e,this[V]=0,this[Z].forEach((e=>{e.length=this[H](e.value,e.key),this[V]+=e.length}))),ie(this)}get lengthCalculator(){return this[H]}get length(){return this[V]}get itemCount(){return this[Z].length}rforEach(e,t){t=t||this;for(let n=this[Z].tail;null!==n;){const r=n.prev;se(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[Z].head;null!==n;){const r=n.next;se(this,e,n,t),n=r}}keys(){return this[Z].toArray().map((e=>e.key))}values(){return this[Z].toArray().map((e=>e.value))}reset(){this[J]&&this[Z]&&this[Z].length&&this[Z].forEach((e=>this[J](e.key,e.value))),this[K]=new Map,this[Z]=new X,this[V]=0}dump(){return this[Z].map((e=>!re(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Z]}set(e,t,n){if((n=n||this[Y])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,i=this[H](t,e);if(this[K].has(e)){if(i>this[W])return oe(this,this[K].get(e)),!1;const o=this[K].get(e).value;return this[J]&&(this[Q]||this[J](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[V]+=i-o.length,o.length=i,this.get(e),ie(this),!0}const o=new ae(e,t,i,r,n);return o.length>this[W]?(this[J]&&this[J](e,t),!1):(this[V]+=o.length,this[Z].unshift(o),this[K].set(e,this[Z].head),ie(this),!0)}has(e){if(!this[K].has(e))return!1;const t=this[K].get(e).value;return!re(this,t)}get(e){return ne(this,e,!0)}peek(e){return ne(this,e,!1)}pop(){const e=this[Z].tail;return e?(oe(this,e),e.value):null}del(e){oe(this,this[K].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[K].forEach(((e,t)=>ne(this,t,!1)))}};const ce=["includePrerelease","loose","rtl"];var he=e=>e?"object"!=typeof e?{loose:!0}:ce.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{},pe={},de={get exports(){return pe},set exports(e){pe=e}};var ue={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};const fe="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n{};var ge=fe;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=ue,r=ge,i=(t=e.exports={}).re=[],o=t.src=[],a=t.t={};let s=0;const l=(e,t,n)=>{const l=s++;r(e,l,t),a[e]=l,o[l]=t,i[l]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),l("FULL",`^${o[a.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),l("LOOSE",`^${o[a.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),l("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),l("COERCERTL",o[a.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(de,pe);const me=/^[0-9]+$/,ve=(e,t)=>{const n=me.test(e),r=me.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eve(t,e)};const be=ge,{MAX_LENGTH:ye,MAX_SAFE_INTEGER:we}=ue,{re:Oe,t:Ae}=pe,xe=he,{compareIdentifiers:Ie}=Ee;var Ne=class e{constructor(t,n){if(n=xe(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid Version: ${t}`);if(t.length>ye)throw new TypeError(`version is longer than ${ye} characters`);be("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?Oe[Ae.LOOSE]:Oe[Ae.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>we||this.major<0)throw new TypeError("Invalid major version");if(this.minor>we||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>we||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===Ie(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};const $e=Ne;var Re=(e,t,n)=>new $e(e,n).compare(new $e(t,n));const Te=Re;const Le=Re;const Se=Re;const De=Re;const Ce=Re;const Fe=Re;const ke=(e,t,n)=>0===Te(e,t,n),Pe=(e,t,n)=>0!==Le(e,t,n),_e=(e,t,n)=>Se(e,t,n)>0,Me=(e,t,n)=>De(e,t,n)>=0,je=(e,t,n)=>Ce(e,t,n)<0,ze=(e,t,n)=>Fe(e,t,n)<=0;var Be,Ue,Ge,Xe,We=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return ke(e,n,r);case"!=":return Pe(e,n,r);case">":return _e(e,n,r);case">=":return Me(e,n,r);case"<":return je(e,n,r);case"<=":return ze(e,n,r);default:throw new TypeError(`Invalid operator: ${t}`)}};function Ve(){if(Xe)return Ge;Xe=1;class e{constructor(t,i){if(i=n(i),t instanceof e)return t.loose===!!i.loose&&t.includePrerelease===!!i.includePrerelease?t:new e(t.raw,i);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=t,this.set=t.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!p(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&d(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,o=t.get(n);if(o)return o;const d=this.options.loose,u=d?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(u,x(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),i("comparator trim",e);let g=(e=(e=(e=e.replace(a[s.TILDETRIM],c)).replace(a[s.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>f(e,this.options))).join(" ").split(/\s+/).map((e=>A(e,this.options)));d&&(g=g.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),i("range list",g);const m=new Map,v=g.map((e=>new r(e,this.options)));for(const e of v){if(p(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const E=[...m.values()];return t.set(n,E),E}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>u(e,n)&&t.set.some((t=>u(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options)}catch(e){return!1}for(let t=0;t="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),c=o(this.semver,"<",e.semver,n)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),h=o(this.semver,">",e.semver,n)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&s||c||h}}Be=t;const n=he,{re:r,t:i}=pe,o=We,a=ge,s=Ne,l=Ve();return Be}(),i=ge,o=Ne,{re:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:h}=pe,p=e=>"<0.0.0-0"===e.value,d=e=>""===e.value,u=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},f=(e,t)=>(i("comp",e,t),e=E(e,t),i("caret",e),e=m(e,t),i("tildes",e),e=y(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),g=e=>!e||"x"===e.toLowerCase()||"*"===e,m=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,((t,n,r,o,a)=>{let s;return i("tilde",e,t,n,r,o,a),g(n)?s="":g(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:g(o)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(i("replaceTilde pr",a),s=`>=${n}.${r}.${o}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${o} <${n}.${+r+1}.0-0`,i("tilde return",s),s}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{i("caret",e,t);const n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,a,s)=>{let l;return i("caret",e,t,n,o,a,s),g(n)?l="":g(o)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:g(a)?l="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:s?(i("replaceCaret pr",s),l="0"===n?"0"===o?`>=${n}.${o}.${a}-${s} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${s} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${s} <${+n+1}.0.0-0`):(i("no pr"),l="0"===n?"0"===o?`>=${n}.${o}.${a}${r} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",l),l}))},y=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>w(e,t))).join(" ")),w=(e,t)=>{e=e.trim();const n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,((n,r,o,a,s,l)=>{i("xRange",e,n,r,o,a,s,l);const c=g(o),h=c||g(a),p=h||g(s),d=p;return"="===r&&d&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(h&&(a=0),s=0,">"===r?(r=">=",h?(o=+o+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",h?o=+o+1:a=+a+1),"<"===r&&(l="-0"),n=`${r+o}.${a}.${s}${l}`):h?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),i("xRange return",n),n}))},O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),A=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),x=e=>(t,n,r,i,o,a,s,l,c,h,p,d,u)=>`${n=g(r)?"":g(i)?`>=${r}.0.0${e?"-0":""}`:g(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${l=g(c)?"":g(h)?`<${+c+1}.0.0-0`:g(p)?`<${c}.${+h+1}.0-0`:d?`<=${c}.${h}.${p}-${d}`:e?`<${c}.${h}.${+p+1}-0`:`<=${l}`}`.trim(),I=(e,t,n)=>{for(let n=0;n0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Ge}const He=Ve();var qe=(e,t,n)=>{try{t=new He(t,n)}catch(e){return!1}return t.test(e)};var Ye={NaN:NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE},Je={"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,">":(e,t)=>e>t,"<":(e,t)=>ee<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,"===":(e,t)=>e===t,"!==":(e,t)=>e!==t,"&":(e,t)=>e&t,"|":(e,t)=>e|t,"^":(e,t)=>e^t,"<<":(e,t)=>e<>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t},Qe={"+":e=>+e,"-":e=>-e,"~":e=>~e,"!":e=>!e};const Ze=Array.prototype.slice,Ke=(e,t,n)=>{const r=n?n(t[0]):t[0];return r[e].apply(r,Ze.call(t,1))};var et={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(e,t,n)=>Math.max(t,Math.min(n,e)),now:Date.now,utc:Date.UTC,datetime:(e,t,n,r,i,o,a)=>new Date(e,t||0,null!=n?n:1,r||0,i||0,o||0,a||0),date:e=>new Date(e).getDate(),day:e=>new Date(e).getDay(),year:e=>new Date(e).getFullYear(),month:e=>new Date(e).getMonth(),hours:e=>new Date(e).getHours(),minutes:e=>new Date(e).getMinutes(),seconds:e=>new Date(e).getSeconds(),milliseconds:e=>new Date(e).getMilliseconds(),time:e=>new Date(e).getTime(),timezoneoffset:e=>new Date(e).getTimezoneOffset(),utcdate:e=>new Date(e).getUTCDate(),utcday:e=>new Date(e).getUTCDay(),utcyear:e=>new Date(e).getUTCFullYear(),utcmonth:e=>new Date(e).getUTCMonth(),utchours:e=>new Date(e).getUTCHours(),utcminutes:e=>new Date(e).getUTCMinutes(),utcseconds:e=>new Date(e).getUTCSeconds(),utcmilliseconds:e=>new Date(e).getUTCMilliseconds(),length:e=>e.length,join:function(){return Ke("join",arguments)},indexof:function(){return Ke("indexOf",arguments)},lastindexof:function(){return Ke("lastIndexOf",arguments)},slice:function(){return Ke("slice",arguments)},reverse:e=>e.slice().reverse(),parseFloat:parseFloat,parseInt:parseInt,upper:e=>String(e).toUpperCase(),lower:e=>String(e).toLowerCase(),substring:function(){return Ke("substring",arguments,String)},split:function(){return Ke("split",arguments,String)},replace:function(){return Ke("replace",arguments,String)},trim:e=>String(e).trim(),regexp:RegExp,test:(e,t)=>RegExp(e).test(t)};const tt=["view","item","group","xy","x","y"],nt={Literal:(e,t)=>t.value,Identifier:(e,t)=>{const n=t.name;return e.memberDepth>0?n:"datum"===n?e.datum:"event"===n?e.event:"item"===n?e.item:Ye[n]||e.params["$"+n]},MemberExpression:(e,t)=>{const n=!t.computed,r=e(t.object);n&&(e.memberDepth+=1);const i=e(t.property);return n&&(e.memberDepth-=1),r[i]},CallExpression:(e,t)=>{const n=t.arguments;let r=t.callee.name;return r.startsWith("_")&&(r=r.slice(1)),"if"===r?e(n[0])?e(n[1]):e(n[2]):(e.fn[r]||et[r]).apply(e.fn,n.map(e))},ArrayExpression:(e,t)=>t.elements.map(e),BinaryExpression:(e,t)=>Je[t.operator](e(t.left),e(t.right)),UnaryExpression:(e,t)=>Qe[t.operator](e(t.argument)),ConditionalExpression:(e,t)=>e(t.test)?e(t.consequent):e(t.alternate),LogicalExpression:(e,t)=>"&&"===t.operator?e(t.left)&&e(t.right):e(t.left)||e(t.right),ObjectExpression:(e,t)=>t.properties.reduce(((t,n)=>{e.memberDepth+=1;const r=e(n.key);return e.memberDepth-=1,t[r]=e(n.value),t}),{})};function rt(e,t,n,r,i,o){const a=e=>nt[e.type](a,e);return a.memberDepth=0,a.fn=Object.create(t),a.params=n,a.datum=r,a.event=i,a.item=o,tt.forEach((e=>a.fn[e]=function(){return i.vega[e](...arguments)})),a(e)}var it={operator(e,t){const n=t.ast,r=e.functions;return e=>rt(n,r,e)},parameter(e,t){const n=t.ast,r=e.functions;return(e,t)=>rt(n,r,t,e)},event(e,t){const n=t.ast,r=e.functions;return e=>rt(n,r,void 0,void 0,e)},handler(e,t){const n=t.ast,r=e.functions;return(e,t)=>{const i=t.item&&t.item.datum;return rt(n,r,e,i,t)}},encode(e,t){const{marktype:n,channels:r}=t,i=e.functions,o="group"===n||"image"===n||"rect"===n;return(e,t)=>{const a=e.datum;let s,l=0;for(const n in r)s=rt(r[n].ast,i,t,a,void 0,e),e[n]!==s&&(e[n]=s,l=1);return"rule"!==n&&function(e,t,n){let r;t.x2&&(t.x?(n&&e.x>e.x2&&(r=e.x,e.x=e.x2,e.x2=r),e.width=e.x2-e.x):e.x=e.x2-(e.width||0)),t.xc&&(e.x=e.xc-(e.width||0)/2),t.y2&&(t.y?(n&&e.y>e.y2&&(r=e.y,e.y=e.y2,e.y2=r),e.height=e.y2-e.y):e.y=e.y2-(e.height||0)),t.yc&&(e.y=e.yc-(e.height||0)/2)}(e,r,o),l}}};function ot(e){const[t,n]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:t,version:n}}var at="2.12.1";const st="#fff",lt="#888",ct={background:"#333",view:{stroke:lt},title:{color:st,subtitleColor:st},style:{"guide-label":{fill:st},"guide-title":{fill:st}},axis:{domainColor:st,gridColor:lt,tickColor:st}},ht="#4572a7",pt={background:"#fff",arc:{fill:ht},area:{fill:ht},line:{stroke:ht,strokeWidth:2},path:{stroke:ht},rect:{fill:ht},shape:{stroke:ht},symbol:{fill:ht,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:!0,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:!1,tickExtra:!0},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}},dt="#30a2da",ut="#cbcbcb",ft="#f0f0f0",gt="#333",mt={arc:{fill:dt},area:{fill:dt},axis:{domainColor:ut,grid:!0,gridColor:ut,gridWidth:1,labelColor:"#999",labelFontSize:10,titleColor:"#333",tickColor:ut,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:!1},background:ft,group:{fill:ft},legend:{labelColor:gt,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:gt,titleFontSize:14,titlePadding:10},line:{stroke:dt,strokeWidth:2},path:{stroke:dt,strokeWidth:.5},rect:{fill:dt},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:!0,shape:"circle"},shape:{stroke:dt},bar:{binSpacing:2,fill:dt,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}},vt="#000",Et={group:{fill:"#e5e5e5"},arc:{fill:vt},area:{fill:vt},line:{stroke:vt},path:{stroke:vt},rect:{fill:vt},shape:{stroke:vt},symbol:{fill:vt,size:40},axis:{domain:!1,grid:!0,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}},bt="Benton Gothic, sans-serif",yt="#82c6df",wt="Benton Gothic Bold, sans-serif",Ot="normal",At={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"],"ice-7":["#edefee","#dadfe2","#c4ccd2","#a6b7c6","#849eae","#607785","#47525d"]},xt={background:"#ffffff",title:{anchor:"start",color:"#000000",font:wt,fontSize:22,fontWeight:"normal"},arc:{fill:yt},area:{fill:yt},line:{stroke:yt,strokeWidth:2},path:{stroke:yt},rect:{fill:yt},shape:{stroke:yt},symbol:{fill:yt,size:30},axis:{labelFont:bt,labelFontSize:11.5,labelFontWeight:"normal",titleFont:wt,titleFontSize:13,titleFontWeight:Ot},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:bt,labelFontSize:11.5,symbolType:"square",titleFont:wt,titleFontSize:13,titleFontWeight:Ot},range:{category:At["category-6"],diverging:At["fireandice-6"],heatmap:At["fire-7"],ordinal:At["fire-7"],ramp:At["fire-7"]}},It="#ab5787",Nt="#979797",$t={background:"#f9f9f9",arc:{fill:It},area:{fill:It},line:{stroke:It},path:{stroke:It},rect:{fill:It},shape:{stroke:It},symbol:{fill:It,size:30},axis:{domainColor:Nt,domainWidth:.5,gridWidth:.2,labelColor:Nt,tickColor:Nt,tickWidth:.2,titleColor:Nt},axisBand:{grid:!1},axisX:{grid:!0,tickSize:10},axisY:{domain:!1,grid:!0,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}},Rt="#3e5c69",Tt={background:"#fff",arc:{fill:Rt},area:{fill:Rt},line:{stroke:Rt},path:{stroke:Rt},rect:{fill:Rt},shape:{stroke:Rt},symbol:{fill:Rt},axis:{domainWidth:.5,grid:!0,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:!1},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}},Lt="#1696d2",St="#000000",Dt="Lato",Ct="Lato",Ft={"main-colors":["#1696d2","#d2d2d2","#000000","#fdbf11","#ec008b","#55b748","#5c5859","#db2b27"],"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"shades-gray":["#F5F5F5","#ECECEC","#E3E3E3","#DCDBDB","#D2D2D2","#9D9D9D","#696969","#353535"],"shades-yellow":["#FFF2CF","#FCE39E","#FDD870","#FCCB41","#FDBF11","#E88E2D","#CA5800","#843215"],"shades-magenta":["#F5CBDF","#EB99C2","#E46AA7","#E54096","#EC008B","#AF1F6B","#761548","#351123"],"shades-green":["#DCEDD9","#BCDEB4","#98CF90","#78C26D","#55B748","#408941","#2C5C2D","#1A2E19"],"shades-black":["#D5D5D4","#ADABAC","#848081","#5C5859","#332D2F","#262223","#1A1717","#0E0C0D"],"shades-red":["#F8D5D4","#F1AAA9","#E9807D","#E25552","#DB2B27","#A4201D","#6E1614","#370B0A"],"one-group":["#1696d2","#000000"],"two-groups-cat-1":["#1696d2","#000000"],"two-groups-cat-2":["#1696d2","#fdbf11"],"two-groups-cat-3":["#1696d2","#db2b27"],"two-groups-seq":["#a2d4ec","#1696d2"],"three-groups-cat":["#1696d2","#fdbf11","#000000"],"three-groups-seq":["#a2d4ec","#1696d2","#0a4c6a"],"four-groups-cat-1":["#000000","#d2d2d2","#fdbf11","#1696d2"],"four-groups-cat-2":["#1696d2","#ec0008b","#fdbf11","#5c5859"],"four-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a"],"five-groups-cat-1":["#1696d2","#fdbf11","#d2d2d2","#ec008b","#000000"],"five-groups-cat-2":["#1696d2","#0a4c6a","#d2d2d2","#fdbf11","#332d2f"],"five-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a","#000000"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-cat-2":["#1696d2","#d2d2d2","#ec008b","#fdbf11","#332d2f","#0a4c6a"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]},kt={background:"#FFFFFF",title:{anchor:"start",fontSize:18,font:Dt},axisX:{domain:!0,domainColor:St,domainWidth:1,grid:!1,labelFontSize:12,labelFont:Ct,labelAngle:0,tickColor:St,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:Dt},axisY:{domain:!1,domainWidth:1,grid:!0,gridColor:"#DEDDDD",gridWidth:1,labelFontSize:12,labelFont:Ct,labelPadding:8,ticks:!1,titleFontSize:12,titlePadding:10,titleFont:Dt,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:Ct,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:Dt,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:Ft["six-groups-cat-1"],diverging:Ft["diverging-colors"],heatmap:Ft["diverging-colors"],ordinal:Ft["six-groups-seq"],ramp:Ft["shades-blue"]},area:{fill:Lt},rect:{fill:Lt},line:{color:Lt,stroke:Lt,strokeWidth:5},trail:{color:Lt,stroke:Lt,strokeWidth:0,size:1},path:{stroke:Lt,strokeWidth:.5},point:{filled:!0},text:{font:"Lato",color:Lt,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:Lt,stroke:null}},arc:{fill:Lt},shape:{stroke:Lt},symbol:{fill:Lt,size:30}},Pt="#3366CC",_t="#ccc",Mt="Arial, sans-serif",jt={arc:{fill:Pt},area:{fill:Pt},path:{stroke:Pt},rect:{fill:Pt},shape:{stroke:Pt},symbol:{stroke:Pt},circle:{fill:Pt},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:Mt,fontSize:12},"guide-title":{font:Mt,fontSize:12},"group-title":{font:Mt,fontSize:12}},title:{font:Mt,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:_t,tickColor:_t,domain:!1,grid:!0},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}},zt=e=>e*(1/3+1),Bt=zt(9),Ut=zt(10),Gt=zt(12),Xt="Segoe UI",Wt="wf_standard-font, helvetica, arial, sans-serif",Vt="#252423",Ht="#605E5C",qt="transparent",Yt="#118DFF",Jt="#DEEFFF",Qt=[Jt,Yt],Zt={view:{stroke:qt},background:qt,font:Xt,header:{titleFont:Wt,titleFontSize:Gt,titleColor:Vt,labelFont:Xt,labelFontSize:Ut,labelColor:Ht},axis:{ticks:!1,grid:!1,domain:!1,labelColor:Ht,labelFontSize:Bt,titleFont:Wt,titleColor:Vt,titleFontSize:Gt,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:!0,gridColor:"#C8C6C4",gridDash:[1,5],labelFlush:!1},axisBand:{tickExtra:!0},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:Yt},line:{stroke:Yt,strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:Xt,fontSize:Bt,fill:Ht},arc:{fill:Yt},area:{fill:Yt,line:!0,opacity:.6},path:{stroke:Yt},rect:{fill:Yt},point:{fill:Yt,filled:!0,size:75},shape:{stroke:Yt},symbol:{fill:Yt,strokeWidth:1.5,size:50},legend:{titleFont:Xt,titleFontWeight:"bold",titleColor:Ht,labelFont:Xt,labelFontSize:Ut,labelColor:Ht,symbolType:"circle",symbolSize:75},range:{category:[Yt,"#12239E","#E66C37","#6B007B","#E044A7","#744EC2","#D9B300","#D64550"],diverging:Qt,heatmap:Qt,ordinal:[Jt,"#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff",Yt]}},Kt=at;var en=Object.freeze({__proto__:null,dark:ct,excel:pt,fivethirtyeight:mt,ggplot2:Et,googlecharts:jt,latimes:xt,powerbi:Zt,quartz:$t,urbaninstitute:kt,version:Kt,vox:Tt});function tn(e,t,n){return e.fields=t||[],e.fname=n,e}function nn(e){return 1===e.length?rn(e[0]):on(e)}const rn=e=>function(t){return t[e]},on=e=>{const t=e.length;return function(n){for(let r=0;rr&&c(),s=r=i+1):"]"===o&&(s||an("Access path missing open bracket: "+e),s>0&&c(),s=0,r=i+1):i>r?c():r=i+1}return s&&an("Access path missing closing bracket: "+e),a&&an("Access path missing closing quote: "+e),i>r&&(i++,c()),t}(e);e=1===r.length?r[0]:e,tn((n&&n.get||nn)(r),[e],t||e)}("id"),tn((e=>e),[],"identity"),tn((()=>0),[],"zero"),tn((()=>1),[],"one"),tn((()=>!0),[],"true"),tn((()=>!1),[],"false");var sn=Array.isArray;function ln(e){return e===Object(e)}function cn(e,t){return JSON.stringify(e,function(e){const t=[];return function(n,r){if("object"!=typeof r||null===r)return r;const i=t.indexOf(this)+1;return t.length=i,t.length>e?"[Object]":t.indexOf(r)>=0?"[Circular]":(t.push(r),r)}}(t))}var hn="#vg-tooltip-element {\n  visibility: hidden;\n  padding: 8px;\n  position: fixed;\n  z-index: 1000;\n  font-family: sans-serif;\n  font-size: 11px;\n  border-radius: 3px;\n  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n  /* The default theme is the light theme. */\n  background-color: rgba(255, 255, 255, 0.95);\n  border: 1px solid #d9d9d9;\n  color: black;\n}\n#vg-tooltip-element.visible {\n  visibility: visible;\n}\n#vg-tooltip-element h2 {\n  margin-top: 0;\n  margin-bottom: 10px;\n  font-size: 13px;\n}\n#vg-tooltip-element img {\n  max-width: 200px;\n  max-height: 200px;\n}\n#vg-tooltip-element table {\n  border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n  border: none;\n}\n#vg-tooltip-element table tr td {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  padding-top: 2px;\n  padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n  color: #808080;\n  max-width: 150px;\n  text-align: right;\n  padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n  display: block;\n  max-width: 300px;\n  max-height: 7em;\n  text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n  background-color: rgba(32, 32, 32, 0.9);\n  border: 1px solid #f5f5f5;\n  color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n  color: #bfbfbf;\n}\n";const pn="vg-tooltip-element",dn={offsetX:10,offsetY:10,id:pn,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function(e){return String(e).replace(/&/g,"&").replace(/t("string"==typeof e?e:cn(e,n)))).join(", ")}]`;if(ln(e)){let r="";const i=e,{title:o,image:a}=i,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i${t(o)}`),a&&(r+=``);const l=Object.keys(s);if(l.length>0){r+="";for(const e of l){let i=s[e];void 0!==i&&(ln(i)&&(i=cn(i,n)),r+=``)}r+="
${t(e)}:${t(i)}
"}return r||"{}"}return t(e)}};class un{constructor(e){this.options=Object.assign(Object.assign({},dn),e);const t=this.options.id;if(this.el=null,this.call=this.tooltipHandler.bind(this),!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const e=document.createElement("style");e.setAttribute("id",this.options.styleId),e.innerHTML=function(e){if(!/^[A-Za-z]+[-:.\w]*$/.test(e))throw new Error("Invalid HTML ID");return hn.toString().replace(pn,e)}(t);const n=document.head;n.childNodes.length>0?n.insertBefore(e,n.childNodes[0]):n.appendChild(e)}}tooltipHandler(e,t,n,r){var i;if(this.el=document.getElementById(this.options.id),!this.el){this.el=document.createElement("div"),this.el.setAttribute("id",this.options.id),this.el.classList.add("vg-tooltip");(null!==(i=document.fullscreenElement)&&void 0!==i?i:document.body).appendChild(this.el)}if(null==r||""===r)return void this.el.classList.remove("visible",`${this.options.theme}-theme`);this.el.innerHTML=this.options.formatTooltip(r,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:o,y:a}=function(e,t,n,r){let i=e.clientX+n;i+t.width>window.innerWidth&&(i=+e.clientX-n-t.width);let o=e.clientY+r;return o+t.height>window.innerHeight&&(o=+e.clientY-r-t.height),{x:i,y:o}}(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.style.top=`${a}px`,this.el.style.left=`${o}px`}}var fn='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';function gn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;re,"vega-lite":(e,t)=>yn.compile(e,{config:t}).spec},$n='\n\n \n \n \n',Rn="chart-wrapper";function Tn(e,t,n,r){const i=`${t}
`,o=`
${n}`,a=window.open("");a.document.write(i+e+o),a.document.title=`${xn[r]} JSON Source`}function Ln(e){return(t=e)&&"load"in t?e:bn.loader(e);var t}async function Sn(t,n){let r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.isString(n)?(i=Ln(o.loader),r=JSON.parse(await i.load(n))):r=n;const a=function(t){var n;const r=(null===(n=t.usermeta)||void 0===n?void 0:n.embedOptions)??{};return e.isString(r.defaultStyle)&&(r.defaultStyle=!1),r}(r),s=a.loader;i&&!s||(i=Ln(o.loader??s));const l=await Dn(a,i),c=await Dn(o,i),h={...gn(c,l),config:e.mergeConfig(c.config??{},l.config??{})};return await async function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;const o=r.theme?e.mergeConfig(en[r.theme],r.config??{}):r.config,a=e.isBoolean(r.actions)?r.actions:gn({},On,r.actions??{}),s={...An,...r.i18n},l=r.renderer??"canvas",c=r.logLevel??bn.Warn,h=r.downloadFileName??"visualization",p="string"==typeof t?document.querySelector(t):t;if(!p)throw new Error(`${t} does not exist`);if(!1!==r.defaultStyle){const e="vega-embed-style",{root:t,rootContainer:n}=function(e){const t=e.getRootNode?e.getRootNode():document;return t instanceof ShadowRoot?{root:t,rootContainer:t}:{root:document,rootContainer:document.head??document.body}}(p);if(!t.getElementById(e)){const t=document.createElement("style");t.id=e,t.innerHTML=void 0===r.defaultStyle||!0===r.defaultStyle?fn.toString():r.defaultStyle,n.appendChild(t)}}const d=function(e,t){if(e.$schema){const n=ot(e.$schema);t&&t!==n.library&&console.warn(`The given visualization spec is written in ${xn[n.library]}, but mode argument sets ${xn[t]??t}.`);const r=n.library;return qe(In[r],`^${n.version.slice(1)}`)||console.warn(`The input spec uses ${xn[r]} ${n.version}, but the current version of ${xn[r]} is v${In[r]}.`),r}return"mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e?"vega-lite":"marks"in e||"signals"in e||"scales"in e||"axes"in e?"vega":t??"vega"}(n,r.mode);let u=Nn[d](n,o);if("vega-lite"===d&&u.$schema){const e=ot(u.$schema);qe(In.vega,`^${e.version.slice(1)}`)||console.warn(`The compiled spec uses Vega ${e.version}, but current version is v${In.vega}.`)}p.classList.add("vega-embed"),a&&p.classList.add("has-actions");p.innerHTML="";let f=p;if(a){const e=document.createElement("div");e.classList.add(Rn),p.appendChild(e),f=e}const g=r.patch;g&&(u=g instanceof Function?g(u):A(u,g,!0,!1).newDocument);r.formatLocale&&bn.formatLocale(r.formatLocale);r.timeFormatLocale&&bn.timeFormatLocale(r.timeFormatLocale);if(r.expressionFunctions)for(const e in r.expressionFunctions){const t=r.expressionFunctions[e];"fn"in t?bn.expressionFunction(e,t.fn,t.visitor):t instanceof Function&&bn.expressionFunction(e,t)}const{ast:m}=r,v=bn.parse(u,"vega-lite"===d?{}:o,{ast:m}),E=new(r.viewClass||bn.View)(v,{loader:i,logLevel:c,renderer:l,...m?{expr:bn.expressionInterpreter??r.expr??it}:{}});if(E.addSignalListener("autosize",((e,t)=>{const{type:n}=t;"fit-x"==n?(f.classList.add("fit-x"),f.classList.remove("fit-y")):"fit-y"==n?(f.classList.remove("fit-x"),f.classList.add("fit-y")):"fit"==n?f.classList.add("fit-x","fit-y"):f.classList.remove("fit-x","fit-y")})),!1!==r.tooltip){const e="function"==typeof r.tooltip?r.tooltip:new un(!0===r.tooltip?{}:r.tooltip).call;E.tooltip(e)}let b,{hover:y}=r;void 0===y&&(y="vega"===d);if(y){const{hoverSet:e,updateSet:t}="boolean"==typeof y?{}:y;E.hover(e,t)}r&&(null!=r.width&&E.width(r.width),null!=r.height&&E.height(r.height),null!=r.padding&&E.padding(r.padding));if(await E.initialize(f,r.bind).runAsync(),!1!==a){let t=p;if(!1!==r.defaultStyle){const e=document.createElement("details");e.title=s.CLICK_TO_VIEW_ACTIONS,p.append(e),t=e;const n=document.createElement("summary");n.innerHTML=$n,e.append(n),b=t=>{e.contains(t.target)||e.removeAttribute("open")},document.addEventListener("click",b)}const i=document.createElement("div");if(t.append(i),i.classList.add("vega-actions"),!0===a||!1!==a.export)for(const t of["svg","png"])if(!0===a||!0===a.export||a.export[t]){const n=s[`${t.toUpperCase()}_ACTION`],o=document.createElement("a"),a=e.isObject(r.scaleFactor)?r.scaleFactor[t]:r.scaleFactor;o.text=n,o.href="#",o.target="_blank",o.download=`${h}.${t}`,o.addEventListener("mousedown",(async function(e){e.preventDefault();const n=await E.toImageURL(t,a);this.href=n})),i.append(o)}if(!0===a||!1!==a.source){const e=document.createElement("a");e.text=s.SOURCE_ACTION,e.href="#",e.addEventListener("click",(function(e){Tn(_(n),r.sourceHeader??"",r.sourceFooter??"",d),e.preventDefault()})),i.append(e)}if("vega-lite"===d&&(!0===a||!1!==a.compiled)){const e=document.createElement("a");e.text=s.COMPILED_ACTION,e.href="#",e.addEventListener("click",(function(e){Tn(_(u),r.sourceHeader??"",r.sourceFooter??"","vega"),e.preventDefault()})),i.append(e)}if(!0===a||!1!==a.editor){const e=r.editorUrl??"https://vega.github.io/editor/",t=document.createElement("a");t.text=s.EDITOR_ACTION,t.href="#",t.addEventListener("click",(function(t){!function(e,t,n){const r=e.open(t),i=250,{origin:o}=new URL(t);let a=~~(1e4/i);e.addEventListener("message",(function t(n){n.source===r&&(a=0,e.removeEventListener("message",t,!1))}),!1),setTimeout((function e(){a<=0||(r.postMessage(n,o),setTimeout(e,i),a-=1)}),i)}(window,e,{config:o,mode:d,renderer:l,spec:_(n)}),t.preventDefault()})),i.append(t)}}function w(){b&&document.removeEventListener("click",b),E.finalize()}return{view:E,spec:n,vgSpec:u,finalize:w,embedOptions:r}}(t,r,h,i)}async function Dn(t,n){const r=e.isString(t.config)?JSON.parse(await n.load(t.config)):t.config??{},i=e.isString(t.patch)?JSON.parse(await n.load(t.patch)):t.patch;return{...t,...i?{patch:i}:{},...r?{config:r}:{}}}async function Cn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=document.createElement("div");n.classList.add("vega-embed-wrapper");const r=document.createElement("div");n.appendChild(r);const i=!0===t.actions||!1===t.actions?t.actions:{export:!0,source:!1,compiled:!0,editor:!0,...t.actions??{}},o=await Sn(r,e,{actions:i,...t??{}});return n.value=o.view,n}const Fn=function(){return arguments.length>1&&(e.isString(arguments.length<=0?void 0:arguments[0])&&!((t=arguments.length<=0?void 0:arguments[0]).startsWith("http://")||t.startsWith("https://")||t.startsWith("//"))||(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement||3===arguments.length)?Sn(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]):Cn(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1]);var t};return Fn.vegaLite=yn,Fn.vl=yn,Fn.container=Cn,Fn.embed=Sn,Fn.vega=bn,Fn.default=Sn,Fn.version=En,Fn})); //# sourceMappingURL=vega-embed.min.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy