st-comp 0.0.35 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bundle.js +4 -3
- package/lib/bundle.umd.cjs +2 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/TreeMap/index.vue +3 -2
package/lib/bundle.umd.cjs
CHANGED
|
@@ -112,8 +112,8 @@ q: `+this.q.toString():"")+`
|
|
|
112
112
|
`),l},s.prototype.toJSON=function(){var i=De(this.doc);return i.mathjs="Help",i},s.fromJSON=function(i){var l={};return Object.keys(i).filter(u=>u!=="mathjs").forEach(u=>{l[u]=i[u]}),new s(l)},s.prototype.valueOf=s.prototype.toString,s},{isClass:!0}),x11="Chain",w11=["?on","math","typed"],N11=s1(x11,w11,n=>{var{on:a,math:s,typed:i}=n;function l(d){if(!(this instanceof l))throw new SyntaxError("Constructor must be called with the new operator");Dn(d)?this.value=d.value:this.value=d}l.prototype.type="Chain",l.prototype.isChain=!0,l.prototype.done=function(){return this.value},l.prototype.valueOf=function(){return this.value},l.prototype.toString=function(){return Ve(this.value)},l.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},l.fromJSON=function(d){return new l(d.value)};function u(d,p){typeof p=="function"&&(l.prototype[d]=g(p))}function f(d,p){je(l.prototype,d,function(){var m=p();if(typeof m=="function")return g(m)})}function g(d){return function(){if(arguments.length===0)return new l(d(this.value));for(var p=[this.value],m=0;m<arguments.length;m++)p[m+1]=arguments[m];if(i.isTypedFunction(d)){var y=i.resolve(d,p);if(y.params.length===1)throw new Error("chain function "+d.name+" cannot match rest parameter between chain value and additional arguments.");return new l(y.implementation.apply(d,p))}return new l(d.apply(d,p))}}l.createProxy=function(d,p){if(typeof d=="string")u(d,p);else{var m=function(x){ye(d,x)&&h[x]===void 0&&f(x,()=>d[x])};for(var y in d)m(y)}};var h={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return l.createProxy(s),a&&a("import",function(d,p,m){m||f(d,p)}),l},{isClass:!0}),JN={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},A11={name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},D11={name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},C11={name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},_11={name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},M11={name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},E11={name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},S11={name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},T11={name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},I11={name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},O11={name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},XN={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},L11={name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},B11={name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},R11={name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},F11={name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},k11={name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},z11={name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},P11={name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},j11={name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},H11={name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},$11={name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},U11={name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = 1","B = [1, 2, 3]","B[B>1 and B<3]"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},V11={name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},q11={name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},Y11={name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},W11={name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},G11={name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},K11={name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},Z11={name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},Q11={name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},J11={name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x, "string": f(x)=concat(x,x) })',"double(2)",'double("hello")'],seealso:[]},X11={name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},ee1={name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},te1={name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},ne1={name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},re1={name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},ae1={name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},ie1={name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6, 1)"],seealso:["cbrt","sqrt"]},oe1={name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},se1={name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},le1={name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},ue1={name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},ce1={name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConstant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},fe1={name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},pe1={name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},de1={name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},me1={name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},he1={name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},ge1={name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},ye1={name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},ve1={name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},be1={name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},xe1={name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},we1={name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},Ne1={name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},Ae1={name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},De1={name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},Ce1={name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},_e1={name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},Me1={name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},Ee1={name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},Se1={name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},Te1={name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},Ie1={name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},Oe1={name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)","invmod(7, 13)","invmod(15151, 15122)"],seealso:["gcd","xgcd"]},Le1={name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},Be1={name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},Re1={name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},Fe1={name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},ke1={name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},ze1={name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},Pe1={name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},je1={name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},He1={name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},$e1={name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},Ue1={name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},Ve1={name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)","round(unit, valuelessUnit)","round(unit, n, valuelessUnit)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)","round(3.241cm, 2, cm)","round([3.2, 3.8, -4.7])"],seealso:["ceil","floor","fix"]},qe1={name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},Ye1={name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},We1={name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},Ge1={name:"sylvester",category:"Algebra",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","A = [[-1, -2], [1, 1]]; B = [[2, -1], [1, -2]]; C = [[-3, 2], [3, 0]]","sylvester(A, B, C)"],seealso:["schur","lyap"]},Ke1={name:"schur",category:"Algebra",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","A = [[1, 0], [-4, 3]]","schur(A)"],seealso:["lyap","sylvester"]},Ze1={name:"lyap",category:"Algebra",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","A = [[-2, 0], [1, -4]]","Q = [[3, 1], [1, 3]]","lyap(A,Q)"],seealso:["schur","sylvester"]},Qe1={name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},Je1={name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},Xe1={name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},et1={name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},tt1={name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},nt1={name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},rt1={name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},at1={name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},it1={name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},ot1={name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},st1={name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},lt1={name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},ut1={name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},ct1={name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},ft1={name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},pt1={name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},dt1={name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},mt1={name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},ht1={name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},gt1={name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},yt1={name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate(expression, scope)","evaluate([expr1, expr2, expr3, ...])","evaluate([expr1, expr2, expr3, ...], scope)"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(16)")','evaluate("2 inch to cm")','evaluate("sin(x * pi)", { "x": 1/2 })','evaluate(["width=2", "height=4","width*height"])'],seealso:[]},vt1={name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},bt1={name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},xt1={name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},wt1={name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},Nt1={name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},At1={name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},Dt1={name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},Ct1={name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},_t1={name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Mt1={name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},Et1={name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},St1={name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},Tt1={name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},It1={name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Ot1={name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["A = [1, 2, 4, 7, 0]","diff(A)","diff(A, 1)","B = [[1, 2], [3, 4]]","diff(B)","diff(B, 1)","diff(B, 2)","diff(B, bignumber(2))","diff([[1, 2], matrix([3, 4])], 2)"],seealso:["subtract","partitionSelect"]},Lt1={name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},Bt1={name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and optionally eigenvectors of a square matrix",examples:["eigs([[5, 2.3], [2.3, 1]])","eigs([[1, 2, 3], [4, 5, 6], [7, 8, 9]], { precision: 1e-6, eigenvectors: false })"],seealso:["inv"]},Rt1={name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},Ft1={name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},kt1={name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},zt1={name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},Pt1={name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},jt1={name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},Ht1={name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},$t1={name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},Ut1={name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},Vt1={name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},qt1={name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},Yt1={name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},Wt1={name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},Gt1={name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},Kt1={name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"range(1m, 1m, 3m)","a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},Zt1={name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},Qt1={name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},Jt1={name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},Xt1={name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},en1={name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},tn1={name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},nn1={name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},rn1={name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},an1={name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},in1={name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},on1={name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},sn1={name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},ln1={name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},un1={name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},cn1={name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},fn1={name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},pn1={name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},dn1={name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},mn1={name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},hn1={name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},gn1={name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},yn1={name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},vn1={name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},bn1={name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},xn1={name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},wn1={name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},Nn1={name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},An1={name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},Dn1={name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},Cn1={name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},_n1={name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},Mn1={name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},En1={name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},Sn1={name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},Tn1={name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},In1={name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},On1={name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},Ln1={name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},Bn1={name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},Rn1={name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},Fn1={name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},kn1={name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},zn1={name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},Pn1={name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},jn1={name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},Hn1={name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},$n1={name:"zpk2tf",category:"Signal",syntax:["zpk2tf(z, p, k)"],description:"Compute the transfer function of a zero-pole-gain model.",examples:["zpk2tf([1, 2], [-1, -2], 1)","zpk2tf([1, 2], [-1, -2])","zpk2tf([1 - 3i, 2 + 2i], [-1, -2])"],seealso:[]},Un1={name:"freqz",category:"Signal",syntax:["freqz(b, a)","freqz(b, a, w)"],description:"Calculates the frequency response of a filter given its numerator and denominator coefficients.",examples:["freqz([1, 2], [1, 2, 3])","freqz([1, 2], [1, 2, 3], [0, 1])","freqz([1, 2], [1, 2, 3], 512)"],seealso:[]},Vn1={name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},qn1={name:"zeta",category:"Special",syntax:["zeta(s)"],description:"Compute the Riemann Zeta Function using an infinite series and Riemanns Functional Equation for the entire complex plane",examples:["zeta(0.2)","zeta(-0.5)","zeta(4)"],seealso:[]},Yn1={name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},Wn1={name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},Gn1={name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},Kn1={name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},Zn1={name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},Qn1={name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},Jn1={name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},Xn1={name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:`Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber.
|
|
113
113
|
|
|
114
114
|
In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.`,examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},e21={name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},t21={name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},n21={name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},r21={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},a21={name:"corr",category:"Statistics",syntax:["corr(A,B)"],description:"Compute the correlation coefficient of a two list with values, For matrices, the matrix correlation coefficient is calculated.",examples:["corr([2, 4, 6, 8],[1, 2, 3, 6])","corr(matrix([[1, 2.2, 3, 4.8, 5], [1, 2, 3, 4, 5]]), matrix([[4, 5.3, 6.6, 7, 8], [1, 2, 3, 4, 5]]))"],seealso:["max","mean","min","median","min","prod","std","sum"]},i21={name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},o21={name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},s21={name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},l21={name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},u21={name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},c21={name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},f21={name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},p21={name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},d21={name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},m21={name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},h21={name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},g21={name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},y21={name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},v21={name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},b21={name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},x21={name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},w21={name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},N21={name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},A21={name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},D21={name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},C21={name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},_21={name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},M21={name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},E21={name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},S21={name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},T21={name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},I21={name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},O21={name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},L21={name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},B21={name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},R21={name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},F21={name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},k21={name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},z21={name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},P21={name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},j21={name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},H21={name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},$21={name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},U21={name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction")','numeric(4, "Fraction")','numeric(fraction(2, 5), "number")'],seealso:["number","fraction","bignumber","string","format"]},V21={name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},q21={name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $1, $2, $3", [6, 9, 4])'],seealso:["format"]},Y21={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},W21={name:"solveODE",category:"Numeric",syntax:["solveODE(func, tspan, y0)","solveODE(func, tspan, y0, options)"],description:"Numerical Integration of Ordinary Differential Equations.",examples:["f(t,y) = y","tspan = [0, 4]","solveODE(f, tspan, 1)","solveODE(f, tspan, [1, 2])",'solveODE(f, tspan, 1, { method:"RK23", maxStep:0.1 })'],seealso:["derivative","simplifyCore"]},G21={bignumber:z11,boolean:P11,complex:j11,createUnit:H11,fraction:$11,index:U11,matrix:V11,number:q11,sparse:Y11,splitUnit:W11,string:G11,unit:K11,e:JN,E:JN,false:A11,i:D11,Infinity:C11,LN2:M11,LN10:_11,LOG2E:S11,LOG10E:E11,NaN:T11,null:I11,pi:XN,PI:XN,phi:O11,SQRT1_2:L11,SQRT2:B11,tau:R11,true:F11,version:k11,speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:X11,lsolve:te1,lsolveAll:ne1,lup:re1,lusolve:ae1,leafCount:ee1,polynomialRoot:ie1,resolve:le1,simplify:ue1,simplifyConstant:ce1,simplifyCore:fe1,symbolicEqual:de1,rationalize:se1,slu:pe1,usolve:me1,usolveAll:he1,qr:oe1,abs:ge1,add:ye1,cbrt:ve1,ceil:be1,cube:xe1,divide:we1,dotDivide:Ne1,dotMultiply:Ae1,dotPow:De1,exp:Ce1,expm:_e1,expm1:Me1,fix:Ee1,floor:Se1,gcd:Te1,hypot:Ie1,lcm:Le1,log:Be1,log2:ke1,log1p:Fe1,log10:Re1,mod:ze1,multiply:Pe1,norm:je1,nthRoot:He1,nthRoots:$e1,pow:Ue1,round:Ve1,sign:qe1,sqrt:Ye1,sqrtm:We1,square:Qe1,subtract:Je1,unaryMinus:Xe1,unaryPlus:et1,xgcd:tt1,invmod:Oe1,bitAnd:nt1,bitNot:rt1,bitOr:at1,bitXor:it1,leftShift:ot1,rightArithShift:st1,rightLogShift:lt1,bellNumbers:ut1,catalan:ct1,composition:ft1,stirlingS2:pt1,config:Z11,import:Q11,typed:J11,arg:dt1,conj:mt1,re:gt1,im:ht1,evaluate:yt1,help:vt1,distance:bt1,intersect:xt1,and:wt1,not:Nt1,or:At1,xor:Dt1,concat:_t1,count:Mt1,cross:Et1,column:Ct1,ctranspose:St1,det:Tt1,diag:It1,diff:Ot1,dot:Lt1,getMatrixDataType:zt1,identity:Pt1,filter:Rt1,flatten:Ft1,forEach:kt1,inv:jt1,pinv:Ht1,eigs:Bt1,kron:$t1,matrixFromFunction:qt1,matrixFromRows:Yt1,matrixFromColumns:Vt1,map:Ut1,ones:Wt1,partitionSelect:Gt1,range:Kt1,resize:Qt1,reshape:Zt1,rotate:Jt1,rotationMatrix:Xt1,row:en1,size:tn1,sort:nn1,squeeze:rn1,subset:an1,trace:in1,transpose:on1,zeros:sn1,fft:ln1,ifft:un1,sylvester:Ge1,schur:Ke1,lyap:Ze1,solveODE:W21,combinations:cn1,combinationsWithRep:fn1,factorial:pn1,gamma:dn1,kldivergence:hn1,lgamma:mn1,multinomial:gn1,permutations:yn1,pickRandom:vn1,random:bn1,randomInt:xn1,compare:wn1,compareNatural:Nn1,compareText:An1,deepEqual:Dn1,equal:Cn1,equalText:_n1,larger:Mn1,largerEq:En1,smaller:Sn1,smallerEq:Tn1,unequal:In1,setCartesian:On1,setDifference:Ln1,setDistinct:Bn1,setIntersect:Rn1,setIsSubset:Fn1,setMultiplicity:kn1,setPowerset:zn1,setSize:Pn1,setSymDifference:jn1,setUnion:Hn1,zpk2tf:$n1,freqz:Un1,erf:Vn1,zeta:qn1,cumsum:t21,mad:Yn1,max:Wn1,mean:Gn1,median:Kn1,min:Zn1,mode:Qn1,prod:Jn1,quantileSeq:Xn1,std:e21,sum:n21,variance:r21,corr:a21,acos:i21,acosh:o21,acot:s21,acoth:l21,acsc:u21,acsch:c21,asec:f21,asech:p21,asin:d21,asinh:m21,atan:h21,atanh:y21,atan2:g21,cos:v21,cosh:b21,cot:x21,coth:w21,csc:N21,csch:A21,sec:D21,sech:C21,sin:_21,sinh:M21,tan:E21,tanh:S21,to:T21,clone:O21,format:L21,bin:I21,oct:V21,hex:R21,isNaN:k21,isInteger:F21,isNegative:z21,isNumeric:P21,hasNumericValue:B21,isPositive:j21,isPrime:H21,isZero:$21,print:q21,typeOf:Y21,numeric:U21},eA="help",K21=["typed","mathWithTransform","Help"],Z21=s1(eA,K21,n=>{var{typed:a,mathWithTransform:s,Help:i}=n;return a(eA,{any:function(l){var u,f=l;if(typeof l!="string"){for(u in s)if(ye(s,u)&&l===s[u]){f=u;break}}var g=M2(G21,f);if(!g){var h=typeof f=="function"?f.name:f;throw new Error('No documentation found on "'+h+'"')}return new i(g)}})}),tA="chain",Q21=["typed","Chain"],J21=s1(tA,Q21,n=>{var{typed:a,Chain:s}=n;return a(tA,{"":function(){return new s},any:function(i){return new s(i)}})}),nA="det",X21=["typed","matrix","subtractScalar","multiply","divideScalar","isZero","unaryMinus"],er1=s1(nA,X21,n=>{var{typed:a,matrix:s,subtractScalar:i,multiply:l,divideScalar:u,isZero:f,unaryMinus:g}=n;return a(nA,{any:function(d){return De(d)},"Array | Matrix":function(d){var p;switch(M1(d)?p=d.size():Array.isArray(d)?(d=s(d),p=d.size()):p=[],p.length){case 0:return De(d);case 1:if(p[0]===1)return De(d.valueOf()[0]);if(p[0]===0)return 1;throw new RangeError("Matrix must be square (size: "+Ve(p)+")");case 2:{var m=p[0],y=p[1];if(m===y)return h(d.clone().valueOf(),m);if(y===0)return 1;throw new RangeError("Matrix must be square (size: "+Ve(p)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+Ve(p)+")")}}});function h(d,p,m){if(p===1)return De(d[0][0]);if(p===2)return i(l(d[0][0],d[1][1]),l(d[1][0],d[0][1]));for(var y=!1,x=new Array(p).fill(0).map((z,j)=>j),A=0;A<p;A++){var C=x[A];if(f(d[C][A])){var L=void 0;for(L=A+1;L<p;L++)if(!f(d[x[L]][A])){C=x[L],x[L]=x[A],x[A]=C,y=!y;break}if(L===p)return d[C][A]}for(var _=d[C][A],O=A===0?1:d[x[A-1]][A-1],D=A+1;D<p;D++)for(var I=x[D],E=A+1;E<p;E++)d[I][E]=u(i(l(d[I][E],_),l(d[I][A],d[C][E])),O)}var R=d[x[p-1]][p-1];return y?g(R):R}}),rA="inv",tr1=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],nr1=s1(rA,tr1,n=>{var{typed:a,matrix:s,divideScalar:i,addScalar:l,multiply:u,unaryMinus:f,det:g,identity:h,abs:d}=n;return a(rA,{"Array | Matrix":function(m){var y=M1(m)?m.size():Ze(m);switch(y.length){case 1:if(y[0]===1)return M1(m)?s([i(1,m.valueOf()[0])]):[i(1,m[0])];throw new RangeError("Matrix must be square (size: "+Ve(y)+")");case 2:{var x=y[0],A=y[1];if(x===A)return M1(m)?s(p(m.valueOf(),x,A),m.storage()):p(m,x,A);throw new RangeError("Matrix must be square (size: "+Ve(y)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+Ve(y)+")")}},any:function(m){return i(1,m)}});function p(m,y,x){var A,C,L,_,O;if(y===1){if(_=m[0][0],_===0)throw Error("Cannot calculate inverse, determinant is zero");return[[i(1,_)]]}else if(y===2){var D=g(m);if(D===0)throw Error("Cannot calculate inverse, determinant is zero");return[[i(m[1][1],D),i(f(m[0][1]),D)],[i(f(m[1][0]),D),i(m[0][0],D)]]}else{var I=m.concat();for(A=0;A<y;A++)I[A]=I[A].concat();for(var E=h(y).valueOf(),R=0;R<x;R++){var z=d(I[R][R]),j=R;for(A=R+1;A<y;)d(I[A][R])>z&&(z=d(I[A][R]),j=A),A++;if(z===0)throw Error("Cannot calculate inverse, determinant is zero");A=j,A!==R&&(O=I[R],I[R]=I[A],I[A]=O,O=E[R],E[R]=E[A],E[A]=O);var k=I[R],$=E[R];for(A=0;A<y;A++){var V=I[A],Z=E[A];if(A!==R){if(V[R]!==0){for(L=i(f(V[R]),k[R]),C=R;C<x;C++)V[C]=l(V[C],u(L,k[C]));for(C=0;C<x;C++)Z[C]=l(Z[C],u(L,$[C]))}}else{for(L=k[R],C=R;C<x;C++)V[C]=i(V[C],L);for(C=0;C<x;C++)Z[C]=i(Z[C],L)}}}return E}}}),aA="pinv",rr1=["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],ar1=s1(aA,rr1,n=>{var{typed:a,matrix:s,inv:i,deepEqual:l,equal:u,dotDivide:f,dot:g,ctranspose:h,divideScalar:d,multiply:p,add:m,Complex:y}=n;return a(aA,{"Array | Matrix":function(O){var D=M1(O)?O.size():Ze(O);switch(D.length){case 1:return _(O)?h(O):D[0]===1?i(O):f(h(O),g(O,O));case 2:{if(_(O))return h(O);var I=D[0],E=D[1];if(I===E)try{return i(O)}catch(R){if(!(R instanceof Error&&R.message.match(/Cannot calculate inverse, determinant is zero/)))throw R}return M1(O)?s(x(O.valueOf(),I,E),O.storage()):x(O,I,E)}default:throw new RangeError("Matrix must be two dimensional (size: "+Ve(D)+")")}},any:function(O){return u(O,0)?De(O):d(1,O)}});function x(O,D,I){var{C:E,F:R}=C(O,D,I),z=p(i(p(h(E),E)),h(E)),j=p(h(R),i(p(R,h(R))));return p(j,z)}function A(O,D,I){for(var E=De(O),R=0,z=0;z<D;z++){if(I<=R)return E;for(var j=z;L(E[j][R]);)if(j++,D===j&&(j=z,R++,I===R))return E;[E[j],E[z]]=[E[z],E[j]];for(var k=E[z][R],$=0;$<I;$++)E[z][$]=f(E[z][$],k);for(var V=0;V<D;V++)if(V!==z){k=E[V][R];for(var Z=0;Z<I;Z++)E[V][Z]=m(E[V][Z],p(-1,p(k,E[z][Z])))}R++}return E}function C(O,D,I){var E=A(O,D,I),R=O.map((j,k)=>j.filter(($,V)=>V<D&&!L(g(E[V],E[V])))),z=E.filter((j,k)=>!L(g(E[k],E[k])));return{C:R,F:z}}function L(O){return u(m(O,y(1,1)),m(0,y(1,1)))}function _(O){return l(m(O,y(1,1)),m(p(O,0),y(1,1)))}});function ir1(n){var{addScalar:a,subtract:s,flatten:i,multiply:l,multiplyScalar:u,divideScalar:f,sqrt:g,abs:h,bignumber:d,diag:p,size:m,reshape:y,inv:x,qr:A,usolve:C,usolveAll:L,equal:_,complex:O,larger:D,smaller:I,matrixFromColumns:E,dot:R}=n;function z(A1,f1,Q1,oe){var z1=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,q1=j(A1,f1,Q1,oe,z1);k(A1,f1,Q1,oe,z1,q1);var{values:le,C:$1}=$(A1,f1,Q1,oe,z1);if(z1){var te=V(A1,f1,$1,q1,le,Q1,oe);return{values:le,eigenvectors:te}}return{values:le}}function j(A1,f1,Q1,oe,z1){var q1=oe==="BigNumber",le=oe==="Complex",$1=q1?d(0):0,te=q1?d(1):le?O(1):1,ae=q1?d(1):1,fe=q1?d(10):2,Ee=u(fe,fe),ze;z1&&(ze=Array(f1).fill(te));for(var g1=!1;!g1;){g1=!0;for(var D1=0;D1<f1;D1++){for(var R1=$1,w1=$1,E1=0;E1<f1;E1++)D1!==E1&&(R1=a(R1,h(A1[E1][D1])),w1=a(w1,h(A1[D1][E1])));if(!_(R1,0)&&!_(w1,0)){for(var F1=ae,pe=R1,de=f(w1,fe),p1=u(w1,fe);I(pe,de);)pe=u(pe,Ee),F1=u(F1,fe);for(;D(pe,p1);)pe=f(pe,Ee),F1=f(F1,fe);var y1=I(f(a(pe,w1),F1),u(a(R1,w1),.95));if(y1){g1=!1;for(var B1=f(1,F1),Y1=0;Y1<f1;Y1++)D1!==Y1&&(A1[D1][Y1]=u(A1[D1][Y1],B1),A1[Y1][D1]=u(A1[Y1][D1],F1));z1&&(ze[D1]=u(ze[D1],B1))}}}}return z1?p(ze):null}function k(A1,f1,Q1,oe,z1,q1){var le=oe==="BigNumber",$1=oe==="Complex",te=le?d(0):$1?O(0):0;le&&(Q1=d(Q1));for(var ae=0;ae<f1-2;ae++){for(var fe=0,Ee=te,ze=ae+1;ze<f1;ze++){var g1=A1[ze][ae];I(h(Ee),h(g1))&&(Ee=g1,fe=ze)}if(!I(h(Ee),Q1)){if(fe!==ae+1){var D1=A1[fe];A1[fe]=A1[ae+1],A1[ae+1]=D1;for(var R1=0;R1<f1;R1++){var w1=A1[R1][fe];A1[R1][fe]=A1[R1][ae+1],A1[R1][ae+1]=w1}if(z1){var E1=q1[fe];q1[fe]=q1[ae+1],q1[ae+1]=E1}}for(var F1=ae+2;F1<f1;F1++){var pe=f(A1[F1][ae],Ee);if(pe!==0){for(var de=0;de<f1;de++)A1[F1][de]=s(A1[F1][de],u(pe,A1[ae+1][de]));for(var p1=0;p1<f1;p1++)A1[p1][ae+1]=a(A1[p1][ae+1],u(pe,A1[p1][F1]));if(z1)for(var y1=0;y1<f1;y1++)q1[F1][y1]=s(q1[F1][y1],u(pe,q1[ae+1][y1]))}}}}return q1}function $(A1,f1,Q1,oe,z1){var q1=oe==="BigNumber",le=oe==="Complex",$1=q1?d(1):le?O(1):1;q1&&(Q1=d(Q1));for(var te=De(A1),ae=[],fe=f1,Ee=[],ze=z1?p(Array(f1).fill($1)):void 0,g1=z1?p(Array(fe).fill($1)):void 0,D1=0;D1<=100;){D1+=1;for(var R1=te[fe-1][fe-1],w1=0;w1<fe;w1++)te[w1][w1]=s(te[w1][w1],R1);var{Q:E1,R:F1}=A(te);te=l(F1,E1);for(var pe=0;pe<fe;pe++)te[pe][pe]=a(te[pe][pe],R1);if(z1&&(g1=l(g1,E1)),fe===1||I(h(te[fe-1][fe-2]),Q1)){D1=0,ae.push(te[fe-1][fe-1]),z1&&(Ee.unshift([[1]]),d1(g1,f1),ze=l(ze,g1),fe>1&&(g1=p(Array(fe-1).fill($1)))),fe-=1,te.pop();for(var de=0;de<fe;de++)te[de].pop()}else if(fe===2||I(h(te[fe-2][fe-3]),Q1)){D1=0;var p1=Z(te[fe-2][fe-2],te[fe-2][fe-1],te[fe-1][fe-2],te[fe-1][fe-1]);ae.push(...p1),z1&&(Ee.unshift(a1(te[fe-2][fe-2],te[fe-2][fe-1],te[fe-1][fe-2],te[fe-1][fe-1],p1[0],p1[1],Q1,oe)),d1(g1,f1),ze=l(ze,g1),fe>2&&(g1=p(Array(fe-2).fill($1)))),fe-=2,te.pop(),te.pop();for(var y1=0;y1<fe;y1++)te[y1].pop(),te[y1].pop()}if(fe===0)break}if(ae.sort((ue,me)=>+s(h(ue),h(me))),D1>100){var B1=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+ae.join(", "));throw B1.values=ae,B1.vectors=[],B1}var Y1=z1?l(ze,n1(Ee,f1)):void 0;return{values:ae,C:Y1}}function V(A1,f1,Q1,oe,z1,q1,le){var $1=x(Q1),te=l($1,A1,Q1),ae=le==="BigNumber",fe=le==="Complex",Ee=ae?d(0):fe?O(0):0,ze=ae?d(1):fe?O(1):1,g1=[],D1=[];for(var R1 of z1){var w1=J(g1,R1,_);w1===-1?(g1.push(R1),D1.push(1)):D1[w1]+=1}for(var E1=[],F1=g1.length,pe=Array(f1).fill(Ee),de=p(Array(f1).fill(ze)),p1=function(){var B1=g1[y1],Y1=s(te,l(B1,de)),ue=L(Y1,pe);for(ue.shift();ue.length<D1[y1];){var me=W(Y1,f1,ue,q1,le);if(me===null)break;ue.push(me)}var Se=l(x(oe),Q1);ue=ue.map(xe=>l(Se,xe)),E1.push(...ue.map(xe=>({value:B1,vector:i(xe)})))},y1=0;y1<F1;y1++)p1();return E1}function Z(A1,f1,Q1,oe){var z1=a(A1,oe),q1=s(u(A1,oe),u(f1,Q1)),le=u(z1,.5),$1=u(g(s(u(z1,z1),u(4,q1))),.5);return[a(le,$1),s(le,$1)]}function a1(A1,f1,Q1,oe,z1,q1,le,$1){var te=$1==="BigNumber",ae=$1==="Complex",fe=te?d(0):ae?O(0):0,Ee=te?d(1):ae?O(1):1;if(I(h(Q1),le))return[[Ee,fe],[fe,Ee]];if(D(h(s(z1,q1)),le))return[[s(z1,oe),s(q1,oe)],[Q1,Q1]];var ze=s(A1,z1),g1=s(oe,z1);return I(h(f1),le)&&I(h(g1),le)?[[ze,Ee],[Q1,fe]]:[[f1,fe],[g1,Ee]]}function d1(A1,f1){for(var Q1=0;Q1<A1.length;Q1++)A1[Q1].push(...Array(f1-A1[Q1].length).fill(0));for(var oe=A1.length;oe<f1;oe++)A1.push(Array(f1).fill(0)),A1[oe][oe]=1;return A1}function n1(A1,f1){for(var Q1=[],oe=0;oe<f1;oe++)Q1[oe]=Array(f1).fill(0);var z1=0;for(var q1 of A1){for(var le=q1.length,$1=0;$1<le;$1++)for(var te=0;te<le;te++)Q1[z1+$1][z1+te]=q1[$1][te];z1+=le}return Q1}function J(A1,f1,Q1){for(var oe=0;oe<A1.length;oe++)if(Q1(A1[oe],f1))return oe;return-1}function W(A1,f1,Q1,oe,z1){for(var q1=z1==="BigNumber"?d(1e3):1e3,le,$1=0;$1<5;++$1){le=c1(f1,Q1,z1);try{le=C(A1,le)}catch{continue}if(D(L1(le),q1))break}if($1>=5)return null;for($1=0;;){var te=C(A1,le);if(I(L1(X(le,[te])),oe))break;if(++$1>=10)return null;le=Z1(te)}return le}function c1(A1,f1,Q1){var oe=Q1==="BigNumber",z1=Q1==="Complex",q1=Array(A1).fill(0).map(le=>2*Math.random()-1);return oe&&(q1=q1.map(le=>d(le))),z1&&(q1=q1.map(le=>O(le))),q1=X(q1,f1),Z1(q1,Q1)}function X(A1,f1){var Q1=m(A1);for(var oe of f1)oe=y(oe,Q1),A1=s(A1,l(f(R(oe,A1),R(oe,oe)),oe));return A1}function L1(A1){return h(g(R(A1,A1)))}function Z1(A1,f1){var Q1=f1==="BigNumber",oe=f1==="Complex",z1=Q1?d(1):oe?O(1):1;return l(f(z1,L1(A1)),A1)}return z}function or1(n){var{config:a,addScalar:s,subtract:i,abs:l,atan:u,cos:f,sin:g,multiplyScalar:h,inv:d,bignumber:p,multiply:m,add:y}=n;function x(k,$){var V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a.epsilon,Z=arguments.length>3?arguments[3]:void 0,a1=arguments.length>4?arguments[4]:void 0;if(Z==="number")return A(k,V,a1);if(Z==="BigNumber")return C(k,V,a1);throw TypeError("Unsupported data type: "+Z)}function A(k,$,V){var Z=k.length,a1=Math.abs($/Z),d1,n1;if(V){n1=new Array(Z);for(var J=0;J<Z;J++)n1[J]=Array(Z).fill(0),n1[J][J]=1}for(var W=R(k);Math.abs(W[1])>=Math.abs(a1);){var c1=W[0][0],X=W[0][1];d1=L(k[c1][c1],k[X][X],k[c1][X]),k=E(k,d1,c1,X),V&&(n1=O(n1,d1,c1,X)),W=R(k)}for(var L1=Array(Z).fill(0),Z1=0;Z1<Z;Z1++)L1[Z1]=k[Z1][Z1];return j(De(L1),n1,V)}function C(k,$,V){var Z=k.length,a1=l($/Z),d1,n1;if(V){n1=new Array(Z);for(var J=0;J<Z;J++)n1[J]=Array(Z).fill(0),n1[J][J]=1}for(var W=z(k);l(W[1])>=l(a1);){var c1=W[0][0],X=W[0][1];d1=_(k[c1][c1],k[X][X],k[c1][X]),k=I(k,d1,c1,X),V&&(n1=D(n1,d1,c1,X)),W=z(k)}for(var L1=Array(Z).fill(0),Z1=0;Z1<Z;Z1++)L1[Z1]=k[Z1][Z1];return j(De(L1),n1,V)}function L(k,$,V){var Z=$-k;return Math.abs(Z)<=a.epsilon?Math.PI/4:.5*Math.atan(2*V/($-k))}function _(k,$,V){var Z=i($,k);return l(Z)<=a.epsilon?p(-1).acos().div(4):h(.5,u(m(2,V,d(Z))))}function O(k,$,V,Z){for(var a1=k.length,d1=Math.cos($),n1=Math.sin($),J=Array(a1).fill(0),W=Array(a1).fill(0),c1=0;c1<a1;c1++)J[c1]=d1*k[c1][V]-n1*k[c1][Z],W[c1]=n1*k[c1][V]+d1*k[c1][Z];for(var X=0;X<a1;X++)k[X][V]=J[X],k[X][Z]=W[X];return k}function D(k,$,V,Z){for(var a1=k.length,d1=f($),n1=g($),J=Array(a1).fill(p(0)),W=Array(a1).fill(p(0)),c1=0;c1<a1;c1++)J[c1]=i(h(d1,k[c1][V]),h(n1,k[c1][Z])),W[c1]=s(h(n1,k[c1][V]),h(d1,k[c1][Z]));for(var X=0;X<a1;X++)k[X][V]=J[X],k[X][Z]=W[X];return k}function I(k,$,V,Z){for(var a1=k.length,d1=p(f($)),n1=p(g($)),J=h(d1,d1),W=h(n1,n1),c1=Array(a1).fill(p(0)),X=Array(a1).fill(p(0)),L1=m(p(2),d1,n1,k[V][Z]),Z1=s(i(h(J,k[V][V]),L1),h(W,k[Z][Z])),A1=y(h(W,k[V][V]),L1,h(J,k[Z][Z])),f1=0;f1<a1;f1++)c1[f1]=i(h(d1,k[V][f1]),h(n1,k[Z][f1])),X[f1]=s(h(n1,k[V][f1]),h(d1,k[Z][f1]));k[V][V]=Z1,k[Z][Z]=A1,k[V][Z]=p(0),k[Z][V]=p(0);for(var Q1=0;Q1<a1;Q1++)Q1!==V&&Q1!==Z&&(k[V][Q1]=c1[Q1],k[Q1][V]=c1[Q1],k[Z][Q1]=X[Q1],k[Q1][Z]=X[Q1]);return k}function E(k,$,V,Z){for(var a1=k.length,d1=Math.cos($),n1=Math.sin($),J=d1*d1,W=n1*n1,c1=Array(a1).fill(0),X=Array(a1).fill(0),L1=J*k[V][V]-2*d1*n1*k[V][Z]+W*k[Z][Z],Z1=W*k[V][V]+2*d1*n1*k[V][Z]+J*k[Z][Z],A1=0;A1<a1;A1++)c1[A1]=d1*k[V][A1]-n1*k[Z][A1],X[A1]=n1*k[V][A1]+d1*k[Z][A1];k[V][V]=L1,k[Z][Z]=Z1,k[V][Z]=0,k[Z][V]=0;for(var f1=0;f1<a1;f1++)f1!==V&&f1!==Z&&(k[V][f1]=c1[f1],k[f1][V]=c1[f1],k[Z][f1]=X[f1],k[f1][Z]=X[f1]);return k}function R(k){for(var $=k.length,V=0,Z=[0,1],a1=0;a1<$;a1++)for(var d1=a1+1;d1<$;d1++)Math.abs(V)<Math.abs(k[a1][d1])&&(V=Math.abs(k[a1][d1]),Z=[a1,d1]);return[Z,V]}function z(k){for(var $=k.length,V=0,Z=[0,1],a1=0;a1<$;a1++)for(var d1=a1+1;d1<$;d1++)l(V)<l(k[a1][d1])&&(V=l(k[a1][d1]),Z=[a1,d1]);return[Z,V]}function j(k,$,V){var Z=k.length,a1=Array(Z),d1;if(V){d1=Array(Z);for(var n1=0;n1<Z;n1++)d1[n1]=Array(Z)}for(var J=0;J<Z;J++){for(var W=0,c1=k[0],X=0;X<k.length;X++)l(k[X])<l(c1)&&(W=X,c1=k[W]);if(a1[J]=k.splice(W,1)[0],V)for(var L1=0;L1<Z;L1++)d1[J][L1]=$[L1][W],$[L1].splice(W,1)}if(!V)return{values:a1};var Z1=d1.map((A1,f1)=>({value:a1[f1],vector:A1}));return{values:a1,eigenvectors:Z1}}return x}var sr1="eigs",lr1=["config","typed","matrix","addScalar","equal","subtract","abs","atan","cos","sin","multiplyScalar","divideScalar","inv","bignumber","multiply","add","larger","column","flatten","number","complex","sqrt","diag","size","reshape","qr","usolve","usolveAll","im","re","smaller","matrixFromColumns","dot"],ur1=s1(sr1,lr1,n=>{var{config:a,typed:s,matrix:i,addScalar:l,subtract:u,equal:f,abs:g,atan:h,cos:d,sin:p,multiplyScalar:m,divideScalar:y,inv:x,bignumber:A,multiply:C,add:L,larger:_,column:O,flatten:D,number:I,complex:E,sqrt:R,diag:z,size:j,reshape:k,qr:$,usolve:V,usolveAll:Z,im:a1,re:d1,smaller:n1,matrixFromColumns:J,dot:W}=n,c1=or1({config:a,addScalar:l,subtract:u,column:O,flatten:D,equal:f,abs:g,atan:h,cos:d,sin:p,multiplyScalar:m,inv:x,bignumber:A,complex:E,multiply:C,add:L}),X=ir1({config:a,addScalar:l,subtract:u,multiply:C,multiplyScalar:m,flatten:D,divideScalar:y,sqrt:R,abs:g,bignumber:A,diag:z,size:j,reshape:k,qr:$,inv:x,usolve:V,usolveAll:Z,equal:f,complex:E,larger:_,smaller:n1,matrixFromColumns:J,dot:W});return s("eigs",{Array:function(z1){return L1(i(z1))},"Array, number|BigNumber":function(z1,q1){return L1(i(z1),{precision:q1})},"Array, Object"(z1,q1){return L1(i(z1),q1)},Matrix:function(z1){return L1(z1,{matricize:!0})},"Matrix, number|BigNumber":function(z1,q1){return L1(z1,{precision:q1,matricize:!0})},"Matrix, Object":function(z1,q1){var le={matricize:!0};return b1(le,q1),L1(z1,le)}});function L1(z1){var q1,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$1="eigenvectors"in le?le.eigenvectors:!0,te=(q1=le.precision)!==null&&q1!==void 0?q1:a.epsilon,ae=Z1(z1,te,$1);return le.matricize&&(ae.values=i(ae.values),$1&&(ae.eigenvectors=ae.eigenvectors.map(fe=>{var{value:Ee,vector:ze}=fe;return{value:Ee,vector:i(ze)}}))),$1&&Object.defineProperty(ae,"vectors",{enumerable:!1,get:()=>{throw new Error("eigs(M).vectors replaced with eigs(M).eigenvectors")}}),ae}function Z1(z1,q1,le){var $1=z1.toArray(),te=z1.size();if(te.length!==2||te[0]!==te[1])throw new RangeError("Matrix must be square (size: ".concat(Ve(te),")"));var ae=te[0];if(f1($1,ae,q1)&&(Q1($1,ae),A1($1,ae,q1))){var fe=oe(z1,$1,ae);return c1($1,ae,q1,fe,le)}var Ee=oe(z1,$1,ae);return X($1,ae,q1,Ee,le)}function A1(z1,q1,le){for(var $1=0;$1<q1;$1++)for(var te=$1;te<q1;te++)if(_(A(g(u(z1[$1][te],z1[te][$1]))),le))return!1;return!0}function f1(z1,q1,le){for(var $1=0;$1<q1;$1++)for(var te=0;te<q1;te++)if(_(A(g(a1(z1[$1][te]))),le))return!1;return!0}function Q1(z1,q1){for(var le=0;le<q1;le++)for(var $1=0;$1<q1;$1++)z1[le][$1]=d1(z1[le][$1])}function oe(z1,q1,le){var $1=z1.datatype();if($1==="number"||$1==="BigNumber"||$1==="Complex")return $1;for(var te=!1,ae=!1,fe=!1,Ee=0;Ee<le;Ee++)for(var ze=0;ze<le;ze++){var g1=q1[Ee][ze];if(h1(g1)||I1(g1))te=!0;else if(l1(g1))ae=!0;else if(i1(g1))fe=!0;else throw TypeError("Unsupported type in Matrix: "+ce(g1))}if(ae&&fe&&console.warn("Complex BigNumbers not supported, this operation will lose precission."),fe){for(var D1=0;D1<le;D1++)for(var R1=0;R1<le;R1++)q1[D1][R1]=E(q1[D1][R1]);return"Complex"}if(ae){for(var w1=0;w1<le;w1++)for(var E1=0;E1<le;E1++)q1[w1][E1]=A(q1[w1][E1]);return"BigNumber"}if(te){for(var F1=0;F1<le;F1++)for(var pe=0;pe<le;pe++)q1[F1][pe]=I(q1[F1][pe]);return"number"}else throw TypeError("Matrix contains unsupported types only.")}}),iA="expm",cr1=["typed","abs","add","identity","inv","multiply"],fr1=s1(iA,cr1,n=>{var{typed:a,abs:s,add:i,identity:l,inv:u,multiply:f}=n;return a(iA,{Matrix:function(p){var m=p.size();if(m.length!==2||m[0]!==m[1])throw new RangeError("Matrix must be square (size: "+Ve(m)+")");for(var y=m[0],x=1e-15,A=g(p),C=h(A,x),L=C.q,_=C.j,O=f(p,Math.pow(2,-_)),D=l(y),I=l(y),E=1,R=O,z=-1,j=1;j<=L;j++)j>1&&(R=f(R,O),z=-z),E=E*(L-j+1)/((2*L-j+1)*j),D=i(D,f(E,R)),I=i(I,f(E*z,R));for(var k=f(u(I),D),$=0;$<_;$++)k=f(k,k);return K1(p)?p.createSparseMatrix(k):k}});function g(p){for(var m=p.size()[0],y=0,x=0;x<m;x++){for(var A=0,C=0;C<m;C++)A+=s(p.get([x,C]));y=Math.max(A,y)}return y}function h(p,m){for(var y=30,x=0;x<y;x++)for(var A=0;A<=x;A++){var C=x-A;if(d(p,A,C)<m)return{q:A,j:C}}throw new Error("Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)")}function d(p,m,y){for(var x=1,A=2;A<=m;A++)x*=A;for(var C=x,L=m+1;L<=2*m;L++)C*=L;var _=C*(2*m+1);return 8*Math.pow(p/Math.pow(2,y),2*m)*x*x/(C*_)}}),oA="sqrtm",pr1=["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],dr1=s1(oA,pr1,n=>{var{typed:a,abs:s,add:i,multiply:l,map:u,sqrt:f,subtract:g,inv:h,size:d,max:p,identity:m}=n,y=1e3,x=1e-6;function A(C){var L,_=0,O=C,D=m(d(C));do{var I=O;if(O=l(.5,i(I,h(D))),D=l(.5,i(D,h(I))),L=p(s(g(O,I))),L>x&&++_>y)throw new Error("computing square root of matrix: iterative method could not converge")}while(L>x);return O}return a(oA,{"Array | Matrix":function(C){var L=M1(C)?C.size():Ze(C);switch(L.length){case 1:if(L[0]===1)return u(C,f);throw new RangeError("Matrix must be square (size: "+Ve(L)+")");case 2:{var _=L[0],O=L[1];if(_===O)return A(C);throw new RangeError("Matrix must be square (size: "+Ve(L)+")")}default:throw new RangeError("Matrix must be at most two dimensional (size: "+Ve(L)+")")}}})}),sA="sylvester",mr1=["typed","schur","matrixFromColumns","matrix","multiply","range","concat","transpose","index","subset","add","subtract","identity","lusolve","abs"],hr1=s1(sA,mr1,n=>{var{typed:a,schur:s,matrixFromColumns:i,matrix:l,multiply:u,range:f,concat:g,transpose:h,index:d,subset:p,add:m,subtract:y,identity:x,lusolve:A,abs:C}=n;return a(sA,{"Matrix, Matrix, Matrix":L,"Array, Matrix, Matrix":function(_,O,D){return L(l(_),O,D)},"Array, Array, Matrix":function(_,O,D){return L(l(_),l(O),D)},"Array, Matrix, Array":function(_,O,D){return L(l(_),O,l(D))},"Matrix, Array, Matrix":function(_,O,D){return L(_,l(O),D)},"Matrix, Array, Array":function(_,O,D){return L(_,l(O),l(D))},"Matrix, Matrix, Array":function(_,O,D){return L(_,O,l(D))},"Array, Array, Array":function(_,O,D){return L(l(_),l(O),l(D)).toArray()}});function L(_,O,D){for(var I=O.size()[0],E=_.size()[0],R=s(_),z=R.T,j=R.U,k=s(u(-1,O)),$=k.T,V=k.U,Z=u(u(h(j),D),V),a1=f(0,E),d1=[],n1=(fe,Ee)=>g(fe,Ee,1),J=(fe,Ee)=>g(fe,Ee,0),W=0;W<I;W++)if(W<I-1&&C(p($,d(W+1,W)))>1e-5){for(var c1=J(p(Z,d(a1,W)),p(Z,d(a1,W+1))),X=0;X<W;X++)c1=m(c1,J(u(d1[X],p($,d(X,W))),u(d1[X],p($,d(X,W+1)))));var L1=u(x(E),u(-1,p($,d(W,W)))),Z1=u(x(E),u(-1,p($,d(W+1,W)))),A1=u(x(E),u(-1,p($,d(W,W+1)))),f1=u(x(E),u(-1,p($,d(W+1,W+1)))),Q1=J(n1(m(z,L1),Z1),n1(A1,m(z,f1))),oe=A(Q1,c1);d1[W]=oe.subset(d(f(0,E),0)),d1[W+1]=oe.subset(d(f(E,2*E),0)),W++}else{for(var z1=p(Z,d(a1,W)),q1=0;q1<W;q1++)z1=m(z1,u(d1[q1],p($,d(q1,W))));var le=p($,d(W,W)),$1=y(z,u(le,x(E)));d1[W]=A($1,z1)}var te=l(i(...d1)),ae=u(j,u(te,h(V)));return ae}}),lA="schur",gr1=["typed","matrix","identity","multiply","qr","norm","subtract"],yr1=s1(lA,gr1,n=>{var{typed:a,matrix:s,identity:i,multiply:l,qr:u,norm:f,subtract:g}=n;return a(lA,{Array:function(d){var p=h(s(d));return{U:p.U.valueOf(),T:p.T.valueOf()}},Matrix:function(d){return h(d)}});function h(d){var p=d.size()[0],m=d,y=i(p),x=0,A;do{A=m;var C=u(m),L=C.Q,_=C.R;if(m=l(_,L),y=l(y,L),x++>100)break}while(f(g(m,A))>1e-4);return{U:y,T:m}}}),uA="lyap",vr1=["typed","matrix","sylvester","multiply","transpose"],br1=s1(uA,vr1,n=>{var{typed:a,matrix:s,sylvester:i,multiply:l,transpose:u}=n;return a(uA,{"Matrix, Matrix":function(f,g){return i(f,u(f),l(-1,g))},"Array, Matrix":function(f,g){return i(s(f),u(s(f)),l(-1,g))},"Matrix, Array":function(f,g){return i(f,u(s(f)),s(l(-1,g)))},"Array, Array":function(f,g){return i(s(f),u(s(f)),s(l(-1,g))).toArray()}})}),xr1="divide",wr1=["typed","matrix","multiply","equalScalar","divideScalar","inv"],Nr1=s1(xr1,wr1,n=>{var{typed:a,matrix:s,multiply:i,equalScalar:l,divideScalar:u,inv:f}=n,g=$e({typed:a,equalScalar:l}),h=Mr({typed:a});return a("divide",nn({"Array | Matrix, Array | Matrix":function(d,p){return i(d,f(p))},"DenseMatrix, any":function(d,p){return h(d,p,u,!1)},"SparseMatrix, any":function(d,p){return g(d,p,u,!1)},"Array, any":function(d,p){return h(s(d),p,u,!1).valueOf()},"any, Array | Matrix":function(d,p){return i(d,f(p))}},u.signatures))}),cA="distance",Ar1=["typed","addScalar","subtractScalar","divideScalar","multiplyScalar","deepEqual","sqrt","abs"],Dr1=s1(cA,Ar1,n=>{var{typed:a,addScalar:s,subtractScalar:i,multiplyScalar:l,divideScalar:u,deepEqual:f,sqrt:g,abs:h}=n;return a(cA,{"Array, Array, Array":function(I,E,R){if(I.length===2&&E.length===2&&R.length===2){if(!p(I))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!p(E))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!p(R))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(f(E,R))throw new TypeError("LinePoint1 should not be same with LinePoint2");var z=i(R[1],E[1]),j=i(E[0],R[0]),k=i(l(R[0],E[1]),l(E[0],R[1]));return L(I[0],I[1],z,j,k)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(I,E,R){if(Object.keys(I).length===2&&Object.keys(E).length===2&&Object.keys(R).length===2){if(!p(I))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!p(E))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!p(R))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if(f(A(E),A(R)))throw new TypeError("LinePoint1 should not be same with LinePoint2");if("pointX"in I&&"pointY"in I&&"lineOnePtX"in E&&"lineOnePtY"in E&&"lineTwoPtX"in R&&"lineTwoPtY"in R){var z=i(R.lineTwoPtY,E.lineOnePtY),j=i(E.lineOnePtX,R.lineTwoPtX),k=i(l(R.lineTwoPtX,E.lineOnePtY),l(E.lineOnePtX,R.lineTwoPtY));return L(I.pointX,I.pointY,z,j,k)}else throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(I,E){if(I.length===2&&E.length===3){if(!p(I))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!m(E))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return L(I[0],I[1],E[0],E[1],E[2])}else if(I.length===3&&E.length===6){if(!m(I))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!x(E))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return _(I[0],I[1],I[2],E[0],E[1],E[2],E[3],E[4],E[5])}else if(I.length===E.length&&I.length>0){if(!y(I))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!y(E))throw new TypeError("All values of an array should be numbers or BigNumbers");return O(I,E)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(I,E){if(Object.keys(I).length===2&&Object.keys(E).length===3){if(!p(I))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!m(E))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in I&&"pointY"in I&&"xCoeffLine"in E&&"yCoeffLine"in E&&"constant"in E)return L(I.pointX,I.pointY,E.xCoeffLine,E.yCoeffLine,E.constant);throw new TypeError("Key names do not match")}else if(Object.keys(I).length===3&&Object.keys(E).length===6){if(!m(I))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!x(E))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in I&&"pointY"in I&&"x0"in E&&"y0"in E&&"z0"in E&&"a"in E&&"b"in E&&"c"in E)return _(I.pointX,I.pointY,I.pointZ,E.x0,E.y0,E.z0,E.a,E.b,E.c);throw new TypeError("Key names do not match")}else if(Object.keys(I).length===2&&Object.keys(E).length===2){if(!p(I))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!p(E))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in I&&"pointOneY"in I&&"pointTwoX"in E&&"pointTwoY"in E)return O([I.pointOneX,I.pointOneY],[E.pointTwoX,E.pointTwoY]);throw new TypeError("Key names do not match")}else if(Object.keys(I).length===3&&Object.keys(E).length===3){if(!m(I))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!m(E))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in I&&"pointOneY"in I&&"pointOneZ"in I&&"pointTwoX"in E&&"pointTwoY"in E&&"pointTwoZ"in E)return O([I.pointOneX,I.pointOneY,I.pointOneZ],[E.pointTwoX,E.pointTwoY,E.pointTwoZ]);throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},Array:function(I){if(!C(I))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return D(I)}});function d(I){return typeof I=="number"||l1(I)}function p(I){return I.constructor!==Array&&(I=A(I)),d(I[0])&&d(I[1])}function m(I){return I.constructor!==Array&&(I=A(I)),d(I[0])&&d(I[1])&&d(I[2])}function y(I){return Array.isArray(I)||(I=A(I)),I.every(d)}function x(I){return I.constructor!==Array&&(I=A(I)),d(I[0])&&d(I[1])&&d(I[2])&&d(I[3])&&d(I[4])&&d(I[5])}function A(I){for(var E=Object.keys(I),R=[],z=0;z<E.length;z++)R.push(I[E[z]]);return R}function C(I){if(I[0].length===2&&d(I[0][0])&&d(I[0][1])){if(I.some(E=>E.length!==2||!d(E[0])||!d(E[1])))return!1}else if(I[0].length===3&&d(I[0][0])&&d(I[0][1])&&d(I[0][2])){if(I.some(E=>E.length!==3||!d(E[0])||!d(E[1])||!d(E[2])))return!1}else return!1;return!0}function L(I,E,R,z,j){var k=h(s(s(l(R,I),l(z,E)),j)),$=g(s(l(R,R),l(z,z)));return u(k,$)}function _(I,E,R,z,j,k,$,V,Z){var a1=[i(l(i(j,E),Z),l(i(k,R),V)),i(l(i(k,R),$),l(i(z,I),Z)),i(l(i(z,I),V),l(i(j,E),$))];a1=g(s(s(l(a1[0],a1[0]),l(a1[1],a1[1])),l(a1[2],a1[2])));var d1=g(s(s(l($,$),l(V,V)),l(Z,Z)));return u(a1,d1)}function O(I,E){for(var R=I.length,z=0,j=0,k=0;k<R;k++)j=i(I[k],E[k]),z=s(l(j,j),z);return g(z)}function D(I){for(var E=[],R=[],z=[],j=0;j<I.length-1;j++)for(var k=j+1;k<I.length;k++)I[0].length===2?(R=[I[j][0],I[j][1]],z=[I[k][0],I[k][1]]):I[0].length===3&&(R=[I[j][0],I[j][1],I[j][2]],z=[I[k][0],I[k][1],I[k][2]]),E.push(O(R,z));return E}}),Cr1="intersect",_r1=["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten","isZero","isNumeric"],Mr1=s1(Cr1,_r1,n=>{var{typed:a,config:s,abs:i,add:l,addScalar:u,matrix:f,multiply:g,multiplyScalar:h,divideScalar:d,subtract:p,smaller:m,equalScalar:y,flatten:x,isZero:A,isNumeric:C}=n;return a("intersect",{"Array, Array, Array":L,"Array, Array, Array, Array":_,"Matrix, Matrix, Matrix":function($,V,Z){var a1=L($.valueOf(),V.valueOf(),Z.valueOf());return a1===null?null:f(a1)},"Matrix, Matrix, Matrix, Matrix":function($,V,Z,a1){var d1=_($.valueOf(),V.valueOf(),Z.valueOf(),a1.valueOf());return d1===null?null:f(d1)}});function L($,V,Z){if($=O($),V=O(V),Z=O(Z),!I($))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!I(V))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!E(Z))throw new TypeError("Array with 4 numbers expected as third argument");return k($[0],$[1],$[2],V[0],V[1],V[2],Z[0],Z[1],Z[2],Z[3])}function _($,V,Z,a1){if($=O($),V=O(V),Z=O(Z),a1=O(a1),$.length===2){if(!D($))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!D(V))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!D(Z))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!D(a1))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return R($,V,Z,a1)}else if($.length===3){if(!I($))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!I(V))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!I(Z))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!I(a1))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return j($[0],$[1],$[2],V[0],V[1],V[2],Z[0],Z[1],Z[2],a1[0],a1[1],a1[2])}else throw new TypeError("Arrays with two or thee dimensional points expected")}function O($){return $.length===1?$[0]:$.length>1&&Array.isArray($[0])&&$.every(V=>Array.isArray(V)&&V.length===1)?x($):$}function D($){return $.length===2&&C($[0])&&C($[1])}function I($){return $.length===3&&C($[0])&&C($[1])&&C($[2])}function E($){return $.length===4&&C($[0])&&C($[1])&&C($[2])&&C($[3])}function R($,V,Z,a1){var d1=$,n1=Z,J=p(d1,V),W=p(n1,a1),c1=p(h(J[0],W[1]),h(W[0],J[1]));if(A(c1)||m(i(c1),s.epsilon))return null;var X=h(W[0],d1[1]),L1=h(W[1],d1[0]),Z1=h(W[0],n1[1]),A1=h(W[1],n1[0]),f1=d(u(p(p(X,L1),Z1),A1),c1);return l(g(J,f1),d1)}function z($,V,Z,a1,d1,n1,J,W,c1,X,L1,Z1){var A1=h(p($,V),p(Z,a1)),f1=h(p(d1,n1),p(J,W)),Q1=h(p(c1,X),p(L1,Z1));return u(u(A1,f1),Q1)}function j($,V,Z,a1,d1,n1,J,W,c1,X,L1,Z1){var A1=z($,J,X,J,V,W,L1,W,Z,c1,Z1,c1),f1=z(X,J,a1,$,L1,W,d1,V,Z1,c1,n1,Z),Q1=z($,J,a1,$,V,W,d1,V,Z,c1,n1,Z),oe=z(X,J,X,J,L1,W,L1,W,Z1,c1,Z1,c1),z1=z(a1,$,a1,$,d1,V,d1,V,n1,Z,n1,Z),q1=p(h(A1,f1),h(Q1,oe)),le=p(h(z1,oe),h(f1,f1));if(A(le))return null;var $1=d(q1,le),te=d(u(A1,h($1,f1)),oe),ae=u($,h($1,p(a1,$))),fe=u(V,h($1,p(d1,V))),Ee=u(Z,h($1,p(n1,Z))),ze=u(J,h(te,p(X,J))),g1=u(W,h(te,p(L1,W))),D1=u(c1,h(te,p(Z1,c1)));return y(ae,ze)&&y(fe,g1)&&y(Ee,D1)?[ae,fe,Ee]:null}function k($,V,Z,a1,d1,n1,J,W,c1,X){var L1=h($,J),Z1=h(a1,J),A1=h(V,W),f1=h(d1,W),Q1=h(Z,c1),oe=h(n1,c1),z1=p(p(p(X,L1),A1),Q1),q1=p(p(p(u(u(Z1,f1),oe),L1),A1),Q1),le=d(z1,q1),$1=u($,h(le,p(a1,$))),te=u(V,h(le,p(d1,V))),ae=u(Z,h(le,p(n1,Z)));return[$1,te,ae]}}),fA="sum",Er1=["typed","config","add","numeric"],pA=s1(fA,Er1,n=>{var{typed:a,config:s,add:i,numeric:l}=n;return a(fA,{"Array | Matrix":u,"Array | Matrix, number | BigNumber":f,"...":function(g){if(ua(g))throw new TypeError("Scalar values expected in function sum");return u(g)}});function u(g){var h;return N3(g,function(d){try{h=h===void 0?d:i(h,d)}catch(p){throw B2(p,"sum",d)}}),h===void 0&&(h=l(0,s.number)),typeof h=="string"&&(h=l(h,s.number)),h}function f(g,h){try{var d=Mi(g,h,i);return d}catch(p){throw B2(p,"sum")}}}),fl="cumsum",Sr1=["typed","add","unaryPlus"],dA=s1(fl,Sr1,n=>{var{typed:a,add:s,unaryPlus:i}=n;return a(fl,{Array:l,Matrix:function(h){return h.create(l(h.valueOf()))},"Array, number | BigNumber":f,"Matrix, number | BigNumber":function(h,d){return h.create(f(h.valueOf(),d))},"...":function(h){if(ua(h))throw new TypeError("All values expected to be scalar in function cumsum");return l(h)}});function l(h){try{return u(h)}catch(d){throw B2(d,fl)}}function u(h){if(h.length===0)return[];for(var d=[i(h[0])],p=1;p<h.length;++p)d.push(s(d[p-1],h[p]));return d}function f(h,d){var p=Ze(h);if(d<0||d>=p.length)throw new H2(d,p.length);try{return g(h,d)}catch(m){throw B2(m,fl)}}function g(h,d){var p,m,y;if(d<=0){var x=h[0][0];if(Array.isArray(x)){for(y=K8(h),m=[],p=0;p<y.length;p++)m[p]=g(y[p],d-1);return m}else return u(h)}else{for(m=[],p=0;p<h.length;p++)m[p]=g(h[p],d-1);return m}}}),mA="mean",Tr1=["typed","add","divide"],hA=s1(mA,Tr1,n=>{var{typed:a,add:s,divide:i}=n;return a(mA,{"Array | Matrix":u,"Array | Matrix, number | BigNumber":l,"...":function(f){if(ua(f))throw new TypeError("Scalar values expected in function mean");return u(f)}});function l(f,g){try{var h=Mi(f,g,s),d=Array.isArray(f)?Ze(f):f.size();return i(h,d[g])}catch(p){throw B2(p,"mean")}}function u(f){var g,h=0;if(N3(f,function(d){try{g=g===void 0?d:s(g,d),h++}catch(p){throw B2(p,"mean",d)}}),h===0)throw new Error("Cannot calculate the mean of an empty array");return i(g,h)}}),gA="median",Ir1=["typed","add","divide","compare","partitionSelect"],Or1=s1(gA,Ir1,n=>{var{typed:a,add:s,divide:i,compare:l,partitionSelect:u}=n;function f(d){try{d=Ft(d.valueOf());var p=d.length;if(p===0)throw new Error("Cannot calculate median of an empty array");if(p%2===0){for(var m=p/2-1,y=u(d,m+1),x=d[m],A=0;A<m;++A)l(d[A],x)>0&&(x=d[A]);return h(x,y)}else{var C=u(d,(p-1)/2);return g(C)}}catch(L){throw B2(L,"median")}}var g=a({"number | BigNumber | Complex | Unit":function(d){return d}}),h=a({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(d,p){return i(s(d,p),2)}});return a(gA,{"Array | Matrix":f,"Array | Matrix, number | BigNumber":function(d,p){throw new Error("median(A, dim) is not yet supported")},"...":function(d){if(ua(d))throw new TypeError("Scalar values expected in function median");return f(d)}})}),yA="mad",Lr1=["typed","abs","map","median","subtract"],Br1=s1(yA,Lr1,n=>{var{typed:a,abs:s,map:i,median:l,subtract:u}=n;return a(yA,{"Array | Matrix":f,"...":function(g){return f(g)}});function f(g){if(g=Ft(g.valueOf()),g.length===0)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var h=l(g);return l(i(g,function(d){return s(u(d,h))}))}catch(d){throw d instanceof TypeError&&d.message.indexOf("median")!==-1?new TypeError(d.message.replace("median","mad")):B2(d,"mad")}}}),im="unbiased",vA="variance",Rr1=["typed","add","subtract","multiply","divide","apply","isNaN"],bA=s1(vA,Rr1,n=>{var{typed:a,add:s,subtract:i,multiply:l,divide:u,apply:f,isNaN:g}=n;return a(vA,{"Array | Matrix":function(p){return h(p,im)},"Array | Matrix, string":h,"Array | Matrix, number | BigNumber":function(p,m){return d(p,m,im)},"Array | Matrix, number | BigNumber, string":d,"...":function(p){return h(p,im)}});function h(p,m){var y,x=0;if(p.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(N3(p,function(L){try{y=y===void 0?L:s(y,L),x++}catch(_){throw B2(_,"variance",L)}}),x===0)throw new Error("Cannot calculate variance of an empty array");var A=u(y,x);if(y=void 0,N3(p,function(L){var _=i(L,A);y=y===void 0?l(_,_):s(y,l(_,_))}),g(y))return y;switch(m){case"uncorrected":return u(y,x);case"biased":return u(y,x+1);case"unbiased":{var C=l1(y)?y.mul(0):0;return x===1?C:u(y,x-1)}default:throw new Error('Unknown normalization "'+m+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function d(p,m,y){try{if(p.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return f(p,m,x=>h(x,y))}catch(x){throw B2(x,"variance")}}}),xA="quantileSeq",Fr1=["typed","?bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],wA=s1(xA,Fr1,n=>{var{typed:a,bignumber:s,add:i,subtract:l,divide:u,multiply:f,partitionSelect:g,compare:h,isInteger:d,smaller:p,smallerEq:m,larger:y}=n,x=Qi({typed:a,isInteger:d});return a(xA,{"Array | Matrix, number | BigNumber":(O,D)=>C(O,D,!1),"Array | Matrix, number | BigNumber, number":(O,D,I)=>A(O,D,!1,I,C),"Array | Matrix, number | BigNumber, boolean":C,"Array | Matrix, number | BigNumber, boolean, number":(O,D,I,E)=>A(O,D,I,E,C),"Array | Matrix, Array | Matrix":(O,D)=>L(O,D,!1),"Array | Matrix, Array | Matrix, number":(O,D,I)=>A(O,D,!1,I,L),"Array | Matrix, Array | Matrix, boolean":L,"Array | Matrix, Array | Matrix, boolean, number":(O,D,I,E)=>A(O,D,I,E,L)});function A(O,D,I,E,R){return x(O,E,z=>R(z,D,I))}function C(O,D,I){var E,R=O.valueOf();if(p(D,0))throw new Error("N/prob must be non-negative");if(m(D,1))return h1(D)?_(R,D,I):s(_(R,D,I));if(y(D,1)){if(!d(D))throw new Error("N must be a positive integer");if(y(D,4294967295))throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var z=i(D,1);E=[];for(var j=0;p(j,D);j++){var k=u(j+1,z);E.push(_(R,k,I))}return h1(D)?E:s(E)}}function L(O,D,I){for(var E=O.valueOf(),R=D.valueOf(),z=[],j=0;j<R.length;++j)z.push(_(E,R[j],I));return z}function _(O,D,I){var E=Ft(O),R=E.length;if(R===0)throw new Error("Cannot calculate quantile of an empty sequence");var z=h1(D)?D*(R-1):D.times(R-1),j=h1(D)?Math.floor(z):z.floor().toNumber(),k=h1(D)?z%1:z.minus(j);if(d(z))return I?E[z]:g(E,h1(D)?z:z.valueOf());var $,V;if(I)$=E[j],V=E[j+1];else{V=g(E,j+1),$=E[j];for(var Z=0;Z<j;++Z)h(E[Z],$)>0&&($=E[Z])}return i(f($,l(1,k)),f(V,k))}}),NA="std",kr1=["typed","map","sqrt","variance"],AA=s1(NA,kr1,n=>{var{typed:a,map:s,sqrt:i,variance:l}=n;return a(NA,{"Array | Matrix":u,"Array | Matrix, string":u,"Array | Matrix, number | BigNumber":u,"Array | Matrix, number | BigNumber, string":u,"...":function(f){return u(f)}});function u(f,g){if(f.length===0)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var h=l.apply(null,arguments);return _1(h)?s(h,i):i(h)}catch(d){throw d instanceof TypeError&&d.message.indexOf(" variance")!==-1?new TypeError(d.message.replace(" variance"," std")):d}}}),DA="corr",zr1=["typed","matrix","mean","sqrt","sum","add","subtract","multiply","pow","divide"],Pr1=s1(DA,zr1,n=>{var{typed:a,matrix:s,sqrt:i,sum:l,add:u,subtract:f,multiply:g,pow:h,divide:d}=n;return a(DA,{"Array, Array":function(y,x){return p(y,x)},"Matrix, Matrix":function(y,x){var A=p(y.toArray(),x.toArray());return Array.isArray(A)?s(A):A}});function p(y,x){var A=[];if(Array.isArray(y[0])&&Array.isArray(x[0])){if(y.length!==x.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same length.");for(var C=0;C<y.length;C++){if(y[C].length!==x[C].length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");A.push(m(y[C],x[C]))}return A}else{if(y.length!==x.length)throw new SyntaxError("Dimension mismatch. Array A and B must have the same number of elements.");return m(y,x)}}function m(y,x){var A=y.length,C=l(y),L=l(x),_=y.reduce((R,z,j)=>u(R,g(z,x[j])),0),O=l(y.map(R=>h(R,2))),D=l(x.map(R=>h(R,2))),I=f(g(A,_),g(C,L)),E=i(g(f(g(A,O),h(C,2)),f(g(A,D),h(L,2))));return d(I,E)}}),CA="combinations",jr1=["typed"],Hr1=s1(CA,jr1,n=>{var{typed:a}=n;return a(CA,{"number, number":m9,"BigNumber, BigNumber":function(s,i){var l=s.constructor,u,f,g=s.minus(i),h=new l(1);if(!_A(s)||!_A(i))throw new TypeError("Positive integer value expected in function combinations");if(i.gt(s))throw new TypeError("k must be less than n in function combinations");if(u=h,i.lt(g))for(f=h;f.lte(g);f=f.plus(h))u=u.times(i.plus(f)).dividedBy(f);else for(f=h;f.lte(i);f=f.plus(h))u=u.times(g.plus(f)).dividedBy(f);return u}})});function _A(n){return n.isInteger()&&n.gte(0)}var MA="combinationsWithRep",$r1=["typed"],Ur1=s1(MA,$r1,n=>{var{typed:a}=n;return a(MA,{"number, number":function(s,i){if(!ke(s)||s<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!ke(i)||i<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(s<1)throw new TypeError("k must be less than or equal to n + k - 1");if(i<s-1){var l=n3(s,s+i-1);return l/n3(1,i)}var u=n3(i+1,s+i-1);return u/n3(1,s-1)},"BigNumber, BigNumber":function(s,i){var l=s.constructor,u,f,g=new l(1),h=s.minus(g);if(!EA(s)||!EA(i))throw new TypeError("Positive integer value expected in function combinationsWithRep");if(s.lt(g))throw new TypeError("k must be less than or equal to n + k - 1 in function combinationsWithRep");if(u=g,i.lt(h))for(f=g;f.lte(h);f=f.plus(g))u=u.times(i.plus(f)).dividedBy(f);else for(f=g;f.lte(i);f=f.plus(g))u=u.times(h.plus(f)).dividedBy(f);return u}})});function EA(n){return n.isInteger()&&n.gte(0)}var SA="gamma",Vr1=["typed","config","multiplyScalar","pow","BigNumber","Complex"],qr1=s1(SA,Vr1,n=>{var{typed:a,config:s,multiplyScalar:i,pow:l,BigNumber:u,Complex:f}=n;function g(d){if(d.im===0)return rr(d.re);if(d.re<.5){var p=new f(1-d.re,-d.im),m=new f(Math.PI*d.re,Math.PI*d.im);return new f(Math.PI).div(m.sin()).div(g(p))}d=new f(d.re-1,d.im);for(var y=new f(A3[0],0),x=1;x<A3.length;++x){var A=new f(A3[x],0);y=y.add(A.div(d.add(x)))}var C=new f(d.re+Bi+.5,d.im),L=Math.sqrt(2*Math.PI),_=C.pow(d.add(.5)),O=C.neg().exp();return y.mul(L).mul(_).mul(O)}return a(SA,{number:rr,Complex:g,BigNumber:function(d){if(d.isInteger())return d.isNegative()||d.isZero()?new u(1/0):h(d.minus(1));if(!d.isFinite())return new u(d.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")}});function h(d){if(d<8)return new u([1,1,2,6,24,120,720,5040][d]);var p=s.precision+(Math.log(d.toNumber())|0),m=u.clone({precision:p});if(d%2===1)return d.times(h(new u(d-1)));for(var y=d,x=new m(d),A=d.toNumber();y>2;)y-=2,A+=y,x=x.times(A);return new u(x.toPrecision(u.precision))}}),TA="lgamma",Yr1=["Complex","typed"],Wr1=s1(TA,Yr1,n=>{var{Complex:a,typed:s}=n,i=7,l=7,u=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return s(TA,{number:Fi,Complex:f,BigNumber:function(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function f(d){var p=6.283185307179586,m=1.1447298858494002,y=.1;if(d.isNaN())return new a(NaN,NaN);if(d.im===0)return new a(Fi(d.re),0);if(d.re>=i||Math.abs(d.im)>=l)return g(d);if(d.re<=y){var x=P1(p,d.im)*Math.floor(.5*d.re+.25),A=d.mul(Math.PI).sin().log(),C=f(new a(1-d.re,-d.im));return new a(m,x).sub(A).sub(C)}else return d.im>=0?h(d):h(d.conjugate()).conjugate()}function g(d){for(var p=d.sub(.5).mul(d.log()).sub(d).add(t0),m=new a(1,0).div(d),y=m.div(d),x=u[0],A=u[1],C=2*y.re,L=y.re*y.re+y.im*y.im,_=2;_<8;_++){var O=A;A=-L*x+u[_],x=C*x+O}var D=m.mul(y.mul(x).add(A));return p.add(D)}function h(d){var p=0,m=0,y=d;for(d=d.add(1);d.re<=i;){y=y.mul(d);var x=y.im<0?1:0;x!==0&&m===0&&p++,m=x,d=d.add(1)}return g(d).sub(y.log()).sub(new a(0,p*2*Math.PI*1))}}),IA="factorial",Gr1=["typed","gamma"],Kr1=s1(IA,Gr1,n=>{var{typed:a,gamma:s}=n;return a(IA,{number:function(i){if(i<0)throw new Error("Value must be non-negative");return s(i+1)},BigNumber:function(i){if(i.isNegative())throw new Error("Value must be non-negative");return s(i.plus(1))},"Array | Matrix":a.referToSelf(i=>l=>wt(l,i))})}),OA="kldivergence",Zr1=["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],Qr1=s1(OA,Zr1,n=>{var{typed:a,matrix:s,divide:i,sum:l,multiply:u,map:f,dotDivide:g,log:h,isNumeric:d}=n;return a(OA,{"Array, Array":function(m,y){return p(s(m),s(y))},"Matrix, Array":function(m,y){return p(m,s(y))},"Array, Matrix":function(m,y){return p(s(m),y)},"Matrix, Matrix":function(m,y){return p(m,y)}});function p(m,y){var x=y.size().length,A=m.size().length;if(x>1)throw new Error("first object must be one dimensional");if(A>1)throw new Error("second object must be one dimensional");if(x!==A)throw new Error("Length of two vectors must be equal");var C=l(m);if(C===0)throw new Error("Sum of elements in first object must be non zero");var L=l(y);if(L===0)throw new Error("Sum of elements in second object must be non zero");var _=i(m,l(m)),O=i(y,l(y)),D=l(u(_,f(g(_,O),I=>h(I))));return d(D)?D:Number.NaN}}),LA="multinomial",Jr1=["typed","add","divide","multiply","factorial","isInteger","isPositive"],Xr1=s1(LA,Jr1,n=>{var{typed:a,add:s,divide:i,multiply:l,factorial:u,isInteger:f,isPositive:g}=n;return a(LA,{"Array | Matrix":function(h){var d=0,p=1;return N3(h,function(m){if(!f(m)||!g(m))throw new TypeError("Positive integer value expected in function multinomial");d=s(d,m),p=l(p,u(m))}),i(u(d),p)}})}),BA="permutations",e31=["typed","factorial"],t31=s1(BA,e31,n=>{var{typed:a,factorial:s}=n;return a(BA,{"number | BigNumber":s,"number, number":function(i,l){if(!ke(i)||i<0)throw new TypeError("Positive integer value expected in function permutations");if(!ke(l)||l<0)throw new TypeError("Positive integer value expected in function permutations");if(l>i)throw new TypeError("second argument k must be less than or equal to first argument n");return n3(i-l+1,i)},"BigNumber, BigNumber":function(i,l){var u,f;if(!RA(i)||!RA(l))throw new TypeError("Positive integer value expected in function permutations");if(l.gt(i))throw new TypeError("second argument k must be less than or equal to first argument n");var g=i.mul(0).add(1);for(u=g,f=i.minus(l).plus(1);f.lte(i);f=f.plus(1))u=u.times(f);return u}})});function RA(n){return n.isInteger()&&n.gte(0)}var FA={exports:{}};(function(n){(function(a,s,i){function l(h){var d=this,p=g();d.next=function(){var m=2091639*d.s0+d.c*23283064365386963e-26;return d.s0=d.s1,d.s1=d.s2,d.s2=m-(d.c=m|0)},d.c=1,d.s0=p(" "),d.s1=p(" "),d.s2=p(" "),d.s0-=p(h),d.s0<0&&(d.s0+=1),d.s1-=p(h),d.s1<0&&(d.s1+=1),d.s2-=p(h),d.s2<0&&(d.s2+=1),p=null}function u(h,d){return d.c=h.c,d.s0=h.s0,d.s1=h.s1,d.s2=h.s2,d}function f(h,d){var p=new l(h),m=d&&d.state,y=p.next;return y.int32=function(){return p.next()*4294967296|0},y.double=function(){return y()+(y()*2097152|0)*11102230246251565e-32},y.quick=y,m&&(typeof m=="object"&&u(m,p),y.state=function(){return u(p,{})}),y}function g(){var h=4022871197,d=function(p){p=String(p);for(var m=0;m<p.length;m++){h+=p.charCodeAt(m);var y=.02519603282416938*h;h=y>>>0,y-=h,y*=h,h=y>>>0,y-=h,h+=y*4294967296}return(h>>>0)*23283064365386963e-26};return d}s&&s.exports?s.exports=f:i&&i.amd?i(function(){return f}):this.alea=f})(Fn,n,!1)})(FA);var n31=FA.exports,kA={exports:{}};(function(n){(function(a,s,i){function l(g){var h=this,d="";h.x=0,h.y=0,h.z=0,h.w=0,h.next=function(){var m=h.x^h.x<<11;return h.x=h.y,h.y=h.z,h.z=h.w,h.w^=h.w>>>19^m^m>>>8},g===(g|0)?h.x=g:d+=g;for(var p=0;p<d.length+64;p++)h.x^=d.charCodeAt(p)|0,h.next()}function u(g,h){return h.x=g.x,h.y=g.y,h.z=g.z,h.w=g.w,h}function f(g,h){var d=new l(g),p=h&&h.state,m=function(){return(d.next()>>>0)/4294967296};return m.double=function(){do var y=d.next()>>>11,x=(d.next()>>>0)/4294967296,A=(y+x)/(1<<21);while(A===0);return A},m.int32=d.next,m.quick=m,p&&(typeof p=="object"&&u(p,d),m.state=function(){return u(d,{})}),m}s&&s.exports?s.exports=f:i&&i.amd?i(function(){return f}):this.xor128=f})(Fn,n,!1)})(kA);var r31=kA.exports,zA={exports:{}};(function(n){(function(a,s,i){function l(g){var h=this,d="";h.next=function(){var m=h.x^h.x>>>2;return h.x=h.y,h.y=h.z,h.z=h.w,h.w=h.v,(h.d=h.d+362437|0)+(h.v=h.v^h.v<<4^(m^m<<1))|0},h.x=0,h.y=0,h.z=0,h.w=0,h.v=0,g===(g|0)?h.x=g:d+=g;for(var p=0;p<d.length+64;p++)h.x^=d.charCodeAt(p)|0,p==d.length&&(h.d=h.x<<10^h.x>>>4),h.next()}function u(g,h){return h.x=g.x,h.y=g.y,h.z=g.z,h.w=g.w,h.v=g.v,h.d=g.d,h}function f(g,h){var d=new l(g),p=h&&h.state,m=function(){return(d.next()>>>0)/4294967296};return m.double=function(){do var y=d.next()>>>11,x=(d.next()>>>0)/4294967296,A=(y+x)/(1<<21);while(A===0);return A},m.int32=d.next,m.quick=m,p&&(typeof p=="object"&&u(p,d),m.state=function(){return u(d,{})}),m}s&&s.exports?s.exports=f:i&&i.amd?i(function(){return f}):this.xorwow=f})(Fn,n,!1)})(zA);var a31=zA.exports,PA={exports:{}};(function(n){(function(a,s,i){function l(g){var h=this;h.next=function(){var p=h.x,m=h.i,y,x;return y=p[m],y^=y>>>7,x=y^y<<24,y=p[m+1&7],x^=y^y>>>10,y=p[m+3&7],x^=y^y>>>3,y=p[m+4&7],x^=y^y<<7,y=p[m+7&7],y=y^y<<13,x^=y^y<<9,p[m]=x,h.i=m+1&7,x};function d(p,m){var y,x=[];if(m===(m|0))x[0]=m;else for(m=""+m,y=0;y<m.length;++y)x[y&7]=x[y&7]<<15^m.charCodeAt(y)+x[y+1&7]<<13;for(;x.length<8;)x.push(0);for(y=0;y<8&&x[y]===0;++y);for(y==8?x[7]=-1:x[y],p.x=x,p.i=0,y=256;y>0;--y)p.next()}d(h,g)}function u(g,h){return h.x=g.x.slice(),h.i=g.i,h}function f(g,h){g==null&&(g=+new Date);var d=new l(g),p=h&&h.state,m=function(){return(d.next()>>>0)/4294967296};return m.double=function(){do var y=d.next()>>>11,x=(d.next()>>>0)/4294967296,A=(y+x)/(1<<21);while(A===0);return A},m.int32=d.next,m.quick=m,p&&(p.x&&u(p,d),m.state=function(){return u(d,{})}),m}s&&s.exports?s.exports=f:i&&i.amd?i(function(){return f}):this.xorshift7=f})(Fn,n,!1)})(PA);var i31=PA.exports,jA={exports:{}};(function(n){(function(a,s,i){function l(g){var h=this;h.next=function(){var p=h.w,m=h.X,y=h.i,x,A;return h.w=p=p+1640531527|0,A=m[y+34&127],x=m[y=y+1&127],A^=A<<13,x^=x<<17,A^=A>>>15,x^=x>>>12,A=m[y]=A^x,h.i=y,A+(p^p>>>16)|0};function d(p,m){var y,x,A,C,L,_=[],O=128;for(m===(m|0)?(x=m,m=null):(m=m+"\0",x=0,O=Math.max(O,m.length)),A=0,C=-32;C<O;++C)m&&(x^=m.charCodeAt((C+32)%m.length)),C===0&&(L=x),x^=x<<10,x^=x>>>15,x^=x<<4,x^=x>>>13,C>=0&&(L=L+1640531527|0,y=_[C&127]^=x+L,A=y==0?A+1:0);for(A>=128&&(_[(m&&m.length||0)&127]=-1),A=127,C=4*128;C>0;--C)x=_[A+34&127],y=_[A=A+1&127],x^=x<<13,y^=y<<17,x^=x>>>15,y^=y>>>12,_[A]=x^y;p.w=L,p.X=_,p.i=A}d(h,g)}function u(g,h){return h.i=g.i,h.w=g.w,h.X=g.X.slice(),h}function f(g,h){g==null&&(g=+new Date);var d=new l(g),p=h&&h.state,m=function(){return(d.next()>>>0)/4294967296};return m.double=function(){do var y=d.next()>>>11,x=(d.next()>>>0)/4294967296,A=(y+x)/(1<<21);while(A===0);return A},m.int32=d.next,m.quick=m,p&&(p.X&&u(p,d),m.state=function(){return u(d,{})}),m}s&&s.exports?s.exports=f:i&&i.amd?i(function(){return f}):this.xor4096=f})(Fn,n,!1)})(jA);var o31=jA.exports,HA={exports:{}};(function(n){(function(a,s,i){function l(g){var h=this,d="";h.next=function(){var m=h.b,y=h.c,x=h.d,A=h.a;return m=m<<25^m>>>7^y,y=y-x|0,x=x<<24^x>>>8^A,A=A-m|0,h.b=m=m<<20^m>>>12^y,h.c=y=y-x|0,h.d=x<<16^y>>>16^A,h.a=A-m|0},h.a=0,h.b=0,h.c=-1640531527,h.d=1367130551,g===Math.floor(g)?(h.a=g/4294967296|0,h.b=g|0):d+=g;for(var p=0;p<d.length+20;p++)h.b^=d.charCodeAt(p)|0,h.next()}function u(g,h){return h.a=g.a,h.b=g.b,h.c=g.c,h.d=g.d,h}function f(g,h){var d=new l(g),p=h&&h.state,m=function(){return(d.next()>>>0)/4294967296};return m.double=function(){do var y=d.next()>>>11,x=(d.next()>>>0)/4294967296,A=(y+x)/(1<<21);while(A===0);return A},m.int32=d.next,m.quick=m,p&&(typeof p=="object"&&u(p,d),m.state=function(){return u(d,{})}),m}s&&s.exports?s.exports=f:i&&i.amd?i(function(){return f}):this.tychei=f})(Fn,n,!1)})(HA);var s31=HA.exports,$A={exports:{}};const l31=Ic(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));(function(n){(function(a,s,i){var l=256,u=6,f=52,g="random",h=i.pow(l,u),d=i.pow(2,f),p=d*2,m=l-1,y;function x(I,E,R){var z=[];E=E==!0?{entropy:!0}:E||{};var j=_(L(E.entropy?[I,D(s)]:I??O(),3),z),k=new A(z),$=function(){for(var V=k.g(u),Z=h,a1=0;V<d;)V=(V+a1)*l,Z*=l,a1=k.g(1);for(;V>=p;)V/=2,Z/=2,a1>>>=1;return(V+a1)/Z};return $.int32=function(){return k.g(4)|0},$.quick=function(){return k.g(4)/4294967296},$.double=$,_(D(k.S),s),(E.pass||R||function(V,Z,a1,d1){return d1&&(d1.S&&C(d1,k),V.state=function(){return C(k,{})}),a1?(i[g]=V,Z):V})($,j,"global"in E?E.global:this==i,E.state)}function A(I){var E,R=I.length,z=this,j=0,k=z.i=z.j=0,$=z.S=[];for(R||(I=[R++]);j<l;)$[j]=j++;for(j=0;j<l;j++)$[j]=$[k=m&k+I[j%R]+(E=$[j])],$[k]=E;(z.g=function(V){for(var Z,a1=0,d1=z.i,n1=z.j,J=z.S;V--;)Z=J[d1=m&d1+1],a1=a1*l+J[m&(J[d1]=J[n1=m&n1+Z])+(J[n1]=Z)];return z.i=d1,z.j=n1,a1})(l)}function C(I,E){return E.i=I.i,E.j=I.j,E.S=I.S.slice(),E}function L(I,E){var R=[],z=typeof I,j;if(E&&z=="object")for(j in I)try{R.push(L(I[j],E-1))}catch{}return R.length?R:z=="string"?I:I+"\0"}function _(I,E){for(var R=I+"",z,j=0;j<R.length;)E[m&j]=m&(z^=E[m&j]*19)+R.charCodeAt(j++);return D(E)}function O(){try{var I;return y&&(I=y.randomBytes)?I=I(l):(I=new Uint8Array(l),(a.crypto||a.msCrypto).getRandomValues(I)),D(I)}catch{var E=a.navigator,R=E&&E.plugins;return[+new Date,a,R,a.screen,D(s)]}}function D(I){return String.fromCharCode.apply(0,I)}if(_(i.random(),s),n.exports){n.exports=x;try{y=l31}catch{}}else i["seed"+g]=x})(typeof self<"u"?self:Fn,[],Math)})($A);var u31=$A.exports,c31=n31,f31=r31,p31=a31,d31=i31,m31=o31,h31=s31,A4=u31;A4.alea=c31,A4.xor128=f31,A4.xorwow=p31,A4.xorshift7=d31,A4.xor4096=m31,A4.tychei=h31;var g31=A4;const UA=l4(g31);var y31=UA(Date.now());function go(n){var a;function s(l){a=l===null?y31:UA(String(l))}s(n);function i(){return a()}return i}var VA="pickRandom",v31=["typed","config","?on"],b31=s1(VA,v31,n=>{var{typed:a,config:s,on:i}=n,l=go(s.randomSeed);return i&&i("config",function(f,g){f.randomSeed!==g.randomSeed&&(l=go(f.randomSeed))}),a(VA,{"Array | Matrix":function(f){return u(f,{})},"Array | Matrix, Object":function(f,g){return u(f,g)},"Array | Matrix, number":function(f,g){return u(f,{number:g})},"Array | Matrix, Array | Matrix":function(f,g){return u(f,{weights:g})},"Array | Matrix, Array | Matrix, number":function(f,g,h){return u(f,{number:h,weights:g})},"Array | Matrix, number, Array | Matrix":function(f,g,h){return u(f,{number:g,weights:h})}});function u(f,g){var{number:h,weights:d,elementWise:p=!0}=g,m=typeof h>"u";m&&(h=1);var y=M1(f)?f.create:M1(d)?d.create:null;f=f.valueOf(),d&&(d=d.valueOf()),p===!0&&(f=Ft(f),d=Ft(d));var x=0;if(typeof d<"u"){if(d.length!==f.length)throw new Error("Weights must have the same length as possibles");for(var A=0,C=d.length;A<C;A++){if(!h1(d[A])||d[A]<0)throw new Error("Weights must be an array of positive numbers");x+=d[A]}}for(var L=f.length,_=[],O;_.length<h;){if(typeof d>"u")O=f[Math.floor(l()*L)];else for(var D=l()*x,I=0,E=f.length;I<E;I++)if(D-=d[I],D<0){O=f[I];break}_.push(O)}return m?_[0]:y?y(_):_}});function om(n,a){var s=[];if(n=n.slice(0),n.length>1)for(var i=0,l=n.shift();i<l;i++)s.push(om(n,a));else for(var u=0,f=n.shift();u<f;u++)s.push(a());return s}var qA="random",x31=["typed","config","?on"],w31=s1(qA,x31,n=>{var{typed:a,config:s,on:i}=n,l=go(s.randomSeed);return i&&i("config",function(g,h){g.randomSeed!==h.randomSeed&&(l=go(g.randomSeed))}),a(qA,{"":()=>f(0,1),number:g=>f(0,g),"number, number":(g,h)=>f(g,h),"Array | Matrix":g=>u(g,0,1),"Array | Matrix, number":(g,h)=>u(g,0,h),"Array | Matrix, number, number":(g,h,d)=>u(g,h,d)});function u(g,h,d){var p=om(g.valueOf(),()=>f(h,d));return M1(g)?g.create(p):p}function f(g,h){return g+l()*(h-g)}}),YA="randomInt",N31=["typed","config","?on"],A31=s1(YA,N31,n=>{var{typed:a,config:s,on:i}=n,l=go(s.randomSeed);return i&&i("config",function(g,h){g.randomSeed!==h.randomSeed&&(l=go(g.randomSeed))}),a(YA,{"":()=>f(0,1),number:g=>f(0,g),"number, number":(g,h)=>f(g,h),"Array | Matrix":g=>u(g,0,1),"Array | Matrix, number":(g,h)=>u(g,0,h),"Array | Matrix, number, number":(g,h,d)=>u(g,h,d)});function u(g,h,d){var p=om(g.valueOf(),()=>f(h,d));return M1(g)?g.create(p):p}function f(g,h){return Math.floor(g+l()*(h-g))}}),WA="stirlingS2",D31=["typed","addScalar","subtractScalar","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],C31=s1(WA,D31,n=>{var{typed:a,addScalar:s,subtractScalar:i,multiplyScalar:l,divideScalar:u,pow:f,factorial:g,combinations:h,isNegative:d,isInteger:p,number:m,bignumber:y,larger:x}=n,A=[],C=[];return a(WA,{"number | BigNumber, number | BigNumber":function(L,_){if(!p(L)||d(L)||!p(_)||d(_))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(x(_,L))throw new TypeError("k must be less than or equal to n in function stirlingS2");var O=!(h1(L)&&h1(_)),D=O?C:A,I=O?y:m,E=m(L),R=m(_);if(D[E]&&D[E].length>R)return D[E][R];for(var z=0;z<=E;++z)if(D[z]||(D[z]=[I(z===0?1:0)]),z!==0)for(var j=D[z],k=D[z-1],$=j.length;$<=z&&$<=R;++$)$===z?j[$]=1:j[$]=s(l(I($),k[$]),k[$-1]);return D[E][R]}})}),GA="bellNumbers",_31=["typed","addScalar","isNegative","isInteger","stirlingS2"],M31=s1(GA,_31,n=>{var{typed:a,addScalar:s,isNegative:i,isInteger:l,stirlingS2:u}=n;return a(GA,{"number | BigNumber":function(f){if(!l(f)||i(f))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var g=0,h=0;h<=f;h++)g=s(g,u(f,h));return g}})}),KA="catalan",E31=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],S31=s1(KA,E31,n=>{var{typed:a,addScalar:s,divideScalar:i,multiplyScalar:l,combinations:u,isNegative:f,isInteger:g}=n;return a(KA,{"number | BigNumber":function(h){if(!g(h)||f(h))throw new TypeError("Non-negative integer value expected in function catalan");return i(u(l(h,2),h),s(h,1))}})}),ZA="composition",T31=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],I31=s1(ZA,T31,n=>{var{typed:a,addScalar:s,combinations:i,isPositive:l,isNegative:u,isInteger:f,larger:g}=n;return a(ZA,{"number | BigNumber, number | BigNumber":function(h,d){if(!f(h)||!l(h)||!f(d)||!l(d))throw new TypeError("Positive integer value expected in function composition");if(g(d,h))throw new TypeError("k must be less than or equal to n in function composition");return i(s(h,-1),s(d,-1))}})}),QA="leafCount",O31=["parse","typed"],L31=s1(QA,O31,n=>{var{parse:a,typed:s}=n;function i(l){var u=0;return l.forEach(f=>{u+=i(f)}),u||1}return s(QA,{Node:function(l){return i(l)}})});function JA(n){return Ge(n)||Yt(n)&&n.isUnary()&&Ge(n.args[0])}function pl(n){return!!(Ge(n)||(ln(n)||Yt(n))&&n.args.every(pl)||Gt(n)&&pl(n.content))}function XA(n,a){var s=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);a&&(i=i.filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable})),s.push.apply(s,i)}return s}function sm(n){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?XA(Object(s),!0).forEach(function(i){t2(n,i,s[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(s)):XA(Object(s)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(s,i))})}return n}var B31="simplifyUtil",R31=["FunctionNode","OperatorNode","SymbolNode"],lm=s1(B31,R31,n=>{var{FunctionNode:a,OperatorNode:s,SymbolNode:i}=n,l=!0,u=!1,f="defaultF",g={add:{trivial:l,total:l,commutative:l,associative:l},unaryPlus:{trivial:l,total:l,commutative:l,associative:l},subtract:{trivial:u,total:l,commutative:u,associative:u},multiply:{trivial:l,total:l,commutative:l,associative:l},divide:{trivial:u,total:l,commutative:u,associative:u},paren:{trivial:l,total:l,commutative:l,associative:u},defaultF:{trivial:u,total:l,commutative:u,associative:u}},h={divide:{total:u},log:{total:u}},d={subtract:{total:u},abs:{trivial:l},log:{total:l}};function p(D,I){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,R=f;if(typeof D=="string"?R=D:Yt(D)?R=D.fn.toString():ln(D)?R=D.name:Gt(D)&&(R="paren"),ye(E,R)){var z=E[R];if(ye(z,I))return z[I];if(ye(g,R))return g[R][I]}if(ye(E,f)){var j=E[f];return ye(j,I)?j[I]:g[f][I]}if(ye(g,R)){var k=g[R];if(ye(k,I))return k[I]}return g[f][I]}function m(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g;return p(D,"commutative",I)}function y(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g;return p(D,"associative",I)}function x(D,I){var E=sm({},D);for(var R in I)ye(D,R)?E[R]=sm(sm({},I[R]),D[R]):E[R]=I[R];return E}function A(D,I){if(!D.args||D.args.length===0)return D;D.args=C(D,I);for(var E=0;E<D.args.length;E++)A(D.args[E],I)}function C(D,I){var E,R=[],z=function j(k){for(var $=0;$<k.args.length;$++){var V=k.args[$];Yt(V)&&E===V.op?j(V):R.push(V)}};return y(D,I)?(E=D.op,z(D),R):D.args}function L(D,I){if(!(!D.args||D.args.length===0)){for(var E=O(D),R=D.args.length,z=0;z<R;z++)L(D.args[z],I);if(R>2&&y(D,I)){for(var j=D.args.pop();D.args.length>0;)j=E([D.args.pop(),j]);D.args=j.args}}}function _(D,I){if(!(!D.args||D.args.length===0)){for(var E=O(D),R=D.args.length,z=0;z<R;z++)_(D.args[z],I);if(R>2&&y(D,I)){for(var j=D.args.shift();D.args.length>0;)j=E([j,D.args.shift()]);D.args=j.args}}}function O(D){return Yt(D)?function(I){try{return new s(D.op,D.fn,I,D.implicit)}catch(E){return console.error(E),[]}}:function(I){return new a(new i(D.name),I)}}return{createMakeNodeFunction:O,hasProperty:p,isCommutative:m,isAssociative:y,mergeContext:x,flatten:A,allChildren:C,unflattenr:L,unflattenl:_,defaultContext:g,realContext:h,positiveContext:d}}),F31="simplify",k31=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],z31=s1(F31,k31,n=>{var{config:a,typed:s,parse:i,add:l,subtract:u,multiply:f,divide:g,pow:h,isZero:d,equal:p,resolve:m,simplifyConstant:y,simplifyCore:x,fraction:A,bignumber:C,mathWithTransform:L,matrix:_,AccessorNode:O,ArrayNode:D,ConstantNode:I,FunctionNode:E,IndexNode:R,ObjectNode:z,OperatorNode:j,ParenthesisNode:k,SymbolNode:$}=n,{hasProperty:V,isCommutative:Z,isAssociative:a1,mergeContext:d1,flatten:n1,unflattenr:J,unflattenl:W,createMakeNodeFunction:c1,defaultContext:X,realContext:L1,positiveContext:Z1}=lm({FunctionNode:E,OperatorNode:j,SymbolNode:$});s.addConversion({from:"Object",to:"Map",convert:f2});var A1=s("simplify",{Node:$1,"Node, Map":(w1,E1)=>$1(w1,!1,E1),"Node, Map, Object":(w1,E1,F1)=>$1(w1,!1,E1,F1),"Node, Array":$1,"Node, Array, Map":$1,"Node, Array, Map, Object":$1});s.removeConversion({from:"Object",to:"Map",convert:f2}),A1.defaultContext=X,A1.realContext=L1,A1.positiveContext=Z1;function f1(w1){return w1.transform(function(E1,F1,pe){return Gt(E1)?f1(E1.content):E1})}var Q1={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};A1.rules=[x,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},y,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},y,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{l:"n+-(n1)",r:"n-(n1)"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];function oe(w1,E1){var F1={};if(w1.s){var pe=w1.s.split("->");if(pe.length===2)F1.l=pe[0],F1.r=pe[1];else throw SyntaxError("Could not parse rule: "+w1.s)}else F1.l=w1.l,F1.r=w1.r;F1.l=f1(i(F1.l)),F1.r=f1(i(F1.r));for(var de of["imposeContext","repeat","assuming"])de in w1&&(F1[de]=w1[de]);if(w1.evaluate&&(F1.evaluate=i(w1.evaluate)),a1(F1.l,E1)){var p1=!Z(F1.l,E1),y1;p1&&(y1=le());var B1=c1(F1.l),Y1=le();F1.expanded={},F1.expanded.l=B1([F1.l,Y1]),n1(F1.expanded.l,E1),J(F1.expanded.l,E1),F1.expanded.r=B1([F1.r,Y1]),p1&&(F1.expandedNC1={},F1.expandedNC1.l=B1([y1,F1.l]),F1.expandedNC1.r=B1([y1,F1.r]),F1.expandedNC2={},F1.expandedNC2.l=B1([y1,F1.expanded.l]),F1.expandedNC2.r=B1([y1,F1.expanded.r]))}return F1}function z1(w1,E1){for(var F1=[],pe=0;pe<w1.length;pe++){var de=w1[pe],p1=void 0,y1=typeof de;switch(y1){case"string":de={s:de};case"object":p1=oe(de,E1);break;case"function":p1=de;break;default:throw TypeError("Unsupported type of rule: "+y1)}F1.push(p1)}return F1}var q1=0;function le(){return new $("_p"+q1++)}function $1(w1,E1){var F1=arguments.length>2&&arguments[2]!==void 0?arguments[2]:W3(),pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},de=pe.consoleDebug;E1=z1(E1||A1.rules,pe.context);var p1=m(w1,F1);p1=f1(p1);for(var y1={},B1=p1.toString({parenthesis:"all"});!y1[B1];){y1[B1]=!0,q1=0;var Y1=B1;de&&console.log("Working on: ",B1);for(var ue=0;ue<E1.length;ue++){var me="";if(typeof E1[ue]=="function"?(p1=E1[ue](p1,pe),de&&(me=E1[ue].name)):(n1(p1,pe.context),p1=ae(p1,E1[ue],pe.context),de&&(me="".concat(E1[ue].l.toString()," -> ").concat(E1[ue].r.toString()))),de){var Se=p1.toString({parenthesis:"all"});Se!==Y1&&(console.log("Applying",me,"produced",Se),Y1=Se)}W(p1,pe.context)}B1=p1.toString({parenthesis:"all"})}return p1}function te(w1,E1,F1){var pe=w1;if(w1)for(var de=0;de<w1.length;++de){var p1=ae(w1[de],E1,F1);p1!==w1[de]&&(pe===w1&&(pe=w1.slice()),pe[de]=p1)}return pe}function ae(w1,E1,F1){if(E1.assuming){for(var pe in E1.assuming)for(var de in E1.assuming[pe])if(V(pe,de,F1)!==E1.assuming[pe][de])return w1}var p1=d1(E1.imposeContext,F1),y1=w1;if(y1 instanceof j||y1 instanceof E){var B1=te(y1.args,E1,F1);B1!==y1.args&&(y1=y1.clone(),y1.args=B1)}else if(y1 instanceof k){if(y1.content){var Y1=ae(y1.content,E1,F1);Y1!==y1.content&&(y1=new k(Y1))}}else if(y1 instanceof D){var ue=te(y1.items,E1,F1);ue!==y1.items&&(y1=new D(ue))}else if(y1 instanceof O){var me=y1.object;y1.object&&(me=ae(y1.object,E1,F1));var Se=y1.index;y1.index&&(Se=ae(y1.index,E1,F1)),(me!==y1.object||Se!==y1.index)&&(y1=new O(me,Se))}else if(y1 instanceof R){var xe=te(y1.dimensions,E1,F1);xe!==y1.dimensions&&(y1=new R(xe))}else if(y1 instanceof z){var Fe=!1,Le={};for(var Rt in y1.properties)Le[Rt]=ae(y1.properties[Rt],E1,F1),Le[Rt]!==y1.properties[Rt]&&(Fe=!0);Fe&&(y1=new z(Le))}var zt=E1.r,et=D1(E1.l,y1,p1)[0];if(!et&&E1.expanded&&(zt=E1.expanded.r,et=D1(E1.expanded.l,y1,p1)[0]),!et&&E1.expandedNC1&&(zt=E1.expandedNC1.r,et=D1(E1.expandedNC1.l,y1,p1)[0],et||(zt=E1.expandedNC2.r,et=D1(E1.expandedNC2.l,y1,p1)[0])),et){var qn=y1.implicit;y1=zt.clone(),qn&&"implicit"in zt&&(y1.implicit=!0),y1=y1.transform(function(Y){return Y.isSymbolNode&&ye(et.placeholders,Y.name)?et.placeholders[Y.name].clone():Y})}return E1.repeat&&y1!==w1&&(y1=ae(y1,E1,F1)),y1}function fe(w1,E1){var F1=[],pe,de,p1=c1(w1);if(Z(w1,E1))for(var y1=0;y1<w1.args.length;y1++)de=w1.args.slice(0),de.splice(y1,1),pe=de.length===1?de[0]:p1(de),F1.push(p1([w1.args[y1],pe]));else for(var B1=1;B1<w1.args.length;B1++){var Y1=w1.args[0];B1>1&&(Y1=p1(w1.args.slice(0,B1))),de=w1.args.slice(B1),pe=de.length===1?de[0]:p1(de),F1.push(p1([Y1,pe]))}return F1}function Ee(w1,E1){var F1={placeholders:{}};if(!w1.placeholders&&!E1.placeholders)return F1;if(w1.placeholders){if(!E1.placeholders)return w1}else return E1;for(var pe in w1.placeholders)if(ye(w1.placeholders,pe)&&(F1.placeholders[pe]=w1.placeholders[pe],ye(E1.placeholders,pe)&&!R1(w1.placeholders[pe],E1.placeholders[pe])))return null;for(var de in E1.placeholders)ye(E1.placeholders,de)&&(F1.placeholders[de]=E1.placeholders[de]);return F1}function ze(w1,E1){var F1=[];if(w1.length===0||E1.length===0)return F1;for(var pe,de=0;de<w1.length;de++)for(var p1=0;p1<E1.length;p1++)pe=Ee(w1[de],E1[p1]),pe&&F1.push(pe);return F1}function g1(w1){if(w1.length===0)return w1;for(var E1=w1.reduce(ze),F1=[],pe={},de=0;de<E1.length;de++){var p1=JSON.stringify(E1[de]);pe[p1]||(pe[p1]=!0,F1.push(E1[de]))}return F1}function D1(w1,E1,F1,pe){var de=[{placeholders:{}}];if(w1 instanceof j&&E1 instanceof j||w1 instanceof E&&E1 instanceof E){if(w1 instanceof j){if(w1.op!==E1.op||w1.fn!==E1.fn)return[]}else if(w1 instanceof E&&w1.name!==E1.name)return[];if(E1.args.length===1&&w1.args.length===1||!a1(E1,F1)&&E1.args.length===w1.args.length||pe){for(var p1=[],y1=0;y1<w1.args.length;y1++){var B1=D1(w1.args[y1],E1.args[y1],F1);if(B1.length===0)break;p1.push(B1)}if(p1.length!==w1.args.length){if(!Z(E1,F1)||w1.args.length===1)return[];if(w1.args.length>2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var Y1=D1(w1.args[0],E1.args[1],F1);if(Y1.length===0)return[];var ue=D1(w1.args[1],E1.args[0],F1);if(ue.length===0)return[];p1=[Y1,ue]}de=g1(p1)}else if(E1.args.length>=2&&w1.args.length===2){for(var me=fe(E1,F1),Se=[],xe=0;xe<me.length;xe++){var Fe=D1(w1,me[xe],F1,!0);Se=Se.concat(Fe)}return Se}else{if(w1.args.length>2)throw Error("Unexpected non-binary associative function: "+w1.toString());return[]}}else if(w1 instanceof $){if(w1.name.length===0)throw new Error("Symbol in rule has 0 length...!?");if(Q1[w1.name]){if(w1.name!==E1.name)return[]}else switch(w1.name[1]>="a"&&w1.name[1]<="z"?w1.name.substring(0,2):w1.name[0]){case"n":case"_p":de[0].placeholders[w1.name]=E1;break;case"c":case"cl":if(Ge(E1))de[0].placeholders[w1.name]=E1;else return[];break;case"v":if(!Ge(E1))de[0].placeholders[w1.name]=E1;else return[];break;case"vl":if(jt(E1))de[0].placeholders[w1.name]=E1;else return[];break;case"cd":if(JA(E1))de[0].placeholders[w1.name]=E1;else return[];break;case"vd":if(!JA(E1))de[0].placeholders[w1.name]=E1;else return[];break;case"ce":if(pl(E1))de[0].placeholders[w1.name]=E1;else return[];break;case"ve":if(!pl(E1))de[0].placeholders[w1.name]=E1;else return[];break;default:throw new Error("Invalid symbol in rule: "+w1.name)}}else if(w1 instanceof I){if(!p(w1.value,E1.value))return[]}else return[];return de}function R1(w1,E1){if(w1 instanceof I&&E1 instanceof I){if(!p(w1.value,E1.value))return!1}else if(w1 instanceof $&&E1 instanceof $){if(w1.name!==E1.name)return!1}else if(w1 instanceof j&&E1 instanceof j||w1 instanceof E&&E1 instanceof E){if(w1 instanceof j){if(w1.op!==E1.op||w1.fn!==E1.fn)return!1}else if(w1 instanceof E&&w1.name!==E1.name)return!1;if(w1.args.length!==E1.args.length)return!1;for(var F1=0;F1<w1.args.length;F1++)if(!R1(w1.args[F1],E1.args[F1]))return!1}else return!1;return!0}return A1}),P31="simplifyConstant",j31=["typed","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],H31=s1(P31,j31,n=>{var{typed:a,config:s,mathWithTransform:i,matrix:l,fraction:u,bignumber:f,AccessorNode:g,ArrayNode:h,ConstantNode:d,FunctionNode:p,IndexNode:m,ObjectNode:y,OperatorNode:x,SymbolNode:A}=n,{isCommutative:C,isAssociative:L,allChildren:_,createMakeNodeFunction:O}=lm({FunctionNode:p,OperatorNode:x,SymbolNode:A}),D=a("simplifyConstant",{Node:n1=>z(d1(n1,{})),"Node, Object":function(n1,J){return z(d1(n1,J))}});function I(n1){return I1(n1)?n1.valueOf():n1 instanceof Array?n1.map(I):M1(n1)?l(I(n1.valueOf())):n1}function E(n1,J,W){try{return i[n1].apply(null,J)}catch{return J=J.map(I),k(i[n1].apply(null,J),W)}}var R=a({Fraction:V,number:function(n1){return n1<0?$(new d(-n1)):new d(n1)},BigNumber:function(n1){return n1<0?$(new d(-n1)):new d(n1)},Complex:function(n1){throw new Error("Cannot convert Complex number to Node")},string:function(n1){return new d(n1)},Matrix:function(n1){return new h(n1.valueOf().map(J=>R(J)))}});function z(n1){return Xe(n1)?n1:R(n1)}function j(n1,J){var W=J&&J.exactFractions!==!1;if(W&&isFinite(n1)&&u){var c1=u(n1),X=J&&typeof J.fractionsLimit=="number"?J.fractionsLimit:1/0;if(c1.valueOf()===n1&&c1.n<X&&c1.d<X)return c1}return n1}var k=a({"string, Object":function(n1,J){if(s.number==="BigNumber")return f===void 0&&e5(),f(n1);if(s.number==="Fraction")return u===void 0&&es(),u(n1);var W=parseFloat(n1);return j(W,J)},"Fraction, Object":function(n1,J){return n1},"BigNumber, Object":function(n1,J){return n1},"number, Object":function(n1,J){return j(n1,J)},"Complex, Object":function(n1,J){return n1.im!==0?n1:j(n1.re,J)},"Matrix, Object":function(n1,J){return l(j(n1.valueOf()))},"Array, Object":function(n1,J){return n1.map(j)}});function $(n1){return new x("-","unaryMinus",[n1])}function V(n1){var J,W=n1.s*n1.n;return W<0?J=new x("-","unaryMinus",[new d(-W)]):J=new d(W),n1.d===1?J:new x("/","divide",[J,new d(n1.d)])}function Z(n1,J,W){if(!Tn(J))return new g(z(n1),z(J));if(Je(n1)||M1(n1)){for(var c1=Array.from(J.dimensions);c1.length>0;)if(Ge(c1[0])&&typeof c1[0].value!="string"){var X=k(c1.shift().value,W);Je(n1)?n1=n1.items[X-1]:(n1=n1.valueOf()[X-1],n1 instanceof Array&&(n1=l(n1)))}else if(c1.length>1&&Ge(c1[1])&&typeof c1[1].value!="string"){var L1=k(c1[1].value,W),Z1=[],A1=Je(n1)?n1.items:n1.valueOf();for(var f1 of A1)if(Je(f1))Z1.push(f1.items[L1-1]);else if(M1(n1))Z1.push(f1[L1-1]);else break;if(Z1.length===A1.length)Je(n1)?n1=new h(Z1):n1=l(Z1),c1.splice(1,1);else break}else break;return c1.length===J.dimensions.length?new g(z(n1),J):c1.length>0?(J=new m(c1),new g(z(n1),J)):n1}if(Pn(n1)&&J.dimensions.length===1&&Ge(J.dimensions[0])){var Q1=J.dimensions[0].value;return Q1 in n1.properties?n1.properties[Q1]:new d}return new g(z(n1),J)}function a1(n1,J,W,c1){var X=J.shift(),L1=J.reduce((Z1,A1)=>{if(!Xe(A1)){var f1=Z1.pop();if(Xe(f1))return[f1,A1];try{return Z1.push(E(n1,[f1,A1],c1)),Z1}catch{Z1.push(f1)}}Z1.push(z(Z1.pop()));var Q1=Z1.length===1?Z1[0]:W(Z1);return[W([Q1,z(A1)])]},[X]);return L1.length===1?L1[0]:W([L1[0],R(L1[1])])}function d1(n1,J){switch(n1.type){case"SymbolNode":return n1;case"ConstantNode":switch(typeof n1.value){case"number":return k(n1.value,J);case"string":return n1.value;default:if(!isNaN(n1.value))return k(n1.value,J)}return n1;case"FunctionNode":if(i[n1.name]&&i[n1.name].rawArgs)return n1;{var W=["add","multiply"];if(W.indexOf(n1.name)===-1){var c1=n1.args.map(ae=>d1(ae,J));if(!c1.some(Xe))try{return E(n1.name,c1,J)}catch{}if(n1.name==="size"&&c1.length===1&&Je(c1[0])){for(var X=[],L1=c1[0];Je(L1);)X.push(L1.items.length),L1=L1.items[0];return l(X)}return new p(n1.name,c1.map(z))}}case"OperatorNode":{var Z1=n1.fn.toString(),A1,f1,Q1=O(n1);if(Yt(n1)&&n1.isUnary())A1=[d1(n1.args[0],J)],Xe(A1[0])?f1=Q1(A1):f1=E(Z1,A1,J);else if(L(n1,J.context))if(A1=_(n1,J.context),A1=A1.map(ae=>d1(ae,J)),C(Z1,J.context)){for(var oe=[],z1=[],q1=0;q1<A1.length;q1++)Xe(A1[q1])?z1.push(A1[q1]):oe.push(A1[q1]);oe.length>1?(f1=a1(Z1,oe,Q1,J),z1.unshift(f1),f1=a1(Z1,z1,Q1,J)):f1=a1(Z1,A1,Q1,J)}else f1=a1(Z1,A1,Q1,J);else A1=n1.args.map(ae=>d1(ae,J)),f1=a1(Z1,A1,Q1,J);return f1}case"ParenthesisNode":return d1(n1.content,J);case"AccessorNode":return Z(d1(n1.object,J),d1(n1.index,J),J);case"ArrayNode":{var le=n1.items.map(ae=>d1(ae,J));return le.some(Xe)?new h(le.map(z)):l(le)}case"IndexNode":return new m(n1.dimensions.map(ae=>D(ae,J)));case"ObjectNode":{var $1={};for(var te in n1.properties)$1[te]=D(n1.properties[te],J);return new y($1)}case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(n1.type))}}return D}),eD="simplifyCore",$31=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],U31=s1(eD,$31,n=>{var{typed:a,parse:s,equal:i,isZero:l,add:u,subtract:f,multiply:g,divide:h,pow:d,AccessorNode:p,ArrayNode:m,ConstantNode:y,FunctionNode:x,IndexNode:A,ObjectNode:C,OperatorNode:L,ParenthesisNode:_,SymbolNode:O}=n,D=new y(0),I=new y(1),E=new y(!0),R=new y(!1);function z(V){return Yt(V)&&["and","not","or"].includes(V.op)}var{hasProperty:j,isCommutative:k}=lm({FunctionNode:x,OperatorNode:L,SymbolNode:O});function $(V){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a1=Z?Z.context:void 0;if(j(V,"trivial",a1)){if(ln(V)&&V.args.length===1)return $(V.args[0],Z);var d1=!1,n1=0;if(V.forEach(z1=>{++n1,n1===1&&(d1=$(z1,Z))}),n1===1)return d1}var J=V;if(ln(J)){var W=GJ(J.name);if(W){if(J.args.length>2&&j(J,"associative",a1))for(;J.args.length>2;){var c1=J.args.pop(),X=J.args.pop();J.args.push(new L(W,J.name,[c1,X]))}J=new L(W,J.name,J.args)}else return new x($(J.fn),J.args.map(z1=>$(z1,Z)))}if(Yt(J)&&J.isUnary()){var L1=$(J.args[0],Z);if(J.op==="~"&&Yt(L1)&&L1.isUnary()&&L1.op==="~"||J.op==="not"&&Yt(L1)&&L1.isUnary()&&L1.op==="not"&&z(L1.args[0]))return L1.args[0];var Z1=!0;if(J.op==="-"&&Yt(L1)&&(L1.isBinary()&&L1.fn==="subtract"&&(J=new L("-","subtract",[L1.args[1],L1.args[0]]),Z1=!1),L1.isUnary()&&L1.op==="-"))return L1.args[0];if(Z1)return new L(J.op,J.fn,[L1])}if(Yt(J)&&J.isBinary()){var A1=$(J.args[0],Z),f1=$(J.args[1],Z);if(J.op==="+"){if(Ge(A1)&&l(A1.value))return f1;if(Ge(f1)&&l(f1.value))return A1;Yt(f1)&&f1.isUnary()&&f1.op==="-"&&(f1=f1.args[0],J=new L("-","subtract",[A1,f1]))}if(J.op==="-")return Yt(f1)&&f1.isUnary()&&f1.op==="-"?$(new L("+","add",[A1,f1.args[0]]),Z):Ge(A1)&&l(A1.value)?$(new L("-","unaryMinus",[f1])):Ge(f1)&&l(f1.value)?A1:new L(J.op,J.fn,[A1,f1]);if(J.op==="*"){if(Ge(A1)){if(l(A1.value))return D;if(i(A1.value,1))return f1}if(Ge(f1)){if(l(f1.value))return D;if(i(f1.value,1))return A1;if(k(J,a1))return new L(J.op,J.fn,[f1,A1],J.implicit)}return new L(J.op,J.fn,[A1,f1],J.implicit)}if(J.op==="/")return Ge(A1)&&l(A1.value)?D:Ge(f1)&&i(f1.value,1)?A1:new L(J.op,J.fn,[A1,f1]);if(J.op==="^"&&Ge(f1)){if(l(f1.value))return I;if(i(f1.value,1))return A1}if(J.op==="and"){if(Ge(A1))if(A1.value){if(z(f1))return f1}else return R;if(Ge(f1))if(f1.value){if(z(A1))return A1}else return R}if(J.op==="or"){if(Ge(A1)){if(A1.value)return E;if(z(f1))return f1}if(Ge(f1)){if(f1.value)return E;if(z(A1))return A1}}return new L(J.op,J.fn,[A1,f1])}if(Yt(J))return new L(J.op,J.fn,J.args.map(z1=>$(z1,Z)));if(Je(J))return new m(J.items.map(z1=>$(z1,Z)));if(Ut(J))return new p($(J.object,Z),$(J.index,Z));if(Tn(J))return new A(J.dimensions.map(z1=>$(z1,Z)));if(Pn(J)){var Q1={};for(var oe in J.properties)Q1[oe]=$(J.properties[oe],Z);return new C(Q1)}return J}return a(eD,{Node:$,"Node,Object":$})}),V31="resolve",q31=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],Y31=s1(V31,q31,n=>{var{typed:a,parse:s,ConstantNode:i,FunctionNode:l,OperatorNode:u,ParenthesisNode:f}=n;function g(h,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(!d)return h;if(jt(h)){if(p.has(h.name)){var m=Array.from(p).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(m,"}"))}var y=d.get(h.name);if(Xe(y)){var x=new Set(p);return x.add(h.name),g(y,d,x)}else return typeof y=="number"?s(String(y)):y!==void 0?new i(y):h}else if(Yt(h)){var A=h.args.map(function(L){return g(L,d,p)});return new u(h.op,h.fn,A,h.implicit)}else{if(Gt(h))return new f(g(h.content,d,p));if(ln(h)){var C=h.args.map(function(L){return g(L,d,p)});return new l(h.name,C)}}return h.map(L=>g(L,d,p))}return a("resolve",{Node:g,"Node, Map | null | undefined":g,"Node, Object":(h,d)=>g(h,f2(d)),"Array | Matrix":a.referToSelf(h=>d=>d.map(p=>h(p))),"Array | Matrix, null | undefined":a.referToSelf(h=>d=>d.map(p=>h(p))),"Array, Object":a.referTo("Array,Map",h=>(d,p)=>h(d,f2(p))),"Matrix, Object":a.referTo("Matrix,Map",h=>(d,p)=>h(d,f2(p))),"Array | Matrix, Map":a.referToSelf(h=>(d,p)=>d.map(m=>h(m,p)))})}),tD="symbolicEqual",W31=["parse","simplify","typed","OperatorNode"],G31=s1(tD,W31,n=>{var{parse:a,simplify:s,typed:i,OperatorNode:l}=n;function u(f,g){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=new l("-","subtract",[f,g]),p=s(d,{},h);return Ge(p)&&!p.value}return i(tD,{"Node, Node":u,"Node, Node, Object":u})}),nD="derivative",K31=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],Z31=s1(nD,K31,n=>{var{typed:a,config:s,parse:i,simplify:l,equal:u,isZero:f,numeric:g,ConstantNode:h,FunctionNode:d,OperatorNode:p,ParenthesisNode:m,SymbolNode:y}=n;function x(D,I){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{simplify:!0},R={};L(R,D,I.name);var z=_(D,R);return E.simplify?l(z):z}a.addConversion({from:"identifier",to:"SymbolNode",convert:i});var A=a(nD,{"Node, SymbolNode":x,"Node, SymbolNode, Object":x});a.removeConversion({from:"identifier",to:"SymbolNode",convert:i}),A._simplify=!0,A.toTex=function(D){return C.apply(null,D.args)};var C=a("_derivTex",{"Node, SymbolNode":function(D,I){return Ge(D)&&ce(D.value)==="string"?C(i(D.value).toString(),I.toString(),1):C(D.toTex(),I.toString(),1)},"Node, ConstantNode":function(D,I){if(ce(I.value)==="string")return C(D,i(I.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(D,I,E){return C(D.toString(),I.name,E.value)},"string, string, number":function(D,I,E){var R;return E===1?R="{d\\over d"+I+"}":R="{d^{"+E+"}\\over d"+I+"^{"+E+"}}",R+"\\left[".concat(D,"\\right]")}}),L=a("constTag",{"Object, ConstantNode, string":function(D,I){return D[I]=!0,!0},"Object, SymbolNode, string":function(D,I,E){return I.name!==E?(D[I]=!0,!0):!1},"Object, ParenthesisNode, string":function(D,I,E){return L(D,I.content,E)},"Object, FunctionAssignmentNode, string":function(D,I,E){return I.params.indexOf(E)===-1?(D[I]=!0,!0):L(D,I.expr,E)},"Object, FunctionNode | OperatorNode, string":function(D,I,E){if(I.args.length>0){for(var R=L(D,I.args[0],E),z=1;z<I.args.length;++z)R=L(D,I.args[z],E)&&R;if(R)return D[I]=!0,!0}return!1}}),_=a("_derivative",{"ConstantNode, Object":function(D){return O(0)},"SymbolNode, Object":function(D,I){return I[D]!==void 0?O(0):O(1)},"ParenthesisNode, Object":function(D,I){return new m(_(D.content,I))},"FunctionAssignmentNode, Object":function(D,I){return I[D]!==void 0?O(0):_(D.expr,I)},"FunctionNode, Object":function(D,I){if(I[D]!==void 0)return O(0);var E=D.args[0],R,z=!1,j=!1,k;switch(D.name){case"cbrt":z=!0,k=new p("*","multiply",[O(3),new p("^","pow",[E,new p("/","divide",[O(2),O(3)])])]);break;case"sqrt":case"nthRoot":if(D.args.length===1)z=!0,k=new p("*","multiply",[O(2),new d("sqrt",[E])]);else if(D.args.length===2)return R=new p("/","divide",[O(1),D.args[1]]),I[R]=I[D.args[1]],_(new p("^","pow",[E,R]),I);break;case"log10":R=O(10);case"log":if(!R&&D.args.length===1)k=E.clone(),z=!0;else if(D.args.length===1&&R||D.args.length===2&&I[D.args[1]]!==void 0)k=new p("*","multiply",[E.clone(),new d("log",[R||D.args[1]])]),z=!0;else if(D.args.length===2)return _(new p("/","divide",[new d("log",[E]),new d("log",[D.args[1]])]),I);break;case"pow":if(D.args.length===2)return I[R]=I[D.args[1]],_(new p("^","pow",[E,D.args[1]]),I);break;case"exp":k=new d("exp",[E.clone()]);break;case"sin":k=new d("cos",[E.clone()]);break;case"cos":k=new p("-","unaryMinus",[new d("sin",[E.clone()])]);break;case"tan":k=new p("^","pow",[new d("sec",[E.clone()]),O(2)]);break;case"sec":k=new p("*","multiply",[D,new d("tan",[E.clone()])]);break;case"csc":j=!0,k=new p("*","multiply",[D,new d("cot",[E.clone()])]);break;case"cot":j=!0,k=new p("^","pow",[new d("csc",[E.clone()]),O(2)]);break;case"asin":z=!0,k=new d("sqrt",[new p("-","subtract",[O(1),new p("^","pow",[E.clone(),O(2)])])]);break;case"acos":z=!0,j=!0,k=new d("sqrt",[new p("-","subtract",[O(1),new p("^","pow",[E.clone(),O(2)])])]);break;case"atan":z=!0,k=new p("+","add",[new p("^","pow",[E.clone(),O(2)]),O(1)]);break;case"asec":z=!0,k=new p("*","multiply",[new d("abs",[E.clone()]),new d("sqrt",[new p("-","subtract",[new p("^","pow",[E.clone(),O(2)]),O(1)])])]);break;case"acsc":z=!0,j=!0,k=new p("*","multiply",[new d("abs",[E.clone()]),new d("sqrt",[new p("-","subtract",[new p("^","pow",[E.clone(),O(2)]),O(1)])])]);break;case"acot":z=!0,j=!0,k=new p("+","add",[new p("^","pow",[E.clone(),O(2)]),O(1)]);break;case"sinh":k=new d("cosh",[E.clone()]);break;case"cosh":k=new d("sinh",[E.clone()]);break;case"tanh":k=new p("^","pow",[new d("sech",[E.clone()]),O(2)]);break;case"sech":j=!0,k=new p("*","multiply",[D,new d("tanh",[E.clone()])]);break;case"csch":j=!0,k=new p("*","multiply",[D,new d("coth",[E.clone()])]);break;case"coth":j=!0,k=new p("^","pow",[new d("csch",[E.clone()]),O(2)]);break;case"asinh":z=!0,k=new d("sqrt",[new p("+","add",[new p("^","pow",[E.clone(),O(2)]),O(1)])]);break;case"acosh":z=!0,k=new d("sqrt",[new p("-","subtract",[new p("^","pow",[E.clone(),O(2)]),O(1)])]);break;case"atanh":z=!0,k=new p("-","subtract",[O(1),new p("^","pow",[E.clone(),O(2)])]);break;case"asech":z=!0,j=!0,k=new p("*","multiply",[E.clone(),new d("sqrt",[new p("-","subtract",[O(1),new p("^","pow",[E.clone(),O(2)])])])]);break;case"acsch":z=!0,j=!0,k=new p("*","multiply",[new d("abs",[E.clone()]),new d("sqrt",[new p("+","add",[new p("^","pow",[E.clone(),O(2)]),O(1)])])]);break;case"acoth":z=!0,j=!0,k=new p("-","subtract",[O(1),new p("^","pow",[E.clone(),O(2)])]);break;case"abs":k=new p("/","divide",[new d(new y("abs"),[E.clone()]),E.clone()]);break;case"gamma":default:throw new Error('Cannot process function "'+D.name+'" in derivative: the function is not supported, undefined, or the number of arguments passed to it are not supported')}var $,V;z?($="/",V="divide"):($="*",V="multiply");var Z=_(E,I);return j&&(Z=new p("-","unaryMinus",[Z])),new p($,V,[Z,k])},"OperatorNode, Object":function(D,I){if(I[D]!==void 0)return O(0);if(D.op==="+")return new p(D.op,D.fn,D.args.map(function(d1){return _(d1,I)}));if(D.op==="-"){if(D.isUnary())return new p(D.op,D.fn,[_(D.args[0],I)]);if(D.isBinary())return new p(D.op,D.fn,[_(D.args[0],I),_(D.args[1],I)])}if(D.op==="*"){var E=D.args.filter(function(d1){return I[d1]!==void 0});if(E.length>0){var R=D.args.filter(function(d1){return I[d1]===void 0}),z=R.length===1?R[0]:new p("*","multiply",R),j=E.concat(_(z,I));return new p("*","multiply",j)}return new p("+","add",D.args.map(function(d1){return new p("*","multiply",D.args.map(function(n1){return n1===d1?_(n1,I):n1.clone()}))}))}if(D.op==="/"&&D.isBinary()){var k=D.args[0],$=D.args[1];return I[$]!==void 0?new p("/","divide",[_(k,I),$]):I[k]!==void 0?new p("*","multiply",[new p("-","unaryMinus",[k]),new p("/","divide",[_($,I),new p("^","pow",[$.clone(),O(2)])])]):new p("/","divide",[new p("-","subtract",[new p("*","multiply",[_(k,I),$.clone()]),new p("*","multiply",[k.clone(),_($,I)])]),new p("^","pow",[$.clone(),O(2)])])}if(D.op==="^"&&D.isBinary()){var V=D.args[0],Z=D.args[1];if(I[V]!==void 0)return Ge(V)&&(f(V.value)||u(V.value,1))?O(0):new p("*","multiply",[D,new p("*","multiply",[new d("log",[V.clone()]),_(Z.clone(),I)])]);if(I[Z]!==void 0){if(Ge(Z)){if(f(Z.value))return O(0);if(u(Z.value,1))return _(V,I)}var a1=new p("^","pow",[V.clone(),new p("-","subtract",[Z,O(1)])]);return new p("*","multiply",[Z.clone(),new p("*","multiply",[_(V,I),a1])])}return new p("*","multiply",[new p("^","pow",[V.clone(),Z.clone()]),new p("+","add",[new p("*","multiply",[_(V,I),new p("/","divide",[Z.clone(),V.clone()])]),new p("*","multiply",[_(Z,I),new d("log",[V.clone()])])])])}throw new Error('Cannot process operator "'+D.op+'" in derivative: the operator is not supported, undefined, or the number of arguments passed to it are not supported')}});function O(D,I){return new h(g(D,I||s.number))}return A}),rD="rationalize",Q31=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],J31=s1(rD,Q31,n=>{var{config:a,typed:s,equal:i,isZero:l,add:u,subtract:f,multiply:g,divide:h,pow:d,parse:p,simplifyConstant:m,simplifyCore:y,simplify:x,fraction:A,bignumber:C,mathWithTransform:L,matrix:_,AccessorNode:O,ArrayNode:D,ConstantNode:I,FunctionNode:E,IndexNode:R,ObjectNode:z,OperatorNode:j,SymbolNode:k,ParenthesisNode:$}=n;function V(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c1=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,X=a1(),L1=Z(J,W,!0,X.firstRules),Z1=L1.variables.length,A1={exactFractions:!1},f1={exactFractions:!0};if(J=L1.expression,Z1>=1){J=d1(J);var Q1,oe,z1=!0,q1=!1;J=x(J,X.firstRules,{},A1);for(var le;oe=z1?X.distrDivRules:X.sucDivRules,J=x(J,oe,{},f1),z1=!z1,le=J.toString(),le!==Q1;)q1=!0,Q1=le;q1&&(J=x(J,X.firstRulesAgain,{},A1)),J=x(J,X.finalRules,{},A1)}var $1=[],te={};return J.type==="OperatorNode"&&J.isBinary()&&J.op==="/"?(Z1===1&&(J.args[0]=n1(J.args[0],$1),J.args[1]=n1(J.args[1])),c1&&(te.numerator=J.args[0],te.denominator=J.args[1])):(Z1===1&&(J=n1(J,$1)),c1&&(te.numerator=J,te.denominator=null)),c1?(te.coefficients=$1,te.variables=L1.variables,te.expression=J,te):J}return s(rD,{Node:V,"Node, boolean":(J,W)=>V(J,{},W),"Node, Object":V,"Node, Object, boolean":V});function Z(J,W,c1,X){var L1=[],Z1=x(J,X,W,{exactFractions:!1});c1=!!c1;var A1="+-*"+(c1?"/":"");Q1(Z1);var f1={};return f1.expression=Z1,f1.variables=L1,f1;function Q1(oe){var z1=oe.type;if(z1==="FunctionNode")throw new Error("There is an unsolved function call");if(z1==="OperatorNode")if(oe.op==="^"){if(oe.args[1].type!=="ConstantNode"||!ke(parseFloat(oe.args[1].value)))throw new Error("There is a non-integer exponent");Q1(oe.args[0])}else{if(A1.indexOf(oe.op)===-1)throw new Error("Operator "+oe.op+" invalid in polynomial expression");for(var q1=0;q1<oe.args.length;q1++)Q1(oe.args[q1])}else if(z1==="SymbolNode"){var le=oe.name,$1=L1.indexOf(le);$1===-1&&L1.push(le)}else if(z1==="ParenthesisNode")Q1(oe.content);else if(z1!=="ConstantNode")throw new Error("type "+z1+" is not allowed in polynomial expression")}}function a1(){var J=[y,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},m,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],W=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],c1=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],X=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],L1={};return L1.firstRules=J.concat(W,X),L1.distrDivRules=c1,L1.sucDivRules=X,L1.firstRulesAgain=J.concat(W),L1.finalRules=[y,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},m,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],L1}function d1(J,W,c1){var X=J.type,L1=arguments.length>1;if(X==="OperatorNode"&&J.isBinary()){var Z1=!1,A1;if(J.op==="^"&&(J.args[0].type==="ParenthesisNode"||J.args[0].type==="OperatorNode")&&J.args[1].type==="ConstantNode"&&(A1=parseFloat(J.args[1].value),Z1=A1>=2&&ke(A1)),Z1){if(A1>2){var f1=J.args[0],Q1=new j("^","pow",[J.args[0].cloneDeep(),new I(A1-1)]);J=new j("*","multiply",[f1,Q1])}else J=new j("*","multiply",[J.args[0],J.args[0].cloneDeep()]);L1&&(c1==="content"?W.content=J:W.args[c1]=J)}}if(X==="ParenthesisNode")d1(J.content,J,"content");else if(X!=="ConstantNode"&&X!=="SymbolNode")for(var oe=0;oe<J.args.length;oe++)d1(J.args[oe],J,oe);if(!L1)return J}function n1(J,W){W===void 0&&(W=[]),W[0]=0;var c1={};c1.cte=1,c1.oper="+",c1.fire="";var X=0,L1="";le(J,null,c1),X=W.length-1;for(var Z1=!0,A1,f1=X;f1>=0;f1--)if(W[f1]!==0){var Q1=new I(Z1?W[f1]:Math.abs(W[f1])),oe=W[f1]<0?"-":"+";if(f1>0){var z1=new k(L1);if(f1>1){var q1=new I(f1);z1=new j("^","pow",[z1,q1])}W[f1]===-1&&Z1?Q1=new j("-","unaryMinus",[z1]):Math.abs(W[f1])===1?Q1=z1:Q1=new j("*","multiply",[Q1,z1])}Z1?A1=Q1:oe==="+"?A1=new j("+","add",[A1,Q1]):A1=new j("-","subtract",[A1,Q1]),Z1=!1}if(Z1)return new I(0);return A1;function le($1,te,ae){var fe=$1.type;if(fe==="FunctionNode")throw new Error("There is an unsolved function call");if(fe==="OperatorNode"){if("+-*^".indexOf($1.op)===-1)throw new Error("Operator "+$1.op+" invalid");if(te!==null){if(($1.fn==="unaryMinus"||$1.fn==="pow")&&te.fn!=="add"&&te.fn!=="subtract"&&te.fn!=="multiply")throw new Error("Invalid "+$1.op+" placing");if(($1.fn==="subtract"||$1.fn==="add"||$1.fn==="multiply")&&te.fn!=="add"&&te.fn!=="subtract")throw new Error("Invalid "+$1.op+" placing");if(($1.fn==="subtract"||$1.fn==="add"||$1.fn==="unaryMinus")&&ae.noFil!==0)throw new Error("Invalid "+$1.op+" placing")}($1.op==="^"||$1.op==="*")&&(ae.fire=$1.op);for(var Ee=0;Ee<$1.args.length;Ee++)$1.fn==="unaryMinus"&&(ae.oper="-"),($1.op==="+"||$1.fn==="subtract")&&(ae.fire="",ae.cte=1,ae.oper=Ee===0?"+":$1.op),ae.noFil=Ee,le($1.args[Ee],$1,ae)}else if(fe==="SymbolNode"){if($1.name!==L1&&L1!=="")throw new Error("There is more than one variable");if(L1=$1.name,te===null){W[1]=1;return}if(te.op==="^"&&ae.noFil!==0)throw new Error("In power the variable should be the first parameter");if(te.op==="*"&&ae.noFil!==1)throw new Error("In multiply the variable should be the second parameter");(ae.fire===""||ae.fire==="*")&&(X<1&&(W[1]=0),W[1]+=ae.cte*(ae.oper==="+"?1:-1),X=Math.max(1,X))}else if(fe==="ConstantNode"){var ze=parseFloat($1.value);if(te===null){W[0]=ze;return}if(te.op==="^"){if(ae.noFil!==1)throw new Error("Constant cannot be powered");if(!ke(ze)||ze<=0)throw new Error("Non-integer exponent is not allowed");for(var g1=X+1;g1<ze;g1++)W[g1]=0;ze>X&&(W[ze]=0),W[ze]+=ae.cte*(ae.oper==="+"?1:-1),X=Math.max(ze,X);return}ae.cte=ze,ae.fire===""&&(W[0]+=ae.cte*(ae.oper==="+"?1:-1))}else throw new Error("Type "+fe+" is not allowed")}}}),aD="zpk2tf",X31=["typed","add","multiply","Complex","number"],e01=s1(aD,X31,n=>{var{typed:a,add:s,multiply:i,Complex:l,number:u}=n;return a(aD,{"Array,Array,number":function(h,d,p){return f(h,d,p)},"Array,Array":function(h,d){return f(h,d,1)},"Matrix,Matrix,number":function(h,d,p){return f(h.valueOf(),d.valueOf(),p)},"Matrix,Matrix":function(h,d){return f(h.valueOf(),d.valueOf(),1)}});function f(h,d,p){h.some(O=>O.type==="BigNumber")&&(h=h.map(O=>u(O))),d.some(O=>O.type==="BigNumber")&&(d=d.map(O=>u(O)));for(var m=[l(1,0)],y=[l(1,0)],x=0;x<h.length;x++){var A=h[x];typeof A=="number"&&(A=l(A,0)),m=g(m,[l(1,0),l(-A.re,-A.im)])}for(var C=0;C<d.length;C++){var L=d[C];typeof L=="number"&&(L=l(L,0)),y=g(y,[l(1,0),l(-L.re,-L.im)])}for(var _=0;_<m.length;_++)m[_]=i(m[_],p);return[m,y]}function g(h,d){for(var p=[],m=0;m<h.length+d.length-1;m++){p[m]=l(0,0);for(var y=0;y<h.length;y++)m-y>=0&&m-y<d.length&&(p[m]=s(p[m],i(h[y],d[m-y])))}return p}}),iD="freqz",t01=["typed","add","multiply","Complex","divide","matrix"],n01=s1(iD,t01,n=>{var{typed:a,add:s,multiply:i,Complex:l,divide:u,matrix:f}=n;return a(iD,{"Array, Array":function(d,p){var m=h(512);return g(d,p,m)},"Array, Array, Array":function(d,p,m){return g(d,p,m)},"Array, Array, number":function(d,p,m){if(m<0)throw new Error("w must be a positive number");var y=h(m);return g(d,p,y)},"Matrix, Matrix":function(d,p){var m=h(512),{w:y,h:x}=g(d.valueOf(),p.valueOf(),m);return{w:f(y),h:f(x)}},"Matrix, Matrix, Matrix":function(d,p,m){var{h:y}=g(d.valueOf(),p.valueOf(),m.valueOf());return{h:f(y),w:f(m)}},"Matrix, Matrix, number":function(d,p,m){if(m<0)throw new Error("w must be a positive number");var y=h(m),{h:x}=g(d.valueOf(),p.valueOf(),y);return{h:f(x),w:f(y)}}});function g(d,p,m){for(var y=[],x=[],A=0;A<m.length;A++){for(var C=l(0,0),L=l(0,0),_=0;_<d.length;_++)C=s(C,i(d[_],l(Math.cos(-_*m[A]),Math.sin(-_*m[A]))));for(var O=0;O<p.length;O++)L=s(L,i(p[O],l(Math.cos(-O*m[A]),Math.sin(-O*m[A]))));y.push(C),x.push(L)}for(var D=[],I=0;I<y.length;I++)D.push(u(y[I],x[I]));return{h:D,w:m}}function h(d){for(var p=[],m=0;m<d;m++)p.push(m/d*Math.PI);return p}}),r01="reviver",a01=["classes"],i01=s1(r01,a01,n=>{var{classes:a}=n;return function(s,i){var l=a[i&&i.mathjs];return l&&typeof l.fromJSON=="function"?l.fromJSON(i):i}}),o01="replacer",s01=[],l01=s1(o01,s01,()=>function(n,a){return typeof a=="number"&&(!isFinite(a)||isNaN(a))?{mathjs:"number",value:String(a)}:a}),u01="12.3.1",c01=s1("true",[],()=>!0),f01=s1("false",[],()=>!1),p01=s1("null",[],()=>null),d01=Ur("Infinity",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s(1/0):1/0}),m01=Ur("NaN",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s(NaN):NaN}),h01=Ur("pi",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?Jd(s):m4}),g01=Ur("tau",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?JZ(s):e0}),y01=Ur("e",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?ZZ(s):p6}),v01=Ur("phi",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?QZ(s):Uc}),b01=Ur("LN2",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s(2).ln():Math.LN2}),x01=Ur("LN10",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s(10).ln():Math.LN10}),w01=Ur("LOG2E",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s(1).div(new s(2).ln()):Math.LOG2E}),N01=Ur("LOG10E",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s(1).div(new s(10).ln()):Math.LOG10E}),A01=Ur("SQRT1_2",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s("0.5").sqrt():Math.SQRT1_2}),D01=Ur("SQRT2",["config","?BigNumber"],n=>{var{config:a,BigNumber:s}=n;return a.number==="BigNumber"?new s(2).sqrt():Math.SQRT2}),C01=Ur("i",["Complex"],n=>{var{Complex:a}=n;return a.I}),_01=s1("version",[],()=>u01);function Ur(n,a,s){return s1(n,a,s,{recreateOnConfigChange:!0})}var M01=bt("speedOfLight","299792458","m s^-1"),E01=bt("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),S01=bt("planckConstant","6.62607015e-34","J s"),T01=bt("reducedPlanckConstant","1.0545718176461565e-34","J s"),I01=bt("magneticConstant","1.25663706212e-6","N A^-2"),O01=bt("electricConstant","8.8541878128e-12","F m^-1"),L01=bt("vacuumImpedance","376.730313667","ohm"),B01=bt("coulomb","8.987551792261171e9","N m^2 C^-2"),R01=bt("elementaryCharge","1.602176634e-19","C"),F01=bt("bohrMagneton","9.2740100783e-24","J T^-1"),k01=bt("conductanceQuantum","7.748091729863649e-5","S"),z01=bt("inverseConductanceQuantum","12906.403729652257","ohm"),P01=bt("magneticFluxQuantum","2.0678338484619295e-15","Wb"),j01=bt("nuclearMagneton","5.0507837461e-27","J T^-1"),H01=bt("klitzing","25812.807459304513","ohm"),$01=bt("bohrRadius","5.29177210903e-11","m"),U01=bt("classicalElectronRadius","2.8179403262e-15","m"),V01=bt("electronMass","9.1093837015e-31","kg"),q01=bt("fermiCoupling","1.1663787e-5","GeV^-2"),Y01=dl("fineStructure",.0072973525693),W01=bt("hartreeEnergy","4.3597447222071e-18","J"),G01=bt("protonMass","1.67262192369e-27","kg"),K01=bt("deuteronMass","3.3435830926e-27","kg"),Z01=bt("neutronMass","1.6749271613e-27","kg"),Q01=bt("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),J01=bt("rydberg","10973731.568160","m^-1"),X01=bt("thomsonCrossSection","6.6524587321e-29","m^2"),ea1=dl("weakMixingAngle",.2229),ta1=dl("efimovFactor",22.7),na1=bt("atomicMass","1.66053906660e-27","kg"),ra1=bt("avogadro","6.02214076e23","mol^-1"),aa1=bt("boltzmann","1.380649e-23","J K^-1"),ia1=bt("faraday","96485.33212331001","C mol^-1"),oa1=bt("firstRadiation","3.7417718521927573e-16","W m^2"),sa1=bt("loschmidt","2.686780111798444e25","m^-3"),la1=bt("gasConstant","8.31446261815324","J K^-1 mol^-1"),ua1=bt("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),ca1=bt("molarVolume","0.022413969545014137","m^3 mol^-1"),fa1=dl("sackurTetrode",-1.16487052358),pa1=bt("secondRadiation","0.014387768775039337","m K"),da1=bt("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),ma1=bt("wienDisplacement","2.897771955e-3","m K"),ha1=bt("molarMass","0.99999999965e-3","kg mol^-1"),ga1=bt("molarMassC12","11.9999999958e-3","kg mol^-1"),ya1=bt("gravity","9.80665","m s^-2"),va1=bt("planckLength","1.616255e-35","m"),ba1=bt("planckMass","2.176435e-8","kg"),xa1=bt("planckTime","5.391245e-44","s"),wa1=bt("planckCharge","1.87554603778e-18","C"),Na1=bt("planckTemperature","1.416785e+32","K");function bt(n,a,s){var i=["config","Unit","BigNumber"];return s1(n,i,l=>{var{config:u,Unit:f,BigNumber:g}=l,h=u.number==="BigNumber"?new g(a):parseFloat(a),d=new f(h,s);return d.fixPrefix=!0,d})}function dl(n,a){var s=["config","BigNumber"];return s1(n,s,i=>{var{config:l,BigNumber:u}=i;return l.number==="BigNumber"?new u(a):a})}var Aa1="apply",Da1=["typed","isInteger"],Ca1=s1(Aa1,Da1,n=>{var{typed:a,isInteger:s}=n,i=Qi({typed:a,isInteger:s});return a("apply",{"...any":function(l){var u=l[1];h1(u)?l[1]=u-1:l1(u)&&(l[1]=u.minus(1));try{return i.apply(null,l)}catch(f){throw sr(f)}}})},{isTransformFunction:!0}),_a1="column",Ma1=["typed","Index","matrix","range"],Ea1=s1(_a1,Ma1,n=>{var{typed:a,Index:s,matrix:i,range:l}=n,u=N4({typed:a,Index:s,matrix:i,range:l});return a("column",{"...any":function(f){var g=f.length-1,h=f[g];h1(h)&&(f[g]=h-1);try{return u.apply(null,f)}catch(d){throw sr(d)}}})},{isTransformFunction:!0});function um(n,a,s){var i=n.filter(function(g){return jt(g)&&!(g.name in a)&&!s.has(g.name)})[0];if(!i)throw new Error('No undefined variable found in inline expression "'+n+'"');var l=i.name,u=v5(s),f=n.compile();return function(g){return u.set(l,g),f.evaluate(u)}}var Sa1="filter",Ta1=["typed"],Ia1=s1(Sa1,Ta1,n=>{var{typed:a}=n;function s(l,u,f){var g,h;return l[0]&&(g=l[0].compile().evaluate(f)),l[1]&&(jt(l[1])||qt(l[1])?h=l[1].compile().evaluate(f):h=um(l[1],u,f)),i(g,h)}s.rawArgs=!0;var i=a("filter",{"Array, function":oD,"Matrix, function":function(l,u){return l.create(oD(l.toArray(),u))},"Array, RegExp":ei,"Matrix, RegExp":function(l,u){return l.create(ei(l.toArray(),u))}});return s},{isTransformFunction:!0});function oD(n,a){return C8(n,function(s,i,l){return ba(a,s,[i+1],l,"filter")})}var Oa1="forEach",La1=["typed"],Ba1=s1(Oa1,La1,n=>{var{typed:a}=n;function s(l,u,f){var g,h;return l[0]&&(g=l[0].compile().evaluate(f)),l[1]&&(jt(l[1])||qt(l[1])?h=l[1].compile().evaluate(f):h=um(l[1],u,f)),i(g,h)}s.rawArgs=!0;var i=a("forEach",{"Array | Matrix, function":function(l,u){var f=function g(h,d){if(Array.isArray(h))X4(h,function(p,m){g(p,d.concat(m+1))});else return ba(u,h,d,l,"forEach")};f(l.valueOf(),[])}});return s},{isTransformFunction:!0}),Ra1="index",Fa1=["Index","getMatrixDataType"],ka1=s1(Ra1,Fa1,n=>{var{Index:a,getMatrixDataType:s}=n;return function(){for(var i=[],l=0,u=arguments.length;l<u;l++){var f=arguments[l];if(se(f))f.start--,f.end-=f.step>0?0:2;else if(f&&f.isSet===!0)f=f.map(function(h){return h-1});else if(O1(f)||M1(f))s(f)!=="boolean"&&(f=f.map(function(h){return h-1}));else if(h1(f))f--;else if(l1(f))f=f.toNumber()-1;else if(typeof f!="string")throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");i[l]=f}var g=new a;return a.apply(g,i),g}},{isTransformFunction:!0}),za1="map",Pa1=["typed"],ja1=s1(za1,Pa1,n=>{var{typed:a}=n;function s(l,u,f){var g,h;return l[0]&&(g=l[0].compile().evaluate(f)),l[1]&&(jt(l[1])||qt(l[1])?h=l[1].compile().evaluate(f):h=um(l[1],u,f)),i(g,h)}s.rawArgs=!0;var i=a("map",{"Array, function":function(l,u){return sD(l,u,l)},"Matrix, function":function(l,u){return l.create(sD(l.valueOf(),u,l))}});return s},{isTransformFunction:!0});function sD(n,a,s){function i(l,u){return Array.isArray(l)?yr(l,function(f,g){return i(f,u.concat(g+1))}):ba(a,l,u,s,"map")}return i(n,[])}function Ca(n){if(n.length===2&&_1(n[0])){n=n.slice();var a=n[1];h1(a)?n[1]=a-1:l1(a)&&(n[1]=a.minus(1))}return n}var Ha1="max",$a1=["typed","config","numeric","larger"],Ua1=s1(Ha1,$a1,n=>{var{typed:a,config:s,numeric:i,larger:l}=n,u=Uw({typed:a,config:s,numeric:i,larger:l});return a("max",{"...any":function(f){f=Ca(f);try{return u.apply(null,f)}catch(g){throw sr(g)}}})},{isTransformFunction:!0}),Va1="mean",qa1=["typed","add","divide"],Ya1=s1(Va1,qa1,n=>{var{typed:a,add:s,divide:i}=n,l=hA({typed:a,add:s,divide:i});return a("mean",{"...any":function(u){u=Ca(u);try{return l.apply(null,u)}catch(f){throw sr(f)}}})},{isTransformFunction:!0}),Wa1="min",Ga1=["typed","config","numeric","smaller"],Ka1=s1(Wa1,Ga1,n=>{var{typed:a,config:s,numeric:i,smaller:l}=n,u=qw({typed:a,config:s,numeric:i,smaller:l});return a("min",{"...any":function(f){f=Ca(f);try{return u.apply(null,f)}catch(g){throw sr(g)}}})},{isTransformFunction:!0}),Za1="range",Qa1=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq","add","isPositive"],Ja1=s1(Za1,Qa1,n=>{var{typed:a,config:s,matrix:i,bignumber:l,smaller:u,smallerEq:f,larger:g,largerEq:h,add:d,isPositive:p}=n,m=t5({typed:a,config:s,matrix:i,bignumber:l,smaller:u,smallerEq:f,larger:g,largerEq:h,add:d,isPositive:p});return a("range",{"...any":function(y){var x=y.length-1,A=y[x];return typeof A!="boolean"&&y.push(!0),m.apply(null,y)}})},{isTransformFunction:!0}),Xa1="row",e41=["typed","Index","matrix","range"],t41=s1(Xa1,e41,n=>{var{typed:a,Index:s,matrix:i,range:l}=n,u=Nt({typed:a,Index:s,matrix:i,range:l});return a("row",{"...any":function(f){var g=f.length-1,h=f[g];h1(h)&&(f[g]=h-1);try{return u.apply(null,f)}catch(d){throw sr(d)}}})},{isTransformFunction:!0}),n41="subset",r41=["typed","matrix","zeros","add"],a41=s1(n41,r41,n=>{var{typed:a,matrix:s,zeros:i,add:l}=n,u=ss({typed:a,matrix:s,zeros:i,add:l});return a("subset",{"...any":function(f){try{return u.apply(null,f)}catch(g){throw sr(g)}}})},{isTransformFunction:!0}),i41="concat",o41=["typed","matrix","isInteger"],s41=s1(i41,o41,n=>{var{typed:a,matrix:s,isInteger:i}=n,l=$7({typed:a,matrix:s,isInteger:i});return a("concat",{"...any":function(u){var f=u.length-1,g=u[f];h1(g)?u[f]=g-1:l1(g)&&(u[f]=g.minus(1));try{return l.apply(null,u)}catch(h){throw sr(h)}}})},{isTransformFunction:!0}),lD="diff",l41=["typed","matrix","subtract","number","bignumber"],u41=s1(lD,l41,n=>{var{typed:a,matrix:s,subtract:i,number:l,bignumber:u}=n,f=wn({typed:a,matrix:s,subtract:i,number:l,bignumber:u});return a(lD,{"...any":function(g){g=Ca(g);try{return f.apply(null,g)}catch(h){throw sr(h)}}})},{isTransformFunction:!0}),c41="std",f41=["typed","map","sqrt","variance"],p41=s1(c41,f41,n=>{var{typed:a,map:s,sqrt:i,variance:l}=n,u=AA({typed:a,map:s,sqrt:i,variance:l});return a("std",{"...any":function(f){f=Ca(f);try{return u.apply(null,f)}catch(g){throw sr(g)}}})},{isTransformFunction:!0}),uD="sum",d41=["typed","config","add","numeric"],m41=s1(uD,d41,n=>{var{typed:a,config:s,add:i,numeric:l}=n,u=pA({typed:a,config:s,add:i,numeric:l});return a(uD,{"...any":function(f){f=Ca(f);try{return u.apply(null,f)}catch(g){throw sr(g)}}})},{isTransformFunction:!0}),h41="quantileSeq",g41=["typed","bignumber","add","subtract","divide","multiply","partitionSelect","compare","isInteger","smaller","smallerEq","larger"],y41=s1(h41,g41,n=>{var{typed:a,bignumber:s,add:i,subtract:l,divide:u,multiply:f,partitionSelect:g,compare:h,isInteger:d,smaller:p,smallerEq:m,larger:y}=n,x=wA({typed:a,bignumber:s,add:i,subtract:l,divide:u,multiply:f,partitionSelect:g,compare:h,isInteger:d,smaller:p,smallerEq:m,larger:y});return a("quantileSeq",{"Array | Matrix, number | BigNumber":x,"Array | Matrix, number | BigNumber, number":(C,L,_)=>x(C,L,A(_)),"Array | Matrix, number | BigNumber, boolean":x,"Array | Matrix, number | BigNumber, boolean, number":(C,L,_,O)=>x(C,L,_,A(O)),"Array | Matrix, Array | Matrix":x,"Array | Matrix, Array | Matrix, number":(C,L,_)=>x(C,L,A(_)),"Array | Matrix, Array | Matrix, boolean":x,"Array | Matrix, Array | Matrix, boolean, number":(C,L,_,O)=>x(C,L,_,A(O))});function A(C){return Ca([[],C])[1]}},{isTransformFunction:!0}),cD="cumsum",v41=["typed","add","unaryPlus"],b41=s1(cD,v41,n=>{var{typed:a,add:s,unaryPlus:i}=n,l=dA({typed:a,add:s,unaryPlus:i});return a(cD,{"...any":function(u){if(u.length===2&&_1(u[0])){var f=u[1];h1(f)?u[1]=f-1:l1(f)&&(u[1]=f.minus(1))}try{return l.apply(null,u)}catch(g){throw sr(g)}}})},{isTransformFunction:!0}),fD="variance",x41=["typed","add","subtract","multiply","divide","apply","isNaN"],w41=s1(fD,x41,n=>{var{typed:a,add:s,subtract:i,multiply:l,divide:u,apply:f,isNaN:g}=n,h=bA({typed:a,add:s,subtract:i,multiply:l,divide:u,apply:f,isNaN:g});return a(fD,{"...any":function(d){d=Ca(d);try{return h.apply(null,d)}catch(p){throw sr(p)}}})},{isTransformFunction:!0}),pD="print",N41=["typed","matrix","zeros","add"],A41=s1(pD,N41,n=>{var{typed:a,matrix:s,zeros:i,add:l}=n,u=_s({typed:a,matrix:s,zeros:i,add:l});return a(pD,{"string, Object | Array":function(g,h){return u(f(g),h)},"string, Object | Array, number | Object":function(g,h,d){return u(f(g),h,d)}});function f(g){return g.replace(Ds,h=>{var d=h.slice(1).split("."),p=d.map(function(m){return!isNaN(m)&&m.length>0?parseInt(m)-1:m});return"$"+p.join(".")})}},{isTransformFunction:!0}),D41="and",C41=["typed","matrix","zeros","add","equalScalar","not","concat"],_41=s1(D41,C41,n=>{var{typed:a,matrix:s,equalScalar:i,zeros:l,not:u,concat:f}=n,g=m1({typed:a,matrix:s,equalScalar:i,zeros:l,not:u,concat:f});function h(d,p,m){var y=d[0].compile().evaluate(m);if(!_1(y)&&!g(y,!0))return!1;var x=d[1].compile().evaluate(m);return g(y,x)}return h.rawArgs=!0,h},{isTransformFunction:!0}),M41="or",E41=["typed","matrix","equalScalar","DenseMatrix","concat"],S41=s1(M41,E41,n=>{var{typed:a,matrix:s,equalScalar:i,DenseMatrix:l,concat:u}=n,f=so({typed:a,matrix:s,equalScalar:i,DenseMatrix:l,concat:u});function g(h,d,p){var m=h[0].compile().evaluate(p);if(!_1(m)&&f(m,!1))return!0;var y=h[1].compile().evaluate(p);return f(m,y)}return g.rawArgs=!0,g},{isTransformFunction:!0}),T41="bitAnd",I41=["typed","matrix","zeros","add","equalScalar","not","concat"],O41=s1(T41,I41,n=>{var{typed:a,matrix:s,equalScalar:i,zeros:l,not:u,concat:f}=n,g=E7({typed:a,matrix:s,equalScalar:i,zeros:l,not:u,concat:f});function h(d,p,m){var y=d[0].compile().evaluate(m);if(!_1(y)){if(isNaN(y))return NaN;if(y===0||y===!1)return 0}var x=d[1].compile().evaluate(m);return g(y,x)}return h.rawArgs=!0,h},{isTransformFunction:!0}),L41="bitOr",B41=["typed","matrix","equalScalar","DenseMatrix","concat"],R41=s1(L41,B41,n=>{var{typed:a,matrix:s,equalScalar:i,DenseMatrix:l,concat:u}=n,f=I7({typed:a,matrix:s,equalScalar:i,DenseMatrix:l,concat:u});function g(h,d,p){var m=h[0].compile().evaluate(p);if(!_1(m)){if(isNaN(m))return NaN;if(m===-1)return-1;if(m===!0)return 1}var y=h[1].compile().evaluate(p);return f(m,y)}return g.rawArgs=!0,g},{isTransformFunction:!0}),Te=Xn({config:X1}),mn=oa({}),dD=y01({BigNumber:Te,config:X1}),F41=f01({}),k41=Y01({BigNumber:Te,config:X1}),D4=Bc({}),mD=C01({Complex:mn}),z41=d01({BigNumber:Te,config:X1}),P41=x01({BigNumber:Te,config:X1}),j41=N01({BigNumber:Te,config:X1}),ml=W8({}),H41=m01({BigNumber:Te,config:X1}),$41=p01({}),U41=v01({BigNumber:Te,config:X1}),V41=kc({}),hD=si({}),q41=A01({BigNumber:Te,config:X1}),Y41=fa1({BigNumber:Te,config:X1}),gD=g01({BigNumber:Te,config:X1}),W41=c01({}),G41=_01({}),At=zc({Matrix:ml}),K41=ta1({BigNumber:Te,config:X1}),Z41=b01({BigNumber:Te,config:X1}),cm=h01({BigNumber:Te,config:X1}),Q41=l01({}),J41=D01({BigNumber:Te,config:X1}),x1=O8({BigNumber:Te,Complex:mn,DenseMatrix:At,Fraction:D4}),fm=rf({BigNumber:Te,config:X1,typed:x1}),X41=ea1({BigNumber:Te,config:X1}),lr=V6({typed:x1}),ei1=uQ({Complex:mn,config:X1,typed:x1}),ti1=dQ({BigNumber:Te,typed:x1}),ni1=yQ({BigNumber:Te,Complex:mn,config:X1,typed:x1}),m2=Y6({typed:x1}),ri1=dp({typed:x1}),ai1=AQ({BigNumber:Te,Complex:mn,config:X1,typed:x1}),ii1=EQ({typed:x1}),yD=IQ({typed:x1}),oi1=RQ({Complex:mn,config:X1,typed:x1}),ur=Jc({BigNumber:Te,typed:x1}),si1=lp({typed:x1}),li1=L6({typed:x1}),ui1=I0({typed:x1}),hl=Hr1({typed:x1}),gl=R6({Complex:mn,typed:x1}),C4=hp({typed:x1}),pm=kQ({typed:x1}),ci1=HQ({BigNumber:Te,typed:x1}),fi1=qQ({BigNumber:Te,typed:x1}),pi1=ff({typed:x1}),Tt=ar({config:X1,typed:x1}),di1=sd({typed:x1}),vD=_3({typed:x1}),mi1=df({Complex:mn,typed:x1}),hi1=Sp({typed:x1}),gi1=L0({typed:x1}),b5=md({typed:x1}),dm=Un({typed:x1}),yi1=xd({format:b5,typed:x1}),mm=yp({typed:x1}),Or=Hc({typed:x1}),_a=Vc({typed:x1}),_4=Wc({typed:x1}),O3=Gc({typed:x1}),vi1=w01({BigNumber:Te,config:X1}),bi1=Wr1({Complex:mn,typed:x1}),xi1=m7({Complex:mn,config:X1,typed:x1}),bD=Bf({Complex:mn,config:X1,typed:x1}),M4=Rp({typed:x1}),Gn=Ff({typed:x1}),yl=xp({typed:x1}),F0=I9({typed:x1}),wi1=vd({format:b5,typed:x1}),Ni1=b31({config:X1,typed:x1}),Ai1=_s({typed:x1}),Di1=w31({config:X1,typed:x1}),hm=bp({typed:x1}),Ci1=KQ({BigNumber:Te,typed:x1}),xD=$f({BigNumber:Te,Fraction:D4,complex:gl,typed:x1}),vl=XQ({typed:x1}),k0=S6({Matrix:ml,equalScalar:Tt,typed:x1}),_i1=$6({typed:x1}),Mi1=Wf({typed:x1}),Ei1=Zc({typed:x1}),o3=C3({typed:x1}),Si1=rJ({typed:x1}),wD=Cr({typed:x1}),Ti1=fQ({Complex:mn,config:X1,typed:x1}),Ii1=bQ({BigNumber:Te,typed:x1}),gm=Qi({isInteger:Or,typed:x1}),Oi1=wQ({BigNumber:Te,Complex:mn,config:X1,typed:x1}),Li1=gd({format:b5,typed:x1}),Bi1=Ur1({typed:x1}),Ri1=PQ({typed:x1}),Fi1=WQ({BigNumber:Te,typed:x1}),x5=_6({typed:x1}),ki1=Cd({typed:x1}),zi1=A31({config:X1,typed:x1}),Pi1=QQ({BigNumber:Te,typed:x1}),ji1=tJ({typed:x1}),Hi1=iQ({SparseMatrix:k0,typed:x1}),L3=qf({Complex:mn,config:X1,typed:x1}),$i1=oJ({typed:x1}),c0=Yi({typed:x1}),Ui1=hQ({BigNumber:Te,Complex:mn,config:X1,typed:x1}),Vi1=UQ({BigNumber:Te,typed:x1}),yo=k6({Fraction:D4,typed:x1}),E4=qc({typed:x1}),Me=tf({DenseMatrix:At,Matrix:ml,SparseMatrix:k0,typed:x1}),qi1=ha({isZero:O3,matrix:Me,typed:x1}),Yi1=fd({isNaN:x5,isNumeric:E4,typed:x1}),B3=Ts({bignumber:ur,fraction:yo,number:F0}),ND=pd({config:X1,multiplyScalar:Gn,numeric:B3,typed:x1}),AD=zp({isInteger:Or,matrix:Me,typed:x1}),F2=is({matrix:Me,config:X1,typed:x1}),Wi1=Up({matrix:Me,typed:x1}),w5=Gp({matrix:Me,typed:x1}),DD=N7({BigNumber:Te,config:X1,matrix:Me,typed:x1}),k2=o5({BigNumber:Te,config:X1,matrix:Me,typed:x1}),Gi1=CQ({Complex:mn,config:X1,typed:x1}),CD=z9({BigNumber:Te,Complex:mn,Fraction:D4,config:X1,isNegative:_a,matrix:Me,typed:x1,unaryMinus:c0}),$t=$7({isInteger:Or,matrix:Me,typed:x1}),Ki1=Z9({prod:ND,size:F2,typed:x1}),ym=Zp({conj:C4,transpose:w5,typed:x1}),_D=_p({DenseMatrix:At,SparseMatrix:k0,matrix:Me,typed:x1}),zn=Ed({numeric:B3,typed:x1}),N5=kd({DenseMatrix:At,concat:$t,divideScalar:zn,equalScalar:Tt,matrix:Me,typed:x1}),s3=or({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),A5=$r({matrix:Me,typed:x1}),Zi1=_9({isNumeric:E4,typed:x1}),Ma=Op({BigNumber:Te,DenseMatrix:At,SparseMatrix:k0,config:X1,matrix:Me,typed:x1}),Qi1=Bp({matrix:Me,multiplyScalar:Gn,typed:x1}),bl=CZ({DenseMatrix:At,concat:$t,config:X1,matrix:Me,typed:x1}),Ji1=Kd({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1,zeros:k2}),MD=Pd({DenseMatrix:At,divideScalar:zn,equalScalar:Tt,matrix:Me,multiplyScalar:Gn,subtractScalar:o3,typed:x1}),vm=y4({flatten:A5,matrix:Me,size:F2,typed:x1}),Xi1=jf({BigNumber:Te,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),eo1=Fp({BigNumber:Te,config:X1,matrix:Me,typed:x1}),bm=$X({addScalar:m2,complex:gl,conj:C4,divideScalar:zn,equal:s3,identity:Ma,isZero:O3,matrix:Me,multiplyScalar:Gn,sign:xD,sqrt:L3,subtractScalar:o3,typed:x1,unaryMinus:c0,zeros:k2}),to1=ir({config:X1,matrix:Me}),no1=Qd({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1,zeros:k2}),S4=d5({BigNumber:Te,DenseMatrix:At,equalScalar:Tt,matrix:Me,typed:x1,zeros:k2}),cr=gZ({DenseMatrix:At,concat:$t,config:X1,matrix:Me,typed:x1}),Kn=Kf({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,subtractScalar:o3,typed:x1,unaryMinus:c0}),ro1=Ad({concat:$t,matrix:Me,typed:x1}),ao1=TZ({DenseMatrix:At,concat:$t,config:X1,equalScalar:Tt,matrix:Me,typed:x1}),xm=Hd({DenseMatrix:At,divideScalar:zn,equalScalar:Tt,matrix:Me,multiplyScalar:Gn,subtractScalar:o3,typed:x1}),io1=H7({DenseMatrix:At,concat:$t,matrix:Me,typed:x1}),Bt=EJ({DenseMatrix:At,SparseMatrix:k0,addScalar:m2,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),oo1=LQ({BigNumber:Te,DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),so1=E7({concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),lo1=I7({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),uo1=pp({DenseMatrix:At,concat:$t,matrix:Me,typed:x1}),co1=S31({addScalar:m2,combinations:hl,divideScalar:zn,isInteger:Or,isNegative:_a,multiplyScalar:Gn,typed:x1}),T4=j1({BigNumber:Te,DenseMatrix:At,Fraction:D4,concat:$t,config:X1,equalScalar:Tt,matrix:Me,typed:x1}),ED=Pt({concat:$t,matrix:Me,typed:x1}),fo1=dA({add:Bt,typed:x1,unaryPlus:fm}),wm=EZ({equal:s3,typed:x1}),po1=wn({matrix:Me,number:F0,subtract:Kn,typed:x1}),do1=Dr1({abs:lr,addScalar:m2,deepEqual:wm,divideScalar:zn,multiplyScalar:Gn,sqrt:L3,subtractScalar:o3,typed:x1}),xl=BJ({addScalar:m2,conj:C4,multiplyScalar:Gn,size:F2,typed:x1}),mo1=Us({compareText:ED,isZero:O3,typed:x1}),SD=X6({DenseMatrix:At,config:X1,equalScalar:Tt,matrix:Me,round:S4,typed:x1,zeros:k2}),ho1=Ef({BigNumber:Te,DenseMatrix:At,concat:$t,config:X1,equalScalar:Tt,matrix:Me,round:S4,typed:x1,zeros:k2}),go1=TJ({abs:lr,addScalar:m2,divideScalar:zn,isPositive:_4,multiplyScalar:Gn,smaller:cr,sqrt:L3,typed:x1}),TD=jZ({DenseMatrix:At,smaller:cr}),q2=UZ({ImmutableDenseMatrix:TD,getMatrixDataType:dm}),fr=NZ({DenseMatrix:At,concat:$t,config:X1,matrix:Me,typed:x1}),Nm=Id({Complex:mn,config:X1,divideScalar:zn,typed:x1}),yo1=Ud({DenseMatrix:At,divideScalar:zn,equalScalar:Tt,matrix:Me,multiplyScalar:Gn,subtractScalar:o3,typed:x1}),vo1=nf({flatten:A5,matrix:Me,size:F2,typed:x1}),bo1=qw({config:X1,numeric:B3,smaller:cr,typed:x1}),ID=s7({DenseMatrix:At,concat:$t,config:X1,equalScalar:Tt,matrix:Me,round:S4,typed:x1,zeros:k2}),Xt=zf({addScalar:m2,dot:xl,equalScalar:Tt,matrix:Me,multiplyScalar:Gn,typed:x1}),xo1=Bd({Complex:mn,config:X1,divideScalar:zn,typed:x1}),wo1=so({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),wl=LZ({compare:T4,isNaN:x5,isNumeric:E4,typed:x1}),No1=M({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1,zeros:k2}),OD=p11({SparseMatrix:k0,abs:lr,add:Bt,divideScalar:zn,larger:fr,largerEq:bl,multiply:Xt,subtract:Kn,transpose:w5,typed:x1}),Vr=ss({add:Bt,matrix:Me,typed:x1,zeros:k2}),Am=pA({add:Bt,config:X1,numeric:B3,typed:x1}),Ao1=kJ({add:Bt,matrix:Me,typed:x1}),LD=qd({DenseMatrix:At,divideScalar:zn,equalScalar:Tt,matrix:Me,multiplyScalar:Gn,subtractScalar:o3,typed:x1}),Do1=e01({Complex:mn,add:Bt,multiply:Xt,number:F0,typed:x1}),Dm=G6({DenseMatrix:At,config:X1,equalScalar:Tt,matrix:Me,round:S4,typed:x1,zeros:k2}),f0=ot({compare:T4,typed:x1}),Co1=I31({addScalar:m2,combinations:hl,isInteger:Or,isNegative:_a,isPositive:_4,larger:fr,typed:x1}),_o1=Dp({matrix:Me,multiply:Xt,subtract:Kn,typed:x1}),BD=er1({divideScalar:zn,isZero:O3,matrix:Me,multiply:Xt,subtractScalar:o3,typed:x1,unaryMinus:c0}),Mo1=_7({concat:$t,equalScalar:Tt,matrix:Me,multiplyScalar:Gn,typed:x1}),RD=YZ({larger:fr,smaller:cr}),FD=x4({Complex:mn,DenseMatrix:At,ceil:Dm,equalScalar:Tt,floor:SD,matrix:Me,typed:x1,zeros:k2}),kD=PJ({Index:q2,typed:x1}),Eo1=Mr1({abs:lr,add:Bt,addScalar:m2,config:X1,divideScalar:zn,equalScalar:Tt,flatten:A5,isNumeric:E4,isZero:O3,matrix:Me,multiply:Xt,multiplyScalar:Gn,smaller:cr,subtract:Kn,typed:x1}),So1=Qf({BigNumber:Te,add:Bt,config:X1,equal:s3,isInteger:Or,mod:ID,smaller:cr,typed:x1,xgcd:DD}),To1=If({concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),Io1=Od({Complex:mn,config:X1,divideScalar:zn,log:Nm,typed:x1}),Cm=Uw({config:X1,larger:fr,numeric:B3,typed:x1}),Oo1=lJ({DenseMatrix:At,Index:q2,compareNatural:f0,size:F2,subset:Vr,typed:x1}),Lo1=pJ({DenseMatrix:At,Index:q2,compareNatural:f0,size:F2,subset:Vr,typed:x1}),Bo1=gJ({Index:q2,compareNatural:f0,size:F2,subset:Vr,typed:x1}),Ro1=xJ({Index:q2,compareNatural:f0,size:F2,subset:Vr,typed:x1}),vo=bZ({DenseMatrix:At,concat:$t,config:X1,matrix:Me,typed:x1}),Fo1=RZ({compare:T4,compareNatural:f0,matrix:Me,typed:x1}),ko1=m1({concat:$t,equalScalar:Tt,matrix:Me,not:yl,typed:x1,zeros:k2}),bo=t5({bignumber:ur,matrix:Me,add:Bt,config:X1,isPositive:_4,larger:fr,largerEq:bl,smaller:cr,smallerEq:vo,typed:x1}),zo1=Nt({Index:q2,matrix:Me,range:bo,typed:x1}),zD=cJ({DenseMatrix:At,Index:q2,compareNatural:f0,size:F2,subset:Vr,typed:x1}),Po1=vJ({Index:q2,compareNatural:f0,size:F2,subset:Vr,typed:x1}),PD=DJ({Index:q2,concat:$t,setDifference:zD,size:F2,subset:Vr,typed:x1}),jD=KZ({FibonacciHeap:RD,addScalar:m2,equalScalar:Tt}),HD=N4({Index:q2,matrix:Me,range:bo,typed:x1}),I4=nr1({abs:lr,addScalar:m2,det:BD,divideScalar:zn,identity:Ma,matrix:Me,multiply:Xt,typed:x1,unaryMinus:c0}),$D=jX({DenseMatrix:At,Spa:jD,SparseMatrix:k0,abs:lr,addScalar:m2,divideScalar:zn,equalScalar:Tt,larger:fr,matrix:Me,multiplyScalar:Gn,subtractScalar:o3,typed:x1,unaryMinus:c0}),jo1=ar1({Complex:mn,add:Bt,ctranspose:ym,deepEqual:wm,divideScalar:zn,dot:xl,dotDivide:N5,equal:s3,inv:I4,matrix:Me,multiply:Xt,typed:x1}),l3=Sd({Complex:mn,config:X1,fraction:yo,identity:Ma,inv:I4,matrix:Me,multiply:Xt,number:F0,typed:x1}),UD=mJ({DenseMatrix:At,Index:q2,compareNatural:f0,size:F2,subset:Vr,typed:x1}),Ho1=_J({Index:q2,concat:$t,setIntersect:UD,setSymDifference:PD,size:F2,subset:Vr,typed:x1}),$o1=dr1({abs:lr,add:Bt,identity:Ma,inv:I4,map:M4,max:Cm,multiply:Xt,size:F2,sqrt:L3,subtract:Kn,typed:x1}),pt=tQ({BigNumber:Te,Complex:mn,Fraction:D4,abs:lr,addScalar:m2,config:X1,divideScalar:zn,equal:s3,fix:FD,format:b5,isNumeric:E4,multiplyScalar:Gn,number:F0,pow:l3,round:S4,subtractScalar:o3}),Uo1=L01({BigNumber:Te,Unit:pt,config:X1}),Vo1=ma1({BigNumber:Te,Unit:pt,config:X1}),qo1=na1({BigNumber:Te,Unit:pt,config:X1}),Yo1=F01({BigNumber:Te,Unit:pt,config:X1}),Wo1=aa1({BigNumber:Te,Unit:pt,config:X1}),Go1=k01({BigNumber:Te,Unit:pt,config:X1}),Ko1=B01({BigNumber:Te,Unit:pt,config:X1}),Zo1=K01({BigNumber:Te,Unit:pt,config:X1}),Qo1=Fs({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,pow:l3,typed:x1}),Jo1=O01({BigNumber:Te,Unit:pt,config:X1}),Xo1=R01({BigNumber:Te,Unit:pt,config:X1}),e91=fr1({abs:lr,add:Bt,identity:Ma,inv:I4,multiply:Xt,typed:x1}),t91=ia1({BigNumber:Te,Unit:pt,config:X1}),VD=Jp({addScalar:m2,ceil:Dm,conj:C4,divideScalar:zn,dotDivide:N5,exp:vD,i:mD,log2:bD,matrix:Me,multiplyScalar:Gn,pow:l3,tau:gD,typed:x1}),_m=qr1({BigNumber:Te,Complex:mn,config:X1,multiplyScalar:Gn,pow:l3,typed:x1}),n91=E01({BigNumber:Te,Unit:pt,config:X1}),r91=W01({BigNumber:Te,Unit:pt,config:X1}),a91=l2({conj:C4,dotDivide:N5,fft:VD,typed:x1}),i91=H01({BigNumber:Te,Unit:pt,config:X1}),o91=sa1({BigNumber:Te,Unit:pt,config:X1}),s91=I01({BigNumber:Te,Unit:pt,config:X1}),l91=ha1({BigNumber:Te,Unit:pt,config:X1}),u91=ua1({BigNumber:Te,Unit:pt,config:X1}),c91=Z01({BigNumber:Te,Unit:pt,config:X1}),f91=j01({BigNumber:Te,Unit:pt,config:X1}),p91=wa1({BigNumber:Te,Unit:pt,config:X1}),d91=va1({BigNumber:Te,Unit:pt,config:X1}),m91=Na1({BigNumber:Te,Unit:pt,config:X1}),h91=G01({BigNumber:Te,Unit:pt,config:X1}),g91=Q01({BigNumber:Te,Unit:pt,config:X1}),y91=T01({BigNumber:Te,Unit:pt,config:X1}),v91=J01({BigNumber:Te,Unit:pt,config:X1}),b91=pa1({BigNumber:Te,Unit:pt,config:X1}),x91=M01({BigNumber:Te,Unit:pt,config:X1}),w91=da1({BigNumber:Te,Unit:pt,config:X1}),N91=X01({BigNumber:Te,Unit:pt,config:X1}),A91=ra1({BigNumber:Te,Unit:pt,config:X1}),D91=$01({BigNumber:Te,Unit:pt,config:X1}),C91=sQ({Unit:pt,typed:x1}),x2=Nr1({divideScalar:zn,equalScalar:Tt,inv:I4,matrix:Me,multiply:Xt,typed:x1}),_91=V01({BigNumber:Te,Unit:pt,config:X1}),D5=Kr1({gamma:_m,typed:x1}),M91=oa1({BigNumber:Te,Unit:pt,config:X1}),E91=ya1({BigNumber:Te,Unit:pt,config:X1}),S91=z01({BigNumber:Te,Unit:pt,config:X1}),qD=m11({DenseMatrix:At,lsolve:MD,lup:$D,matrix:Me,slu:OD,typed:x1,usolve:xm}),T91=P01({BigNumber:Te,Unit:pt,config:X1}),I91=ga1({BigNumber:Te,Unit:pt,config:X1}),O91=Xr1({add:Bt,divide:x2,factorial:D5,isInteger:Or,isPositive:_4,multiply:Xt,typed:x1}),L91=t31({factorial:D5,typed:x1}),B91=ba1({BigNumber:Te,Unit:pt,config:X1}),R91=g11({add:Bt,cbrt:CD,divide:x2,equalScalar:Tt,im:mm,isZero:O3,multiply:Xt,re:hm,sqrt:L3,subtract:Kn,typeOf:wD,typed:x1,unaryMinus:c0}),F91=NJ({compareNatural:f0,typed:x1}),k91=ms({abs:lr,add:Bt,bignumber:ur,divide:x2,isNegative:_a,isPositive:_4,larger:fr,map:M4,matrix:Me,max:Cm,multiply:Xt,smaller:cr,subtract:Kn,typed:x1,unaryMinus:c0}),YD=C31({bignumber:ur,addScalar:m2,combinations:hl,divideScalar:zn,factorial:D5,isInteger:Or,isNegative:_a,larger:fr,multiplyScalar:Gn,number:F0,pow:l3,subtractScalar:o3,typed:x1}),z91=rQ({Unit:pt,typed:x1}),P91=M31({addScalar:m2,isInteger:Or,isNegative:_a,stirlingS2:YD,typed:x1}),WD=ur1({abs:lr,add:Bt,addScalar:m2,atan:yD,bignumber:ur,column:HD,complex:gl,config:X1,cos:pm,diag:_D,divideScalar:zn,dot:xl,equal:s3,flatten:A5,im:mm,inv:I4,larger:fr,matrix:Me,matrixFromColumns:vm,multiply:Xt,multiplyScalar:Gn,number:F0,qr:bm,re:hm,reshape:AD,sin:vl,size:F2,smaller:cr,sqrt:L3,subtract:Kn,typed:x1,usolve:xm,usolveAll:LD}),j91=q01({BigNumber:Te,Unit:pt,config:X1}),H91=la1({BigNumber:Te,Unit:pt,config:X1}),$91=Qr1({divide:x2,dotDivide:N5,isNumeric:E4,log:Nm,map:M4,matrix:Me,multiply:Xt,sum:Am,typed:x1}),GD=hA({add:Bt,divide:x2,typed:x1}),U91=ca1({BigNumber:Te,Unit:pt,config:X1}),V91=S01({BigNumber:Te,Unit:pt,config:X1}),q91=wA({bignumber:ur,add:Bt,compare:T4,divide:x2,isInteger:Or,larger:fr,multiply:Xt,partitionSelect:wl,smaller:cr,smallerEq:vo,subtract:Kn,typed:x1}),Mm=bA({add:Bt,apply:gm,divide:x2,isNaN:x5,multiply:Xt,subtract:Kn,typed:x1}),Y91=U01({BigNumber:Te,Unit:pt,config:X1}),KD=Or1({add:Bt,compare:T4,divide:x2,partitionSelect:wl,typed:x1}),W91=Pr1({add:Bt,divide:x2,matrix:Me,mean:GD,multiply:Xt,pow:l3,sqrt:L3,subtract:Kn,sum:Am,typed:x1}),G91=n01({Complex:mn,add:Bt,divide:x2,matrix:Me,multiply:Xt,typed:x1}),K91=Br1({abs:lr,map:M4,median:KD,subtract:Kn,typed:x1}),Z91=AA({map:M4,sqrt:L3,typed:x1,variance:Mm}),Q91=ud({BigNumber:Te,Complex:mn,add:Bt,config:X1,divide:x2,equal:s3,factorial:D5,gamma:_m,isNegative:_a,multiply:Xt,pi:cm,pow:l3,sin:vl,smallerEq:vo,subtract:Kn,typed:x1}),Em=OJ({abs:lr,add:Bt,conj:C4,ctranspose:ym,eigs:WD,equalScalar:Tt,larger:fr,matrix:Me,multiply:Xt,pow:l3,smaller:cr,sqrt:L3,typed:x1}),ZD=$p({BigNumber:Te,DenseMatrix:At,SparseMatrix:k0,addScalar:m2,config:X1,cos:pm,matrix:Me,multiplyScalar:Gn,norm:Em,sin:vl,typed:x1,unaryMinus:c0}),J91=xa1({BigNumber:Te,Unit:pt,config:X1}),QD=yr1({identity:Ma,matrix:Me,multiply:Xt,norm:Em,qr:bm,subtract:Kn,typed:x1}),X91=jp({multiply:Xt,rotationMatrix:ZD,typed:x1}),JD=hr1({abs:lr,add:Bt,concat:$t,identity:Ma,index:kD,lusolve:qD,matrix:Me,matrixFromColumns:vm,multiply:Xt,range:bo,schur:QD,subset:Vr,subtract:Kn,transpose:w5,typed:x1}),e51=br1({matrix:Me,multiply:Xt,sylvester:JD,transpose:w5,typed:x1}),xo={},wo={},XD={},Y2=$J({mathWithTransform:wo}),No=mX({Node:Y2}),z0=gX({Node:Y2}),O4=vX({Node:Y2}),eC=NX({Node:Y2}),Ao=YJ({Node:Y2}),tC=JJ({Node:Y2,ResultSet:hD}),nC=eX({Node:Y2}),Ea=lX({Node:Y2}),rC=xX({Node:Y2}),t51=i01({classes:XD}),Sm=N11({math:xo,typed:x1}),aC=cX({Node:Y2,typed:x1}),iC=J21({Chain:Sm,typed:x1}),Do=pX({Node:Y2,size:F2}),Co=VJ({Node:Y2,subset:Vr}),oC=ZJ({matrix:Me,Node:Y2,subset:Vr}),Sa=CX({Unit:pt,Node:Y2,math:xo}),Ta=MX({Node:Y2,SymbolNode:Sa,math:xo}),p0=SX({AccessorNode:Co,ArrayNode:Ao,AssignmentNode:oC,BlockNode:tC,ConditionalNode:nC,ConstantNode:Ea,FunctionAssignmentNode:aC,FunctionNode:Ta,IndexNode:Do,ObjectNode:No,OperatorNode:z0,ParenthesisNode:O4,RangeNode:rC,RelationalNode:eC,SymbolNode:Sa,config:X1,numeric:B3,typed:x1}),sC=Y31({ConstantNode:Ea,FunctionNode:Ta,OperatorNode:z0,ParenthesisNode:O4,parse:p0,typed:x1}),Tm=H31({bignumber:ur,fraction:yo,AccessorNode:Co,ArrayNode:Ao,ConstantNode:Ea,FunctionNode:Ta,IndexNode:Do,ObjectNode:No,OperatorNode:z0,SymbolNode:Sa,config:X1,mathWithTransform:wo,matrix:Me,typed:x1}),n51=IX({parse:p0,typed:x1}),Im=U31({AccessorNode:Co,ArrayNode:Ao,ConstantNode:Ea,FunctionNode:Ta,IndexNode:Do,ObjectNode:No,OperatorNode:z0,ParenthesisNode:O4,SymbolNode:Sa,add:Bt,divide:x2,equal:s3,isZero:O3,multiply:Xt,parse:p0,pow:l3,subtract:Kn,typed:x1}),Om=LX({parse:p0,typed:x1}),lC=b11({evaluate:Om}),uC=FX({evaluate:Om}),Nl=z31({bignumber:ur,fraction:yo,AccessorNode:Co,ArrayNode:Ao,ConstantNode:Ea,FunctionNode:Ta,IndexNode:Do,ObjectNode:No,OperatorNode:z0,ParenthesisNode:O4,SymbolNode:Sa,add:Bt,config:X1,divide:x2,equal:s3,isZero:O3,mathWithTransform:wo,matrix:Me,multiply:Xt,parse:p0,pow:l3,resolve:sC,simplifyConstant:Tm,simplifyCore:Im,subtract:Kn,typed:x1}),r51=G31({OperatorNode:z0,parse:p0,simplify:Nl,typed:x1}),a51=L31({parse:p0,typed:x1}),i51=zX({Parser:uC,typed:x1}),o51=J31({bignumber:ur,fraction:yo,AccessorNode:Co,ArrayNode:Ao,ConstantNode:Ea,FunctionNode:Ta,IndexNode:Do,ObjectNode:No,OperatorNode:z0,ParenthesisNode:O4,SymbolNode:Sa,add:Bt,config:X1,divide:x2,equal:s3,isZero:O3,mathWithTransform:wo,matrix:Me,multiply:Xt,parse:p0,pow:l3,simplify:Nl,simplifyConstant:Tm,simplifyCore:Im,subtract:Kn,typed:x1}),s51=Z31({ConstantNode:Ea,FunctionNode:Ta,OperatorNode:z0,ParenthesisNode:O4,SymbolNode:Sa,config:X1,equal:s3,isZero:O3,numeric:B3,parse:p0,simplify:Nl,typed:x1}),l51=Z21({Help:lC,mathWithTransform:wo,typed:x1});b1(xo,{e:dD,false:F41,fineStructure:k41,i:mD,Infinity:z41,LN10:P41,LOG10E:j41,NaN:H41,null:$41,phi:U41,SQRT1_2:q41,sackurTetrode:Y41,tau:gD,true:W41,E:dD,version:G41,efimovFactor:K41,LN2:Z41,pi:cm,replacer:Q41,reviver:t51,SQRT2:J41,typed:x1,unaryPlus:fm,PI:cm,weakMixingAngle:X41,abs:lr,acos:ei1,acot:ti1,acsc:ni1,addScalar:m2,arg:ri1,asech:ai1,asinh:ii1,atan:yD,atanh:oi1,bignumber:ur,bitNot:si1,boolean:li1,clone:ui1,combinations:hl,complex:gl,conj:C4,cos:pm,cot:ci1,csc:fi1,cube:pi1,equalScalar:Tt,erf:di1,exp:vD,expm1:mi1,filter:hi1,forEach:gi1,format:b5,getMatrixDataType:dm,hex:yi1,im:mm,isInteger:Or,isNegative:_a,isPositive:_4,isZero:O3,LOG2E:vi1,lgamma:bi1,log10:xi1,log2:bD,map:M4,multiplyScalar:Gn,not:yl,number:F0,oct:wi1,pickRandom:Ni1,print:Ai1,random:Di1,re:hm,sec:Ci1,sign:xD,sin:vl,splitUnit:_i1,square:Mi1,string:Ei1,subtractScalar:o3,tan:Si1,typeOf:wD,acosh:Ti1,acsch:Ii1,apply:gm,asec:Oi1,bin:Li1,chain:iC,combinationsWithRep:Bi1,cosh:Ri1,csch:Fi1,isNaN:x5,isPrime:ki1,randomInt:zi1,sech:Pi1,sinh:ji1,sparse:Hi1,sqrt:L3,tanh:$i1,unaryMinus:c0,acoth:Ui1,coth:Vi1,fraction:yo,isNumeric:E4,matrix:Me,matrixFromFunction:qi1,mode:Yi1,numeric:B3,prod:ND,reshape:AD,size:F2,squeeze:Wi1,transpose:w5,xgcd:DD,zeros:k2,asin:Gi1,cbrt:CD,concat:$t,count:Ki1,ctranspose:ym,diag:_D,divideScalar:zn,dotDivide:N5,equal:s3,flatten:A5,hasNumericValue:Zi1,identity:Ma,kron:Qi1,largerEq:bl,leftShift:Ji1,lsolve:MD,matrixFromColumns:vm,nthRoot:Xi1,ones:eo1,qr:bm,resize:to1,rightArithShift:no1,round:S4,smaller:cr,subtract:Kn,to:ro1,unequal:ao1,usolve:xm,xor:io1,add:Bt,atan2:oo1,bitAnd:so1,bitOr:lo1,bitXor:uo1,catalan:co1,compare:T4,compareText:ED,cumsum:fo1,deepEqual:wm,diff:po1,distance:do1,dot:xl,equalText:mo1,floor:SD,gcd:ho1,hypot:go1,larger:fr,log:Nm,lsolveAll:yo1,matrixFromRows:vo1,min:bo1,mod:ID,multiply:Xt,nthRoots:xo1,or:wo1,partitionSelect:wl,rightLogShift:No1,slu:OD,subset:Vr,sum:Am,trace:Ao1,usolveAll:LD,zpk2tf:Do1,ceil:Dm,compareNatural:f0,composition:Co1,cross:_o1,det:BD,dotMultiply:Mo1,fix:FD,index:kD,intersect:Eo1,invmod:So1,lcm:To1,log1p:Io1,max:Cm,setCartesian:Oo1,setDistinct:Lo1,setIsSubset:Bo1,setPowerset:Ro1,smallerEq:vo,sort:Fo1,and:ko1,range:bo,row:zo1,setDifference:zD,setMultiplicity:Po1,setSymDifference:PD,column:HD,inv:I4,lup:$D,pinv:jo1,pow:l3,setIntersect:UD,setUnion:Ho1,sqrtm:$o1,vacuumImpedance:Uo1,wienDisplacement:Vo1,atomicMass:qo1,bohrMagneton:Yo1,boltzmann:Wo1,conductanceQuantum:Go1,coulomb:Ko1,deuteronMass:Zo1,dotPow:Qo1,electricConstant:Jo1,elementaryCharge:Xo1,expm:e91,faraday:t91,fft:VD,gamma:_m,gravitationConstant:n91,hartreeEnergy:r91,ifft:a91,klitzing:i91,loschmidt:o91,magneticConstant:s91,molarMass:l91,molarPlanckConstant:u91,neutronMass:c91,nuclearMagneton:f91,planckCharge:p91,planckLength:d91,planckTemperature:m91,protonMass:h91,quantumOfCirculation:g91,reducedPlanckConstant:y91,rydberg:v91,secondRadiation:b91,speedOfLight:x91,stefanBoltzmann:w91,thomsonCrossSection:N91,avogadro:A91,bohrRadius:D91,createUnit:C91,divide:x2,electronMass:_91,factorial:D5,firstRadiation:M91,gravity:E91,inverseConductanceQuantum:S91,lusolve:qD,magneticFluxQuantum:T91,molarMassC12:I91,multinomial:O91,parse:p0,permutations:L91,planckMass:B91,polynomialRoot:R91,resolve:sC,setSize:F91,simplifyConstant:Tm,solveODE:k91,stirlingS2:YD,unit:z91,bellNumbers:P91,compile:n51,eigs:WD,fermiCoupling:j91,gasConstant:H91,kldivergence:$91,mean:GD,molarVolume:U91,planckConstant:V91,quantileSeq:q91,simplifyCore:Im,variance:Mm,classicalElectronRadius:Y91,evaluate:Om,median:KD,simplify:Nl,symbolicEqual:r51,corr:W91,freqz:G91,leafCount:a51,mad:K91,parser:i51,rationalize:o51,std:Z91,zeta:Q91,derivative:s51,norm:Em,rotationMatrix:ZD,help:l51,planckTime:J91,schur:QD,rotate:X91,sylvester:JD,lyap:e51,config:X1}),b1(wo,xo,{filter:Ia1({typed:x1}),forEach:Ba1({typed:x1}),map:ja1({typed:x1}),apply:Ca1({isInteger:Or,typed:x1}),or:S41({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),and:_41({add:Bt,concat:$t,equalScalar:Tt,matrix:Me,not:yl,typed:x1,zeros:k2}),concat:s41({isInteger:Or,matrix:Me,typed:x1}),max:Ua1({config:X1,larger:fr,numeric:B3,typed:x1}),print:A41({add:Bt,matrix:Me,typed:x1,zeros:k2}),bitAnd:O41({add:Bt,concat:$t,equalScalar:Tt,matrix:Me,not:yl,typed:x1,zeros:k2}),diff:u41({bignumber:ur,matrix:Me,number:F0,subtract:Kn,typed:x1}),min:Ka1({config:X1,numeric:B3,smaller:cr,typed:x1}),subset:a41({add:Bt,matrix:Me,typed:x1,zeros:k2}),bitOr:R41({DenseMatrix:At,concat:$t,equalScalar:Tt,matrix:Me,typed:x1}),cumsum:b41({add:Bt,typed:x1,unaryPlus:fm}),index:ka1({Index:q2,getMatrixDataType:dm}),sum:m41({add:Bt,config:X1,numeric:B3,typed:x1}),range:Ja1({bignumber:ur,matrix:Me,add:Bt,config:X1,isPositive:_4,larger:fr,largerEq:bl,smaller:cr,smallerEq:vo,typed:x1}),row:t41({Index:q2,matrix:Me,range:bo,typed:x1}),column:Ea1({Index:q2,matrix:Me,range:bo,typed:x1}),mean:Ya1({add:Bt,divide:x2,typed:x1}),quantileSeq:y41({add:Bt,bignumber:ur,compare:T4,divide:x2,isInteger:Or,larger:fr,multiply:Xt,partitionSelect:wl,smaller:cr,smallerEq:vo,subtract:Kn,typed:x1}),variance:w41({add:Bt,apply:gm,divide:x2,isNaN:x5,multiply:Xt,subtract:Kn,typed:x1}),std:p41({map:M4,sqrt:L3,typed:x1,variance:Mm})}),b1(XD,{BigNumber:Te,Complex:mn,Fraction:D4,Matrix:ml,Node:Y2,ObjectNode:No,OperatorNode:z0,ParenthesisNode:O4,Range:V41,RelationalNode:eC,ResultSet:hD,ArrayNode:Ao,BlockNode:tC,ConditionalNode:nC,ConstantNode:Ea,DenseMatrix:At,RangeNode:rC,Chain:Sm,FunctionAssignmentNode:aC,SparseMatrix:k0,IndexNode:Do,ImmutableDenseMatrix:TD,Index:q2,AccessorNode:Co,AssignmentNode:oC,FibonacciHeap:RD,Spa:jD,Unit:pt,SymbolNode:Sa,FunctionNode:Ta,Help:lC,Parser:uC}),Sm.createProxy(xo);const Al=(n,a)=>{let s=iC(ur(a[0]));for(let i=1;i<a.length;i++){let l=Number(a[i]);l.toString()==="NaN"&&(l=0),s=s[n](ur(l))}return parseFloat(s.done())},u51={round:(n,a=2)=>{let s=Number(n);return s.toString()==="NaN"&&(s=0),S4(s,a)},add:function(...n){return Al("add",n)},subtract:function(...n){return Al("subtract",n)},multiply:function(...n){return Al("multiply",n)},divide:function(...n){return Al("divide",n)}},c51=b,f51=w,p51=N,d51=o1,m51=v1,h51=u51,g51={};r.default=g51,r.getStorage=f51,r.mainIndicatorList=d51,r.removeStorage=p51,r.setStorage=c51,r.stMath=h51,r.subIndicatorList=m51,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(uc,uc.exports);var DK=uc.exports;const CK=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})},style:{type:Object,default:()=>[]}},setup(e){const{add:o,multiply:r,divide:b,round:w}=DK.stMath,N={colorList:["#FAF277","#FFC467","#FFA872","#FB962E","#FF772C","#FF577C","#F679D7","#9B4A9B","#9169D7","#9192D0","#655AC7","#4084DE","#0074DA","#0098DF","#00BBE9","#00D2DE","#73E2E6","#00CBB1","#00B488","#48D09A","#93D984","#C9EC7C","#D4E300","#E2BA2B","#A18300","#BC6F3F","#A84E12","#7C462E","#713532","#962B23"],legendColor:"#000",inactiveColor:"#ccc"},S={tooltipFormatter:null};let T,B;const F=e,H=t.ref(),U=t.computed(()=>({...N,...F.style})),Q=t.computed(()=>({...S,...F.config}));t.watch(()=>[F.data,F.style],()=>{K()},{deep:!0}),t.onMounted(()=>{T=L4.init(H.value),K();let q=!0;B=new ResizeObserver(()=>{if(q){q=null;return}T.resize()}),B.observe(H.value)}),t.onUnmounted(()=>{T.dispose(),B.disconnect(),B=null});const K=()=>{const q=F.data.reduce((G,r1)=>o(G,r1.value),0);T.setOption({color:U.value.colorList,tooltip:{trigger:"item",confine:!0,formatter:Q.value.tooltipFormatter},legend:{orient:"vertical",right:0,bottom:0,itemWidth:32,itemHeight:20,textStyle:{fontSize:14,color:U.value.legendColor},inactiveColor:U.value.inactiveColor,formatter:G=>{const r1=F.data.find(o1=>o1.name===G);return`${G}
|
|
115
|
-
${r1.label||r1.value}(${typeof r1.percent=="number"?r1.percent:w(r(b(r1.value,q),100))}%)`}},series:[{type:"pie",width:"150%",height:"150%",center:[`${100/3}%`,`${100/3}%`],radius:"50%",data:F.data.map(G=>({...G,itemStyle:{color:G.color}})),label:{show:!0,position:"inside",formatter:G=>{var o1;const r1=((o1=G==null?void 0:G.data)==null?void 0:o1.label)||G.value;return r1===0?"":r1},fontSize:14,color:"#000"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return(q,G)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"chartRef",ref:H,class:"chart"},null,512))}}),S81="",_K=Fr(CK,[["__scopeId","data-v-1c35c9fa"]]),MK={install(e){e.component("st-pie",_K)}},T81="",I81="",O81="",L81="",B81="",R81="",F81="",zw=t.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0},showMargin:{type:Boolean,default:()=>!1}},setup(e){const o=e,r=t.computed(()=>{const{option:b,scope:w}=o;return typeof b.show=="function"?b.show(w.row,w.$index):b.show!==!1});return(b,w)=>{const N=Va,S=Fj;return r.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.option.needCheck?(t.openBlock(),t.createBlock(S,{key:0,title:e.option.needCheck.title,onConfirm:w[0]||(w[0]=T=>e.option.onClick(e.scope.row,e.scope.$index))},{reference:t.withCtx(()=>[t.createVNode(N,{type:e.option.type,disabled:typeof e.option.disabled=="function"?e.option.disabled(e.scope.row,e.scope.$index):e.option.disabled,style:t.normalizeStyle({marginTop:e.showMargin?"10px":0})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(typeof e.option.text=="function"?e.option.text(e.scope.row,e.scope.$index):e.option.text),1)]),_:1},8,["type","disabled","style"])]),_:1},8,["title"])):(t.openBlock(),t.createBlock(N,{key:1,type:e.option.type,disabled:typeof e.option.disabled=="function"?e.option.disabled(e.scope.row,e.scope.$index):e.option.disabled,style:t.normalizeStyle({marginTop:e.showMargin?"10px":0}),onClick:w[1]||(w[1]=T=>e.option.onClick(e.scope.row,e.scope.$index))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(typeof e.option.text=="function"?e.option.text(e.scope.row,e.scope.$index):e.option.text),1)]),_:1},8,["type","disabled","style"]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))}}}),EK=t.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0}},setup(e){return(o,r)=>(t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(typeof e.option.style=="function"?e.option.style(e.scope.row[e.option.prop],e.scope.row):e.option.style)},t.toDisplayString(typeof e.option.formatter=="function"?e.option.formatter(e.scope.row[e.option.prop],e.scope.row):e.scope.row[e.option.prop]),5))}}),SK=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},column:{type:Array,default:()=>[]},loading:{type:Boolean,default:()=>!1},emptyText:{type:String,default:()=>""}},emits:["sortChange"],setup(e,{emit:o}){const r=o,b=e,w=t.computed(()=>b.column.filter(T=>T.show!==!1)),N=T=>{r("sortChange",T)},S=(T,B)=>T.filter(F=>typeof F.show=="function"&&F.show(B.row,B.$index)===!1?!1:F.show!==!1);return(T,B)=>{const F=Sn,H=Ku,U=a$,Q=r$,K=hu,q=h$;return t.openBlock(),t.createBlock(K,{locale:t.unref(ac)},{default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createBlock(Q,{data:e.data,"empty-text":e.emptyText,stripe:"",style:{width:"100%"},onSortChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.value,G=>(t.openBlock(),t.createBlock(U,{key:G.prop,prop:G.prop,label:G.label,sortable:G.sortable,width:G.width,"min-width":G.minWidth},t.createSlots({_:2},[G.type==="formatter"?{name:"default",fn:t.withCtx(r1=>[t.createVNode(EK,{option:G,scope:r1},null,8,["option","scope"])]),key:"0"}:G.type==="slot"?{name:"default",fn:t.withCtx(r1=>[t.renderSlot(T.$slots,G.slot,{row:r1.row})]),key:"1"}:G.type==="btns"?{name:"default",fn:t.withCtx(r1=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.btns,(o1,v1)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${o1.text}-${v1}`},[o1.children?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S(o1.children,r1).length?(t.openBlock(),t.createBlock(H,{key:0,placement:"bottom",trigger:"hover","popper-style":{minWidth:"0px",width:null}},{reference:t.withCtx(()=>[t.createVNode(F,{style:{marginLeft:"10px",verticalAlign:"-5px",cursor:"pointer"},size:"20"},{default:t.withCtx(()=>[t.createVNode(t.unref(Jl))]),_:1})]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S(o1.children,r1),(b1,t1)=>(t.openBlock(),t.createElementBlock("div",{key:`${b1.text}-${t1}`},[t.createVNode(zw,{option:b1,scope:r1,showMargin:t1!==0},null,8,["option","scope","showMargin"])]))),128))]),_:2},1024)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(zw,{key:1,option:o1,scope:r1},null,8,["option","scope"]))],64))),128))]),key:"2"}:void 0]),1032,["prop","label","sortable","width","min-width"]))),128))]),_:1},8,["data","empty-text"])),[[q,e.loading]])]),_:1},8,["locale"])}}}),TK={install(e){e.component("st-table",SK)}},IK=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})}},setup(e,{expose:o}){const r={tooltipFormatter:null};let b,w;const N=e,S=t.ref(),T=t.computed(()=>({...r,...N.config}));t.watch(()=>[N.data],()=>{B()},{deep:!0}),t.onMounted(()=>{b=L4.init(S.value),B();let F=!0;w=new ResizeObserver(()=>{if(F){F=null;return}b.resize()}),w.observe(S.value)}),t.onUnmounted(()=>{b.dispose(),w.disconnect(),w=null});const B=()=>{b.setOption({tooltip:{confine:!0,formatter:T.value.tooltipFormatter},series:[{type:"treemap",width:"100%",height:"100%",visibleMin:
|
|
116
|
-
${F.data.colorValue}`}}],data:N.data.map(F=>({...F,itemStyle:{color:F.color},children:F.children.map(H=>({...H,itemStyle:{color:H.color}}))}))}]},!0)};return o({reset:()=>{B()}}),(F,H)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"chartRef",ref:S,class:"chart"},null,512))}}),k81="",OK=Fr(IK,[["__scopeId","data-v-e84fb112"]]),LK={install(e){e.component("st-treeMap",OK)}},z81="",P81="",j81="",H81="",$81="",U81="",V81="",q81="",A8=e=>(t.pushScopeId("data-v-38d08346"),e=e(),t.popScopeId(),e),BK={class:"component-main"},RK={style:{display:"inline-block"}},FK=A8(()=>t.createElementVNode("span",null,"~",-1)),kK=A8(()=>t.createElementVNode("div",{class:"title"},"因子筛选",-1)),zK=A8(()=>t.createElementVNode("div",{style:{"text-align":"center"}},"操作",-1)),PK=A8(()=>t.createElementVNode("span",null," ~ ",-1)),jK={class:"card-bottom"},HK={style:{display:"inline-block"}},$K=Fr({__name:"index",props:{label:{type:String,default:"因子筛选",require:!0},modelValue:{type:Array,default:[],require:!0},freqList:{type:Array,default:[]},factorList:{type:Array,default:[]}},emits:["updata","update:modelValue"],setup(e,{expose:o,emit:r}){const b=r,w=e,N=t.ref(!1),S=t.ref([]),T=t.computed({get(){return w.modelValue},set(K){b("update:modelValue",K)}}),B=()=>{S.value.length||S.value.push({factorId:null,freqId:null,startScore:null,endScore:null,key:new Date().getTime()}),N.value=!0},F=K=>{S.value=S.value.filter(q=>q.key!==K.key),T.value=T.value.filter(q=>q.key!==K.key)},H=()=>{S.value=[],T.value=[]},U=()=>{let K=!0;const q=S.value.map((G,r1)=>{const o1={...G};return(!o1.factorId||!o1.freqId)&&(K=!1,o1.factorStatus=!o1.factorId,o1.freqStatus=!o1.freqId),(o1.startScore===""||o1.startScore===null)&&(o1.endScore===""||o1.endScore===null)?(K=!1,o1.startScoreStatus=!0,o1.endScoreStatus=!0):(o1.startScoreStatus=!1,o1.endScoreStatus=!1),S.value[r1]={...o1},o1});K?(N.value=!1,T.value=q):Iv.warning("请输入未填项")};return o({delData:F,clean:H,init:()=>{S.value=[{factorId:null,freqId:null,startScore:null,endScore:null,key:new Date().getTime()}],T.value=[]}}),(K,q)=>{const G=Va,r1=ju,o1=$k,v1=kk,b1=Wu,t1=Yu,h1=tv,l1=Ku;return t.openBlock(),t.createElementBlock("div",BK,[t.createElementVNode("span",null,t.toDisplayString(w.label),1),t.createVNode(G,{text:"",type:"primary",size:"small",onClick:H},{default:t.withCtx(()=>[t.createTextVNode(" 不限 ")]),_:1}),t.renderSlot(K.$slots,"default",{},()=>[t.createElementVNode("div",RK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.value,(i1,I1)=>(t.openBlock(),t.createBlock(r1,{style:{"margin-right":"5px"},key:i1.key,closable:"",type:"info","disable-transitions":!1,onClose:U1=>F(i1)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i1.freqName||"")+" "+t.toDisplayString(i1.factorName||"")+" "+t.toDisplayString(i1.startScore===null?" / ":i1.startScore+"分")+" ",1),FK,t.createTextVNode(" "+t.toDisplayString(i1.endScore===null?" / ":i1.endScore+"分"),1)]),_:2},1032,["onClose"]))),128))])],!0),t.createVNode(l1,{visible:N.value,placement:"top",width:700},{reference:t.withCtx(()=>[t.createElementVNode("div",HK,[t.createVNode(G,{type:"primary",size:"small",onClick:B},{default:t.withCtx(()=>[t.createTextVNode(" 添加 ")]),_:1})])]),default:t.withCtx(()=>[kK,t.createVNode(v1,{class:"list"},{default:t.withCtx(()=>[t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createTextVNode(" 周期 ")]),_:1}),t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createTextVNode(" 因子 ")]),_:1}),t.createVNode(o1,{span:8},{default:t.withCtx(()=>[t.createTextVNode(" 分数范围 ")]),_:1}),t.createVNode(o1,{span:4},{default:t.withCtx(()=>[zK]),_:1})]),_:1}),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,(i1,I1)=>(t.openBlock(),t.createBlock(v1,{key:i1.key,class:"list"},{default:t.withCtx(()=>[t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createVNode(t1,{modelValue:i1.freqId,"onUpdate:modelValue":U1=>i1.freqId=U1,class:t.normalizeClass(i1.freqStatus?"border-red":""),style:{width:"150px"},size:"small",placeholder:"请选择",onChange:U1=>{i1.freqStatus=!1,i1.freqName=e.freqList.find(ee=>ee.value===U1).label}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.freqList,U1=>(t.openBlock(),t.createBlock(b1,{key:U1.value,label:U1.label,value:U1.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","class","onChange"])]),_:2},1024),t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createVNode(t1,{modelValue:i1.factorId,"onUpdate:modelValue":U1=>i1.factorId=U1,class:t.normalizeClass(i1.factorStatus?"border-red":""),style:{width:"150px"},size:"small",placeholder:"请选择",onChange:U1=>{i1.factorStatus=!1,i1.factorName=e.factorList.find(ee=>ee.id===U1).factorName}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.factorList,U1=>(t.openBlock(),t.createBlock(b1,{key:U1.id,label:U1.factorName,value:U1.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","class","onChange"])]),_:2},1024),t.createVNode(o1,{span:8},{default:t.withCtx(()=>[t.createVNode(h1,{modelValue:i1.startScore,"onUpdate:modelValue":U1=>i1.startScore=U1,class:t.normalizeClass(i1.startScoreStatus?"border-red":""),style:{width:"100px"},step:.5,min:-999,max:999,"controls-position":"right",size:"small",onChange:()=>{i1.startScoreStatus=!1,i1.endScoreStatus=!1}},null,8,["modelValue","onUpdate:modelValue","class","onChange"]),PK,t.createVNode(h1,{modelValue:i1.endScore,"onUpdate:modelValue":U1=>i1.endScore=U1,class:t.normalizeClass(i1.endScoreStatus?"border-red":""),style:{width:"100px"},step:.5,min:-999,max:999,"controls-position":"right",size:"small",onChange:U1=>{i1.startScoreStatus=!1,i1.endScoreStatus=!1}},null,8,["modelValue","onUpdate:modelValue","class","onChange"])]),_:2},1024),t.createVNode(o1,{span:4},{default:t.withCtx(()=>[t.createVNode(G,{size:"small",type:"primary",text:"",onClick:()=>{S.value.splice(I1+1,0,{factorId:null,freqId:null,startScore:null,endScore:null,key:new Date().getTime()})}},{default:t.withCtx(()=>[t.createTextVNode(" 添加 ")]),_:2},1032,["onClick"]),t.createVNode(G,{size:"small",type:"danger",text:"",onClick:()=>{S.value.splice(I1,1)}},{default:t.withCtx(()=>[t.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),t.createElementVNode("div",jK,[t.createVNode(G,{onClick:q[0]||(q[0]=i1=>N.value=!1)},{default:t.withCtx(()=>[t.createTextVNode(" 取消 ")]),_:1}),t.createVNode(G,{type:"primary",onClick:q[1]||(q[1]=i1=>U())},{default:t.withCtx(()=>[t.createTextVNode(" 确认 ")]),_:1})])]),_:1},8,["visible"])])}}},[["__scopeId","data-v-38d08346"]]),W81="",G81="",K81="",Z81="",UK=e=>[...e.map(r=>{const b={key:"",children:[],...r};switch(r.dictCode){case 1:b.key="marketCapital",b.children=[{id:1,active:!1,start:null,starUnit:"亿",end:null,endUnit:"亿",btnText:"从小到大",ase:!0},{id:2,active:!1,start:null,startUnit:"亿",end:10,endUnit:"亿",btnText:"≤10亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:25,endUnit:"亿",btnText:"≤25亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:50,endUnit:"亿",btnText:"≤50亿",ase:null},{id:5,active:!1,start:20,startUnit:"亿",end:50,endUnit:"亿",btnText:"20~50亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 2:b.key="floatMarketCapital",b.children=[{id:1,active:!1,start:null,starUnit:"亿",end:null,endUnit:"亿",btnText:"从小到大",ase:!0},{id:2,active:!1,start:null,startUnit:"亿",end:5,endUnit:"亿",btnText:"≤5亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:20,endUnit:"亿",btnText:"≤20亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:50,endUnit:"亿",btnText:"≤50亿",ase:null},{id:5,active:!1,start:null,startUnit:"亿",end:100,endUnit:"亿",btnText:"≤100亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 3:b.key="totalShares",b.children=[{id:1,active:!1,start:null,starUnit:"亿",end:null,endUnit:"亿",btnText:"从小到大",ase:!0},{id:2,active:!1,start:null,startUnit:"亿",end:5,endUnit:"亿",btnText:"≤5亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:10,endUnit:"亿",btnText:"≤10亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:75,endUnit:"亿",btnText:"≤75亿",ase:null},{id:5,active:!1,start:10,startUnit:"亿",end:75,endUnit:"亿",btnText:"100~75亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 4:b.key="freeFloatShares",b.children=[{id:1,active:!1,start:null,startUnit:"亿",end:5,endUnit:"千万",btnText:"≤5千万",ase:null},{id:2,active:!1,start:5,startUnit:"千万",end:3,endUnit:"亿",btnText:"5千万~3亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:5,endUnit:"亿",btnText:"≤5亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:10,endUnit:"亿",btnText:"≤10亿",ase:null},{id:5,active:!1,start:8,startUnit:"亿",end:30,endUnit:"亿",btnText:"8亿~30亿",ase:null},{id:6,active:!1,start:30,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥30亿",ase:null}];break;case 5:b.key="turnoverRate",b.children=[{id:1,active:!1,start:null,startUnit:"%",end:1,endUnit:"%",btnText:"≤1%",ase:null,width:180},{id:2,active:!1,start:1,startUnit:"%",end:5,endUnit:"%",btnText:"1%~5%",ase:null,width:180},{id:3,active:!1,start:5,startUnit:"%",end:10,endUnit:"%",btnText:"5%~10%",ase:null,width:180},{id:4,active:!1,start:10,startUnit:"%",end:null,endUnit:"%",btnText:"≥10%",ase:null,width:180}];break;case 6:b.key="peTtm",b.children=[{id:1,active:!1,start:0,startUnit:"",end:0,endUnit:"",btnText:"亏损",ase:null},{id:2,active:!1,start:0,startUnit:"",end:null,endUnit:"",btnText:"≥0",ase:null},{id:3,active:!1,start:0,startUnit:"",end:20,endUnit:"",btnText:"0~20",ase:null},{id:4,active:!1,start:20,startUnit:"",end:40,endUnit:"",btnText:"20~40",ase:null},{id:5,active:!1,start:40,startUnit:"",end:100,endUnit:"",btnText:"40~100",ase:null},{id:6,active:!1,start:100,startUnit:"",end:null,endUnit:"",btnText:"≥100",ase:null}];break;case 7:b.key="eps",b.children=[{id:1,active:!1,start:null,startUnit:"元",end:0,endUnit:"元",btnText:"≤0",ase:null},{id:2,active:!1,start:0,startUnit:"元",end:null,endUnit:"元",btnText:"≥0",ase:null},{id:3,active:!1,start:.2,startUnit:"元",end:null,endUnit:"元",btnText:"≥0.2元",ase:null},{id:4,active:!1,start:.5,startUnit:"元",end:null,endUnit:"元",btnText:"≥0.5元",ase:null},{id:5,active:!1,start:1,startUnit:"元",end:null,endUnit:"元",btnText:"≥1元",ase:null},{id:6,active:!1,start:2,startUnit:"元",end:null,endUnit:"元",btnText:"≥2元",ase:null}];break;case 8:b.key="st",b.children=[];break;case 9:b.key="pb",b.children=[{id:1,active:!1,start:null,startUnit:"",end:0,endUnit:"",btnText:"破净",ase:null},{id:2,active:!1,start:0,startUnit:"",end:null,endUnit:"",btnText:"≥0",ase:null},{id:3,active:!1,start:0,startUnit:"",end:1,endUnit:"",btnText:"0~1",ase:null},{id:4,active:!1,start:1,startUnit:"",end:2,endUnit:"",btnText:"1~2",ase:null},{id:5,active:!1,start:0,startUnit:"",end:3,endUnit:"",btnText:"0~3",ase:null},{id:6,active:!1,start:3,startUnit:"",end:null,endUnit:"",btnText:"≥3",ase:null}];break;case 10:b.key="mnShr",b.children=[{id:1,active:!1,start:0,startUnit:"亿",end:1,endUnit:"亿",btnText:"0~1亿",ase:null},{id:2,active:!1,start:0,startUnit:"亿",end:5,endUnit:"亿",btnText:"0~5亿",ase:null},{id:3,active:!1,start:0,startUnit:"亿",end:10,endUnit:"亿",btnText:"0~10亿",ase:null},{id:4,active:!1,start:10,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥10亿",ase:null},{id:5,active:!1,start:50,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥50亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 11:b.key="roe",b.children=[{id:1,active:!1,start:null,startUnit:"%",end:0,endUnit:"%",btnText:"<0",ase:null},{id:2,active:!1,start:0,startUnit:"%",end:null,endUnit:"%",btnText:">0",ase:null},{id:3,active:!1,start:10,startUnit:"%",end:null,endUnit:"%",btnText:">10%",ase:null},{id:4,active:!1,start:15,startUnit:"%",end:null,endUnit:"%",btnText:">15%",ase:null},{id:5,active:!1,start:20,startUnit:"%",end:null,endUnit:"%",btnText:">20%",ase:null},{id:6,active:!1,start:30,startUnit:"%",end:null,endUnit:"%",btnText:">30%",ase:null}];break;default:b.key="",b.children=[];break}return b}),{id:77,dictId:1017,dictCode:12,dictName:"净利润",memo:null,key:"tFeaturelncomes",children:[{id:1,active:!1,yearsCount:1,rule:2,netProfit:0,withFewYears:1,btnText:"≤0",width:50},{id:2,active:!1,yearsCount:1,rule:1,netProfit:0,withFewYears:1,btnText:"≥0",width:50},{id:3,active:!1,yearsCount:4,rule:1,netProfit:.5,withFewYears:5,btnText:"五年内有四年以上盈利超过5千万",width:230},{id:4,active:!1,yearsCount:1,rule:1,netProfit:10,withFewYears:1,btnText:"≥10亿",width:80},{id:5,active:!1,yearsCount:1,rule:1,netProfit:20,withFewYears:1,btnText:"≥20亿",width:80}]}];var D8={exports:{}};/**
|
|
115
|
+
${r1.label||r1.value}(${typeof r1.percent=="number"?r1.percent:w(r(b(r1.value,q),100))}%)`}},series:[{type:"pie",width:"150%",height:"150%",center:[`${100/3}%`,`${100/3}%`],radius:"50%",data:F.data.map(G=>({...G,itemStyle:{color:G.color}})),label:{show:!0,position:"inside",formatter:G=>{var o1;const r1=((o1=G==null?void 0:G.data)==null?void 0:o1.label)||G.value;return r1===0?"":r1},fontSize:14,color:"#000"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return(q,G)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"chartRef",ref:H,class:"chart"},null,512))}}),S81="",_K=Fr(CK,[["__scopeId","data-v-1c35c9fa"]]),MK={install(e){e.component("st-pie",_K)}},T81="",I81="",O81="",L81="",B81="",R81="",F81="",zw=t.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0},showMargin:{type:Boolean,default:()=>!1}},setup(e){const o=e,r=t.computed(()=>{const{option:b,scope:w}=o;return typeof b.show=="function"?b.show(w.row,w.$index):b.show!==!1});return(b,w)=>{const N=Va,S=Fj;return r.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.option.needCheck?(t.openBlock(),t.createBlock(S,{key:0,title:e.option.needCheck.title,onConfirm:w[0]||(w[0]=T=>e.option.onClick(e.scope.row,e.scope.$index))},{reference:t.withCtx(()=>[t.createVNode(N,{type:e.option.type,disabled:typeof e.option.disabled=="function"?e.option.disabled(e.scope.row,e.scope.$index):e.option.disabled,style:t.normalizeStyle({marginTop:e.showMargin?"10px":0})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(typeof e.option.text=="function"?e.option.text(e.scope.row,e.scope.$index):e.option.text),1)]),_:1},8,["type","disabled","style"])]),_:1},8,["title"])):(t.openBlock(),t.createBlock(N,{key:1,type:e.option.type,disabled:typeof e.option.disabled=="function"?e.option.disabled(e.scope.row,e.scope.$index):e.option.disabled,style:t.normalizeStyle({marginTop:e.showMargin?"10px":0}),onClick:w[1]||(w[1]=T=>e.option.onClick(e.scope.row,e.scope.$index))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(typeof e.option.text=="function"?e.option.text(e.scope.row,e.scope.$index):e.option.text),1)]),_:1},8,["type","disabled","style"]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64))}}}),EK=t.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0}},setup(e){return(o,r)=>(t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(typeof e.option.style=="function"?e.option.style(e.scope.row[e.option.prop],e.scope.row):e.option.style)},t.toDisplayString(typeof e.option.formatter=="function"?e.option.formatter(e.scope.row[e.option.prop],e.scope.row):e.scope.row[e.option.prop]),5))}}),SK=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},column:{type:Array,default:()=>[]},loading:{type:Boolean,default:()=>!1},emptyText:{type:String,default:()=>""}},emits:["sortChange"],setup(e,{emit:o}){const r=o,b=e,w=t.computed(()=>b.column.filter(T=>T.show!==!1)),N=T=>{r("sortChange",T)},S=(T,B)=>T.filter(F=>typeof F.show=="function"&&F.show(B.row,B.$index)===!1?!1:F.show!==!1);return(T,B)=>{const F=Sn,H=Ku,U=a$,Q=r$,K=hu,q=h$;return t.openBlock(),t.createBlock(K,{locale:t.unref(ac)},{default:t.withCtx(()=>[t.withDirectives((t.openBlock(),t.createBlock(Q,{data:e.data,"empty-text":e.emptyText,stripe:"",style:{width:"100%"},onSortChange:N},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(w.value,G=>(t.openBlock(),t.createBlock(U,{key:G.prop,prop:G.prop,label:G.label,sortable:G.sortable,width:G.width,"min-width":G.minWidth},t.createSlots({_:2},[G.type==="formatter"?{name:"default",fn:t.withCtx(r1=>[t.createVNode(EK,{option:G,scope:r1},null,8,["option","scope"])]),key:"0"}:G.type==="slot"?{name:"default",fn:t.withCtx(r1=>[t.renderSlot(T.$slots,G.slot,{row:r1.row})]),key:"1"}:G.type==="btns"?{name:"default",fn:t.withCtx(r1=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(G.btns,(o1,v1)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${o1.text}-${v1}`},[o1.children?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[S(o1.children,r1).length?(t.openBlock(),t.createBlock(H,{key:0,placement:"bottom",trigger:"hover","popper-style":{minWidth:"0px",width:null}},{reference:t.withCtx(()=>[t.createVNode(F,{style:{marginLeft:"10px",verticalAlign:"-5px",cursor:"pointer"},size:"20"},{default:t.withCtx(()=>[t.createVNode(t.unref(Jl))]),_:1})]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S(o1.children,r1),(b1,t1)=>(t.openBlock(),t.createElementBlock("div",{key:`${b1.text}-${t1}`},[t.createVNode(zw,{option:b1,scope:r1,showMargin:t1!==0},null,8,["option","scope","showMargin"])]))),128))]),_:2},1024)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(zw,{key:1,option:o1,scope:r1},null,8,["option","scope"]))],64))),128))]),key:"2"}:void 0]),1032,["prop","label","sortable","width","min-width"]))),128))]),_:1},8,["data","empty-text"])),[[q,e.loading]])]),_:1},8,["locale"])}}}),TK={install(e){e.component("st-table",SK)}},IK=t.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})}},setup(e,{expose:o}){const r={tooltipFormatter:null,visibleMin:300};let b,w;const N=e,S=t.ref(),T=t.computed(()=>({...r,...N.config}));t.watch(()=>[N.data],()=>{B()},{deep:!0}),t.onMounted(()=>{b=L4.init(S.value),B();let F=!0;w=new ResizeObserver(()=>{if(F){F=null;return}b.resize()}),w.observe(S.value)}),t.onUnmounted(()=>{b.dispose(),w.disconnect(),w=null});const B=()=>{b.setOption({tooltip:{confine:!0,formatter:T.value.tooltipFormatter},series:[{type:"treemap",width:"100%",height:"100%",visibleMin:T.value.visibleMin,breadcrumb:{show:!1},label:{show:!0,formatter:"{b}"},upperLabel:{show:!0,height:30},itemStyle:{borderColor:"#fff"},levels:[{itemStyle:{borderColor:"#777",borderWidth:0,gapWidth:0},upperLabel:{show:!1}},{itemStyle:{borderColor:"#000",borderWidth:2,gapWidth:1},upperLabel:{padding:[8,0,0,0],formatter:F=>`{title|${F.data.name} ${F.data.labelValue}} {${F.data.percent>=0?"redPercent":"greenPercent"}|${F.data.percent}%}`,rich:{title:{color:"#fff",fontSize:14},redPercent:{color:"red",fontSize:14},greenPercent:{color:"green",fontSize:14}}}},{colorSaturation:[.35,.5],itemStyle:{borderWidth:0,gapWidth:1,borderColorSaturation:.6},label:{align:"center",verticalAlign:"middle",fontSize:20,formatter:F=>`${F.data.name}
|
|
116
|
+
${F.data.colorValue}`}}],data:N.data.map(F=>({...F,itemStyle:{color:F.color},children:F.children.map(H=>({...H,itemStyle:{color:H.color}}))}))}]},!0)};return o({reset:()=>{B()}}),(F,H)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"chartRef",ref:S,class:"chart"},null,512))}}),k81="",OK=Fr(IK,[["__scopeId","data-v-f3c138ba"]]),LK={install(e){e.component("st-treeMap",OK)}},z81="",P81="",j81="",H81="",$81="",U81="",V81="",q81="",A8=e=>(t.pushScopeId("data-v-38d08346"),e=e(),t.popScopeId(),e),BK={class:"component-main"},RK={style:{display:"inline-block"}},FK=A8(()=>t.createElementVNode("span",null,"~",-1)),kK=A8(()=>t.createElementVNode("div",{class:"title"},"因子筛选",-1)),zK=A8(()=>t.createElementVNode("div",{style:{"text-align":"center"}},"操作",-1)),PK=A8(()=>t.createElementVNode("span",null," ~ ",-1)),jK={class:"card-bottom"},HK={style:{display:"inline-block"}},$K=Fr({__name:"index",props:{label:{type:String,default:"因子筛选",require:!0},modelValue:{type:Array,default:[],require:!0},freqList:{type:Array,default:[]},factorList:{type:Array,default:[]}},emits:["updata","update:modelValue"],setup(e,{expose:o,emit:r}){const b=r,w=e,N=t.ref(!1),S=t.ref([]),T=t.computed({get(){return w.modelValue},set(K){b("update:modelValue",K)}}),B=()=>{S.value.length||S.value.push({factorId:null,freqId:null,startScore:null,endScore:null,key:new Date().getTime()}),N.value=!0},F=K=>{S.value=S.value.filter(q=>q.key!==K.key),T.value=T.value.filter(q=>q.key!==K.key)},H=()=>{S.value=[],T.value=[]},U=()=>{let K=!0;const q=S.value.map((G,r1)=>{const o1={...G};return(!o1.factorId||!o1.freqId)&&(K=!1,o1.factorStatus=!o1.factorId,o1.freqStatus=!o1.freqId),(o1.startScore===""||o1.startScore===null)&&(o1.endScore===""||o1.endScore===null)?(K=!1,o1.startScoreStatus=!0,o1.endScoreStatus=!0):(o1.startScoreStatus=!1,o1.endScoreStatus=!1),S.value[r1]={...o1},o1});K?(N.value=!1,T.value=q):Iv.warning("请输入未填项")};return o({delData:F,clean:H,init:()=>{S.value=[{factorId:null,freqId:null,startScore:null,endScore:null,key:new Date().getTime()}],T.value=[]}}),(K,q)=>{const G=Va,r1=ju,o1=$k,v1=kk,b1=Wu,t1=Yu,h1=tv,l1=Ku;return t.openBlock(),t.createElementBlock("div",BK,[t.createElementVNode("span",null,t.toDisplayString(w.label),1),t.createVNode(G,{text:"",type:"primary",size:"small",onClick:H},{default:t.withCtx(()=>[t.createTextVNode(" 不限 ")]),_:1}),t.renderSlot(K.$slots,"default",{},()=>[t.createElementVNode("div",RK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(T.value,(i1,I1)=>(t.openBlock(),t.createBlock(r1,{style:{"margin-right":"5px"},key:i1.key,closable:"",type:"info","disable-transitions":!1,onClose:U1=>F(i1)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i1.freqName||"")+" "+t.toDisplayString(i1.factorName||"")+" "+t.toDisplayString(i1.startScore===null?" / ":i1.startScore+"分")+" ",1),FK,t.createTextVNode(" "+t.toDisplayString(i1.endScore===null?" / ":i1.endScore+"分"),1)]),_:2},1032,["onClose"]))),128))])],!0),t.createVNode(l1,{visible:N.value,placement:"top",width:700},{reference:t.withCtx(()=>[t.createElementVNode("div",HK,[t.createVNode(G,{type:"primary",size:"small",onClick:B},{default:t.withCtx(()=>[t.createTextVNode(" 添加 ")]),_:1})])]),default:t.withCtx(()=>[kK,t.createVNode(v1,{class:"list"},{default:t.withCtx(()=>[t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createTextVNode(" 周期 ")]),_:1}),t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createTextVNode(" 因子 ")]),_:1}),t.createVNode(o1,{span:8},{default:t.withCtx(()=>[t.createTextVNode(" 分数范围 ")]),_:1}),t.createVNode(o1,{span:4},{default:t.withCtx(()=>[zK]),_:1})]),_:1}),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(S.value,(i1,I1)=>(t.openBlock(),t.createBlock(v1,{key:i1.key,class:"list"},{default:t.withCtx(()=>[t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createVNode(t1,{modelValue:i1.freqId,"onUpdate:modelValue":U1=>i1.freqId=U1,class:t.normalizeClass(i1.freqStatus?"border-red":""),style:{width:"150px"},size:"small",placeholder:"请选择",onChange:U1=>{i1.freqStatus=!1,i1.freqName=e.freqList.find(ee=>ee.value===U1).label}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.freqList,U1=>(t.openBlock(),t.createBlock(b1,{key:U1.value,label:U1.label,value:U1.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","class","onChange"])]),_:2},1024),t.createVNode(o1,{span:6},{default:t.withCtx(()=>[t.createVNode(t1,{modelValue:i1.factorId,"onUpdate:modelValue":U1=>i1.factorId=U1,class:t.normalizeClass(i1.factorStatus?"border-red":""),style:{width:"150px"},size:"small",placeholder:"请选择",onChange:U1=>{i1.factorStatus=!1,i1.factorName=e.factorList.find(ee=>ee.id===U1).factorName}},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.factorList,U1=>(t.openBlock(),t.createBlock(b1,{key:U1.id,label:U1.factorName,value:U1.id},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","class","onChange"])]),_:2},1024),t.createVNode(o1,{span:8},{default:t.withCtx(()=>[t.createVNode(h1,{modelValue:i1.startScore,"onUpdate:modelValue":U1=>i1.startScore=U1,class:t.normalizeClass(i1.startScoreStatus?"border-red":""),style:{width:"100px"},step:.5,min:-999,max:999,"controls-position":"right",size:"small",onChange:()=>{i1.startScoreStatus=!1,i1.endScoreStatus=!1}},null,8,["modelValue","onUpdate:modelValue","class","onChange"]),PK,t.createVNode(h1,{modelValue:i1.endScore,"onUpdate:modelValue":U1=>i1.endScore=U1,class:t.normalizeClass(i1.endScoreStatus?"border-red":""),style:{width:"100px"},step:.5,min:-999,max:999,"controls-position":"right",size:"small",onChange:U1=>{i1.startScoreStatus=!1,i1.endScoreStatus=!1}},null,8,["modelValue","onUpdate:modelValue","class","onChange"])]),_:2},1024),t.createVNode(o1,{span:4},{default:t.withCtx(()=>[t.createVNode(G,{size:"small",type:"primary",text:"",onClick:()=>{S.value.splice(I1+1,0,{factorId:null,freqId:null,startScore:null,endScore:null,key:new Date().getTime()})}},{default:t.withCtx(()=>[t.createTextVNode(" 添加 ")]),_:2},1032,["onClick"]),t.createVNode(G,{size:"small",type:"danger",text:"",onClick:()=>{S.value.splice(I1,1)}},{default:t.withCtx(()=>[t.createTextVNode(" 删除 ")]),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024))),128)),t.createElementVNode("div",jK,[t.createVNode(G,{onClick:q[0]||(q[0]=i1=>N.value=!1)},{default:t.withCtx(()=>[t.createTextVNode(" 取消 ")]),_:1}),t.createVNode(G,{type:"primary",onClick:q[1]||(q[1]=i1=>U())},{default:t.withCtx(()=>[t.createTextVNode(" 确认 ")]),_:1})])]),_:1},8,["visible"])])}}},[["__scopeId","data-v-38d08346"]]),W81="",G81="",K81="",Z81="",UK=e=>[...e.map(r=>{const b={key:"",children:[],...r};switch(r.dictCode){case 1:b.key="marketCapital",b.children=[{id:1,active:!1,start:null,starUnit:"亿",end:null,endUnit:"亿",btnText:"从小到大",ase:!0},{id:2,active:!1,start:null,startUnit:"亿",end:10,endUnit:"亿",btnText:"≤10亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:25,endUnit:"亿",btnText:"≤25亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:50,endUnit:"亿",btnText:"≤50亿",ase:null},{id:5,active:!1,start:20,startUnit:"亿",end:50,endUnit:"亿",btnText:"20~50亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 2:b.key="floatMarketCapital",b.children=[{id:1,active:!1,start:null,starUnit:"亿",end:null,endUnit:"亿",btnText:"从小到大",ase:!0},{id:2,active:!1,start:null,startUnit:"亿",end:5,endUnit:"亿",btnText:"≤5亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:20,endUnit:"亿",btnText:"≤20亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:50,endUnit:"亿",btnText:"≤50亿",ase:null},{id:5,active:!1,start:null,startUnit:"亿",end:100,endUnit:"亿",btnText:"≤100亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 3:b.key="totalShares",b.children=[{id:1,active:!1,start:null,starUnit:"亿",end:null,endUnit:"亿",btnText:"从小到大",ase:!0},{id:2,active:!1,start:null,startUnit:"亿",end:5,endUnit:"亿",btnText:"≤5亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:10,endUnit:"亿",btnText:"≤10亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:75,endUnit:"亿",btnText:"≤75亿",ase:null},{id:5,active:!1,start:10,startUnit:"亿",end:75,endUnit:"亿",btnText:"100~75亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 4:b.key="freeFloatShares",b.children=[{id:1,active:!1,start:null,startUnit:"亿",end:5,endUnit:"千万",btnText:"≤5千万",ase:null},{id:2,active:!1,start:5,startUnit:"千万",end:3,endUnit:"亿",btnText:"5千万~3亿",ase:null},{id:3,active:!1,start:null,startUnit:"亿",end:5,endUnit:"亿",btnText:"≤5亿",ase:null},{id:4,active:!1,start:null,startUnit:"亿",end:10,endUnit:"亿",btnText:"≤10亿",ase:null},{id:5,active:!1,start:8,startUnit:"亿",end:30,endUnit:"亿",btnText:"8亿~30亿",ase:null},{id:6,active:!1,start:30,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥30亿",ase:null}];break;case 5:b.key="turnoverRate",b.children=[{id:1,active:!1,start:null,startUnit:"%",end:1,endUnit:"%",btnText:"≤1%",ase:null,width:180},{id:2,active:!1,start:1,startUnit:"%",end:5,endUnit:"%",btnText:"1%~5%",ase:null,width:180},{id:3,active:!1,start:5,startUnit:"%",end:10,endUnit:"%",btnText:"5%~10%",ase:null,width:180},{id:4,active:!1,start:10,startUnit:"%",end:null,endUnit:"%",btnText:"≥10%",ase:null,width:180}];break;case 6:b.key="peTtm",b.children=[{id:1,active:!1,start:0,startUnit:"",end:0,endUnit:"",btnText:"亏损",ase:null},{id:2,active:!1,start:0,startUnit:"",end:null,endUnit:"",btnText:"≥0",ase:null},{id:3,active:!1,start:0,startUnit:"",end:20,endUnit:"",btnText:"0~20",ase:null},{id:4,active:!1,start:20,startUnit:"",end:40,endUnit:"",btnText:"20~40",ase:null},{id:5,active:!1,start:40,startUnit:"",end:100,endUnit:"",btnText:"40~100",ase:null},{id:6,active:!1,start:100,startUnit:"",end:null,endUnit:"",btnText:"≥100",ase:null}];break;case 7:b.key="eps",b.children=[{id:1,active:!1,start:null,startUnit:"元",end:0,endUnit:"元",btnText:"≤0",ase:null},{id:2,active:!1,start:0,startUnit:"元",end:null,endUnit:"元",btnText:"≥0",ase:null},{id:3,active:!1,start:.2,startUnit:"元",end:null,endUnit:"元",btnText:"≥0.2元",ase:null},{id:4,active:!1,start:.5,startUnit:"元",end:null,endUnit:"元",btnText:"≥0.5元",ase:null},{id:5,active:!1,start:1,startUnit:"元",end:null,endUnit:"元",btnText:"≥1元",ase:null},{id:6,active:!1,start:2,startUnit:"元",end:null,endUnit:"元",btnText:"≥2元",ase:null}];break;case 8:b.key="st",b.children=[];break;case 9:b.key="pb",b.children=[{id:1,active:!1,start:null,startUnit:"",end:0,endUnit:"",btnText:"破净",ase:null},{id:2,active:!1,start:0,startUnit:"",end:null,endUnit:"",btnText:"≥0",ase:null},{id:3,active:!1,start:0,startUnit:"",end:1,endUnit:"",btnText:"0~1",ase:null},{id:4,active:!1,start:1,startUnit:"",end:2,endUnit:"",btnText:"1~2",ase:null},{id:5,active:!1,start:0,startUnit:"",end:3,endUnit:"",btnText:"0~3",ase:null},{id:6,active:!1,start:3,startUnit:"",end:null,endUnit:"",btnText:"≥3",ase:null}];break;case 10:b.key="mnShr",b.children=[{id:1,active:!1,start:0,startUnit:"亿",end:1,endUnit:"亿",btnText:"0~1亿",ase:null},{id:2,active:!1,start:0,startUnit:"亿",end:5,endUnit:"亿",btnText:"0~5亿",ase:null},{id:3,active:!1,start:0,startUnit:"亿",end:10,endUnit:"亿",btnText:"0~10亿",ase:null},{id:4,active:!1,start:10,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥10亿",ase:null},{id:5,active:!1,start:50,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥50亿",ase:null},{id:6,active:!1,start:100,startUnit:"亿",end:null,endUnit:"亿",btnText:"≥100亿",ase:null}];break;case 11:b.key="roe",b.children=[{id:1,active:!1,start:null,startUnit:"%",end:0,endUnit:"%",btnText:"<0",ase:null},{id:2,active:!1,start:0,startUnit:"%",end:null,endUnit:"%",btnText:">0",ase:null},{id:3,active:!1,start:10,startUnit:"%",end:null,endUnit:"%",btnText:">10%",ase:null},{id:4,active:!1,start:15,startUnit:"%",end:null,endUnit:"%",btnText:">15%",ase:null},{id:5,active:!1,start:20,startUnit:"%",end:null,endUnit:"%",btnText:">20%",ase:null},{id:6,active:!1,start:30,startUnit:"%",end:null,endUnit:"%",btnText:">30%",ase:null}];break;default:b.key="",b.children=[];break}return b}),{id:77,dictId:1017,dictCode:12,dictName:"净利润",memo:null,key:"tFeaturelncomes",children:[{id:1,active:!1,yearsCount:1,rule:2,netProfit:0,withFewYears:1,btnText:"≤0",width:50},{id:2,active:!1,yearsCount:1,rule:1,netProfit:0,withFewYears:1,btnText:"≥0",width:50},{id:3,active:!1,yearsCount:4,rule:1,netProfit:.5,withFewYears:5,btnText:"五年内有四年以上盈利超过5千万",width:230},{id:4,active:!1,yearsCount:1,rule:1,netProfit:10,withFewYears:1,btnText:"≥10亿",width:80},{id:5,active:!1,yearsCount:1,rule:1,netProfit:20,withFewYears:1,btnText:"≥20亿",width:80}]}];var D8={exports:{}};/**
|
|
117
117
|
* @license
|
|
118
118
|
* Lodash <https://lodash.com/>
|
|
119
119
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|