2 lines
6.3 KiB
JavaScript
2 lines
6.3 KiB
JavaScript
!function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(e){return t[e]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s="Lt8t")}({"5y5z":function(t,e,n){"use strict";function o(t){return o="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},o(t)}function r(t){return r="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},r(t)}function u(t){return Boolean(t&&void 0!==t.length)}function i(){}function f(t){if(!(this instanceof f))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],y(t,this)}function c(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,f._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var o;try{o=n(t._value)}catch(t){return void s(e.promise,t)}l(e.promise,o)}else(1===t._state?l:s)(e.promise,t._value)}))):t._deferreds.push(e)}function l(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===r(e)||"function"==typeof e)){var n=e.then;if(e instanceof f)return t._state=3,t._value=e,void a(t);if("function"==typeof n)return void y((o=n,u=e,function(){o.apply(u,arguments)}),t)}t._state=1,t._value=e,a(t)}catch(e){s(t,e)}var o,u}function s(t,e){t._state=2,t._value=e,a(t)}function a(t){2===t._state&&0===t._deferreds.length&&f._immediateFn((function(){t._handled||f._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)c(t,t._deferreds[e]);t._deferreds=null}function p(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function y(t,e){var n=!1;try{t((function(t){n||(n=!0,l(e,t))}),(function(t){n||(n=!0,s(e,t))}))}catch(t){if(n)return;n=!0,s(e,t)}}n.r(e);var d=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))},h=function(t){return new this((function(e,n){function r(t,n){if(n&&("object"===o(n)||"function"==typeof n)){var f=n.then;if("function"==typeof f)return void f.call(n,(function(e){r(t,e)}),(function(n){u[t]={status:"rejected",reason:n},0==--i&&e(u)}))}u[t]={status:"fulfilled",value:n},0==--i&&e(u)}if(!t||void 0===t.length)return n(new TypeError(o(t)+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var u=Array.prototype.slice.call(t);if(0===u.length)return e([]);for(var i=u.length,f=0;f<u.length;f++)r(f,u[f])}))},m=setTimeout,v="undefined"!=typeof setImmediate?setImmediate:null;f.prototype.catch=function(t){return this.then(null,t)},f.prototype.then=function(t,e){var n=new this.constructor(i);return c(this,new p(t,e,n)),n},f.prototype.finally=d,f.all=function(t){return new f((function(e,n){function o(t,u){try{if(u&&("object"===r(u)||"function"==typeof u)){var c=u.then;if("function"==typeof c)return void c.call(u,(function(e){o(t,e)}),n)}i[t]=u,0==--f&&e(i)}catch(t){n(t)}}if(!u(t))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var f=i.length,c=0;c<i.length;c++)o(c,i[c])}))},f.allSettled=h,f.resolve=function(t){return t&&"object"===r(t)&&t.constructor===f?t:new f((function(e){e(t)}))},f.reject=function(t){return new f((function(e,n){n(t)}))},f.race=function(t){return new f((function(e,n){if(!u(t))return n(new TypeError("Promise.race accepts an array"));for(var o=0,r=t.length;o<r;o++)f.resolve(t[o]).then(e,n)}))},f._immediateFn="function"==typeof v&&function(t){v(t)}||function(t){m(t,0)},f._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};e.default=f},"8vKp":function(t,e,n){t.exports=self.fetch||(self.fetch=n("SlHc").default||n("SlHc"))},"B+9m":function(t){function e(t){return 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)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":e(window))&&(n=window)}t.exports=n},Lt8t:function(t,e,n){(function(t){t.Promise||(t.Promise=n("5y5z").default),t.fetch||(t.fetch=n("8vKp"))}).call(this,n("B+9m"))},SlHc:function(t,e,n){"use strict";n.r(e),e.default=function(t,e){return e=e||{},new Promise((function(n,o){var r=new XMLHttpRequest,u=[],i=[],f={},c=function t(){return{ok:2==(r.status/100|0),statusText:r.statusText,status:r.status,url:r.responseURL,text:function(){return Promise.resolve(r.responseText)},json:function(){return Promise.resolve(r.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([r.response]))},clone:t,headers:{keys:function(){return u},entries:function(){return i},get:function(t){return f[t.toLowerCase()]},has:function(t){return t.toLowerCase()in f}}}};for(var l in r.open(e.method||"get",t,!0),r.onload=function(){r.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){u.push(e=e.toLowerCase()),i.push([e,n]),f[e]=f[e]?f[e]+","+n:n})),n(c())},r.onerror=o,r.withCredentials="include"==e.credentials,e.headers)r.setRequestHeader(l,e.headers[l]);r.send(e.body||null)}))}}});
|
|
//# sourceMappingURL=polyfills.058fb.js.map
|