1 |
- {"ast":null,"code":"\"use strict\";\n\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.Events = void 0;\nconst Error_js_1 = require(\"./Error.js\");\nconst EventSource_js_1 = require(\"./EventSource.js\");\nclass Events {\n static setEventSource(eventSource) {\n if (!eventSource) {\n throw new Error_js_1.ArgumentNullError(\"eventSource\");\n }\n Events.privInstance = eventSource;\n }\n static get instance() {\n return Events.privInstance;\n }\n}\nexports.Events = Events;\nEvents.privInstance = new EventSource_js_1.EventSource();","map":{"version":3,"names":["Object","defineProperty","exports","value","Events","Error_js_1","require","EventSource_js_1","setEventSource","eventSource","ArgumentNullError","privInstance","instance","EventSource"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/Events.js"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Events = void 0;\nconst Error_js_1 = require(\"./Error.js\");\nconst EventSource_js_1 = require(\"./EventSource.js\");\nclass Events {\n static setEventSource(eventSource) {\n if (!eventSource) {\n throw new Error_js_1.ArgumentNullError(\"eventSource\");\n }\n Events.privInstance = eventSource;\n }\n static get instance() {\n return Events.privInstance;\n }\n}\nexports.Events = Events;\nEvents.privInstance = new EventSource_js_1.EventSource();\n\n"],"mappings":"AAAA,YAAY;;AACZ;AACA;AACAA,MAAM,CAACC,cAAc,CAACC,OAAO,EAAE,YAAY,EAAE;EAAEC,KAAK,EAAE;AAAK,CAAC,CAAC;AAC7DD,OAAO,CAACE,MAAM,GAAG,KAAK,CAAC;AACvB,MAAMC,UAAU,GAAGC,OAAO,CAAC,YAAY,CAAC;AACxC,MAAMC,gBAAgB,GAAGD,OAAO,CAAC,kBAAkB,CAAC;AACpD,MAAMF,MAAM,CAAC;EACT,OAAOI,cAAcA,CAACC,WAAW,EAAE;IAC/B,IAAI,CAACA,WAAW,EAAE;MACd,MAAM,IAAIJ,UAAU,CAACK,iBAAiB,CAAC,aAAa,CAAC;IACzD;IACAN,MAAM,CAACO,YAAY,GAAGF,WAAW;EACrC;EACA,WAAWG,QAAQA,CAAA,EAAG;IAClB,OAAOR,MAAM,CAACO,YAAY;EAC9B;AACJ;AACAT,OAAO,CAACE,MAAM,GAAGA,MAAM;AACvBA,MAAM,CAACO,YAAY,GAAG,IAAIJ,gBAAgB,CAACM,WAAW,CAAC,CAAC","ignoreList":[]},"metadata":{},"sourceType":"script","externalDependencies":[]}
|