@api.video/private-video-session
Version:
api.video private video session
2 lines • 54.6 kB
JavaScript
/*! For license information please see index.js.LICENSE.txt */
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(this,(function(){return function(){var t={2151:function(t){var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],r=0;r<t.length;r++)e.push(255&t.charCodeAt(r));return e},bytesToString:function(t){for(var e=[],r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}}};t.exports=e},3939:function(t){var e,r;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r<t.length;r++,n+=8)e[n>>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r<t.length;r++)e.push((t[r]>>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r<t.length;r+=2)e.push(parseInt(t.substr(r,2),16));return e},bytesToBase64:function(t){for(var r=[],n=0;n<t.length;n+=3)for(var o=t[n]<<16|t[n+1]<<8|t[n+2],i=0;i<4;i++)8*n+6*i<=8*t.length?r.push(e.charAt(o>>>6*(3-i)&63)):r.push("=");return r.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n<t.length;o=++n%4)0!=o&&r.push((e.indexOf(t.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|e.indexOf(t.charAt(n))>>>6-2*o);return r}},t.exports=r},7206:function(t){function e(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(e(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&e(t.slice(0,0))}(t)||!!t._isBuffer)}},3503:function(t,e,r){var n,o,i,s,c;n=r(3939),o=r(2151).utf8,i=r(7206),s=r(2151).bin,(c=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?s.stringToBytes(t):o.stringToBytes(t):i(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||t.constructor===Uint8Array||(t=t.toString());for(var r=n.bytesToWords(t),u=8*t.length,a=1732584193,f=-271733879,p=-1732584194,v=271733878,h=0;h<r.length;h++)r[h]=16711935&(r[h]<<8|r[h]>>>24)|4278255360&(r[h]<<24|r[h]>>>8);r[u>>>5]|=128<<u%32,r[14+(u+64>>>9<<4)]=u;var l=c._ff,d=c._gg,y=c._hh,g=c._ii;for(h=0;h<r.length;h+=16){var m=a,b=f,x=p,w=v;a=l(a,f,p,v,r[h+0],7,-680876936),v=l(v,a,f,p,r[h+1],12,-389564586),p=l(p,v,a,f,r[h+2],17,606105819),f=l(f,p,v,a,r[h+3],22,-1044525330),a=l(a,f,p,v,r[h+4],7,-176418897),v=l(v,a,f,p,r[h+5],12,1200080426),p=l(p,v,a,f,r[h+6],17,-1473231341),f=l(f,p,v,a,r[h+7],22,-45705983),a=l(a,f,p,v,r[h+8],7,1770035416),v=l(v,a,f,p,r[h+9],12,-1958414417),p=l(p,v,a,f,r[h+10],17,-42063),f=l(f,p,v,a,r[h+11],22,-1990404162),a=l(a,f,p,v,r[h+12],7,1804603682),v=l(v,a,f,p,r[h+13],12,-40341101),p=l(p,v,a,f,r[h+14],17,-1502002290),a=d(a,f=l(f,p,v,a,r[h+15],22,1236535329),p,v,r[h+1],5,-165796510),v=d(v,a,f,p,r[h+6],9,-1069501632),p=d(p,v,a,f,r[h+11],14,643717713),f=d(f,p,v,a,r[h+0],20,-373897302),a=d(a,f,p,v,r[h+5],5,-701558691),v=d(v,a,f,p,r[h+10],9,38016083),p=d(p,v,a,f,r[h+15],14,-660478335),f=d(f,p,v,a,r[h+4],20,-405537848),a=d(a,f,p,v,r[h+9],5,568446438),v=d(v,a,f,p,r[h+14],9,-1019803690),p=d(p,v,a,f,r[h+3],14,-187363961),f=d(f,p,v,a,r[h+8],20,1163531501),a=d(a,f,p,v,r[h+13],5,-1444681467),v=d(v,a,f,p,r[h+2],9,-51403784),p=d(p,v,a,f,r[h+7],14,1735328473),a=y(a,f=d(f,p,v,a,r[h+12],20,-1926607734),p,v,r[h+5],4,-378558),v=y(v,a,f,p,r[h+8],11,-2022574463),p=y(p,v,a,f,r[h+11],16,1839030562),f=y(f,p,v,a,r[h+14],23,-35309556),a=y(a,f,p,v,r[h+1],4,-1530992060),v=y(v,a,f,p,r[h+4],11,1272893353),p=y(p,v,a,f,r[h+7],16,-155497632),f=y(f,p,v,a,r[h+10],23,-1094730640),a=y(a,f,p,v,r[h+13],4,681279174),v=y(v,a,f,p,r[h+0],11,-358537222),p=y(p,v,a,f,r[h+3],16,-722521979),f=y(f,p,v,a,r[h+6],23,76029189),a=y(a,f,p,v,r[h+9],4,-640364487),v=y(v,a,f,p,r[h+12],11,-421815835),p=y(p,v,a,f,r[h+15],16,530742520),a=g(a,f=y(f,p,v,a,r[h+2],23,-995338651),p,v,r[h+0],6,-198630844),v=g(v,a,f,p,r[h+7],10,1126891415),p=g(p,v,a,f,r[h+14],15,-1416354905),f=g(f,p,v,a,r[h+5],21,-57434055),a=g(a,f,p,v,r[h+12],6,1700485571),v=g(v,a,f,p,r[h+3],10,-1894986606),p=g(p,v,a,f,r[h+10],15,-1051523),f=g(f,p,v,a,r[h+1],21,-2054922799),a=g(a,f,p,v,r[h+8],6,1873313359),v=g(v,a,f,p,r[h+15],10,-30611744),p=g(p,v,a,f,r[h+6],15,-1560198380),f=g(f,p,v,a,r[h+13],21,1309151649),a=g(a,f,p,v,r[h+4],6,-145523070),v=g(v,a,f,p,r[h+11],10,-1120210379),p=g(p,v,a,f,r[h+2],15,718787259),f=g(f,p,v,a,r[h+9],21,-343485551),a=a+m>>>0,f=f+b>>>0,p=p+x>>>0,v=v+w>>>0}return n.endian([a,f,p,v])})._ff=function(t,e,r,n,o,i,s){var c=t+(e&r|~e&n)+(o>>>0)+s;return(c<<i|c>>>32-i)+e},c._gg=function(t,e,r,n,o,i,s){var c=t+(e&n|r&~n)+(o>>>0)+s;return(c<<i|c>>>32-i)+e},c._hh=function(t,e,r,n,o,i,s){var c=t+(e^r^n)+(o>>>0)+s;return(c<<i|c>>>32-i)+e},c._ii=function(t,e,r,n,o,i,s){var c=t+(r^(e|~n))+(o>>>0)+s;return(c<<i|c>>>32-i)+e},c._blocksize=16,c._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(c(t,e));return e&&e.asBytes?r:e&&e.asString?s.bytesToString(r):n.bytesToHex(r)}},73:function(t,e,r){"use strict";r.r(e),r.d(e,{PrivateVideoSession:function(){return s}});var n=r(3503),o=r.n(n),i=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{u(n.next(t))}catch(t){i(t)}}function c(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,c)}u((n=n.apply(t,e||[])).next())}))};class s{constructor(t){this.domains=t.domains||{};const e=(t=>t&&"assetUrl"in t)(t)?this.initFromAssetUrl(t.assetUrl):this.initFromToken(t.token,t.videoId);if(this.videoId=e.videoId,this.privateToken=e.privateToken,this.environment=e.environment||"production",this.videoType=e.videoType||"vod",Object.keys(this.domains).length>0&&!this.domains[this.videoType])throw new Error(`The ${this.videoType} domain is required when using ${this.videoType} assets with custom domains.`)}getHlsUrl(){return i(this,void 0,void 0,(function*(){return"vod"===this.videoType?`https://${this.getMediaHost()}/vod/${this.videoId}/token/${this.privateToken}/hls/manifest.m3u8?avh=${yield this.getSessionToken()}`:`https://${this.getMediaHost()}/private/${this.privateToken}/${this.videoId}.m3u8?avh=${yield this.getSessionToken()}`}))}getPlayerUrl(){return i(this,void 0,void 0,(function*(){return`https://${this.getEmbedHost()}/${this.videoType}/${this.videoId}?token=${this.privateToken}&avh=${yield this.getSessionToken()}`}))}getMp4Url(){return i(this,void 0,void 0,(function*(){if("live"===this.videoType)throw new Error("The mp4 url is not available for live streams.");return`https://${this.getMediaHost()}/vod/${this.videoId}/token/${this.privateToken}/mp4/source.mp4?avh=${yield this.getSessionToken()}`}))}getThumbnailUrl(){return i(this,void 0,void 0,(function*(){return"vod"===this.videoType?`https://${this.getMediaHost()}/vod/${this.videoId}/token/${this.privateToken}/thumbnail.jpg?avh=${yield this.getSessionToken()}`:`https://${this.getMediaHost()}/private/${this.privateToken}/${this.videoId}/thumbnail.jpg?avh=${yield this.getSessionToken()}`}))}getSessionToken(){return i(this,void 0,void 0,(function*(){if(this.sessionToken)return this.sessionToken;const t=o()(`xTokenSession_${this.privateToken}`),e=sessionStorage.getItem(t);if(e)return this.sessionToken=e,e;const r=yield this.fetchSessionToken();return r&&(sessionStorage.setItem(t,r),this.sessionToken=r),r}))}getEmbedHost(){return this.domains.embed?this.domains.embed:"production"===this.environment?"embed.api.video":"embed.staging.api.video"}getMediaHost(){return this.domains[this.videoType]?this.domains[this.videoType]:"production"===this.environment?`${this.videoType}.api.video`:`${this.videoType}.staging.api.video`}initFromAssetUrl(t){var e;const r=[{re:new RegExp(`https://${this.domains.vod||"vod.api.video"}/vod/(?<videoId>[^/]*)/token/(?<privateToken>[^/]*)/.*`,"gm"),type:"vod",env:"production"},{re:new RegExp(`https://${this.domains.vod||"vod.staging.api.video"}/vod/(?<videoId>[^/]*)/token/(?<privateToken>[^/]*)/.*`,"gm"),type:"vod",env:"staging"},{re:new RegExp(`https://${this.domains.embed||"embed.api.video"}/vod/(?<videoId>[^/]*)\\?token=(?<privateToken>[^/]*)`,"gm"),type:"vod",env:"production"},{re:new RegExp(`https://${this.domains.embed||"embed.staging.api.video"}/vod/(?<videoId>[^/]*)\\?token=(?<privateToken>[^/]*)`,"gm"),type:"vod",env:"staging"},{re:new RegExp(`https://${this.domains.live||"live.api.video"}/private/(?<privateToken>[^/]*)/(?<videoId>[^.]*)..*`,"gm"),type:"live",env:"production"},{re:new RegExp(`https://${this.domains.live||"live.staging.api.video"}/private/(?<privateToken>[^/]*)/(?<videoId>[^.]*)..*`,"gm"),type:"live",env:"staging"},{re:new RegExp(`https://${this.domains.embed||"embed.api.video"}/live/(?<videoId>[^/]*)\\?token=(?<privateToken>[^/]*)`,"gm"),type:"live",env:"production"},{re:new RegExp(`https://${this.domains.embed||"embed.staging.api.video"}/live/(?<videoId>[^/]*)\\?token=(?<privateToken>[^/]*)`,"gm"),type:"live",env:"staging"}];for(const n of r){const r=n.re.exec(t);if((null===(e=null==r?void 0:r.groups)||void 0===e?void 0:e.videoId)&&r.groups.privateToken)return{videoId:r.groups.videoId,privateToken:r.groups.privateToken,environment:n.env,videoType:n.type}}throw new Error("The provided URL doesn't look like an api.video private asset URL.")}initFromToken(t,e){if(!t||!e)throw new Error("The provided token and videoId are invalid.");return{videoId:e,privateToken:t}}fetchSessionToken(){return i(this,void 0,void 0,(function*(){const t=yield fetch("vod"===this.videoType?`https://${this.getMediaHost()}/vod/${this.videoId}/token/${this.privateToken}/session`:`https://${this.getMediaHost()}/private/${this.privateToken}/${this.videoId}/session`);if(200!==t.status)throw new Error("Can't retrieve a session token. The private token has probably already been used.");return(yield t.json()).session_token}))}}},3855:function(t,e,r){!function(t){var e=function(){try{return!!Symbol.iterator}catch(t){return!1}}(),r=function(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e&&(r[Symbol.iterator]=function(){return r}),r},n=function(t){return encodeURIComponent(t).replace(/%20/g,"+")},o=function(t){return decodeURIComponent(String(t).replace(/\+/g," "))};(function(){try{var e=t.URLSearchParams;return"a=1"===new e("?a=1").toString()&&"function"==typeof e.prototype.set&&"function"==typeof e.prototype.entries}catch(t){return!1}})()||function(){var o=function(t){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var e=typeof t;if("undefined"===e);else if("string"===e)""!==t&&this._fromString(t);else if(t instanceof o){var r=this;t.forEach((function(t,e){r.append(e,t)}))}else{if(null===t||"object"!==e)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(t))for(var n=0;n<t.length;n++){var i=t[n];if("[object Array]"!==Object.prototype.toString.call(i)&&2===i.length)throw new TypeError("Expected [string, any] as entry at index "+n+" of URLSearchParams's input");this.append(i[0],i[1])}else for(var s in t)t.hasOwnProperty(s)&&this.append(s,t[s])}},i=o.prototype;i.append=function(t,e){t in this._entries?this._entries[t].push(String(e)):this._entries[t]=[String(e)]},i.delete=function(t){delete this._entries[t]},i.get=function(t){return t in this._entries?this._entries[t][0]:null},i.getAll=function(t){return t in this._entries?this._entries[t].slice(0):[]},i.has=function(t){return t in this._entries},i.set=function(t,e){this._entries[t]=[String(e)]},i.forEach=function(t,e){var r;for(var n in this._entries)if(this._entries.hasOwnProperty(n)){r=this._entries[n];for(var o=0;o<r.length;o++)t.call(e,r[o],n,this)}},i.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),r(t)},i.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),r(t)},i.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),r(t)},e&&(i[Symbol.iterator]=i.entries),i.toString=function(){var t=[];return this.forEach((function(e,r){t.push(n(r)+"="+n(e))})),t.join("&")},t.URLSearchParams=o}();var i=t.URLSearchParams.prototype;"function"!=typeof i.sort&&(i.sort=function(){var t=this,e=[];this.forEach((function(r,n){e.push([n,r]),t._entries||t.delete(n)})),e.sort((function(t,e){return t[0]<e[0]?-1:t[0]>e[0]?1:0})),t._entries&&(t._entries={});for(var r=0;r<e.length;r++)this.append(e[r][0],e[r][1])}),"function"!=typeof i._fromString&&Object.defineProperty(i,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(t){if(this._entries)this._entries={};else{var e=[];this.forEach((function(t,r){e.push(r)}));for(var r=0;r<e.length;r++)this.delete(e[r])}var n,i=(t=t.replace(/^\?/,"")).split("&");for(r=0;r<i.length;r++)n=i[r].split("="),this.append(o(n[0]),n.length>1?o(n[1]):"")}})}(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(t){var e,r,n;if(function(){try{var e=new t.URL("b","http://a");return e.pathname="c d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}()||(e=t.URL,r=function(e,r){"string"!=typeof e&&(e=String(e)),r&&"string"!=typeof r&&(r=String(r));var n,o=document;if(r&&(void 0===t.location||r!==t.location.href)){r=r.toLowerCase(),(n=(o=document.implementation.createHTMLDocument("")).createElement("base")).href=r,o.head.appendChild(n);try{if(0!==n.href.indexOf(r))throw new Error(n.href)}catch(t){throw new Error("URL unable to set base "+r+" due to "+t)}}var i=o.createElement("a");i.href=e,n&&(o.body.appendChild(i),i.href=i.href);var s=o.createElement("input");if(s.type="url",s.value=e,":"===i.protocol||!/:/.test(i.href)||!s.checkValidity()&&!r)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:i});var c=new t.URLSearchParams(this.search),u=!0,a=!0,f=this;["append","delete","set"].forEach((function(t){var e=c[t];c[t]=function(){e.apply(c,arguments),u&&(a=!1,f.search=c.toString(),a=!0)}})),Object.defineProperty(this,"searchParams",{value:c,enumerable:!0});var p=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==p&&(p=this.search,a&&(u=!1,this.searchParams._fromString(this.search),u=!0))}})},n=r.prototype,["hash","host","hostname","port","protocol"].forEach((function(t){!function(t){Object.defineProperty(n,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})}(t)})),Object.defineProperty(n,"search",{get:function(){return this._anchorElement.search},set:function(t){this._anchorElement.search=t,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(n,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0}}),r.createObjectURL=function(t){return e.createObjectURL.apply(e,arguments)},r.revokeObjectURL=function(t){return e.revokeObjectURL.apply(e,arguments)},t.URL=r),void 0!==t.location&&!("origin"in t.location)){var o=function(){return t.location.protocol+"//"+t.location.hostname+(t.location.port?":"+t.location.port:"")};try{Object.defineProperty(t.location,"origin",{get:o,enumerable:!0})}catch(e){setInterval((function(){t.location.origin=o()}),100)}}}(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},6398:function(t,e,r){"use strict";r(67),r(3792),r(6099),r(3362),r(6167),r(3518),r(4628),r(9391),r(7764);var n=r(9167);t.exports=n.Promise},9306:function(t,e,r){"use strict";var n=r(4901),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},5548:function(t,e,r){"use strict";var n=r(3517),o=r(6823),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a constructor")}},3506:function(t,e,r){"use strict";var n=r(3925),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},6469:function(t,e,r){"use strict";var n=r(8227),o=r(2360),i=r(4913).f,s=n("unscopables"),c=Array.prototype;void 0===c[s]&&i(c,s,{configurable:!0,value:o(null)}),t.exports=function(t){c[s][t]=!0}},679:function(t,e,r){"use strict";var n=r(1625),o=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new o("Incorrect invocation")}},8551:function(t,e,r){"use strict";var n=r(34),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,r){"use strict";var n=r(5397),o=r(5610),i=r(6198),s=function(t){return function(e,r,s){var c=n(e),u=i(c);if(0===u)return!t&&-1;var a,f=o(s,u);if(t&&r!=r){for(;u>f;)if((a=c[f++])!=a)return!0}else for(;u>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},7680:function(t,e,r){"use strict";var n=r(9504);t.exports=n([].slice)},4428:function(t,e,r){"use strict";var n=r(8227)("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}},4576:function(t,e,r){"use strict";var n=r(9504),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},6955:function(t,e,r){"use strict";var n=r(2140),o=r(4901),i=r(4576),s=r(8227)("toStringTag"),c=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=c(t),s))?r:u?i(e):"Object"===(n=i(e))&&o(e.callee)?"Arguments":n}},7740:function(t,e,r){"use strict";var n=r(9297),o=r(5031),i=r(7347),s=r(4913);t.exports=function(t,e,r){for(var c=o(e),u=s.f,a=i.f,f=0;f<c.length;f++){var p=c[f];n(t,p)||r&&n(r,p)||u(t,p,a(e,p))}}},2211:function(t,e,r){"use strict";var n=r(9039);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,r){"use strict";var n=r(3724),o=r(4913),i=r(6980);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2106:function(t,e,r){"use strict";var n=r(283),o=r(4913);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)}},6840:function(t,e,r){"use strict";var n=r(4901),o=r(4913),i=r(283),s=r(9433);t.exports=function(t,e,r,c){c||(c={});var u=c.enumerable,a=void 0!==c.name?c.name:e;if(n(r)&&i(r,a,c),c.global)u?t[e]=r:s(e,r);else{try{c.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},9433:function(t,e,r){"use strict";var n=r(4475),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}},3724:function(t,e,r){"use strict";var n=r(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,r){"use strict";var n=r(4475),o=r(34),i=n.document,s=o(i)&&o(i.createElement);t.exports=function(t){return s?i.createElement(t):{}}},7400: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}},9296:function(t,e,r){"use strict";var n=r(4055)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},7290:function(t,e,r){"use strict";var n=r(516),o=r(9088);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},516:function(t){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},28:function(t,e,r){"use strict";var n=r(9392);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},8119:function(t,e,r){"use strict";var n=r(9392);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},9088:function(t,e,r){"use strict";var n=r(4475),o=r(4576);t.exports="process"===o(n.process)},6765:function(t,e,r){"use strict";var n=r(9392);t.exports=/web0s(?!.*chrome)/i.test(n)},9392:function(t){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(t,e,r){"use strict";var n,o,i=r(4475),s=r(9392),c=i.process,u=i.Deno,a=c&&c.versions||u&&u.version,f=a&&a.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},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6193:function(t,e,r){"use strict";var n=r(9504),o=Error,i=n("".replace),s=String(new o("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(s);t.exports=function(t,e){if(u&&"string"==typeof t&&!o.prepareStackTrace)for(;e--;)t=i(t,c,"");return t}},747:function(t,e,r){"use strict";var n=r(6699),o=r(6193),i=r(4659),s=Error.captureStackTrace;t.exports=function(t,e,r,c){i&&(s?s(t,e):n(t,"stack",o(r,c)))}},4659:function(t,e,r){"use strict";var n=r(9039),o=r(6980);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},6518:function(t,e,r){"use strict";var n=r(4475),o=r(7347).f,i=r(6699),s=r(6840),c=r(9433),u=r(7740),a=r(2796);t.exports=function(t,e){var r,f,p,v,h,l=t.target,d=t.global,y=t.stat;if(r=d?n:y?n[l]||c(l,{}):n[l]&&n[l].prototype)for(f in e){if(v=e[f],p=t.dontCallGetSet?(h=o(r,f))&&h.value:r[f],!a(d?f:l+(y?".":"#")+f,t.forced)&&void 0!==p){if(typeof v==typeof p)continue;u(v,p)}(t.sham||p&&p.sham)&&i(v,"sham",!0),s(r,f,v,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},8745:function(t,e,r){"use strict";var n=r(616),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)})},6080:function(t,e,r){"use strict";var n=r(7476),o=r(9306),i=r(616),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)}}},616:function(t,e,r){"use strict";var n=r(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,r){"use strict";var n=r(616),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,e,r){"use strict";var n=r(3724),o=r(9297),i=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),u=c&&"something"===function(){}.name,a=c&&(!n||n&&s(i,"name").configurable);t.exports={EXISTS:c,PROPER:u,CONFIGURABLE:a}},6706:function(t,e,r){"use strict";var n=r(9504),o=r(9306);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},7476:function(t,e,r){"use strict";var n=r(4576),o=r(9504);t.exports=function(t){if("Function"===n(t))return o(t)}},9504:function(t,e,r){"use strict";var n=r(616),o=Function.prototype,i=o.call,s=n&&o.bind.bind(i,i);t.exports=n?s:function(t){return function(){return i.apply(t,arguments)}}},7751:function(t,e,r){"use strict";var n=r(4475),o=r(4901);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},851:function(t,e,r){"use strict";var n=r(6955),o=r(5966),i=r(4117),s=r(6269),c=r(8227)("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||s[n(t)]}},81:function(t,e,r){"use strict";var n=r(9565),o=r(9306),i=r(8551),s=r(6823),c=r(851),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?c(t):e;if(o(r))return i(n(r,t));throw new u(s(t)+" is not iterable")}},5966:function(t,e,r){"use strict";var n=r(9306),o=r(4117);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},4475:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,r){"use strict";var n=r(9504),o=r(8981),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){"use strict";t.exports={}},3138:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:function(t,e,r){"use strict";var n=r(7751);t.exports=n("document","documentElement")},5917:function(t,e,r){"use strict";var n=r(3724),o=r(9039),i=r(4055);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(4576),s=Object,c=n("".split);t.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?c(t,""):s(t)}:s},3706:function(t,e,r){"use strict";var n=r(9504),o=r(4901),i=r(7629),s=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return s(t)}),t.exports=i.inspectSource},7584:function(t,e,r){"use strict";var n=r(34),o=r(6699);t.exports=function(t,e){n(e)&&"cause"in e&&o(t,"cause",e.cause)}},1181:function(t,e,r){"use strict";var n,o,i,s=r(8622),c=r(4475),u=r(34),a=r(6699),f=r(9297),p=r(7629),v=r(6119),h=r(421),l="Object already initialized",d=c.TypeError,y=c.WeakMap;if(s||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new d(l);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},i=function(t){return g.has(t)}}else{var m=v("state");h[m]=!0,n=function(t,e){if(f(t,m))throw new d(l);return e.facade=t,a(t,m,e),e},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},4209:function(t,e,r){"use strict";var n=r(8227),o=r(6269),i=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||s[i]===t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(6955),c=r(7751),u=r(3706),a=function(){},f=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,v=n(p.exec),h=!p.test(a),l=function(t){if(!i(t))return!1;try{return f(a,[],t),!0}catch(t){return!1}},d=function(t){if(!i(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!v(p,u(t))}catch(t){return!0}};d.sham=!0,t.exports=!f||o((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?d:l},2796:function(t,e,r){"use strict";var n=r(9039),o=r(4901),i=/#|\.prototype\./,s=function(t,e){var r=u[c(t)];return r===f||r!==a&&(o(e)?n(e):!!e)},c=s.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=s.data={},a=s.NATIVE="N",f=s.POLYFILL="P";t.exports=s},4117:function(t){"use strict";t.exports=function(t){return null==t}},34:function(t,e,r){"use strict";var n=r(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},3925:function(t,e,r){"use strict";var n=r(34);t.exports=function(t){return n(t)||null===t}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,r){"use strict";var n=r(7751),o=r(4901),i=r(1625),s=r(7040),c=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,c(t))}},2652:function(t,e,r){"use strict";var n=r(6080),o=r(9565),i=r(8551),s=r(6823),c=r(4209),u=r(6198),a=r(1625),f=r(81),p=r(851),v=r(9539),h=TypeError,l=function(t,e){this.stopped=t,this.result=e},d=l.prototype;t.exports=function(t,e,r){var y,g,m,b,x,w,S,T=r&&r.that,j=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),E=!(!r||!r.IS_ITERATOR),k=!(!r||!r.INTERRUPTED),P=n(e,T),_=function(t){return y&&v(y,"normal",t),new l(!0,t)},R=function(t){return j?(i(t),k?P(t[0],t[1],_):P(t[0],t[1])):k?P(t,_):P(t)};if(O)y=t.iterator;else if(E)y=t;else{if(!(g=p(t)))throw new h(s(t)+" is not iterable");if(c(g)){for(m=0,b=u(t);b>m;m++)if((x=R(t[m]))&&a(d,x))return x;return new l(!1)}y=f(t,g)}for(w=O?t.next:y.next;!(S=o(w,y)).done;){try{x=R(S.value)}catch(t){v(y,"throw",t)}if("object"==typeof x&&x&&a(d,x))return x}return new l(!1)}},9539:function(t,e,r){"use strict";var n=r(9565),o=r(8551),i=r(5966);t.exports=function(t,e,r){var s,c;o(t);try{if(!(s=i(t,"return"))){if("throw"===e)throw r;return r}s=n(s,t)}catch(t){c=!0,s=t}if("throw"===e)throw r;if(c)throw s;return o(s),r}},3994:function(t,e,r){"use strict";var n=r(7657).IteratorPrototype,o=r(2360),i=r(6980),s=r(687),c=r(6269),u=function(){return this};t.exports=function(t,e,r,a){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!a,r)}),s(t,f,!1,!0),c[f]=u,t}},1088:function(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(6395),s=r(350),c=r(4901),u=r(3994),a=r(2787),f=r(2967),p=r(687),v=r(6699),h=r(6840),l=r(8227),d=r(6269),y=r(7657),g=s.PROPER,m=s.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=l("iterator"),S="keys",T="values",j="entries",O=function(){return this};t.exports=function(t,e,r,s,l,y,E){u(r,e,s);var k,P,_,R=function(t){if(t===l&&U)return U;if(!x&&t&&t in A)return A[t];switch(t){case S:case T:case j:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",L=!1,A=t.prototype,C=A[w]||A["@@iterator"]||l&&A[l],U=!x&&C||R(l),$="Array"===e&&A.entries||C;if($&&(k=a($.call(new t)))!==Object.prototype&&k.next&&(i||a(k)===b||(f?f(k,b):c(k[w])||h(k,w,O)),p(k,I,!0,!0),i&&(d[I]=O)),g&&l===T&&C&&C.name!==T&&(!i&&m?v(A,"name",T):(L=!0,U=function(){return o(C,this)})),l)if(P={values:R(T),keys:y?U:R(S),entries:R(j)},E)for(_ in P)(x||L||!(_ in A))&&h(A,_,P[_]);else n({target:e,proto:!0,forced:x||L},P);return i&&!E||A[w]===U||h(A,w,U,{name:l}),d[e]=U,P}},7657:function(t,e,r){"use strict";var n,o,i,s=r(9039),c=r(4901),u=r(34),a=r(2360),f=r(2787),p=r(6840),v=r(8227),h=r(6395),l=v("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):d=!0),!u(n)||s((function(){var t={};return n[l].call(t)!==t}))?n={}:h&&(n=a(n)),c(n[l])||p(n,l,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,r){"use strict";var n=r(8014);t.exports=function(t){return n(t.length)}},283:function(t,e,r){"use strict";var n=r(9504),o=r(9039),i=r(4901),s=r(9297),c=r(3724),u=r(350).CONFIGURABLE,a=r(3706),f=r(1181),p=f.enforce,v=f.get,h=String,l=Object.defineProperty,d=n("".slice),y=n("".replace),g=n([].join),m=c&&!o((function(){return 8!==l((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,e,r){"Symbol("===d(h(e),0,7)&&(e="["+y(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!s(t,"name")||u&&t.name!==e)&&(c?l(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&s(r,"arity")&&t.length!==r.arity&&l(t,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?c&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=p(t);return s(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&v(this).source||a(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},1955:function(t,e,r){"use strict";var n,o,i,s,c,u=r(4475),a=r(3389),f=r(6080),p=r(9225).set,v=r(8265),h=r(8119),l=r(28),d=r(6765),y=r(9088),g=u.MutationObserver||u.WebKitMutationObserver,m=u.document,b=u.process,x=u.Promise,w=a("queueMicrotask");if(!w){var S=new v,T=function(){var t,e;for(y&&(t=b.domain)&&t.exit();e=S.get();)try{e()}catch(t){throw S.head&&n(),t}t&&t.enter()};h||y||d||!g||!m?!l&&x&&x.resolve?((s=x.resolve(void 0)).constructor=x,c=f(s.then,s),n=function(){c(T)}):y?n=function(){b.nextTick(T)}:(p=f(p,u),n=function(){p(T)}):(o=!0,i=m.createTextNode(""),new g(T).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),w=function(t){S.head||n(),S.add(t)}}t.exports=w},6043:function(t,e,r){"use strict";var n=r(9306),o=TypeError,i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw new o("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},2603:function(t,e,r){"use strict";var n=r(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},2360:function(t,e,r){"use strict";var n,o=r(8551),i=r(6801),s=r(8727),c=r(421),u=r(397),a=r(4055),f=r(6119),p="prototype",v="script",h=f("IE_PROTO"),l=function(){},d=function(t){return"<"+v+">"+t+"</"+v+">"},y=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?y(n):(e=a("iframe"),r="java"+v+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):y(n);for(var o=s.length;o--;)delete g[p][s[o]];return g()};c[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(l[p]=o(t),r=new l,l[p]=null,r[h]=t):r=g(),void 0===e?r:i.f(r,e)}},6801:function(t,e,r){"use strict";var n=r(3724),o=r(8686),i=r(4913),s=r(8551),c=r(5397),u=r(1072);e.f=n&&!o?Object.defineProperties:function(t,e){s(t);for(var r,n=c(e),o=u(e),a=o.length,f=0;a>f;)i.f(t,r=o[f++],n[r]);return t}},4913:function(t,e,r){"use strict";var n=r(3724),o=r(5917),i=r(8686),s=r(8551),c=r(6969),u=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",v="configurable",h="writable";e.f=n?i?function(t,e,r){if(s(t),e=c(e),s(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=f(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:v in r?r[v]:n[v],enumerable:p in r?r[p]:n[p],writable:!1})}return a(t,e,r)}:a:function(t,e,r){if(s(t),e=c(e),s(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},7347:function(t,e,r){"use strict";var n=r(3724),o=r(9565),i=r(8773),s=r(6980),c=r(5397),u=r(6969),a=r(9297),f=r(5917),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=c(t),e=u(e),f)try{return p(t,e)}catch(t){}if(a(t,e))return s(!o(i.f,t,e),t[e])}},8480:function(t,e,r){"use strict";var n=r(1828),o=r(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,r){"use strict";var n=r(9297),o=r(4901),i=r(8981),s=r(6119),c=r(2211),u=s("IE_PROTO"),a=Object,f=a.prototype;t.exports=c?a.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof a?f:null}},1625:function(t,e,r){"use strict";var n=r(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,r){"use strict";var n=r(9504),o=r(9297),i=r(5397),s=r(9617).indexOf,c=r(421),u=n([].push);t.exports=function(t,e){var r,n=i(t),a=0,f=[];for(r in n)!o(c,r)&&o(n,r)&&u(f,r);for(;e.length>a;)o(n,r=e[a++])&&(~s(f,r)||u(f,r));return f}},1072:function(t,e,r){"use strict";var n=r(1828),o=r(8727);t.exports=Object.keys||function(t){return n(t,o)}},8773:function(t,e){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},2967:function(t,e,r){"use strict";var n=r(6706),o=r(34),i=r(7750),s=r(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return i(r),s(n),o(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0)},3179:function(t,e,r){"use strict";var n=r(2140),o=r(6955);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},4270:function(t,e,r){"use strict";var n=r(9565),o=r(4901),i=r(34),s=TypeError;t.exports=function(t,e){var r,c;if("string"===e&&o(r=t.toString)&&!i(c=n(r,t)))return c;if(o(r=t.valueOf)&&!i(c=n(r,t)))return c;if("string"!==e&&o(r=t.toString)&&!i(c=n(r,t)))return c;throw new s("Can't convert object to primitive value")}},5031:function(t,e,r){"use strict";var n=r(7751),o=r(9504),i=r(8480),s=r(3717),c=r(8551),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(c(t)),r=s.f;return r?u(e,r(t)):e}},9167:function(t,e,r){"use strict";var n=r(4475);t.exports=n},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:function(t,e,r){"use strict";var n=r(4475),o=r(550),i=r(4901),s=r(2796),c=r(3706),u=r(8227),a=r(7290),f=r(516),p=r(6395),v=r(7388),h=o&&o.prototype,l=u("species"),d=!1,y=i(n.PromiseRejectionEvent),g=s("Promise",(function(){var t=c(o),e=t!==String(o);if(!e&&66===v)return!0;if(p&&(!h.catch||!h.finally))return!0;if(!v||v<51||!/native code/.test(t)){var r=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[l]=n,!(d=r.then((function(){}))instanceof n))return!0}return!e&&(a||f)&&!y}));t.exports={CONSTRUCTOR:g,REJECTION_EVENT:y,SUBCLASSING:d}},550:function(t,e,r){"use strict";var n=r(4475);t.exports=n.Promise},3438:function(t,e,r){"use strict";var n=r(8551),o=r(34),i=r(6043);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},537:function(t,e,r){"use strict";var n=r(550),o=r(4428),i=r(916).CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},8265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},7750:function(t,e,r){"use strict";var n=r(4117),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},3389:function(t,e,r){"use strict";var n=r(4475),o=r(3724),i=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!o)return n[t];var e=i(n,t);return e&&e.value}},7633:function(t,e,r){"use strict";var n=r(7751),o=r(2106),i=r(8227),s=r(3724),c=i("species");t.exports=function(t){var e=n(t);s&&e&&!e[c]&&o(e,c,{configurable:!0,get:function(){return this}})}},687:function(t,e,r){"use strict";var n=r(4913).f,o=r(9297),i=r(8227)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},6119:function(t,e,r){"use strict";var n=r(5745),o=r(3392),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,r){"use strict";var n=r(6395),o=r(4475),i=r(9433),s="__core-js_shared__",c=t.exports=o[s]||i(s,{});(c.versions||(c.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,r){"use strict";var n=r(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},2293:function(t,e,r){"use strict";var n=r(8551),o=r(5548),i=r(4117),s=r(8227)("species");t.exports=function(t,e){var r,c=n(t).constructor;return void 0===c||i(r=n(c)[s])?e:o(r)}},8183:function(t,e,r){"use strict";var n=r(9504),o=r(1291),i=r(655),s=r(7750),c=n("".charAt),u=n("".charCodeAt),a=n("".slice),f=function(t){return function(e,r){var n,f,p=i(s(e)),v=o(r),h=p.length;return v<0||v>=h?t?"":void 0:(n=u(p,v))<55296||n>56319||v+1===h||(f=u(p,v+1))<56320||f>57343?t?c(p,v):n:t?a(p,v,v+2):f-56320+(n-55296<<10)+65536}};t.exports={codeAt:f(!1),charAt:f(!0)}},4495:function(t,e,r){"use strict";var n=r(7388),o=r(9039),i=r(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9225:function(t,e,r){"use strict";var n,o,i,s,c=r(4475),u=r(8745),a=r(6080),f=r(4901),p=r(9297),v=r(9039),h=r(397),l=r(7680),d=r(4055),y=r(2812),g=r(8119),m=r(9088),b=c.setImmediate,x=c.clearImmediate,w=c.process,S=c.Dispatch,T=c.Function,j=c.MessageChannel,O=c.String,E=0,k={},P="onreadystatechange";v((function(){n=c.location}));var _=function(t){if(p(k,t)){var e=k[t];delete k[t],e()}},R=function(t){return function(){_(t)}},I=function(t){_(t.data)},L=function(t){c.postMessage(O(t),n.protocol+"//"+n.host)};b&&x||(b=function(t){y(arguments.length,1);var e=f(t)?t:T(t),r=l(arguments,1);return k[++E]=function(){u(e,void 0,r)},o(E),E},x=function(t){delete k[t]},m?o=function(t){w.nextTick(R(t))}:S&&S.now?o=function(t){S.now(R(t))}:j&&!g?(s=(i=new j).port2,i.port1.onmessage=I,o=a(s.postMessage,s)):c.addEventListener&&f(c.postMessage)&&!c.importScripts&&n&&"file:"!==n.protocol&&!v(L)?(o=L,c.addEventListener("message",I,!1)):o=P in d("script")?function(t){h.appendChild(d("script"))[P]=function(){h.removeChild(this),_(t)}}:function(t){setTimeout(R(t),0)}),t.exports={set:b,clear:x}},5610:function(t,e,r){"use strict";var n=r(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},5397:function(t,e,r){"use strict";var n=r(7055),o=r(7750);t.exports=function(t){return n(o(t))}},1291:function(t,e,r){"use strict";var n=r(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8014:function(t,e,r){"use strict";var n=r(1291),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},8981:function(t,e,r){"use strict";var n=r(7750),o=Object;t.exports=function(t){return o(n(t))}},2777:function(t,e,r){"use strict";var n=r(9565),o=r(34),i=r(757),s=r(5966),c=r(4270),u=r(8227),a=TypeError,f=u("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,u=s(t,f);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!o(r)||i(r))return r;throw new a("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},6969:function(t,e,r){"use strict";var n=r(2777),o=r(757);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},2140:function(t,e,r){"use strict";var n={};n[r(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},655:function(t,e,r){"use strict";var n=r(6955),o=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return o(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,r){"use strict";var n=r(9504),o=0,i=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++o+i,36)}},7040:function(t,e,r){"use strict";var n=r(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,r){"use strict";var n=r(3724),o=r(9039);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,r){if(t<r)throw new e("Not enough arguments");return t}},8622:function(t,e,r){"use strict";var n=r(4475),o=r(4901),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8227:function(t,e,r){"use strict";var n=r(4475),o=r(5745),i=r(9297),s=r(3392),c=r(4495),u=r(7040),a=n.Symbol,f=o("wks"),p=u?a.for||a:a&&a.withoutSetter||s;t.exports=function(t){return i(f,t)||(f[t]=c&&i(a,t)?a[t]:p("Symbol."+t)),f[t]}},7145:function(t,e,r){"use strict";var n=r(6518),o=r(1625),i=r(2787),s=r(2967),c=r(7740),u=r(2360),a=r(6699),f=r(6980),p=r(7584),v=r(747),h=r(2652),l=r(2603),d=r(8227)("toStringTag"),y=Error,g=[].push,m=function(t,e){var r,n=o(b,this);s?r=s(new y,n?i(this):b):(r=n?this:u(b),a(r,d,"Error")),void 0!==e&&a(r,"message",l(e)),v(r,m,r.stack,1),arguments.length>2&&p(r,arguments[2]);var c=[];return h(t,g,{that:c}),a(r,"errors",c),r};s?s(m,y):c(m,y,{name:!0});var b=m.prototype=u(y.prototype,{constructor:f(1,m),message:f(1,""),name:f(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:m})},67:function(t,e,r){"use strict";r(7145)},3792:function(t,e,r){"use strict";var n=r(5397),o=r(6469),i=r(6269),s=r(1181),c=r(4913).f,u=r(1088),a=r(2529),f=r(6395),p=r(3724),v="Array Iterator",h=s.set,l=s.getterFor(v);t.exports=u(Array,"Array",(function(t,e){h(this,{type:v,target:n(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,a(void 0,!0);switch(t.kind){case"keys":return a(r,!1);case"values":return a(e[r],!1)}return a([r,e[r]],!1)}),"values");var d=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&p&&"values"!==d.name)try{c(d,"name",{value:"values"})}catch(t){}},6099:function(t,e,r){"use strict";var n=r(2140),o=r(6840),i=r(3179);n||o(Object.prototype,"toString",i,{unsafe:!0})},6167:function(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),c=r(1103),u=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{allSettled:function(t){var e=this,r=s.f(e),n=r.resolve,a=r.reject,f=c((function(){var r=i(e.resolve),s=[],c=0,a=1;u(t,(function(t){var i=c++,u=!1;a++,o(r,e,t).then((function(t){u||(u=!0,s[i]={status:"fulfilled",value:t},--a||n(s))}),(function(t){u||(u=!0,s[i]={status:"rejected",reason:t},--a||n(s))}))})),--a||n(s)}));return f.error&&a(f.value),r.promise}})},6499:function(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(6043),c=r(1103),u=r(2652);n({target:"Promise",stat:!0,forced:r(537)},{all:function(t){var e=this,r=s.f(e),n=r.resolve,a=r.reject,f=c((function(){var r=i(e.resolve),s=[],c=0,f=1;u(t,(function(t){var i=c++,u=!1;f++,o(r,e,t).then((function(t){u||(u=!0,s[i]=t,--f||n(s))}),a)})),--f||n(s)}));return f.error&&a(f.value),r.promise}})},3518:function(t,e,r){"use strict";var n=r(6518),o=r(9565),i=r(9306),s=r(7751),c=r(6043),u=r(1103),a=r(2652),f=r(537),p="No one promise resolved";n({target:"Promise",stat:!0,forced:f},{any:function(t){var e=this,r=s("AggregateError"),n=c.f(e),f=n.resolve,v=n.reject,h=u((function(){var n=i(e.resolve),s=[],c=0,u=1,h=!1;a(t,(function(t){var i=c++,a=!1;u++,o(n,e,t).then((function(t){a||h||(h=!0,f(t))}),(function(t){a||h||(a=!0,s[i]=t,--u||v(new r(s,p)))}))})),--u||v(new r(s,p))}));return h.error&&v(h.value),n.promise}})},2003:function(t,e,r){"use strict";var n=r(6518),o=r(6395),i=r(916).CONSTRUCTOR,s=r(550),c=r(7751),u=r(4901),a=r(6840),f=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(s)){var p=c("Promise").prototype.catch;f.catch!==p&&a(f,"catch",p,{unsafe:!0})}},436:function(t,e,r){"use strict";var n,o,i,s=r(6518),c=r(6395),u=r(9088),a=r(4475),f=r(9565),p=r(6840),v=r(2967),h=r(687),l=r(7633),d=r(9306),y=r(4901),g=r(34),m=r(679),b=r(2293),x=r(9225).set,w=r(1955),S=r(3138),T=r(1103),j=r(8265),O=r(1181),E=r(550),k=r(916),P=r(6043),_="Promise",R=k.CONSTRUCTOR,I=k.REJECTION_EVENT,L=k.SUBCLASSING,A=O.getterFor(_),C=O.set,U=E&&E.prototype,$=E,M=U,F=a.TypeError,N=a.document,B=a.process,D=P.f,H=D,G=!!(N&&N.createEvent&&a.dispatchEvent),V="unhandledrejection",z=function(t){var e;return!(!g(t)||!y(e=t.then))&&e},W=function(t,e){var r,n,o,i=e.value,s=1===e.state,c=s?t.ok:t.fail,u=t.resolve,a=t.reject,p=t.domain;try{c?(s||(2===e.rejection&&X(e),e.rejection=1),!0===c?r=i:(p&&p.enter(),r=c(i),p&&(p.exit(),o=!0)),r===t.promise?a(new F("Promise-chain cycle")):(n=z(r))?f(n,r,u,a):u(r)):a(i)}catch(t){p&&!o&&p.exit(),a(t)}},q=function(t,e){t.notified||(t.notified=!0,w((function(){for(var r,n=t.reactions;r=n.get();)W(r,t);t.notified=!1,e&&!t.rejection&&J(t)})))},Y=function(t,e,r){var n,o;G?((n=N.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!I&&(o=a["on"+t])?o(n):t===V&&S("Unhandled promise rejection",r)},J=function(t){f(x,a,(function(){var e,r=t.facade,n=t.value;if(K(t)&&(e=T((function(){u?B.emit("unhandledRejection",n,r):Y(V,r,n)})),t.r