!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 r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=r(e),i=r(t),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=48&&t<=57))return!1;r++}return!0}function v(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function g(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function m(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t=h){if(r&&"add"===t.op&&p>l.length)throw new y("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=A[t.op].call(t,l,p,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}}else if(p&&-1!=p.indexOf("~")&&(p=g(p)),c>=h){if(!1===(a=O[t.op].call(t,l,p,e)).test)throw new y("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return a}l=l[p]}}function N(e,t,r,n,i){if(void 0===n&&(n=!0),void 0===i&&(i=!0),r&&!Array.isArray(t))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=f(e));for(var o=new Array(t.length),a=0,s=t.length;a0)throw new y('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new y("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&m(e.value))throw new y("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var i=e.path.split("/").length,o=n.split("/").length;if(i!==o+1&&i!==o)throw new y("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==n)throw new y("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var a=$([{op:"_get",path:e.from,value:void 0}],r);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new y("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function $(e,t,r){try{if(!Array.isArray(e))throw new y("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)N(f(t),f(e),r||!0);else{r=r||x;for(var n=0;n0&&(e.patches=[],e.callback&&e.callback(n)),n}function F(e,t,r,n,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var o=p(t),a=p(e),s=!1,l=a.length-1;l>=0;l--){var c=e[d=a[l]];if(!u(t,d)||void 0===t[d]&&void 0!==c&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+v(d),value:f(c)}),r.push({op:"remove",path:n+"/"+v(d)}),s=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}));else{var h=t[d];"object"==typeof c&&null!=c&&"object"==typeof h&&null!=h?F(c,h,r,n+"/"+v(d),i):c!==h&&(i&&r.push({op:"test",path:n+"/"+v(d),value:f(c)}),r.push({op:"replace",path:n+"/"+v(d),value:f(h)}))}}if(s||o.length!=a.length)for(l=0;l0)return[g,r+c.join(",\n"+d),s].join("\n"+o)}return m}(e,"",0)};var z={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16};var M="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},B=function(e){var t={exports:{}};return e(t,t.exports),t.exports}((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r}=z,n=(t=e.exports={}).re=[],i=t.src=[],o=t.t={};let a=0;const s=(e,t,r)=>{const s=a++;M(s,t),o[e]=s,i[s]=t,n[s]=new RegExp(t,r?"g":void 0)};s("NUMERICIDENTIFIER","0|[1-9]\\d*"),s("NUMERICIDENTIFIERLOOSE","[0-9]+"),s("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),s("MAINVERSION",`(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})`),s("MAINVERSIONLOOSE",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),s("PRERELEASEIDENTIFIER",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASEIDENTIFIERLOOSE",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),s("PRERELEASE",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\.${i[o.PRERELEASEIDENTIFIER]})*))`),s("PRERELEASELOOSE",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),s("BUILDIDENTIFIER","[0-9A-Za-z-]+"),s("BUILD",`(?:\\+(${i[o.BUILDIDENTIFIER]}(?:\\.${i[o.BUILDIDENTIFIER]})*))`),s("FULLPLAIN",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),s("FULL",`^${i[o.FULLPLAIN]}$`),s("LOOSEPLAIN",`[v=\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),s("LOOSE",`^${i[o.LOOSEPLAIN]}$`),s("GTLT","((?:<|>)?=?)"),s("XRANGEIDENTIFIERLOOSE",`${i[o.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),s("XRANGEIDENTIFIER",`${i[o.NUMERICIDENTIFIER]}|x|X|\\*`),s("XRANGEPLAIN",`[v=\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),s("XRANGEPLAINLOOSE",`[v=\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),s("XRANGE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAIN]}$`),s("XRANGELOOSE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAINLOOSE]}$`),s("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),s("COERCERTL",i[o.COERCE],!0),s("LONETILDE","(?:~>?)"),s("TILDETRIM",`(\\s*)${i[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",s("TILDE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),s("TILDELOOSE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),s("LONECARET","(?:\\^)"),s("CARETTRIM",`(\\s*)${i[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",s("CARET",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),s("CARETLOOSE",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),s("COMPARATORLOOSE",`^${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]})$|^$`),s("COMPARATOR",`^${i[o.GTLT]}\\s*(${i[o.FULLPLAIN]})$|^$`),s("COMPARATORTRIM",`(\\s*)${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",s("HYPHENRANGE",`^\\s*(${i[o.XRANGEPLAIN]})\\s+-\\s+(${i[o.XRANGEPLAIN]})\\s*$`),s("HYPHENRANGELOOSE",`^\\s*(${i[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[o.XRANGEPLAINLOOSE]})\\s*$`),s("STAR","(<|>)?=?\\s*\\*"),s("GTE0","^\\s*>=\\s*0.0.0\\s*$"),s("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const G=["includePrerelease","loose","rtl"];var U=e=>e?"object"!=typeof e?{loose:!0}:G.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{};const X=/^[0-9]+$/,V=(e,t)=>{const r=X.test(e),n=X.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eV(t,e)};const{MAX_LENGTH:H,MAX_SAFE_INTEGER:q}=z,{re:Y,t:J}=B,{compareIdentifiers:Q}=W;class Z{constructor(e,t){if(t=U(t),e instanceof Z){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid Version: ${e}`);if(e.length>H)throw new TypeError(`version is longer than ${H} characters`);M("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?Y[J.LOOSE]:Y[J.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>q||this.major<0)throw new TypeError("Invalid major version");if(this.minor>q||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>q||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&&(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}}var K=Z;const{MAX_LENGTH:ee}=z,{re:te,t:re}=B;var ne=(e,t)=>{if(t=U(t),e instanceof K)return e;if("string"!=typeof e)return null;if(e.length>ee)return null;if(!(t.loose?te[re.LOOSE]:te[re.FULL]).test(e))return null;try{return new K(e,t)}catch(e){return null}};var ie=(e,t)=>{const r=ne(e,t);return r?r.version:null};var oe=(e,t)=>{const r=ne(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};var ae=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new K(e,r).inc(t,n).version}catch(e){return null}};var se=(e,t,r)=>new K(e,r).compare(new K(t,r));var le=(e,t,r)=>0===se(e,t,r);var ce=(e,t)=>{if(le(e,t))return null;{const r=ne(e),n=ne(t),i=r.prerelease.length||n.prerelease.length,o=i?"pre":"",a=i?"prerelease":"";for(const e in r)if(("major"===e||"minor"===e||"patch"===e)&&r[e]!==n[e])return o+e;return a}};var he=(e,t)=>new K(e,t).major;var ue=(e,t)=>new K(e,t).minor;var pe=(e,t)=>new K(e,t).patch;var fe=(e,t)=>{const r=ne(e,t);return r&&r.prerelease.length?r.prerelease:null};var de=(e,t,r)=>se(t,e,r);var ve=(e,t)=>se(e,t,!0);var ge=(e,t,r)=>{const n=new K(e,r),i=new K(t,r);return n.compare(i)||n.compareBuild(i)};var me=(e,t)=>e.sort(((e,r)=>ge(e,r,t)));var Ee=(e,t)=>e.sort(((e,r)=>ge(r,e,t)));var be=(e,t,r)=>se(e,t,r)>0;var ye=(e,t,r)=>se(e,t,r)<0;var we=(e,t,r)=>0!==se(e,t,r);var Oe=(e,t,r)=>se(e,t,r)>=0;var Ae=(e,t,r)=>se(e,t,r)<=0;var Ie=(e,t,r,n)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return le(e,r,n);case"!=":return we(e,r,n);case">":return be(e,r,n);case">=":return Oe(e,r,n);case"<":return ye(e,r,n);case"<=":return Ae(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};const{re:Re,t:Ne}=B;var xe=(e,t)=>{if(e instanceof K)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=Re[Ne.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),Re[Ne.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;Re[Ne.COERCERTL].lastIndex=-1}else r=e.match(Re[Ne.COERCE]);return null===r?null:ne(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)},$e=Se;function Se(e){var t=this;if(t instanceof Se||(t=new Se),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 r=0,n=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},Se.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},Se.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},Se.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},Se.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new Se;if(tthis.length&&(t=this.length);for(var n=0,i=this.head;null!==i&&nthis.length&&(t=this.length);for(var n=this.length,i=this.tail;null!==i&&n>t;n--)i=i.prev;for(;null!==i&&n>e;n--,i=i.prev)r.push(i.value);return r},Se.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n1;const Ve=(e,t,r)=>{const n=e[Ge].get(t);if(n){const t=n.value;if(We(e,t)){if(qe(e,n),!e[_e])return}else r&&(e[Ue]&&(n.value.now=Date.now()),e[Be].unshiftNode(n));return t.value}},We=(e,t)=>{if(!t||!t.maxAge&&!e[je])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[je]&&r>e[je]},He=e=>{if(e[Fe]>e[ke])for(let t=e[Be].tail;e[Fe]>e[ke]&&null!==t;){const r=t.prev;qe(e,t),t=r}},qe=(e,t)=>{if(t){const r=t.value;e[ze]&&e[ze](r.key,r.value),e[Fe]-=r.length,e[Ge].delete(r.key),e[Be].removeNode(t)}};class Ye{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const Je=(e,t,r,n)=>{let i=r.value;We(e,i)&&(qe(e,r),e[_e]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};var Qe=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[ke]=e.max||1/0;const t=e.length||Xe;if(this[Pe]="function"!=typeof t?Xe:t,this[_e]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[je]=e.maxAge||0,this[ze]=e.dispose,this[Me]=e.noDisposeOnSet||!1,this[Ue]=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[ke]=e||1/0,He(this)}get max(){return this[ke]}set allowStale(e){this[_e]=!!e}get allowStale(){return this[_e]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[je]=e,He(this)}get maxAge(){return this[je]}set lengthCalculator(e){"function"!=typeof e&&(e=Xe),e!==this[Pe]&&(this[Pe]=e,this[Fe]=0,this[Be].forEach((e=>{e.length=this[Pe](e.value,e.key),this[Fe]+=e.length}))),He(this)}get lengthCalculator(){return this[Pe]}get length(){return this[Fe]}get itemCount(){return this[Be].length}rforEach(e,t){t=t||this;for(let r=this[Be].tail;null!==r;){const n=r.prev;Je(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[Be].head;null!==r;){const n=r.next;Je(this,e,r,t),r=n}}keys(){return this[Be].toArray().map((e=>e.key))}values(){return this[Be].toArray().map((e=>e.value))}reset(){this[ze]&&this[Be]&&this[Be].length&&this[Be].forEach((e=>this[ze](e.key,e.value))),this[Ge]=new Map,this[Be]=new $e,this[Fe]=0}dump(){return this[Be].map((e=>!We(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Be]}set(e,t,r){if((r=r||this[je])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,i=this[Pe](t,e);if(this[Ge].has(e)){if(i>this[ke])return qe(this,this[Ge].get(e)),!1;const o=this[Ge].get(e).value;return this[ze]&&(this[Me]||this[ze](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[Fe]+=i-o.length,o.length=i,this.get(e),He(this),!0}const o=new Ye(e,t,i,n,r);return o.length>this[ke]?(this[ze]&&this[ze](e,t),!1):(this[Fe]+=o.length,this[Be].unshift(o),this[Ge].set(e,this[Be].head),He(this),!0)}has(e){if(!this[Ge].has(e))return!1;const t=this[Ge].get(e).value;return!We(this,t)}get(e){return Ve(this,e,!0)}peek(e){return Ve(this,e,!1)}pop(){const e=this[Be].tail;return e?(qe(this,e),e.value):null}del(e){qe(this,this[Ge].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[Ge].forEach(((e,t)=>Ve(this,t,!1)))}};class Ze{constructor(e,t){if(t=U(t),e instanceof Ze)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Ze(e.raw,t);if(e instanceof At)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!at(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&&st(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 t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=et.get(t);if(r)return r;const n=this.options.loose,i=n?tt[rt.HYPHENRANGELOOSE]:tt[rt.HYPHENRANGE];e=e.replace(i,bt(this.options.includePrerelease)),M("hyphen replace",e),e=e.replace(tt[rt.COMPARATORTRIM],nt),M("comparator trim",e,tt[rt.COMPARATORTRIM]),e=(e=(e=e.replace(tt[rt.TILDETRIM],it)).replace(tt[rt.CARETTRIM],ot)).split(/\s+/).join(" ");const o=n?tt[rt.COMPARATORLOOSE]:tt[rt.COMPARATOR],a=e.split(" ").map((e=>ct(e,this.options))).join(" ").split(/\s+/).map((e=>Et(e,this.options))).filter(this.options.loose?e=>!!e.match(o):()=>!0).map((e=>new At(e,this.options))),s=(a.length,new Map);for(const e of a){if(at(e))return[e];s.set(e.value,e)}s.size>1&&s.has("")&&s.delete("");const l=[...s.values()];return et.set(t,l),l}intersects(e,t){if(!(e instanceof Ze))throw new TypeError("a Range is required");return this.set.some((r=>lt(r,t)&&e.set.some((e=>lt(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===e.value,st=e=>""===e.value,lt=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},ct=(e,t)=>(M("comp",e,t),e=ft(e,t),M("caret",e),e=ut(e,t),M("tildes",e),e=vt(e,t),M("xrange",e),e=mt(e,t),M("stars",e),e),ht=e=>!e||"x"===e.toLowerCase()||"*"===e,ut=(e,t)=>e.trim().split(/\s+/).map((e=>pt(e,t))).join(" "),pt=(e,t)=>{const r=t.loose?tt[rt.TILDELOOSE]:tt[rt.TILDE];return e.replace(r,((t,r,n,i,o)=>{let a;return M("tilde",e,t,r,n,i,o),ht(r)?a="":ht(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:ht(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(M("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,M("tilde return",a),a}))},ft=(e,t)=>e.trim().split(/\s+/).map((e=>dt(e,t))).join(" "),dt=(e,t)=>{M("caret",e,t);const r=t.loose?tt[rt.CARETLOOSE]:tt[rt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,a)=>{let s;return M("caret",e,t,r,i,o,a),ht(r)?s="":ht(i)?s=`>=${r}.0.0${n} <${+r+1}.0.0-0`:ht(o)?s="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(M("replaceCaret pr",a),s="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(M("no pr"),s="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),M("caret return",s),s}))},vt=(e,t)=>(M("replaceXRanges",e,t),e.split(/\s+/).map((e=>gt(e,t))).join(" ")),gt=(e,t)=>{e=e.trim();const r=t.loose?tt[rt.XRANGELOOSE]:tt[rt.XRANGE];return e.replace(r,((r,n,i,o,a,s)=>{M("xRange",e,r,n,i,o,a,s);const l=ht(i),c=l||ht(o),h=c||ht(a),u=h;return"="===n&&u&&(n=""),s=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(s="-0"),r=`${n+i}.${o}.${a}${s}`):c?r=`>=${i}.0.0${s} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${o}.0${s} <${i}.${+o+1}.0-0`),M("xRange return",r),r}))},mt=(e,t)=>(M("replaceStars",e,t),e.trim().replace(tt[rt.STAR],"")),Et=(e,t)=>(M("replaceGTE0",e,t),e.trim().replace(tt[t.includePrerelease?rt.GTE0PRE:rt.GTE0],"")),bt=e=>(t,r,n,i,o,a,s,l,c,h,u,p,f)=>`${r=ht(n)?"":ht(i)?`>=${n}.0.0${e?"-0":""}`:ht(o)?`>=${n}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=ht(c)?"":ht(h)?`<${+c+1}.0.0-0`:ht(u)?`<${c}.${+h+1}.0-0`:p?`<=${c}.${h}.${u}-${p}`:e?`<${c}.${h}.${+u+1}-0`:`<=${l}`}`.trim(),yt=(e,t,r)=>{for(let r=0;r0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0},wt=Symbol("SemVer ANY");class Ot{static get ANY(){return wt}constructor(e,t){if(t=U(t),e instanceof Ot){if(e.loose===!!t.loose)return e;e=e.value}M("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===wt?this.value="":this.value=this.operator+this.semver.version,M("comp",this)}parse(e){const t=this.options.loose?It[Rt.COMPARATORLOOSE]:It[Rt.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new K(r[2],this.options.loose):this.semver=wt}toString(){return this.value}test(e){if(M("Comparator.test",e,this.options.loose),this.semver===wt||e===wt)return!0;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}return Ie(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ot))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new Ke(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new Ke(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=Ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=Ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||i&&o||a||s}}var At=Ot;const{re:It,t:Rt}=B;var Nt=(e,t,r)=>{try{t=new Ke(t,r)}catch(e){return!1}return t.test(e)};var xt=(e,t)=>new Ke(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));var $t=(e,t,r)=>{let n=null,i=null,o=null;try{o=new Ke(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&-1!==i.compare(e)||(n=e,i=new K(n,r)))})),n};var St=(e,t,r)=>{let n=null,i=null,o=null;try{o=new Ke(t,r)}catch(e){return null}return e.forEach((e=>{o.test(e)&&(n&&1!==i.compare(e)||(n=e,i=new K(n,r)))})),n};var Tt=(e,t)=>{e=new Ke(e,t);let r=new K("0.0.0");if(e.test(r))return r;if(r=new K("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t{const t=new K(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!be(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||r&&!be(r,i)||(r=i)}return r&&e.test(r)?r:null};var Lt=(e,t)=>{try{return new Ke(e,t).range||"*"}catch(e){return null}};const{ANY:Ct}=At;var Dt=(e,t,r,n)=>{let i,o,a,s,l;switch(e=new K(e,n),t=new Ke(t,n),r){case">":i=be,o=Ae,a=ye,s=">",l=">=";break;case"<":i=ye,o=Oe,a=be,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Nt(e,t,n))return!1;for(let r=0;r{e.semver===Ct&&(e=new At(">=0.0.0")),h=h||e,u=u||e,i(e.semver,h.semver,n)?h=e:a(e.semver,u.semver,n)&&(u=e)})),h.operator===s||h.operator===l)return!1;if((!u.operator||u.operator===s)&&o(e,u.semver))return!1;if(u.operator===l&&a(e,u.semver))return!1}return!0};var kt=(e,t,r)=>Dt(e,t,">",r);var Ft=(e,t,r)=>Dt(e,t,"<",r);var Pt=(e,t,r)=>(e=new Ke(e,r),t=new Ke(t,r),e.intersects(t));const{ANY:_t}=At,jt=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===_t)return 1===t.length&&t[0].semver===_t;const n=new Set;let i,o,a,s,l,c,h;for(const t of e)">"===t.operator||">="===t.operator?i=zt(i,t,r):"<"===t.operator||"<="===t.operator?o=Mt(o,t,r):n.add(t.semver);if(n.size>1)return null;if(i&&o){if(a=se(i.semver,o.semver,r),a>0)return null;if(0===a&&(">="!==i.operator||"<="!==o.operator))return null}for(const e of n){if(i&&!Nt(e,String(i),r))return null;if(o&&!Nt(e,String(o),r))return null;for(const n of t)if(!Nt(e,String(n),r))return!1;return!0}for(const e of t){if(h=h||">"===e.operator||">="===e.operator,c=c||"<"===e.operator||"<="===e.operator,i)if(">"===e.operator||">="===e.operator){if(s=zt(i,e,r),s===e&&s!==i)return!1}else if(">="===i.operator&&!Nt(i.semver,String(e),r))return!1;if(o)if("<"===e.operator||"<="===e.operator){if(l=Mt(o,e,r),l===e&&l!==o)return!1}else if("<="===o.operator&&!Nt(o.semver,String(e),r))return!1;if(!e.operator&&(o||i)&&0!==a)return!1}return!(i&&c&&!o&&0!==a)&&!(o&&h&&!i&&0!==a)},zt=(e,t,r)=>{if(!e)return t;const n=se(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},Mt=(e,t,r)=>{if(!e)return t;const n=se(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};var Bt=(e,t,r)=>{if(e===t)return!0;e=new Ke(e,r),t=new Ke(t,r);let n=!1;e:for(const i of e.set){for(const e of t.set){const t=jt(i,e,r);if(n=n||null!==t,t)continue e}if(n)return!1}return!0},Gt={re:B.re,src:B.src,tokens:B.t,SEMVER_SPEC_VERSION:z.SEMVER_SPEC_VERSION,SemVer:K,compareIdentifiers:W.compareIdentifiers,rcompareIdentifiers:W.rcompareIdentifiers,parse:ne,valid:ie,clean:oe,inc:ae,diff:ce,major:he,minor:ue,patch:pe,prerelease:fe,compare:se,rcompare:de,compareLoose:ve,compareBuild:ge,sort:me,rsort:Ee,gt:be,lt:ye,eq:le,neq:we,gte:Oe,lte:Ae,cmp:Ie,coerce:xe,Comparator:At,Range:Ke,satisfies:Nt,toComparators:xt,maxSatisfying:$t,minSatisfying:St,minVersion:Tt,validRange:Lt,outside:Dt,gtr:kt,ltr:Ft,intersects:Pt,simplifyRange:(e,t,r)=>{const n=[];let i=null,o=null;const a=e.sort(((e,t)=>se(e,t,r)));for(const e of a){Nt(e,t,r)?(o=e,i||(i=e)):(o&&n.push([i,o]),o=null,i=null)}i&&n.push([i,null]);const s=[];for(const[e,t]of n)e===t?s.push(e):t||e!==a[0]?t?e===a[0]?s.push(`<=${t}`):s.push(`${e} - ${t}`):s.push(`>=${e}`):s.push("*");const l=s.join(" || "),c="string"==typeof t.raw?t.raw:String(t);return l.lengthfunction(t){return t[e]},xr=e=>{const t=e.length;return function(r){for(let n=0;nn&&c(),s=n=i+1):"]"===o&&(s||$r("Access path missing open bracket: "+e),s>0&&c(),s=0,n=i+1):i>n?c():n=i+1}return s&&$r("Access path missing closing bracket: "+e),a&&$r("Access path missing closing quote: "+e),i>n&&(i++,c()),t}(e);e=1===n.length?n[0]:e,Ir((r&&r.get||Rr)(n),[e],t||e)})("id"),Ir((e=>e),[],"identity"),Ir((()=>0),[],"zero"),Ir((()=>1),[],"one"),Ir((()=>!0),[],"true"),Ir((()=>!1),[],"false");var Sr=Array.isArray;function Tr(e){return e===Object(e)}var Lr="#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 #vg-tooltip-element.visible {\n visibility: visible; }\n #vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px; }\n #vg-tooltip-element img {\n max-width: 200px;\n max-height: 200px; }\n #vg-tooltip-element table {\n border-spacing: 0; }\n #vg-tooltip-element table tr {\n border: none; }\n #vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px; }\n #vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px; }\n #vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left; }\n #vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white; }\n #vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf; }\n";const Cr="vg-tooltip-element",Dr={offsetX:10,offsetY:10,id:Cr,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:!1,sanitize:function(e){return String(e).replace(/&/g,"&").replace(/t("string"==typeof e?e:Fr(e,r)))).join(", ")}]`;if(Tr(e)){let n="";const i=e,{title:o,image:a}=i,s= /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i${t(o)}`),a&&(n+=``);const l=Object.keys(s);if(l.length>0){n+="";for(const e of l){let i=s[e];void 0!==i&&(Tr(i)&&(i=Fr(i,r)),n+=``)}n+="
${t(e)}:${t(i)}
"}return n||"{}"}return t(e)}function Fr(e,t){return JSON.stringify(e,function(e){const t=[];return function(r,n){if("object"!=typeof n||null===n)return n;const i=t.indexOf(this)+1;return t.length=i,t.length>e?"[Object]":t.indexOf(n)>=0?"[Circular]":(t.push(n),n)}}(t))}class Pr{constructor(e){this.options=Object.assign(Object.assign({},Dr),e);const t=this.options.id;if(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 Lr.toString().replace(Cr,e)}(t);const r=document.head;r.childNodes.length>0?r.insertBefore(e,r.childNodes[0]):r.appendChild(e)}this.el=document.getElementById(t),this.el||(this.el=document.createElement("div"),this.el.setAttribute("id",t),this.el.classList.add("vg-tooltip"),document.body.appendChild(this.el))}tooltipHandler(e,t,r,n){if(null==n||""===n)return void this.el.classList.remove("visible",`${this.options.theme}-theme`);this.el.innerHTML=kr(n,this.options.sanitize,this.options.maxDepth),this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:i,y:o}=function(e,t,r,n){let i=e.clientX+r;i+t.width>window.innerWidth&&(i=+e.clientX-r-t.width);let o=e.clientY+n;return o+t.height>window.innerHeight&&(o=+e.clientY-n-t.height),{x:i,y:o}}(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.setAttribute("style",`top: ${o}px; left: ${i}px`)}}var _r;function jr(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//")}function zr(e){for(var t=[],r=1;r
',o="
"+r+"",a=window.open("");a.document.write(i+e+o),a.document.title=Wr[n]+" JSON Source"}function Jr(t,r,n){var i,l,c;return void 0===n&&(n={}),a(this,void 0,void 0,(function(){var a,h,u,p,f,d,v,g;return s(this,(function(s){switch(s.label){case 0:return m=n.loader,a=m&&"load"in m?n.loader:Br.loader(n.loader),e.isString(r)?(f=(p=JSON).parse,[4,a.load(r)]):[3,2];case 1:return u=f.apply(p,[s.sent()]),[3,3];case 2:u=r,s.label=3;case 3:return[4,Qr(null!==(i=(h=u).usermeta&&h.usermeta.embedOptions)&&void 0!==i?i:{},a)];case 4:return d=s.sent(),[4,Qr(n,a)];case 5:return v=s.sent(),g=o(o({},zr(v,d)),{config:e.mergeConfig(null!==(l=v.config)&&void 0!==l?l:{},null!==(c=d.config)&&void 0!==c?c:{})}),[4,Zr(t,h,g,a)];case 6:return[2,s.sent()]}var m}))}))}function Qr(t,r){var n;return a(this,void 0,void 0,(function(){var i,a,l,c,h,u,p,f;return s(this,(function(s){switch(s.label){case 0:return e.isString(t.config)?(c=(l=JSON).parse,[4,r.load(t.config)]):[3,2];case 1:return a=c.apply(l,[s.sent()]),[3,3];case 2:a=null!==(n=t.config)&&void 0!==n?n:{},s.label=3;case 3:return i=a,e.isString(t.patch)?(f=(p=JSON).parse,[4,r.load(t.patch)]):[3,5];case 4:return u=f.apply(p,[s.sent()]),[3,6];case 5:u=t.patch,s.label=6;case 6:return h=u,[2,o(o(o({},t),h?{patch:h}:{}),i?{config:i}:{})]}}))}))}function Zr(t,r,n,i){var l,c,h,u,p,f;return void 0===n&&(n={}),a(this,void 0,void 0,(function(){function d(){U&&document.removeEventListener("click",U),P.finalize()}var v,g,m,E,b,y,w,O,A,I,R,x,$,S,T,L,C,D,k,F,P,_,z,M,B,G,U,X,V,W,H,q,Y,J,Q,Z,K,ee;return s(this,(function(te){switch(te.label){case 0:if(v=n.theme?e.mergeConfig(Ar[n.theme],null!==(l=n.config)&&void 0!==l?l:{}):n.config,g=e.isBoolean(n.actions)?n.actions:zr({},Xr,null!==(c=n.actions)&&void 0!==c?c:{}),m=o(o({},Vr),n.i18n),E=null!==(h=n.renderer)&&void 0!==h?h:"canvas",b=null!==(u=n.logLevel)&&void 0!==u?u:Br.Warn,y=null!==(p=n.downloadFileName)&&void 0!==p?p:"visualization",!(w="string"==typeof t?document.querySelector(t):t))throw new Error(t+" does not exist");return!1!==n.defaultStyle&&(O="vega-embed-style",A=function(e){var t,r=e.getRootNode?e.getRootNode():document;return r instanceof ShadowRoot?{root:r,rootContainer:r}:{root:document,rootContainer:null!==(t=document.head)&&void 0!==t?t:document.body}}(w),I=A.root,R=A.rootContainer,I.getElementById(O)||((x=document.createElement("style")).id=O,x.innerText=void 0===n.defaultStyle||!0===n.defaultStyle?'.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box; }\n .vega-embed.has-actions {\n padding-right: 38px; }\n .vega-embed details:not([open]) > :not(summary) {\n display: none !important; }\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 outline: none;\n cursor: pointer;\n line-height: 0px; }\n .vega-embed summary::-webkit-details-marker {\n display: none; }\n .vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset; }\n .vega-embed summary svg {\n width: 14px;\n height: 14px; }\n .vega-embed details[open] summary {\n opacity: 0.7; }\n .vega-embed:hover summary,\n .vega-embed:focus summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease; }\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 .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 .vega-embed .vega-actions a:hover {\n background-color: #f7f7f9;\n color: black; }\n .vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute; }\n .vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid #0000;\n border-bottom-color: #d9d9d9; }\n .vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid #0000;\n border-bottom-color: #fff; }\n .vega-embed .chart-wrapper {\n width: 100%;\n height: 100%; }\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px; }\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6); }\n to {\n opacity: 1;\n transform: scale(1); } }\n'.toString():n.defaultStyle,R.appendChild(x))),$=function(e,t){var r;if(e.$schema){var n=Ut(e.$schema);t&&t!==n.library&&console.warn("The given visualization spec is written in "+Wr[n.library]+", but mode argument sets "+(null!==(r=Wr[t])&&void 0!==r?r:t)+".");var i=n.library;return Gt.satisfies(Hr[i],"^"+n.version.slice(1))||console.warn("The input spec uses "+Wr[i]+" "+n.version+", but the current version of "+Wr[i]+" is v"+Hr[i]+"."),i}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":null!=t?t:"vega"}(r,n.mode),S=qr[$](r,v),"vega-lite"===$&&S.$schema&&(T=Ut(S.$schema),Gt.satisfies(Hr.vega,"^"+T.version.slice(1))||console.warn("The compiled spec uses Vega "+T.version+", but current version is v"+Hr.vega+".")),w.classList.add("vega-embed"),g&&w.classList.add("has-actions"),w.innerHTML="",L=w,g&&((C=document.createElement("div")).classList.add("chart-wrapper"),w.appendChild(C),L=C),(D=n.patch)&&(S=D instanceof Function?D(S):N(S,D,!0,!1).newDocument),n.formatLocale&&Br.formatLocale(n.formatLocale),n.timeFormatLocale&&Br.timeFormatLocale(n.timeFormatLocale),k=n.ast,F=Br.parse(S,"vega-lite"===$?{}:v,{ast:k}),P=new Br.View(F,o({loader:i,logLevel:b,renderer:E},k?{expr:Br.expressionInterpreter}:{})),!1!==n.tooltip&&(_=void 0,re=n.tooltip,_="function"==typeof re?n.tooltip:new Pr(!0===n.tooltip?{}:n.tooltip).call,P.tooltip(_)),void 0===(z=n.hover)&&(z="vega"===$),z&&(B=(M="boolean"==typeof z?{}:z).hoverSet,G=M.updateSet,P.hover(B,G)),n&&(null!=n.width&&P.width(n.width),null!=n.height&&P.height(n.height),null!=n.padding&&P.padding(n.padding)),[4,P.initialize(L,n.bind).runAsync()];case 1:if(te.sent(),!1!==g){if(X=w,!1!==n.defaultStyle&&((V=document.createElement("details")).title=m.CLICK_TO_VIEW_ACTIONS,w.append(V),X=V,(W=document.createElement("summary")).innerHTML='\n\n \n \n \n',V.append(W),U=function(e){V.contains(e.target)||V.removeAttribute("open")},document.addEventListener("click",U)),H=document.createElement("div"),X.append(H),H.classList.add("vega-actions"),!0===g||!1!==g.export)for(q=function(e){if(!0===g||!0===g.export||g.export[e]){var t=m[e.toUpperCase()+"_ACTION"],r=document.createElement("a");r.text=t,r.href="#",r.target="_blank",r.download=y+"."+e,r.addEventListener("mousedown",(function(t){return a(this,void 0,void 0,(function(){var r;return s(this,(function(i){switch(i.label){case 0:return t.preventDefault(),[4,P.toImageURL(e,n.scaleFactor)];case 1:return r=i.sent(),this.href=r,[2]}}))}))})),H.append(r)}},Y=0,J=["svg","png"];Y1&&(e.isString(t[0])&&!jr(t[0])||en(t[0])||3===t.length)?Jr(t[0],t[1],t[2]):Kr(t[0],t[1])};return tn.vegaLite=Gr,tn.vl=Gr,tn.container=Kr,tn.embed=Jr,tn.vega=Br,tn.default=Jr,tn.version="6.14.0",tn})); //# sourceMappingURL=vega-embed.min.js.map