forked from inexorabletash/polyfill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolyfill.min.js
3 lines (3 loc) · 79.4 KB
/
polyfill.min.js
1
2
3
function __cons(t,a){return eval("new t("+a.map(function(e,t){return"a["+t+"]"}).join(",")+")")}Object.getPrototypeOf||(Object.getPrototypeOf=function(e){if(e!==Object(e))throw TypeError("Object.getPrototypeOf called on non-object");return e.__proto__||e.constructor.prototype||Object.prototype}),"function"!=typeof Object.getOwnPropertyNames&&(Object.getOwnPropertyNames=function(e){if(e!==Object(e))throw TypeError("Object.getOwnPropertyNames called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),"function"!=typeof Object.create&&(Object.create=function(e,t){function r(){}if("object"!=typeof e)throw TypeError();r.prototype=e;var n=new r;if(e&&(n.constructor=r),void 0!==t){if(t!==Object(t))throw TypeError();Object.defineProperties(n,t)}return n}),function(){if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()){var e=Object.defineProperty;Object.defineProperty=function(t,r,n){if(e)try{return e(t,r,n)}catch(e){}if(t!==Object(t))throw TypeError("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in n&&Object.prototype.__defineGetter__.call(t,r,n.get),Object.prototype.__defineSetter__&&"set"in n&&Object.prototype.__defineSetter__.call(t,r,n.set),"value"in n&&(t[r]=n.value),t}}}(),"function"!=typeof Object.defineProperties&&(Object.defineProperties=function(e,t){if(e!==Object(e))throw TypeError("Object.defineProperties called on non-object");var r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&Object.defineProperty(e,r,t[r]);return e}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw TypeError("Object.keys called on non-object");var t,r=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.push(t);return r}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw TypeError("Bind must be called on a function");var t=Array.prototype.slice.call(arguments,1),r=this,n=function(){},o=function(){return r.apply(this instanceof n?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(n.prototype=this.prototype),o.prototype=new n,o}),Array.isArray=Array.isArray||function(e){return Boolean(e&&"[object Array]"===Object.prototype.toString.call(Object(e)))},Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if(0===r)return-1;var n=0;if(arguments.length>0&&(n=Number(arguments[1]),isNaN(n)?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n)))),n>=r)return-1;for(var o=n>=0?n:Math.max(r-Math.abs(n),0);o<r;o++)if(o in t&&t[o]===e)return o;return-1}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if(0===r)return-1;var n=r;arguments.length>1&&(n=Number(arguments[1]),n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))));for(var o=n>=0?Math.min(n,r-1):r-Math.abs(n);o>=0;o--)if(o in t&&t[o]===e)return o;return-1}),Array.prototype.every||(Array.prototype.every=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=arguments[1];for(n=0;n<r;n++)if(n in t&&!e.call(o,t[n],n,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=arguments[1];for(n=0;n<r;n++)if(n in t&&e.call(o,t[n],n,t))return!0;return!1}),Array.prototype.forEach||(Array.prototype.forEach=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=arguments[1];for(n=0;n<r;n++)n in t&&e.call(o,t[n],n,t)}),Array.prototype.map||(Array.prototype.map=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n=[];n.length=r;var o,i=arguments[1];for(o=0;o<r;o++)o in t&&(n[o]=e.call(i,t[o],o,t));return n}),Array.prototype.filter||(Array.prototype.filter=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();var n,o=[],i=arguments[1];for(n=0;n<r;n++)if(n in t){var a=t[n];e.call(i,a,n,t)&&o.push(a)}return o}),Array.prototype.reduce||(Array.prototype.reduce=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();if(0===r&&1===arguments.length)throw TypeError();var n,o=0;if(arguments.length>=2)n=arguments[1];else for(;;){if(o in t){n=t[o++];break}if(++o>=r)throw TypeError()}for(;o<r;)o in t&&(n=e.call(void 0,n,t[o],o,t)),o++;return n}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){if(void 0===this||null===this)throw TypeError();var t=Object(this),r=t.length>>>0;if("function"!=typeof e)throw TypeError();if(0===r&&1===arguments.length)throw TypeError();var n,o=r-1;if(arguments.length>=2)n=arguments[1];else for(;;){if(o in this){n=this[o--];break}if(--o<0)throw TypeError()}for(;o>=0;)o in t&&(n=e.call(void 0,n,t[o],o,t)),o--;return n}),String.prototype.trim||(String.prototype.trim=function(){return String(this).replace(/^\s+/,"").replace(/\s+$/,"")}),Date.now||(Date.now=function(){return Number(new Date)}),Date.prototype.toISOString||(Date.prototype.toISOString=function(){function e(e){return("00"+e).slice(-2)}function t(e){return("000"+e).slice(-3)}return this.getUTCFullYear()+"-"+e(this.getUTCMonth()+1)+"-"+e(this.getUTCDate())+"T"+e(this.getUTCHours())+":"+e(this.getUTCMinutes())+":"+e(this.getUTCSeconds())+"."+t(this.getUTCMilliseconds())+"Z"}),function(e){"use strict";function t(t){return t===e?I:t}function r(e,r,n){var o=e[r];e[r]=function(){var e=t(this),r=n.apply(e,arguments);return r!==I?r:o.apply(e,arguments)}}function n(e,t){for(var r=Object.getOwnPropertyDescriptor(e,t),n=Object.getPrototypeOf(e);!r&&n;)r=Object.getOwnPropertyDescriptor(n,t),n=Object.getPrototypeOf(n);return r}function o(e,t,r,n){t in e&&!n&&!L||("function"==typeof r?Object.defineProperty(e,t,{value:r,configurable:!0,enumerable:!1,writable:!0}):Object.defineProperty(e,t,{value:r,configurable:!1,enumerable:!1,writable:!1}))}function i(e,t,r){Object.defineProperty(e,t,{value:r,configurable:!1,enumerable:!1,writable:!0})}function a(){function e(e){var t=e.valueOf,n=x(null);return Object.defineProperty(e,"valueOf",{value:function(r){return function(o){return o===r?n:t.apply(e,arguments)}}(r),configurable:!0,writeable:!0,enumerable:!1}),n}function t(e){var t="function"==typeof e.valueOf&&e.valueOf(r);return t===e?null:t}var r=x(null);return{clear:function(){r=x(null)},remove:function(e){var r=t(e);return!(!r||!g(r,"value"))&&(delete r.value,!0)},get:function(e,r){var n=t(e);return n&&g(n,"value")?n.value:r},has:function(e){var r=t(e);return Boolean(r&&g(r,"value"))},set:function(r,n){var o=t(r)||e(r);o.value=n}}}function u(t){switch(typeof t){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===t?"null":t instanceof e.Symbol?"symbol":"object"}}function s(e){return e=Number(e),U(e)?0:0===e||e===1/0||e===-(1/0)?e:(e<0?-1:1)*z(X(e))}function c(e){return e>>>0}function l(e){if(null===e||e===I)throw TypeError();return Object(e)}function f(e){var t=s(e);return t<=0?0:t===1/0?9007199254740991:J(t,9007199254740991)}function h(e){return"function"==typeof e}function p(e){return!!/Constructor/.test(Object.prototype.toString.call(e))||(!!/Function/.test(Object.prototype.toString.call(e))||"function"==typeof e)}function y(e,t){if(typeof e!=typeof t)return!1;switch(typeof e){case"undefined":return!0;case"number":return e!==e&&t!==t||(0===e&&0===t?1/e===1/t:e===t);case"boolean":case"string":case"object":default:return e===t}}function d(e,t){if(typeof e!=typeof t)return!1;switch(typeof e){case"undefined":return!0;case"number":return e!==e&&t!==t||e===t;case"boolean":case"string":case"object":default:return e===t}}function v(e,t){var r=l(e);return r[t]}function m(e,t){var r=v(e,t);if(r===I||null===r)return I;if(!h(r))throw TypeError();return r}function b(e,t){for(;e;){if(Object.prototype.hasOwnProperty.call(e,t))return!0;if("object"!==u(e))return!1;e=Object.getPrototypeOf(e)}return!1}function g(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function E(e,t){arguments.length<2&&(t=m(e,ae));var r=t.call(e);if("object"!==u(r))throw TypeError();return r}function w(e,t){if(arguments.length<2)var r=e.next();else r=e.next(t);if("object"!==u(r))throw TypeError();return r}function _(e){return e.value}function T(e,t){var r=w(e,t),n=r.done;return Boolean(n)!==!0&&r}function S(e,t){var r={};return r.value=e,r.done=t,r}function O(e,t,r){var n=function(){t.apply(I,r)};k(n)}function j(e){}function R(e){var t=[];if(Object(e)!==e)return t;for(var r=new Set;null!==e;)Object.getOwnPropertyNames(e).forEach(function(n){if(!r.has(n)){var o=Object.getOwnPropertyDescriptor(e,n);o&&(r.add(n),o.enumerable&&t.push(n))}}),e=Object.getPrototypeOf(e);return t[ae]()}function P(e){return Object.getOwnPropertyNames(e)}function x(e,t){return Object.create(e,t)}function D(){}function A(e,t){var r=String(e),n=new D;return i(n,"[[IteratedString]]",r),i(n,"[[StringIteratorNextIndex]]",0),i(n,"[[StringIterationKind]]",t),n}function N(){}function M(e,t){var r=l(e),n=new N;return i(n,"[[IteratedObject]]",r),i(n,"[[ArrayIteratorNextIndex]]",0),i(n,"[[ArrayIterationKind]]",t),n}var C,L=!1,I=void 0,k=function(e,t){return e?function(t){e.resolve().then(function(){t()})}:t?function(e){t(e)}:function(e){setTimeout(e,0)}}(e.Promise,e.setImmediate),U=e.isNaN,F=e.parseInt,q=e.parseFloat,B=Math.E,H=Math.LOG10E,W=Math.LOG2E,X=Math.abs,G=Math.ceil,$=Math.exp,z=Math.floor,V=Math.log,K=Math.max,J=Math.min,Y=Math.pow,Z=Math.random,Q=Math.sqrt,ee=String.prototype.match,te=String.prototype.replace,re=String.prototype.search,ne=String.prototype.split,oe=Object.create(null);!function(){function r(e){return Array(e+1).join("x").replace(/x/g,function(){return Z()<.5?"":""})}function n(e){if(!(this instanceof n))return new n(e,a);if(this instanceof n&&arguments[1]!==a)throw TypeError();var t=e===I?I:String(e);return i(this,"[[SymbolData]]",r(128)),i(this,"[[Description]]",t),u[this]=this,this}var a=Object.create(null),u={};C=function(e){return u[e]};var s=[];"Symbol"in e&&!L||(e.Symbol=n),o(n,"for",function(e){for(var t=String(e),r=0;r<s.length;++r){var o=s[r];if(y(o["[[key]]"],t))return o["[[symbol]]"]}var i=n(e);return s.push({"[[key]]":t,"[[symbol]]":i}),i}),o(e.Symbol,"iterator",e.Symbol("Symbol.iterator")),o(n,"keyFor",function(e){if(!(e instanceof n))throw TypeError();for(var t=0;t<s.length;++t){var r=s[t];if(y(r["[[symbol]]"],e))return r["[[key]]"]}return I}),o(e.Symbol,"match",e.Symbol("Symbol.match")),o(e.Symbol,"replace",e.Symbol("Symbol.replace")),o(e.Symbol,"search",e.Symbol("Symbol.search")),o(e.Symbol,"split",e.Symbol("Symbol.split")),o(e.Symbol,"toStringTag",e.Symbol("Symbol.toStringTag")),Object.defineProperty(n.prototype,"toString",{value:function(){var e=t(this),r=e["[[Description]]"];return"Symbol("+(r===I?"":r)+e["[[SymbolData]]"]+")"},configurable:!0,writeable:!0,enumerable:!1}),Object.defineProperty(n.prototype,"valueOf",{value:function(){throw TypeError()},configurable:!0,writeable:!0,enumerable:!1})}();var ie={},ae=e.Symbol.iterator,ue=e.Symbol.match,se=e.Symbol.replace,ce=e.Symbol.search,le=e.Symbol.split,fe=e.Symbol.toStringTag;o(Object,"assign",function(e,t){var r=l(e);if(arguments.length<2)return r;for(var n=1;n<arguments.length;){var o=arguments[n++];if(o===I||null===o)var i=[];else{var a=l(o);i=P(a)}for(var u=0;u<i.length;++u){var s=i[u],c=Object.getOwnPropertyDescriptor(a,s);if(c!==I&&c.enumerable){var f=a[s];r[s]=f}}}return r}),function(){function t(e){return!C(e)}var r="symbol"==typeof e.Symbol(),n=Object.getOwnPropertyNames,i=Object.keys,a="object"==typeof window?n(window):[];o(Object,"getOwnPropertyNames",function(e){if("[object Window]"===String(e))try{return n(e).filter(t)}catch(e){return a.slice()}return n(e).filter(t)},!r),o(Object,"getOwnPropertySymbols",function(e){return n(e).filter(C).map(C)},!r),o(Object,"keys",function(e){return i(e).filter(t)},!r)}(),o(Object,"is",function(e,t){return y(e,t)}),o(Object,"setPrototypeOf",function(e,t){if("object"!==u(e))throw TypeError();if("object"!==u(t)&&"null"!==u(t))throw TypeError();return e.__proto__=t,e}),r(Object.prototype,"toString",function(){var e=t(this);return e===Object(e)&&fe in e?"[object "+e[fe]+"]":I}),o(e.Symbol.prototype,e.Symbol.toStringTag,"Symbol"),o(Number,"EPSILON",function(){var e,t;for(e=1;1+e!==1;e/=2)t=e;return t}()),o(Number,"isFinite",function(e){return"number"===u(e)&&(e===e&&e!==+(1/0)&&e!==-(1/0))}),o(Number,"isInteger",function(e){if("number"!==u(e))return!1;if(e!==e||e===+(1/0)||e===-(1/0))return!1;var t=s(e);return t===e}),o(Number,"isNaN",function(e){return"number"===u(e)&&e!==e}),o(Number,"isSafeInteger",function(e){if("number"!==u(e))return!1;if(e!==e||e===+(1/0)||e===-(1/0))return!1;var t=s(e);return t===e&&X(t)<=9007199254740991}),o(Number,"MAX_SAFE_INTEGER",9007199254740991),o(Number,"MIN_SAFE_INTEGER",-9007199254740991),o(Number,"parseFloat",q),o(Number,"parseInt",F),o(Math,fe,"Math"),o(Math,"acosh",function(e){return e=Number(e),V(e+Q(e*e-1))}),o(Math,"asinh",function(e){if(e=Number(e),y(e,-0))return e;var t=Q(e*e+1);return V(t===-e?0:e+t)}),o(Math,"atanh",function(e){return e=Number(e),0===e?e:V((1+e)/(1-e))/2}),o(Math,"cbrt",function(e){if(e=Number(e),U(e/e))return e;var t=Y(X(e),1/3),r=e/t/t;return t+t*(r-t)/(2*t+r)}),o(Math,"clz32",function(e){function t(e){return 240&e?128&e?0:64&e?1:32&e?2:3:8&e?4:4&e?5:2&e?6:1&e?7:8}return e=c(e),4278190080&e?t(e>>24):16711680&e?t(e>>16)+8:65280&e?t(e>>8)+16:t(e)+24}),o(Math,"cosh",function(e){return e=Number(e),(Y(B,e)+Y(B,-e))/2}),o(Math,"expm1",function(e){return e=Number(e),y(e,-0)?-0:X(e)<1e-5?e+.5*e*e:$(e)-1}),o(Math,"fround",function(e){return U(e)?NaN:1/e===+(1/0)||1/e===-(1/0)||e===+(1/0)||e===-(1/0)?e:new Float32Array([e])[0]}),o(Math,"hypot",function(){for(var e=[],t=0,r=!1,n=0;n<arguments.length;++n){var o=X(Number(arguments[n]));if(o===1/0)return o;o!==o&&(r=!0),o>t&&(t=o),e[n]=o}if(r)return NaN;if(0===t)return 0;var i=0;for(n=0;n<e.length;++n){var a=e[n]/t;i+=a*a}return t*Q(i)}),o(Math,"imul",function(e,t){var r=c(e),n=c(t),o=r>>>16&65535,i=65535&r,a=n>>>16&65535,u=65535&n;return i*u+(o*u+i*a<<16>>>0)|0},"imul"in Math&&0===Math.imul(1,2147483648)),o(Math,"log1p",function(e){return e=Number(e),e<-1?NaN:y(e,-0)?-0:X(e)>1e-4?V(1+e):(-.5*e+1)*e}),o(Math,"log10",function(e){return e=Number(e),V(e)*H}),o(Math,"log2",function(e){return e=Number(e),V(e)*W}),o(Math,"sign",function(e){return e=Number(e),e<0?-1:e>0?1:e}),o(Math,"sinh",function(e){return e=Number(e),y(e,-0)?e:(Y(B,e)-Y(B,-e))/2}),o(Math,"tanh",function(e){e=Number(e);var t=Y(B,2*e)-1,r=Y(B,2*e)+1;return y(e,-0)?e:t===r?1:t/r}),o(Math,"trunc",function(e){return e=Number(e),U(e)?NaN:e<0?G(e):z(e)});var he=function(){var e={},t=Symbol();return e[Symbol.match]=function(){return t},"".match(e)===t}();o(String,"fromCodePoint",function(){for(var e=arguments,t=e.length,r=[],n=0;n<t;){var o=e[n],i=Number(o);if(!y(i,s(i))||i<0||i>1114111)throw RangeError("Invalid code point "+i);i<65536?r.push(String.fromCharCode(i)):(i-=65536,r.push(String.fromCharCode((i>>10)+55296)),r.push(String.fromCharCode(i%1024+56320))),n+=1}return r.join("")}),o(String,"raw",function e(t){var r=[].slice.call(arguments,1),n=Object(t),o=n.raw,e=Object(o),i=e.length,a=f(i);if(a<=0)return"";for(var u=[],s=0;;){var c=e[s],l=String(c);if(u.push(l),s+1===a)return u.join("");c=r[s];var h=String(c);u.push(h),s+=1}}),o(String.prototype,"codePointAt",function(e){var r=t(this),n=String(r),o=s(e),i=n.length;if(o<0||o>=i)return I;var a=n.charCodeAt(o);if(a<55296||a>56319||o+1===i)return a;var u=n.charCodeAt(o+1);return u<56320||u>57343?a:1024*(a-55296)+(u-56320)+65536}),o(String.prototype,"endsWith",function(e){var r=arguments[1],n=t(this),o=String(n),i=String(e),a=o.length,u=r===I?a:s(r),c=J(K(u,0),a),l=i.length,f=c-l;return!(f<0)&&o.substring(f,f+l)===i}),o(String.prototype,"includes",function(e){var r=arguments[1],n=t(this),o=String(n),i=String(e),a=s(r),u=o.length,c=J(K(a,0),u);return o.indexOf(i,c)!==-1}),o(String.prototype,"match",function(e){var r=t(this),n=String(r);if(b(e,ue))var o=e;else o=new RegExp(e);return o[ue](n)},!he),o(String.prototype,"repeat",function(e){var r=t(this),n=String(r),o=s(e);if(o<0)throw RangeError();if(o===1/0)throw RangeError();var i=new Array(o+1).join(n);return i}),o(String.prototype,"replace",function(e,r){var n=t(this);return b(e,se)?e[se](n,r):te.call(n,e,r)},!he),o(String.prototype,"search",function(e){var r=t(this),n=String(r);if(b(e,ce))var o=e;else o=new RegExp(e);return o[ce](n)},!he),o(String.prototype,"split",function(e,r){var n=t(this);return b(e,le)?e[le](n,r):ne.call(n,e,r)},!he),o(String.prototype,"startsWith",function(e){var r=arguments[1],n=t(this),o=String(n),i=String(e),a=s(r),u=o.length,c=J(K(a,0),u),l=i.length;return!(l+c>u)&&o.substring(c,c+l)===i}),o(String.prototype,ae,function(){return A(this,"value")});var pe=Object.create(ie);D.prototype=pe,o(pe,"next",function(){var e=l(this),t=String(e["[[IteratedString]]"]),r=e["[[StringIteratorNextIndex]]"],n=t.length;if(r>=n)return i(e,"[[StringIteratorNextIndex]]",1/0),S(I,!0);var o=t.codePointAt(r);return i(e,"[[StringIteratorNextIndex]]",r+(o>65535?2:1)),S(String.fromCodePoint(o),!1)}),o(pe,fe,"String Iterator"),"flags"in RegExp.prototype||Object.defineProperty(RegExp.prototype,"flags",{get:function(){var e=String(this);return e.substring(e.lastIndexOf("/")+1)}}),o(RegExp.prototype,ue,function(e){var r=t(this);return ee.call(e,r)}),o(RegExp.prototype,se,function(e,r){var n=t(this);return te.call(e,n,r)}),o(RegExp.prototype,ce,function(e){var r=t(this);return re.call(e,r)}),o(RegExp.prototype,le,function(e,r){var n=t(this);return ne.call(e,n,r)}),o(Array,"from",function(e){var r=arguments[1],n=arguments[2],o=t(this);if(r===I)var i=!1;else{if(!h(r))throw TypeError();var a=n;i=!0}var u=m(e,ae);if(u!==I){if(p(o))var s=new o;else s=new Array(0);for(var c=E(e,u),y=0;;){var d=T(c);if(d===!1)return s.length=y,s;var v=_(d);if(i)var b=r.call(a,v);else b=v;s[y]=b,y+=1}}var g=l(e),w=g.length,S=f(w);for(s=p(o)?new o(S):new Array(S),y=0;y<S;){var O=g[y];b=i?r.call(a,O,y):O,s[y]=b,y+=1}return s.length=S,s}),o(Array,"of",function(){var e,r=arguments,n=r.length,o=c(n),i=t(this);p(i)?(e=new i(o),e=l(e)):e=new Array(o);for(var a=0;a<o;)e[a]=r[a],a+=1;return e.length=o,e}),o(Array.prototype,"copyWithin",function(e,t){var r=arguments[2],n=l(this),o=n.length,i=f(o);i=K(i,0);var a,u=s(e);a=u<0?K(i+u,0):J(u,i);var c,h=s(t);c=h<0?K(i+h,0):J(h,i);var p;p=r===I?i:s(r);var y;y=p<0?K(i+p,0):J(p,i);var d,v=J(y-c,i-a);for(c<a&&a<c+v?(d=-1,c=c+v-1,a=a+v-1):d=1;v>0;){var m=String(c),g=String(a),E=b(n,m);if(E){var w=n[m];n[g]=w}else delete n[g];c+=d,a+=d,v-=1}return n});var ye="entries"in Array.prototype&&"next"in[].entries();o(Array.prototype,"entries",function(){return M(this,"key+value")},!ye),o(Array.prototype,"fill",function(e){var t=arguments[1],r=arguments[2],n=l(this),o=n.length,i=f(o);i=K(i,0);var a,u=s(t);a=u<0?K(i+u,0):J(u,i);var c;c=r===I?i:s(r);var h;for(h=c<0?K(i+c,0):J(c,i);a<h;){var p=String(a);n[p]=e,a+=1}return n}),o(Array.prototype,"find",function(e){var t=l(this),r=t.length,n=s(r);if(!h(e))throw TypeError();for(var o=arguments.length>1?arguments[1]:I,i=0;i<n;){var a=String(i),u=b(t,a);if(u){var c=t[a],f=e.call(o,c,i,t);if(Boolean(f))return c}++i}return I}),o(Array.prototype,"findIndex",function(e){var t=l(this),r=t.length,n=f(r);if(!h(e))throw TypeError();for(var o=arguments.length>1?arguments[1]:I,i=0;i<n;){var a=String(i),u=b(t,a);if(u){var s=t[a],c=e.call(o,s,i,t);if(Boolean(c))return i}++i}return-1}),o(Array.prototype,"keys",function(){return M(this,"key")},!ye),o(Array.prototype,"values",function(){return M(this,"value")},!ye),o(Array.prototype,ae,Array.prototype.values);var de=Object.create(ie);N.prototype=de,o(de,"next",function(){var e=t(this);if("object"!==u(e))throw TypeError();var r,n,o=e["[[IteratedObject]]"],a=e["[[ArrayIteratorNextIndex]]"],s=e["[[ArrayIterationKind]]"],l=o.length,f=c(l);if(s.indexOf("sparse")!==-1)for(var h=!1;!h&&a<f;)r=String(a),h=b(o,r),h||(a+=1);if(a>=f)return i(e,"[[ArrayIteratorNextIndex]]",1/0),S(I,!0);if(r=a,i(e,"[[ArrayIteratorNextIndex]]",a+1),s.indexOf("value")!==-1&&(n=o[r]),s.indexOf("key+value")!==-1)return S([r,n],!1);if(s.indexOf("key")!==-1)return S(r,!1);if("value"===s)return S(n,!1);throw Error("Internal error")}),o(de,fe,"Array Iterator"),["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(r){if(r in e){var n=e[r];o(n,"from",function(e){var r=arguments[1],n=arguments[2],o=t(this);if(!p(o))throw TypeError();if(r===I)var i=!1;else{if(h(r))throw TypeError();var a=n;i=!0}var u=m(e,ae);if(u!==I){for(var s=E(e,u),c=[],y=!0;y!==!1;)if(y=T(s),y!==!1){var d=_(y);c.push(d)}for(var v=c.length,b=new o(v),g=0;g<v;){var w=c.shift();if(i)var S=r.call(a,w);else S=w;b[g]=S,++g}return b}var O=l(e),j=O.length;for(v=f(j),b=new o(v),g=0;g<v;)w=O[g],S=i?r.call(a,w,g):w,b[g]=S,++g;return b}),o(n,"of",function(){for(var e=arguments,r=e.length,n=t(this),o=new n(r),i=0;i<r;)o[i]=e[i],++i;return o}),o(n.prototype,"copyWithin",Array.prototype.copyWithin),o(n.prototype,"entries",Array.prototype.entries),o(n.prototype,"every",Array.prototype.every),o(n.prototype,"fill",function(e){var t=arguments[1],r=arguments[2],n=l(this),o=n.length,i=f(o);i=K(i,0);var a,u=s(t);a=u<0?K(i+u,0):J(u,i);var c;c=r===I?i:s(r);var h;for(h=c<0?K(i+c,0):J(c,i);a<h;){var p=String(a);n[p]=e,a+=1}return n}),o(n.prototype,"filter",function(e){var t=arguments[1],r=l(this),n=r.length,o=f(n);if(!h(e))throw TypeError();for(var i=t,a=r.constructor,u=[],s=0,c=0;s<o;){var p=r[s],y=e.call(i,p,s,r);y&&(u.push(p),++c),++s}for(var d=new a(c),v=0,m=0;m<u.length;++m){var b=u[m];d[v]=b,++v}return d}),o(n.prototype,"find",Array.prototype.find),o(n.prototype,"findIndex",Array.prototype.findIndex),o(n.prototype,"forEach",Array.prototype.forEach),o(n.prototype,"indexOf",Array.prototype.indexOf),o(n.prototype,"join",Array.prototype.join),o(n.prototype,"keys",Array.prototype.keys),o(n.prototype,"lastIndexOf",Array.prototype.lastIndexOf),o(n.prototype,"map",function(e){var t=arguments[1],r=l(this),n=r.length,o=f(n);if(!h(e))throw TypeError();var i=t,a=I,u=r.constructor;p(u)&&(a=new u(o)),a===I&&(a=new Array(o));for(var s=0;s<o;){var c=b(r,s);if(c){var y=r[s],d=e.call(i,y,s,r);a[s]=d}++s}return a}),o(n.prototype,"reduce",Array.prototype.reduce),o(n.prototype,"reduceRight",Array.prototype.reduceRight),o(n.prototype,"reverse",Array.prototype.reverse),o(n.prototype,"slice",function(e,t){var r=l(this),n=r.length,o=f(n),i=s(e),a=i<0?K(o+i,0):J(i,o),u=t===I?o:s(t),c=u<0?K(o+u,0):J(u,o),h=c-a,y=r.constructor;if(!p(y))throw TypeError();for(var d=new y(h),v=0;a<c;){var m=r[a];d[v]=m,++a,++v}return d}),o(n.prototype,"some",Array.prototype.some),o(n.prototype,"sort",function(){function e(e,r){return e!==e&&r!==r?0:e!==e?1:r!==r?-1:t!==I?t(e,r):e<r?-1:e>r?1:0}var t=arguments[0];return Array.prototype.sort.call(this,e)}),o(n.prototype,"values",Array.prototype.values),o(n.prototype,ae,n.prototype.values),o(n.prototype,fe,r)}}),function(){function r(){var e=t(this),r=arguments[0];if("object"!==u(e))throw TypeError();if("[[MapData]]"in e)throw TypeError();if(r!==I){var n=e.set;if(!h(n))throw TypeError();var o=E(l(r))}if(i(e,"[[MapData]]",{keys:[],values:[]}),o===I)return e;for(;;){var a=T(o);if(a===!1)return e;var s=_(a);if("object"!==u(s))throw TypeError();var c=s[0],f=s[1];n.call(e,c,f)}return e}function n(e,t){var r;if(t===t)return e.keys.indexOf(t);for(r=0;r<e.keys.length;r+=1)if(d(e.keys[r],t))return r;return-1}function a(){}function s(e,t){if("object"!==u(e))throw TypeError();if(!("[[MapData]]"in e))throw TypeError();if(e["[[MapData]]"]===I)throw TypeError();var r=new a;return i(r,"[[Map]]",e),i(r,"[[MapNextIndex]]",0),i(r,"[[MapIterationKind]]",t),r}"Map"in e&&!L&&!function(){try{return new e.Map([]),!1}catch(e){return!0}}()&&!function(){try{return!(new e.Map).entries().next}catch(e){return!0}}()&&1===new e.Map([["a",1]]).size||(e.Map=r);var c={};r.prototype=c,o(r.prototype,"clear",function(){var e=t(this);if("object"!==u(e))throw TypeError();if(!("[[MapData]]"in e))throw TypeError();if(e["[[MapData]]"]===I)throw TypeError();var r=e["[[MapData]]"];return r.keys.length=0,r.values.length=0,I}),o(r.prototype,"delete",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[MapData]]"in r))throw TypeError();if(r["[[MapData]]"]===I)throw TypeError();var o=r["[[MapData]]"],i=n(o,e);return!(i<0)&&(o.keys[i]=oe,o.values[i]=oe,!0)}),o(r.prototype,"entries",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"key+value")}),o(r.prototype,"forEach",function(e){var r=arguments[1],n=t(this);if("object"!==u(n))throw TypeError();if(!("[[MapData]]"in n))throw TypeError();if(n["[[MapData]]"]===I)throw TypeError();var o=n["[[MapData]]"];if(!h(e))throw TypeError("First argument to forEach is not callable.");for(var i=0;i<o.keys.length;++i)o.keys[i]!==oe&&e.call(r,o.values[i],o.keys[i],n);return I}),o(r.prototype,"get",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[MapData]]"in r))throw TypeError();if(r["[[MapData]]"]===I)throw TypeError();var o=r["[[MapData]]"],i=n(o,e);return i>=0?o.values[i]:I}),o(r.prototype,"has",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[MapData]]"in r))throw TypeError();if(r["[[MapData]]"]===I)throw TypeError();var o=r["[[MapData]]"];return n(o,e)>=0}),o(r.prototype,"keys",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"key")}),o(r.prototype,"set",function(e,r){var o=t(this);if("object"!==u(o))throw TypeError();if(!("[[MapData]]"in o))throw TypeError();if(o["[[MapData]]"]===I)throw TypeError();var i=o["[[MapData]]"],a=n(i,e);return a<0&&(a=i.keys.length),y(e,-0)&&(e=0),i.keys[a]=e,i.values[a]=r,o}),Object.defineProperty(r.prototype,"size",{get:function(){var e=t(this);if("object"!==u(e))throw TypeError();if(!("[[MapData]]"in e))throw TypeError();if(e["[[MapData]]"]===I)throw TypeError();for(var r=e["[[MapData]]"],n=0,o=0;o<r.keys.length;++o)r.keys[o]!==oe&&(n+=1);return n}}),o(r.prototype,"values",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"value")}),o(r.prototype,ae,function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"key+value")}),o(e.Map.prototype,fe,"Map");var f=Object.create(ie);a.prototype=f,o(f,"next",function(){var e=t(this);if("object"!==u(e))throw TypeError();for(var r=e["[[Map]]"],n=e["[[MapNextIndex]]"],o=e["[[MapIterationKind]]"],a=r["[[MapData]]"];n<a.keys.length;){var s={key:a.keys[n],value:a.values[n]};if(n=n+=1,i(e,"[[MapNextIndex]]",n),s.key!==oe)return"key"===o?S(s.key,!1):"value"===o?S(s.value,!1):S([s.key,s.value],!1)}return S(I,!0)}),o(f,fe,"Map Iterator")}(),function(){function r(){var e=t(this),r=arguments[0];if("object"!==u(e))throw TypeError();if("[[SetData]]"in e)throw TypeError();if(r!==I){var n=e.add;if(!h(n))throw TypeError();var o=E(l(r))}if(i(e,"[[SetData]]",[]),o===I)return e;for(;;){var a=T(o);if(a===!1)return e;var s=_(a);n.call(e,s)}return e}function n(e,t){var r;if(t===t)return e.indexOf(t);for(r=0;r<e.length;r+=1)if(d(e[r],t))return r;return-1}function a(){}function s(e,t){if("object"!==u(e))throw TypeError();if(!("[[SetData]]"in e))throw TypeError();if(e["[[SetData]]"]===I)throw TypeError();var r=new a;return i(r,"[[IteratedSet]]",e),i(r,"[[SetNextIndex]]",0),i(r,"[[SetIterationKind]]",t),r}"Set"in e&&!L&&!function(){try{return!(new e.Set).entries().next}catch(e){return!0}}()&&1===new e.Set([1]).size||(e.Set=r);var c={};r.prototype=c,o(r.prototype,"add",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[SetData]]"in r))throw TypeError();if(r["[[SetData]]"]===I)throw TypeError();y(e,-0)&&(e=0);var o=r["[[SetData]]"],i=n(o,e);return i<0&&(i=r["[[SetData]]"].length),r["[[SetData]]"][i]=e,r}),o(r.prototype,"clear",function(){var e=t(this);if("object"!==u(e))throw TypeError();if(!("[[SetData]]"in e))throw TypeError();if(e["[[SetData]]"]===I)throw TypeError();var r=e["[[SetData]]"];return r.length=0,I}),o(r.prototype,"delete",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[SetData]]"in r))throw TypeError();if(r["[[SetData]]"]===I)throw TypeError();var o=r["[[SetData]]"],i=n(o,e);return!(i<0)&&(o[i]=oe,!0)}),o(r.prototype,"entries",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"key+value")}),o(r.prototype,"forEach",function(e){var r=arguments[1],n=t(this);if("object"!==u(n))throw TypeError();if(!("[[SetData]]"in n))throw TypeError();if(n["[[SetData]]"]===I)throw TypeError();var o=n["[[SetData]]"];if(!h(e))throw TypeError("First argument to forEach is not callable.");for(var i=0;i<o.length;++i)o[i]!==oe&&e.call(r,o[i],o[i],n)}),o(r.prototype,"has",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(!("[[SetData]]"in r))throw TypeError();if(r["[[SetData]]"]===I)throw TypeError();var o=r["[[SetData]]"];return n(o,e)!==-1}),Object.defineProperty(r.prototype,"size",{get:function(){var e=t(this);if("object"!==u(e))throw TypeError();if(!("[[SetData]]"in e))throw TypeError();if(e["[[SetData]]"]===I)throw TypeError();for(var r=e["[[SetData]]"],n=0,o=0;o<r.length;++o)r[o]!==oe&&(n+=1);return n}}),o(r.prototype,"values",function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e,"value")}),r.prototype.keys=r.prototype.values,o(r.prototype,ae,function(){var e=t(this);if("object"!==u(e))throw TypeError();return s(e)}),o(e.Set.prototype,fe,"Set");var f=Object.create(ie);a.prototype=f,o(f,"next",function(){var e=t(this);if("object"!==u(e))throw TypeError();for(var r=e["[[IteratedSet]]"],n=e["[[SetNextIndex]]"],o=e["[[SetIterationKind]]"],a=r["[[SetData]]"];n<a.length;){var s=a[n];if(n=n+=1,i(e,"[[SetNextIndex]]",n),s!==oe)return"key+value"===o?S([s,s],!1):S(s,!1)}return S(I,!0)}),o(f,fe,"Set Iterator")}(),function(){function r(){var e=t(this),r=arguments[0];if("object"!==u(e))throw TypeError();if("[[WeakMapData]]"in e)throw TypeError();if(r!==I){var n=e.set;if(!h(n))throw TypeError();var o=E(l(r))}if(i(e,"[[WeakMapData]]",new a),o===I)return e;for(;;){var s=T(o);if(s===!1)return e;var c=_(s);if("object"!==u(c))throw TypeError();var f=c[0],p=c[1];n.call(e,f,p)}return e}"WeakMap"in e&&!L||(e.WeakMap=r);var n={};r.prototype=n,o(r.prototype,"delete",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakMapData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakMapData]]"].remove(e)}),o(r.prototype,"get",function(e,r){var n=t(this);if("object"!==u(n))throw TypeError();if(n["[[WeakMapData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return n["[[WeakMapData]]"].get(e,r)}),o(r.prototype,"has",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakMapData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakMapData]]"].has(e)}),o(r.prototype,"set",function(e,r){var n=t(this);if("object"!==u(n))throw TypeError();if(n["[[WeakMapData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return n["[[WeakMapData]]"].set(e,r),n}),o(e.WeakMap.prototype,fe,"WeakMap"),function(){var t=new e.WeakMap,r=e.WeakMap.prototype.set;o(e.WeakMap.prototype,"set",function(){return r.apply(this,arguments),this},t.set({},0)!==t)}()}(),function(){function r(){var e=t(this),r=arguments[0];if("object"!==u(e))throw TypeError();if("[[WeakSetData]]"in e)throw TypeError();
if(r!==I){var n=e.add;if(!h(n))throw TypeError();var o=E(l(r))}if(i(e,"[[WeakSetData]]",new a),o===I)return e;for(;;){var s=T(o);if(s===!1)return e;var c=_(s);n.call(e,c)}return e}"WeakSet"in e&&!L||(e.WeakSet=r);var n={};r.prototype=n,o(r.prototype,"add",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakSetData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakSetData]]"].set(e,!0),r}),o(r.prototype,"delete",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakSetData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakSetData]]"].remove(e)}),o(r.prototype,"has",function(e){var r=t(this);if("object"!==u(r))throw TypeError();if(r["[[WeakSetData]]"]===I)throw TypeError();if("object"!==u(e))throw TypeError("Expected object");return r["[[WeakSetData]]"].has(e)}),o(e.WeakSet.prototype,fe,"WeakSet"),function(){var t=new e.WeakSet,r=e.WeakSet.prototype.add;o(e.WeakSet.prototype,"add",function(){return r.apply(this,arguments),this},t.add({})!==t)}()}(),function(){"ArrayBuffer"in e&&(o(ArrayBuffer,"isView",function(e){return"object"===u(e)&&("buffer"in e&&e.buffer instanceof ArrayBuffer)}),o(ArrayBuffer.prototype,fe,"ArrayBuffer"))}(),function(){"DataView"in e&&o(DataView.prototype,fe,"DataView")}(),o(JSON,fe,"JSON"),o(ie,ae,function(){return this}),function(){function r(e){var t={"[[value]]":!1},r=a();i(r,"[[Promise]]",e),i(r,"[[AlreadyResolved]]",t);var o=n();return i(o,"[[Promise]]",e),i(o,"[[AlreadyResolved]]",t),{"[[Resolve]]":r,"[[Reject]]":o}}function n(){var e=function(t){var r=e["[[Promise]]"],n=e["[[AlreadyResolved]]"];return n["[[value]]"]?I:(i(n,"[[value]]",!0),d(r,t))};return e}function a(){var e=function(t){var r=e["[[Promise]]"],n=e["[[AlreadyResolved]]"];if(n["[[value]]"])return I;if(i(n,"[[value]]",!0),y(t,r)){var o=TypeError();return d(r,o)}if("object"!==u(t))return s(r,t);try{var a=t.then}catch(e){return d(r,e)}return h(a)?(O("PromiseJobs",b,[r,t,a]),I):s(r,t)};return e}function s(e,t){var r=e["[[PromiseFulfillReactions]]"];return i(e,"[[PromiseResult]]",t),i(e,"[[PromiseFulfillReactions]]",I),i(e,"[[PromiseRejectReactions]]",I),i(e,"[[PromiseState]]","fulfilled"),v(r,t)}function c(e){return l(I,e)}function l(e,t){var r={};i(r,"[[Promise]]",e),i(r,"[[Resolve]]",I),i(r,"[[Reject]]",I);var n=f();i(n,"[[Capability]]",r);var o=e=new t(n);if(i(r,"[[Promise]]",e),!h(r["[[Resolve]]"]))throw TypeError();if(!h(r["[[Reject]]"]))throw TypeError();if("object"===u(o)&&!y(e,o))throw TypeError();return r}function f(){var e=function(t,r){var n=e["[[Capability]]"];if(n["[[Resolve]]"]!==I)throw TypeError();if(n["[[Reject]]"]!==I)throw TypeError();return i(n,"[[Resolve]]",t),i(n,"[[Reject]]",r),I};return e}function p(e){return"object"===u(e)&&("[[PromiseState]]"in e&&e["[[PromiseState]]"]!==I)}function d(e,t){var r=e["[[PromiseRejectReactions]]"];return i(e,"[[PromiseResult]]",t),i(e,"[[PromiseFulfillReactions]]",I),i(e,"[[PromiseRejectReactions]]",I),i(e,"[[PromiseState]]","rejected"),v(r,t)}function v(e,t){for(var r=0,n=e.length;r<n;++r)O("PromiseJobs",m,[e[r],t]);return I}function m(e,t){var r,n,o=e["[[Capabilities]]"],i=e["[[Handler]]"];try{if("Identity"===i)r=t;else{if("Thrower"===i)throw t;r=i.call(I,t)}}catch(e){return n=o["[[Reject]]"].call(I,e),void j(n)}n=o["[[Resolve]]"].call(I,r),j(n)}function b(e,t,n){var o=r(e);try{var i=n.call(t,o["[[Resolve]]"],o["[[Reject]]"])}catch(e){var a=o["[[Reject]]"].call(I,e);return void j(a)}j(i)}function g(e){var t={configurable:!1,enumerable:!1,writable:!0,value:I};Object.defineProperty(this,"[[PromiseState]]",t),Object.defineProperty(this,"[[PromiseConstructor]]",t),Object.defineProperty(this,"[[PromiseResult]]",t),Object.defineProperty(this,"[[PromiseFulfillReactions]]",t),Object.defineProperty(this,"[[PromiseRejectReactions]]",t);var r=this;if("object"!==u(r))throw new TypeError;if(!("[[PromiseState]]"in r))throw TypeError();if(r["[[PromiseState]]"]!==I)throw TypeError();if(!h(e))throw TypeError();return i(r,"[[PromiseConstructor]]",g),w(r,e)}function w(e,t){i(e,"[[PromiseState]]","pending"),i(e,"[[PromiseFulfillReactions]]",[]),i(e,"[[PromiseRejectReactions]]",[]);var n=r(e);try{t.call(I,n["[[Resolve]]"],n["[[Reject]]"])}catch(e){n["[[Reject]]"].call(I,e)}return e}function S(){var e=function(t){var r=e["[[AlreadyCalled]]"];if(r.value)return I;r.value=!0;var n=e["[[Index]]"],o=e["[[Values]]"],i=e["[[Capabilities]]"],a=e["[[RemainingElements]]"];try{o[n]=t}catch(e){return i["[[Reject]]"].call(I,e),i["[[Promise]]"]}return a.value-=1,0===a.value?i["[[Resolve]]"].call(I,o):I};return e}o(g,"all",function(e){var r=t(this),n=c(r);try{var o=E(e)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}for(var a=[],u={value:1},s=0;;){try{var l=T(o)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}if(!l){if(u.value-=1,0===u.value){n["[[Resolve]]"].apply(I,a)}return n["[[Promise]]"]}try{var f=_(l)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}try{var h=r.resolve(f)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}var p=S();i(p,"[[AlreadyCalled]]",{value:!1}),i(p,"[[Index]]",s),i(p,"[[Values]]",a),i(p,"[[Capabilities]]",n),i(p,"[[RemainingElements]]",u),u.value+=1;try{h.then(p,n["[[Reject]]"])}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}s+=1}}),g.prototype={},o(g,"race",function(e){var r=t(this),n=c(r);try{var o=E(e)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}for(;;){try{var i=T(o)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}if(!i)return n["[[Promise]]"];try{var a=_(i)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}try{var u=r.resolve(a)}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}try{u.then(n["[[Resolve]]"],n["[[Reject]]"])}catch(e){return n["[[Reject]]"].call(I,e),n["[[Promise]]"]}}}),o(g,"reject",function(e){var r=t(this),n=c(r);n["[[Reject]]"].call(I,e);return n["[[Promise]]"]}),o(g,"resolve",function(e){var r=t(this);if(p(e)){var n=e["[[PromiseConstructor]]"];if(y(n,r))return e}var o=c(r);o["[[Resolve]]"].call(I,e);return o["[[Promise]]"]}),o(g.prototype,"catch",function(e){var t=this;return t.then(I,e)}),g.prototype.constructor=g,o(g.prototype,"then",function(e,t){var r=this;if(!p(r))throw TypeError();h(e)||(e="Identity"),h(t)||(t="Thrower");var n=r.constructor,o=c(n),i={"[[Capabilities]]":o,"[[Handler]]":e},a={"[[Capabilities]]":o,"[[Handler]]":t};if("pending"===r["[[PromiseState]]"])r["[[PromiseFulfillReactions]]"].push(i),r["[[PromiseRejectReactions]]"].push(a);else if("fulfilled"===r["[[PromiseState]]"]){var u=r["[[PromiseResult]]"];O("PromiseJobs",m,[i,u])}else if("rejected"===r["[[PromiseState]]"]){var s=r["[[PromiseResult]]"];O("PromiseJobs",m,[a,s])}return o["[[Promise]]"]}),"Promise"in e&&!L||(e.Promise=g),"cast"in e.Promise&&(e.Promise.resolve=e.Promise.cast)}(),o(Promise.prototype,fe,"Promise"),function(){"Reflect"in e&&!L||(e.Reflect={}),o(Reflect,"apply",function(e,t,r){if(!h(e))throw TypeError();return Function.prototype.apply.call(e,t,r)}),o(Reflect,"construct",function(e,t){return __cons(e,t)}),o(Reflect,"defineProperty",function(e,t,r){try{return Object.defineProperty(e,t,r),!0}catch(e){return!1}}),o(Reflect,"deleteProperty",function(e,t){try{return delete e[t],!g(e,t)}catch(e){return!1}}),o(Reflect,"enumerate",function(e){e=l(e);var t=R(e);return t}),o(Reflect,"get",function(e,t,r){e=l(e),t=String(t),r=r===I?e:l(r);var o=n(e,t);return o&&"get"in o?Function.prototype.call.call(o.get,r):e[t]}),o(Reflect,"getOwnPropertyDescriptor",Object.getOwnPropertyDescriptor),o(Reflect,"getPrototypeOf",Object.getPrototypeOf),o(Reflect,"has",function(e,t){return String(t)in l(e)}),o(Reflect,"isExtensible",Object.isExtensible),o(Reflect,"ownKeys",function(e){var t=l(e);return Object.getOwnPropertyNames(t)}),o(Reflect,"preventExtensions",function(e){try{return Object.preventExtensions(e),!0}catch(e){return!1}}),o(Reflect,"set",function(e,t,r,o){e=l(e),t=String(t),o=o===I?e:l(o);var i=n(e,t);try{return i&&"set"in i?Function.prototype.call.call(i.set,o,r):e[t]=r,!0}catch(e){return!1}}),o(Reflect,"setPrototypeOf",function(e,t){try{return e.__proto__=t,Reflect.getPrototypeOf(e)===t}catch(e){return!1}})}()}(self),function(e){"use strict";function t(e,t){if(!e)throw Error("Internal assertion failure"+(t?": "+t:""))}function r(r,n,o,i){n in r&&!i||("function"==typeof o?(t(e.Symbol&&n instanceof e.Symbol||!("name"in o)||o.name===n||o.name===n+"_",'Expected function name "'+n+'", was "'+o.name+'"'),Object.defineProperty(r,n,{value:o,configurable:!0,enumerable:!1,writable:!0})):Object.defineProperty(r,n,{value:o,configurable:!1,enumerable:!1,writable:!1}))}function n(e){return e=Number(e),s(e)?0:0===e||e===1/0||e===-(1/0)?e:(e<0?-1:1)*l(c(e))}function o(e){if(null===e||e===u)throw TypeError();return Object(e)}function i(e){var t=n(e);return t<=0?0:f(t,9007199254740991)}function a(e,t){if(typeof e!=typeof t)return!1;switch(typeof e){case"undefined":return!0;case"number":return e!==e&&t!==t||e===t;case"boolean":case"string":case"object":default:return e===t}}var u=void 0,s=e.isNaN,c=Math.abs,l=Math.floor,f=(Math.max,Math.min);r(Array.prototype,"includes",function(e){var t=arguments[1],r=o(this),u=i(r.length);if(0===u)return!1;var s=n(t);if(s>=0)var c=s;else c=u+s,c<0&&(c=0);for(;c<u;){r[c];if(a(r[c],e))return!0;c+=1}return!1})}(this),function(e){"window"in e&&"document"in e&&(document.head=document.head||document.getElementsByTagName("head")[0],["abbr","article","aside","audio","bdi","canvas","data","datalist","details","dialog","figcaption","figure","footer","header","hgroup","main","mark","meter","nav","output","picture","progress","section","summary","template","time","video"].forEach(function(e){document.createElement(e)}),!("dataset"in document.createElement("span"))&&"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,"dataset",{get:function(){for(var e=Object.create(null),t=0;t<this.attributes.length;++t){var r=this.attributes[t];r.specified&&"data-"===r.name.substring(0,5)&&!function(t,r){var n=r.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});e[n]=t.getAttribute("data-"+r),Object.defineProperty(e,n,{get:function(){return t.getAttribute("data-"+r)},set:function(e){t.setAttribute("data-"+r,e)}})}(this,r.name.substring(5))}return e}}),function(){function t(e){e=String(e);var t,r=0,o=[],i=0,a=0;if(e=e.replace(/\s/g,""),e.length%4===0&&(e=e.replace(/=+$/,"")),e.length%4===1)throw Error("InvalidCharacterError");if(/[^+\/0-9A-Za-z]/.test(e))throw Error("InvalidCharacterError");for(;r<e.length;)t=n.indexOf(e.charAt(r)),i=i<<6|t,a+=6,24===a&&(o.push(String.fromCharCode(i>>16&255)),o.push(String.fromCharCode(i>>8&255)),o.push(String.fromCharCode(255&i)),a=0,i=0),r+=1;return 12===a?(i>>=4,o.push(String.fromCharCode(255&i))):18===a&&(i>>=2,o.push(String.fromCharCode(i>>8&255)),o.push(String.fromCharCode(255&i))),o.join("")}function r(e){e=String(e);var t,r,o,i,a,u,s,c=0,l=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;c<e.length;)t=e.charCodeAt(c++),r=e.charCodeAt(c++),o=e.charCodeAt(c++),i=t>>2,a=(3&t)<<4|r>>4,u=(15&r)<<2|o>>6,s=63&o,c===e.length+2?(u=64,s=64):c===e.length+1&&(s=64),l.push(n.charAt(i),n.charAt(a),n.charAt(u),n.charAt(s));return l.join("")}if(!("atob"in e&&"btoa"in e)){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=t,e.btoa=r}}(),function(){function t(e){return e.offsetWidth>0&&e.offsetHeight>0}function r(){var e=a;a=Object.create(null),s=-1,Object.keys(e).forEach(function(r){var n=e[r];n.element&&!t(n.element)||n.callback(Date.now())})}function n(t,n){var o=++u;return a[o]={callback:t,element:n},s===-1&&(s=e.setTimeout(r,1e3/i)),o}function o(t){delete a[t],0===Object.keys(a).length&&(e.clearTimeout(s),s=-1)}if(!("requestAnimationFrame"in e)){var i=60,a=Object.create(null),u=0,s=-1;e.requestAnimationFrame=n,e.cancelAnimationFrame=o}}())}(self),function(e){function t(e,t){Object.keys(t).forEach(function(r){r in e||r in e.prototype||Object.defineProperty(e.prototype,r,Object.getOwnPropertyDescriptor(t,r))})}function r(e){var t=null;return e=e.map(function(e){return e instanceof Node?e:document.createTextNode(e)}),1===e.length?t=e[0]:(t=document.createDocumentFragment(),e.forEach(function(e){t.appendChild(e)})),t}if("window"in e&&"document"in e){document.querySelectorAll||(document.querySelectorAll=function(e){var t,r=document.createElement("style"),n=[];for(document.documentElement.firstChild.appendChild(r),document._qsa=[],r.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),r.parentNode.removeChild(r);document._qsa.length;)t=document._qsa.shift(),t.style.removeAttribute("x-qsa"),n.push(t);return document._qsa=null,n}),document.querySelector||(document.querySelector=function(e){var t=document.querySelectorAll(e);return t.length?t[0]:null}),document.getElementsByClassName||(document.getElementsByClassName=function(e){return e=String(e).replace(/^|\s+/g,"."),document.querySelectorAll(e)}),e.Node=e.Node||function(){throw TypeError("Illegal constructor")},Node.ELEMENT_NODE=1,Node.ATTRIBUTE_NODE=2,Node.TEXT_NODE=3,Node.CDATA_SECTION_NODE=4,Node.ENTITY_REFERENCE_NODE=5,Node.ENTITY_NODE=6,Node.PROCESSING_INSTRUCTION_NODE=7,Node.COMMENT_NODE=8,Node.DOCUMENT_NODE=9,Node.DOCUMENT_TYPE_NODE=10,Node.DOCUMENT_FRAGMENT_NODE=11,Node.NOTATION_NODE=12,e.DOMException=e.DOMException||function(){throw TypeError("Illegal constructor")},DOMException.INDEX_SIZE_ERR=1,DOMException.DOMSTRING_SIZE_ERR=2,DOMException.HIERARCHY_REQUEST_ERR=3,DOMException.WRONG_DOCUMENT_ERR=4,DOMException.INVALID_CHARACTER_ERR=5,DOMException.NO_DATA_ALLOWED_ERR=6,DOMException.NO_MODIFICATION_ALLOWED_ERR=7,DOMException.NOT_FOUND_ERR=8,DOMException.NOT_SUPPORTED_ERR=9,DOMException.INUSE_ATTRIBUTE_ERR=10,DOMException.INVALID_STATE_ERR=11,DOMException.SYNTAX_ERR=12,DOMException.INVALID_MODIFICATION_ERR=13,DOMException.NAMESPACE_ERR=14,DOMException.INVALID_ACCESS_ERR=15,function(){function t(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this,o=function(e){e._timeStamp=Date.now(),e._currentTarget=n,t.call(this,e),e._currentTarget=null};this["_"+e+t]=o,this.attachEvent("on"+e,o)}}function r(e,t,r){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var n=this["_"+e+t];n&&(this.detachEvent("on"+e,n),this["_"+e+t]=null)}}"Element"in e&&!Element.prototype.addEventListener&&Object.defineProperty&&(Event.CAPTURING_PHASE=1,Event.AT_TARGET=2,Event.BUBBLING_PHASE=3,Object.defineProperties(Event.prototype,{CAPTURING_PHASE:{get:function(){return 1}},AT_TARGET:{get:function(){return 2}},BUBBLING_PHASE:{get:function(){return 3}},target:{get:function(){return this.srcElement}},currentTarget:{get:function(){return this._currentTarget}},eventPhase:{get:function(){return this.srcElement===this.currentTarget?Event.AT_TARGET:Event.BUBBLING_PHASE}},bubbles:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mousemove":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"resize":case"scroll":case"select":case"change":case"submit":case"reset":return!0}return!1}},cancelable:{get:function(){switch(this.type){case"click":case"dblclick":case"mousedown":case"mouseup":case"mouseover":case"mouseout":case"mousewheel":case"keydown":case"keypress":case"keyup":case"submit":return!0}return!1}},timeStamp:{get:function(){return this._timeStamp}},stopPropagation:{value:function(){this.cancelBubble=!0}},preventDefault:{value:function(){this.returnValue=!1}},defaultPrevented:{get:function(){return this.returnValue===!1}}}),[Window,HTMLDocument,Element].forEach(function(e){e.prototype.addEventListener=t,e.prototype.removeEventListener=r}))}(),window.addEvent=function(e,t,r){e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent&&(e["e"+t+r]=r,e[t+r]=function(){var n=window.event;n.currentTarget=e,n.preventDefault=function(){n.returnValue=!1},n.stopPropagation=function(){n.cancelBubble=!0},n.target=n.srcElement,n.timeStamp=Date.now(),e["e"+t+r].call(this,n)},e.attachEvent("on"+t,e[t+r]))},window.removeEvent=function(e,t,r){e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent&&(e.detachEvent("on"+t,e[t+r]),e[t+r]=null,e["e"+t+r]=null)},function(){function t(e,t){function r(e){return e.length?e.split(/\s+/g):[]}function n(e,t){var n=r(t),o=n.indexOf(e);return o!==-1&&n.splice(o,1),n.join(" ")}if(Object.defineProperties(this,{length:{get:function(){return r(e[t]).length}},item:{value:function(n){var o=r(e[t]);return 0<=n&&n<o.length?o[n]:null}},contains:{value:function(n){if(n=String(n),0===n.length)throw SyntaxError();if(/\s/.test(n))throw Error("InvalidCharacterError");var o=r(e[t]);return o.indexOf(n)!==-1}},add:{value:function(){var n=Array.prototype.slice.call(arguments).map(String);if(n.some(function(e){return 0===e.length}))throw SyntaxError();if(n.some(function(e){return/\s/.test(e)}))throw Error("InvalidCharacterError");try{var o=e[t],i=r(o);if(n=n.filter(function(e){return i.indexOf(e)===-1}),0===n.length)return;0===o.length||/\s$/.test(o)||(o+=" "),o+=n.join(" "),e[t]=o}finally{var a=r(e[t]).length;this.length!==a&&(this.length=a)}}},remove:{value:function(){var o=Array.prototype.slice.call(arguments).map(String);if(o.some(function(e){return 0===e.length}))throw SyntaxError();if(o.some(function(e){return/\s/.test(e)}))throw Error("InvalidCharacterError");try{var i=e[t];o.forEach(function(e){i=n(e,i)}),e[t]=i}finally{var a=r(e[t]).length;this.length!==a&&(this.length=a)}}},toggle:{value:function(o){var i=arguments[1];try{if(o=String(o),0===o.length)throw SyntaxError();if(/\s/.test(o))throw Error("InvalidCharacterError");var a=r(e[t]),u=a.indexOf(o);if(u!==-1&&(!i||void 0===i))return e[t]=n(o,e[t]),!1;if(u!==-1&&i)return!0;var s=e[t];return 0===s.length||/\s$/.test(s)||(s+=" "),s+=o,e[t]=s,!0}finally{var c=r(e[t]).length;this.length!==c&&(this.length=c)}}},toString:{value:function(){return e[t]}}}),"length"in this)for(var o=0;o<100;++o)Object.defineProperty(this,String(o),{get:function(e){return function(){return this.item(e)}}(o)});else this.length=r(e[t]).length}function r(t,r){"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,t,{get:r})}"classList"in document.createElement("span")?window.getClassList=function(e){return e.classList}:(window.getClassList=function(e){return new t(e,"className")},r("classList",function(){return new t(this,"className")})),"relList"in document.createElement("link")?window.getRelList=function(e){return e.relList}:(window.getRelList=function(e){return new t(e,"rel")},r("relList",function(){return new t(this,"rel")})),function(){if("DOMTokenList"in e){var t=document.createElement("span");"classList"in t&&(t.classList.toggle("x",!1),t.classList.contains("x")&&(e.DOMTokenList.prototype.toggle=function(e){var t=arguments[1];if(void 0===t){var r=!this.contains(e);return this[r?"add":"remove"](e),r}return t=!!t,this[t?"add":"remove"](e),t}))}}(),"previousElementSibling"in document.documentElement||r("previousElementSibling",function(){for(var e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}),"nextElementSibling"in document.documentElement||r("nextElementSibling",function(){for(var e=this.nextSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.nextSibling;return e})}(),"Element"in e&&!Element.prototype.matches&&(Element.prototype.msMatchesSelector?Element.prototype.matches=Element.prototype.msMatchesSelector:Element.prototype.oMatchesSelector?Element.prototype.matches=Element.prototype.oMatchesSelector:Element.prototype.mozMatchesSelector?Element.prototype.matches=Element.prototype.mozMatchesSelector:Element.prototype.webkitMatchesSelector?Element.prototype.matches=Element.prototype.webkitMatchesSelector:document.querySelectorAll&&(Element.prototype.matches=function e(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),r=e.length;--r>=0&&e.item(r)!==this;);return r>-1}));var n={prepend:function(){var e=[].slice.call(arguments);e=r(e),this.insertBefore(e,this.firstChild)},append:function(){var e=[].slice.call(arguments);e=r(e),this.appendChild(e)}};t(Document,n),t(DocumentFragment,n),t(Element,n);var o={before:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.previousSibling;e.indexOf(n)!==-1;)n=n.previousSibling;var o=r(e);t.insertBefore(o,n?n.nextSibling:t.firstChild)}},after:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;e.indexOf(n)!==-1;)n=n.nextSibling;var o=r(e);t.insertBefore(o,n)}},replaceWith:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;e.indexOf(n)!==-1;)n=n.nextSibling;var o=r(e);this.parentNode===t?t.replaceChild(o,this):t.insertBefore(o,n)}},remove:function(){this.parentNode&&this.parentNode.removeChild(this)}};t(DocumentType,o),t(Element,o),t(CharacterData,o)}}(self),function(e){"window"in e&&"document"in e&&(e.XMLHttpRequest=e.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("This browser does not support XMLHttpRequest.")},XMLHttpRequest.UNSENT=0,XMLHttpRequest.OPENED=1,XMLHttpRequest.HEADERS_RECEIVED=2,XMLHttpRequest.LOADING=3,XMLHttpRequest.DONE=4,function(){function t(e){if(this._data=[],e)for(var t=0;t<e.elements.length;++t){var r=e.elements[t];""!==r.name&&this.append(r.name,r.value)}}if(!("FormData"in e)){t.prototype={append:function(t,r){if("Blob"in e&&r instanceof e.Blob)throw TypeError("Blob not supported");t=String(t),this._data.push([t,r])},toString:function(){return this._data.map(function(e){return encodeURIComponent(e[0])+"="+encodeURIComponent(e[1])}).join("&")}},e.FormData=t;var r=e.XMLHttpRequest.prototype.send;e.XMLHttpRequest.prototype.send=function(e){return e instanceof t&&(this.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),arguments[0]=e.toString()),r.apply(this,arguments)}}}())}(self),function(e){"use strict";function t(e){var t="",r=!0;return e.forEach(function(e){var n=encodeURIComponent(e.name),o=encodeURIComponent(e.value);r||(t+="&"),t+=n+"="+o,r=!1}),t.replace(/%20/g,"+")}function r(e,t){var r=e.split("&");t&&r[0].indexOf("=")===-1&&(r[0]="="+r[0]);var n=[];r.forEach(function(e){if(0!==e.length){var t=e.indexOf("=");if(t!==-1)var r=e.substring(0,t),o=e.substring(t+1);else r=e,o="";r=r.replace(/\+/g," "),o=o.replace(/\+/g," "),n.push({name:r,value:o})}});var o=[];return n.forEach(function(e){o.push({name:decodeURIComponent(e.name),value:decodeURIComponent(e.value)})}),o}function n(e){if(a)return new u(e);var t=document.createElement("a");return t.href=e,t}function o(e){var n=this;this._list=[],void 0!==e&&null!==e||(e=""),(Object(e)!==e||e instanceof o)&&(e=String(e)),"string"==typeof e&&("?"===e.substring(0,1)&&(e=e.substring(1)),this._list=r(e)),this._url_object=null,this._setList=function(e){i||(n._list=e)};var i=!1;this._update_steps=function(){i||(i=!0,n._url_object&&("about:"===n._url_object.protocol&&n._url_object.pathname.indexOf("?")!==-1&&(n._url_object.pathname=n._url_object.pathname.split("?")[0]),n._url_object.search=t(n._list),i=!1))}}function i(t,i){function s(){var e=l.href.replace(/#$|\?$|\?(?=#)/g,"");l.href!==e&&(l.href=e)}function c(){p._setList(l.search?r(l.search.substring(1)):[]),p._update_steps()}if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");i&&(t=function(){if(a)return new u(t,i).href;var e;if(document.implementation&&document.implementation.createHTMLDocument?e=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?(e=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null),e.documentElement.appendChild(e.createElement("head")),e.documentElement.appendChild(e.createElement("body"))):window.ActiveXObject&&(e=new window.ActiveXObject("htmlfile"),e.write("<head></head><body></body>"),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=i,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),f=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(e){return!1}}(),h=f?this:document.createElement("a"),p=new o(l.search?l.search.substring(1):null);return p._url_object=h,Object.defineProperties(h,{href:{get:function(){return l.href},set:function(e){l.href=e,s(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,s(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return p},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,s()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),h}var a,u=e.URL;try{if(u){if(a=new e.URL("http://example.com"),"searchParams"in a)return;"href"in a||(a=void 0)}}catch(e){}if(Object.defineProperties(o.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},delete:{value:function(e){for(var t=0;t<this._list.length;)this._list[t].name===e?this._list.splice(t,1):++t;this._update_steps()},writable:!0,enumerable:!0,configurable:!0},get:{value:function(e){for(var t=0;t<this._list.length;++t)if(this._list[t].name===e)return this._list[t].value;return null},writable:!0,enumerable:!0,configurable:!0},getAll:{value:function(e){for(var t=[],r=0;r<this._list.length;++r)this._list[r].name===e&&t.push(this._list[r].value);return t},writable:!0,enumerable:!0,configurable:!0},has:{value:function(e){for(var t=0;t<this._list.length;++t)if(this._list[t].name===e)return!0;return!1},writable:!0,enumerable:!0,configurable:!0},set:{value:function(e,t){for(var r=!1,n=0;n<this._list.length;)this._list[n].name===e?r?this._list.splice(n,1):(this._list[n].value=t,r=!0,++n):++n;r||this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},entries:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.value,r.name)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(o.prototype,e.Symbol.iterator,{value:o.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),u)for(var s in u)u.hasOwnProperty(s)&&"function"==typeof u[s]&&(i[s]=u[s]);e.URL=i,e.URLSearchParams=o}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function o(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function i(e){return e=o(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function a(e){var t=o(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function u(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function s(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function f(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)!==-1}function h(e){this._guard="none",this._headerList=[],e&&p(this,e)}function p(e,t){t instanceof h?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function y(e){this._headers=e,this._index=0}function d(e){this._stream=e,this.bodyUsed=!1}function v(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(d.call(this,null),this.method="GET",this.url="",this.headers=new h,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof v){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new h(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var o=t(n.method);if(i(o))throw TypeError();this.method=a(o)}"headers"in n&&(this.headers=new h,p(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&["omit","same-origin","include"].indexOf(n.credentials)!==-1&&(this.credentials=n.credentials)}function m(e,t){if(arguments.length<1&&(e=""),this.headers=new h,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var o=e;return this.type="basic",this.url=r(o._url),this.status=o.status,this.ok=200<=this.status&&this.status<=299,this.statusText=o.statusText,o.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void d.call(this,o.responseText)}d.call(this,e),t=Object(t)||{},this.url="";var i="status"in t?n(t.status):200;if(i<200||i>599)throw RangeError();this.status=i,this.ok=200<=this.status&&this.status<=299;var a="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(a))throw TypeError();this.statusText=a,"headers"in t&&p(this.headers,t),
this.type="basic"}function b(e,t){return new Promise(function(r,n){var o=new v(e,t),i=new XMLHttpRequest,a=!0;i._url=o.url;try{i.open(o.method,o.url,a)}catch(e){throw TypeError(e.message)}for(var u=o.headers[Symbol.iterator](),s=u.next();!s.done;s=u.next())i.setRequestHeader(s.value[0],s.value[1]);"include"===o.credentials&&(i.withCredentials=!0),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(0===i.status?n(new TypeError("Network error")):r(new m(i)))},i.send(o._stream)})}h.prototype={append:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||f(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},delete:function(e){if(e=t(e),!u(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r<this._headerList.length;)this._headerList[r][0]===e?this._headerList.splice(r,1):++r}},get:function(e){if(e=t(e),!u(e))throw TypeError();e=e.toLowerCase();for(var r=0;r<this._headerList.length;++r)if(this._headerList[r][0]===e)return this._headerList[r][1];return null},getAll:function(e){if(e=t(e),!u(e))throw TypeError();e=e.toLowerCase();for(var r=[],n=0;n<this._headerList.length;++n)this._headerList[n][0]===e&&r.push(this._headerList[n][1]);return r},has:function(e){if(e=t(e),!u(e))throw TypeError();e=e.toLowerCase();for(var r=0;r<this._headerList.length;++r)if(this._headerList[r][0]===e)return!0;return!1},set:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,r))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var n=0;n<this._headerList.length;++n)if(this._headerList[n][0]===e){for(this._headerList[n++][1]=r;n<this._headerList.length;)this._headerList[n][0]===e?this._headerList.splice(n,1):++n;return}this._headerList.push([e,r])}}},h.prototype[Symbol.iterator]=function(){return new y(this)},y.prototype={},y.prototype.next=function(){return this._index>=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},y.prototype[Symbol.iterator]=function(){return this},d.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},v.prototype=d.prototype,m.prototype=d.prototype,m.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=h,e.Request=v,e.Response=m,e.fetch=b)}(self),function(e){"window"in e&&"document"in e&&"TextRectangle"in this&&!("width"in TextRectangle.prototype)&&Object.defineProperties(TextRectangle.prototype,{width:{get:function(){return this.right-this.left}},height:{get:function(){return this.bottom-this.top}}})}(this),function(e){"use strict";function t(e){var t="",r=!0;return e.forEach(function(e){var n=encodeURIComponent(e.name),o=encodeURIComponent(e.value);r||(t+="&"),t+=n+"="+o,r=!1}),t.replace(/%20/g,"+")}function r(e,t){var r=e.split("&");t&&r[0].indexOf("=")===-1&&(r[0]="="+r[0]);var n=[];r.forEach(function(e){if(0!==e.length){var t=e.indexOf("=");if(t!==-1)var r=e.substring(0,t),o=e.substring(t+1);else r=e,o="";r=r.replace(/\+/g," "),o=o.replace(/\+/g," "),n.push({name:r,value:o})}});var o=[];return n.forEach(function(e){o.push({name:decodeURIComponent(e.name),value:decodeURIComponent(e.value)})}),o}function n(e){if(a)return new u(e);var t=document.createElement("a");return t.href=e,t}function o(e){var n=this;this._list=[],void 0!==e&&null!==e||(e=""),(Object(e)!==e||e instanceof o)&&(e=String(e)),"string"==typeof e&&("?"===e.substring(0,1)&&(e=e.substring(1)),this._list=r(e)),this._url_object=null,this._setList=function(e){i||(n._list=e)};var i=!1;this._update_steps=function(){i||(i=!0,n._url_object&&("about:"===n._url_object.protocol&&n._url_object.pathname.indexOf("?")!==-1&&(n._url_object.pathname=n._url_object.pathname.split("?")[0]),n._url_object.search=t(n._list),i=!1))}}function i(t,i){function s(){var e=l.href.replace(/#$|\?$|\?(?=#)/g,"");l.href!==e&&(l.href=e)}function c(){p._setList(l.search?r(l.search.substring(1)):[]),p._update_steps()}if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");i&&(t=function(){if(a)return new u(t,i).href;var e;if(document.implementation&&document.implementation.createHTMLDocument?e=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?(e=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null),e.documentElement.appendChild(e.createElement("head")),e.documentElement.appendChild(e.createElement("body"))):window.ActiveXObject&&(e=new window.ActiveXObject("htmlfile"),e.write("<head></head><body></body>"),e.close()),!e)throw Error("base not supported");var r=e.createElement("base");r.href=i,e.getElementsByTagName("head")[0].appendChild(r);var n=e.createElement("a");return n.href=t,n.href}());var l=n(t||""),f=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(e){return!1}}(),h=f?this:document.createElement("a"),p=new o(l.search?l.search.substring(1):null);return p._url_object=h,Object.defineProperties(h,{href:{get:function(){return l.href},set:function(e){l.href=e,s(),c()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in l?l.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return l.protocol},set:function(e){l.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return l.username},set:function(e){l.username=e},enumerable:!0,configurable:!0},password:{get:function(){return l.password},set:function(e){l.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[l.protocol];return e?l.host.replace(e,""):l.host},set:function(e){l.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return l.hostname},set:function(e){l.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return l.port},set:function(e){l.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==l.pathname.charAt(0)?"/"+l.pathname:l.pathname},set:function(e){l.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return l.search},set:function(e){l.search!==e&&(l.search=e,s(),c())},enumerable:!0,configurable:!0},searchParams:{get:function(){return p},enumerable:!0,configurable:!0},hash:{get:function(){return l.hash},set:function(e){l.hash=e,s()},enumerable:!0,configurable:!0},toString:{value:function(){return l.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return l.valueOf()},enumerable:!1,configurable:!0}}),h}var a,u=e.URL;try{if(u){if(a=new e.URL("http://example.com"),"searchParams"in a)return;"href"in a||(a=void 0)}}catch(e){}if(Object.defineProperties(o.prototype,{append:{value:function(e,t){this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},delete:{value:function(e){for(var t=0;t<this._list.length;)this._list[t].name===e?this._list.splice(t,1):++t;this._update_steps()},writable:!0,enumerable:!0,configurable:!0},get:{value:function(e){for(var t=0;t<this._list.length;++t)if(this._list[t].name===e)return this._list[t].value;return null},writable:!0,enumerable:!0,configurable:!0},getAll:{value:function(e){for(var t=[],r=0;r<this._list.length;++r)this._list[r].name===e&&t.push(this._list[r].value);return t},writable:!0,enumerable:!0,configurable:!0},has:{value:function(e){for(var t=0;t<this._list.length;++t)if(this._list[t].name===e)return!0;return!1},writable:!0,enumerable:!0,configurable:!0},set:{value:function(e,t){for(var r=!1,n=0;n<this._list.length;)this._list[n].name===e?r?this._list.splice(n,1):(this._list[n].value=t,r=!0,++n):++n;r||this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},entries:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:[r.name,r.value]}}}},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.name}}}},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){var e=this,t=0;return{next:function(){if(t>=e._list.length)return{done:!0,value:void 0};var r=e._list[t++];return{done:!1,value:r.value}}}},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:void 0;this._list.forEach(function(r,n){e.call(t,r.value,r.name)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return t(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&Object.defineProperty(o.prototype,e.Symbol.iterator,{value:o.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),u)for(var s in u)u.hasOwnProperty(s)&&"function"==typeof u[s]&&(i[s]=u[s]);e.URL=i,e.URLSearchParams=o}(self),function(e){function t(e){if(e=String(e),e.match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function r(e){return e=String(e),e.replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function n(e){return 65535&e}function o(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function i(e){return e=o(e),"CONNECT"===e||"TRACE"===e||"TRACK"===e}function a(e){var t=o(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function u(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function s(e){return!0}function c(e){e=String(e).toLowerCase();var t={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0};return t[e]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function l(e){e=String(e).toLowerCase();var t={"set-cookie":!0,"set-cookie2":!0};return t[e]}function f(e,t){return e=String(e).toLowerCase(),"accept"===e||"accept-language"===e||"content-language"===e||"content-type"===e&&["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)!==-1}function h(e){this._guard="none",this._headerList=[],e&&p(this,e)}function p(e,t){t instanceof h?t._headerList.forEach(function(t){e.append(t[0],t[1])}):Array.isArray(t)?t.forEach(function(t){if(!Array.isArray(t)||2!==t.length)throw TypeError();e.append(t[0],t[1])}):(t=Object(t),Object.keys(t).forEach(function(r){e.append(r,t[r])}))}function y(e){this._headers=e,this._index=0}function d(e){this._stream=e,this.bodyUsed=!1}function v(e,n){if(arguments.length<1)throw TypeError("Not enough arguments");if(d.call(this,null),this.method="GET",this.url="",this.headers=new h,this.headers._guard="request",this.referrer=null,this.mode=null,this.credentials="omit",e instanceof v){if(e.bodyUsed)throw TypeError();e.bodyUsed=!0,this.method=e.method,this.url=e.url,this.headers=new h(e.headers),this.headers._guard=e.headers._guard,this.credentials=e.credentials,this._stream=e._stream}else e=r(e),this.url=String(new URL(e,self.location));if(n=Object(n),"method"in n){var o=t(n.method);if(i(o))throw TypeError();this.method=a(o)}"headers"in n&&(this.headers=new h,p(this.headers,n.headers)),"body"in n&&(this._stream=n.body),"credentials"in n&&["omit","same-origin","include"].indexOf(n.credentials)!==-1&&(this.credentials=n.credentials)}function m(e,t){if(arguments.length<1&&(e=""),this.headers=new h,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var o=e;return this.type="basic",this.url=r(o._url),this.status=o.status,this.ok=200<=this.status&&this.status<=299,this.statusText=o.statusText,o.getAllResponseHeaders().split(/\r?\n/).filter(function(e){return e.length}).forEach(function(e){var t=e.indexOf(":");this.headers.append(e.substring(0,t),e.substring(t+2))},this),void d.call(this,o.responseText)}d.call(this,e),t=Object(t)||{},this.url="";var i="status"in t?n(t.status):200;if(i<200||i>599)throw RangeError();this.status=i,this.ok=200<=this.status&&this.status<=299;var a="statusText"in t?String(t.statusText):"OK";if(/[^\x00-\xFF]/.test(a))throw TypeError();this.statusText=a,"headers"in t&&p(this.headers,t),this.type="basic"}function b(e,t){return new Promise(function(r,n){var o=new v(e,t),i=new XMLHttpRequest,a=!0;i._url=o.url;try{i.open(o.method,o.url,a)}catch(e){throw TypeError(e.message)}for(var u=o.headers[Symbol.iterator](),s=u.next();!s.done;s=u.next())i.setRequestHeader(s.value[0],s.value[1]);"include"===o.credentials&&(i.withCredentials=!0),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&(0===i.status?n(new TypeError("Network error")):r(new m(i)))},i.send(o._stream)})}h.prototype={append:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&c(e)||("request-no-CORS"!==this._guard||f(e,r))&&("response"===this._guard&&l(e)||(e=e.toLowerCase(),this._headerList.push([e,r])))},delete:function(e){if(e=t(e),!u(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,"invalid"))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var r=0;r<this._headerList.length;)this._headerList[r][0]===e?this._headerList.splice(r,1):++r}},get:function(e){if(e=t(e),!u(e))throw TypeError();e=e.toLowerCase();for(var r=0;r<this._headerList.length;++r)if(this._headerList[r][0]===e)return this._headerList[r][1];return null},getAll:function(e){if(e=t(e),!u(e))throw TypeError();e=e.toLowerCase();for(var r=[],n=0;n<this._headerList.length;++n)this._headerList[n][0]===e&&r.push(this._headerList[n][1]);return r},has:function(e){if(e=t(e),!u(e))throw TypeError();e=e.toLowerCase();for(var r=0;r<this._headerList.length;++r)if(this._headerList[r][0]===e)return!0;return!1},set:function(e,r){if(e=t(e),!u(e)||!s(r))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!c(e))&&("request-no-CORS"!==this._guard||f(e,r))&&("response"!==this._guard||!l(e))){e=e.toLowerCase();for(var n=0;n<this._headerList.length;++n)if(this._headerList[n][0]===e){for(this._headerList[n++][1]=r;n<this._headerList.length;)this._headerList[n][0]===e?this._headerList.splice(n,1):++n;return}this._headerList.push([e,r])}}},h.prototype[Symbol.iterator]=function(){return new y(this)},y.prototype={},y.prototype.next=function(){return this._index>=this._headers._headerList.length?{value:void 0,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},y.prototype[Symbol.iterator]=function(){return this},d.prototype={arrayBuffer:function(){if(this.bodyUsed)return Promise.reject(TypeError());if(this.bodyUsed=!0,this._stream instanceof ArrayBuffer)return Promise.resolve(this._stream);var e=this._stream;return new Promise(function(t,r){var n=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(n).buffer)})},blob:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof Blob?Promise.resolve(this._stream):Promise.resolve(new Blob([this._stream])))},formData:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,this._stream instanceof FormData?Promise.resolve(this._stream):Promise.reject(Error("Not yet implemented")))},json:function(){if(this.bodyUsed)return Promise.reject(TypeError());this.bodyUsed=!0;var e=this;return new Promise(function(t,r){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},v.prototype=d.prototype,m.prototype=d.prototype,m.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=h,e.Request=v,e.Response=m,e.fetch=b)}(self);