-
Notifications
You must be signed in to change notification settings - Fork 50
/
babel-top.js
1 lines (1 loc) · 15.6 KB
/
babel-top.js
1
!function(t){"use strict";function e(t,e,r,o){var i=e&&e.prototype instanceof n?e:n,a=Object.create(i.prototype),u=new p(o||[]);return a._invoke=c(t,r,u),a}function r(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function n(){}function o(){}function i(){}function a(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function e(n,o,i,a){var u=r(t[n],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&v.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(f).then(function(t){c.value=t,i(c)},a)}a(u.arg)}var n;this._invoke=function(t,r){function o(){return new Promise(function(n,o){e(t,r,n,o)})}return n=n?n.then(o,o):o()}}function c(t,e,n){var o="suspendedStart";return function(i,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw a;return{value:void 0,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=f(u,n);if(c){if(c===j)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===o)throw o="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o="executing";var l=r(t,e,n);if("normal"===l.type){if(o=n.done?"completed":"suspendedYield",l.arg===j)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o="completed",n.method="throw",n.arg=l.arg)}}}function f(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,f(t,e),"throw"===e.method))return j;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var o=r(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,j;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,j):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,j)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function s(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function y(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(v.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:h}}function h(){return{value:void 0,done:!0}}var d=Object.prototype,v=d.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",g=b.asyncIterator||"@@asyncIterator",m=b.toStringTag||"@@toStringTag",O="object"==typeof module,P=t.regeneratorRuntime;if(P)O&&(module.exports=P);else{(P=t.regeneratorRuntime=O?module.exports:{}).wrap=e;var j={},x={};x[w]=function(){return this};var S=Object.getPrototypeOf,E=S&&S(S(y([])));E&&E!==d&&v.call(E,w)&&(x=E);var L=i.prototype=n.prototype=Object.create(x);o.prototype=L.constructor=i,i.constructor=o,i[m]=o.displayName="GeneratorFunction",P.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},P.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,i):(t.__proto__=i,!(m in t)&&(t[m]="GeneratorFunction")),t.prototype=Object.create(L),t},P.awrap=function(t){return{__await:t}},a(u.prototype),u.prototype[g]=function(){return this},P.AsyncIterator=u,P.async=function(t,r,n,o){var i=new u(e(t,r,n,o));return P.isGeneratorFunction(r)?i:i.next().then(function(t){return t.done?t.value:i.next()})},a(L),L[m]="Generator",L[w]=function(){return this},L.toString=function(){return"[object Generator]"},P.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},P.values=y,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(s),!t)for(var e in this)"t"===e.charAt(0)&&v.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=v.call(o,"catchLoc"),u=v.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var r,n=this.tryEntries.length-1;0<=n;--n)if((r=this.tryEntries[n]).tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,j):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),j},finish:function(t){for(var e,r=this.tryEntries.length-1;0<=r;--r)if((e=this.tryEntries[r]).finallyLoc===t)return this.complete(e.completion,e.afterLoc),s(e),j},catch:function(t){for(var e,r=this.tryEntries.length-1;0<=r;--r)if((e=this.tryEntries[r]).tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;s(e)}return o}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:y(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),j}}}}(function(){return this}()||Function("return this")()),function(t){function e(t){return p.typeof=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function r(t){function e(n,o){try{var i=t[n](o),a=i.value,u=a instanceof p.AwaitValue;Promise.resolve(u?a.wrapped:a).then(function(t){return u?void e("next",t):void r(i.done?"return":"normal",t)},function(t){e("throw",t)})}catch(t){r("throw",t)}}function r(t,r){switch(t){case"return":n.resolve({value:r,done:!0});break;case"throw":n.reject(r);break;default:n.resolve({value:r,done:!1})}(n=n.next)?e(n.key,n.arg):o=null}var n,o;this._invoke=function(t,r){return new Promise(function(i,a){var u={key:t,arg:r,resolve:i,reject:a,next:null};o?o=o.next=u:(n=o=u,e(t,r))})},"function"!=typeof t.return&&(this.return=void 0)}function n(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function o(t,e){for(var r,n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}function i(){return p.extends=i=Object.assign||function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},i.apply(this,arguments)}function a(t){return p.getPrototypeOf=a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function u(t,e){return p.setPrototypeOf=u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},u(t,e)}function c(){return p.construct=c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&p.setPrototypeOf(o,r.prototype),o},c.apply(null,arguments)}function f(t){var e="function"==typeof Map?new Map:void 0;return p.wrapNativeSuper=f=function(t){function r(){return p.construct(t,arguments,p.getPrototypeOf(this).constructor)}if(null===t||!p.isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p.setPrototypeOf(r,t)},f(t)}function l(t,e,r){return p.get=l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=p.superPropBase(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}},l(t,e,r||t)}function s(t,e,r,n){return(s="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(t,e,r,n){var o,i=p.superPropBase(t,e);if(i){if((o=Object.getOwnPropertyDescriptor(i,e)).set)return o.set.call(n,r),!0;if(!o.writable)return!1}if(o=Object.getOwnPropertyDescriptor(n,e)){if(!o.writable)return!1;o.value=r,Object.defineProperty(n,e,o)}else p.defineProperty(n,e,r);return!0})(t,e,r,n)}var p=("undefined"===typeof global?self:global).babelHelpers={};p.typeof=e,p.asyncIterator=function(t){var e;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(e=t[Symbol.asyncIterator]))return e.call(t);if(Symbol.iterator&&null!=(e=t[Symbol.iterator]))return e.call(t)}throw new TypeError("Object is not async iterable")},p.AwaitValue=function(t){this.wrapped=t},"function"==typeof Symbol&&Symbol.asyncIterator&&(r.prototype[Symbol.asyncIterator]=function(){return this}),r.prototype.next=function(t){return this._invoke("next",t)},r.prototype.throw=function(t){return this._invoke("throw",t)},r.prototype.return=function(t){return this._invoke("return",t)},p.AsyncGenerator=r,p.wrapAsyncGenerator=function(t){return function(){return new p.AsyncGenerator(t.apply(this,arguments))}},p.awaitAsyncGenerator=function(t){return new p.AwaitValue(t)},p.asyncGeneratorDelegate=function(t,e){function r(r,n){return o=!0,n=new Promise(function(e){e(t[r](n))}),{done:!1,value:e(n)}}var n={},o=!1;return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(t){return o?(o=!1,t):r("next",t)},"function"==typeof t.throw&&(n.throw=function(t){if(o)throw o=!1,t;return r("throw",t)}),"function"==typeof t.return&&(n.return=function(t){return r("return",t)}),n},p.asyncToGenerator=function(t){return function(){var e=this,r=arguments;return new Promise(function(o,i){function a(t){n(c,o,i,a,u,"next",t)}function u(t){n(c,o,i,a,u,"throw",t)}var c=t.apply(e,r);a(void 0)})}},p.classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},p.createClass=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),t},p.defineEnumerableProperties=function(t,e){for(var r in e)(i=e[r]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,r,i);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o++){var i,a=n[o];(i=e[a]).configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a,i)}return t},p.defaults=function(t,e){for(var r=Object.getOwnPropertyNames(e),n=0;n<r.length;n++){var o=r[n],i=Object.getOwnPropertyDescriptor(e,o);i&&i.configurable&&void 0===t[o]&&Object.defineProperty(t,o,i)}return t},p.defineProperty=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},p.extends=i,p.objectSpread=function(t){for(var e=1;e<arguments.length;e++){var r=null==arguments[e]?{}:arguments[e],n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){p.defineProperty(t,e,r[e])})}return t},p.inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p.setPrototypeOf(t,e)},p.getPrototypeOf=a,p.setPrototypeOf=u,p.construct=c,p.isNativeFunction=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},p.wrapNativeSuper=f,p.instanceof=function(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e},p.interopRequireDefault=function(t){return t&&t.__esModule?t:{default:t}},p.interopRequireWildcard=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,r):{};n.get||n.set?Object.defineProperty(e,r,n):e[r]=t[r]}return e.default=t,e},p.newArrowCheck=function(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")},p.objectDestructuringEmpty=function(t){if(null==t)throw new TypeError("Cannot destructure undefined")},p.objectWithoutPropertiesLoose=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],0<=e.indexOf(r)||(o[r]=t[r]);return o},p.objectWithoutProperties=function(t,e){if(null==t)return{};var r,n,o=p.objectWithoutPropertiesLoose(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(0<=e.indexOf(r))&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o},p.assertThisInitialized=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},p.possibleConstructorReturn=function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?p.assertThisInitialized(t):e},p.superPropBase=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p.getPrototypeOf(t)););return t},p.get=l,p.set=function(t,e,r,n,o){if(!s(t,e,r,n||t)&&o)throw new Error("failed to set property");return r},p.taggedTemplateLiteral=function(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))},p.temporalRef=function(t,e){if(t===p.temporalUndefined)throw new ReferenceError(e+" is not defined - temporal dead zone");return t},p.readOnlyError=function(t){throw new Error('"'+t+'" is read-only')},p.temporalUndefined={},p.slicedToArray=function(t,e){return p.arrayWithHoles(t)||p.iterableToArrayLimit(t,e)||p.nonIterableRest()},p.toArray=function(t){return p.arrayWithHoles(t)||p.iterableToArray(t)||p.nonIterableRest()},p.toConsumableArray=function(t){return p.arrayWithoutHoles(t)||p.iterableToArray(t)||p.nonIterableSpread()},p.arrayWithoutHoles=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}},p.arrayWithHoles=function(t){if(Array.isArray(t))return t},p.iterableToArray=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)},p.iterableToArrayLimit=function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r},p.nonIterableSpread=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")},p.nonIterableRest=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")},p.toPropertyKey=function(t){var e=p.toPrimitive(t,"string");return"symbol"==typeof e?e:e+""}}();