1
0
mirror of https://github.com/actions/setup-python synced 2024-12-04 22:02:27 +08:00
setup-python/node_modules/rsvp/dist/es6/rsvp.es.map
Danny McCormick 39c08a0eaa Initial pass
2019-06-26 21:12:00 -04:00

1 line
101 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["config/versionTemplate.txt","../../../../../../../../../../../../../../../../../lib/rsvp/events.js","../../../../../../../../../../../../../../../../../lib/rsvp/config.js","../../../../../../../../../../../../../../../../../lib/rsvp/instrument.js","../../../../../../../../../../../../../../../../../lib/rsvp/promise/resolve.js","../../../../../../../../../../../../../../../../../lib/rsvp/-internal.js","../../../../../../../../../../../../../../../../../lib/rsvp/then.js","../../../../../../../../../../../../../../../../../lib/rsvp/enumerator.js","../../../../../../../../../../../../../../../../../lib/rsvp/promise/all.js","../../../../../../../../../../../../../../../../../lib/rsvp/promise/race.js","../../../../../../../../../../../../../../../../../lib/rsvp/promise/reject.js","../../../../../../../../../../../../../../../../../lib/rsvp/promise.js","../../../../../../../../../../../../../../../../../lib/rsvp/node.js","../../../../../../../../../../../../../../../../../lib/rsvp/all.js","../../../../../../../../../../../../../../../../../lib/rsvp/all-settled.js","../../../../../../../../../../../../../../../../../lib/rsvp/race.js","../../../../../../../../../../../../../../../../../lib/rsvp/promise-hash.js","../../../../../../../../../../../../../../../../../lib/rsvp/hash.js","../../../../../../../../../../../../../../../../../lib/rsvp/hash-settled.js","../../../../../../../../../../../../../../../../../lib/rsvp/rethrow.js","../../../../../../../../../../../../../../../../../lib/rsvp/defer.js","../../../../../../../../../../../../../../../../../lib/rsvp/map.js","../../../../../../../../../../../../../../../../../lib/rsvp/resolve.js","../../../../../../../../../../../../../../../../../lib/rsvp/reject.js","../../../../../../../../../../../../../../../../../lib/rsvp/filter.js","../../../../../../../../../../../../../../../../../lib/rsvp/asap.js","../../../../../../../../../../../../../../../../../lib/rsvp.js"],"sourcesContent":["/*!\n * @overview RSVP - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2016 Yehuda Katz, Tom Dale, Stefan Penner and contributors\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/tildeio/rsvp.js/master/LICENSE\n * @version 4.8.4+ff10049b\n */\n","\nfunction callbacksFor(object) {\n let callbacks = object._promiseCallbacks;\n\n if (!callbacks) {\n callbacks = object._promiseCallbacks = {};\n }\n\n return callbacks;\n}\n\n/**\n @class EventTarget\n @for rsvp\n @public\n*/\nexport default {\n\n /**\n `EventTarget.mixin` extends an object with EventTarget methods. For\n Example:\n\n ```javascript\n import EventTarget from 'rsvp';\n\n let object = {};\n\n EventTarget.mixin(object);\n\n object.on('finished', function(event) {\n // handle event\n });\n\n object.trigger('finished', { detail: value });\n ```\n\n `EventTarget.mixin` also works with prototypes:\n\n ```javascript\n import EventTarget from 'rsvp';\n\n let Person = function() {};\n EventTarget.mixin(Person.prototype);\n\n let yehuda = new Person();\n let tom = new Person();\n\n yehuda.on('poke', function(event) {\n console.log('Yehuda says OW');\n });\n\n tom.on('poke', function(event) {\n console.log('Tom says OW');\n });\n\n yehuda.trigger('poke');\n tom.trigger('poke');\n ```\n\n @method mixin\n @for rsvp\n @private\n @param {Object} object object to extend with EventTarget methods\n */\n mixin(object) {\n object.on = this.on;\n object.off = this.off;\n object.trigger = this.trigger;\n object._promiseCallbacks = undefined;\n return object;\n },\n\n /**\n Registers a callback to be executed when `eventName` is triggered\n\n ```javascript\n object.on('event', function(eventInfo){\n // handle the event\n });\n\n object.trigger('event');\n ```\n\n @method on\n @for EventTarget\n @private\n @param {String} eventName name of the event to listen for\n @param {Function} callback function to be called when the event is triggered.\n */\n on(eventName, callback) {\n if (typeof callback !== 'function') {\n throw new TypeError('Callback must be a function');\n }\n\n let allCallbacks = callbacksFor(this);\n let callbacks = allCallbacks[eventName];\n\n if (!callbacks) {\n callbacks = allCallbacks[eventName] = [];\n }\n\n if (callbacks.indexOf(callback) === -1) {\n callbacks.push(callback);\n }\n },\n\n /**\n You can use `off` to stop firing a particular callback for an event:\n\n ```javascript\n function doStuff() { // do stuff! }\n object.on('stuff', doStuff);\n\n object.trigger('stuff'); // doStuff will be called\n\n // Unregister ONLY the doStuff callback\n object.off('stuff', doStuff);\n object.trigger('stuff'); // doStuff will NOT be called\n ```\n\n If you don't pass a `callback` argument to `off`, ALL callbacks for the\n event will not be executed when the event fires. For example:\n\n ```javascript\n let callback1 = function(){};\n let callback2 = function(){};\n\n object.on('stuff', callback1);\n object.on('stuff', callback2);\n\n object.trigger('stuff'); // callback1 and callback2 will be executed.\n\n object.off('stuff');\n object.trigger('stuff'); // callback1 and callback2 will not be executed!\n ```\n\n @method off\n @for rsvp\n @private\n @param {String} eventName event to stop listening to\n @param {Function} [callback] optional argument. If given, only the function\n given will be removed from the event's callback queue. If no `callback`\n argument is given, all callbacks will be removed from the event's callback\n queue.\n */\n off(eventName, callback) {\n let allCallbacks = callbacksFor(this);\n\n if (!callback) {\n allCallbacks[eventName] = [];\n return;\n }\n\n let callbacks = allCallbacks[eventName];\n let index = callbacks.indexOf(callback);\n\n if (index !== -1) {\n callbacks.splice(index, 1);\n }\n },\n\n /**\n Use `trigger` to fire custom events. For example:\n\n ```javascript\n object.on('foo', function(){\n console.log('foo event happened!');\n });\n object.trigger('foo');\n // 'foo event happened!' logged to the console\n ```\n\n You can also pass a value as a second argument to `trigger` that will be\n passed as an argument to all event listeners for the event:\n\n ```javascript\n object.on('foo', function(value){\n console.log(value.name);\n });\n\n object.trigger('foo', { name: 'bar' });\n // 'bar' logged to the console\n ```\n\n @method trigger\n @for rsvp\n @private\n @param {String} eventName name of the event to be triggered\n @param {*} [options] optional value to be passed to any event handlers for\n the given `eventName`\n */\n trigger(eventName, options, label) {\n let allCallbacks = callbacksFor(this);\n\n let callbacks = allCallbacks[eventName];\n if (callbacks) {\n // Don't cache the callbacks.length since it may grow\n let callback;\n for (let i = 0; i < callbacks.length; i++) {\n callback = callbacks[i];\n callback(options, label);\n }\n }\n }\n};\n","import EventTarget from './events';\n\nconst config = {\n instrument: false\n};\n\nEventTarget['mixin'](config);\n\nfunction configure(name, value) {\n if (arguments.length === 2) {\n config[name] = value;\n } else {\n return config[name];\n }\n}\n\nexport {\n config,\n configure\n};\n","import { config } from './config';\n\nconst queue = [];\n\nfunction scheduleFlush() {\n setTimeout(() => {\n for (let i = 0; i < queue.length; i++) {\n let entry = queue[i];\n\n let payload = entry.payload;\n\n payload.guid = payload.key + payload.id;\n payload.childGuid = payload.key + payload.childId;\n if (payload.error) {\n payload.stack = payload.error.stack;\n }\n\n config['trigger'](entry.name, entry.payload);\n }\n queue.length = 0;\n }, 50);\n}\n\nexport default function instrument(eventName, promise, child) {\n if (1 === queue.push({\n name: eventName,\n payload: {\n key: promise._guidKey,\n id: promise._id,\n eventName: eventName,\n detail: promise._result,\n childId: child && child._id,\n label: promise._label,\n timeStamp: Date.now(),\n error: config[\"instrument-with-stack\"] ? new Error(promise._label) : null\n }})) {\n scheduleFlush();\n }\n }\n","import {\n noop,\n resolve as _resolve\n} from '../-internal';\n\n/**\n `Promise.resolve` returns a promise that will become resolved with the\n passed `value`. It is shorthand for the following:\n\n ```javascript\n import Promise from 'rsvp';\n\n let promise = new Promise(function(resolve, reject){\n resolve(1);\n });\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n import Promise from 'rsvp';\n\n let promise = RSVP.Promise.resolve(1);\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n @method resolve\n @for Promise\n @static\n @param {*} object value that the returned promise will be resolved with\n @param {String} [label] optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n*/\nexport default function resolve(object, label) {\n /*jshint validthis:true */\n let Constructor = this;\n\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n let promise = new Constructor(noop, label);\n _resolve(promise, object);\n return promise;\n}\n","import originalThen from './then';\nimport originalResolve from './promise/resolve';\nimport instrument from './instrument';\n\nimport { config } from './config';\nimport Promise from './promise';\n\nfunction withOwnPromise() {\n return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction objectOrFunction(x) {\n let type = typeof x;\n return x !== null && (type === 'object' || type === 'function');\n}\n\nexport function noop() {}\n\nexport const PENDING = void 0;\nexport const FULFILLED = 1;\nexport const REJECTED = 2;\n\nexport const TRY_CATCH_ERROR = { error: null };\n\nexport function getThen(promise) {\n try {\n return promise.then;\n } catch(error) {\n TRY_CATCH_ERROR.error = error;\n return TRY_CATCH_ERROR;\n }\n}\n\nlet tryCatchCallback;\nfunction tryCatcher() {\n try {\n let target = tryCatchCallback;\n tryCatchCallback = null;\n return target.apply(this, arguments);\n } catch(e) {\n TRY_CATCH_ERROR.error = e;\n return TRY_CATCH_ERROR;\n }\n}\n\nexport function tryCatch(fn) {\n tryCatchCallback = fn;\n return tryCatcher;\n}\n\nfunction handleForeignThenable(promise, thenable, then) {\n config.async(promise => {\n let sealed = false;\n let result = tryCatch(then).call(\n thenable,\n value => {\n if (sealed) { return; }\n sealed = true;\n if (thenable === value) {\n fulfill(promise, value);\n } else {\n resolve(promise, value);\n }\n },\n reason => {\n if (sealed) { return; }\n sealed = true;\n\n reject(promise, reason);\n },\n 'Settle: ' + (promise._label || ' unknown promise')\n );\n\n if (!sealed && result === TRY_CATCH_ERROR) {\n sealed = true;\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null;\n reject(promise, error);\n }\n\n }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n if (thenable._state === FULFILLED) {\n fulfill(promise, thenable._result);\n } else if (thenable._state === REJECTED) {\n thenable._onError = null;\n reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, value => {\n if (thenable === value) {\n fulfill(promise, value);\n } else {\n resolve(promise, value);\n }\n }, reason => reject(promise, reason));\n }\n}\n\nexport function handleMaybeThenable(promise, maybeThenable, then) {\n let isOwnThenable =\n maybeThenable.constructor === promise.constructor &&\n then === originalThen &&\n promise.constructor.resolve === originalResolve;\n\n if (isOwnThenable) {\n handleOwnThenable(promise, maybeThenable);\n } else if (then === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error\n TRY_CATCH_ERROR.error = null;\n reject(promise, error);\n } else if (typeof then === 'function') {\n handleForeignThenable(promise, maybeThenable, then);\n } else {\n fulfill(promise, maybeThenable);\n }\n}\n\nexport function resolve(promise, value) {\n if (promise === value) {\n fulfill(promise, value);\n } else if (objectOrFunction(value)) {\n handleMaybeThenable(promise, value, getThen(value));\n } else {\n fulfill(promise, value);\n }\n}\n\nexport function publishRejection(promise) {\n if (promise._onError) {\n promise._onError(promise._result);\n }\n\n publish(promise);\n}\n\nexport function fulfill(promise, value) {\n if (promise._state !== PENDING) { return; }\n\n promise._result = value;\n promise._state = FULFILLED;\n\n if (promise._subscribers.length === 0) {\n if (config.instrument) {\n instrument('fulfilled', promise);\n }\n } else {\n config.async(publish, promise);\n }\n}\n\nexport function reject(promise, reason) {\n if (promise._state !== PENDING) { return; }\n promise._state = REJECTED;\n promise._result = reason;\n config.async(publishRejection, promise);\n}\n\nexport function subscribe(parent, child, onFulfillment, onRejection) {\n let subscribers = parent._subscribers;\n let length = subscribers.length;\n\n parent._onError = null;\n\n subscribers[length] = child;\n subscribers[length + FULFILLED] = onFulfillment;\n subscribers[length + REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n config.async(publish, parent);\n }\n}\n\nexport function publish(promise) {\n let subscribers = promise._subscribers;\n let settled = promise._state;\n\n if (config.instrument) {\n instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise);\n }\n\n if (subscribers.length === 0) { return; }\n\n let child, callback, result = promise._result;\n\n for (let i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n invokeCallback(settled, child, callback, result);\n } else {\n callback(result);\n }\n }\n\n promise._subscribers.length = 0;\n}\n\nexport function invokeCallback(state, promise, callback, result) {\n let hasCallback = typeof callback === 'function';\n let value;\n\n if (hasCallback) {\n value = tryCatch(callback)(result);\n } else {\n value = result;\n }\n\n if (promise._state !== PENDING) {\n // noop\n } else if (value === promise) {\n reject(promise, withOwnPromise());\n } else if (value === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null; // release\n reject(promise, error);\n } else if (hasCallback) {\n resolve(promise, value);\n } else if (state === FULFILLED) {\n fulfill(promise, value);\n } else if (state === REJECTED) {\n reject(promise, value);\n }\n}\n\nexport function initializePromise(promise, resolver) {\n let resolved = false;\n try {\n resolver(value => {\n if (resolved) { return; }\n resolved = true;\n resolve(promise, value);\n }, reason => {\n if (resolved) { return; }\n resolved = true;\n reject(promise, reason);\n });\n } catch(e) {\n reject(promise, e);\n }\n}\n","import { config } from './config';\nimport instrument from './instrument';\nimport {\n noop,\n subscribe,\n FULFILLED,\n REJECTED,\n PENDING,\n invokeCallback\n} from './-internal';\n\nexport default function then(onFulfillment, onRejection, label) {\n let parent = this;\n let state = parent._state;\n\n if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) {\n config.instrument && instrument('chained', parent, parent);\n return parent;\n }\n\n parent._onError = null;\n\n let child = new parent.constructor(noop, label);\n let result = parent._result;\n\n config.instrument && instrument('chained', parent, child);\n\n if (state === PENDING) {\n subscribe(parent, child, onFulfillment, onRejection);\n } else {\n let callback = state === FULFILLED ? onFulfillment : onRejection;\n config.async(() => invokeCallback(state, child, callback, result));\n }\n\n return child;\n}\n","import {\n noop,\n resolve,\n handleMaybeThenable,\n reject,\n fulfill,\n subscribe,\n FULFILLED,\n REJECTED,\n PENDING,\n getThen\n} from './-internal';\n\nimport { default as OwnPromise } from './promise';\nimport ownThen from './then';\nimport ownResolve from './promise/resolve';\n\nexport default class Enumerator {\n constructor(Constructor, input, abortOnReject, label) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop, label);\n this._abortOnReject = abortOnReject;\n this._isUsingOwnPromise = Constructor === OwnPromise;\n this._isUsingOwnResolve = Constructor.resolve === ownResolve;\n\n this._init(...arguments);\n }\n\n _init(Constructor, input) {\n let len = input.length || 0;\n this.length = len;\n this._remaining = len;\n this._result = new Array(len);\n\n this._enumerate(input);\n }\n\n _enumerate(input) {\n let length = this.length;\n let promise = this.promise;\n\n for (let i = 0; promise._state === PENDING && i < length; i++) {\n this._eachEntry(input[i], i, true);\n }\n this._checkFullfillment();\n }\n\n _checkFullfillment() {\n if (this._remaining === 0) {\n let result = this._result;\n fulfill(this.promise, result);\n this._result = null\n }\n }\n\n _settleMaybeThenable(entry, i, firstPass) {\n let c = this._instanceConstructor;\n\n if (this._isUsingOwnResolve) {\n let then = getThen(entry);\n\n if (then === ownThen && entry._state !== PENDING) {\n entry._onError = null;\n this._settledAt(entry._state, i, entry._result, firstPass);\n } else if (typeof then !== 'function') {\n this._settledAt(FULFILLED, i, entry, firstPass);\n } else if (this._isUsingOwnPromise) {\n let promise = new c(noop);\n handleMaybeThenable(promise, entry, then);\n this._willSettleAt(promise, i, firstPass);\n } else {\n this._willSettleAt(new c(resolve => resolve(entry)), i, firstPass);\n }\n } else {\n this._willSettleAt(c.resolve(entry), i, firstPass);\n }\n }\n\n _eachEntry(entry, i, firstPass) {\n if (entry !== null && typeof entry === 'object') {\n this._settleMaybeThenable(entry, i, firstPass);\n } else {\n this._setResultAt(FULFILLED, i, entry, firstPass);\n }\n }\n\n _settledAt(state, i, value, firstPass) {\n let promise = this.promise;\n\n if (promise._state === PENDING) {\n if (this._abortOnReject && state === REJECTED) {\n reject(promise, value);\n } else {\n this._setResultAt(state, i, value, firstPass);\n this._checkFullfillment();\n }\n }\n }\n\n _setResultAt(state, i, value, firstPass) {\n this._remaining--;\n this._result[i] = value;\n }\n\n _willSettleAt(promise, i, firstPass) {\n subscribe(\n promise, undefined,\n value => this._settledAt(FULFILLED, i, value, firstPass),\n reason => this._settledAt(REJECTED, i, reason, firstPass)\n );\n }\n}\n\nexport function setSettledResult(state, i, value) {\n this._remaining--;\n if (state === FULFILLED) {\n this._result[i] = {\n state: 'fulfilled',\n value: value\n };\n } else {\n this._result[i] = {\n state: 'rejected',\n reason: value\n };\n }\n}\n","import Enumerator from '../enumerator';\n\n/**\n `Promise.all` accepts an array of promises, and returns a new promise which\n is fulfilled with an array of fulfillment values for the passed promises, or\n rejected with the reason of the first passed promise to be rejected. It casts all\n elements of the passed iterable to promises as it runs this algorithm.\n\n Example:\n\n ```javascript\n import Promise, { resolve } from 'rsvp';\n\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // The array here would be [ 1, 2, 3 ];\n });\n ```\n\n If any of the `promises` given to `RSVP.all` are rejected, the first promise\n that is rejected will be given as an argument to the returned promises's\n rejection handler. For example:\n\n Example:\n\n ```javascript\n import Promise, { resolve, reject } from 'rsvp';\n\n let promise1 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n\n Promise.all(promises).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(error) {\n // error.message === \"2\"\n });\n ```\n\n @method all\n @for Promise\n @param {Array} entries array of promises\n @param {String} [label] optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all `promises` have been\n fulfilled, or rejected if any of them become rejected.\n @static\n*/\nexport default function all(entries, label) {\n if (!Array.isArray(entries)) {\n return this.reject(new TypeError(\"Promise.all must be called with an array\"), label);\n }\n return new Enumerator(this, entries, true /* abort on reject */, label).promise;\n}\n","import {\n noop,\n resolve,\n reject,\n subscribe,\n PENDING\n} from '../-internal';\n\n/**\n `Promise.race` returns a new promise which is settled in the same way as the\n first passed promise to settle.\n\n Example:\n\n ```javascript\n import Promise from 'rsvp';\n\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `Promise.race` is deterministic in that only the state of the first\n settled promise matters. For example, even if other promises given to the\n `promises` array argument are resolved, but the first settled promise has\n become rejected before the other promises became fulfilled, the returned\n promise will become rejected:\n\n ```javascript\n import Promise from 'rsvp';\n\n let promise1 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // Code here never runs\n }, function(reason){\n // reason.message === 'promise 2' because promise 2 became rejected before\n // promise 1 became fulfilled\n });\n ```\n\n An example real-world use case is implementing timeouts:\n\n ```javascript\n import Promise from 'rsvp';\n\n Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n\n @method race\n @for Promise\n @static\n @param {Array} entries array of promises to observe\n @param {String} [label] optional string for describing the promise returned.\n Useful for tooling.\n @return {Promise} a promise which settles in the same way as the first passed\n promise to settle.\n*/\nexport default function race(entries, label) {\n /*jshint validthis:true */\n let Constructor = this;\n\n let promise = new Constructor(noop, label);\n\n if (!Array.isArray(entries)) {\n reject(promise, new TypeError('Promise.race must be called with an array'));\n return promise;\n }\n\n for (let i = 0; promise._state === PENDING && i < entries.length; i++) {\n subscribe(\n Constructor.resolve(entries[i]), undefined,\n value => resolve(promise, value),\n reason => reject(promise, reason)\n );\n }\n\n return promise;\n}\n","import {\n noop,\n reject as _reject\n} from '../-internal';\n\n/**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n\n ```javascript\n import Promise from 'rsvp';\n\n let promise = new Promise(function(resolve, reject){\n reject(new Error('WHOOPS'));\n });\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n Instead of writing the above, your code now simply becomes the following:\n\n ```javascript\n import Promise from 'rsvp';\n\n let promise = Promise.reject(new Error('WHOOPS'));\n\n promise.then(function(value){\n // Code here doesn't run because the promise is rejected!\n }, function(reason){\n // reason.message === 'WHOOPS'\n });\n ```\n\n @method reject\n @for Promise\n @static\n @param {*} reason value that the returned promise will be rejected with.\n @param {String} [label] optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n*/\nexport default function reject(reason, label) {\n /*jshint validthis:true */\n let Constructor = this;\n let promise = new Constructor(noop, label);\n _reject(promise, reason);\n return promise;\n}\n","import { config } from './config';\nimport instrument from './instrument';\nimport then from './then';\n\nimport {\n noop,\n initializePromise\n} from './-internal';\n\nimport all from './promise/all';\nimport race from './promise/race';\nimport Resolve from './promise/resolve';\nimport Reject from './promise/reject';\n\nconst guidKey = 'rsvp_' + Date.now() + '-';\nlet counter = 0;\n\nfunction needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n Promise objects represent the eventual result of an asynchronous operation. The\n primary way of interacting with a promise is through its `then` method, which\n registers callbacks to receive either a promises eventual value or the reason\n why the promise cannot be fulfilled.\n\n Terminology\n -----------\n\n - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n - `thenable` is an object or function that defines a `then` method.\n - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n - `exception` is a value that is thrown using the throw statement.\n - `reason` is a value that indicates why a promise was rejected.\n - `settled` the final resting state of a promise, fulfilled or rejected.\n\n A promise can be in one of three states: pending, fulfilled, or rejected.\n\n Promises that are fulfilled have a fulfillment value and are in the fulfilled\n state. Promises that are rejected have a rejection reason and are in the\n rejected state. A fulfillment value is never a thenable.\n\n Promises can also be said to *resolve* a value. If this value is also a\n promise, then the original promise's settled state will match the value's\n settled state. So a promise that *resolves* a promise that rejects will\n itself reject, and a promise that *resolves* a promise that fulfills will\n itself fulfill.\n\n\n Basic Usage:\n ------------\n\n ```js\n let promise = new Promise(function(resolve, reject) {\n // on success\n resolve(value);\n\n // on failure\n reject(reason);\n });\n\n promise.then(function(value) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Advanced Usage:\n ---------------\n\n Promises shine when abstracting away asynchronous interactions such as\n `XMLHttpRequest`s.\n\n ```js\n function getJSON(url) {\n return new Promise(function(resolve, reject){\n let xhr = new XMLHttpRequest();\n\n xhr.open('GET', url);\n xhr.onreadystatechange = handler;\n xhr.responseType = 'json';\n xhr.setRequestHeader('Accept', 'application/json');\n xhr.send();\n\n function handler() {\n if (this.readyState === this.DONE) {\n if (this.status === 200) {\n resolve(this.response);\n } else {\n reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n }\n }\n };\n });\n }\n\n getJSON('/posts.json').then(function(json) {\n // on fulfillment\n }, function(reason) {\n // on rejection\n });\n ```\n\n Unlike callbacks, promises are great composable primitives.\n\n ```js\n Promise.all([\n getJSON('/posts'),\n getJSON('/comments')\n ]).then(function(values){\n values[0] // => postsJSON\n values[1] // => commentsJSON\n\n return values;\n });\n ```\n\n @class Promise\n @public\n @param {function} resolver\n @param {String} [label] optional string for labeling the promise.\n Useful for tooling.\n @constructor\n*/\nclass Promise {\n constructor(resolver, label) {\n this._id = counter++;\n this._label = label;\n this._state = undefined;\n this._result = undefined;\n this._subscribers = [];\n\n config.instrument && instrument('created', this);\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n }\n }\n\n _onError(reason) {\n config.after(() => {\n if (this._onError) {\n config.trigger('error', reason, this._label);\n }\n });\n }\n\n/**\n `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n as the catch block of a try/catch statement.\n\n ```js\n function findAuthor(){\n throw new Error('couldn\\'t find that author');\n }\n\n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n\n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n\n @method catch\n @param {Function} onRejection\n @param {String} [label] optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n*/\n catch(onRejection, label) {\n return this.then(undefined, onRejection, label);\n }\n\n/**\n `finally` will be invoked regardless of the promise's fate just as native\n try/catch/finally behaves\n\n Synchronous example:\n\n ```js\n findAuthor() {\n if (Math.random() > 0.5) {\n throw new Error();\n }\n return new Author();\n }\n\n try {\n return findAuthor(); // succeed or fail\n } catch(error) {\n return findOtherAuthor();\n } finally {\n // always runs\n // doesn't affect the return value\n }\n ```\n\n Asynchronous example:\n\n ```js\n findAuthor().catch(function(reason){\n return findOtherAuthor();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n\n @method finally\n @param {Function} callback\n @param {String} [label] optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n*/\n finally(callback, label) {\n let promise = this;\n let constructor = promise.constructor;\n\n if (typeof callback === 'function') {\n return promise.then(value => constructor.resolve(callback()).then(() => value),\n reason => constructor.resolve(callback()).then(() => { throw reason; }));\n }\n\n return promise.then(callback, callback);\n }\n}\n\nPromise.cast = Resolve; // deprecated\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = Resolve;\nPromise.reject = Reject;\n\nPromise.prototype._guidKey = guidKey;\n\n/**\n The primary way of interacting with a promise is through its `then` method,\n which registers callbacks to receive either a promise's eventual value or the\n reason why the promise cannot be fulfilled.\n\n ```js\n findUser().then(function(user){\n // user is available\n }, function(reason){\n // user is unavailable, and you are given the reason why\n });\n ```\n\n Chaining\n --------\n\n The return value of `then` is itself a promise. This second, 'downstream'\n promise is resolved with the return value of the first promise's fulfillment\n or rejection handler, or rejected if the handler throws an exception.\n\n ```js\n findUser().then(function (user) {\n return user.name;\n }, function (reason) {\n return 'default name';\n }).then(function (userName) {\n // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n // will be `'default name'`\n });\n\n findUser().then(function (user) {\n throw new Error('Found user, but still unhappy');\n }, function (reason) {\n throw new Error('`findUser` rejected and we\\'re unhappy');\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n // If `findUser` rejected, `reason` will be '`findUser` rejected and we\\'re unhappy'.\n });\n ```\n If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n\n ```js\n findUser().then(function (user) {\n throw new PedagogicalException('Upstream error');\n }).then(function (value) {\n // never reached\n }).then(function (value) {\n // never reached\n }, function (reason) {\n // The `PedgagocialException` is propagated all the way down to here\n });\n ```\n\n Assimilation\n ------------\n\n Sometimes the value you want to propagate to a downstream promise can only be\n retrieved asynchronously. This can be achieved by returning a promise in the\n fulfillment or rejection handler. The downstream promise will then be pending\n until the returned promise is settled. This is called *assimilation*.\n\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // The user's comments are now available\n });\n ```\n\n If the assimliated promise rejects, then the downstream promise will also reject.\n\n ```js\n findUser().then(function (user) {\n return findCommentsByAuthor(user);\n }).then(function (comments) {\n // If `findCommentsByAuthor` fulfills, we'll have the value here\n }, function (reason) {\n // If `findCommentsByAuthor` rejects, we'll have the reason here\n });\n ```\n\n Simple Example\n --------------\n\n Synchronous Example\n\n ```javascript\n let result;\n\n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n\n Errback Example\n\n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n\n Promise Example;\n\n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n\n Advanced Example\n --------------\n\n Synchronous Example\n\n ```javascript\n let author, books;\n\n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n\n Errback Example\n\n ```js\n\n function foundBooks(books) {\n\n }\n\n function failure(reason) {\n\n }\n\n findAuthor(function(author, err){\n if (err) {\n failure(err);\n // failure\n } else {\n try {\n findBoooksByAuthor(author, function(books, err) {\n if (err) {\n failure(err);\n } else {\n try {\n foundBooks(books);\n } catch(reason) {\n failure(reason);\n }\n }\n });\n } catch(error) {\n failure(err);\n }\n // success\n }\n });\n ```\n\n Promise Example;\n\n ```javascript\n findAuthor().\n then(findBooksByAuthor).\n then(function(books){\n // found books\n }).catch(function(reason){\n // something went wrong\n });\n ```\n\n @method then\n @param {Function} onFulfillment\n @param {Function} onRejection\n @param {String} [label] optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n*/\nPromise.prototype.then = then;\n\nexport default Promise;\n","import Promise from './promise';\nimport {\n noop,\n resolve,\n reject,\n getThen,\n tryCatch,\n TRY_CATCH_ERROR\n} from './-internal';\n\nfunction makeObject(_, argumentNames) {\n let obj = {};\n let length = _.length;\n let args = new Array(length);\n\n for (let x = 0; x < length; x++) {\n args[x] = _[x];\n }\n\n for (let i = 0; i < argumentNames.length; i++) {\n let name = argumentNames[i];\n obj[name] = args[i + 1];\n }\n\n return obj;\n}\n\nfunction arrayResult(_) {\n let length = _.length;\n let args = new Array(length - 1);\n\n for (let i = 1; i < length; i++) {\n args[i - 1] = _[i];\n }\n\n return args;\n}\n\nfunction wrapThenable(then, promise) {\n return {\n then(onFulFillment, onRejection) {\n return then.call(promise, onFulFillment, onRejection);\n }\n };\n}\n\n/**\n `denodeify` takes a 'node-style' function and returns a function that\n will return an `Promise`. You can use `denodeify` in Node.js or the\n browser when you'd prefer to use promises over using callbacks. For example,\n `denodeify` transforms the following:\n\n ```javascript\n let fs = require('fs');\n\n fs.readFile('myfile.txt', function(err, data){\n if (err) return handleError(err);\n handleData(data);\n });\n ```\n\n into:\n\n ```javascript\n let fs = require('fs');\n let readFile = denodeify(fs.readFile);\n\n readFile('myfile.txt').then(handleData, handleError);\n ```\n\n If the node function has multiple success parameters, then `denodeify`\n just returns the first one:\n\n ```javascript\n let request = denodeify(require('request'));\n\n request('http://example.com').then(function(res) {\n // ...\n });\n ```\n\n However, if you need all success parameters, setting `denodeify`'s\n second parameter to `true` causes it to return all success parameters\n as an array:\n\n ```javascript\n let request = denodeify(require('request'), true);\n\n request('http://example.com').then(function(result) {\n // result[0] -> res\n // result[1] -> body\n });\n ```\n\n Or if you pass it an array with names it returns the parameters as a hash:\n\n ```javascript\n let request = denodeify(require('request'), ['res', 'body']);\n\n request('http://example.com').then(function(result) {\n // result.res\n // result.body\n });\n ```\n\n Sometimes you need to retain the `this`:\n\n ```javascript\n let app = require('express')();\n let render = denodeify(app.render.bind(app));\n ```\n\n The denodified function inherits from the original function. It works in all\n environments, except IE 10 and below. Consequently all properties of the original\n function are available to you. However, any properties you change on the\n denodeified function won't be changed on the original function. Example:\n\n ```javascript\n let request = denodeify(require('request')),\n cookieJar = request.jar(); // <- Inheritance is used here\n\n request('http://example.com', {jar: cookieJar}).then(function(res) {\n // cookieJar.cookies holds now the cookies returned by example.com\n });\n ```\n\n Using `denodeify` makes it easier to compose asynchronous operations instead\n of using callbacks. For example, instead of:\n\n ```javascript\n let fs = require('fs');\n\n fs.readFile('myfile.txt', function(err, data){\n if (err) { ... } // Handle error\n fs.writeFile('myfile2.txt', data, function(err){\n if (err) { ... } // Handle error\n console.log('done')\n });\n });\n ```\n\n you can chain the operations together using `then` from the returned promise:\n\n ```javascript\n let fs = require('fs');\n let readFile = denodeify(fs.readFile);\n let writeFile = denodeify(fs.writeFile);\n\n readFile('myfile.txt').then(function(data){\n return writeFile('myfile2.txt', data);\n }).then(function(){\n console.log('done')\n }).catch(function(error){\n // Handle error\n });\n ```\n\n @method denodeify\n @public\n @static\n @for rsvp\n @param {Function} nodeFunc a 'node-style' function that takes a callback as\n its last argument. The callback expects an error to be passed as its first\n argument (if an error occurred, otherwise null), and the value from the\n operation as its second argument ('function(err, value){ }').\n @param {Boolean|Array} [options] An optional paramter that if set\n to `true` causes the promise to fulfill with the callback's success arguments\n as an array. This is useful if the node function has multiple success\n paramters. If you set this paramter to an array with names, the promise will\n fulfill with a hash with these names as keys and the success parameters as\n values.\n @return {Function} a function that wraps `nodeFunc` to return a `Promise`\n*/\nexport default function denodeify(nodeFunc, options) {\n let fn = function() {\n let l = arguments.length;\n let args = new Array(l + 1);\n let promiseInput = false;\n\n for (let i = 0; i < l; ++i) {\n let arg = arguments[i];\n\n if (!promiseInput) {\n // TODO: clean this up\n promiseInput = needsPromiseInput(arg);\n if (promiseInput === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null;\n let p = new Promise(noop);\n reject(p, error);\n return p;\n } else if (promiseInput && promiseInput !== true) {\n arg = wrapThenable(promiseInput, arg);\n }\n }\n args[i] = arg;\n }\n\n let promise = new Promise(noop);\n\n args[l] = function(err, val) {\n if (err) {\n reject(promise, err);\n } else if (options === undefined) {\n resolve(promise, val);\n } else if (options === true) {\n resolve(promise, arrayResult(arguments));\n } else if (Array.isArray(options)) {\n resolve(promise, makeObject(arguments, options));\n } else {\n resolve(promise, val);\n }\n };\n\n if (promiseInput) {\n return handlePromiseInput(promise, args, nodeFunc, this);\n } else {\n return handleValueInput(promise, args, nodeFunc, this);\n }\n };\n\n fn.__proto__ = nodeFunc;\n\n return fn;\n}\n\nfunction handleValueInput(promise, args, nodeFunc, self) {\n let result = tryCatch(nodeFunc).apply(self, args);\n if (result === TRY_CATCH_ERROR) {\n let error = TRY_CATCH_ERROR.error;\n TRY_CATCH_ERROR.error = null;\n reject(promise, error);\n }\n return promise;\n}\n\nfunction handlePromiseInput(promise, args, nodeFunc, self){\n return Promise.all(args)\n .then(args => handleValueInput(promise, args, nodeFunc, self));\n}\n\nfunction needsPromiseInput(arg) {\n if (arg !== null && typeof arg === 'object') {\n if (arg.constructor === Promise) {\n return true;\n } else {\n return getThen(arg);\n }\n } else {\n return false;\n }\n}\n","import Promise from \"./promise\";\n\n/**\n This is a convenient alias for `Promise.all`.\n\n @method all\n @public\n @static\n @for rsvp\n @param {Array} array Array of promises.\n @param {String} [label] An optional label. This is useful\n for tooling.\n*/\nexport default function all(array, label) {\n return Promise.all(array, label);\n}\n","import {\n default as Enumerator,\n setSettledResult\n} from './enumerator';\nimport Promise from './promise';\n\n/**\n@module rsvp\n@public\n**/\n\nclass AllSettled extends Enumerator {\n constructor(Constructor, entries, label) {\n super(Constructor, entries, false /* don't abort on reject */, label);\n }\n}\n\nAllSettled.prototype._setResultAt = setSettledResult;\n\n /**\n `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing\n a fail-fast method, it waits until all the promises have returned and\n shows you all the results. This is useful if you want to handle multiple\n promises' failure states together as a set.\n\n Returns a promise that is fulfilled when all the given promises have been\n settled. The return promise is fulfilled with an array of the states of\n the promises passed into the `promises` array argument.\n\n Each state object will either indicate fulfillment or rejection, and\n provide the corresponding value or reason. The states will take one of\n the following formats:\n\n ```javascript\n { state: 'fulfilled', value: value }\n or\n { state: 'rejected', reason: reason }\n ```\n\n Example:\n\n ```javascript\n let promise1 = RSVP.Promise.resolve(1);\n let promise2 = RSVP.Promise.reject(new Error('2'));\n let promise3 = RSVP.Promise.reject(new Error('3'));\n let promises = [ promise1, promise2, promise3 ];\n\n RSVP.allSettled(promises).then(function(array){\n // array == [\n // { state: 'fulfilled', value: 1 },\n // { state: 'rejected', reason: Error },\n // { state: 'rejected', reason: Error }\n // ]\n // Note that for the second item, reason.message will be '2', and for the\n // third item, reason.message will be '3'.\n }, function(error) {\n // Not run. (This block would only be called if allSettled had failed,\n // for instance if passed an incorrect argument type.)\n });\n ```\n\n @method allSettled\n @public\n @static\n @for rsvp\n @param {Array} entries\n @param {String} [label] - optional string that describes the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled with an array of the settled\n states of the constituent promises.\n */\n\nexport default function allSettled(entries, label) {\n if (!Array.isArray(entries)) {\n return Promise.reject(new TypeError(\"Promise.allSettled must be called with an array\"), label);\n }\n\n return new AllSettled(Promise, entries, label).promise;\n}\n\n\n","import Promise from './promise';\n\n/**\n This is a convenient alias for `Promise.race`.\n\n @method race\n @public\n @static\n @for rsvp\n @param {Array} array Array of promises.\n @param {String} [label] An optional label. This is useful\n for tooling.\n */\nexport default function race(array, label) {\n return Promise.race(array, label);\n}\n","import Enumerator from './enumerator';\nimport {\n PENDING,\n FULFILLED,\n fulfill\n} from './-internal';\n\nexport default class PromiseHash extends Enumerator {\n constructor(Constructor, object, abortOnReject = true, label) {\n super(Constructor, object, abortOnReject, label);\n }\n\n _init(Constructor, object) {\n this._result = {};\n this._enumerate(object);\n }\n\n _enumerate(input) {\n let keys = Object.keys(input);\n\n let length = keys.length;\n let promise = this.promise;\n this._remaining = length;\n\n let key, val;\n for (let i = 0; promise._state === PENDING && i < length; i++) {\n key = keys[i];\n val = input[key];\n this._eachEntry(val, key, true);\n }\n\n this._checkFullfillment();\n }\n}\n","import Promise from './promise';\nimport PromiseHash from './promise-hash';\n\n/**\n `hash` is similar to `all`, but takes an object instead of an array\n for its `promises` argument.\n\n Returns a promise that is fulfilled when all the given promises have been\n fulfilled, or rejected if any of them become rejected. The returned promise\n is fulfilled with a hash that has the same key names as the `promises` object\n argument. If any of the values in the object are not promises, they will\n simply be copied over to the fulfilled object.\n\n Example:\n\n ```javascript\n let promises = {\n myPromise: resolve(1),\n yourPromise: resolve(2),\n theirPromise: resolve(3),\n notAPromise: 4\n };\n\n hash(promises).then(function(hash){\n // hash here is an object that looks like:\n // {\n // myPromise: 1,\n // yourPromise: 2,\n // theirPromise: 3,\n // notAPromise: 4\n // }\n });\n ```\n\n If any of the `promises` given to `hash` are rejected, the first promise\n that is rejected will be given as the reason to the rejection handler.\n\n Example:\n\n ```javascript\n let promises = {\n myPromise: resolve(1),\n rejectedPromise: reject(new Error('rejectedPromise')),\n anotherRejectedPromise: reject(new Error('anotherRejectedPromise')),\n };\n\n hash(promises).then(function(hash){\n // Code here never runs because there are rejected promises!\n }, function(reason) {\n // reason.message === 'rejectedPromise'\n });\n ```\n\n An important note: `hash` is intended for plain JavaScript objects that\n are just a set of keys and values. `hash` will NOT preserve prototype\n chains.\n\n Example:\n\n ```javascript\n import { hash, resolve } from 'rsvp';\n function MyConstructor(){\n this.example = resolve('Example');\n }\n\n MyConstructor.prototype = {\n protoProperty: resolve('Proto Property')\n };\n\n let myObject = new MyConstructor();\n\n hash(myObject).then(function(hash){\n // protoProperty will not be present, instead you will just have an\n // object that looks like:\n // {\n // example: 'Example'\n // }\n //\n // hash.hasOwnProperty('protoProperty'); // false\n // 'undefined' === typeof hash.protoProperty\n });\n ```\n\n @method hash\n @public\n @static\n @for rsvp\n @param {Object} object\n @param {String} [label] optional string that describes the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when all properties of `promises`\n have been fulfilled, or rejected if any of them become rejected.\n*/\nexport default function hash(object, label) {\n return Promise.resolve(object, label)\n .then(function(object) {\n if (object === null || typeof object !== 'object') {\n throw new TypeError(\"Promise.hash must be called with an object\");\n }\n return new PromiseHash(Promise, object, label).promise;\n });\n}\n","import Promise from './promise';\nimport {\n default as Enumerator,\n setSettledResult\n} from './enumerator';\nimport PromiseHash from './promise-hash';\n\nclass HashSettled extends PromiseHash {\n constructor(Constructor, object, label) {\n super(Constructor, object, false, label);\n }\n}\n\nHashSettled.prototype._setResultAt = setSettledResult;\n\n/**\n `hashSettled` is similar to `allSettled`, but takes an object\n instead of an array for its `promises` argument.\n\n Unlike `all` or `hash`, which implement a fail-fast method,\n but like `allSettled`, `hashSettled` waits until all the\n constituent promises have returned and then shows you all the results\n with their states and values/reasons. This is useful if you want to\n handle multiple promises' failure states together as a set.\n\n Returns a promise that is fulfilled when all the given promises have been\n settled, or rejected if the passed parameters are invalid.\n\n The returned promise is fulfilled with a hash that has the same key names as\n the `promises` object argument. If any of the values in the object are not\n promises, they will be copied over to the fulfilled object and marked with state\n 'fulfilled'.\n\n Example:\n\n ```javascript\n import { hashSettled, resolve } from 'rsvp';\n\n let promises = {\n myPromise: resolve(1),\n yourPromise: resolve(2),\n theirPromise: resolve(3),\n notAPromise: 4\n };\n\n hashSettled(promises).then(function(hash){\n // hash here is an object that looks like:\n // {\n // myPromise: { state: 'fulfilled', value: 1 },\n // yourPromise: { state: 'fulfilled', value: 2 },\n // theirPromise: { state: 'fulfilled', value: 3 },\n // notAPromise: { state: 'fulfilled', value: 4 }\n // }\n });\n ```\n\n If any of the `promises` given to `hash` are rejected, the state will\n be set to 'rejected' and the reason for rejection provided.\n\n Example:\n\n ```javascript\n import { hashSettled, reject, resolve } from 'rsvp';\n\n let promises = {\n myPromise: resolve(1),\n rejectedPromise: reject(new Error('rejection')),\n anotherRejectedPromise: reject(new Error('more rejection')),\n };\n\n hashSettled(promises).then(function(hash){\n // hash here is an object that looks like:\n // {\n // myPromise: { state: 'fulfilled', value: 1 },\n // rejectedPromise: { state: 'rejected', reason: Error },\n // anotherRejectedPromise: { state: 'rejected', reason: Error },\n // }\n // Note that for rejectedPromise, reason.message == 'rejection',\n // and for anotherRejectedPromise, reason.message == 'more rejection'.\n });\n ```\n\n An important note: `hashSettled` is intended for plain JavaScript objects that\n are just a set of keys and values. `hashSettled` will NOT preserve prototype\n chains.\n\n Example:\n\n ```javascript\n import Promise, { hashSettled, resolve } from 'rsvp';\n\n function MyConstructor(){\n this.example = resolve('Example');\n }\n\n MyConstructor.prototype = {\n protoProperty: Promise.resolve('Proto Property')\n };\n\n let myObject = new MyConstructor();\n\n hashSettled(myObject).then(function(hash){\n // protoProperty will not be present, instead you will just have an\n // object that looks like:\n // {\n // example: { state: 'fulfilled', value: 'Example' }\n // }\n //\n // hash.hasOwnProperty('protoProperty'); // false\n // 'undefined' === typeof hash.protoProperty\n });\n ```\n\n @method hashSettled\n @public\n @for rsvp\n @param {Object} object\n @param {String} [label] optional string that describes the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled when when all properties of `promises`\n have been settled.\n @static\n*/\n\nexport default function hashSettled(object, label) {\n return Promise.resolve(object, label)\n .then(function(object) {\n if (object === null || typeof object !== 'object') {\n throw new TypeError(\"hashSettled must be called with an object\");\n }\n\n return new HashSettled(Promise, object, false, label).promise;\n });\n}\n","/**\n `rethrow` will rethrow an error on the next turn of the JavaScript event\n loop in order to aid debugging.\n\n Promises A+ specifies that any exceptions that occur with a promise must be\n caught by the promises implementation and bubbled to the last handler. For\n this reason, it is recommended that you always specify a second rejection\n handler function to `then`. However, `rethrow` will throw the exception\n outside of the promise, so it bubbles up to your console if in the browser,\n or domain/cause uncaught exception in Node. `rethrow` will also throw the\n error again so the error can be handled by the promise per the spec.\n\n ```javascript\n import { rethrow } from 'rsvp';\n\n function throws(){\n throw new Error('Whoops!');\n }\n\n let promise = new Promise(function(resolve, reject){\n throws();\n });\n\n promise.catch(rethrow).then(function(){\n // Code here doesn't run because the promise became rejected due to an\n // error!\n }, function (err){\n // handle the error here\n });\n ```\n\n The 'Whoops' error will be thrown on the next turn of the event loop\n and you can watch for it in your console. You can also handle it using a\n rejection handler given to `.then` or `.catch` on the returned promise.\n\n @method rethrow\n @public\n @static\n @for rsvp\n @param {Error} reason reason the promise became rejected.\n @throws Error\n @static\n*/\nexport default function rethrow(reason) {\n setTimeout(() => {\n throw reason;\n });\n throw reason;\n}\n","import Promise from \"./promise\";\n\n/**\n `defer` returns an object similar to jQuery's `$.Deferred`.\n `defer` should be used when porting over code reliant on `$.Deferred`'s\n interface. New code should use the `Promise` constructor instead.\n\n The object returned from `defer` is a plain object with three properties:\n\n * promise - an `Promise`.\n * reject - a function that causes the `promise` property on this object to\n become rejected\n * resolve - a function that causes the `promise` property on this object to\n become fulfilled.\n\n Example:\n\n ```javascript\n let deferred = defer();\n\n deferred.resolve(\"Success!\");\n\n deferred.promise.then(function(value){\n // value here is \"Success!\"\n });\n ```\n\n @method defer\n @public\n @static\n @for rsvp\n @param {String} [label] optional string for labeling the promise.\n Useful for tooling.\n @return {Object}\n */\n\nexport default function defer(label) {\n let deferred = { resolve: undefined, reject: undefined };\n\n deferred.promise = new Promise((resolve, reject) => {\n deferred.resolve = resolve;\n deferred.reject = reject;\n }, label);\n\n return deferred;\n}\n","import Promise from './promise';\nimport {\n default as Enumerator\n} from './enumerator';\nimport {\n tryCatch,\n TRY_CATCH_ERROR,\n REJECTED\n} from './-internal';\n\nexport class MapEnumerator extends Enumerator {\n constructor(Constructor, entries, mapFn, label) {\n super(Constructor, entries, true, label, mapFn);\n }\n\n _init(Constructor, input, bool, label, mapFn) {\n let len = input.length || 0;\n this.length = len;\n this._remaining = len;\n this._result = new Array(len);\n this._mapFn = mapFn;\n\n this._enumerate(input);\n }\n\n _setResultAt(state, i, value, firstPass) {\n if (firstPass) {\n let val = tryCatch(this._mapFn)(value, i);\n if (val === TRY_CATCH_ERROR) {\n this._settledAt(REJECTED, i, val.error, false);\n } else {\n this._eachEntry(val, i, false);\n }\n } else {\n this._remaining--;\n this._result[i] = value;\n }\n }\n\n}\n\n\n/**\n `map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called\n meaning that as soon as any promise resolves its value will be passed to `mapFn`.\n `map` returns a promise that will become fulfilled with the result of running\n `mapFn` on the values the promises become fulfilled with.\n\n For example:\n\n ```javascript\n import { map, resolve } from 'rsvp';\n\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n let mapFn = function(item){\n return item + 1;\n };\n\n map(promises, mapFn).then(function(result){\n // result is [ 2, 3, 4 ]\n });\n ```\n\n If any of the `promises` given to `map` are rejected, the first promise\n that is rejected will be given as an argument to the returned promise's\n rejection handler. For example:\n\n ```javascript\n import { map, reject, resolve } from 'rsvp';\n\n let promise1 = resolve(1);\n let promise2 = reject(new Error('2'));\n let promise3 = reject(new Error('3'));\n let promises = [ promise1, promise2, promise3 ];\n\n let mapFn = function(item){\n return item + 1;\n };\n\n map(promises, mapFn).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(reason) {\n // reason.message === '2'\n });\n ```\n\n `map` will also wait if a promise is returned from `mapFn`. For example,\n say you want to get all comments from a set of blog posts, but you need\n the blog posts first because they contain a url to those comments.\n\n ```javscript\n import { map } from 'rsvp';\n\n let mapFn = function(blogPost){\n // getComments does some ajax and returns an Promise that is fulfilled\n // with some comments data\n return getComments(blogPost.comments_url);\n };\n\n // getBlogPosts does some ajax and returns an Promise that is fulfilled\n // with some blog post data\n map(getBlogPosts(), mapFn).then(function(comments){\n // comments is the result of asking the server for the comments\n // of all blog posts returned from getBlogPosts()\n });\n ```\n\n @method map\n @public\n @static\n @for rsvp\n @param {Array} promises\n @param {Function} mapFn function to be called on each fulfilled promise.\n @param {String} [label] optional string for labeling the promise.\n Useful for tooling.\n @return {Promise} promise that is fulfilled with the result of calling\n `mapFn` on each fulfilled promise or value when they become fulfilled.\n The promise will be rejected if any of the given `promises` become rejected.\n*/\nexport default function map(promises, mapFn, label) {\n if (typeof mapFn !== 'function') {\n return Promise.reject(new TypeError(\"map expects a function as a second argument\"), label);\n }\n\n return Promise.resolve(promises, label)\n .then(function(promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError(\"map must be called with an array\");\n }\n return new MapEnumerator(Promise, promises, mapFn, label).promise;\n });\n}\n","import Promise from './promise';\n\n/**\n This is a convenient alias for `Promise.resolve`.\n\n @method resolve\n @public\n @static\n @for rsvp\n @param {*} value value that the returned promise will be resolved with\n @param {String} [label] optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n*/\nexport default function resolve(value, label) {\n return Promise.resolve(value, label);\n}\n","import Promise from './promise';\n\n/**\n This is a convenient alias for `Promise.reject`.\n\n @method reject\n @public\n @static\n @for rsvp\n @param {*} reason value that the returned promise will be rejected with.\n @param {String} [label] optional string for identifying the returned promise.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n*/\nexport default function reject(reason, label) {\n return Promise.reject(reason, label);\n}\n","import Promise from './promise';\nimport { MapEnumerator } from './map';\nimport {\n tryCatch,\n fulfill,\n TRY_CATCH_ERROR,\n REJECTED\n} from './-internal';\n\nconst EMPTY_OBJECT = {};\n\nclass FilterEnumerator extends MapEnumerator {\n\n _checkFullfillment() {\n if (this._remaining === 0 && this._result !== null) {\n let result = this._result.filter((val) => val !== EMPTY_OBJECT);\n fulfill(this.promise, result);\n this._result = null;\n }\n }\n\n _setResultAt(state, i, value, firstPass) {\n if (firstPass) {\n this._result[i] = value;\n let val = tryCatch(this._mapFn)(value, i);\n if (val === TRY_CATCH_ERROR) {\n this._settledAt(REJECTED, i, val.error, false);\n } else {\n this._eachEntry(val, i, false);\n }\n } else {\n this._remaining--;\n if (!value) {\n this._result[i] = EMPTY_OBJECT;\n }\n }\n }\n}\n\n/**\n `filter` is similar to JavaScript's native `filter` method.\n `filterFn` is eagerly called meaning that as soon as any promise\n resolves its value will be passed to `filterFn`. `filter` returns\n a promise that will become fulfilled with the result of running\n `filterFn` on the values the promises become fulfilled with.\n\n For example:\n\n ```javascript\n import { filter, resolve } from 'rsvp';\n\n let promise1 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n\n let promises = [promise1, promise2, promise3];\n\n let filterFn = function(item){\n return item > 1;\n };\n\n filter(promises, filterFn).then(function(result){\n // result is [ 2, 3 ]\n });\n ```\n\n If any of the `promises` given to `filter` are rejected, the first promise\n that is rejected will be given as an argument to the returned promise's\n rejection handler. For example:\n\n ```javascript\n import { filter, reject, resolve } from 'rsvp';\n\n let promise1 = resolve(1);\n let promise2 = reject(new Error('2'));\n let promise3 = reject(new Error('3'));\n let promises = [ promise1, promise2, promise3 ];\n\n let filterFn = function(item){\n return item > 1;\n };\n\n filter(promises, filterFn).then(function(array){\n // Code here never runs because there are rejected promises!\n }, function(reason) {\n // reason.message === '2'\n });\n ```\n\n `filter` will also wait for any promises returned from `filterFn`.\n For instance, you may want to fetch a list of users then return a subset\n of those users based on some asynchronous operation:\n\n ```javascript\n import { filter, resolve } from 'rsvp';\n\n let alice = { name: 'alice' };\n let bob = { name: 'bob' };\n let users = [ alice, bob ];\n\n let promises = users.map(function(user){\n return resolve(user);\n });\n\n let filterFn = function(user){\n // Here, Alice has permissions to create a blog post, but Bob does not.\n return getPrivilegesForUser(user).then(function(privs){\n return privs.can_create_blog_post === true;\n });\n };\n filter(promises, filterFn).then(function(users){\n // true, because the server told us only Alice can create a blog post.\n users.length === 1;\n // false, because Alice is the only user present in `users`\n users[0] === bob;\n });\n ```\n\n @method filter\n @public\n @static\n @for rsvp\n @param {Array} promises\n @param {Function} filterFn - function to be called on each resolved value to\n filter the final results.\n @param {String} [label] optional string describing the promise. Useful for\n tooling.\n @return {Promise}\n*/\n\nexport default function filter(promises, filterFn, label) {\n if (typeof filterFn !== 'function') {\n return Promise.reject(new TypeError(\"filter expects function as a second argument\"), label);\n }\n\n return Promise.resolve(promises, label)\n .then(function(promises) {\n if (!Array.isArray(promises)) {\n throw new TypeError(\"filter must be called with an array\");\n }\n return new FilterEnumerator(Promise, promises, filterFn, label).promise;\n });\n}\n","let len = 0;\nlet vertxNext;\nexport default function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n scheduleFlush();\n }\n}\n\nconst browserWindow = (typeof window !== 'undefined') ? window : undefined;\nconst browserGlobal = browserWindow || {};\nconst BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nconst isNode = typeof self === 'undefined' &&\n typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nconst isWorker = typeof Uint8ClampedArray !== 'undefined' &&\n typeof importScripts !== 'undefined' &&\n typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n let nextTick = process.nextTick;\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // setImmediate should be used instead instead\n let version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n nextTick = setImmediate;\n }\n return () => nextTick(flush);\n}\n\n// vertx\nfunction useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function() {\n vertxNext(flush);\n };\n }\n return useSetTimeout();\n}\n\nfunction useMutationObserver() {\n let iterations = 0;\n let observer = new BrowserMutationObserver(flush);\n let node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return () => node.data = (iterations = ++iterations % 2);\n}\n\n// web worker\nfunction useMessageChannel() {\n let channel = new MessageChannel();\n channel.port1.onmessage = flush;\n return () => channel.port2.postMessage(0);\n}\n\nfunction useSetTimeout() {\n return () => setTimeout(flush, 1);\n}\n\nconst queue = new Array(1000);\n\nfunction flush() {\n for (let i = 0; i < len; i+=2) {\n let callback = queue[i];\n let arg = queue[i+1];\n\n callback(arg);\n\n queue[i] = undefined;\n queue[i+1] = undefined;\n }\n\n len = 0;\n}\n\nfunction attemptVertex() {\n try {\n const vertx = Function('return this')().require('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch(e) {\n return useSetTimeout();\n }\n}\n\nlet scheduleFlush;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n scheduleFlush = useNextTick();\n} else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n} else if (isWorker) {\n scheduleFlush = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n scheduleFlush = attemptVertex();\n} else {\n scheduleFlush = useSetTimeout();\n}\n","import Promise from './rsvp/promise';\nimport EventTarget from './rsvp/events';\nimport denodeify from './rsvp/node';\nimport all from './rsvp/all';\nimport allSettled from './rsvp/all-settled';\nimport race from './rsvp/race';\nimport hash from './rsvp/hash';\nimport hashSettled from './rsvp/hash-settled';\nimport rethrow from './rsvp/rethrow';\nimport defer from './rsvp/defer';\nimport {\n config,\n configure\n} from './rsvp/config';\nimport map from './rsvp/map';\nimport resolve from './rsvp/resolve';\nimport reject from './rsvp/reject';\nimport filter from './rsvp/filter';\nimport asap from './rsvp/asap';\n\n// defaults\nconfig.async = asap;\nconfig.after = cb => setTimeout(cb, 0);\nconst cast = resolve;\n\nconst async = (callback, arg) => config.async(callback, arg);\n\nfunction on() {\n config.on(...arguments);\n}\n\nfunction off() {\n config.off(...arguments);\n}\n\n// Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\nif (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n let callbacks = window['__PROMISE_INSTRUMENTATION__'];\n configure('instrument', true);\n for (let eventName in callbacks) {\n if (callbacks.hasOwnProperty(eventName)) {\n on(eventName, callbacks[eventName]);\n }\n }\n}\n\n// the default export here is for backwards compat:\n// https://github.com/tildeio/rsvp.js/issues/434\nexport default {\n asap,\n cast,\n Promise,\n EventTarget,\n all,\n allSettled,\n race,\n hash,\n hashSettled,\n rethrow,\n defer,\n denodeify,\n configure,\n on,\n off,\n resolve,\n reject,\n map,\n async,\n filter\n};\n\nexport {\n asap,\n cast,\n Promise,\n EventTarget,\n all,\n allSettled,\n race,\n hash,\n hashSettled,\n rethrow,\n defer,\n denodeify,\n configure,\n on,\n off,\n resolve,\n reject,\n map,\n async,\n filter\n};\n"],"names":["resolve","_resolve","then","originalThen","originalResolve","OwnPromise","ownResolve","ownThen","reject","_reject","Resolve","Reject","all","race","queue","scheduleFlush"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;ACLA,SAAS,YAAY,CAAC,MAAM,EAAE;EAC5B,IAAI,SAAS,GAAG,MAAM,CAAC,iBAAiB,CAAC;;EAEzC,IAAI,CAAC,SAAS,EAAE;IACd,SAAS,GAAG,MAAM,CAAC,iBAAiB,GAAG,EAAE,CAAC;GAC3C;;EAED,OAAO,SAAS,CAAC;CAClB;;;;;;;AAOD,kBAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDb,KAAK,CAAC,MAAM,EAAE;IACZ,MAAM,CAAC,EAAE,QAAQ,IAAI,CAAC,EAAE,CAAC;IACzB,MAAM,CAAC,GAAG,OAAO,IAAI,CAAC,GAAG,CAAC;IAC1B,M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