Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/tslib/tslib.es6.js

    rd565449 r0c6b92a  
    1313PERFORMANCE OF THIS SOFTWARE.
    1414***************************************************************************** */
    15 /* global Reflect, Promise, SuppressedError, Symbol */
     15/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
    1616
    1717var extendStatics = function(d, b) {
     
    124124
    125125export function __generator(thisArg, body) {
    126     var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    127     return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
     126    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
     127    return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    128128    function verb(n) { return function (v) { return step([n, v]); }; }
    129129    function step(op) {
     
    229229    if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
    230230    var g = generator.apply(thisArg, _arguments || []), i, q = [];
    231     return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
     231    return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
    232232    function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
    233233    function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
     
    264264};
    265265
     266var ownKeys = function(o) {
     267    ownKeys = Object.getOwnPropertyNames || function (o) {
     268        var ar = [];
     269        for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
     270        return ar;
     271    };
     272    return ownKeys(o);
     273};
     274
    266275export function __importStar(mod) {
    267276    if (mod && mod.__esModule) return mod;
    268277    var result = {};
    269     if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
     278    if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
    270279    __setModuleDefault(result, mod);
    271280    return result;
     
    328337        env.hasError = true;
    329338    }
     339    var r, s = 0;
    330340    function next() {
    331         while (env.stack.length) {
    332             var rec = env.stack.pop();
     341        while (r = env.stack.pop()) {
    333342            try {
    334                 var result = rec.dispose && rec.dispose.call(rec.value);
    335                 if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
     343                if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
     344                if (r.dispose) {
     345                    var result = r.dispose.call(r.value);
     346                    if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
     347                }
     348                else s |= 1;
    336349            }
    337350            catch (e) {
     
    339352            }
    340353        }
     354        if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
    341355        if (env.hasError) throw env.error;
    342356    }
    343357    return next();
     358}
     359
     360export function __rewriteRelativeImportExtension(path, preserveJsx) {
     361    if (typeof path === "string" && /^\.\.?\//.test(path)) {
     362        return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
     363            return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
     364        });
     365    }
     366    return path;
    344367}
    345368
     
    350373    __decorate: __decorate,
    351374    __param: __param,
     375    __esDecorate: __esDecorate,
     376    __runInitializers: __runInitializers,
     377    __propKey: __propKey,
     378    __setFunctionName: __setFunctionName,
    352379    __metadata: __metadata,
    353380    __awaiter: __awaiter,
     
    372399    __addDisposableResource: __addDisposableResource,
    373400    __disposeResources: __disposeResources,
    374 };
     401    __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,
     402};
Note: See TracChangeset for help on using the changeset viewer.