!function(){"use strict";functione(e){varn=this.constructor;returnthis.then((function(t){returnn.resolve(e()).then((function(){returnt}))}),(function(t){returnn.resolve(e()).then((function(){returnn.reject(t)}))}))}varn=setTimeout;functiont(e){returnBoolean(e&&void0!==e.length)}functionr(){}functiono(e){if(!(thisinstanceofo))thrownewTypeError("Promises must be constructed via new");if("function"!=typeofe)thrownewTypeError("not a function");this._state=0,this._handled=!1,this._value=void0,this._deferreds=[],f(e,this)}functioni(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){vart=1===e._state?n.onFulfilled:n.onRejected;if(null!==t){varr;try{r=t(e._value)}catch(e){returnvoids(n.promise,e)}u(n.promise,r)}else(1===e._state?u:s)(n.promise,e._value)}))):e._deferreds.push(n)}functionu(e,n){try{if(n===e)thrownewTypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeofn||"function"==typeofn)){vart=n.then;if(ninstanceofo)returne._state=3,e._value=n,voida(e);if("function"==typeoft)returnvoidf((r=t,i=n,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=n,a(e)}catch(n){s(e,n)}varr,i}functions(e,n){e._state=2,e._value=n,a(e)}functiona(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(varn=0,t=e._deferreds.length;n<t;n++)i(e,e._deferreds[n]);e._deferreds=null}functionc(e,n,t){this.onFulfilled="function"==typeofe?e:null,this.onRejected="function"==typeofn?n:null,this.promise=t}functionf(e,n){vart=!1;try{e((function(e){t||(t=!0,u(n,e))}),(function(e){t||(t=!0,s(n,e))}))}catch(e){if(t)return;t=!0,s(n,e)}}o.prototype["catch"]=function(e){returnthis.then(null,e)},o.prototype.then=function(e,n){vart=newthis.constructor(r);returni(this,newc(e,n,t)),t},o.prototype["finally"]=e,o.all=function(e){returnnewo((function(n,r){if(!t(e))returnr(newTypeError("Promise.all accepts an array"));varo=Array.prototype.slice.call(e);if(0===o.length)returnn([]);vari=o.length;functionu(e,t){try{if(t&&("object"==typeoft||"function"==typeoft)){vars=t.then;if("function"==typeofs)returnvoids.call(t,(function(n){u(e,n)}),r)}o[e]=t,0==--i&&n(o)}catch(e){r(e)}}for(vars=0;s<o.length;s++)u(s,o[s])}))},o.resolve=function(e){returne&&"object"==typeofe&&e.constructor===o?e:newo((function(n){n(e)}))},o.reject=function(e){returnnewo((function(n,t){t(e)}))},o.race=function(e){returnnewo((function(n,r){if(!t(e))returnr(newTypeError("Promise.race accepts an array"));for(vari=0,u=e.length;i<u;i++)o.resolve(e[i]).then(n,r)}))},o._immediateFn="function"==typeofsetImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeofconsole&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};varl=function(){if("undefined"!=typeofself)returnself;if("undefined"!=typeofwindow)returnwindow;if("undefined"!=typeofglobal)returnglobal;thrownewError("unable to locate global object")}();"Promise"inl?l.Promise.prototype["finally"]||(l.Promise.prototype["finally"]=e):l["Promise"]=o,self.fetch||(self.fetch=function(e,n){returnn=n||{},newPromise((function(t,r){varo=newXMLHttpRequest,i=[],u=[],s={},a=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){returnPromise.resolve(o.responseText)},json:function(){returnPromise.resolve(JSON.parse(o.responseText))},blob:function(){returnPromise.resolve(newBlob([o.response]))},clone:a,headers:{keys:function(){returni},entries:function(){returnu},get:function(e){returns[e.toLowerCase()]},has:function(e){returne.toLowerCase()ins}}}};for(varcino.open(n.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,n,t){i.push(n=n.toLowerCase()),u.push([n,t]),s[n]=s[n]?s[n]+","+t:t})),t(a())},o.onerror=r,o.withCredentials="include"==n.credentials,n.headers)o.setRequestHeader(c,n.headers[c]);o.send(n.body||null)}))});varp=window.screen,d=p.width