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oot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/sim-intfc@0.1.1/fullSim.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = function (d, b) {\r\n        extendStatics = Object.setPrototypeOf ||\r\n            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n        return extendStatics(d, b);\r\n    };\r\n    return function (d, b) {\r\n        if (typeof b !== \"function\" && b !== null)\r\n            throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nexports.__esModule = true;\r\nexports.FullSim = void 0;\r\nvar xpl_1 = require(\"./xpl\");\r\nvar fsx_1 = require(\"./fsx\");\r\nvar fsuipc_typescript_client_1 = require(\"@tfdidesign/fsuipc-typescript-client\");\r\nvar EventEmitter = require(\"events\");\r\nvar FullSim = /** @class */ (function (_super) {\r\n    __extends(FullSim, _super);\r\n    function FullSim() {\r\n        return _super.call(this) || this;\r\n    }\r\n    FullSim.prototype.connect = function (sim) {\r\n        var _this = this;\r\n        this._client = sim == 'XPL' ? this._client = new xpl_1.XPlane() : new fsx_1.FSX(fsuipc_typescript_client_1.Simulator[sim]);\r\n        this._client = new xpl_1.XPlane();\r\n        this._client.listen();\r\n        this._client.on('update', function (data) {\r\n            _this.emit('update', data);\r\n        });\r\n    };\r\n    return FullSim;\r\n}(EventEmitter));\r\nexports.FullSim = FullSim;\r\n"]}