"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.copyToClipboard = void 0;
const copyToClipboard = (input) => {
    const inputElement = document.createElement('input');
    document.body.appendChild(inputElement);
    inputElement.value = typeof input === 'number' ? String(input) : input;
    inputElement.select();
    inputElement.setSelectionRange(0, 99999);
    document.execCommand('copy');
    document.body.removeChild(inputElement);
};
exports.copyToClipboard = copyToClipboard;
//# sourceMappingURL=copyToClipboard.js.map