forked from inexorabletash/polyfill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.min.js
1 lines (1 loc) · 28 KB
/
web.min.js
1
!function(e){"use strict";"window"in e&&"document"in e&&("head"in document||(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 n=this.attributes[t];n.specified&&"data-"===n.name.substring(0,5)&&function(t,n){var r=n.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()});e[r]=t.getAttribute("data-"+n),Object.defineProperty(e,r,{get:function(){return t.getAttribute("data-"+n)},set:function(e){t.setAttribute("data-"+n,e)}})}(this,n.name.substring(5))}return e}}),function(){if(!("atob"in e&&"btoa"in e)){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.atob=function(e){var n=0,r=[],i=0,o=0;if((e=(e=String(e)).replace(/\s/g,"")).length%4==0&&(e=e.replace(/=+$/,"")),e.length%4==1)throw Error("InvalidCharacterError");if(/[^+/0-9A-Za-z]/.test(e))throw Error("InvalidCharacterError");for(;n<e.length;)i=i<<6|t.indexOf(e.charAt(n)),24===(o+=6)&&(r.push(String.fromCharCode(i>>16&255)),r.push(String.fromCharCode(i>>8&255)),r.push(String.fromCharCode(255&i)),o=0,i=0),n+=1;return 12===o?(i>>=4,r.push(String.fromCharCode(255&i))):18===o&&(i>>=2,r.push(String.fromCharCode(i>>8&255)),r.push(String.fromCharCode(255&i))),r.join("")},e.btoa=function(e){e=String(e);var n,r,i,o,a,s,u,c=0,l=[];if(/[^\x00-\xFF]/.test(e))throw Error("InvalidCharacterError");for(;c<e.length;)o=(n=e.charCodeAt(c++))>>2,a=(3&n)<<4|(r=e.charCodeAt(c++))>>4,s=(15&r)<<2|(i=e.charCodeAt(c++))>>6,u=63&i,c===e.length+2?(s=64,u=64):c===e.length+1&&(u=64),l.push(t.charAt(o),t.charAt(a),t.charAt(s),t.charAt(u));return l.join("")}}}(),function(){function t(e){return e.offsetWidth>0&&e.offsetHeight>0}function n(){var e=i;i=Object.create(null),a=-1,Object.keys(e).forEach(function(n){var r=e[n];r.element&&!t(r.element)||r.callback(Date.now())})}if(!("requestAnimationFrame"in e)){var r=60,i=Object.create(null),o=0,a=-1;e.requestAnimationFrame=function(t,s){var u=++o;return i[u]={callback:t,element:s},-1===a&&(a=e.setTimeout(n,1e3/r)),u},e.cancelAnimationFrame=function(t){delete i[t],0===Object.keys(i).length&&(e.clearTimeout(a),a=-1)}}}())}(self),function(e){"use strict";function t(t,n){"Element"in e&&Element.prototype&&Object.defineProperty&&Object.defineProperty(Element.prototype,t,{get:n})}function n(e,t){e&&Object.keys(t).forEach(function(n){if(!(n in e||n in e.prototype))try{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t,n))}catch(r){e[n]=t[n]}})}function r(e){var t=null;return 1===(e=e.map(function(e){return e instanceof Node?e:document.createTextNode(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,n=document.createElement("style"),r=[];for(document.documentElement.firstChild.appendChild(n),document._qsa=[],n.styleSheet.cssText=e+"{x-qsa:expression(document._qsa && document._qsa.push(this))}",window.scrollBy(0,0),n.parentNode.removeChild(n);document._qsa.length;)(t=document._qsa.shift()).style.removeAttribute("x-qsa"),r.push(t);return document._qsa=null,r}),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")},[["ELEMENT_NODE",1],["ATTRIBUTE_NODE",2],["TEXT_NODE",3],["CDATA_SECTION_NODE",4],["ENTITY_REFERENCE_NODE",5],["ENTITY_NODE",6],["PROCESSING_INSTRUCTION_NODE",7],["COMMENT_NODE",8],["DOCUMENT_NODE",9],["DOCUMENT_TYPE_NODE",10],["DOCUMENT_FRAGMENT_NODE",11],["NOTATION_NODE",12]].forEach(function(t){t[0]in e.Node||(e.Node[t[0]]=t[1])}),e.DOMException=e.DOMException||function(){throw TypeError("Illegal constructor")},[["INDEX_SIZE_ERR",1],["DOMSTRING_SIZE_ERR",2],["HIERARCHY_REQUEST_ERR",3],["WRONG_DOCUMENT_ERR",4],["INVALID_CHARACTER_ERR",5],["NO_DATA_ALLOWED_ERR",6],["NO_MODIFICATION_ALLOWED_ERR",7],["NOT_FOUND_ERR",8],["NOT_SUPPORTED_ERR",9],["INUSE_ATTRIBUTE_ERR",10],["INVALID_STATE_ERR",11],["SYNTAX_ERR",12],["INVALID_MODIFICATION_ERR",13],["NAMESPACE_ERR",14],["INVALID_ACCESS_ERR",15]].forEach(function(t){t[0]in e.DOMException||(e.DOMException[t[0]]=t[1])}),function(){function t(e,t,n){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var r=this,i=function(e){e._timeStamp=Date.now(),e._currentTarget=r,t.call(this,e),e._currentTarget=null};this["_"+e+t]=i,this.attachEvent("on"+e,i)}}function n(e,t,n){if("function"==typeof t){"DOMContentLoaded"===e&&(e="load");var r=this["_"+e+t];r&&(this.detachEvent("on"+e,r),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!1===this.returnValue}}}),[Window,HTMLDocument,Element].forEach(function(e){e.prototype.addEventListener=t,e.prototype.removeEventListener=n}))}(),function(){function t(e,t){t=t||{bubbles:!1,cancelable:!1,detail:undefined};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"CustomEvent"in e&&"function"==typeof e.CustomEvent||(t.prototype=e.Event.prototype,e.CustomEvent=t)}(),window.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&(e["e"+t+n]=n,e[t+n]=function(){var r=window.event;r.currentTarget=e,r.preventDefault=function(){r.returnValue=!1},r.stopPropagation=function(){r.cancelBubble=!0},r.target=r.srcElement,r.timeStamp=Date.now(),e["e"+t+n].call(this,r)},e.attachEvent("on"+t,e[t+n]))},window.removeEvent=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&(e.detachEvent("on"+t,e[t+n]),e[t+n]=null,e["e"+t+n]=null)},function(){function n(e,t){function n(e){return e.length?e.split(/\s+/g):[]}function r(e,t){var r=n(t),i=r.indexOf(e);return-1!==i&&r.splice(i,1),r.join(" ")}if(Object.defineProperties(this,{length:{get:function(){return n(e[t]).length}},item:{value:function(r){var i=n(e[t]);return 0<=r&&r<i.length?i[r]:null}},contains:{value:function(r){return r=String(r),-1!==n(e[t]).indexOf(r)}},add:{value:function(){var r=Array.prototype.slice.call(arguments).map(String);if(r.some(function(e){return 0===e.length}))throw SyntaxError();if(r.some(function(e){return/\s/.test(e)}))throw Error("InvalidCharacterError");try{var i=e[t],o=n(i);if(0===(r=r.filter(function(e){return-1===o.indexOf(e)})).length)return;0===i.length||/\s$/.test(i)||(i+=" "),i+=r.join(" "),e[t]=i}finally{var a=n(e[t]).length;this.length!==a&&(this.length=a)}}},remove:{value:function(){var i=Array.prototype.slice.call(arguments).map(String);if(i.some(function(e){return 0===e.length}))throw SyntaxError();if(i.some(function(e){return/\s/.test(e)}))throw Error("InvalidCharacterError");try{var o=e[t];i.forEach(function(e){o=r(e,o)}),e[t]=o}finally{var a=n(e[t]).length;this.length!==a&&(this.length=a)}}},toggle:{value:function(i){var o=arguments[1];try{if(0===(i=String(i)).length)throw SyntaxError();if(/\s/.test(i))throw Error("InvalidCharacterError");var a=n(e[t]).indexOf(i);if(-1!==a&&(!o||void 0===o))return e[t]=r(i,e[t]),!1;if(-1!==a&&o)return!0;var s=e[t];return 0===s.length||/\s$/.test(s)||(s+=" "),s+=i,e[t]=s,!0}finally{var u=n(e[t]).length;this.length!==u&&(this.length=u)}}},toString:{value:function(){return e[t]}}}),"length"in this)for(var i=0;i<100;++i)Object.defineProperty(this,String(i),{get:function(e){return function(){return this.item(e)}}(i)});else this.length=n(e[t]).length}"classList"in document.createElement("span")?window.getClassList=function(e){return e.classList}:(window.getClassList=function(e){return new n(e,"className")},t("classList",function(){return new n(this,"className")})),"relList"in document.createElement("link")?window.getRelList=function(e){return e.relList}:(window.getRelList=function(e){return new n(e,"rel")},t("relList",function(){return new n(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(t===undefined){var n=!this.contains(e);return this[n?"add":"remove"](e),n}return t=!!t,this[t?"add":"remove"](e),t}))}}()}(),"previousElementSibling"in document.documentElement||t("previousElementSibling",function(){for(var e=this.previousSibling;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.previousSibling;return e}),"nextElementSibling"in document.documentElement||t("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){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),n=t.length;--n>=0&&t.item(n)!==this;);return n>-1})),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),r=this;do{for(t=n.length;--t>=0&&n.item(t)!==r;);}while(t<0&&(r=r.parentElement));return r});var i={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)}};n(e.Document||e.HTMLDocument,i),n(e.DocumentFragment,i),n(e.Element,i),"firstElementChild"in document.documentElement||t("firstElementChild",function(){for(var e=this.children,t=0,n=e.length;t<n;++t){var r=e[t];if(r.nodeType===Node.ELEMENT_NODE)return r}return null}),"lastElementChild"in document.documentElement||t("lastElementChild",function(){for(var e=this.children,t=e.length-1;t>=0;--t){var n=e[t];if(n.nodeType===Node.ELEMENT_NODE)return n}return null}),"childElementCount"in document.documentElement||t("childElementCount",function(){for(var e=0,t=this.children,n=0,r=t.length;n<r;++n)t[n].nodeType===Node.ELEMENT_NODE&&++e;return e});var o={before:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.previousSibling;-1!==e.indexOf(n);)n=n.previousSibling;var i=r(e);t.insertBefore(i,n?n.nextSibling:t.firstChild)}},after:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;-1!==e.indexOf(n);)n=n.nextSibling;var i=r(e);t.insertBefore(i,n)}},replaceWith:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;-1!==e.indexOf(n);)n=n.nextSibling;var i=r(e);this.parentNode===t?t.replaceChild(i,this):t.insertBefore(i,n)}},remove:function(){this.parentNode&&this.parentNode.removeChild(this)}};n(e.DocumentType,o),n(e.Element,o),n(e.CharacterData,o)}}(self),function(e){"use strict";"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.")},[["UNSENT",0],["OPENED",1],["HEADERS_RECEIVED",2],["LOADING",3],["DONE",4]].forEach(function(t){t[0]in e.XMLHttpRequest||(e.XMLHttpRequest[t[0]]=t[1])}),function(){function t(e){if(this._data=[],e)for(var t=0;t<e.elements.length;++t){var n=e.elements[t];""!==n.name&&this.append(n.name,n.value)}}if(!("FormData"in e)){t.prototype={append:function(t,n){if("Blob"in e&&n instanceof e.Blob)throw TypeError("Blob not supported");t=String(t),this._data.push([t,n])},toString:function(){return this._data.map(function(e){return encodeURIComponent(e[0])+"="+encodeURIComponent(e[1])}).join("&")}},e.FormData=t;var n=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()),n.apply(this,arguments)}}}())}(self),function(e){"use strict";"window"in e&&"document"in e&&"TextRectangle"in e&&!("width"in e.TextRectangle.prototype)&&Object.defineProperties(e.TextRectangle.prototype,{width:{get:function(){return this.right-this.left}},height:{get:function(){return this.bottom-this.top}}})}(self),function(e){"use strict";function t(t){return!!t&&("Symbol"in e&&"iterator"in e.Symbol&&"function"==typeof t[Symbol.iterator]||!!Array.isArray(t))}function n(e){return"from"in Array?Array.from(e):Array.prototype.slice.call(e)}!function(){function r(e){var t="",n=!0;return e.forEach(function(e){var r=encodeURIComponent(e.name),i=encodeURIComponent(e.value);n||(t+="&"),t+=r+"="+i,n=!1}),t.replace(/%20/g,"+")}function i(e,t){var n=e.split("&");t&&-1===n[0].indexOf("=")&&(n[0]="="+n[0]);var r=[];n.forEach(function(e){if(0!==e.length){var t=e.indexOf("=");if(-1!==t)var n=e.substring(0,t),i=e.substring(t+1);else n=e,i="";n=n.replace(/\+/g," "),i=i.replace(/\+/g," "),r.push({name:n,value:i})}});var i=[];return r.forEach(function(e){i.push({name:decodeURIComponent(e.name),value:decodeURIComponent(e.value)})}),i}function o(e){if(c)return new l(e);var t=document.createElement("a");return t.href=e,t}function a(e){var o=this;this._list=[],e===undefined||null===e||(e instanceof a?this._list=i(String(e)):"object"==typeof e&&t(e)?n(e).forEach(function(e){if(!t(e))throw TypeError();var r=n(e);if(2!==r.length)throw TypeError();o._list.push({name:String(r[0]),value:String(r[1])})}):"object"==typeof e&&e?Object.keys(e).forEach(function(t){o._list.push({name:String(t),value:String(e[t])})}):("?"===(e=String(e)).substring(0,1)&&(e=e.substring(1)),this._list=i(e))),this._url_object=null,this._setList=function(e){s||(o._list=e)};var s=!1;this._update_steps=function(){s||(s=!0,o._url_object&&("about:"===o._url_object.protocol&&-1!==o._url_object.pathname.indexOf("?")&&(o._url_object.pathname=o._url_object.pathname.split("?")[0]),o._url_object.search=r(o._list),s=!1))}}function s(e,t){var n=0;this.next=function(){if(n>=e.length)return{done:!0,value:undefined};var r=e[n++];return{done:!1,value:"key"===t?r.name:"value"===t?r.value:[r.name,r.value]}}}function u(t,n){function r(){var e=u.href.replace(/#$|\?$|\?(?=#)/g,"");u.href!==e&&(u.href=e)}function s(){f._setList(u.search?i(u.search.substring(1)):[]),f._update_steps()}if(!(this instanceof e.URL))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator.");n&&(t=function(){if(c)return new l(t,n).href;var e;try{var r;if("[object OperaMini]"===Object.prototype.toString.call(window.operamini)?((e=document.createElement("iframe")).style.display="none",document.documentElement.appendChild(e),r=e.contentWindow.document):document.implementation&&document.implementation.createHTMLDocument?r=document.implementation.createHTMLDocument(""):document.implementation&&document.implementation.createDocument?((r=document.implementation.createDocument("http://www.w3.org/1999/xhtml","html",null)).documentElement.appendChild(r.createElement("head")),r.documentElement.appendChild(r.createElement("body"))):window.ActiveXObject&&((r=new window.ActiveXObject("htmlfile")).write("<head></head><body></body>"),r.close()),!r)throw Error("base not supported");var i=r.createElement("base");i.href=n,r.getElementsByTagName("head")[0].appendChild(i);var o=r.createElement("a");return o.href=t,o.href}finally{e&&e.parentNode.removeChild(e)}}());var u=o(t||""),h=function(){if(!("defineProperties"in Object))return!1;try{var e={};return Object.defineProperties(e,{prop:{get:function(){return!0}}}),e.prop}catch(t){return!1}}()?this:document.createElement("a"),f=new a(u.search?u.search.substring(1):null);return f._url_object=h,Object.defineProperties(h,{href:{get:function(){return u.href},set:function(e){u.href=e,r(),s()},enumerable:!0,configurable:!0},origin:{get:function(){return"origin"in u?u.origin:this.protocol+"//"+this.host},enumerable:!0,configurable:!0},protocol:{get:function(){return u.protocol},set:function(e){u.protocol=e},enumerable:!0,configurable:!0},username:{get:function(){return u.username},set:function(e){u.username=e},enumerable:!0,configurable:!0},password:{get:function(){return u.password},set:function(e){u.password=e},enumerable:!0,configurable:!0},host:{get:function(){var e={"http:":/:80$/,"https:":/:443$/,"ftp:":/:21$/}[u.protocol];return e?u.host.replace(e,""):u.host},set:function(e){u.host=e},enumerable:!0,configurable:!0},hostname:{get:function(){return u.hostname},set:function(e){u.hostname=e},enumerable:!0,configurable:!0},port:{get:function(){return u.port},set:function(e){u.port=e},enumerable:!0,configurable:!0},pathname:{get:function(){return"/"!==u.pathname.charAt(0)?"/"+u.pathname:u.pathname},set:function(e){u.pathname=e},enumerable:!0,configurable:!0},search:{get:function(){return u.search},set:function(e){u.search!==e&&(u.search=e,r(),s())},enumerable:!0,configurable:!0},searchParams:{get:function(){return f},enumerable:!0,configurable:!0},hash:{get:function(){return u.hash},set:function(e){u.hash=e,r()},enumerable:!0,configurable:!0},toString:{value:function(){return u.toString()},enumerable:!1,configurable:!0},valueOf:{value:function(){return u.valueOf()},enumerable:!1,configurable:!0}}),h}var c,l=e.URL;try{if(l){if("searchParams"in(c=new e.URL("http://example.com")))return;"href"in c||(c=undefined)}}catch(f){}if(Object.defineProperties(a.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=[],n=0;n<this._list.length;++n)this._list[n].name===e&&t.push(this._list[n].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 n=!1,r=0;r<this._list.length;)this._list[r].name===e?n?this._list.splice(r,1):(this._list[r].value=t,n=!0,++r):++r;n||this._list.push({name:e,value:t}),this._update_steps()},writable:!0,enumerable:!0,configurable:!0},entries:{value:function(){return new s(this._list,"key+value")},writable:!0,enumerable:!0,configurable:!0},keys:{value:function(){return new s(this._list,"key")},writable:!0,enumerable:!0,configurable:!0},values:{value:function(){return new s(this._list,"value")},writable:!0,enumerable:!0,configurable:!0},forEach:{value:function(e){var t=arguments.length>1?arguments[1]:undefined;this._list.forEach(function(n,r){e.call(t,n.value,n.name)})},writable:!0,enumerable:!0,configurable:!0},toString:{value:function(){return r(this._list)},writable:!0,enumerable:!1,configurable:!0}}),"Symbol"in e&&"iterator"in e.Symbol&&(Object.defineProperty(a.prototype,e.Symbol.iterator,{value:a.prototype.entries,writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,e.Symbol.iterator,{value:function(){return this},writable:!0,enumerable:!0,configurable:!0})),l)for(var h in l)l.hasOwnProperty(h)&&"function"==typeof l[h]&&(u[h]=l[h]);e.URL=u,e.URLSearchParams=a}(),function(){if("1"!==new e.URLSearchParams([["a",1]]).get("a")||"1"!==new e.URLSearchParams({a:1}).get("a")){var r=e.URLSearchParams;e.URLSearchParams=function(e){if(e&&"object"==typeof e&&t(e)){var i=new r;return n(e).forEach(function(e){if(!t(e))throw TypeError();var r=n(e);if(2!==r.length)throw TypeError();i.append(r[0],r[1])}),i}return e&&"object"==typeof e?(i=new r,Object.keys(e).forEach(function(t){i.set(t,e[t])}),i):new r(e)}}}()}(self),function(e){"use strict";function t(e){if((e=String(e)).match(/[^\x00-\xFF]/))throw TypeError("Not a valid ByteString");return e}function n(e){return(e=String(e)).replace(/([\u0000-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDFFF])/g,function(e){return/^[\uD800-\uDFFF]$/.test(e)?"�":e})}function r(e){return 65535&e}function i(e){return String(e).replace(/[a-z]/g,function(e){return e.toUpperCase()})}function o(e){return"CONNECT"===(e=i(e))||"TRACE"===e||"TRACK"===e}function a(e){var t=i(e);return"DELETE"===t||"GET"===t||"HEAD"===t||"OPTIONS"===t||"POST"===t||"PUT"===t?t:e}function s(e){return/^[!#$%&'*+\-.09A-Z^_`a-z|~]+$/.test(e)}function u(e){return{"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}[e=String(e).toLowerCase()]||"proxy-"===e.substring(0,6)||"sec-"===e.substring(0,4)}function c(e){return{"set-cookie":!0,"set-cookie2":!0}[e=String(e).toLowerCase()]}function l(e,t){return"accept"===(e=String(e).toLowerCase())||"accept-language"===e||"content-language"===e||"content-type"===e&&-1!==["application/x-www-form-encoded","multipart/form-data","text/plain"].indexOf(t)}function h(e){this._guard="none",this._headerList=[],e&&f(this,e)}function f(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(n){e.append(n,t[n])}))}function d(e){this._headers=e,this._index=0}function p(e){this._stream=e,this.bodyUsed=!1}function m(e,r){if(arguments.length<1)throw TypeError("Not enough arguments");if(p.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 m){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=n(e),this.url=String(new URL(e,self.location));if("method"in(r=Object(r))){var i=t(r.method);if(o(i))throw TypeError();this.method=a(i)}"headers"in r&&(this.headers=new h,f(this.headers,r.headers)),"body"in r&&(this._stream=r.body),"credentials"in r&&-1!==["omit","same-origin","include"].indexOf(r.credentials)&&(this.credentials=r.credentials)}function E(e,t){if(arguments.length<1&&(e=""),this.headers=new h,this.headers._guard="response",e instanceof XMLHttpRequest&&"_url"in e){var i=e;return this.type="basic",this.url=n(i._url),this.status=i.status,this.ok=200<=this.status&&this.status<=299,this.statusText=i.statusText,i.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 p.call(this,i.responseText)}p.call(this,e),t=Object(t)||{},this.url="";var o="status"in t?r(t.status):200;if(o<200||o>599)throw RangeError();this.status=o,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&&f(this.headers,t),this.type="basic"}h.prototype={append:function(e,n){if(e=t(e),!s(e))throw TypeError();if("immutable"===this._guard)throw TypeError();"request"===this._guard&&u(e)||("request-no-CORS"!==this._guard||l(e,n))&&("response"===this._guard&&c(e)||(e=e.toLowerCase(),this._headerList.push([e,n])))},"delete":function(e){if(e=t(e),!s(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!u(e))&&("request-no-CORS"!==this._guard||l(e,"invalid"))&&("response"!==this._guard||!c(e))){e=e.toLowerCase();for(var n=0;n<this._headerList.length;)this._headerList[n][0]===e?this._headerList.splice(n,1):++n}},get:function(e){if(e=t(e),!s(e))throw TypeError();e=e.toLowerCase();for(var n=0;n<this._headerList.length;++n)if(this._headerList[n][0]===e)return this._headerList[n][1];return null},getAll:function(e){if(e=t(e),!s(e))throw TypeError();e=e.toLowerCase();for(var n=[],r=0;r<this._headerList.length;++r)this._headerList[r][0]===e&&n.push(this._headerList[r][1]);return n},has:function(e){if(e=t(e),!s(e))throw TypeError();e=e.toLowerCase();for(var n=0;n<this._headerList.length;++n)if(this._headerList[n][0]===e)return!0;return!1},set:function(e,n){if(e=t(e),!s(e))throw TypeError();if("immutable"===this._guard)throw TypeError();if(("request"!==this._guard||!u(e))&&("request-no-CORS"!==this._guard||l(e,n))&&("response"!==this._guard||!c(e))){e=e.toLowerCase();for(var r=0;r<this._headerList.length;++r)if(this._headerList[r][0]===e){for(this._headerList[r++][1]=n;r<this._headerList.length;)this._headerList[r][0]===e?this._headerList.splice(r,1):++r;return}this._headerList.push([e,n])}}},h.prototype[Symbol.iterator]=function(){return new d(this)},(d.prototype={}).next=function(){return this._index>=this._headers._headerList.length?{value:undefined,done:!0}:{value:this._headers._headerList[this._index++],done:!1}},d.prototype[Symbol.iterator]=function(){return this},p.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,n){var r=unescape(encodeURIComponent(e)).split("").map(function(e){return e.charCodeAt(0)});t(new Uint8Array(r).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,n){t(JSON.parse(e._stream))})},text:function(){return this.bodyUsed?Promise.reject(TypeError()):(this.bodyUsed=!0,Promise.resolve(String(this._stream)))}},m.prototype=p.prototype,E.prototype=p.prototype,E.redirect=function(){throw Error("Not supported")},"fetch"in e||(e.Headers=h,e.Request=m,e.Response=E,e.fetch=function(e,t){return new Promise(function(n,r){var i=new m(e,t),o=new XMLHttpRequest;o._url=i.url;try{o.open(i.method,i.url,!0)}catch(u){throw TypeError(u.message)}for(var a=i.headers[Symbol.iterator](),s=a.next();!s.done;s=a.next())o.setRequestHeader(s.value[0],s.value[1]);"include"===i.credentials&&(o.withCredentials=!0),o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&(0===o.status?r(new TypeError("Network error")):n(new E(o)))},o.send(i._stream)})})}(self);