From 57a7f99894a77447de2120fdf1e663a770115aa8 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Thu, 30 Apr 2026 14:22:19 +0530 Subject: [PATCH 01/13] feat: add route and menu support for axis domain-* --- .../lib/browser/app/editor/config/axis.js | 15 +++++ .../view/lib/browser/app/editor/menus/axis.js | 21 ++++++- .../lib/browser/app/schema/transforms/axis.js | 7 +++ .../view/lib/browser/routes/app/bundle.js | 2 +- .../plot/vega/editor-config/axis/lib/main.js | 57 +++++++++++++++++++ 5 files changed, 100 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js index 7812f60043fc..72c833bd8e19 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js @@ -28,10 +28,19 @@ var resolveTextValue = require( './resolve_text_value.js' ); // VARIABLES // var PROPS = [ + 'domain', + 'domainCap', + 'domainColor', + 'domainDashOffset', + 'domainOpacity', + 'domainWidth', 'titleColor', 'titleFont', 'titleOpacity' ]; +var JSON_PROPS = [ + 'domainDash' +]; var TEXT_PROPS = [ 'title' ]; @@ -56,6 +65,12 @@ function config( conf, schema ) { for ( i = 0; i < TEXT_PROPS.length; i++ ) { resolveTextValue( schema, def, conf, TEXT_PROPS[ i ] ); } + for ( i = 0; i < JSON_PROPS.length; i++ ) { + resolveValue( schema, def, conf, JSON_PROPS[ i ] ); + if ( Array.isArray( conf[ JSON_PROPS[ i ] ] ) ) { + conf[ JSON_PROPS[ i ] ] = JSON.stringify( conf[ JSON_PROPS[ i ] ] ); + } + } for ( i = 0; i < PROPS.length; i++ ) { resolveValue( schema, def, conf, PROPS[ i ] ); } diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/axis.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/axis.js index 5179606de50d..bff880a20cd7 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/axis.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/menus/axis.js @@ -64,7 +64,26 @@ function addMenu( parent, conf, name ) { for ( i = 0; i < keys.length; i++ ) { k = keys[ i ]; d = def[ k ]; - if ( k === 'title' ) { + if ( k === 'domain' ) { + controller = folder.add( conf, k ); + } else if ( k === 'domainCap' ) { + controller = folder.add( conf, k, EMPTY_STRING.concat( d.values ) ); + } else if ( k === 'domainColor' ) { + controller = folder.addColor( conf, k ); + } else if ( k === 'domainDash' ) { + controller = folder.add( conf, k ); + } else if ( k === 'domainDashOffset' ) { + controller = folder.add( conf, k ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'domainOpacity' ) { + controller = folder.add( conf, k ) + .min( d.min ) + .max( d.max ); + } else if ( k === 'domainWidth' ) { + controller = folder.add( conf, k ) + .min( d.min ); + controller.name( format( '%s (%s)', k, d.units ) ); + } else if ( k === 'title' ) { controller = folder.add( conf, k ); } else if ( k === 'titleColor' ) { controller = folder.addColor( conf, k ); diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/axis.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/axis.js index 2a3fe86c8706..79e744887366 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/axis.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/schema/transforms/axis.js @@ -29,6 +29,13 @@ var signalName = require( './../../utils/signal_name.js' ); // VARIABLES // var PROPS = [ + 'domain', + 'domainCap', + 'domainColor', + 'domainDash', + 'domainDashOffset', + 'domainOpacity', + 'domainWidth', 'title', 'titleColor', 'titleFont', diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js index 5f5588a5e2ad..22315632c1b7 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js @@ -3,4 +3,4 @@ /* eslint-disable */ /* editorconfig-checker-disable-file */ -!function(){B=function(t,e){var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===r.call(t.callee)}};var B,M,U=function(t){return M||B(M={exports:{},parent:t},M.exports),M.exports},C="function"==typeof Object.defineProperty?Object.defineProperty:null;var N=function(){try{return C({},"x",{}),!0}catch(t){return!1}},z=Object.defineProperty;var D=function(t){return"number"==typeof t};function W(t){for(var e="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=$(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=ft(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},ht=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var yt=function(t){for(var e,r,n,i=[],o=0,a=ht.exec(t);a;)(e=t.slice(o,ht.lastIndex-a[0].length)).length&&i.push(e),"%"===a[6]?i.push("%"):i.push((n=void 0,n={mapping:(r=a)[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]},"."===r[4]&&void 0===r[5]&&(n.precision="1"),n)),o=ht.lastIndex,a=ht.exec(t);return(e=t.slice(o)).length&&i.push(e),i};var gt=function(t){return"string"==typeof t};var h=function t(e){var r,n;if(!gt(e))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",e));for(r=[yt(e)],n=1;n=r.length?(f=!!(c=g(o,s)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[s]:(f=Je(o,s),o[s]),f&&!a&&(Qe[l]=o)}}return o},_r=$e([Er("%String.prototype.indexOf%")]),Tr=he(),xr=tr("Object.prototype.toString"),Ar=function(t){return!(Tr&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===xr(t)},ve=function(){return Ar(arguments)}(),be=(Ar.isLegacyArguments=er,ve?Ar:er),Sr=he()?(rr=tr("RegExp.prototype.exec"),nr={},ir={toString:we=function(){throw nr},valueOf:we},"symbol"==typeof Symbol.toPrimitive&&(ir[Symbol.toPrimitive]=we),function(t){if(!t||"object"!=typeof t)return!1;var e=g(t,"lastIndex");if(!(e&&Je(e,"value")))return!1;try{rr(t,ir)}catch(t){return t===nr}}):(or=tr("Object.prototype.toString"),ar="[object RegExp]",function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&or(t)===ar}),jr=tr("RegExp.prototype.exec"),Or=function(){if(void 0===ur)try{ur=Function("return function* () {}")().constructor}catch(t){ur=!1}return ur},Fr=(e=>{if(Sr(e))return function(t){return null!==jr(e,t)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Pr=he(),Vr=tr("Object.prototype.toString"),kr=tr("Function.prototype.toString"),Ir=Function.prototype.toString,Rr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Rr&&"function"==typeof Object.defineProperty)try{fr=Object.defineProperty({},"length",{get:function(){throw sr}}),sr={},Rr(function(){throw 42},null,fr)}catch(t){t!==sr&&(Rr=null)}else Rr=null;function Lr(t){try{return Mr(t)?!1:(Ir.call(t),!0)}catch(t){return!1}}var Br=/^\s*class\b/,Mr=function(t){try{var e=Ir.call(t);return Br.test(e)}catch(t){return!1}},Ur=Object.prototype.toString,Cr="[object Object]",Nr="[object HTMLAllCollection]",zr="[object HTML document.all class]",Dr="[object HTMLCollection]",Wr="function"==typeof Symbol&&!!Symbol.toStringTag,$r=!(0 in[,]),Gr=function(){return!1},qr=("object"==typeof document&&Ur.call(document.all)===Ur.call(document.all)&&(Gr=function(t){if(($r||!t)&&(void 0===t||"object"==typeof t))try{var e=Ur.call(t);return(e===Nr||e===zr||e===Dr||e===Cr)&&null==t("")}catch(t){}return!1}),Rr?function(t){if(Gr(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{Rr(t,null,fr)}catch(t){if(t!==sr)return!1}return!Mr(t)&&Lr(t)}:function(t){var e;return!!Gr(t)||!!t&&!("function"!=typeof t&&"object"!=typeof t||!Wr&&(Mr(t)||"[object Function]"!==(e=Ur.call(t))&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e)))&&Lr(t)}),Hr=Object.prototype.toString,Yr=Object.prototype.hasOwnProperty,Jr=function(t,e,r){for(var n=0,i=t.length;n{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,f=["{","}"];if(h(r)&&(u=!0,f=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return f[0]+a+f[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),s=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{if("undefined"!=typeof window)for(var t in window)try{if(!oi["$"+t]&&Kn.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{ii(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),ui=function(t){if("undefined"==typeof window||!ai)return ii(t);try{return ii(t)}catch(t){return!1}},Uo=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===Qn.call(t),n=ti(t),i=e&&"[object String]"===Qn.call(t),o=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=ri&&r;if(i&&0{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,f=["{","}"];if(h(r)&&(u=!0,f=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return f[0]+a+f[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),s=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{var e;try{t()}catch(t){e=t}return e})(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!e&&f(e,r,"Missing expected exception"+n);var i="string"==typeof n,o=!t&&e&&!r;if((!t&&S.isError(e)&&i&&l(e,r)||o)&&f(e,r,"Got unwanted exception"+n),t&&e&&r&&!l(e,r)||!t&&e)throw e}o.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=a(u((r=this).actual),128)+" "+r.operator+" "+a(u(r.expected),128),this.generatedMessage=!0);var e,r=t.stackStartFunction||f;Error.captureStackTrace?Error.captureStackTrace(this,r):(t=new Error).stack&&(t=t.stack,e=i(r),0<=(e=t.indexOf("\n"+e))&&(e=t.indexOf("\n",e+1),t=t.substring(e+1)),this.stack=t)},S.inherits(o.AssertionError,Error),o.fail=f,o.ok=s,o.equal=function(t,e,r){t!=e&&f(t,e,r,"==",o.equal)},o.notEqual=function(t,e,r){t==e&&f(t,e,r,"!=",o.notEqual)},o.deepEqual=function(t,e,r){v(t,e,!1)||f(t,e,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(t,e,r){v(t,e,!0)||f(t,e,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(t,e,r){v(t,e,!1)&&f(t,e,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&f(e,r,n,"notDeepStrictEqual",t)},o.strictEqual=function(t,e,r){t!==e&&f(t,e,r,"===",o.strictEqual)},o.notStrictEqual=function(t,e,r){t===e&&f(t,e,r,"!==",o.notStrictEqual)},o.throws=function(t,e,r){c(!0,t,e,r)},o.doesNotThrow=function(t,e,r){c(!1,t,e,r)},o.ifError=function(t){if(t)throw t},o.strict=t(function t(e,r){e||f(e,!0,r,"==",t)},o,{equal:o.strictEqual,deepEqual:o.deepStrictEqual,notEqual:o.notStrictEqual,notDeepEqual:o.notDeepStrictEqual}),o.strict.strict=o.strict;var w=Object.keys||function(t){var e,r=[];for(e in t)n.call(t,e)&&r.push(e);return r}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),{}),xi=(!function(f){!function(){function r(){return(new Date).getTime()}for(var e=Array.prototype.slice,n={},i=void 0!==f&&f.console?f.console:"undefined"!=typeof window&&window.console?window.console:{},t=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(t){n[t]=r()},"time"],[function(t){var e=n[t];if(!e)throw new Error("No such label: "+t);delete n[t];e=r()-e;i.log(t+": "+e+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=F.format.apply(null,arguments),i.error(t.stack)},"trace"],[function(t){i.log(F.inspect(t)+"\n")},"dir"],[function(t){t||(t=e.call(arguments,1),_i.ok(!1,F.format.apply(null,t)))},"assert"]],o=0;oe.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*tu));e=new c(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(T,"BYTES_PER_ELEMENT",tu),u(T,"name","Complex64Array"),u(T,"from",function(t){var e,r,n,i,o,a,u,f,s,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!ru(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return _(this._buffer,t)}),t(T.prototype,"buffer",function(){return this._buffer.buffer}),t(T.prototype,"byteLength",function(){return this._buffer.byteLength}),t(T.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(T.prototype,"BYTES_PER_ELEMENT",T.BYTES_PER_ELEMENT),u(T.prototype,"copyWithin",function(t,e){if(E(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"entries",function(){var t,e,r,n,i,o;if(E(this))return n=(t=this)._buffer,r=this._length,o=-1,u(e={},"next",function(){if(o+=1,i||r<=o)return{done:!0};return{value:[o,_(n,o)],done:!1}}),u(e,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),v&&u(e,v,function(){return t.entries()}),e;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"every",function(t,e){var r,n;if(!E(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return _(this._buffer,t)}),u(T.prototype,"includes",function(t,e){var r,n,i,o,a;if(!E(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!m(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=b(t),o=w(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),t(T.prototype,"length",function(){return this._length}),u(T.prototype,"map",function(t,e){var r,n,i,o,a;if(!E(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=b(t),n[r+1]=w(t)}else if(E(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(s=n.byteOffset+r*tu,(e=t._buffer).buffer===n.buffer&&e.byteOffsets){for(i=new c(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(s=n.byteOffset+r*tu,(e=t).buffer===n.buffer&&e.byteOffsets){for(i=new c(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,f=0;fe.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*fu));e=new lo(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(V,"BYTES_PER_ELEMENT",fu),u(V,"name","Complex128Array"),u(V,"from",function(t){var e,r,n,i,o,a,u,f,s,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!lu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return P(this._buffer,t)}),t(V.prototype,"buffer",function(){return this._buffer.buffer}),t(V.prototype,"byteLength",function(){return this._buffer.byteLength}),t(V.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(V.prototype,"BYTES_PER_ELEMENT",V.BYTES_PER_ELEMENT),u(V.prototype,"copyWithin",function(t,e){if(j(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"entries",function(){var e,t,r,n,i,o,a;if(j(this))return e=(t=this)._buffer,n=this._length,o=-1,a=-2,u(r={},"next",function(){var t;if(o+=1,i||n<=o)return{done:!0};return t=new Ra(e[a+=2],e[a+1]),{value:[o,t],done:!1}}),u(r,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),v&&u(r,v,function(){return t.entries()}),r;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"every",function(t,e){var r,n;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return P(this._buffer,t)}),t(V.prototype,"length",function(){return this._length}),u(V.prototype,"includes",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!m(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=x(t),o=A(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),u(V.prototype,"map",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=x(t),n[r+1]=A(t)}else if(j(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(s=n.byteOffset+r*fu,(e=t._buffer).buffer===n.buffer&&e.byteOffsets){for(i=new lo(e.length),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(s=n.byteOffset+r*fu,(e=t).buffer===n.buffer&&e.byteOffsets){for(i=new lo(a),f=0;fthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,f=0;ft.byteLength-e)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*bu));t=new Go(t,e,r)}}return u(this,"_buffer",t),u(this,"_length",t.length),this}u(I,"BYTES_PER_ELEMENT",bu),u(I,"name","BooleanArray"),u(I,"from",function(t){var e,r,n,i,o,a,u,f,s;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Eu(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return l(this._buffer[t])}),u(I.prototype,"includes",function(t,e){var r,n;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!gu(t))throw new TypeError(h("invalid argument. First argument must be a boolean. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(r=this._buffer,n=e;0<=n;n--)if(t===l(r[n]))return n;return-1}),t(I.prototype,"length",function(){return this._length}),u(I.prototype,"map",function(t,e){var r,n,i,o;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!y(t))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",t);for(i=this._buffer,r=(n=new this.constructor(this._length))._buffer,o=0;othis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=k(t)?t._buffer:t,u=n.byteOffset+r*bu,e.buffer===n.buffer&&e.byteOffsetu){for(i=new Go(e.length),a=0;a=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r]=t?1:0}}),u(I.prototype,"slice",function(t,e){var r,n,i,o,a;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(i=this._buffer,o=this._length,0===arguments.length)t=0,e=o;else{if(!du(t))throw new TypeError(h("invalid argument. First argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=o)<0&&(t=0),1===arguments.length)e=o;else{if(!du(e))throw new TypeError(h("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=o)<0&&(e=0):oi&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,r=n,console)&&console.warn&&console.warn(r)),t}function rf(t,e,r){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=r,t.wrapFn=e}function nf(t,e,r){t=t._events;if(void 0===t)return[];t=t[e];if(void 0===t)return[];if("function"==typeof t)return r?[t.listener||t]:[t];if(r){for(var n=t,i=new Array(n.length),o=0;o{if("undefined"!==le(Qf))for(var t in Qf)try{-1===Zf(Kf,t)&&Ft(Qf,t)&&null!==Qf[t]&&"object"===le(Qf[t])&&Xf(Qf[t])}catch(t){return!0}return!1})(),es="undefined"!=typeof window;var rs=function(t){if(!1===es&&!ts)return Xf(t);try{return Xf(t)}catch(t){return!1}},ns=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function is(t){var e,r,n,i,o,a,u=[];if(Wf(t))for(a=0;a=e.length)return r();e[n](t)}()},L={editor:null,schema:null,sse:null,viz:null};function Ls(t){L.schema=new Yu(L),L.schema.resolve(t)}function Bs(t){L.editor=new Rs(L),L.editor.init(),L.editor.on("change",Cs),t()}function Ms(t){L.sse=new hf(L),L.sse.on("refresh",Ns),L.sse.on("patch",zs),L.sse.on("data",Ds),L.sse.connect(t)}function Us(t){L.view=new jf(L),L.view.init(t)}function Cs(t){f("Updating rendered visualization..."),L.view.onSignal(t.path,t.value)}function Ns(t){L.schema.raw=pe(t.data),L.view.init(),L.editor.refresh()}function zs(){}function Ds(){}function Ws(t){t?console.error(t.message):f("Successfully booted application.")}f("Booting application..."),we([Ls,Us,Ms,Bs],Ws)}(); +!function(){B=function(t,e){var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===r.call(t.callee)}};var B,M,C=function(t){return M||B(M={exports:{},parent:t},M.exports),M.exports},U="function"==typeof Object.defineProperty?Object.defineProperty:null;var N=function(){try{return U({},"x",{}),!0}catch(t){return!1}},z=Object.defineProperty;var D=function(t){return"number"==typeof t};function W(t){for(var e="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=$(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=st(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},ht=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var yt=function(t){for(var e,r,n,i=[],o=0,a=ht.exec(t);a;)(e=t.slice(o,ht.lastIndex-a[0].length)).length&&i.push(e),"%"===a[6]?i.push("%"):i.push((n=void 0,n={mapping:(r=a)[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]},"."===r[4]&&void 0===r[5]&&(n.precision="1"),n)),o=ht.lastIndex,a=ht.exec(t);return(e=t.slice(o)).length&&i.push(e),i};var gt=function(t){return"string"==typeof t};var h=function t(e){var r,n;if(!gt(e))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",e));for(r=[yt(e)],n=1;n=r.length?(s=!!(c=g(o,f)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[f]:(s=Ye(o,f),o[f]),s&&!a&&(Qe[l]=o)}}return o},_r=$e([Er("%String.prototype.indexOf%")]),Tr=he(),xr=tr("Object.prototype.toString"),Ar=function(t){return!(Tr&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===xr(t)},ve=function(){return Ar(arguments)}(),be=(Ar.isLegacyArguments=er,ve?Ar:er),Sr=he()?(rr=tr("RegExp.prototype.exec"),nr={},ir={toString:we=function(){throw nr},valueOf:we},"symbol"==typeof Symbol.toPrimitive&&(ir[Symbol.toPrimitive]=we),function(t){if(!t||"object"!=typeof t)return!1;var e=g(t,"lastIndex");if(!(e&&Ye(e,"value")))return!1;try{rr(t,ir)}catch(t){return t===nr}}):(or=tr("Object.prototype.toString"),ar="[object RegExp]",function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&or(t)===ar}),jr=tr("RegExp.prototype.exec"),Or=function(){if(void 0===ur)try{ur=Function("return function* () {}")().constructor}catch(t){ur=!1}return ur},Fr=(e=>{if(Sr(e))return function(t){return null!==jr(e,t)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Pr=he(),Vr=tr("Object.prototype.toString"),kr=tr("Function.prototype.toString"),Ir=Function.prototype.toString,Rr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Rr&&"function"==typeof Object.defineProperty)try{sr=Object.defineProperty({},"length",{get:function(){throw fr}}),fr={},Rr(function(){throw 42},null,sr)}catch(t){t!==fr&&(Rr=null)}else Rr=null;function Lr(t){try{return Mr(t)?!1:(Ir.call(t),!0)}catch(t){return!1}}var Br=/^\s*class\b/,Mr=function(t){try{var e=Ir.call(t);return Br.test(e)}catch(t){return!1}},Cr=Object.prototype.toString,Ur="[object Object]",Nr="[object HTMLAllCollection]",zr="[object HTML document.all class]",Dr="[object HTMLCollection]",Wr="function"==typeof Symbol&&!!Symbol.toStringTag,$r=!(0 in[,]),Gr=function(){return!1},qr=("object"==typeof document&&Cr.call(document.all)===Cr.call(document.all)&&(Gr=function(t){if(($r||!t)&&(void 0===t||"object"==typeof t))try{var e=Cr.call(t);return(e===Nr||e===zr||e===Dr||e===Ur)&&null==t("")}catch(t){}return!1}),Rr?function(t){if(Gr(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{Rr(t,null,sr)}catch(t){if(t!==fr)return!1}return!Mr(t)&&Lr(t)}:function(t){var e;return!!Gr(t)||!!t&&!("function"!=typeof t&&"object"!=typeof t||!Wr&&(Mr(t)||"[object Function]"!==(e=Cr.call(t))&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e)))&&Lr(t)}),Hr=Object.prototype.toString,Jr=Object.prototype.hasOwnProperty,Yr=function(t,e,r){for(var n=0,i=t.length;n{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{if("undefined"!=typeof window)for(var t in window)try{if(!oi["$"+t]&&Kn.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{ii(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),ui=function(t){if("undefined"==typeof window||!ai)return ii(t);try{return ii(t)}catch(t){return!1}},No=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===Qn.call(t),n=ti(t),i=e&&"[object String]"===Qn.call(t),o=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=ri&&r;if(i&&0{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{var e;try{t()}catch(t){e=t}return e})(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!e&&s(e,r,"Missing expected exception"+n);var i="string"==typeof n,o=!t&&e&&!r;if((!t&&S.isError(e)&&i&&l(e,r)||o)&&s(e,r,"Got unwanted exception"+n),t&&e&&r&&!l(e,r)||!t&&e)throw e}o.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=a(u((r=this).actual),128)+" "+r.operator+" "+a(u(r.expected),128),this.generatedMessage=!0);var e,r=t.stackStartFunction||s;Error.captureStackTrace?Error.captureStackTrace(this,r):(t=new Error).stack&&(t=t.stack,e=i(r),0<=(e=t.indexOf("\n"+e))&&(e=t.indexOf("\n",e+1),t=t.substring(e+1)),this.stack=t)},S.inherits(o.AssertionError,Error),o.fail=s,o.ok=f,o.equal=function(t,e,r){t!=e&&s(t,e,r,"==",o.equal)},o.notEqual=function(t,e,r){t==e&&s(t,e,r,"!=",o.notEqual)},o.deepEqual=function(t,e,r){v(t,e,!1)||s(t,e,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(t,e,r){v(t,e,!0)||s(t,e,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(t,e,r){v(t,e,!1)&&s(t,e,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&s(e,r,n,"notDeepStrictEqual",t)},o.strictEqual=function(t,e,r){t!==e&&s(t,e,r,"===",o.strictEqual)},o.notStrictEqual=function(t,e,r){t===e&&s(t,e,r,"!==",o.notStrictEqual)},o.throws=function(t,e,r){c(!0,t,e,r)},o.doesNotThrow=function(t,e,r){c(!1,t,e,r)},o.ifError=function(t){if(t)throw t},o.strict=t(function t(e,r){e||s(e,!0,r,"==",t)},o,{equal:o.strictEqual,deepEqual:o.deepStrictEqual,notEqual:o.notStrictEqual,notDeepEqual:o.notDeepStrictEqual}),o.strict.strict=o.strict;var w=Object.keys||function(t){var e,r=[];for(e in t)n.call(t,e)&&r.push(e);return r}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),{}),xi=(!function(s){!function(){function r(){return(new Date).getTime()}for(var e=Array.prototype.slice,n={},i=void 0!==s&&s.console?s.console:"undefined"!=typeof window&&window.console?window.console:{},t=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(t){n[t]=r()},"time"],[function(t){var e=n[t];if(!e)throw new Error("No such label: "+t);delete n[t];e=r()-e;i.log(t+": "+e+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=F.format.apply(null,arguments),i.error(t.stack)},"trace"],[function(t){i.log(F.inspect(t)+"\n")},"dir"],[function(t){t||(t=e.call(arguments,1),_i.ok(!1,F.format.apply(null,t)))},"assert"]],o=0;oe.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*ru));e=new c(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(T,"BYTES_PER_ELEMENT",ru),u(T,"name","Complex64Array"),u(T,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!iu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return s(this._buffer,t)}),t(T.prototype,"buffer",function(){return this._buffer.buffer}),t(T.prototype,"byteLength",function(){return this._buffer.byteLength}),t(T.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(T.prototype,"BYTES_PER_ELEMENT",T.BYTES_PER_ELEMENT),u(T.prototype,"copyWithin",function(t,e){if(_(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"entries",function(){var t,e,r,n,i,o;if(_(this))return n=(t=this)._buffer,r=this._length,o=-1,u(e={},"next",function(){if(o+=1,i||r<=o)return{done:!0};return{value:[o,s(n,o)],done:!1}}),u(e,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(e,b,function(){return t.entries()}),e;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"every",function(t,e){var r,n;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return s(this._buffer,t)}),u(T.prototype,"includes",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=w(t),o=E(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),t(T.prototype,"length",function(){return this._length}),u(T.prototype,"map",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=w(t),n[r+1]=E(t)}else if(_(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new c(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new c(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;se.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*lu));e=new po(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(V,"BYTES_PER_ELEMENT",lu),u(V,"name","Complex128Array"),u(V,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return P(this._buffer,t)}),t(V.prototype,"buffer",function(){return this._buffer.buffer}),t(V.prototype,"byteLength",function(){return this._buffer.byteLength}),t(V.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(V.prototype,"BYTES_PER_ELEMENT",V.BYTES_PER_ELEMENT),u(V.prototype,"copyWithin",function(t,e){if(j(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"entries",function(){var e,t,r,n,i,o,a;if(j(this))return e=(t=this)._buffer,n=this._length,o=-1,a=-2,u(r={},"next",function(){var t;if(o+=1,i||n<=o)return{done:!0};return t=new Ba(e[a+=2],e[a+1]),{value:[o,t],done:!1}}),u(r,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(r,b,function(){return t.entries()}),r;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"every",function(t,e){var r,n;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return P(this._buffer,t)}),t(V.prototype,"length",function(){return this._length}),u(V.prototype,"includes",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=x(t),o=A(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),u(V.prototype,"map",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=x(t),n[r+1]=A(t)}else if(j(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new po(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new po(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;st.byteLength-e)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*Eu));t=new Ho(t,e,r)}}return u(this,"_buffer",t),u(this,"_length",t.length),this}u(I,"BYTES_PER_ELEMENT",Eu),u(I,"name","BooleanArray"),u(I,"from",function(t){var e,r,n,i,o,a,u,s,f;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Tu(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return l(this._buffer[t])}),u(I.prototype,"includes",function(t,e){var r,n;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mu(t))throw new TypeError(h("invalid argument. First argument must be a boolean. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(r=this._buffer,n=e;0<=n;n--)if(t===l(r[n]))return n;return-1}),t(I.prototype,"length",function(){return this._length}),u(I.prototype,"map",function(t,e){var r,n,i,o;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!y(t))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",t);for(i=this._buffer,r=(n=new this.constructor(this._length))._buffer,o=0;othis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=k(t)?t._buffer:t,u=n.byteOffset+r*Eu,e.buffer===n.buffer&&e.byteOffsetu){for(i=new Ho(e.length),a=0;a=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r]=t?1:0}}),u(I.prototype,"slice",function(t,e){var r,n,i,o,a;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(i=this._buffer,o=this._length,0===arguments.length)t=0,e=o;else{if(!vu(t))throw new TypeError(h("invalid argument. First argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=o)<0&&(t=0),1===arguments.length)e=o;else{if(!vu(e))throw new TypeError(h("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=o)<0&&(e=0):oi&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,r=n,console)&&console.warn&&console.warn(r)),t}function is(t,e,r){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=r,t.wrapFn=e}function os(t,e,r){t=t._events;if(void 0===t)return[];t=t[e];if(void 0===t)return[];if("function"==typeof t)return r?[t.listener||t]:[t];if(r){for(var n=t,i=new Array(n.length),o=0;o{if("undefined"!==le(tf))for(var t in tf)try{-1===Xs(Qs,t)&&Ft(tf,t)&&null!==tf[t]&&"object"===le(tf[t])&&Ks(tf[t])}catch(t){return!0}return!1})(),rf="undefined"!=typeof window;var nf=function(t){if(!1===rf&&!ef)return Ks(t);try{return Ks(t)}catch(t){return!1}},of=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function af(t){var e,r,n,i,o,a,u=[];if($s(t))for(a=0;a=e.length)return r();e[n](t)}()},L={editor:null,schema:null,sse:null,viz:null};function Nf(t){L.schema=new Zu(L),L.schema.resolve(t)}function zf(t){L.editor=new Uf(L),L.editor.init(),L.editor.on("change",$f),t()}function Df(t){L.sse=new ys(L),L.sse.on("refresh",Gf),L.sse.on("patch",qf),L.sse.on("data",Hf),L.sse.connect(t)}function Wf(t){L.view=new Os(L),L.view.init(t)}function $f(t){f("Updating rendered visualization..."),L.view.onSignal(t.path,t.value)}function Gf(t){L.schema.raw=pe(t.data),L.view.init(),L.editor.refresh()}function qf(){}function Hf(){}function Jf(t){t?console.error(t.message):f("Successfully booted application.")}f("Booting application..."),we([Nf,Wf,Df,zf],Jf)}(); diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index f8801752caab..7716e9fc11b6 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -18,6 +18,11 @@ 'use strict'; +// MODULES // + +var strokeCaps = require( '@stdlib/plot/vega/base/stroke-caps' ); + + // MAIN // /** @@ -31,6 +36,58 @@ */ function config() { return { + 'domain': { + 'description': 'boolean indicating whether to include axis baseline as part of an axis', + 'property': 'domain', + 'default': true, + 'type': 'boolean' + }, + 'domainCap': { + 'description': 'stroke cap of the axis domain', + 'property': 'domainCap', + 'default': 'butt', + 'type': 'oneOf', + 'values': strokeCaps() + }, + 'domainColor': { + 'description': 'color of the axis domain', + 'property': 'domainColor', + 'default': '#000', + 'type': 'string' + }, + 'domainDash': { + 'description': 'stroke dash of the axis domain', + 'property': 'domainDash', + 'default': [], + 'type': 'array', + 'items': { + 'type': 'number' + }, + 'minItems': 0 + }, + 'domainDashOffset': { + 'description': 'pixel offset for line dash array of the domain line', + 'property': 'domainDashOffset', + 'default': 0, + 'type': 'number', + 'units': 'px' + }, + 'domainOpacity': { + 'description': 'opacity of the domain line', + 'property': 'domainOpacity', + 'default': 0, + 'type': 'number', + 'min': 0, + 'max': 1 + }, + 'domainWidth': { + 'description': 'stroke width of the domain line', + 'property': 'domainWidth', + 'default': 1, + 'type': 'number', + 'min': 0, + 'units': 'px' + }, 'title': { 'description': 'title text', 'property': 'title', From 21f2739c27b0000341af1d67ac6ab1f26da5f20f Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Mon, 4 May 2026 15:03:33 +0530 Subject: [PATCH 02/13] fix: replace with inhouse dependency --- .../plot/base/view/lib/browser/app/editor/config/axis.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js index 72c833bd8e19..fea79410f653 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js @@ -20,6 +20,7 @@ // MODULES // +var isArray = require( '@stdlib/assert/is-array' ); var defaults = require( './../defaults.js' ); var resolveValue = require( './resolve_value.js' ); var resolveTextValue = require( './resolve_text_value.js' ); @@ -67,7 +68,7 @@ function config( conf, schema ) { } for ( i = 0; i < JSON_PROPS.length; i++ ) { resolveValue( schema, def, conf, JSON_PROPS[ i ] ); - if ( Array.isArray( conf[ JSON_PROPS[ i ] ] ) ) { + if ( isArray( conf[ JSON_PROPS[ i ] ] ) ) { conf[ JSON_PROPS[ i ] ] = JSON.stringify( conf[ JSON_PROPS[ i ] ] ); } } From b5be1cb2d6ad95684dcbbf9844eacddc17a8c5d2 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Mon, 4 May 2026 15:03:59 +0530 Subject: [PATCH 03/13] feat: rebuid bundle --- .../@stdlib/plot/base/view/lib/browser/routes/app/bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js index 22315632c1b7..768d5a19c65c 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js @@ -3,4 +3,4 @@ /* eslint-disable */ /* editorconfig-checker-disable-file */ -!function(){B=function(t,e){var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===r.call(t.callee)}};var B,M,C=function(t){return M||B(M={exports:{},parent:t},M.exports),M.exports},U="function"==typeof Object.defineProperty?Object.defineProperty:null;var N=function(){try{return U({},"x",{}),!0}catch(t){return!1}},z=Object.defineProperty;var D=function(t){return"number"==typeof t};function W(t){for(var e="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=$(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=st(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},ht=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var yt=function(t){for(var e,r,n,i=[],o=0,a=ht.exec(t);a;)(e=t.slice(o,ht.lastIndex-a[0].length)).length&&i.push(e),"%"===a[6]?i.push("%"):i.push((n=void 0,n={mapping:(r=a)[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]},"."===r[4]&&void 0===r[5]&&(n.precision="1"),n)),o=ht.lastIndex,a=ht.exec(t);return(e=t.slice(o)).length&&i.push(e),i};var gt=function(t){return"string"==typeof t};var h=function t(e){var r,n;if(!gt(e))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",e));for(r=[yt(e)],n=1;n=r.length?(s=!!(c=g(o,f)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[f]:(s=Ye(o,f),o[f]),s&&!a&&(Qe[l]=o)}}return o},_r=$e([Er("%String.prototype.indexOf%")]),Tr=he(),xr=tr("Object.prototype.toString"),Ar=function(t){return!(Tr&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===xr(t)},ve=function(){return Ar(arguments)}(),be=(Ar.isLegacyArguments=er,ve?Ar:er),Sr=he()?(rr=tr("RegExp.prototype.exec"),nr={},ir={toString:we=function(){throw nr},valueOf:we},"symbol"==typeof Symbol.toPrimitive&&(ir[Symbol.toPrimitive]=we),function(t){if(!t||"object"!=typeof t)return!1;var e=g(t,"lastIndex");if(!(e&&Ye(e,"value")))return!1;try{rr(t,ir)}catch(t){return t===nr}}):(or=tr("Object.prototype.toString"),ar="[object RegExp]",function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&or(t)===ar}),jr=tr("RegExp.prototype.exec"),Or=function(){if(void 0===ur)try{ur=Function("return function* () {}")().constructor}catch(t){ur=!1}return ur},Fr=(e=>{if(Sr(e))return function(t){return null!==jr(e,t)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Pr=he(),Vr=tr("Object.prototype.toString"),kr=tr("Function.prototype.toString"),Ir=Function.prototype.toString,Rr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Rr&&"function"==typeof Object.defineProperty)try{sr=Object.defineProperty({},"length",{get:function(){throw fr}}),fr={},Rr(function(){throw 42},null,sr)}catch(t){t!==fr&&(Rr=null)}else Rr=null;function Lr(t){try{return Mr(t)?!1:(Ir.call(t),!0)}catch(t){return!1}}var Br=/^\s*class\b/,Mr=function(t){try{var e=Ir.call(t);return Br.test(e)}catch(t){return!1}},Cr=Object.prototype.toString,Ur="[object Object]",Nr="[object HTMLAllCollection]",zr="[object HTML document.all class]",Dr="[object HTMLCollection]",Wr="function"==typeof Symbol&&!!Symbol.toStringTag,$r=!(0 in[,]),Gr=function(){return!1},qr=("object"==typeof document&&Cr.call(document.all)===Cr.call(document.all)&&(Gr=function(t){if(($r||!t)&&(void 0===t||"object"==typeof t))try{var e=Cr.call(t);return(e===Nr||e===zr||e===Dr||e===Ur)&&null==t("")}catch(t){}return!1}),Rr?function(t){if(Gr(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{Rr(t,null,sr)}catch(t){if(t!==fr)return!1}return!Mr(t)&&Lr(t)}:function(t){var e;return!!Gr(t)||!!t&&!("function"!=typeof t&&"object"!=typeof t||!Wr&&(Mr(t)||"[object Function]"!==(e=Cr.call(t))&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e)))&&Lr(t)}),Hr=Object.prototype.toString,Jr=Object.prototype.hasOwnProperty,Yr=function(t,e,r){for(var n=0,i=t.length;n{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{if("undefined"!=typeof window)for(var t in window)try{if(!oi["$"+t]&&Kn.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{ii(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),ui=function(t){if("undefined"==typeof window||!ai)return ii(t);try{return ii(t)}catch(t){return!1}},No=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===Qn.call(t),n=ti(t),i=e&&"[object String]"===Qn.call(t),o=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=ri&&r;if(i&&0{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{var e;try{t()}catch(t){e=t}return e})(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!e&&s(e,r,"Missing expected exception"+n);var i="string"==typeof n,o=!t&&e&&!r;if((!t&&S.isError(e)&&i&&l(e,r)||o)&&s(e,r,"Got unwanted exception"+n),t&&e&&r&&!l(e,r)||!t&&e)throw e}o.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=a(u((r=this).actual),128)+" "+r.operator+" "+a(u(r.expected),128),this.generatedMessage=!0);var e,r=t.stackStartFunction||s;Error.captureStackTrace?Error.captureStackTrace(this,r):(t=new Error).stack&&(t=t.stack,e=i(r),0<=(e=t.indexOf("\n"+e))&&(e=t.indexOf("\n",e+1),t=t.substring(e+1)),this.stack=t)},S.inherits(o.AssertionError,Error),o.fail=s,o.ok=f,o.equal=function(t,e,r){t!=e&&s(t,e,r,"==",o.equal)},o.notEqual=function(t,e,r){t==e&&s(t,e,r,"!=",o.notEqual)},o.deepEqual=function(t,e,r){v(t,e,!1)||s(t,e,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(t,e,r){v(t,e,!0)||s(t,e,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(t,e,r){v(t,e,!1)&&s(t,e,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&s(e,r,n,"notDeepStrictEqual",t)},o.strictEqual=function(t,e,r){t!==e&&s(t,e,r,"===",o.strictEqual)},o.notStrictEqual=function(t,e,r){t===e&&s(t,e,r,"!==",o.notStrictEqual)},o.throws=function(t,e,r){c(!0,t,e,r)},o.doesNotThrow=function(t,e,r){c(!1,t,e,r)},o.ifError=function(t){if(t)throw t},o.strict=t(function t(e,r){e||s(e,!0,r,"==",t)},o,{equal:o.strictEqual,deepEqual:o.deepStrictEqual,notEqual:o.notStrictEqual,notDeepEqual:o.notDeepStrictEqual}),o.strict.strict=o.strict;var w=Object.keys||function(t){var e,r=[];for(e in t)n.call(t,e)&&r.push(e);return r}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),{}),xi=(!function(s){!function(){function r(){return(new Date).getTime()}for(var e=Array.prototype.slice,n={},i=void 0!==s&&s.console?s.console:"undefined"!=typeof window&&window.console?window.console:{},t=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(t){n[t]=r()},"time"],[function(t){var e=n[t];if(!e)throw new Error("No such label: "+t);delete n[t];e=r()-e;i.log(t+": "+e+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=F.format.apply(null,arguments),i.error(t.stack)},"trace"],[function(t){i.log(F.inspect(t)+"\n")},"dir"],[function(t){t||(t=e.call(arguments,1),_i.ok(!1,F.format.apply(null,t)))},"assert"]],o=0;oe.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*ru));e=new c(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(T,"BYTES_PER_ELEMENT",ru),u(T,"name","Complex64Array"),u(T,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!iu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return s(this._buffer,t)}),t(T.prototype,"buffer",function(){return this._buffer.buffer}),t(T.prototype,"byteLength",function(){return this._buffer.byteLength}),t(T.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(T.prototype,"BYTES_PER_ELEMENT",T.BYTES_PER_ELEMENT),u(T.prototype,"copyWithin",function(t,e){if(_(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"entries",function(){var t,e,r,n,i,o;if(_(this))return n=(t=this)._buffer,r=this._length,o=-1,u(e={},"next",function(){if(o+=1,i||r<=o)return{done:!0};return{value:[o,s(n,o)],done:!1}}),u(e,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(e,b,function(){return t.entries()}),e;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"every",function(t,e){var r,n;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return s(this._buffer,t)}),u(T.prototype,"includes",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=w(t),o=E(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),t(T.prototype,"length",function(){return this._length}),u(T.prototype,"map",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=w(t),n[r+1]=E(t)}else if(_(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new c(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new c(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;se.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*lu));e=new po(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(V,"BYTES_PER_ELEMENT",lu),u(V,"name","Complex128Array"),u(V,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return P(this._buffer,t)}),t(V.prototype,"buffer",function(){return this._buffer.buffer}),t(V.prototype,"byteLength",function(){return this._buffer.byteLength}),t(V.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(V.prototype,"BYTES_PER_ELEMENT",V.BYTES_PER_ELEMENT),u(V.prototype,"copyWithin",function(t,e){if(j(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"entries",function(){var e,t,r,n,i,o,a;if(j(this))return e=(t=this)._buffer,n=this._length,o=-1,a=-2,u(r={},"next",function(){var t;if(o+=1,i||n<=o)return{done:!0};return t=new Ba(e[a+=2],e[a+1]),{value:[o,t],done:!1}}),u(r,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(r,b,function(){return t.entries()}),r;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"every",function(t,e){var r,n;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return P(this._buffer,t)}),t(V.prototype,"length",function(){return this._length}),u(V.prototype,"includes",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=x(t),o=A(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),u(V.prototype,"map",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=x(t),n[r+1]=A(t)}else if(j(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new po(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new po(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;st.byteLength-e)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*Eu));t=new Ho(t,e,r)}}return u(this,"_buffer",t),u(this,"_length",t.length),this}u(I,"BYTES_PER_ELEMENT",Eu),u(I,"name","BooleanArray"),u(I,"from",function(t){var e,r,n,i,o,a,u,s,f;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Tu(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return l(this._buffer[t])}),u(I.prototype,"includes",function(t,e){var r,n;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mu(t))throw new TypeError(h("invalid argument. First argument must be a boolean. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(r=this._buffer,n=e;0<=n;n--)if(t===l(r[n]))return n;return-1}),t(I.prototype,"length",function(){return this._length}),u(I.prototype,"map",function(t,e){var r,n,i,o;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!y(t))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",t);for(i=this._buffer,r=(n=new this.constructor(this._length))._buffer,o=0;othis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=k(t)?t._buffer:t,u=n.byteOffset+r*Eu,e.buffer===n.buffer&&e.byteOffsetu){for(i=new Ho(e.length),a=0;a=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r]=t?1:0}}),u(I.prototype,"slice",function(t,e){var r,n,i,o,a;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(i=this._buffer,o=this._length,0===arguments.length)t=0,e=o;else{if(!vu(t))throw new TypeError(h("invalid argument. First argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=o)<0&&(t=0),1===arguments.length)e=o;else{if(!vu(e))throw new TypeError(h("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=o)<0&&(e=0):oi&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,r=n,console)&&console.warn&&console.warn(r)),t}function is(t,e,r){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=r,t.wrapFn=e}function os(t,e,r){t=t._events;if(void 0===t)return[];t=t[e];if(void 0===t)return[];if("function"==typeof t)return r?[t.listener||t]:[t];if(r){for(var n=t,i=new Array(n.length),o=0;o{if("undefined"!==le(tf))for(var t in tf)try{-1===Xs(Qs,t)&&Ft(tf,t)&&null!==tf[t]&&"object"===le(tf[t])&&Ks(tf[t])}catch(t){return!0}return!1})(),rf="undefined"!=typeof window;var nf=function(t){if(!1===rf&&!ef)return Ks(t);try{return Ks(t)}catch(t){return!1}},of=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function af(t){var e,r,n,i,o,a,u=[];if($s(t))for(a=0;a=e.length)return r();e[n](t)}()},L={editor:null,schema:null,sse:null,viz:null};function Nf(t){L.schema=new Zu(L),L.schema.resolve(t)}function zf(t){L.editor=new Uf(L),L.editor.init(),L.editor.on("change",$f),t()}function Df(t){L.sse=new ys(L),L.sse.on("refresh",Gf),L.sse.on("patch",qf),L.sse.on("data",Hf),L.sse.connect(t)}function Wf(t){L.view=new Os(L),L.view.init(t)}function $f(t){f("Updating rendered visualization..."),L.view.onSignal(t.path,t.value)}function Gf(t){L.schema.raw=pe(t.data),L.view.init(),L.editor.refresh()}function qf(){}function Hf(){}function Jf(t){t?console.error(t.message):f("Successfully booted application.")}f("Booting application..."),we([Nf,Wf,Df,zf],Jf)}(); +!function(){B=function(t,e){var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===r.call(t.callee)}};var B,M,C=function(t){return M||B(M={exports:{},parent:t},M.exports),M.exports},U="function"==typeof Object.defineProperty?Object.defineProperty:null;var N=function(){try{return U({},"x",{}),!0}catch(t){return!1}},z=Object.defineProperty;var D=function(t){return"number"==typeof t};function W(t){for(var e="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=$(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=st(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},ht=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var yt=function(t){for(var e,r,n,i=[],o=0,a=ht.exec(t);a;)(e=t.slice(o,ht.lastIndex-a[0].length)).length&&i.push(e),"%"===a[6]?i.push("%"):i.push((n=void 0,n={mapping:(r=a)[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]},"."===r[4]&&void 0===r[5]&&(n.precision="1"),n)),o=ht.lastIndex,a=ht.exec(t);return(e=t.slice(o)).length&&i.push(e),i};var gt=function(t){return"string"==typeof t};var h=function t(e){var r,n;if(!gt(e))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",e));for(r=[yt(e)],n=1;n=r.length?(s=!!(c=g(o,f)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[f]:(s=Je(o,f),o[f]),s&&!a&&(Qe[l]=o)}}return o},_r=$e([Er("%String.prototype.indexOf%")]),Tr=he(),xr=tr("Object.prototype.toString"),Ar=function(t){return!(Tr&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===xr(t)},ve=function(){return Ar(arguments)}(),be=(Ar.isLegacyArguments=er,ve?Ar:er),Sr=he()?(rr=tr("RegExp.prototype.exec"),nr={},ir={toString:we=function(){throw nr},valueOf:we},"symbol"==typeof Symbol.toPrimitive&&(ir[Symbol.toPrimitive]=we),function(t){if(!t||"object"!=typeof t)return!1;var e=g(t,"lastIndex");if(!(e&&Je(e,"value")))return!1;try{rr(t,ir)}catch(t){return t===nr}}):(or=tr("Object.prototype.toString"),ar="[object RegExp]",function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&or(t)===ar}),jr=tr("RegExp.prototype.exec"),Or=function(){if(void 0===ur)try{ur=Function("return function* () {}")().constructor}catch(t){ur=!1}return ur},Fr=(e=>{if(Sr(e))return function(t){return null!==jr(e,t)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Pr=he(),Vr=tr("Object.prototype.toString"),kr=tr("Function.prototype.toString"),Ir=Function.prototype.toString,Rr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Rr&&"function"==typeof Object.defineProperty)try{sr=Object.defineProperty({},"length",{get:function(){throw fr}}),fr={},Rr(function(){throw 42},null,sr)}catch(t){t!==fr&&(Rr=null)}else Rr=null;function Lr(t){try{return Mr(t)?!1:(Ir.call(t),!0)}catch(t){return!1}}var Br=/^\s*class\b/,Mr=function(t){try{var e=Ir.call(t);return Br.test(e)}catch(t){return!1}},Cr=Object.prototype.toString,Ur="[object Object]",Nr="[object HTMLAllCollection]",zr="[object HTML document.all class]",Dr="[object HTMLCollection]",Wr="function"==typeof Symbol&&!!Symbol.toStringTag,$r=!(0 in[,]),Gr=function(){return!1},qr=("object"==typeof document&&Cr.call(document.all)===Cr.call(document.all)&&(Gr=function(t){if(($r||!t)&&(void 0===t||"object"==typeof t))try{var e=Cr.call(t);return(e===Nr||e===zr||e===Dr||e===Ur)&&null==t("")}catch(t){}return!1}),Rr?function(t){if(Gr(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{Rr(t,null,sr)}catch(t){if(t!==fr)return!1}return!Mr(t)&&Lr(t)}:function(t){var e;return!!Gr(t)||!!t&&!("function"!=typeof t&&"object"!=typeof t||!Wr&&(Mr(t)||"[object Function]"!==(e=Cr.call(t))&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e)))&&Lr(t)}),Hr=Object.prototype.toString,Yr=Object.prototype.hasOwnProperty,Jr=function(t,e,r){for(var n=0,i=t.length;n{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{if("undefined"!=typeof window)for(var t in window)try{if(!oi["$"+t]&&Kn.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{ii(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),ui=function(t){if("undefined"==typeof window||!ai)return ii(t);try{return ii(t)}catch(t){return!1}},No=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===Qn.call(t),n=ti(t),i=e&&"[object String]"===Qn.call(t),o=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=ri&&r;if(i&&0{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{var e;try{t()}catch(t){e=t}return e})(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!e&&s(e,r,"Missing expected exception"+n);var i="string"==typeof n,o=!t&&e&&!r;if((!t&&S.isError(e)&&i&&l(e,r)||o)&&s(e,r,"Got unwanted exception"+n),t&&e&&r&&!l(e,r)||!t&&e)throw e}o.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=a(u((r=this).actual),128)+" "+r.operator+" "+a(u(r.expected),128),this.generatedMessage=!0);var e,r=t.stackStartFunction||s;Error.captureStackTrace?Error.captureStackTrace(this,r):(t=new Error).stack&&(t=t.stack,e=i(r),0<=(e=t.indexOf("\n"+e))&&(e=t.indexOf("\n",e+1),t=t.substring(e+1)),this.stack=t)},S.inherits(o.AssertionError,Error),o.fail=s,o.ok=f,o.equal=function(t,e,r){t!=e&&s(t,e,r,"==",o.equal)},o.notEqual=function(t,e,r){t==e&&s(t,e,r,"!=",o.notEqual)},o.deepEqual=function(t,e,r){v(t,e,!1)||s(t,e,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(t,e,r){v(t,e,!0)||s(t,e,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(t,e,r){v(t,e,!1)&&s(t,e,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&s(e,r,n,"notDeepStrictEqual",t)},o.strictEqual=function(t,e,r){t!==e&&s(t,e,r,"===",o.strictEqual)},o.notStrictEqual=function(t,e,r){t===e&&s(t,e,r,"!==",o.notStrictEqual)},o.throws=function(t,e,r){c(!0,t,e,r)},o.doesNotThrow=function(t,e,r){c(!1,t,e,r)},o.ifError=function(t){if(t)throw t},o.strict=t(function t(e,r){e||s(e,!0,r,"==",t)},o,{equal:o.strictEqual,deepEqual:o.deepStrictEqual,notEqual:o.notStrictEqual,notDeepEqual:o.notDeepStrictEqual}),o.strict.strict=o.strict;var w=Object.keys||function(t){var e,r=[];for(e in t)n.call(t,e)&&r.push(e);return r}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),{}),xi=(!function(s){!function(){function r(){return(new Date).getTime()}for(var e=Array.prototype.slice,n={},i=void 0!==s&&s.console?s.console:"undefined"!=typeof window&&window.console?window.console:{},t=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(t){n[t]=r()},"time"],[function(t){var e=n[t];if(!e)throw new Error("No such label: "+t);delete n[t];e=r()-e;i.log(t+": "+e+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=F.format.apply(null,arguments),i.error(t.stack)},"trace"],[function(t){i.log(F.inspect(t)+"\n")},"dir"],[function(t){t||(t=e.call(arguments,1),_i.ok(!1,F.format.apply(null,t)))},"assert"]],o=0;oe.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*ru));e=new m(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(T,"BYTES_PER_ELEMENT",ru),u(T,"name","Complex64Array"),u(T,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!iu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return s(this._buffer,t)}),t(T.prototype,"buffer",function(){return this._buffer.buffer}),t(T.prototype,"byteLength",function(){return this._buffer.byteLength}),t(T.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(T.prototype,"BYTES_PER_ELEMENT",T.BYTES_PER_ELEMENT),u(T.prototype,"copyWithin",function(t,e){if(_(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"entries",function(){var t,e,r,n,i,o;if(_(this))return n=(t=this)._buffer,r=this._length,o=-1,u(e={},"next",function(){if(o+=1,i||r<=o)return{done:!0};return{value:[o,s(n,o)],done:!1}}),u(e,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(e,b,function(){return t.entries()}),e;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"every",function(t,e){var r,n;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return s(this._buffer,t)}),u(T.prototype,"includes",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=w(t),o=E(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),t(T.prototype,"length",function(){return this._length}),u(T.prototype,"map",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=w(t),n[r+1]=E(t)}else if(_(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new m(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new m(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;se.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*lu));e=new po(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(V,"BYTES_PER_ELEMENT",lu),u(V,"name","Complex128Array"),u(V,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return P(this._buffer,t)}),t(V.prototype,"buffer",function(){return this._buffer.buffer}),t(V.prototype,"byteLength",function(){return this._buffer.byteLength}),t(V.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(V.prototype,"BYTES_PER_ELEMENT",V.BYTES_PER_ELEMENT),u(V.prototype,"copyWithin",function(t,e){if(j(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"entries",function(){var e,t,r,n,i,o,a;if(j(this))return e=(t=this)._buffer,n=this._length,o=-1,a=-2,u(r={},"next",function(){var t;if(o+=1,i||n<=o)return{done:!0};return t=new Ba(e[a+=2],e[a+1]),{value:[o,t],done:!1}}),u(r,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(r,b,function(){return t.entries()}),r;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"every",function(t,e){var r,n;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return P(this._buffer,t)}),t(V.prototype,"length",function(){return this._length}),u(V.prototype,"includes",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=x(t),o=A(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),u(V.prototype,"map",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=x(t),n[r+1]=A(t)}else if(j(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new po(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new po(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;st.byteLength-e)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*Eu));t=new Ho(t,e,r)}}return u(this,"_buffer",t),u(this,"_length",t.length),this}u(I,"BYTES_PER_ELEMENT",Eu),u(I,"name","BooleanArray"),u(I,"from",function(t){var e,r,n,i,o,a,u,s,f;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Tu(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return l(this._buffer[t])}),u(I.prototype,"includes",function(t,e){var r,n;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mu(t))throw new TypeError(h("invalid argument. First argument must be a boolean. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(r=this._buffer,n=e;0<=n;n--)if(t===l(r[n]))return n;return-1}),t(I.prototype,"length",function(){return this._length}),u(I.prototype,"map",function(t,e){var r,n,i,o;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!y(t))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",t);for(i=this._buffer,r=(n=new this.constructor(this._length))._buffer,o=0;othis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=k(t)?t._buffer:t,u=n.byteOffset+r*Eu,e.buffer===n.buffer&&e.byteOffsetu){for(i=new Ho(e.length),a=0;a=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r]=t?1:0}}),u(I.prototype,"slice",function(t,e){var r,n,i,o,a;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(i=this._buffer,o=this._length,0===arguments.length)t=0,e=o;else{if(!vu(t))throw new TypeError(h("invalid argument. First argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=o)<0&&(t=0),1===arguments.length)e=o;else{if(!vu(e))throw new TypeError(h("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=o)<0&&(e=0):oi&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,r=n,console)&&console.warn&&console.warn(r)),t}function is(t,e,r){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=r,t.wrapFn=e}function os(t,e,r){t=t._events;if(void 0===t)return[];t=t[e];if(void 0===t)return[];if("function"==typeof t)return r?[t.listener||t]:[t];if(r){for(var n=t,i=new Array(n.length),o=0;o{if("undefined"!==le(tf))for(var t in tf)try{-1===Xs(Qs,t)&&Ft(tf,t)&&null!==tf[t]&&"object"===le(tf[t])&&Ks(tf[t])}catch(t){return!0}return!1})(),rf="undefined"!=typeof window;var nf=function(t){if(!1===rf&&!ef)return Ks(t);try{return Ks(t)}catch(t){return!1}},of=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function af(t){var e,r,n,i,o,a,u=[];if($s(t))for(a=0;a=e.length)return r();e[n](t)}()},L={editor:null,schema:null,sse:null,viz:null};function Nf(t){L.schema=new Zu(L),L.schema.resolve(t)}function zf(t){L.editor=new Uf(L),L.editor.init(),L.editor.on("change",$f),t()}function Df(t){L.sse=new ys(L),L.sse.on("refresh",Gf),L.sse.on("patch",qf),L.sse.on("data",Hf),L.sse.connect(t)}function Wf(t){L.view=new Os(L),L.view.init(t)}function $f(t){c("Updating rendered visualization..."),L.view.onSignal(t.path,t.value)}function Gf(t){L.schema.raw=pe(t.data),L.view.init(),L.editor.refresh()}function qf(){}function Hf(){}function Yf(t){t?console.error(t.message):c("Successfully booted application.")}c("Booting application..."),we([Nf,Wf,Df,zf],Yf)}(); From 9e6bf1837d3e197b9ff8297e494daef731956b75 Mon Sep 17 00:00:00 2001 From: gururaj1512 Date: Mon, 4 May 2026 17:01:10 +0530 Subject: [PATCH 04/13] feat: add toNumberArray function for comma-separated integer parsing --- .../lib/browser/app/editor/config/axis.js | 10 +++--- .../view/lib/browser/routes/app/bundle.js | 2 +- .../routes/config/axes/domain-dash/main.js | 2 +- .../lib/browser/routes/config/transforms.js | 31 +++++++++++++++++++ 4 files changed, 38 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js index fea79410f653..61359f612f63 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/app/editor/config/axis.js @@ -39,7 +39,7 @@ var PROPS = [ 'titleFont', 'titleOpacity' ]; -var JSON_PROPS = [ +var ARRAY_PROPS = [ 'domainDash' ]; var TEXT_PROPS = [ @@ -66,10 +66,10 @@ function config( conf, schema ) { for ( i = 0; i < TEXT_PROPS.length; i++ ) { resolveTextValue( schema, def, conf, TEXT_PROPS[ i ] ); } - for ( i = 0; i < JSON_PROPS.length; i++ ) { - resolveValue( schema, def, conf, JSON_PROPS[ i ] ); - if ( isArray( conf[ JSON_PROPS[ i ] ] ) ) { - conf[ JSON_PROPS[ i ] ] = JSON.stringify( conf[ JSON_PROPS[ i ] ] ); + for ( i = 0; i < ARRAY_PROPS.length; i++ ) { + resolveValue( schema, def, conf, ARRAY_PROPS[ i ] ); + if ( isArray( conf[ ARRAY_PROPS[ i ] ] ) ) { + conf[ ARRAY_PROPS[ i ] ] = conf[ ARRAY_PROPS[ i ] ].join( ', ' ); } } for ( i = 0; i < PROPS.length; i++ ) { diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js index 768d5a19c65c..a9c446e7783c 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/app/bundle.js @@ -3,4 +3,4 @@ /* eslint-disable */ /* editorconfig-checker-disable-file */ -!function(){B=function(t,e){var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===r.call(t.callee)}};var B,M,C=function(t){return M||B(M={exports:{},parent:t},M.exports),M.exports},U="function"==typeof Object.defineProperty?Object.defineProperty:null;var N=function(){try{return U({},"x",{}),!0}catch(t){return!1}},z=Object.defineProperty;var D=function(t){return"number"==typeof t};function W(t){for(var e="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=$(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=st(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},ht=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var yt=function(t){for(var e,r,n,i=[],o=0,a=ht.exec(t);a;)(e=t.slice(o,ht.lastIndex-a[0].length)).length&&i.push(e),"%"===a[6]?i.push("%"):i.push((n=void 0,n={mapping:(r=a)[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]},"."===r[4]&&void 0===r[5]&&(n.precision="1"),n)),o=ht.lastIndex,a=ht.exec(t);return(e=t.slice(o)).length&&i.push(e),i};var gt=function(t){return"string"==typeof t};var h=function t(e){var r,n;if(!gt(e))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",e));for(r=[yt(e)],n=1;n=r.length?(s=!!(c=g(o,f)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[f]:(s=Je(o,f),o[f]),s&&!a&&(Qe[l]=o)}}return o},_r=$e([Er("%String.prototype.indexOf%")]),Tr=he(),xr=tr("Object.prototype.toString"),Ar=function(t){return!(Tr&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===xr(t)},ve=function(){return Ar(arguments)}(),be=(Ar.isLegacyArguments=er,ve?Ar:er),Sr=he()?(rr=tr("RegExp.prototype.exec"),nr={},ir={toString:we=function(){throw nr},valueOf:we},"symbol"==typeof Symbol.toPrimitive&&(ir[Symbol.toPrimitive]=we),function(t){if(!t||"object"!=typeof t)return!1;var e=g(t,"lastIndex");if(!(e&&Je(e,"value")))return!1;try{rr(t,ir)}catch(t){return t===nr}}):(or=tr("Object.prototype.toString"),ar="[object RegExp]",function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&or(t)===ar}),jr=tr("RegExp.prototype.exec"),Or=function(){if(void 0===ur)try{ur=Function("return function* () {}")().constructor}catch(t){ur=!1}return ur},Fr=(e=>{if(Sr(e))return function(t){return null!==jr(e,t)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Pr=he(),Vr=tr("Object.prototype.toString"),kr=tr("Function.prototype.toString"),Ir=Function.prototype.toString,Rr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Rr&&"function"==typeof Object.defineProperty)try{sr=Object.defineProperty({},"length",{get:function(){throw fr}}),fr={},Rr(function(){throw 42},null,sr)}catch(t){t!==fr&&(Rr=null)}else Rr=null;function Lr(t){try{return Mr(t)?!1:(Ir.call(t),!0)}catch(t){return!1}}var Br=/^\s*class\b/,Mr=function(t){try{var e=Ir.call(t);return Br.test(e)}catch(t){return!1}},Cr=Object.prototype.toString,Ur="[object Object]",Nr="[object HTMLAllCollection]",zr="[object HTML document.all class]",Dr="[object HTMLCollection]",Wr="function"==typeof Symbol&&!!Symbol.toStringTag,$r=!(0 in[,]),Gr=function(){return!1},qr=("object"==typeof document&&Cr.call(document.all)===Cr.call(document.all)&&(Gr=function(t){if(($r||!t)&&(void 0===t||"object"==typeof t))try{var e=Cr.call(t);return(e===Nr||e===zr||e===Dr||e===Ur)&&null==t("")}catch(t){}return!1}),Rr?function(t){if(Gr(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{Rr(t,null,sr)}catch(t){if(t!==fr)return!1}return!Mr(t)&&Lr(t)}:function(t){var e;return!!Gr(t)||!!t&&!("function"!=typeof t&&"object"!=typeof t||!Wr&&(Mr(t)||"[object Function]"!==(e=Cr.call(t))&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e)))&&Lr(t)}),Hr=Object.prototype.toString,Yr=Object.prototype.hasOwnProperty,Jr=function(t,e,r){for(var n=0,i=t.length;n{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{if("undefined"!=typeof window)for(var t in window)try{if(!oi["$"+t]&&Kn.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{ii(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),ui=function(t){if("undefined"==typeof window||!ai)return ii(t);try{return ii(t)}catch(t){return!1}},No=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===Qn.call(t),n=ti(t),i=e&&"[object String]"===Qn.call(t),o=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=ri&&r;if(i&&0{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{var e;try{t()}catch(t){e=t}return e})(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!e&&s(e,r,"Missing expected exception"+n);var i="string"==typeof n,o=!t&&e&&!r;if((!t&&S.isError(e)&&i&&l(e,r)||o)&&s(e,r,"Got unwanted exception"+n),t&&e&&r&&!l(e,r)||!t&&e)throw e}o.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=a(u((r=this).actual),128)+" "+r.operator+" "+a(u(r.expected),128),this.generatedMessage=!0);var e,r=t.stackStartFunction||s;Error.captureStackTrace?Error.captureStackTrace(this,r):(t=new Error).stack&&(t=t.stack,e=i(r),0<=(e=t.indexOf("\n"+e))&&(e=t.indexOf("\n",e+1),t=t.substring(e+1)),this.stack=t)},S.inherits(o.AssertionError,Error),o.fail=s,o.ok=f,o.equal=function(t,e,r){t!=e&&s(t,e,r,"==",o.equal)},o.notEqual=function(t,e,r){t==e&&s(t,e,r,"!=",o.notEqual)},o.deepEqual=function(t,e,r){v(t,e,!1)||s(t,e,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(t,e,r){v(t,e,!0)||s(t,e,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(t,e,r){v(t,e,!1)&&s(t,e,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&s(e,r,n,"notDeepStrictEqual",t)},o.strictEqual=function(t,e,r){t!==e&&s(t,e,r,"===",o.strictEqual)},o.notStrictEqual=function(t,e,r){t===e&&s(t,e,r,"!==",o.notStrictEqual)},o.throws=function(t,e,r){c(!0,t,e,r)},o.doesNotThrow=function(t,e,r){c(!1,t,e,r)},o.ifError=function(t){if(t)throw t},o.strict=t(function t(e,r){e||s(e,!0,r,"==",t)},o,{equal:o.strictEqual,deepEqual:o.deepStrictEqual,notEqual:o.notStrictEqual,notDeepEqual:o.notDeepStrictEqual}),o.strict.strict=o.strict;var w=Object.keys||function(t){var e,r=[];for(e in t)n.call(t,e)&&r.push(e);return r}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),{}),xi=(!function(s){!function(){function r(){return(new Date).getTime()}for(var e=Array.prototype.slice,n={},i=void 0!==s&&s.console?s.console:"undefined"!=typeof window&&window.console?window.console:{},t=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(t){n[t]=r()},"time"],[function(t){var e=n[t];if(!e)throw new Error("No such label: "+t);delete n[t];e=r()-e;i.log(t+": "+e+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=F.format.apply(null,arguments),i.error(t.stack)},"trace"],[function(t){i.log(F.inspect(t)+"\n")},"dir"],[function(t){t||(t=e.call(arguments,1),_i.ok(!1,F.format.apply(null,t)))},"assert"]],o=0;oe.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*ru));e=new m(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(T,"BYTES_PER_ELEMENT",ru),u(T,"name","Complex64Array"),u(T,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!iu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return s(this._buffer,t)}),t(T.prototype,"buffer",function(){return this._buffer.buffer}),t(T.prototype,"byteLength",function(){return this._buffer.byteLength}),t(T.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(T.prototype,"BYTES_PER_ELEMENT",T.BYTES_PER_ELEMENT),u(T.prototype,"copyWithin",function(t,e){if(_(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"entries",function(){var t,e,r,n,i,o;if(_(this))return n=(t=this)._buffer,r=this._length,o=-1,u(e={},"next",function(){if(o+=1,i||r<=o)return{done:!0};return{value:[o,s(n,o)],done:!1}}),u(e,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(e,b,function(){return t.entries()}),e;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"every",function(t,e){var r,n;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return s(this._buffer,t)}),u(T.prototype,"includes",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=w(t),o=E(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),t(T.prototype,"length",function(){return this._length}),u(T.prototype,"map",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=w(t),n[r+1]=E(t)}else if(_(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new m(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new m(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;se.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*lu));e=new po(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(V,"BYTES_PER_ELEMENT",lu),u(V,"name","Complex128Array"),u(V,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return P(this._buffer,t)}),t(V.prototype,"buffer",function(){return this._buffer.buffer}),t(V.prototype,"byteLength",function(){return this._buffer.byteLength}),t(V.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(V.prototype,"BYTES_PER_ELEMENT",V.BYTES_PER_ELEMENT),u(V.prototype,"copyWithin",function(t,e){if(j(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"entries",function(){var e,t,r,n,i,o,a;if(j(this))return e=(t=this)._buffer,n=this._length,o=-1,a=-2,u(r={},"next",function(){var t;if(o+=1,i||n<=o)return{done:!0};return t=new Ba(e[a+=2],e[a+1]),{value:[o,t],done:!1}}),u(r,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(r,b,function(){return t.entries()}),r;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"every",function(t,e){var r,n;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return P(this._buffer,t)}),t(V.prototype,"length",function(){return this._length}),u(V.prototype,"includes",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=x(t),o=A(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),u(V.prototype,"map",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=x(t),n[r+1]=A(t)}else if(j(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new po(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new po(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;st.byteLength-e)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*Eu));t=new Ho(t,e,r)}}return u(this,"_buffer",t),u(this,"_length",t.length),this}u(I,"BYTES_PER_ELEMENT",Eu),u(I,"name","BooleanArray"),u(I,"from",function(t){var e,r,n,i,o,a,u,s,f;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Tu(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return l(this._buffer[t])}),u(I.prototype,"includes",function(t,e){var r,n;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mu(t))throw new TypeError(h("invalid argument. First argument must be a boolean. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(r=this._buffer,n=e;0<=n;n--)if(t===l(r[n]))return n;return-1}),t(I.prototype,"length",function(){return this._length}),u(I.prototype,"map",function(t,e){var r,n,i,o;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!y(t))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",t);for(i=this._buffer,r=(n=new this.constructor(this._length))._buffer,o=0;othis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=k(t)?t._buffer:t,u=n.byteOffset+r*Eu,e.buffer===n.buffer&&e.byteOffsetu){for(i=new Ho(e.length),a=0;a=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r]=t?1:0}}),u(I.prototype,"slice",function(t,e){var r,n,i,o,a;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(i=this._buffer,o=this._length,0===arguments.length)t=0,e=o;else{if(!vu(t))throw new TypeError(h("invalid argument. First argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=o)<0&&(t=0),1===arguments.length)e=o;else{if(!vu(e))throw new TypeError(h("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=o)<0&&(e=0):oi&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,r=n,console)&&console.warn&&console.warn(r)),t}function is(t,e,r){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=r,t.wrapFn=e}function os(t,e,r){t=t._events;if(void 0===t)return[];t=t[e];if(void 0===t)return[];if("function"==typeof t)return r?[t.listener||t]:[t];if(r){for(var n=t,i=new Array(n.length),o=0;o{if("undefined"!==le(tf))for(var t in tf)try{-1===Xs(Qs,t)&&Ft(tf,t)&&null!==tf[t]&&"object"===le(tf[t])&&Ks(tf[t])}catch(t){return!0}return!1})(),rf="undefined"!=typeof window;var nf=function(t){if(!1===rf&&!ef)return Ks(t);try{return Ks(t)}catch(t){return!1}},of=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function af(t){var e,r,n,i,o,a,u=[];if($s(t))for(a=0;a=e.length)return r();e[n](t)}()},L={editor:null,schema:null,sse:null,viz:null};function Nf(t){L.schema=new Zu(L),L.schema.resolve(t)}function zf(t){L.editor=new Uf(L),L.editor.init(),L.editor.on("change",$f),t()}function Df(t){L.sse=new ys(L),L.sse.on("refresh",Gf),L.sse.on("patch",qf),L.sse.on("data",Hf),L.sse.connect(t)}function Wf(t){L.view=new Os(L),L.view.init(t)}function $f(t){c("Updating rendered visualization..."),L.view.onSignal(t.path,t.value)}function Gf(t){L.schema.raw=pe(t.data),L.view.init(),L.editor.refresh()}function qf(){}function Hf(){}function Yf(t){t?console.error(t.message):c("Successfully booted application.")}c("Booting application..."),we([Nf,Wf,Df,zf],Yf)}(); +!function(){B=function(t,e){var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===r.call(t.callee)}};var B,M,C=function(t){return M||B(M={exports:{},parent:t},M.exports),M.exports},U="function"==typeof Object.defineProperty?Object.defineProperty:null;var N=function(){try{return U({},"x",{}),!0}catch(t){return!1}},z=Object.defineProperty;var D=function(t){return"number"==typeof t};function W(t){for(var e="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=$(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=st(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},ht=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var yt=function(t){for(var e,r,n,i=[],o=0,a=ht.exec(t);a;)(e=t.slice(o,ht.lastIndex-a[0].length)).length&&i.push(e),"%"===a[6]?i.push("%"):i.push((n=void 0,n={mapping:(r=a)[1]?parseInt(r[1],10):void 0,flags:r[2],width:r[3],precision:r[5],specifier:r[6]},"."===r[4]&&void 0===r[5]&&(n.precision="1"),n)),o=ht.lastIndex,a=ht.exec(t);return(e=t.slice(o)).length&&i.push(e),i};var gt=function(t){return"string"==typeof t};var h=function t(e){var r,n;if(!gt(e))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",e));for(r=[yt(e)],n=1;n=r.length?(s=!!(c=g(o,f)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[f]:(s=Je(o,f),o[f]),s&&!a&&(Qe[l]=o)}}return o},_r=$e([Er("%String.prototype.indexOf%")]),Tr=he(),xr=tr("Object.prototype.toString"),Ar=function(t){return!(Tr&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===xr(t)},ve=function(){return Ar(arguments)}(),be=(Ar.isLegacyArguments=er,ve?Ar:er),Sr=he()?(rr=tr("RegExp.prototype.exec"),nr={},ir={toString:we=function(){throw nr},valueOf:we},"symbol"==typeof Symbol.toPrimitive&&(ir[Symbol.toPrimitive]=we),function(t){if(!t||"object"!=typeof t)return!1;var e=g(t,"lastIndex");if(!(e&&Je(e,"value")))return!1;try{rr(t,ir)}catch(t){return t===nr}}):(or=tr("Object.prototype.toString"),ar="[object RegExp]",function(t){return!(!t||"object"!=typeof t&&"function"!=typeof t)&&or(t)===ar}),jr=tr("RegExp.prototype.exec"),Or=function(){if(void 0===ur)try{ur=Function("return function* () {}")().constructor}catch(t){ur=!1}return ur},Fr=(e=>{if(Sr(e))return function(t){return null!==jr(e,t)};throw new p("`regex` must be a RegExp")})(/^\s*(?:function)?\*/),Pr=he(),Vr=tr("Object.prototype.toString"),kr=tr("Function.prototype.toString"),Ir=Function.prototype.toString,Rr="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof Rr&&"function"==typeof Object.defineProperty)try{sr=Object.defineProperty({},"length",{get:function(){throw fr}}),fr={},Rr(function(){throw 42},null,sr)}catch(t){t!==fr&&(Rr=null)}else Rr=null;function Lr(t){try{return Mr(t)?!1:(Ir.call(t),!0)}catch(t){return!1}}var Br=/^\s*class\b/,Mr=function(t){try{var e=Ir.call(t);return Br.test(e)}catch(t){return!1}},Cr=Object.prototype.toString,Ur="[object Object]",Nr="[object HTMLAllCollection]",zr="[object HTML document.all class]",Dr="[object HTMLCollection]",Wr="function"==typeof Symbol&&!!Symbol.toStringTag,$r=!(0 in[,]),Gr=function(){return!1},qr=("object"==typeof document&&Cr.call(document.all)===Cr.call(document.all)&&(Gr=function(t){if(($r||!t)&&(void 0===t||"object"==typeof t))try{var e=Cr.call(t);return(e===Nr||e===zr||e===Dr||e===Ur)&&null==t("")}catch(t){}return!1}),Rr?function(t){if(Gr(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{Rr(t,null,sr)}catch(t){if(t!==fr)return!1}return!Mr(t)&&Lr(t)}:function(t){var e;return!!Gr(t)||!!t&&!("function"!=typeof t&&"object"!=typeof t||!Wr&&(Mr(t)||"[object Function]"!==(e=Cr.call(t))&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e)))&&Lr(t)}),Hr=Object.prototype.toString,Yr=Object.prototype.hasOwnProperty,Jr=function(t,e,r){for(var n=0,i=t.length;n{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{if("undefined"!=typeof window)for(var t in window)try{if(!oi["$"+t]&&Kn.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{ii(window[t])}catch(t){return!0}}catch(t){return!0}return!1})(),ui=function(t){if("undefined"==typeof window||!ai)return ii(t);try{return ii(t)}catch(t){return!1}},No=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===Qn.call(t),n=ti(t),i=e&&"[object String]"===Qn.call(t),o=[];if(!e&&!r&&!n)throw new TypeError("Object.keys called on a non-object");var a=ri&&r;if(i&&0{var r;return v(e)?t.stylize("undefined","undefined"):m(e)?(r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'",t.stylize(r,"string")):d(e)?t.stylize(""+e,"number"):y(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0})(e,r);if(t)return t;var i,t=Object.keys(r),o=(i={},t.forEach(function(t,e){i[t]=!0}),i);if(e.showHidden&&(t=Object.getOwnPropertyNames(r)),E(r)&&(0<=t.indexOf("message")||0<=t.indexOf("description")))return c(r);if(0===t.length){if(_(r))return a=r.name?": "+r.name:"",e.stylize("[Function"+a+"]","special");if(b(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var a="",u=!1,s=["{","}"];if(h(r)&&(u=!0,s=["[","]"]),_(r)&&(a=" [Function"+(r.name?": "+r.name:"")+"]"),b(r)&&(a=" "+RegExp.prototype.toString.call(r)),w(r)&&(a=" "+Date.prototype.toUTCString.call(r)),E(r)&&(a=" "+c(r)),0===t.length&&(!u||0==r.length))return s[0]+a+s[1];if(n<0)return b(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r),f=u?((e,r,n,i,t)=>{for(var o=[],a=0,u=r.length;a{var e;try{t()}catch(t){e=t}return e})(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!e&&s(e,r,"Missing expected exception"+n);var i="string"==typeof n,o=!t&&e&&!r;if((!t&&S.isError(e)&&i&&l(e,r)||o)&&s(e,r,"Got unwanted exception"+n),t&&e&&r&&!l(e,r)||!t&&e)throw e}o.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=a(u((r=this).actual),128)+" "+r.operator+" "+a(u(r.expected),128),this.generatedMessage=!0);var e,r=t.stackStartFunction||s;Error.captureStackTrace?Error.captureStackTrace(this,r):(t=new Error).stack&&(t=t.stack,e=i(r),0<=(e=t.indexOf("\n"+e))&&(e=t.indexOf("\n",e+1),t=t.substring(e+1)),this.stack=t)},S.inherits(o.AssertionError,Error),o.fail=s,o.ok=f,o.equal=function(t,e,r){t!=e&&s(t,e,r,"==",o.equal)},o.notEqual=function(t,e,r){t==e&&s(t,e,r,"!=",o.notEqual)},o.deepEqual=function(t,e,r){v(t,e,!1)||s(t,e,r,"deepEqual",o.deepEqual)},o.deepStrictEqual=function(t,e,r){v(t,e,!0)||s(t,e,r,"deepStrictEqual",o.deepStrictEqual)},o.notDeepEqual=function(t,e,r){v(t,e,!1)&&s(t,e,r,"notDeepEqual",o.notDeepEqual)},o.notDeepStrictEqual=function t(e,r,n){v(e,r,!0)&&s(e,r,n,"notDeepStrictEqual",t)},o.strictEqual=function(t,e,r){t!==e&&s(t,e,r,"===",o.strictEqual)},o.notStrictEqual=function(t,e,r){t===e&&s(t,e,r,"!==",o.notStrictEqual)},o.throws=function(t,e,r){c(!0,t,e,r)},o.doesNotThrow=function(t,e,r){c(!1,t,e,r)},o.ifError=function(t){if(t)throw t},o.strict=t(function t(e,r){e||s(e,!0,r,"==",t)},o,{equal:o.strictEqual,deepEqual:o.deepStrictEqual,notEqual:o.notStrictEqual,notDeepEqual:o.notDeepStrictEqual}),o.strict.strict=o.strict;var w=Object.keys||function(t){var e,r=[];for(e in t)n.call(t,e)&&r.push(e);return r}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}),{}),xi=(!function(s){!function(){function r(){return(new Date).getTime()}for(var e=Array.prototype.slice,n={},i=void 0!==s&&s.console?s.console:"undefined"!=typeof window&&window.console?window.console:{},t=[[function(){},"log"],[function(){i.log.apply(i,arguments)},"info"],[function(){i.log.apply(i,arguments)},"warn"],[function(){i.warn.apply(i,arguments)},"error"],[function(t){n[t]=r()},"time"],[function(t){var e=n[t];if(!e)throw new Error("No such label: "+t);delete n[t];e=r()-e;i.log(t+": "+e+"ms")},"timeEnd"],[function(){var t=new Error;t.name="Trace",t.message=F.format.apply(null,arguments),i.error(t.stack)},"trace"],[function(t){i.log(F.inspect(t)+"\n")},"dir"],[function(t){t||(t=e.call(arguments,1),_i.ok(!1,F.format.apply(null,t)))},"assert"]],o=0;oe.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*ru));e=new m(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(T,"BYTES_PER_ELEMENT",ru),u(T,"name","Complex64Array"),u(T,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!iu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return s(this._buffer,t)}),t(T.prototype,"buffer",function(){return this._buffer.buffer}),t(T.prototype,"byteLength",function(){return this._buffer.byteLength}),t(T.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(T.prototype,"BYTES_PER_ELEMENT",T.BYTES_PER_ELEMENT),u(T.prototype,"copyWithin",function(t,e){if(_(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"entries",function(){var t,e,r,n,i,o;if(_(this))return n=(t=this)._buffer,r=this._length,o=-1,u(e={},"next",function(){if(o+=1,i||r<=o)return{done:!0};return{value:[o,s(n,o)],done:!1}}),u(e,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(e,b,function(){return t.entries()}),e;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(T.prototype,"every",function(t,e){var r,n;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return s(this._buffer,t)}),u(T.prototype,"includes",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=w(t),o=E(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),t(T.prototype,"length",function(){return this._length}),u(T.prototype,"map",function(t,e){var r,n,i,o,a;if(!_(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=w(t),n[r+1]=E(t)}else if(_(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new m(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*ru,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new m(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;se.byteLength-t)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*lu));e=new po(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(V,"BYTES_PER_ELEMENT",lu),u(V,"name","Complex128Array"),u(V,"from",function(t){var e,r,n,i,o,a,u,s,f,l,c,p;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!pu(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return P(this._buffer,t)}),t(V.prototype,"buffer",function(){return this._buffer.buffer}),t(V.prototype,"byteLength",function(){return this._buffer.byteLength}),t(V.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(V.prototype,"BYTES_PER_ELEMENT",V.BYTES_PER_ELEMENT),u(V.prototype,"copyWithin",function(t,e){if(j(this))return 2===arguments.length?this._buffer.copyWithin(2*t,2*e):this._buffer.copyWithin(2*t,2*e,2*arguments[2]),this;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"entries",function(){var e,t,r,n,i,o,a;if(j(this))return e=(t=this)._buffer,n=this._length,o=-1,a=-2,u(r={},"next",function(){var t;if(o+=1,i||n<=o)return{done:!0};return t=new Ba(e[a+=2],e[a+1]),{value:[o,t],done:!1}}),u(r,"return",function(t){if(i=!0,arguments.length)return{value:t,done:!0};return{done:!0}}),b&&u(r,b,function(){return t.entries()}),r;throw new TypeError("invalid invocation. `this` is not a complex number array.")}),u(V.prototype,"every",function(t,e){var r,n;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(r=this._buffer,n=0;n=this._length))return P(this._buffer,t)}),t(V.prototype,"length",function(){return this._length}),u(V.prototype,"includes",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!v(t))throw new TypeError(h("invalid argument. First argument must be a complex number. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(i=x(t),o=A(t),r=this._buffer,a=e;0<=a;a--)if(i===r[n=2*a]&&o===r[1+n])return a;return-1}),u(V.prototype,"map",function(t,e){var r,n,i,o,a;if(!j(this))throw new TypeError("invalid invocation. `this` is not a complex number array.");if(!y(t))throw new TypeError(h("invalid argument. First argument must be a function. Value: `%s`.",t));for(n=this._buffer,r=(i=new this.constructor(this._length))._buffer,o=0;o=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r*=2]=x(t),n[r+1]=A(t)}else if(j(t)){if(r+(a=t._length)>this._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t._buffer).buffer===n.buffer&&e.byteOffsetf){for(i=new po(e.length),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(f=n.byteOffset+r*lu,(e=t).buffer===n.buffer&&e.byteOffsetf){for(i=new po(a),s=0;sthis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");for(r*=2,s=0;st.byteLength-e)throw new RangeError(h("invalid arguments. ArrayBuffer has insufficient capacity. Either decrease the array length or provide a bigger buffer. Minimum capacity: `%u`.",r*Eu));t=new Ho(t,e,r)}}return u(this,"_buffer",t),u(this,"_length",t.length),this}u(I,"BYTES_PER_ELEMENT",Eu),u(I,"name","BooleanArray"),u(I,"from",function(t){var e,r,n,i,o,a,u,s,f;if(!y(this))throw new TypeError("invalid invocation. `this` context must be a constructor.");if(!Tu(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(1<(r=arguments.length)){if(!y(n=arguments[1]))throw new TypeError(h("invalid argument. Second argument must be a function. Value: `%s`.",n));2=this._length))return l(this._buffer[t])}),u(I.prototype,"includes",function(t,e){var r,n;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!mu(t))throw new TypeError(h("invalid argument. First argument must be a boolean. Value: `%s`.",t));if(1=this._length?e=this._length-1:e<0&&(e+=this._length)}else e=this._length-1;for(r=this._buffer,n=e;0<=n;n--)if(t===l(r[n]))return n;return-1}),t(I.prototype,"length",function(){return this._length}),u(I.prototype,"map",function(t,e){var r,n,i,o;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(!y(t))throw new TypeError("invalid argument. First argument must be a function. Value: `%s`.",t);for(i=this._buffer,r=(n=new this.constructor(this._length))._buffer,o=0;othis._length)throw new RangeError("invalid arguments. Target array lacks sufficient storage to accommodate source values.");if(e=k(t)?t._buffer:t,u=n.byteOffset+r*Eu,e.buffer===n.buffer&&e.byteOffsetu){for(i=new Ho(e.length),a=0;a=this._length)throw new RangeError(h("invalid argument. Index argument is out-of-bounds. Value: `%u`.",r));n[r]=t?1:0}}),u(I.prototype,"slice",function(t,e){var r,n,i,o,a;if(!k(this))throw new TypeError("invalid invocation. `this` is not a boolean array.");if(i=this._buffer,o=this._length,0===arguments.length)t=0,e=o;else{if(!vu(t))throw new TypeError(h("invalid argument. First argument must be an integer. Value: `%s`.",t));if(t<0&&(t+=o)<0&&(t=0),1===arguments.length)e=o;else{if(!vu(e))throw new TypeError(h("invalid argument. Second argument must be an integer. Value: `%s`.",e));e<0?(e+=o)<0&&(e=0):oi&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,r=n,console)&&console.warn&&console.warn(r)),t}function is(t,e,r){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=r,t.wrapFn=e}function os(t,e,r){t=t._events;if(void 0===t)return[];t=t[e];if(void 0===t)return[];if("function"==typeof t)return r?[t.listener||t]:[t];if(r){for(var n=t,i=new Array(n.length),o=0;o{if("undefined"!==le(tf))for(var t in tf)try{-1===Xs(Qs,t)&&Ft(tf,t)&&null!==tf[t]&&"object"===le(tf[t])&&Ks(tf[t])}catch(t){return!0}return!1})(),rf="undefined"!=typeof window;var nf=function(t){if(!1===rf&&!ef)return Ks(t);try{return Ks(t)}catch(t){return!1}},of=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function af(t){var e,r,n,i,o,a,u=[];if($s(t))for(a=0;a=e.length)return r();e[n](t)}()},L={editor:null,schema:null,sse:null,viz:null};function Nf(t){L.schema=new Zu(L),L.schema.resolve(t)}function zf(t){L.editor=new Uf(L),L.editor.init(),L.editor.on("change",$f),t()}function Df(t){L.sse=new ys(L),L.sse.on("refresh",Gf),L.sse.on("patch",qf),L.sse.on("data",Hf),L.sse.connect(t)}function Wf(t){L.view=new Os(L),L.view.init(t)}function $f(t){c("Updating rendered visualization..."),L.view.onSignal(t.path,t.value)}function Gf(t){L.schema.raw=pe(t.data),L.view.init(),L.editor.refresh()}function qf(){}function Hf(){}function Yf(t){t?console.error(t.message):c("Successfully booted application.")}c("Booting application..."),we([Nf,Wf,Df,zf],Yf)}(); diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js index 98869ce1ef1c..67ca03222547 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js @@ -26,7 +26,7 @@ var tryAssign = require( './../../../../middleware/plot-try-assign' ); var body = require( './../../../../middleware/body' ); var ok = require( './../../../../middleware/ok' ); var onError = require( './../../../../middleware/error' ); -var transform = require( './../../transforms.js' ).toJSON; +var transform = require( './../../transforms.js' ).toNumberArray; // VARIABLES // diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js index 0308e2e26dce..18a8cf3e22b4 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js @@ -96,6 +96,36 @@ function toNumber( value ) { return v; } +/** +* Transforms a request body containing comma-separated values to an array of integers. +* +* @private +* @param {string} value - raw request body +* @throws {TypeError} must provide a comma-separated list of integers +* @returns {Array} transformed value +*/ +function toNumberArray( value ) { + var out; + var tmp; + var v; + var i; + + v = trim( value ); + if ( v === '' ) { + return []; + } + tmp = v.split( /\s*,\s*/ ); + out = []; + for ( i = 0; i < tmp.length; i++ ) { + v = parseInt( tmp[ i ], 10 ); + if ( isnan( v ) ) { + throw new TypeError( format( 'invalid argument. Must provide a comma-separated list of integers. Value: `%s`.', value ) ); + } + out.push( v ); + } + return out; +} + /** * Transforms a request body to either a string or `undefined`. * @@ -122,6 +152,7 @@ var transforms = { // eslint-disable-line vars-on-top 'toInteger': toInteger, 'toJSON': toJSON, 'toNumber': toNumber, + 'toNumberArray': toNumberArray, 'empty2undefined': empty2undefined }; From 3845a3c92a67ff63e4937248903aa7228231de3e Mon Sep 17 00:00:00 2001 From: Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com> Date: Tue, 5 May 2026 01:33:29 +0530 Subject: [PATCH 05/13] Update default domainOpacity to 1 Changed the default domainOpacity value from 0 to 1. Signed-off-by: Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com> --- .../@stdlib/plot/vega/editor-config/axis/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index 7716e9fc11b6..613ed39e2e87 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -75,7 +75,7 @@ function config() { 'domainOpacity': { 'description': 'opacity of the domain line', 'property': 'domainOpacity', - 'default': 0, + 'default': 1, 'type': 'number', 'min': 0, 'max': 1 From 9398de9025413d70575cf37d5bd8de5142e498ef Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 4 May 2026 14:49:18 -0700 Subject: [PATCH 06/13] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../plot/vega/editor-config/axis/lib/main.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index 613ed39e2e87..e3dd696f68c5 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -37,26 +37,26 @@ var strokeCaps = require( '@stdlib/plot/vega/base/stroke-caps' ); function config() { return { 'domain': { - 'description': 'boolean indicating whether to include axis baseline as part of an axis', + 'description': 'boolean indicating whether to include an axis baseline as part of an axis', 'property': 'domain', 'default': true, 'type': 'boolean' }, 'domainCap': { - 'description': 'stroke cap of the axis domain', + 'description': 'stroke cap for the axis domain line', 'property': 'domainCap', 'default': 'butt', 'type': 'oneOf', 'values': strokeCaps() }, 'domainColor': { - 'description': 'color of the axis domain', + 'description': 'color of the axis domain line', 'property': 'domainColor', 'default': '#000', 'type': 'string' }, 'domainDash': { - 'description': 'stroke dash of the axis domain', + 'description': 'stroke dash of the axis domain line', 'property': 'domainDash', 'default': [], 'type': 'array', @@ -66,14 +66,14 @@ function config() { 'minItems': 0 }, 'domainDashOffset': { - 'description': 'pixel offset for line dash array of the domain line', + 'description': 'pixel offset at which to start a domain line stroke dash', 'property': 'domainDashOffset', 'default': 0, 'type': 'number', 'units': 'px' }, 'domainOpacity': { - 'description': 'opacity of the domain line', + 'description': 'opacity of the axis domain line', 'property': 'domainOpacity', 'default': 1, 'type': 'number', @@ -81,7 +81,7 @@ function config() { 'max': 1 }, 'domainWidth': { - 'description': 'stroke width of the domain line', + 'description': 'stroke width of the axis domain line', 'property': 'domainWidth', 'default': 1, 'type': 'number', From 32f7f2e1fd7b4da6e82118ef93d3884304cf8e05 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 4 May 2026 14:50:04 -0700 Subject: [PATCH 07/13] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/plot/vega/editor-config/axis/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index e3dd696f68c5..0f7064b91417 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -66,7 +66,7 @@ function config() { 'minItems': 0 }, 'domainDashOffset': { - 'description': 'pixel offset at which to start a domain line stroke dash', + 'description': 'pixel offset at which to start an axis domain line stroke dash', 'property': 'domainDashOffset', 'default': 0, 'type': 'number', From 3e20ca64782d0d62d0824cef6089ffd60c659023 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 4 May 2026 14:54:42 -0700 Subject: [PATCH 08/13] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/plot/vega/editor-config/axis/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index 0f7064b91417..bd42b0de267f 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -37,7 +37,7 @@ var strokeCaps = require( '@stdlib/plot/vega/base/stroke-caps' ); function config() { return { 'domain': { - 'description': 'boolean indicating whether to include an axis baseline as part of an axis', + 'description': 'whether to include an axis baseline as part of an axis', 'property': 'domain', 'default': true, 'type': 'boolean' From f7c9ddca3e021298aedb33e8bbca6b21ca969568 Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 4 May 2026 15:02:58 -0700 Subject: [PATCH 09/13] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/plot/vega/editor-config/axis/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index bd42b0de267f..9dc0d116f020 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -53,7 +53,7 @@ function config() { 'description': 'color of the axis domain line', 'property': 'domainColor', 'default': '#000', - 'type': 'string' + 'type': 'color' }, 'domainDash': { 'description': 'stroke dash of the axis domain line', @@ -98,7 +98,7 @@ function config() { 'description': 'color of the title', 'property': 'titleColor', 'default': '#000', - 'type': 'string' + 'type': 'color' }, 'titleFont': { 'description': 'font of the title', From f4a37aef26ab3b15ab09e964e7ea7da500e7d14e Mon Sep 17 00:00:00 2001 From: Athan Date: Mon, 4 May 2026 15:04:08 -0700 Subject: [PATCH 10/13] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../view/lib/browser/routes/config/axes/domain-dash/main.js | 2 +- .../plot/base/view/lib/browser/routes/config/transforms.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js index 67ca03222547..9fb635865232 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/domain-dash/main.js @@ -26,7 +26,7 @@ var tryAssign = require( './../../../../middleware/plot-try-assign' ); var body = require( './../../../../middleware/body' ); var ok = require( './../../../../middleware/ok' ); var onError = require( './../../../../middleware/error' ); -var transform = require( './../../transforms.js' ).toNumberArray; +var transform = require( './../../transforms.js' ).toIntegerArray; // VARIABLES // diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js index 18a8cf3e22b4..f8e5ed389bc0 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/transforms.js @@ -104,7 +104,7 @@ function toNumber( value ) { * @throws {TypeError} must provide a comma-separated list of integers * @returns {Array} transformed value */ -function toNumberArray( value ) { +function toIntegerArray( value ) { var out; var tmp; var v; @@ -152,7 +152,7 @@ var transforms = { // eslint-disable-line vars-on-top 'toInteger': toInteger, 'toJSON': toJSON, 'toNumber': toNumber, - 'toNumberArray': toNumberArray, + 'toIntegerArray': toIntegerArray, 'empty2undefined': empty2undefined }; From 18425ee1240a7b3457875abde64554270d61f2ca Mon Sep 17 00:00:00 2001 From: Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com> Date: Wed, 6 May 2026 02:44:33 +0530 Subject: [PATCH 11/13] Refine description of domainDash property Signed-off-by: Gururaj Gurram <143020143+gururaj1512@users.noreply.github.com> --- .../@stdlib/plot/vega/editor-config/axis/lib/main.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index 9dc0d116f020..023ed4e25a93 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -56,14 +56,10 @@ function config() { 'type': 'color' }, 'domainDash': { - 'description': 'stroke dash of the axis domain line', + 'description': 'stroke dash of the axis domain', 'property': 'domainDash', 'default': [], - 'type': 'array', - 'items': { - 'type': 'number' - }, - 'minItems': 0 + 'type': 'array' }, 'domainDashOffset': { 'description': 'pixel offset at which to start an axis domain line stroke dash', From bd81d4e0e9d5260cd6f7d567ee67a95dfa45112f Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 5 May 2026 14:58:25 -0700 Subject: [PATCH 12/13] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/plot/vega/editor-config/axis/lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index 023ed4e25a93..c78e6b2288f3 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -56,7 +56,7 @@ function config() { 'type': 'color' }, 'domainDash': { - 'description': 'stroke dash of the axis domain', + 'description': 'stroke dash of the axis domain line', 'property': 'domainDash', 'default': [], 'type': 'array' From 444903c581d72653d394905f81676e88d68c0338 Mon Sep 17 00:00:00 2001 From: Athan Date: Tue, 5 May 2026 15:00:48 -0700 Subject: [PATCH 13/13] Apply suggestions from code review Co-authored-by: Athan Signed-off-by: Athan --- .../@stdlib/plot/vega/editor-config/axis/lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js index c78e6b2288f3..4bfef7106fcd 100644 --- a/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js +++ b/lib/node_modules/@stdlib/plot/vega/editor-config/axis/lib/main.js @@ -58,8 +58,8 @@ function config() { 'domainDash': { 'description': 'stroke dash of the axis domain line', 'property': 'domainDash', - 'default': [], - 'type': 'array' + 'default': '', + 'type': 'string' }, 'domainDashOffset': { 'description': 'pixel offset at which to start an axis domain line stroke dash',