"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importStar(require("react"));
var context_1 = require("../context");
function IconUpgradeEngineComponent(props, ref) {
    var prefixFromContext = (0, react_1.useContext)(context_1.Context).prefix;
    var _a = props.className, className = _a === void 0 ? '' : _a, prefixFromProps = props.prefix, _b = props.width, width = _b === void 0 ? '1em' : _b, _c = props.height, height = _c === void 0 ? '1em' : _c, _d = props.useCurrentColor, useCurrentColor = _d === void 0 ? false : _d, spin = props.spin, rest = __rest(props, ["className", "prefix", "width", "height", "useCurrentColor", "spin"]);
    var prefix = prefixFromProps || prefixFromContext || 'hiagent';
    var loadingKls = spin ? " ".concat(prefix, "-icon-loading") : '';
    return react_1.default.createElement("svg", __assign({ className: "".concat(prefix, "-icon ").concat(prefix, "-icon-upgrade_engine").concat(loadingKls, " ").concat(className), width: width, height: height, viewBox: "0 0 16 16", fill: useCurrentColor ? 'currentColor' : 'none', xmlns: "http://www.w3.org/2000/svg" }, rest, { ref: ref }),
        react_1.default.createElement("rect", { width: "16", height: "16", rx: "4", fill: useCurrentColor ? 'currentColor' : '#309256' }),
        react_1.default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.04451 2.97569C8.05536 2.98505 8.0655 2.99519 8.07486 3.00604L12.5681 8.21505C12.6175 8.28403 12.6493 8.36611 12.6603 8.45556C12.6618 8.46682 12.6626 8.47787 12.6636 8.48913C12.6642 8.49977 12.6665 8.50959 12.6665 8.52024C12.6665 8.52638 12.6649 8.53231 12.6647 8.53846C12.6644 8.56384 12.6616 8.58901 12.6554 8.6277C12.6294 8.7632 12.5521 8.88703 12.4295 8.96154C12.4143 8.97075 12.3983 8.97648 12.3827 8.98364C12.3749 8.98733 12.3673 8.99142 12.3593 8.9947C12.3439 9.00084 12.3282 9.00554 12.3124 9.01005C12.2931 9.01578 12.2736 9.02069 12.2472 9.02479C12.2246 9.02806 12.2021 9.03195 12.1785 9.03195H9.73862V12.64C9.73862 12.8158 9.59297 12.9583 9.4133 12.9583H6.29471C6.11504 12.9583 5.96939 12.8158 5.96939 12.64V9.03195H3.52948C3.50587 9.03195 3.48342 9.02806 3.45473 9.02417C3.43443 9.02069 3.41491 9.01578 3.39558 9.01005C3.37977 9.00554 3.36416 9.00084 3.34874 8.9947C3.34073 8.99142 3.33312 8.98733 3.32531 8.98364C3.3097 8.97648 3.29369 8.97075 3.27847 8.96154C3.15589 8.88703 3.07859 8.7632 3.05048 8.61419C3.04638 8.58901 3.04365 8.56384 3.04326 8.53846C3.04307 8.53231 3.0415 8.52638 3.0415 8.52024C3.0415 8.50959 3.04385 8.49977 3.04443 8.48913C3.04541 8.47787 3.04619 8.46682 3.04775 8.45556C3.05868 8.36611 3.09069 8.28403 3.13988 8.21505L7.63315 3.00604C7.73836 2.88407 7.92254 2.87048 8.04451 2.97569Z", fill: useCurrentColor ? 'currentColor' : '#fff' }));
}
var IconUpgradeEngine = react_1.default.forwardRef(IconUpgradeEngineComponent);
exports.default = IconUpgradeEngine;
