app/templates/public/swagger-ui/swagger-ui.js
function Q(value) {
    // If the object is already a Promise, return it directly.  This enables
    // the resolve function to both be used to created references from objects,
    // but to tolerably coerce non-promises to promises.
    if (value instanceof Promise) {
        return value;
    }

    // assimilate thenables
    if (isPromiseAlike(value)) {
        return coerce(value);
    } else {
        return fulfill(value);
    }
}
function Q(value) {
    // If the object is already a Promise, return it directly.  This enables
    // the resolve function to both be used to created references from objects,
    // but to tolerably coerce non-promises to promises.
    if (value instanceof Promise) {
        return value;
    }

    // assimilate thenables
    if (isPromiseAlike(value)) {
        return coerce(value);
    } else {
        return fulfill(value);
    }
}
function Q ( value ) { // If the object is already a Promise, return it directly.  This enables // the resolve function to both be used to created references from objects, // but to tolerably coerce non-promises to promises. if ( value instanceof Promise ) { return value ; } // assimilate thenables if ( isPromiseAlike ( value ) ) { return coerce ( value ) ; } else { return fulfill ( value ) ; } }
end of shims beginning of real work 
Constructs a promise for an immediate reference, passes promises through, or
coerces promises from different systems.
@param value immediate reference or promise
end of shims beginning of real work Constructs a promise for an immediate reference passes promises through or coerces promises from different systems .