System.register(["cce:/internal/code-quality/cr.mjs", "cc", "decimal.js"], function (_export, _context) {
  "use strict";

  var _reporterNs, _cclegacy, _decorator, Decimal, _dec, _class, _crd, ccclass, property, UseDecimal;

  function _reportPossibleCrUseOfDecimal(extras) {
    _reporterNs.report("Decimal", "decimal.js", _context.meta, extras);
  }

  return {
    setters: [function (_cceInternalCodeQualityCrMjs) {
      _reporterNs = _cceInternalCodeQualityCrMjs;
    }, function (_cc) {
      _cclegacy = _cc.cclegacy;
      _decorator = _cc._decorator;
    }, function (_decimalJs) {
      Decimal = _decimalJs.Decimal;
    }],
    execute: function () {
      _crd = true;

      _cclegacy._RF.push({}, "1066bhWVRJKrIxShi/7FwE1", "useDecimal", undefined);

      ccclass = _decorator.ccclass;
      property = _decorator.property;

      _export("UseDecimal", UseDecimal = (_dec = ccclass('UseDecimal'), _dec(_class = /*#__PURE__*/function () {
        function UseDecimal() {}

        /**
         * 获取绝对值
         * @param value 值
         * @returns Decimal
         */
        UseDecimal.abs = function abs(value) {
          return new (_crd && Decimal === void 0 ? (_reportPossibleCrUseOfDecimal({
            error: Error()
          }), Decimal) : Decimal)(value).abs();
        };

        return UseDecimal;
      }()) || _class));

      _cclegacy._RF.pop();

      _crd = false;
    }
  };
});
//# sourceMappingURL=useDecimal.js.map