["^ ","~:resource-id",["~:shadow.build.npm/resource","node_modules/mathjs/lib/cjs/function/arithmetic/sign.js"],"~:js","shadow$provide.module$node_modules$mathjs$lib$cjs$function$arithmetic$sign=function(global,require,module,exports){Object.defineProperty(exports,\"__esModule\",{value:!0});exports.createSign=void 0;global=require(\"module$node_modules$mathjs$lib$cjs$utils$factory\");var _collection=require(\"module$node_modules$mathjs$lib$cjs$utils$collection\"),_index=require(\"module$node_modules$mathjs$lib$cjs$plain$number$index\");require=(0,global.factory)(\"sign\",[\"typed\",\"BigNumber\",\"Fraction\",\"complex\"],function(_ref){var typed=\n_ref.typed,_BigNumber=_ref.BigNumber,complex=_ref.complex,_Fraction=_ref.Fraction;return typed(\"sign\",{number:_index.signNumber,Complex:function(x){return 0===x.im?complex((0,_index.signNumber)(x.re)):x.sign()},BigNumber:function(x){return new _BigNumber(x.cmp(0))},Fraction:function(x){return new _Fraction(x.s,1)},\"Array | Matrix\":function(x){return(0,_collection.deepMap)(x,this,!0)},Unit:function(x){return this(x.value)}})});exports.createSign=require}","~:source","shadow$provide[\"module$node_modules$mathjs$lib$cjs$function$arithmetic$sign\"] = function(global,require,module,exports) {\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.createSign = void 0;\n\nvar _factory = require(\"../../utils/factory.js\");\n\nvar _collection = require(\"../../utils/collection.js\");\n\nvar _index = require(\"../../plain/number/index.js\");\n\nvar name = 'sign';\nvar dependencies = ['typed', 'BigNumber', 'Fraction', 'complex'];\nvar createSign = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\n  var typed = _ref.typed,\n      _BigNumber = _ref.BigNumber,\n      complex = _ref.complex,\n      _Fraction = _ref.Fraction;\n\n  /**\n   * Compute the sign of a value. The sign of a value x is:\n   *\n   * -  1 when x > 0\n   * - -1 when x < 0\n   * -  0 when x == 0\n   *\n   * For matrices, the function is evaluated element wise.\n   *\n   * Syntax:\n   *\n   *    math.sign(x)\n   *\n   * Examples:\n   *\n   *    math.sign(3.5)               // returns 1\n   *    math.sign(-4.2)              // returns -1\n   *    math.sign(0)                 // returns 0\n   *\n   *    math.sign([3, 5, -2, 0, 2])  // returns [1, 1, -1, 0, 1]\n   *\n   * See also:\n   *\n   *    abs\n   *\n   * @param  {number | BigNumber | Fraction | Complex | Array | Matrix | Unit} x\n   *            The number for which to determine the sign\n   * @return {number | BigNumber | Fraction | Complex | Array | Matrix | Unit}e\n   *            The sign of `x`\n   */\n  return typed(name, {\n    number: _index.signNumber,\n    Complex: function Complex(x) {\n      return x.im === 0 ? complex((0, _index.signNumber)(x.re)) : x.sign();\n    },\n    BigNumber: function BigNumber(x) {\n      return new _BigNumber(x.cmp(0));\n    },\n    Fraction: function Fraction(x) {\n      return new _Fraction(x.s, 1);\n    },\n    'Array | Matrix': function ArrayMatrix(x) {\n      // deep map collection, skip zeros since sign(0) = 0\n      return (0, _collection.deepMap)(x, this, true);\n    },\n    Unit: function Unit(x) {\n      return this(x.value);\n    }\n  });\n});\nexports.createSign = createSign;\n};","~:removed-requires",["~#set",[]],"~:actual-requires",["^5",["~$module$node_modules$mathjs$lib$cjs$plain$number$index","~$shadow.js","~$module$node_modules$mathjs$lib$cjs$utils$collection","~$module$node_modules$mathjs$lib$cjs$utils$factory"]],"~:properties",["^5",["Unit","Complex","__esModule","value","number","BigNumber","Fraction","createSign"]],"~:compiled-at",1619135262190,"~:source-map-json","{\n\"version\":3,\n\"file\":\"module$node_modules$mathjs$lib$cjs$function$arithmetic$sign.js\",\n\"lineCount\":2,\n\"mappings\":\"AAAAA,cAAA,CAAA,2DAAA,CAAgF,QAAQ,CAACC,MAAD,CAAQC,OAAR,CAAgBC,MAAhB,CAAuBC,OAAvB,CAAgC,CAGxHC,MAAOC,CAAAA,cAAP,CAAsBF,OAAtB,CAA+B,YAA/B,CAA6C,CAC3CG,MAAO,CAAA,CADoC,CAA7C,CAGAH,QAAQI,CAAAA,UAAR,CAAqB,IAAK,EAEtBC,OAAAA,CAAWP,OAAA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fN,CAAZ,CApCiF,CAA1D,CAwDhCH,QAAQI,CAAAA,UAAR,CAAqBA,OAxEmG;\",\n\"sources\":[\"node_modules/mathjs/lib/cjs/function/arithmetic/sign.js\"],\n\"sourcesContent\":[\"shadow$provide[\\\"module$node_modules$mathjs$lib$cjs$function$arithmetic$sign\\\"] = function(global,require,module,exports) {\\n\\\"use strict\\\";\\n\\nObject.defineProperty(exports, \\\"__esModule\\\", {\\n  value: true\\n});\\nexports.createSign = void 0;\\n\\nvar _factory = require(\\\"../../utils/factory.js\\\");\\n\\nvar _collection = require(\\\"../../utils/collection.js\\\");\\n\\nvar _index = require(\\\"../../plain/number/index.js\\\");\\n\\nvar name = 'sign';\\nvar dependencies = ['typed', 'BigNumber', 'Fraction', 'complex'];\\nvar createSign = /* #__PURE__ */(0, _factory.factory)(name, dependencies, function (_ref) {\\n  var typed = _ref.typed,\\n      _BigNumber = _ref.BigNumber,\\n      complex = _ref.complex,\\n      _Fraction = _ref.Fraction;\\n\\n  /**\\n   * Compute the sign of a value. The sign of a value x is:\\n   *\\n   * -  1 when x > 0\\n   * - -1 when x < 0\\n   * -  0 when x == 0\\n   *\\n   * For matrices, the function is evaluated element wise.\\n   *\\n   * Syntax:\\n   *\\n   *    math.sign(x)\\n   *\\n   * Examples:\\n   *\\n   *    math.sign(3.5)               // returns 1\\n   *    math.sign(-4.2)              // returns -1\\n   *    math.sign(0)                 // returns 0\\n   *\\n   *    math.sign([3, 5, -2, 0, 2])  // returns [1, 1, -1, 0, 1]\\n   *\\n   * See also:\\n   *\\n   *    abs\\n   *\\n   * @param  {number | BigNumber | Fraction | Complex | Array | Matrix | Unit} x\\n   *            The number for which to determine the sign\\n   * @return {number | BigNumber | Fraction | Complex | Array | Matrix | Unit}e\\n   *            The sign of `x`\\n   */\\n  return typed(name, {\\n    number: _index.signNumber,\\n    Complex: function Complex(x) {\\n      return x.im === 0 ? complex((0, _index.signNumber)(x.re)) : x.sign();\\n    },\\n    BigNumber: function BigNumber(x) {\\n      return new _BigNumber(x.cmp(0));\\n    },\\n    Fraction: function Fraction(x) {\\n      return new _Fraction(x.s, 1);\\n    },\\n    'Array | Matrix': function ArrayMatrix(x) {\\n      // deep map collection, skip zeros since sign(0) = 0\\n      return (0, _collection.deepMap)(x, this, true);\\n    },\\n    Unit: function Unit(x) {\\n      return this(x.value);\\n    }\\n  });\\n});\\nexports.createSign = createSign;\\n};\"],\n\"names\":[\"shadow$provide\",\"global\",\"require\",\"module\",\"exports\",\"Object\",\"defineProperty\",\"value\",\"createSign\",\"_factory\",\"_collection\",\"_index\",\"factory\",\"name\",\"dependencies\",\"_ref\",\"typed\",\"_BigNumber\",\"BigNumber\",\"complex\",\"_Fraction\",\"Fraction\",\"number\",\"signNumber\",\"Complex\",\"x\",\"im\",\"re\",\"sign\",\"cmp\",\"s\",\"ArrayMatrix\",\"deepMap\",\"Unit\"]\n}\n"]