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 5443fb2b7401..29fbaf556df8 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,6 +28,7 @@ var resolveTextValue = require( './resolve_text_value.js' ); // VARIABLES // var PROPS = [ + 'titleFont', 'titleOpacity' ]; var TEXT_PROPS = [ 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 db7efc258173..94114c82d3ff 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 @@ -30,6 +30,7 @@ var signalName = require( './../../utils/signal_name.js' ); var PROPS = [ 'title', + 'titleFont', 'titleOpacity' ]; 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 0e7364900b95..e6d2ff0d9e6a 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(){var B="function"==typeof Object.defineProperty?Object.defineProperty:null;var M=function(){try{return B({},"x",{}),!0}catch(t){return!1}},U=Object.defineProperty;var C=function(t){return"number"==typeof t};function N(t){for(var e="",r=0;rn.maxWidth&&(n.arg=n.arg.substring(0,n.maxWidth)),n.padZeros?n.arg=z(n.arg,n.width||n.precision,n.padRight):n.width&&(n.arg=ot(n.arg,n.width,n.padRight)),o+=n.arg||"",a+=1}return o},lt=/%(?:([1-9]\d*)\$)?([0 +\-#]*)(\*|\d+)?(?:(\.)(\*|\d+)?)?[hlL]?([%A-Za-z])/g;var ct=function(t){for(var e,r,n,i=[],o=0,a=lt.exec(t);a;)(e=t.slice(o,lt.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=lt.lastIndex,a=lt.exec(t);return(e=t.slice(o)).length&&i.push(e),i};var pt=function(t){return"string"==typeof t};var h=function t(e){var r,n;if(!pt(e))throw new TypeError(t("invalid argument. First argument must be a string. Value: `%s`.",e));for(r=[ct(e)],n=1;n=r.length?(f=!!(c=g(o,s)))&&"get"in c&&!("originalValue"in c.get)?c.get:o[s]:(f=Ge(o,s),o[s]),f&&!a&&(Ye[l]=o)}}return o},fr=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new p("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new p("`property` must be a string or a symbol`");if(3"function"==typeof(e=ur(t,!!e))&&-1{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{try{if(Object.assign){var t=new String("abc");if(t[5]="de","5"!==Object.getOwnPropertyNames(t)[0]){for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;var n,i=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"===i.join(""))return n={},"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")?1:void 0}}}catch(t){}})()?Object.assign:function(t,e){for(var r,n=(t=>{if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)})(t),i=1;i{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&&s(e,r)||o)&&f(e,r,"Got unwanted exception"+n),t&&e&&r&&!s(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=t,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){l(!0,t,e,r)},o.doesNotThrow=function(t,e,r){l(!1,t,e,r)},o.ifError=function(t){if(t)throw t},o.strict=$n(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:{}),{}),Zn=(!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),Yn.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*Aa));e=new c(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(x,"BYTES_PER_ELEMENT",Aa),u(x,"name","Complex64Array"),u(x,"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(!ja(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 T(this._buffer,t)}),e(x.prototype,"buffer",function(){return this._buffer.buffer}),e(x.prototype,"byteLength",function(){return this._buffer.byteLength}),e(x.prototype,"byteOffset",function(){return this._buffer.byteOffset}),u(x.prototype,"BYTES_PER_ELEMENT",x.BYTES_PER_ELEMENT),u(x.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(x.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,T(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(x.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 T(this._buffer,t)}),u(x.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}),e(x.prototype,"length",function(){return this._length}),u(x.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(s=n.byteOffset+r*Aa,(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*Aa,(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*Ra));e=new Bi(e,t,2*r)}}return u(this,"_buffer",e),u(this,"_length",e.length/2),this}u(V,"BYTES_PER_ELEMENT",Ra),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(!Ba(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)}),e(V.prototype,"buffer",function(){return this._buffer.buffer}),e(V.prototype,"byteLength",function(){return this._buffer.byteLength}),e(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 oa(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)}),e(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=A(t),o=Oa(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]=A(t),n[r+1]=Oa(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*Ra,(e=t._buffer).buffer===n.buffer&&e.byteOffsets){for(i=new Bi(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*Ra,(e=t).buffer===n.buffer&&e.byteOffsets){for(i=new Bi(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*qa));t=new go(t,e,r)}}return u(this,"_buffer",t),u(this,"_length",t.length),this}u(I,"BYTES_PER_ELEMENT",qa),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(!Ha(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(!za(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}),e(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*qa,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(!Da(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(!Da(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 Ou(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 Fu(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"!==ae(Af))for(var t in Af)try{-1===_f(xf,t)&&St(Af,t)&&null!==Af[t]&&"object"===ae(Af[t])&&Tf(Af[t])}catch(t){return!0}return!1})(),jf="undefined"!=typeof window;var Of=function(t){if(!1===jf&&!Sf)return Tf(t);try{return Tf(t)}catch(t){return!1}},Ff=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Pf(t){var e,r,n,i,o,a,u=[];if(gf(t))for(a=0;a=e.length)return r();e[n](t)}()},L={editor:null,schema:null,sse:null,viz:null};function us(t){L.schema=new wu(L),L.schema.resolve(t)}function fs(t){L.editor=new as(L),L.editor.init(),L.editor.on("change",cs),t()}function ss(t){L.sse=new Uu(L),L.sse.on("refresh",ps),L.sse.on("patch",hs),L.sse.on("data",ys),L.sse.connect(t)}function ls(t){L.view=new Ku(L),L.view.init(t)}function cs(t){f("Updating rendered visualization..."),L.view.onSignal(t.path,t.value)}function ps(t){L.schema.raw=fe(t.data),L.view.init(),L.editor.refresh()}function hs(){}function ys(){}function gs(t){t?console.error(t.message):f("Successfully booted application.")}f("Booting application..."),be([us,ls,ss,fs],gs)}(); +!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)}(); diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/index.js new file mode 100644 index 000000000000..3d563c0612f1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/index.js @@ -0,0 +1,43 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var schema = require( './schema.json' ); +var handler = require( './main.js' ); + + +// MAIN // + +/** +* Defines a route handler for receiving updating a plot configuration. +* +* @private +* @returns {Object} route declaration +*/ +function route() { + schema.handler = handler; + return schema; +} + + +// EXPORTS // + +module.exports = route; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/main.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/main.js new file mode 100644 index 000000000000..eb11d2327ba1 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/main.js @@ -0,0 +1,57 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2026 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var middleware = require( './../../../../middleware_sequence.js' ); +var allowCredentials = require( './../../../../middleware/allow-credentials' ); +var tryAssign = require( './../../../../middleware/plot-try-assign' ); +var body = require( './../../../../middleware/body' ); +var ok = require( './../../../../middleware/ok' ); +var onError = require( './../../../../middleware/error' ); + + +// VARIABLES // + +var steps = [ + allowCredentials, + body, + tryAssign( [ 'config', 'axes', ':axis' ], 'titleFont' ), + ok +]; + + +// MAIN // + +/** +* Request handler for updating a plot configuration. +* +* @private +* @name handler +* @type {Function} +* @param {Object} request - request object +* @param {Object} response - response object +*/ +var handler = middleware( steps, onError ); + + +// EXPORTS // + +module.exports = handler; diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/schema.json b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/schema.json new file mode 100644 index 000000000000..f473cef502d8 --- /dev/null +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/config/axes/title-font/schema.json @@ -0,0 +1,40 @@ +{ + "method": "POST", + "url": "/config/axes/:axis/titleFont", + "schema": { + "response": { + "200": { + "type": "string" + }, + "400": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "413": { + "type": "object", + "properties": { + "statusCode": { + "type": "integer" + }, + "error": { + "type": "string" + }, + "message": { + "type": "string" + } + } + } + } + }, + "handler": null +} diff --git a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js index 6bfecc458974..2497d2c281f4 100644 --- a/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js +++ b/lib/node_modules/@stdlib/plot/base/view/lib/browser/routes/index.js @@ -47,6 +47,7 @@ var axesOrient = require( './config/axes/orient' ); var axesTickColor = require( './config/axes/tick-color' ); var axesTitle = require( './config/axes/title' ); var axesTitleColor = require( './config/axes/title-color' ); +var axesTitleFont = require( './config/axes/title-font' ); var axesTitleOpacity = require( './config/axes/title-opacity' ); var background = require( './config/background' ); var description = require( './config/description' ); @@ -129,6 +130,7 @@ function register( router ) { router.route( axesTickColor() ); // /config/axes/:axis/tickColor router.route( axesTitle() ); // /config/axes/:axis/title router.route( axesTitleColor() ); // /config/axes/:axis/titleColor + router.route( axesTitleFont() ); // /config/axes/:axis/titleFont router.route( axesTitleOpacity() ); // /config/axes/:axis/titleOpacity router.route( background() ); // /config/background 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 0f1d3e3ead19..1e036accd40d 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,6 +37,12 @@ function config() { 'default': '', 'type': 'string' }, + 'titleFont': { + 'description': 'font of the title', + 'property': 'titleFont', + 'default': '', + 'type': 'string' + }, 'titleOpacity': { 'description': 'opacity of the title', 'property': 'titleOpacity',