@okta/okta-auth-js
Version:
The Okta Auth SDK
2 lines • 131 kB
JavaScript
/*! For license information please see okta-auth-js.polyfill.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.OktaAuthPolyfill=e():t.OktaAuthPolyfill=e()}(self,(function(){return function(){var t={8806:function(t,e,r){!function(t){"use strict";function e(t){for(var e=0,r=Math.min(65536,t.length+1),n=new Uint16Array(r),o=[],i=0;;){var s=e<t.length;if(!s||i>=r-1){var a=n.subarray(0,i);if(o.push(String.fromCharCode.apply(null,a)),!s)return o.join("");t=t.subarray(e),e=0,i=0}var u=t[e++];if(0==(128&u))n[i++]=u;else if(192==(224&u)){var c=63&t[e++];n[i++]=(31&u)<<6|c}else if(224==(240&u)){c=63&t[e++];var f=63&t[e++];n[i++]=(31&u)<<12|c<<6|f}else if(240==(248&u)){var h=(7&u)<<18|(c=63&t[e++])<<12|(f=63&t[e++])<<6|63&t[e++];h>65535&&(h-=65536,n[i++]=h>>>10&1023|55296,h=56320|1023&h),n[i++]=h}}}var r="Failed to ",n=function(t,e,n){if(t)throw new Error("".concat(r).concat(e,": the '").concat(n,"' option is unsupported."))},o="function"==typeof Buffer&&Buffer.from,i=o?function(t){return Buffer.from(t)}:function(t){for(var e=0,r=t.length,n=0,o=Math.max(32,r+(r>>>1)+7),i=new Uint8Array(o>>>3<<3);e<r;){var s=t.charCodeAt(e++);if(s>=55296&&s<=56319){if(e<r){var a=t.charCodeAt(e);56320==(64512&a)&&(++e,s=((1023&s)<<10)+(1023&a)+65536)}if(s>=55296&&s<=56319)continue}if(n+4>i.length){o+=8,o=(o*=1+e/t.length*2)>>>3<<3;var u=new Uint8Array(o);u.set(i),i=u}if(0!=(4294967168&s)){if(0==(4294965248&s))i[n++]=s>>>6&31|192;else if(0==(4294901760&s))i[n++]=s>>>12&15|224,i[n++]=s>>>6&63|128;else{if(0!=(4292870144&s))continue;i[n++]=s>>>18&7|240,i[n++]=s>>>12&63|128,i[n++]=s>>>6&63|128}i[n++]=63&s|128}else i[n++]=s}return i.slice?i.slice(0,n):i.subarray(0,n)};function s(){this.encoding="utf-8"}s.prototype.encode=function(t,e){return n(e&&e.stream,"encode","stream"),i(t)};var a=!o&&"function"==typeof Blob&&"function"==typeof URL&&"function"==typeof URL.createObjectURL,u=["utf-8","utf8","unicode-1-1-utf-8"],c=e;o?c=function(t,e){return(t instanceof Buffer?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength)).toString(e)}:a&&(c=function(t){try{return function(t){var e;try{var r=new Blob([t],{type:"text/plain;charset=UTF-8"});e=URL.createObjectURL(r);var n=new XMLHttpRequest;return n.open("GET",e,!1),n.send(),n.responseText}finally{e&&URL.revokeObjectURL(e)}}(t)}catch(r){return e(t)}});var f="construct 'TextDecoder'",h="".concat(r," ").concat(f,": the ");function p(t,e){if(n(e&&e.fatal,f,"fatal"),t=t||"utf-8",!(o?Buffer.isEncoding(t):-1!==u.indexOf(t.toLowerCase())))throw new RangeError("".concat(h," encoding label provided ('").concat(t,"') is invalid."));this.encoding=t,this.fatal=!1,this.ignoreBOM=!1}p.prototype.decode=function(t,e){var r;return n(e&&e.stream,"decode","stream"),r=t instanceof Uint8Array?t:t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer):new Uint8Array(t),c(r,this.encoding)},t.TextEncoder=t.TextEncoder||s,t.TextDecoder=t.TextDecoder||p}("undefined"!=typeof window?window:void 0!==r.g?r.g:this)},6830:function(t,e){var r,n;n="undefined"!=typeof self?self:this,r=function(){return function(t){"use strict";if("function"!=typeof Promise)throw"Promise support required";var e=t.crypto||t.msCrypto;if(e){var r=e.subtle||e.webkitSubtle;if(r){var n=t.Crypto||e.constructor||Object,o=t.SubtleCrypto||r.constructor||Object,i=(t.CryptoKey||t.Key,t.navigator.userAgent.indexOf("Edge/")>-1),s=!!t.msCrypto&&!i,a=!e.subtle&&!!e.webkitSubtle;if(s||a){var u={KoZIhvcNAQEB:"1.2.840.113549.1.1.1"},c={"1.2.840.113549.1.1.1":"KoZIhvcNAQEB"};if(["generateKey","importKey","unwrapKey"].forEach((function(t){var n=r[t];r[t]=function(o,i,u){var c,f,m,S,E,T=[].slice.call(arguments);switch(t){case"generateKey":c=v(o),f=i,m=u;break;case"importKey":c=v(u),f=T[3],m=T[4],"jwk"===o&&((i=g(i)).alg||(i.alg=d(c)),i.key_ops||(i.key_ops="oct"!==i.kty?"d"in i?m.filter(A):m.filter(x):m.slice()),T[1]=(E=g(i),s&&(E.extractable=E.ext,delete E.ext),l(unescape(encodeURIComponent(JSON.stringify(E)))).buffer));break;case"unwrapKey":c=T[4],f=T[5],m=T[6],T[2]=u._key}if("generateKey"===t&&"HMAC"===c.name&&c.hash)return c.length=c.length||{"SHA-1":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[c.hash.name],r.importKey("raw",e.getRandomValues(new Uint8Array(c.length+7>>3)),c,f,m);if(a&&"generateKey"===t&&"RSASSA-PKCS1-v1_5"===c.name&&(!c.modulusLength||c.modulusLength>=2048))return(o=v(o)).name="RSAES-PKCS1-v1_5",delete o.hash,r.generateKey(o,!0,["encrypt","decrypt"]).then((function(t){return Promise.all([r.exportKey("jwk",t.publicKey),r.exportKey("jwk",t.privateKey)])})).then((function(t){return t[0].alg=t[1].alg=d(c),t[0].key_ops=m.filter(x),t[1].key_ops=m.filter(A),Promise.all([r.importKey("jwk",t[0],c,!0,t[0].key_ops),r.importKey("jwk",t[1],c,f,t[1].key_ops)])})).then((function(t){return{publicKey:t[0],privateKey:t[1]}}));if((a||s&&"SHA-1"===(c.hash||{}).name)&&"importKey"===t&&"jwk"===o&&"HMAC"===c.name&&"oct"===i.kty)return r.importKey("raw",l(p(i.k)),u,T[3],T[4]);if(a&&"importKey"===t&&("spki"===o||"pkcs8"===o))return r.importKey("jwk",function(t){var e=b(t),r=!1;e.length>2&&(r=!0,e.shift());var n={ext:!0};if("1.2.840.113549.1.1.1"!==e[0][0])throw new TypeError("Unsupported key type");var o=["n","e","d","p","q","dp","dq","qi"],i=b(e[1]);r&&i.shift();for(var s=0;s<i.length;s++)i[s][0]||(i[s]=i[s].subarray(1)),n[o[s]]=h(y(i[s]));return n.kty="RSA",n}(i),u,T[3],T[4]);if(s&&"unwrapKey"===t)return r.decrypt(T[3],u,i).then((function(t){return r.importKey(o,t,T[4],T[5],T[6])}));try{S=n.apply(r,T)}catch(t){return Promise.reject(t)}return s&&(S=new Promise((function(t,e){S.onabort=S.onerror=function(t){e(t)},S.oncomplete=function(e){t(e.target.result)}}))),S=S.then((function(t){return"HMAC"===c.name&&(c.length||(c.length=8*t.algorithm.length)),0==c.name.search("RSA")&&(c.modulusLength||(c.modulusLength=(t.publicKey||t).algorithm.modulusLength),c.publicExponent||(c.publicExponent=(t.publicKey||t).algorithm.publicExponent)),t.publicKey&&t.privateKey?{publicKey:new w(t.publicKey,c,f,m.filter(x)),privateKey:new w(t.privateKey,c,f,m.filter(A))}:new w(t,c,f,m)}))}})),["exportKey","wrapKey"].forEach((function(t){var e=r[t];r[t]=function(n,o,i){var u,c=[].slice.call(arguments);switch(t){case"exportKey":c[1]=o._key;break;case"wrapKey":c[1]=o._key,c[2]=i._key}if((a||s&&"SHA-1"===(o.algorithm.hash||{}).name)&&"exportKey"===t&&"jwk"===n&&"HMAC"===o.algorithm.name&&(c[0]="raw"),!a||"exportKey"!==t||"spki"!==n&&"pkcs8"!==n||(c[0]="jwk"),s&&"wrapKey"===t)return r.exportKey(n,o).then((function(t){return"jwk"===n&&(t=l(unescape(encodeURIComponent(JSON.stringify(g(t)))))),r.encrypt(c[3],i,t)}));try{u=e.apply(r,c)}catch(t){return Promise.reject(t)}return s&&(u=new Promise((function(t,e){u.onabort=u.onerror=function(t){e(t)},u.oncomplete=function(e){t(e.target.result)}}))),"exportKey"===t&&"jwk"===n&&(u=u.then((function(t){return(a||s&&"SHA-1"===(o.algorithm.hash||{}).name)&&"HMAC"===o.algorithm.name?{kty:"oct",alg:d(o.algorithm),key_ops:o.usages.slice(),ext:!0,k:h(y(t))}:((t=g(t)).alg||(t.alg=d(o.algorithm)),t.key_ops||(t.key_ops="public"===o.type?o.usages.filter(x):"private"===o.type?o.usages.filter(A):o.usages.slice()),t)}))),!a||"exportKey"!==t||"spki"!==n&&"pkcs8"!==n||(u=u.then((function(t){return function(t){var e,r=[["",null]],n=!1;if("RSA"!==t.kty)throw new TypeError("Unsupported key type");for(var o=["n","e","d","p","q","dp","dq","qi"],i=[],s=0;s<o.length&&o[s]in t;s++){var a=i[s]=l(p(t[o[s]]));128&a[0]&&(i[s]=new Uint8Array(a.length+1),i[s].set(a,1))}return i.length>2&&(n=!0,i.unshift(new Uint8Array([0]))),r[0][0]="1.2.840.113549.1.1.1",e=i,r.push(new Uint8Array(m(e)).buffer),n?r.unshift(new Uint8Array([0])):r[1]={tag:3,value:r[1]},new Uint8Array(m(r)).buffer}(g(t))}))),u}})),["encrypt","decrypt","sign","verify"].forEach((function(t){var e=r[t];r[t]=function(n,o,i,a){if(s&&(!i.byteLength||a&&!a.byteLength))throw new Error("Empty input is not allowed");var u,c=[].slice.call(arguments),f=v(n);if(!s||"sign"!==t&&"verify"!==t||"RSASSA-PKCS1-v1_5"!==n&&"HMAC"!==n||(c[0]={name:n}),s&&o.algorithm.hash&&(c[0].hash=c[0].hash||o.algorithm.hash),s&&"decrypt"===t&&"AES-GCM"===f.name){var h=n.tagLength>>3;c[2]=(i.buffer||i).slice(0,i.byteLength-h),n.tag=(i.buffer||i).slice(i.byteLength-h)}s&&"AES-GCM"===f.name&&void 0===c[0].tagLength&&(c[0].tagLength=128),c[1]=o._key;try{u=e.apply(r,c)}catch(t){return Promise.reject(t)}return s&&(u=new Promise((function(e,r){u.onabort=u.onerror=function(t){r(t)},u.oncomplete=function(r){if(r=r.target.result,"encrypt"===t&&r instanceof AesGcmEncryptResult){var n=r.ciphertext,o=r.tag;(r=new Uint8Array(n.byteLength+o.byteLength)).set(new Uint8Array(n),0),r.set(new Uint8Array(o),n.byteLength),r=r.buffer}e(r)}}))),u}})),s){var f=r.digest;r.digest=function(t,e){if(!e.byteLength)throw new Error("Empty input is not allowed");var n;try{n=f.call(r,t,e)}catch(t){return Promise.reject(t)}return n=new Promise((function(t,e){n.onabort=n.onerror=function(t){e(t)},n.oncomplete=function(e){t(e.target.result)}}))},t.crypto=Object.create(e,{getRandomValues:{value:function(t){return e.getRandomValues(t)}},subtle:{value:r}}),t.CryptoKey=w}a&&(e.subtle=r,t.Crypto=n,t.SubtleCrypto=o,t.CryptoKey=w)}}}function h(t){return btoa(t).replace(/\=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")}function p(t){return t=(t+="===").slice(0,-t.length%4),atob(t.replace(/-/g,"+").replace(/_/g,"/"))}function l(t){for(var e=new Uint8Array(t.length),r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}function y(t){return t instanceof ArrayBuffer&&(t=new Uint8Array(t)),String.fromCharCode.apply(String,t)}function v(t){var e={name:(t.name||t||"").toUpperCase().replace("V","v")};switch(e.name){case"SHA-1":case"SHA-256":case"SHA-384":case"SHA-512":break;case"AES-CBC":case"AES-GCM":case"AES-KW":t.length&&(e.length=t.length);break;case"HMAC":t.hash&&(e.hash=v(t.hash)),t.length&&(e.length=t.length);break;case"RSAES-PKCS1-v1_5":t.publicExponent&&(e.publicExponent=new Uint8Array(t.publicExponent)),t.modulusLength&&(e.modulusLength=t.modulusLength);break;case"RSASSA-PKCS1-v1_5":case"RSA-OAEP":t.hash&&(e.hash=v(t.hash)),t.publicExponent&&(e.publicExponent=new Uint8Array(t.publicExponent)),t.modulusLength&&(e.modulusLength=t.modulusLength);break;default:throw new SyntaxError("Bad algorithm name")}return e}function d(t){return{HMAC:{"SHA-1":"HS1","SHA-256":"HS256","SHA-384":"HS384","SHA-512":"HS512"},"RSASSA-PKCS1-v1_5":{"SHA-1":"RS1","SHA-256":"RS256","SHA-384":"RS384","SHA-512":"RS512"},"RSAES-PKCS1-v1_5":{"":"RSA1_5"},"RSA-OAEP":{"SHA-1":"RSA-OAEP","SHA-256":"RSA-OAEP-256"},"AES-KW":{128:"A128KW",192:"A192KW",256:"A256KW"},"AES-GCM":{128:"A128GCM",192:"A192GCM",256:"A256GCM"},"AES-CBC":{128:"A128CBC",192:"A192CBC",256:"A256CBC"}}[t.name][(t.hash||{}).name||t.length||""]}function g(t){(t instanceof ArrayBuffer||t instanceof Uint8Array)&&(t=JSON.parse(decodeURIComponent(escape(y(t)))));var e={kty:t.kty,alg:t.alg,ext:t.ext||t.extractable};switch(e.kty){case"oct":e.k=t.k;case"RSA":["n","e","d","p","q","dp","dq","qi","oth"].forEach((function(r){r in t&&(e[r]=t[r])}));break;default:throw new TypeError("Unsupported key type")}return e}function b(t,e){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),e||(e={pos:0,end:t.length}),e.end-e.pos<2||e.end>t.length)throw new RangeError("Malformed DER");var r,n=t[e.pos++],o=t[e.pos++];if(o>=128){if(o&=127,e.end-e.pos<o)throw new RangeError("Malformed DER");for(var i=0;o--;)i<<=8,i|=t[e.pos++];o=i}if(e.end-e.pos<o)throw new RangeError("Malformed DER");switch(n){case 2:r=t.subarray(e.pos,e.pos+=o);break;case 3:if(t[e.pos++])throw new Error("Unsupported bit string");o--;case 4:r=new Uint8Array(t.subarray(e.pos,e.pos+=o)).buffer;break;case 5:r=null;break;case 6:var s=btoa(y(t.subarray(e.pos,e.pos+=o)));if(!(s in u))throw new Error("Unsupported OBJECT ID "+s);r=u[s];break;case 48:r=[];for(var a=e.pos+o;e.pos<a;)r.push(b(t,e));break;default:throw new Error("Unsupported DER tag 0x"+n.toString(16))}return r}function m(t,e){e||(e=[]);var r=0,n=0,o=e.length+2;if(e.push(0,0),t instanceof Uint8Array){r=2,n=t.length;for(var i=0;i<n;i++)e.push(t[i])}else if(t instanceof ArrayBuffer)for(r=4,n=t.byteLength,t=new Uint8Array(t),i=0;i<n;i++)e.push(t[i]);else if(null===t)r=5,n=0;else if("string"==typeof t&&t in c){var s=l(atob(c[t]));for(r=6,n=s.length,i=0;i<n;i++)e.push(s[i])}else if(t instanceof Array){for(i=0;i<t.length;i++)m(t[i],e);r=48,n=e.length-o}else{if(!("object"==typeof t&&3===t.tag&&t.value instanceof ArrayBuffer))throw new Error("Unsupported DER value "+t);for(r=3,n=(t=new Uint8Array(t.value)).byteLength,e.push(0),i=0;i<n;i++)e.push(t[i]);n++}if(n>=128){var a=n;for(n=4,e.splice(o,0,a>>24&255,a>>16&255,a>>8&255,255&a);n>1&&!(a>>24);)a<<=8,n--;n<4&&e.splice(o,4-n),n|=128}return e.splice(o-2,2,r,n),e}function w(t,e,r,n){Object.defineProperties(this,{_key:{value:t},type:{value:t.type,enumerable:!0},extractable:{value:void 0===r?t.extractable:r,enumerable:!0},algorithm:{value:void 0===e?t.algorithm:e,enumerable:!0},usages:{value:void 0===n?t.usages:n,enumerable:!0}})}function x(t){return"verify"===t||"encrypt"===t||"wrapKey"===t}function A(t){return"sign"===t||"decrypt"===t||"unwrapKey"===t}}(n)}.apply(e,[]),void 0===r||(t.exports=r)},7147:function(t,e,r){"use strict";r.r(e),r.d(e,{DOMException:function(){return x},Headers:function(){return f},Request:function(){return g},Response:function(){return m},fetch:function(){return A}});var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},o={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function u(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function f(t){this.map={},t instanceof f?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){if(2!=t.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function h(t){if(!t._noBody)return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function p(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function l(t){var e=new FileReader,r=p(e);return e.readAsArrayBuffer(t),r}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return h(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(o.blob)return this.blob().then(l);throw new Error("could not read as ArrayBuffer")},this.text=function(){var t,e,r,n,o,i=h(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,r=p(e=new FileReader),o=(n=/charset=([A-Za-z0-9_-]+)/.exec(t.type))?n[1]:"utf-8",e.readAsText(t,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(t,e){t=a(t),e=u(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},f.prototype.delete=function(t){delete this.map[a(t)]},f.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},f.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},f.prototype.set=function(t,e){this.map[a(t)]=u(e)},f.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},f.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),c(t)},f.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),c(t)},f.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),c(t)},o.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);var d=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function g(t,e){if(!(this instanceof g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,o,i=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new f(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new f(e.headers)),this.method=(o=(r=e.method||this.method||"GET").toUpperCase(),d.indexOf(o)>-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function m(t,e){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new f(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:200,statusText:""});return t.ok=!1,t.status=0,t.type="error",t};var w=[301,302,303,307,308];m.redirect=function(t,e){if(-1===w.indexOf(e))throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})};var x=n.DOMException;try{new x}catch(t){(x=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function A(t,e){return new Promise((function(r,i){var s=new g(t,e);if(s.signal&&s.signal.aborted)return i(new x("Aborted","AbortError"));var c=new XMLHttpRequest;function h(){c.abort()}if(c.onload=function(){var t,e,n={statusText:c.statusText,headers:(t=c.getAllResponseHeaders()||"",e=new f,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{e.append(n,o)}catch(t){console.warn("Response "+t.message)}}})),e)};0===s.url.indexOf("file://")&&(c.status<200||c.status>599)?n.status=200:n.status=c.status,n.url="responseURL"in c?c.responseURL:n.headers.get("X-Request-URL");var o="response"in c?c.response:c.responseText;setTimeout((function(){r(new m(o,n))}),0)},c.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){i(new x("Aborted","AbortError"))}),0)},c.open(s.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(s.url),!0),"include"===s.credentials?c.withCredentials=!0:"omit"===s.credentials&&(c.withCredentials=!1),"responseType"in c&&(o.blob?c.responseType="blob":o.arrayBuffer&&(c.responseType="arraybuffer")),e&&"object"==typeof e.headers&&!(e.headers instanceof f||n.Headers&&e.headers instanceof n.Headers)){var p=[];Object.getOwnPropertyNames(e.headers).forEach((function(t){p.push(a(t)),c.setRequestHeader(t,u(e.headers[t]))})),s.headers.forEach((function(t,e){-1===p.indexOf(e)&&c.setRequestHeader(e,t)}))}else s.headers.forEach((function(t,e){c.setRequestHeader(e,t)}));s.signal&&(s.signal.addEventListener("abort",h),c.onreadystatechange=function(){4===c.readyState&&s.signal.removeEventListener("abort",h)}),c.send(void 0===s._bodyInit?null:s._bodyInit)}))}A.polyfill=!0,n.fetch||(n.fetch=A,n.Headers=f,n.Request=g,n.Response=m)},8862:function(t,e,r){"use strict";var n=r(2896);t.exports=n},3355:function(t,e,r){"use strict";var n=r(9387);t.exports=n},3898:function(t,e,r){"use strict";var n=r(6655);t.exports=n},2939:function(t,e,r){"use strict";var n=r(5357);t.exports=n},2567:function(t,e,r){"use strict";var n=r(7751);t.exports=n},6449:function(t,e,r){"use strict";var n=r(1676);t.exports=n},4915:function(t,e,r){"use strict";var n=r(8746);t.exports=n},4288:function(t,e,r){"use strict";var n=r(7863);t.exports=n},3322:function(t,e,r){"use strict";r(7547);var n=r(708);t.exports=n("Array","find")},5073:function(t,e,r){"use strict";r(6234),r(7803);var n=r(410);t.exports=n.Array.from},7081:function(t,e,r){"use strict";r(3251);var n=r(708);t.exports=n("Array","includes")},7958:function(t,e,r){"use strict";r(1994);var n=r(410);t.exports=n.Object.assign},7967:function(t,e,r){"use strict";r(6435);var n=r(410);t.exports=n.Object.entries},4850:function(t,e,r){"use strict";r(2917),r(2203);var n=r(410);t.exports=n.Object.fromEntries},8600:function(t,e,r){"use strict";r(6695);var n=r(410);t.exports=n.Object.keys},4158:function(t,e,r){"use strict";r(3117);var n=r(410);t.exports=n.Object.values},8898:function(t,e,r){"use strict";r(678),r(2917),r(571),r(6801),r(4907),r(473),r(1462),r(973),r(8341),r(6234);var n=r(410);t.exports=n.Promise},2694:function(t,e,r){"use strict";r(3197);var n=r(708);t.exports=n("String","endsWith")},7861:function(t,e,r){"use strict";r(8185);var n=r(708);t.exports=n("String","includes")},3371:function(t,e,r){"use strict";r(7403);var n=r(708);t.exports=n("String","startsWith")},9766:function(t,e,r){"use strict";r(2917),r(571),r(6234),r(673);var n=r(7149);t.exports=n.f("iterator")},169:function(t,e,r){"use strict";r(571),r(6234),r(6314),r(2151),r(1032),r(7373),r(8002),r(1731),r(9451),r(8165),r(7294),r(8569),r(1248),r(6839),r(8177),r(5169),r(4711),r(378),r(8030),r(5812),r(1965),r(6354),r(4756),r(1648),r(9425),r(1942),r(3193),r(8423),r(4551),r(8469),r(1987),r(2990),r(1e3),r(2195),r(4176),r(1983),r(511),r(6548),r(5152)},1491:function(t,e,r){"use strict";r(9373),r(795),r(3593),r(169);var n=r(9141);t.exports=n.Uint8Array},5068:function(t,e,r){"use strict";t.exports=r(9747)},5599:function(t,e,r){"use strict";t.exports=r(3752)},1166:function(t,e,r){"use strict";t.exports=r(6678)},7292:function(t,e,r){"use strict";t.exports=r(7321)},8556:function(t,e,r){"use strict";t.exports=r(7165)},3856:function(t,e,r){"use strict";t.exports=r(9209)},677:function(t,e,r){"use strict";t.exports=r(5392)},64:function(t,e,r){"use strict";t.exports=r(2383)},4870:function(t,e,r){"use strict";t.exports=r(3622)},2308:function(t,e,r){"use strict";t.exports=r(9971)},3972:function(t,e,r){"use strict";t.exports=r(7927)},9747:function(t,e,r){"use strict";var n=r(8862);t.exports=n},3752:function(t,e,r){"use strict";var n=r(3355);t.exports=n},6678:function(t,e,r){"use strict";var n=r(3898);t.exports=n},7321:function(t,e,r){"use strict";var n=r(2939);t.exports=n},7165:function(t,e,r){"use strict";var n=r(2567);t.exports=n},9209:function(t,e,r){"use strict";r(1945);var n=r(410);t.exports=n.Object.iterateEntries},5392:function(t,e,r){"use strict";r(6735);var n=r(410);t.exports=n.Object.iterateKeys},2383:function(t,e,r){"use strict";r(4239);var n=r(410);t.exports=n.Object.iterateValues},3622:function(t,e,r){"use strict";var n=r(6449);t.exports=n},9971:function(t,e,r){"use strict";var n=r(4915);t.exports=n},7927:function(t,e,r){"use strict";var n=r(4288);t.exports=n},2193:function(t,e,r){"use strict";var n=r(2379),o=r(1465),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},254:function(t,e,r){"use strict";var n=r(2609),o=r(1465),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},5412:function(t,e,r){"use strict";var n=r(5022),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},2227:function(t){"use strict";var e=TypeError;t.exports=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}},6170:function(t,e,r){"use strict";var n=r(8028),o=r(1381),i=r(1128).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&i(a,s,{configurable:!0,value:o(null)}),t.exports=function(t){a[s][t]=!0}},344:function(t,e,r){"use strict";var n=r(1852),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},3703:function(t,e,r){"use strict";var n=r(4425),o=String,i=TypeError;t.exports=function(t){if(void 0===t||n(t))return t;throw new i(o(t)+" is not an object or undefined")}},6514:function(t,e,r){"use strict";var n=r(4425),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},3472:function(t,e,r){"use strict";var n=r(5089),o=TypeError;t.exports=function(t){if("Uint8Array"===n(t))return t;throw new o("Argument is not an Uint8Array")}},1188:function(t){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4576:function(t,e,r){"use strict";var n=r(9141),o=r(8967),i=r(2231),s=n.ArrayBuffer,a=n.TypeError;t.exports=s&&o(s.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==i(t))throw new a("ArrayBuffer expected");return t.byteLength}},1097:function(t,e,r){"use strict";var n=r(9141),o=r(1188),i=r(4576),s=n.DataView;t.exports=function(t){if(!o||0!==i(t))return!1;try{return new s(t),!1}catch(t){return!0}}},3323:function(t,e,r){"use strict";var n=r(3881);t.exports=n((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},2365:function(t,e,r){"use strict";var n=r(1097),o=TypeError;t.exports=function(t){if(n(t))throw new o("ArrayBuffer is detached");return t}},7499:function(t,e,r){"use strict";var n,o,i,s=r(1188),a=r(111),u=r(9141),c=r(2379),f=r(4425),h=r(7308),p=r(5089),l=r(1465),y=r(7912),v=r(1767),d=r(2554),g=r(1852),b=r(9338),m=r(5171),w=r(8028),x=r(7775),A=r(308),S=A.enforce,E=A.get,T=u.Int8Array,O=T&&T.prototype,R=u.Uint8ClampedArray,P=R&&R.prototype,k=T&&b(T),j=O&&b(O),U=Object.prototype,L=u.TypeError,C=w("toStringTag"),B=x("TYPED_ARRAY_TAG"),_="TypedArrayConstructor",I=s&&!!m&&"Opera"!==p(u.opera),M=!1,H={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},D=function(t){var e=b(t);if(f(e)){var r=E(e);return r&&h(r,_)?r[_]:D(e)}},N=function(t){if(!f(t))return!1;var e=p(t);return h(H,e)||h(F,e)};for(n in H)(i=(o=u[n])&&o.prototype)?S(i)[_]=o:I=!1;for(n in F)(i=(o=u[n])&&o.prototype)&&(S(i)[_]=o);if((!I||!c(k)||k===Function.prototype)&&(k=function(){throw new L("Incorrect invocation")},I))for(n in H)u[n]&&m(u[n],k);if((!I||!j||j===U)&&(j=k.prototype,I))for(n in H)u[n]&&m(u[n].prototype,j);if(I&&b(P)!==j&&m(P,j),a&&!h(j,C))for(n in M=!0,d(j,C,{configurable:!0,get:function(){return f(this)?this[B]:void 0}}),H)u[n]&&y(u[n],B,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_TAG:M&&B,aTypedArray:function(t){if(N(t))return t;throw new L("Target is not a typed array")},aTypedArrayConstructor:function(t){if(c(t)&&(!m||g(k,t)))return t;throw new L(l(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(a){if(r)for(var o in H){var i=u[o];if(i&&h(i.prototype,t))try{delete i.prototype[t]}catch(r){try{i.prototype[t]=e}catch(t){}}}j[t]&&!r||v(j,t,r?e:I&&O[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(a){if(m){if(r)for(n in H)if((o=u[n])&&h(o,t))try{delete o[t]}catch(t){}if(k[t]&&!r)return;try{return v(k,t,r?e:I&&k[t]||e)}catch(t){}}for(n in H)!(o=u[n])||o[t]&&!r||v(o,t,e)}},getTypedArrayConstructor:D,isView:function(t){if(!f(t))return!1;var e=p(t);return"DataView"===e||h(H,e)||h(F,e)},isTypedArray:N,TypedArray:k,TypedArrayPrototype:j}},2552:function(t,e,r){"use strict";var n=r(9141),o=r(7620),i=r(111),s=r(1188),a=r(256),u=r(7912),c=r(2554),f=r(6921),h=r(3881),p=r(344),l=r(2076),y=r(8129),v=r(1158),d=r(6414),g=r(8798),b=r(9338),m=r(5171),w=r(5174),x=r(24),A=r(6660),S=r(2154),E=r(8621),T=r(308),O=a.PROPER,R=a.CONFIGURABLE,P="ArrayBuffer",k="DataView",j="prototype",U="Wrong index",L=T.getterFor(P),C=T.getterFor(k),B=T.set,_=n[P],I=_,M=I&&I[j],H=n[k],F=H&&H[j],D=Object.prototype,N=n.Array,K=n.RangeError,q=o(w),z=o([].reverse),W=g.pack,G=g.unpack,V=function(t){return[255&t]},Y=function(t){return[255&t,t>>8&255]},J=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},$=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Q=function(t){return W(d(t),23,4)},X=function(t){return W(t,52,8)},Z=function(t,e,r){c(t[j],e,{configurable:!0,get:function(){return r(this)[e]}})},tt=function(t,e,r,n){var o=C(t),i=v(r),s=!!n;if(i+e>o.byteLength)throw new K(U);var a=o.bytes,u=i+o.byteOffset,c=x(a,u,u+e);return s?c:z(c)},et=function(t,e,r,n,o,i){var s=C(t),a=v(r),u=n(+o),c=!!i;if(a+e>s.byteLength)throw new K(U);for(var f=s.bytes,h=a+s.byteOffset,p=0;p<e;p++)f[h+p]=u[c?p:e-p-1]};if(s){var rt=O&&_.name!==P;h((function(){_(1)}))&&h((function(){new _(-1)}))&&!h((function(){return new _,new _(1.5),new _(NaN),1!==_.length||rt&&!R}))?rt&&R&&u(_,"name",P):((I=function(t){return p(this,M),A(new _(v(t)),this,I)})[j]=M,M.constructor=I,S(I,_)),m&&b(F)!==D&&m(F,D);var nt=new H(new I(2)),ot=o(F.setInt8);nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||f(F,{setInt8:function(t,e){ot(this,t,e<<24>>24)},setUint8:function(t,e){ot(this,t,e<<24>>24)}},{unsafe:!0})}else M=(I=function(t){p(this,M);var e=v(t);B(this,{type:P,bytes:q(N(e),0),byteLength:e}),i||(this.byteLength=e,this.detached=!1)})[j],F=(H=function(t,e,r){p(this,F),p(t,M);var n=L(t),o=n.byteLength,s=l(e);if(s<0||s>o)throw new K("Wrong offset");if(s+(r=void 0===r?o-s:y(r))>o)throw new K("Wrong length");B(this,{type:k,buffer:t,byteLength:r,byteOffset:s,bytes:n.bytes}),i||(this.buffer=t,this.byteLength=r,this.byteOffset=s)})[j],i&&(Z(I,"byteLength",L),Z(H,"buffer",C),Z(H,"byteLength",C),Z(H,"byteOffset",C)),f(F,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=tt(this,2,t,arguments.length>1&&arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return $(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return G(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return G(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,e){et(this,1,t,V,e)},setUint8:function(t,e){et(this,1,t,V,e)},setInt16:function(t,e){et(this,2,t,Y,e,arguments.length>2&&arguments[2])},setUint16:function(t,e){et(this,2,t,Y,e,arguments.length>2&&arguments[2])},setInt32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setUint32:function(t,e){et(this,4,t,J,e,arguments.length>2&&arguments[2])},setFloat32:function(t,e){et(this,4,t,Q,e,arguments.length>2&&arguments[2])},setFloat64:function(t,e){et(this,8,t,X,e,arguments.length>2&&arguments[2])}});E(I,P),E(H,k),t.exports={ArrayBuffer:I,DataView:H}},2730:function(t,e,r){"use strict";var n=r(4142),o=r(9895),i=r(314),s=r(4601),a=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),u=i(r),c=o(t,u),f=o(e,u),h=arguments.length>2?arguments[2]:void 0,p=a((void 0===h?u:o(h,u))-f,u-c),l=1;for(f<c&&c<f+p&&(l=-1,f+=p-1,c+=p-1);p-- >0;)f in r?r[c]=r[f]:s(r,c),c+=l,f+=l;return r}},5174:function(t,e,r){"use strict";var n=r(4142),o=r(9895),i=r(314);t.exports=function(t){for(var e=n(this),r=i(e),s=arguments.length,a=o(s>1?arguments[1]:void 0,r),u=s>2?arguments[2]:void 0,c=void 0===u?r:o(u,r);c>a;)e[a++]=t;return e}},5436:function(t,e,r){"use strict";var n=r(314);t.exports=function(t,e,r){for(var o=0,i=arguments.length>2?r:n(e),s=new t(i);i>o;)s[o]=e[o++];return s}},5143:function(t,e,r){"use strict";var n=r(2672),o=r(360),i=r(4142),s=r(6219),a=r(3324),u=r(2609),c=r(314),f=r(2455),h=r(7251),p=r(92),l=r(173),y=Array;t.exports=function(t){var e=i(t),r=u(this),v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d;g&&(d=n(d,v>2?arguments[2]:void 0));var b,m,w,x,A,S,E=l(e),T=0;if(!E||this===y&&a(E))for(b=c(e),m=r?new this(b):y(b);b>T;T++)S=g?d(e[T],T):e[T],f(m,T,S);else for(m=r?new this:[],A=(x=p(e,E)).next;!(w=o(A,x)).done;T++)S=g?s(x,d,[w.value,T],!0):w.value,f(m,T,S);return h(m,T),m}},2602:function(t,e,r){"use strict";var n=r(1100),o=r(9895),i=r(314),s=function(t){return function(e,r,s){var a=n(e),u=i(a);if(0===u)return!t&&-1;var c,f=o(s,u);if(t&&r!=r){for(;u>f;)if((c=a[f++])!=c)return!0}else for(;u>f;f++)if((t||f in a)&&a[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},3454:function(t,e,r){"use strict";var n=r(2672),o=r(6452),i=r(4142),s=r(314),a=function(t){var e=1===t;return function(r,a,u){for(var c,f=i(r),h=o(f),p=s(h),l=n(a,u);p-- >0;)if(l(c=h[p],p,f))switch(t){case 0:return c;case 1:return p}return e?-1:void 0}};t.exports={findLast:a(0),findLastIndex:a(1)}},4177:function(t,e,r){"use strict";var n=r(2672),o=r(6452),i=r(4142),s=r(314),a=r(6408),u=r(2455),c=function(t){var e=1===t,r=2===t,c=3===t,f=4===t,h=6===t,p=7===t,l=5===t||h;return function(y,v,d){for(var g,b,m=i(y),w=o(m),x=s(w),A=n(v,d),S=0,E=0,T=e?a(y,x):r||p?a(y,0):void 0;x>S;S++)if((l||S in w)&&(b=A(g=w[S],S,m),t))if(e)u(T,S,b);else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:u(T,E++,g)}else switch(t){case 4:return!1;case 7:u(T,E++,g)}return h?-1:c||f?f:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},8366:function(t,e,r){"use strict";var n=r(4283),o=r(1100),i=r(2076),s=r(314),a=r(4247),u=Math.min,c=[].lastIndexOf,f=!!c&&1/[1].lastIndexOf(1,-0)<0,h=a("lastIndexOf"),p=f||!h;t.exports=p?function(t){if(f)return n(c,this,arguments)||0;var e=o(this),r=s(e);if(0===r)return-1;var a=r-1;for(arguments.length>1&&(a=u(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:c},4247:function(t,e,r){"use strict";var n=r(3881);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},3129:function(t,e,r){"use strict";var n=r(2193),o=r(4142),i=r(6452),s=r(314),a=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,r,c,f){var h=o(e),p=i(h),l=s(h);if(n(r),0===l&&c<2)throw new a(u);var y=t?l-1:0,v=t?-1:1;if(c<2)for(;;){if(y in p){f=p[y],y+=v;break}if(y+=v,t?y<0:l<=y)throw new a(u)}for(;t?y>=0:l>y;y+=v)y in p&&(f=r(f,p[y],y,h));return f}};t.exports={left:c(!1),right:c(!0)}},7251:function(t,e,r){"use strict";var n=r(111),o=r(8700),i=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(o(t)&&!s(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},24:function(t,e,r){"use strict";var n=r(7620);t.exports=n([].slice)},3624:function(t,e,r){"use strict";var n=r(24),o=Math.floor,i=function(t,e){var r=t.length;if(r<8)for(var s,a,u=1;u<r;){for(a=u,s=t[u];a&&e(t[a-1],s)>0;)t[a]=t[--a];a!==u++&&(t[a]=s)}else for(var c=o(r/2),f=i(n(t,0,c),e),h=i(n(t,c),e),p=f.length,l=h.length,y=0,v=0;y<p||v<l;)t[y+v]=y<p&&v<l?e(f[y],h[v])<=0?f[y++]:h[v++]:y<p?f[y++]:h[v++];return t};t.exports=i},698:function(t,e,r){"use strict";var n=r(8700),o=r(2609),i=r(4425),s=r(8028)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===a||n(e.prototype))||i(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},6408:function(t,e,r){"use strict";var n=r(698);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},2201:function(t){"use strict";var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",n=e+"-_",o=function(t){for(var e={},r=0;r<64;r++)e[t.charAt(r)]=r;return e};t.exports={i2c:r,c2i:o(r),i2cUrl:n,c2iUrl:o(n)}},6219:function(t,e,r){"use strict";var n=r(6514),o=r(8055);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},3225:function(t,e,r){"use strict";var n=r(8028)("iterator"),o=!1;try{var i=0,s={next:function(){return{done:!!i++}},return:function(){o=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(t){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(t){return!1}var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},2231:function(t,e,r){"use strict";var n=r(7620),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},5089:function(t,e,r){"use strict";var n=r(7013),o=r(2379),i=r(2231),s=r(8028)("toStringTag"),a=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},8284:function(t,e,r){"use strict";var n=r(1381),o=r(2554),i=r(6921),s=r(2672),a=r(344),u=r(8207),c=r(1834),f=r(542),h=r(3789),p=r(3602),l=r(111),y=r(1314).fastKey,v=r(308),d=v.set,g=v.getterFor;t.exports={getConstructor:function(t,e,r,f){var h=t((function(t,o){a(t,p),d(t,{type:e,index:n(null),first:null,last:null,size:0}),l||(t.size=0),u(o)||c(o,t[f],{that:t,AS_ENTRIES:r})})),p=h.prototype,v=g(e),b=function(t,e,r){var n,o,i=v(t),s=m(t,e);return s?s.value=r:(i.last=s={index:o=y(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=s),n&&(n.next=s),l?i.size++:t.size++,"F"!==o&&(i.index[o]=s)),t},m=function(t,e){var r,n=v(t),o=y(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return i(p,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=n(null),l?t.size=0:this.size=0},delete:function(t){var e=this,r=v(e),n=m(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),l?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=v(this),n=s(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(p,r?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),l&&o(p,"size",{configurable:!0,get:function(){return v(this).size}}),h},setStrong:function(t,e,r){var n=e+" Iterator",o=g(e),i=g(n);f(t,e,(function(t,e){d(this,{type:n,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?h("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,h(void 0,!0))}),r?"entries":"values",!r,!0),p(e)}}},9721:function(t,e,r){"use strict";var n=r(413),o=r(9141),i=r(7620),s=r(7802),a=r(1767),u=r(1314),c=r(1834),f=r(344),h=r(2379),p=r(8207),l=r(4425),y=r(3881),v=r(3225),d=r(8621),g=r(6660);t.exports=function(t,e,r){var b=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),w=b?"set":"add",x=o[t],A=x&&x.prototype,S=x,E={},T=function(t){var e=i(A[t]);a(A,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(m&&!l(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return m&&!l(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(m&&!l(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(s(t,!h(x)||!(m||A.forEach&&!y((function(){(new x).entries().next()})))))S=r.getConstructor(e,t,b,w),u.enable();else if(s(t,!0)){var O=new S,R=O[w](m?{}:-0,1)!==O,P=y((function(){O.has(1)})),k=v((function(t){new x(t)})),j=!m&&y((function(){for(var t=new x,e=5;e--;)t[w](e,e);return!t.has(-0)}));k||((S=e((function(t,e){f(t,A);var r=g(new x,t,S);return p(e)||c(e,r[w],{that:r,AS_ENTRIES:b}),r}))).prototype=A,A.constructor=S),(P||j)&&(T("delete"),T("has"),b&&T("get")),(j||R)&&T(w),m&&A.clear&&delete A.clear}return E[t]=S,n({global:!0,constructor:!0,forced:S!==x},E),d(S,t),m||r.setStrong(S,t,b),S}},2154:function(t,e,r){"use strict";var n=r(7308),o=r(8145),i=r(8310),s=r(1128);t.exports=function(t,e,r){for(var a=o(e),u=s.f,c=i.f,f=0;f<a.length;f++){var h=a[f];n(t,h)||r&&n(r,h)||u(t,h,c(e,h))}}},581:function(t,e,r){"use strict";var n=r(8028)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},7369:function(t,e,r){"use strict";var n=r(3881);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},3789:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},7912:function(t,e,r){"use strict";var n=r(111),o=r(1128),i=r(489);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},489:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2455:function(t,e,r){"use strict";var n=r(111),o=r(1128),i=r(489);t.exports=function(t,e,r){n?o.f(t,e,i(0,r)):t[e]=r}},2554:function(t,e,r){"use strict";var n=r(4112),o=r(1128);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},1767:function(t,e,r){"use strict";var n=r(2379),o=r(1128),i=r(4112),s=r(2479);t.exports=function(t,e,r,a){a||(a={});var u=a.enumerable,c=void 0!==a.name?a.name:e;if(n(r)&&i(r,c,a),a.global)u?t[e]=r:s(e,r);else{try{a.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6921:function(t,e,r){"use strict";var n=r(1767);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},2479:function(t,e,r){"use strict";var n=r(9141),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},4601:function(t,e,r){"use strict";var n=r(1465),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+n(e)+" of "+n(t))}},111:function(t,e,r){"use strict";var n=r(3881);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4839:function(t,e,r){"use strict";var n=r(9141),o=r(4425),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},5500:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},390:function(t,e,r){"use strict";var n=r(4839)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},708:function(t,e,r){"use strict";var n=r(9141),o=r(7620);t.exports=function(t,e){return o(n[t].prototype[e])}},1013:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4735:function(t,e,r){"use strict";var n=r(7186).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},1958:function(t,e,r){"use strict";var n=r(7186);t.exports=/MSIE|Trident/.test(n)},2260:function(t,e,r){"use strict";var n=r(7186);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},5867:function(t,e,r){"use strict";var n=r(7186);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},3992:function(t,e,r){"use strict";var n=r(718);t.exports="NODE"===n},468:function(t,e,r){"use strict";var n=r(7186);t.exports=/web0s(?!.*chrome)/i.test(n)},7186:function(t,e,r){"use strict";var n=r(9141).navigator,o=n&&n.userAgent;t.exports=o?String(o):""},8691:function(t,e,r){"use strict";var n,o,i=r(9141),s=r(7186),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,f=c&&c.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},1392:function(t,e,r){"use strict";var n=r(7186).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},718:function(t,e,r){"use strict";var n=r(9141),o=r(7186),i=r(2231),s=function(t){return o.slice(0,t.length)===t};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},2499:function(t,e,r){"use strict";var n=r(7620),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(s);t.exports=function(t,e){if(u&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},1868:function(t,e,r){"use strict";var n=r(7912),o=r(2499),i=r(1286),s=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(s?s(t,e):n(t,"stack",o(r,a)))}},1286:function(t,e,r){"use strict";var n=r(3881),o=r(489);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},413:function(t,e,r){"use strict";var n=r(9141),o=r(8310).f,i=r(7912),s=r(1767),a=r(2479),u=r(2154),c=r(7802);t.exports=function(t,e){var r,f,h,p,l,y=t.target,v=t.global,d=t.stat;if(r=v?n:d?n[y]||a(y,{}):n[y]&&n[y].prototype)for(f in e){if(p=e[f],h=t.dontCallGetSet?(l=o(r,f))&&l.value:r[f],!c(v?f:y+(d?".":"#")+f,t.forced)&&void 0!==h){if(typeof p==typeof h)continue;u(p,h)}(t.sham||h&&h.sham)&&i(p,"sham",!0),s(r,f,p,t)}}},3881:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},4092:function(t,e,r){"use strict";var n=r(3881);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},4283:function(t,e,r){"use strict";var n=r(7586),o=Function.prototype,i=o.apply,s=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(i):function(){return s.apply(i,arguments)})},2672:function(t,e,r){"use strict";var n=r(9928),o=r(2193),i=r(7586),s=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?s(t,e):function(){return t.apply(e,arguments)}}},7586:function(t,e,r){"use strict";var n=r(3881);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},360:fu