douxiaoyun.js/profiles/douyin-profile/Default/Cache/Cache_Data/f_00037c
2026-07-17 22:23:39 +08:00

2 lines
255 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! For license information please see player-11.a9541524.js.LICENSE.txt */
!function(r,n){"object"==typeof module&&"object"==typeof module.exports?n():"function"==typeof define&&define.amd?define([],n):(r="undefined"!=typeof globalThis?globalThis:r||self)&&n()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(r,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((r="undefined"!=typeof globalThis?globalThis:r||self).xss={})}(this,function(r){"use strict";var n=function(){return(n=Object.assign||function(r){for(var n,a=1,i=arguments.length;a<i;a++)for(var o in n=arguments[a])Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o]);return r}).apply(this,arguments)};function a(r,n,a){if(a||2==arguments.length)for(var i,o=0,c=n.length;o<c;o++)!i&&o in n||(i||(i=Array.prototype.slice.call(n,0,o)),i[o]=n[o]);return r.concat(i||Array.prototype.slice.call(n))}var i=/[^a-zA-Z0-9\\_:.-]/gim,o=/</g,c=/>/g,f=/&#([a-zA-Z0-9]*);?/gim,s=/&quot;/g,u=/&colon;?/gim,l=/&newline;?/gim,h=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,d=/u\s*r\s*l\s*\(.*/gi,p=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,v=/"/g,g=function(r){return r.replace(o,"&lt;").replace(c,"&gt;")},b={indexOf:function(r,n){var a,i;for(a=0,i=r.length;a<i;a++)if(r[a]===n)return a;return -1},forEach:function(r,n,a){var i,o;for(i=0,o=r.length;i<o;i++)n.call(a,r[i],i,r)},some:function(r,n,a){var i,o;for(i=0,o=r.length;i<o;i++)if(n.call(a,r[i],i,r))return!0;return!1},trim:function(r){return r.replace(/(^\s*)|(\s*$)/g,"")},includes:function(r,n){if("string"==typeof r)return -1!==r.indexOf(n);for(var a=0;a<r.length;a++)if(r[a]===n)return!0;return!1},spaceIndex:function(r){var n=/\s|\n|\t/.exec(r);return n?n.index:-1},uniq:function(r){for(var n={},a=[],i=0;i<r.length;i++)n[r[i]]||(a.push(r[i]),n[r[i]]=!0);return a},from:function(r){for(var n=[],a=0;a<r.length;a++)n.push(r[a]);return n},keys:function(r){var n=[];for(var a in r)n.push(a);return n}};function y(r){return null==r}function m(r){var n;return'"'===(n=r)[0]&&'"'===n[n.length-1]||"'"===n[0]&&"'"===n[n.length-1]?r.substr(1,r.length-2):r}function _(r){var n,a,i,o,c,f,s,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",h=0;for(r=function(r){r=r.replace(/rn/g,"n");for(var n="",a=0;a<r.length;a++){var i=r.charCodeAt(a);i<128?n+=String.fromCharCode(i):i>127&&i<2048?n+=String.fromCharCode(i>>6|192)+String.fromCharCode(63&i|128):n+=String.fromCharCode(i>>12|224)+String.fromCharCode(i>>6&63|128)+String.fromCharCode(63&i|128)}return n}(r);h<r.length;)o=(n=r.charCodeAt(h++))>>2,c=(3&n)<<4|(a=r.charCodeAt(h++))>>4,f=(15&a)<<2|(i=r.charCodeAt(h++))>>6,s=63&i,isNaN(a)?f=s=64:isNaN(i)&&(s=64),l=l+u.charAt(o)+u.charAt(c)+u.charAt(f)+u.charAt(s);return l}function x(r){var n,a,i,o,c,f,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",l=0;for(r=r.replace(/[^A-Za-z0-9+/=]/g,"");l<r.length;)n=s.indexOf(r.charAt(l++))<<2|(o=s.indexOf(r.charAt(l++)))>>4,a=(15&o)<<4|(c=s.indexOf(r.charAt(l++)))>>2,i=(3&c)<<6|(f=s.indexOf(r.charAt(l++))),u+=String.fromCharCode(n),64!==c&&(u+=String.fromCharCode(a)),64!==f&&(u+=String.fromCharCode(i));return function(r){for(var n="",a=0,i=0,o=0,c=0;a<r.length;)(i=r.charCodeAt(a))<128?(n+=String.fromCharCode(i),a++):i>191&&i<224?(n+=String.fromCharCode((31&i)<<6|63&(c=r.charCodeAt(a+1))),a+=2):(c=r.charCodeAt(a+1),n+=String.fromCharCode((15&i)<<12|(63&c)<<6|63&(o=r.charCodeAt(a+2))),a+=3);return n}(u)}function k(r,n,a){var i="",o=0,c=!1,f=!1,s=0,u=r.length,l="",h="";e:for(s=0;s<u;s++){var d=r.charAt(s);if(!1===c){if("<"===d){c=s;continue}}else if(!1===f){if("<"===d){i+=a(r.slice(o,s)),c=s,o=s;continue}if(">"===d||s===u-1){i+=a(r.slice(o,c)),l=function(r){var n,a=b.spaceIndex(r);return n=-1===a?r.slice(1,-1):r.slice(1,a+1),"/"===(n=b.trim(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}(h=r.slice(c,s+1)),i+=n(c,i.length,l,h,"</"===h.slice(0,2)),o=s+1,c=!1;continue}if('"'===d||"'"===d)for(var p=1,v=r.charAt(s-p);""===v.trim()||"="===v;){if("="===v){f=d;continue e}v=r.charAt(s-++p)}}else if(d===f){f=!1;continue}}return o<u&&(i+=a(r.substr(o))),i}function S(r,n){var a=0,o=0,c=[],f=!1,s=r.length;function u(r,a){if(!((r=(r=b.trim(r)).replace(i,"").toLowerCase()).length<1)){var o=n(r,a||"");o&&c.push(o)}}for(var l=0;l<s;l++){var h=r.charAt(l),d=void 0;if(!1!==f||"="!==h){if(!1===f||l!==o){if(/\s|\n|\t/.test(h)){if(r=r.replace(/\s|\n|\t/g," "),!1===f){if(-1===(d=function(r,n){for(;n<r.length;n++){var a=r[n];if(" "!==a)return"="===a?n:-1}return -1}(r,l))){u(b.trim(r.slice(a,l))),f=!1,a=l+1;continue}l=d-1;continue}if(-1===(d=function(r,n){for(;n>0;n--){var a=r[n];if(" "!==a)return"="===a?n:-1}return -1}(r,l-1))){u(f,m(b.trim(r.slice(a,l)))),f=!1,a=l+1;continue}}}else{if(-1===(d=r.indexOf(h,l+1)))break;u(f,b.trim(r.slice(o+1,d))),f=!1,a=(l=d)+1}}else f=r.slice(a,l),a=l+1,o='"'===r.charAt(a)||"'"===r.charAt(a)?a:function(r,n){for(;n<r.length;n++){var a=r[n];if(" "!==a)return"'"===a||'"'===a?n:-1}return -1}(r,l+1)}return a<r.length&&(!1===f?u(r.slice(a)):u(f,m(b.trim(r.slice(a))))),b.trim(c.join(" "))}function w(r,n,a){if(a=function(r){return r=function(r){for(var n="",a=0,i=r.length;a<i;a++)n+=32>r.charCodeAt(a)?" ":r.charAt(a);return b.trim(n)}(r=(r=(r=r.replace(s,'"')).replace(f,function(r,n){return"x"===n[0]||"X"===n[0]?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})).replace(u,":").replace(l," "))}(a),"href"===n||"src"===n){if("#"===(a=b.trim(a)))return"#";if("http://"!==a.substr(0,7)&&"https://"!==a.substr(0,8)&&"mailto:"!==a.substr(0,7)&&"tel:"!==a.substr(0,4)&&"data:image/"!==a.substr(0,11)&&"ftp://"!==a.substr(0,6)&&"./"!==a.substr(0,2)&&"../"!==a.substr(0,3)&&"#"!==a[0]&&"/"!==a[0])return""}else if("background"===n){if(h.lastIndex=0,h.test(a))return""}else if("style"===n&&(p.lastIndex=0,p.test(a)||(d.lastIndex=0,d.test(a)&&(h.lastIndex=0,h.test(a)))))return"";return a=function(r){return r=g(r=r.replace(v,"&quot;"))}(a)}var T=function(r){return"string"==typeof r?r.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},E=function(){function r(r){var n=function(r){var n={};for(var a in r)n[a]=r[a];return n}(r||{});n.stripIgnoreTag&&(n.onIgnoreTag,n.onIgnoreTag=function(){return""}),n.whiteList={},n.onTag=function(){},n.onTagAttr=function(){},n.onIgnoreTag=function(){},n.onIgnoreTagAttr=function(){},n.safeAttrValue=w,n.escapeHtml=g,this.options=Object.assign(n,r)}return r.prototype.process=function(r){if(!(r=(r=r||"").toString()))return"";var n,a,i,o,c,f,s=this.options,u=s.whiteList,l=s.onTag,h=s.onIgnoreTag,d=s.onTagAttr,p=s.onIgnoreTagAttr,v=s.safeAttrValue,g=s.escapeHtml;s.stripBlankChar&&(r=(n=(n=r.split("")).filter(function(r){var n=r.charCodeAt(0);return!(127===n||n<=31&&10!==n&&13!==n)})).join("")),s.allowCommentTag||(r=function(r){for(var n="",a=0;a<r.length;){var i=r.indexOf("\x3c!--",a);if(-1===i){n+=r.slice(a);break}n+=r.slice(a,i);var o=r.indexOf("--\x3e",i);if(-1===o)break;a=o+3}return n}(r));var y=!1;s.stripIgnoreTagBody&&(a=s.stripIgnoreTagBody,"function"!=typeof(i=h)&&(i=function(){}),o=!Array.isArray(a),c=[],f=!1,h=(y={onIgnoreTag:function(r,n,s){var u;if(u=r,o||-1!==b.indexOf(a,u)){if(s.isClosing){var l="[/removed]",h=s.position+l.length;return c.push([!1!==f?f:s.position,h]),f=!1,l}return f||(f=s.position),"[removed]"}return i(r,n,s)},remove:function(r){var n="",a=0;return b.forEach(c,function(i){n+=r.slice(a,i[0]),a=i[1]}),n+=r.slice(a)}}).onIgnoreTag);var m=k(r,function(r,n,a,i,o){var c={sourcePosition:r,position:n,isClosing:o,isWhite:Object.prototype.hasOwnProperty.call(u,a)},f=l(a,i,c);if(null!=f)return f;if(c.isWhite){if(c.isClosing)return"</".concat(a,">");var s=function(r){var n=b.spaceIndex(r);if(-1===n)return{html:"",closing:"/"===r[r.length-2]};var a="/"===(r=b.trim(r.slice(n+1,-1)))[r.length-1];return a&&(r=b.trim(r.slice(0,-1))),{html:r,closing:a}}(i),y=u[a],m=S(s.html,function(r,n){var i=-1!==b.indexOf(y,r),o=d(a,r,n,i);return null==o?i?(n=v(a,r,n,null))?"".concat(r,'="').concat(n,'"'):r:null==(o=p(a,r,n,i))?void 0:o:o});return i="<".concat(a),m&&(i+=" ".concat(m)),s.closing&&(i+=" /"),i+=">"}return null==(f=h(a,i,c))?g(i):f},g);return y&&(m=y.remove(m)),m},r}(),R=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),L=new(function(){function r(){var r=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var n,a,i="douyin_web";if(!b.includes(i,"bid"))return i;if(r.config&&r.config.bid)return r.config.bid;if(R&&R._xssBid)return R._xssBid;if(R&&R.slardar&&"function"==typeof R.slardar.config){var o=(R.slardar.config()||{}).bid;if(o)return o}if(R&&R.Slardar&&"function"==typeof R.Slardar.config){var c=(R.Slardar.config()||{}).bid;if(c)return c}return(null===(a=null===(n=null==R?void 0:R.Slardar)||void 0===n?void 0:n._baseParams)||void 0===a?void 0:a.bid)||"argus"},this.getConfigRegion=function(){var n;return b.includes("cn","region")?r.config&&r.config.region?r.config.region:((null===(n=null==R?void 0:R.gfdatav1)||void 0===n?void 0:n.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var n={cn:x("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:x("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:x("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:x("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:x("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:x("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:x("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[r.getConfigRegion()];if(n)return n+r.getSlardarBid()}}return r.prototype.setConfig=function(r){this.config=r},r.prototype.upload=function(){var r=this,n=this.gerReportUrl();!this.lock&&n&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var a=r.batchData.slice(0,100);r.batchData=r.batchData.slice(100),R.fetch(n,{method:"post",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}}).catch(function(r){}),r.lock=!1,r.upload()},this.timeout))},r.prototype.generateKey=function(r){return r.collectKey?[r.collectMode,r.collectKey].join("___"):""},r.prototype.push=function(r){this.batchData.push(r),this.upload()},r.prototype.report=function(r){var n=this.generateKey(r);if(R.fetch&&r.collectKey){var a="object"==typeof window?window.location.href:"SSR";r.documentUrl=a;var i={age:Math.floor(Date.now()),type:"xss",url:a,body:r,"user-agent":""};"enforce"===r.disposition&&"SSR"!==a||(i.url=n),"SSR"===a&&(i.url="SSR___".concat(i.url),i.body.ssr=!0),this.push(i)}},r}()),I=function(r){for(var n=0,a=function(a){Array.isArray(r[a])?0===r[a].length?delete r[a]:(r[a]=b.from(b.uniq(r[a])),n+=r[a].length):0===b.keys(r[a]).length?delete r[a]:b.keys(r[a]).forEach(function(i){r[a][i]=b.from(b.uniq(r[a][i])),n+=r[a][i].length})},i=0,o=b.keys(r);i<o.length;i++)a(o[i]);return{count:n,ret:r}};function O(r,n){return L.setConfig(n),new E(n).process(r)}function A(r){var n,a=(n=/\s|\n|\t/.exec(r))?n.index:-1;if(-1===a)return{html:"",closing:"/"===r[r.length-2]};var i="/"===(r=r.slice(a+1,-1).trim())[r.length-1];return i&&(r=r.slice(0,-1).trim()),{html:r,closing:i}}var P=function(r){return -1===(r=(r=(r=(r=r.replace(/&colon;/gi,":")).replace(/&tab;/gi,"")).replace(/&newline;/gi,"")).replace(/(\t|\n|\r)/g,"")).indexOf("&#")?r.trim().toLowerCase():r.trim().replace(/&#(?:(x)([0-9a-f]+)|([0-9]+));?/gi,function(r,n,a,i){return String.fromCharCode(n?parseInt(a,16):parseInt(i))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function C(r,n){if(void 0===r&&(r=""),"string"!=typeof r)return!0;if(r=P(r),b.includes(r,"base64")&&!function(r){if(""===r||""===r.trim())return!0;try{return!b.includes(r,"data:text/html;base64")}catch(r){return!0}}(r))return n&&n("data:text/html;base64"),!1;var a=["expression(","behavior:","view-source:"];if(b.some(a,function(n){return -1!==r.indexOf(n)}))return b.forEach(a,function(a){-1!==r.indexOf(a)&&n&&n(a)}),!1;var i=["data:application","data:javascript","data:text/html","data:texthtml"];if(b.some(i,function(n){return -1!==r.indexOf(n)}))return b.forEach(i,function(a){-1!==r.indexOf(a)&&n&&n(a)}),!1;if(r.indexOf("javascript:")>0)return n&&n("javascript:"),!1;if(/^javascript:/i.test(r)){var o=r.slice(11).replace(/\s/g,"").trim();return!!b.some(["void","void(0)","void0","false","undefined",";"],function(r){return r===o})||(n&&n("javascript:"),!1)}return!0}var D=function(r,n){var a,i,o="<%= isSaveValidUrl =>";if("string"!=typeof r||(i=Number("<%= urlLimit =>"),void 0!==a&&(i=a),"NaN"!==r.toString()&&-1!==i&&r.length>=i)||C(r,n))return r;try{if(!0===(o=JSON.parse(o))||"true"===o){var c=new URL(r);return c.origin+c.pathname}}catch(r){}return"#"};function M(r,n,i){if(void 0===r&&(r=""),void 0===n&&(n=[]),"string"!=typeof r)return!0;if(!C(r=P(r)))return!1;var o,c={url:(o=r.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:o[1],slash:o[2],host:o[3],port:o[4],path:o[5],query:o[6],hash:o[7]},f=c.scheme,s=c.host;return i?!!i(r):!(!f||!s)&&(!b.includes(["http","https","file"],f)||("object"==typeof window&&window&&(n=a(a([],n,!0),[location.host],!1)),b.some(n,function(r){return!!(r instanceof RegExp&&r.test(s))||r===s})))}var N={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},j={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var r=I(this.collect),n=r.count,a=r.ret;return this.collect=null,{collectKey:0===n?null:JSON.stringify(a),collectMode:"white"}},onIgnoreTagAttr:function(r,n,i){return r&&b.indexOf(["href","src"],n)>-1?j.domainWhiteList&&Array.isArray(j.domainWhiteList)&&j.domainWhiteList.length>0&&!M(i,a([],j.domainWhiteList,!0))?"":"".concat(n,'="').concat(D(i,function(r){var n;null===(n=j.collect)||void 0===n||n.filterProtocol.push(r)}),'"'):r&&(b.indexOf(["style","class","id"],n)>-1||n.indexOf("data-")>-1)?"".concat(n,'="').concat(i,'"'):(j.collect.whiteList[r]=j.collect.whiteList[r]||[],void j.collect.whiteList[r].push(n))},onIgnoreTag:function(r,n){if("style"===r)return n;k(n,function(r,n,a,i){S(A(i).html.replace("/",""),function(r){j.collect.whiteList[a]=j.collect.whiteList[a]||[],j.collect.whiteList[a].push(r)})},g)},whiteList:N,mergeWhiteList:function(r){for(var n,a={},i=0,o=b.keys(N);i<o.length;i++)a[n=o[i]]=b.from(N[n]);for(var c=0,f=b.keys(r);c<f.length;c++)a[n=f[c]]=n in N?N[n].concat(r[n]):b.from(r[n]);return a},setWhiteList:function(r){for(var n=0,a=b.keys(r);n<a.length;n++){var i=a[n];this.whiteList[i]=i in N?N[i].concat(r[i]):b.from(r[i])}}};try{var B={},U="merge";b.includes(U,"override")&&(j.whiteList=B.whiteList),b.includes(U,"merge")&&j.setWhiteList(B.whiteList)}catch(r){}var F=function(r,n){for(var a={},i=0,o=b.keys(r);i<o.length;i++){var c=o[i];Array.isArray(r[c])?a[c]=b.from(r[c]):a[c]=F({},r[c])}for(var f=0,s=b.keys(n);f<s.length;f++)(c=s[f])in r?Array.isArray(r[c])?a[c]=r[c].concat(n[c]):a[c]=F(r[c],n[c]):Array.isArray(n[c])?a[c]=b.from(n[c]):a[c]=F({},n[c]);return a},G={blackList:{a:["folder"],meta:["content"],iframe:["srcdoc"],input:["pattern"],vmlframe:["xmlns"]},blackTags:["script","xml","embed","isindex","object","base","set","handler","animate","payload","import"],blackAttrs:["charset","ns","namespace","formaction","xlink:href","xmlns:xlink","handler","repeat","repeat-start","repeat-end"],blackAttrRegExps:[/^on/],filterList:{param:["value"],video:["poster"],form:["action"]},filterAttrs:["href","src","background","style","dynsrc","lowsrc","content"]};try{var V={};V.blackAttrRegExps&&(V.blackAttrRegExps=V.blackAttrRegExps.map(function(r){return new RegExp(r.toString().slice(1,r.toString().length-1))}));var W="merge";b.includes(W,"override")&&(G=V),b.includes(W,"merge")&&(G=F(G,V))}catch(r){}var K={mode:"black",whiteList:{},blackConfig:G,collect:null,initCollect:function(){K.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var r=I(K.collect),n=r.count,a=r.ret;return K.collect=null,{collectKey:0===n?null:JSON.stringify(a),collectMode:"black"}},onIgnoreTag:function(r,n){var a;if(!b.includes(G.blackTags,r))return k(n,function(r,n,a,i,o){if(-1!==a.indexOf("/"))return g(i);if(o)return"</".concat(a,">");var c=A(i),f=S(c.html,function(r,n){var i,o=0;if(G.blackList[a]&&b.includes(G.blackList[a],r)&&(K.collect.blackList[a]=K.collect.blackList[a]||[],K.collect.blackList[a].push(r),o++),G.blackAttrRegExps.length&&G.blackAttrRegExps.some(function(n){return n.test(r)})&&b.forEach(G.blackAttrRegExps,function(n){n.test(r)&&(K.collect.blackAttrRegExps.push("".concat(n.toString(),"->").concat(r)),o++)}),G.blackAttrs.length&&b.includes(G.blackAttrs,r)&&(G.blackAttrs.push(r),o++),!o){if(G.filterList&&G.filterList[a]&&b.includes(G.filterList[a],r)){var c=D(n,function(r){var n;null===(n=K.collect)||void 0===n||n.filterProtocol.push(r)});return c!==n&&(K.collect.filterList[a]=K.collect.filterList[a]||[],K.collect.filterList[a].push(r)),n?"".concat(r,"='").concat(c,"'"):r}return G.filterAttrs&&b.includes(G.filterAttrs,r)?((c=D(n,function(r){var n;null===(n=K.collect)||void 0===n||n.filterProtocol.push(r)}))!==n&&(null===(i=K.collect)||void 0===i||i.filterAttrs.push(r)),n?"".concat(r,"='").concat(c,"'"):r):n?"".concat(r,"='").concat(n,"'"):r}});return i="<".concat(a),f&&(i+=" ".concat(f)),c.closing&&(i+=" /"),i+=">"},g);null===(a=K.collect)||void 0===a||a.blackTags.push(r)}},z=function(r){var n=r.reportOnly,a=void 0===n||n,i=r.block;return a&&"all"===a?"report":("string"==typeof a&&("true"===a&&(a=!0),"false"===a&&(a=!1)),i?"enforce":a?"report":"enforce")},H=function(r){return function(a,i,o){if(!a||"string"!=typeof a)return a;var c=i;r===O&&(c=j).initCollect();var f=r(a,c);if(T(f)===T(a))return a;if(!o)return f;var s=o.logType,u=z(o),l=c.removeCollect();return L.report(n(n({type:s,disposition:u},l),{sourceText:_(a),filterText:_(f)})),"enforce"===u?f:a}},Z=H(function(r,n){return void 0===n&&(n={}),n&&n.whiteList||(n.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new E(n).process(r)}),J=H(O),Y=function(r,n,a){var i=[],o=D(r,function(r){i.push(r)});if(o===r)return r;i=b.from(b.uniq(i));var c=n||a||{};if(!c)return o;var f=c.logType,s=z(a);return L.report({type:f,disposition:s,collectKey:i.join("___"),collectData:JSON.stringify(i),collectMode:"black",sourceText:_(r),filterText:_(o)}),"enforce"===s?o:r},q=R._xssProject||{},X=R.xssNamespace||{},Q="3.0.26",$={FilterXSS:E,version:Q,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:Z,_filterXSS:J,filterUrl:Y,Config:j,BlackConfig:K,project:q,setProjectName:function(r){q[r]=this,R._xssProjectName=r}};X.douyin_web=$,R.xssNamespace=X,R.Math&&!R.Math.xssNamespace&&(R.Math.xssNamespace=X),q[Q]=$,R.globalThis=R,R.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:$},R.xss=$,R.isSafeUrl=M,R.isSafeDomain=M,R.isSafeProtocol=C,R._xssProject=q,R._xssProjectName&&(q[R._xssProjectName]=$);var ee=$.setProjectName.bind($);r.BlackConfig=K,r.Config=j,r.FilterXSS=E,r._filterXSS=J,r.filterUrl=Y,r.filterXSS=Z,r.isSafeDomain=M,r.isSafeProtocol=C,r.isSafeUrl=M,r.project=q,r.setProjectName=ee,r.setXssNamespace=function(r){var n=r.appId,a=r.bid,i=r.region;X[n]=$;j.bid=a,j.region=i,j.enabled=!0},r.xssNamespace=X,Object.defineProperty(r,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["81712"],{138204:function(r,n,a){"use strict";a.d(n,{z:function(){return s}});var i=a(726949);a(497397);var o=a(175605),c=a(38546),f=(0,i.qH)(function r(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((0,i.PA)(this,r),this.syncMode=!0,this.name=n||f.CollectorName,this.options=a,this.teaWorker=null,window.__xgplayer_vod_log__?this.teaSync=window.__xgplayer_vod_log__:(this.teaSync=new o.Collector(this.name),window.__xgplayer_vod_log__=this.teaSync),c.C.isSupported()&&a.externalWorker)try{this.initWorker(),this.syncMode=!1}catch(r){this.fallbackToSync()}else this.fallbackToSync()},[{key:"initWorker",value:function(){var r=this,n={name:this.name,worker:this.options.externalWorker};this.teaWorker=new c.C(n,{onError:function(n){r.fallbackToSync()}})}},{key:"fallbackToSync",value:function(){if(!this.syncMode)this.syncMode=!0}},{key:"init",value:function(r){var n,a;null===(n=this.teaSync)||void 0===n||n.init(r),null===(a=this.teaWorker)||void 0===a||a.callMethod("init",[r])}},{key:"config",value:function(r){var n,a;null===(n=this.teaSync)||void 0===n||n.config(r),null===(a=this.teaWorker)||void 0===a||a.callMethod("config",[r])}},{key:"start",value:function(){var r,n;null===(r=this.teaSync)||void 0===r||r.start(),null===(n=this.teaWorker)||void 0===n||n.callMethod("start")}},{key:"event",value:function(r,n){var a,i="event",o=[r,n];try{this.syncMode||this.options.waitForWorkerReady&&!c.C.isWorkerReady()?this.teaSync&&"function"==typeof this.teaSync[i]&&(a=this.teaSync)[i].apply(a,o):this.teaWorker?this.teaWorker.callMethod(i,o):(this.fallbackToSync(),this.event(r,n))}catch(r){throw r}}},{key:"beaconEvent",value:function(r,n){var a=this.syncMode;this.syncMode=!0,this.event(r,n),this.syncMode=a}},{key:"destroy",value:function(){this.teaWorker&&(this.teaWorker.destroy(),this.teaWorker=null),this.options={},this.syncMode=!0,this.teaSync=null}}]),s=f;s.CollectorName="player-vod-tracker"},705626:function(r,n,a){"use strict";a.d(n,{Vk:function(){return i.V}}),a(680932);var i=a(592211);a(343476)},650047:function(r,n,a){"use strict";a.r(n),a.d(n,{Mp4Preloader:function(){return o.Dh},default:function(){return i.Z}});var i=a(515951),o=a(536347)},614184:function(r,n,a){"use strict";a.d(n,{Tw:function(){return E},Yx:function(){return L},_R:function(){return w},kL:function(){return S},oy:function(){return T}});var i,o=a(61072);a(346984),a(705574),a(941533),a(124300),a(162093),a(9498),a(173757),a(171655),a(232070),a(2885),a(248385),a(591111),a(832674),a(905442),a(446336),a(808483),a(840938),a(118438),a(325598),a(92999),a(611067),a(273723),a(724016),a(803903),a(214604),a(901250),a(755006),a(437048),a(488336),a(825666),a(177162),a(286633),a(943281),a(810658),a(82726),a(224727),a(437545),a(630361),a(497736),a(954018),a(506442),a(795434),a(664089),a(863063),a(478782),a(866124),a(378508),a(70698),a(669689),a(490629);var c=a(942155),f=a.n(c),s=a(596857),u=a(403826),l=a(881462),h=a(897311);a(21979);var d=a(937049),p=a(84216),v=a(858985),g=a(107093),b=a(129674),y=a(718828),m=a(751251),_=a(861504),x=a(495209),k=a.n(x),S={ERROR:"error",META_READY:"metaReady",META_REQ_DONE:"meta_request_done",MOOV_REQ_PROGRESS:"moov_request_progress",TASK_PROGRESS:"progress_event",REMOVE_URL:"remove_url",FRAGMENT:"fragment",UPDATE_EME:"update_eme",INIT_MSE:"init_mse",CHANGE_URL:"change_url",UPDATE_LOAD_IDX:"update_load_fragmentIdx",REMOVE_PCDN_NODE:"remove_pcdn_node",LOAD_ERROR:"load_error",CANCEL_LOADED_LEN:"cancel_loaded_len"},w={CDN:"cdn",PCDN:"pcdn"};var T=((i=T||{}).CLOSE="close",i.OPEN="open",i.FORBIDDEN="forbidden",i),E={},R=function(r){var n,a,i,c,f,x,T,L,I,O,A,P,C;function D(r,n,a,i,c){var f,l,h;return(0,o.PA)(this,D),(l=(0,o.$w)(this,D)).timeRange=[],l.adaptTimeRange=[],l.meta=null,l.preloadCache=null,l.videoTrak=void 0,l.audioTrak=void 0,l._loadSuccessCallBack=null,l._isPending=!1,l.metaLoading=!1,l.MP4Demuxer=null,l.FMP4Remuxer=null,l._needInitSegment=!0,l._bitRateInfoMap=new Map,l._switchBitRate=!1,l._segmentToBitRateMap=new Map,l.useEME=!1,l.secretKey=null,l.decryptKey=null,l.keyValue=null,l.seekTime=-1,l.changeBitRateTime=-1,l._PCDNState="close",l._pcdnNodeList=[],l.loadInfo={},l.pcdnTraceInfo=null,l._loadedDataState=!1,l._PCDNSwitchCnt=0,l._isUseCDN=!0,l._curLoadSegIdx=0,l._receiveDataPos=-1,l._optionDataLenInfo={},l._lastPCDNUrl="",l.pSCCancelCnt=0,l.lastDemuxSampleIdxRange={video:-1,audio:-1},l._mediaEndTime=-1,l.lastMuxRemainBufferInfo=null,l.firstMetMuxNotContinue=!1,l.lastTargetDur=0,l.cachePreloadDataList=[],l.useBackUrlRetry=-1,l.markErrHost=function(r){r&&(E[r]=!0,l.log(u._.WARN,"[mp4loader markErrHost]",r))},l.onprogressDataArrive=(h=(0,o.x)((0,o.l5)().mark(function r(n,a,i,c){var f,s,h,p,v,y,m,x,k;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(h=null===(f=i.priOptions)||void 0===f?void 0:f.range,p=(null===(s=i.priOptions)||void 0===s?void 0:s.type)||w.CDN,l.checkResponse(c,i.priOptions)){r.next=7;break}return r.next=6,l.notVailRangeResError(c,i.priOptions,i.index);case 6:return r.abrupt("return");case 7:if(v=n&&n.byteLength>0,l.log(u._.LOG,"[DataArrive] rev data","index: ".concat(i.index,", range: ").concat(JSON.stringify(i.range),", dataLen: ").concat(null==n?void 0:n.byteLength),"loadType: ".concat(p,", state: ").concat(a)),!a){r.next=29;break}if(l._optionDataLenInfo[p]=0,!((null==h?void 0:h.length)>=0&&(!Number(h[1])||Number(h[1])&&(null==i?void 0:i.range[1])===h[1]+1))){r.next=17;break}l.adaptTimeRange[i.index].downloaded=!0,l.log(u._.LOG,"[FragLoadDowned],fragmentIdx,",i.index,",rangeEnd,",i.range[1]),r.next=29;break;case 17:return y=(0,b.xj)(c.headers),r.next=20,l.cancelLoading();case 20:if(m=p===w.CDN?l.url:l._pcdnNodeList[0].url,x=g.Z.getHostFromUrl(m),l.emit(S.LOAD_ERROR,{src:m,host:x,errorCode:d.O1.lenNotMatch,message:_.Z1,range:JSON.stringify(h),headers:y}),k=[null==i?void 0:i.range[1],h[1]],l.log(u._.LOG,"".concat(_.Z1),"fragmentIdx: ".concat(i.index),"rangeEnd: ".concat(i.range[1],", ").concat(JSON.stringify(h)),"headers: ".concat(JSON.stringify(y),", url: ").concat(m,", ").concat(null==c?void 0:c.url),"retryRange: ".concat(JSON.stringify(k))),!((null==i?void 0:i.range[1])<h[1]+1)){r.next=29;break}return l.startMux(n,p,i,a),r.next=29,l.loadAllFragmentData(l._curLoadSegIdx,l._loadSuccessCallBack,null,!1,k);case 29:v&&l.startMux(n,p,i,a);case 30:case"end":return r.stop()}},r)})),function(r,n,a,i){return h.apply(this,arguments)}),i=i||[],l.updateUrl(r,i||[]),l._bitRate=n||0,l.options=R.getDefaultConfig(),Object.keys(a).map(function(r){void 0!==a[r]&&null!==a[r]&&(l.options[r]=a[r])}),l.logger=a.logger,l.fileSize=null==a?void 0:a.fileSize,l.CHUNK_SIZE=(null===(f=l.options)||void 0===f?void 0:f.firstLoadSize)||(0,p.T)(a.duration,l.options.chunkSize,l.fileSize),l._firstLoadSize=l.CHUNK_SIZE,l.log(u._.LOG,"[getFirstLoadSize], firstLoadSize ".concat(l._firstLoadSize),"dur ".concat(a.duration,", chunkSize ").concat(l.CHUNK_SIZE,",fileSize ").concat(l.fileSize)),l.repeatInfo={startPos:-1,curDataPos:0,usedPos:0,data:g.Z.newUint8Array(1048576)},l.MP4Loader=new s.b((0,o.Zj)((0,o.Zj)({url:r,vid:"".concat(a.vid,"-").concat(n),retry:a.retryCount,retryDelay:a.retryDelay,timeout:a.timeout,segmentDuration:a.segmentDuration,audioGroupingStrategy:a.audioGroupingStrategy,fixEditListOffset:a.fixEditListOffset,fixEditListOffsetThreshold:a.fixEditListOffsetThreshold},a.reqOptions),{},{memoryOpt:a.memoryOpt,loaderType:a.loaderType,retryCheckFunc:a.loadRangeType===_.TJ.SIZE?v.mH:v.Wp,openLog:y.i5,urlList:i,processMaxGapTime:a.processMaxGapTime,changeUrlRetry:a.changeUrlRetry,dynamicTimeoutIns:a.dynamicTimeoutIns})),l.initTransMuxWorker(),l.pcdnVVStat=l.resetPcdnVVStat(),l}return(0,o.XW)(D,r),(0,o.qH)(D,[{key:"size",get:function(){return this.fileSize}},{key:"bufferTimeFuncCallBack",set:function(r){this.getbufferTimeFunc=r}},{key:"fillFirSeg",set:function(r){this.fillFirstSegment=r}},{key:"setLastMuxRemainBufferInfo",value:function(r,n){this.lastMuxRemainBufferInfo={data:r,pos:n}}},{key:"initTransMuxWorker",value:function(){var r=this,n=this.options;if(this.enableWorker=n.enableWorker&&("h265"!==n.codecType||n.supportHevc),this.enableWorker&&"undefined"!=typeof Worker){try{this.workerSequence=0,this.transmuxerWorkerControl=new m.Z({id:this.workerSequence,codecType:n.codecType,supportHevc:this.options.supportHevc,openLog:y.i5,memoryOpt:n.memoryOpt}),this.transmuxerWorkerControl.on("transmux",function(n){var a=n.args,i=a.context;r.log(u._.LOG,"[transmuxerWorker end], range: ".concat(JSON.stringify(a.range)),"dataLen: ".concat(a.buffer.byteLength),JSON.stringify(a.context)),r.updateDemuxSampleIdxRange(null==i?void 0:i.videoSampleIdxRange,null==i?void 0:i.audioSampleIdxRange),r._loadSuccessCallBack&&r._loadSuccessCallBack(a)})}catch(r){this.log(u._.ERROR,"Error in worker:",r),this.enableWorker=!1,this.transmuxerWorkerControl=null}!this.enableWorker&&(this.MP4Demuxer=null,this.FMP4Remuxer=null)}}},{key:"updateSecretKey",value:function(r,n,a,i){var o;this.useEME=r,!r&&n?(this.log(u._.LOG,"[updateSecretKey] ,force enableWorker"),this.options.enableWorker=!0,!this.transmuxerWorkerControl&&this.initTransMuxWorker()):!r&&i&&(this.keyValue=i),this.log(u._.LOG,"[updateSecretKey] ,useEME, ",r,",secretKey,",n,",decryptKey",a),null===(o=this.transmuxerWorkerControl)||void 0===o||o.updateValue({secretKey:n,decryptKey:a})}},{key:"updateLoadedDataDone",value:function(){this._loadedDataState=!0}},{key:"PCDNSwitchCnt",get:function(){return this._PCDNSwitchCnt}},{key:"updateLoadInfo",value:function(r,n){!this.loadInfo&&(this.loadInfo={}),!this.loadInfo[r]&&(this.loadInfo[r]={},this.loadInfo[r].loadLen=0),this.loadInfo[r].loadLen+=n}},{key:"updatePCDNState",value:(n=(0,o.x)((0,o.l5)().mark(function r(n){var a,i,c;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if("forbidden"!==this._PCDNState&&this._PCDNState!==n&&this.log(u._.LOG,"[pcdn state update]",this._PCDNState," - ",n),"forbidden"!==n){r.next=5;break}this._PCDNState=n,r.next=25;break;case 5:if(!("forbidden"!==this._PCDNState&&this._PCDNState!==n)){r.next=25;break}if(!(!this._isUseCDN&&"close"===n)){r.next=23;break}if(this._PCDNState=n,!(this.adaptTimeRange[this._curLoadSegIdx].downloaded||this._switchBitRate)){r.next=11;break}return this.log(u._.LOG,"[pcdn] switch cdn ",this._curLoadSegIdx,"downloaded",",switchBitRate, ",this._switchBitRate),r.abrupt("return");case 11:return r.next=13,this.cancelLoading();case 13:return this.pSCCancelCnt++,a=this._curLoadSegIdx,this.log(u._.LOG,"[pcdn] cancelLoading ",a,"switch cdn load"),i=this.getFragRange(a),this._receiveDataPos&&i&&this._receiveDataPos>=i[0]&&this._receiveDataPos<=i[1]&&(c=[this._receiveDataPos,i[1]],this.log(u._.LOG,"[pcdn] switch cdn, adjust range",a,JSON.stringify(c),",oldRange,","".concat(i[0]," - ").concat(i[1]))),this._receiveDataPos=-1,r.next=21,this.startLoad(c||i,a);case 21:r.next=24;break;case 23:this._PCDNState=n;case 24:this.log(u._.LOG,"[pcdn] openPCDN ",n);case 25:case"end":return r.stop()}},r,this)})),function(r){return n.apply(this,arguments)})},{key:"updateNode",value:function(r){if(r&&r.length>0){var n=r.filter(function(r){if(!Object.prototype.hasOwnProperty.call(E,g.Z.getHostFromUrl(null==r?void 0:r.url)))return r});this._pcdnNodeList=n}}},{key:"clearPCDNNodeList",value:function(){this.log(u._.LOG,"[pcdn] clearPCDNNodeList"),this._pcdnNodeList=[]}},{key:"isUpdateNode",get:function(){return!this._pcdnNodeList||!this._pcdnNodeList.length}},{key:"isUsePCDN",value:function(){var r;return"open"===this._PCDNState&&(null===(r=this._pcdnNodeList)||void 0===r?void 0:r.length)>0}},{key:"readyToChangeBitrate",value:function(r){this._switchBitRate=!0,this.changeBitrateInfo=r}},{key:"changeBitRate",value:(a=(0,o.x)((0,o.l5)().mark(function r(){var n;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!((n=this.changeBitrateInfo).bitrate!==this._bitRate)){r.next=11;break}return this.updateUrl(n._mainURL,n._backupURL),this._bitRate=n.bitrate,this._receiveDataPos=-1,r.next=7,this.MP4Loader.changeUrl(this.url,"".concat(this.options.vid,"-").concat(this._bitRate),this.CHUNK_SIZE);case 7:this._pcdnNodeList=[],this.emit(S.CHANGE_URL,this.url),this._mediaEndTime=-1,this.log(u._.LOG,"[switchBitrate] changeUrl, bitRate,",this._bitRate,"url",this.url);case 11:case"end":return r.stop()}},r,this)})),function(){return a.apply(this,arguments)})},{key:"_getByPreload",value:function(r,n,a,i){try{if(r&&r.byteLength>=n){var o={endTime:new Date().getTime(),startTime:new Date().getTime(),index:i,range:[],vid:this.options.vid,from:"local",state:!1};if(a<=r.byteLength){var c=r.slice(n,a);return o.range=[n,a],o.state=!0,{buffer:c,context:o,state:!0}}var f=r.byteLength-1,s=r.slice(n,f);return o.range=[n,f],{context:o,buffer:s,state:!1}}return null}catch(r){return null}}},{key:"log",value:function(r,n){for(var a=this.options,i=a&&a.vid?"[MP4]".concat(this.logTag," ").concat(a.vid," ").concat(n):"[MP4]".concat(this.logTag," ").concat(n),o=arguments.length,c=Array(o>2?o-2:0),f=2;f<o;f++)c[f-2]=arguments[f];y.cM.apply(void 0,[this.logger,r,i].concat(c))}},{key:"errorHandler",value:(i=(0,o.x)((0,o.l5)().mark(function r(n,a){var i,c,f,s,l,h,p,v,g,b,y,m,_,x=arguments;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(i=x.length>2&&void 0!==x[2]?x[2]:{},c=n.response,f=n.message,s=n.headers,l=this.options?this.options.vid:"",h=null,this._isPending=!0,!c){r.next=40;break}if(h=new d.oO("network",c.status,{httpText:c.httpText,message:f,url:c.url,range:i.range,headers:s}),this.log(u._.LOG,"[MP4] [".concat(l,"] errorHandler error state:[").concat(a,"],\n _isPending:[").concat(this._isPending,"] "),null==c?void 0:c.status,f),!(1e3*(g=null===(p=this.getbufferTimeFunc)||void 0===p?void 0:p.call(this))>=this.options.timeout||(null===(v=this.backUrl)||void 0===v?void 0:v.length)>0)){r.next=34;break}if(!((null===(y=this.backUrl)||void 0===y?void 0:y.length)>0)){r.next=19;break}return b=this.backUrl.shift(),r.next=14,this.updateUrl(b,this.backUrl);case 14:if(this._isPending=!1,!this.MP4Loader){r.next=19;break}return r.next=18,this.MP4Loader.changeUrl(this.url,"".concat(this.url,"-").concat(this._bitRate),this.CHUNK_SIZE);case 18:this.emit(S.CHANGE_URL,this.url);case 19:if(this._isPending=!1,this.log(u._.LOG,"[".concat(l,"] errorHandler retry,backUrlLen:").concat(this.backUrl.length,", buffer:").concat(g,",").concat(b)),this.emit(S.TASK_PROGRESS,{type:"error",error:n}),"getMetaInfo"!==a){r.next=28;break}return b?this.useBackUrlRetry=2:this.useBackUrlRetry=1,this.getMetaInfo(),r.abrupt("return");case 28:if("loadFragment"!==a){r.next=34;break}if(m=i.fragIndex,_=i.range,!(null!==m&&m>=0&&_)){r.next=34;break}return b?this.useBackUrlRetry=2:this.useBackUrlRetry=1,this.startLoad(_,m),r.abrupt("return");case 34:h.context=i,h.response=c,this.log(u._.LOG,"errorHandler end, ".concat(JSON.stringify(i))),this.emit(S.ERROR,h,a),r.next=44;break;case 40:this.log(u._.LOG,"errorHandler other end, ".concat(a,",").concat(null==c?void 0:c.status,", ").concat(f)),(h=n)&&(h.context=i),this.emit(S.ERROR,h,a);case 44:case"end":return r.stop()}},r,this)})),function(r,n){return i.apply(this,arguments)})},{key:"init",value:(c=(0,o.x)((0,o.l5)().mark(function r(n){var a,i,c,f,s,l,h,d,p,v,b,y,m,x,k,w;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!n&&(n={}),!(this.options.loadRangeType===_.TJ.SIZE&&this.MP4Loader.url!==this.url)){r.next=4;break}return r.next=4,this.MP4Loader.changeUrl(this.url,"".concat(this.options.vid,"-").concat(this._bitRate),this.CHUNK_SIZE);case 4:if(this.emit(S.CHANGE_URL,this.url),this.meta=null,i=(a=n).meta,c=a.mediaSegList,f=a.buffer,s=a.fileSize,l=a.initSeg,h=a.bitrate,d=a.adaptTimeRange,p=a.repeatData,v=a.repeatDataStartPos,b=a.generateBy,!(i&&i.ext)){r.next=24;break}if(s&&(this.fileSize=s),this.meta=i,this.videoTrak=i.ext.videoTrak,this.audioTrak=i.ext.audioTrak,this._bitRate=h,this.timeRange=this.getTimeRange(),this.adaptTimeRange=g.Z.ArrayCopy(d),c?(this.preloadCache={segList:c||[],initSeg:l},(null===(y=this.adaptTimeRange)||void 0===y?void 0:y.length)>0&&(null==p?void 0:p.byteLength)>0&&this.cacheRepeatData(this.adaptTimeRange[0].repeatRange,this.adaptTimeRange[0].repeatRange,p),v>0&&(null==p?void 0:p.byteLength)>0&&(this.lastMuxRemainBufferInfo={data:p,pos:v})):f&&(null===(m=this.adaptTimeRange)||void 0===m?void 0:m.length)>0&&(null==f?void 0:f.byteLength)>0&&this.cacheRepeatData(this.adaptTimeRange[0].range,this.adaptTimeRange[0].range,f),"preloader"!==b&&(this.adaptTimeRange.map(function(r){r.downloaded=!1,r.isLoading=!1}),this.log(u._.LOG,"[mp4.init] reset adaptTimeRange")),this.options.loadRangeType===_.TJ.GOP)for(x=0;x<(null===(k=this.adaptTimeRange)||void 0===k?void 0:k.length);x++)this.updateTimeRangeInAdaptTimeRangeIdx(this.adaptTimeRange[x].timeRangeIdx,x);w={meta:i,videoSegments:i.ext.videoTrak,audioSegments:i.ext.audioTrak,bufferLoaded:f||null},this.log(u._.LOG,"preloadCache init done, emit meta ready"),this._bitRateInfoMap.set(this._bitRate,w),this.emit(S.META_READY,this.meta,this),r.next=26;break;case 24:return r.next=26,this.getMetaInfo();case 26:case"end":return r.stop()}},r,this)})),function(r){return c.apply(this,arguments)})},{key:"updateTimeRangeInAdaptTimeRangeIdx",value:function(r,n){if(!!(null!=r&&r.length))for(var a=r[0];a<r[1];a++)a<this.timeRange.length&&(this.timeRange[a].adaptTimeRangeIdx=n)}},{key:"getTimeRange",value:function(){for(var r,n=[],a=null,i=0;this.videoTrak&&i<this.videoTrak.length;i++){var o=this.videoTrak[i].startTime,c=this.videoTrak[i].endTime;a={startTime:o,endTime:c,duration:c-o,downloaded:!1,isLoading:!1},n.push(a)}if(this.audioTrak&&this.audioTrak.length>n.length)for(var f=n.length;f<this.audioTrak.length;f++){var s=Math.max(this.audioTrak[f].startTime,a?a.endTime:0),u=Math.max(this.audioTrak[f].endTime,a?a.endTime:0);a={startTime:s,endTime:u,duration:u-s,downloaded:!1,isLoading:!1},n.push(a)}return null!==(r=this.options)&&void 0!==r&&r.emitMediaListControl&&this._emitMediaList(n),n}},{key:"_emitMediaList",value:function(r){if(!!this.videoTrak||!!this.audioTrak){for(var n=[],a=0;a<r.length;a++){var i=r[a].startTime,c=this.getFragmentIdx(i),f=g.Z.getFragRange(c,this.videoTrak,this.audioTrak);n.push((0,o.Zj)((0,o.Zj)({},r[a]),{},{range:f,url:this._addRangeToUrl(this.url,f)}))}this.emit(_.fD.MEDIA_LIST,n)}}},{key:"_addRangeToUrl",value:function(r,n){return this.options.isAddRange?g.Z.extUrl(r,{range:"".concat(n[0],"-").concat(n[1])}):r}},{key:"getMetaInfo",value:(f=(0,o.x)((0,o.l5)().mark(function r(){var n=this,a,i,c,f,s,l=arguments;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a=!(l.length>0)||void 0===l[0]||l[0],r.prev=1,i=-1,this.metaLoading=!0,this.log(u._.LOG,"getMetaInfo start, bitRate: ".concat(this._bitRate,", firstLoadSize: ").concat(this._firstLoadSize),"url: ".concat(this.MP4Loader.url)),this.resetRepeatInfo(),c=function(){var r=(0,o.x)((0,o.l5)().mark(function r(c,f,s,l,h){var p,v,y,m,_,x,k,T,E;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!l){r.next=6;break}return r.next=3,n.cancelLoading();case 3:return v=new d.zO(d.iR.DEMUX,d.O1.metaError,{msg:JSON.stringify(l)}),n.errorHandler(v,"getMetaInfo",{range:[0,n._firstLoadSize]}),r.abrupt("return");case 6:y=(null==s||null===(p=s.priOptions)||void 0===p?void 0:p.type)||w.CDN,c&&(null!==(m=n.options)&&void 0!==m&&m.memoryOpt?i>0?(n.partCacheRepeatData(i),n.cacheRepeatData([i,n._firstLoadSize],s.range,c)):(n.resetRepeatInfo(),n.cacheRepeatData(s.range,s.range,c)):n.cacheRepeatData([0,n._firstLoadSize],s.range,c),n._optionDataLenInfo[y]||(n._optionDataLenInfo[y]=0),n._optionDataLenInfo[y]+=c.byteLength),s.meta&&!n.meta&&(x=s.meta,n.videoTrak=x.videoSegments,n.audioTrak=x.audioSegments,null!==(_=n.options)&&void 0!==_&&_.memoryOpt&&(i=g.Z.getFirstFrameStartRange(n.videoTrak,n.audioTrak)),null!=h&&h.headers&&(n.fileSize=Number((0,b.Xz)(h.headers))),!n.fileSize&&(n.fileSize=g.Z.getEndFramePos(n.videoTrak,n.audioTrak)),n.log(u._.LOG," getFirstFrameStartRange ".concat(i)),n.timeRange=n.getTimeRange(),n.meta=(0,o.Zj)((0,o.Zj)({},x.meta),{},{ext:{videoTrak:n.videoTrak,audioTrak:n.audioTrak},fileSize:n.fileSize}),n._bitRateInfoMap.set(n._bitRate,(0,o.Zj)((0,o.Zj)({},x),{},{fileSize:n.fileSize})),n.log(u._.LOG,"meta reach, bitRate,",n._bitRate,n.repeatInfo.curDataPos),a&&n.emit(S.META_READY,n.meta,n)),n.meta&&f&&(null!==(k=n.options)&&void 0!==k&&k.enableFixPreloadRepatLoad&&n.emit(S.META_REQ_DONE,n),n.log(u._.LOG,"[getMetaInfo req end]",n.repeatInfo.curDataPos),n.metaLoading=!1),f&&(n._optionDataLenInfo[y]&&(n._optionDataLenInfo[y]=0),!(null!==(T=n.options)&&void 0!==T&&T.enableFixPreloadRepatLoad)&&n.emit(S.META_REQ_DONE,n)),n._loadedDataState?(E=!1,n.repeatInfo.curDataPos-n.repeatInfo.usedPos>=n.options.afterLoadeddataCallBackLen&&(E=!0),n.meta&&(E||f)&&(n.log(u._.LOG,"emit moov_req_progress loadeddata after",JSON.stringify(s.range)),n.emit(S.MOOV_REQ_PROGRESS))):n.meta&&(c||f)&&(n.log(u._.LOG,"emit moov_req_progress loadeddata before",JSON.stringify(s.range)),n.emit(S.MOOV_REQ_PROGRESS));case 12:case"end":return r.stop()}},r)}));return function(n,a,i,o,c){return r.apply(this,arguments)}}(),f=this.useBackUrlRetry,this.useBackUrlRetry=-1,r.next=11,this.MP4Loader.loadMetaProcess(this.MP4Loader.cache,[0,this._firstLoadSize],c,{outChangeUrlRetry:f});case 11:r.next=17;break;case 13:r.prev=13,r.t0=r.catch(1),this.log(u._.ERROR,"[MP4] trigger errorHandler getMetaInfo",null===r.t0||void 0===r.t0||null===(s=r.t0.response)||void 0===s?void 0:s.status,null===r.t0||void 0===r.t0?void 0:r.t0.message),this.loadError(r.t0,"getMetaInfo",!1,{url:r.t0.url||this.url,range:[0,this._firstLoadSize]});case 17:case"end":return r.stop()}},r,this,[[1,13]])})),function(){return f.apply(this,arguments)})},{key:"cachePreloadData",value:function(r){if(this.options.enablePreloadCache){if(0===r.context.fragIndex)this.cachePreloadDataList.push(r);else if(this.cachePreloadDataList.length>0){if(1===this.cachePreloadDataList.length&&this.cachePreloadDataList[0].fromCache)return this.cachePreloadDataList=[],{needCache:!1};var n=this.cachePreloadDataList[this.cachePreloadDataList.length-1],a=this.adaptTimeRange[0],i=(null===(l=a.range)||void 0===l?void 0:l[1])||(null===(h=this.adaptTimeRange[1])||void 0===h||null===(h=h.range)||void 0===h?void 0:h[0])-1,c=null;if(n.state||(null===(d=n.range)||void 0===d?void 0:d[1])-1===i){for(var f=new Uint8Array,s=[],u=0;u<this.cachePreloadDataList.length;u++){var l,h,d,p,v,g,b,y,m,_=this.cachePreloadDataList[u];null===c&&_.buffer.byteLength>0&&(c=null===(m=_.context.timeRange)||void 0===m?void 0:m[0]),f=k()(Uint8Array,f,new Uint8Array(_.buffer))}var x=a.range||[null===(p=this.cachePreloadDataList[0].range)||void 0===p?void 0:p[0],i];s.push({buffer:f,index:0,muxSampleIdxRange:{video:n.videoIdxEnd,audio:n.audioIdxEnd},range:x,timeRange:[c,null===(v=n.context.timeRange)||void 0===v?void 0:v[1]],totalRange:x,unMuxPos:0});var S=this.cachePreloadDataList[0].initSeg;if(!S)return this.cachePreloadDataList=[],{needCache:!1};var w={adaptTimeRange:JSON.parse(JSON.stringify(this.adaptTimeRange[0])),bitrate:this._bitRate,byteLength:S.byteLength+f.byteLength,fileSize:this.fileSize,from:3,initSeg:S,mediaSegList:s,memory:S.byteLength+f.byteLength,meta:(0,o.Zj)({},this.meta),orgDefinition:null,preloadTime:a.duration,repeatData:(null===(g=n.lastRemainBufferInfo)||void 0===g?void 0:g.data)||null,repeatDataStartPos:(null===(b=n.lastRemainBufferInfo)||void 0===b?void 0:b.pos)||0,type:0,vid:null===(y=this.options)||void 0===y?void 0:y.vid,vtype:"MP4",duration:a.duration};return this.cachePreloadDataList=[],{needCache:!0,preloadData:w}}}}return{needCache:!1}}},{key:"getFragmentIdx",value:function(r){if(!(null!==(n=this.videoTrak)&&void 0!==n&&n.length))return(i=null===(o=this.audioTrak)||void 0===o?void 0:o.find(function(n){return n.startTime<=r&&n.endTime>r}))?i.index:0;if(a=null===(c=this.videoTrak)||void 0===c?void 0:c.find(function(n){return n.startTime<=r&&n.endTime>r}),i=null===(f=this.audioTrak)||void 0===f?void 0:f.find(function(n){return n.startTime<=r&&n.endTime>r}),a&&i)return Math.min(a.index,i.index);if(a||i)return a?a.index:i.index;else{var n,a,i,o,c,f,s=Number.MAX_VALUE;return this.videoTrak&&this.videoTrak.length>0&&(s=this.videoTrak.length-1),this.audioTrak&&this.audioTrak.length>0&&(s=Math.min(this.audioTrak.length-1,s)),s}}},{key:"_checkHasMeta",value:(x=(0,o.x)((0,o.l5)().mark(function r(){var n,a,i,c,f,s,l;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n=this._bitRateInfoMap.get(this._bitRate)){r.next=20;break}return this.log(u._.LOG,"[switchBitrate], need load InitSegment, bitRate, ",this._bitRate),this.metaLoading=!0,r.next=6,this.MP4Loader.loadMeta(this.MP4Loader.cache,Math.round(this.CHUNK_SIZE/2));case 6:i=r.sent,this.log(u._.LOG,"[switchBitrate], loadMeta end, ",this._bitRate),this.metaLoading=!1,c=Number((0,b.Xz)(null==i||null===(a=i.responses)||void 0===a||null===(a=a[0])||void 0===a||null===(a=a.response)||void 0===a?void 0:a.headers)),this.fileSize=c,f=i.videoSegments,s=i.audioSegments,!this.fileSize&&(this.fileSize=g.Z.getEndFramePos(f,s)),this.log(u._.LOG,"[switchBitrate], fileSize set , ",c),this.meta=(0,o.Zj)((0,o.Zj)({},i.meta),{},{ext:{videoTrak:f,audioTrak:s},fileSize:this.fileSize}),(n=i).fileSize=this.fileSize,this._bitRateInfoMap.set(this._bitRate,i),r.next=22;break;case 20:this.log(u._.LOG,"[switchBitrate], not need load InitSegment, bitRate, ",this._bitRate),this.meta=n.meta;case 22:if(this.videoTrak=n.videoSegments,this.audioTrak=n.audioSegments,this.fileSize=n.fileSize,this.emit(S.UPDATE_EME,this.meta),this.emit(S.INIT_MSE,this.meta),this.timeRange=this.getTimeRange(),this.options.loadRangeType===_.TJ.GOP)for(l=0;l<this.adaptTimeRange.length;l++)this.updateTimeRangeInAdaptTimeRangeIdx(this.adaptTimeRange[l].timeRangeIdx,l);return this._firstLoadSize=0,r.abrupt("return",!0);case 31:case"end":return r.stop()}},r,this)})),function(){return x.apply(this,arguments)})},{key:"load",value:(T=(0,o.x)((0,o.l5)().mark(function r(n,a){var i,c,f,s,l,h,d,p,v,g,b,y,m,x;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(this._loadSuccessCallBack=a,!(this._switchBitRate&&!this.metaLoading)){r.next=29;break}if(this.log(u._.LOG,"[switchBitrate], switch bitRate start load, bitRate,",this._bitRate,", fragIndex,",n),this.fillGopDataInfo){r.next=29;break}return this.log(u._.LOG,"[switchBitrate] changeBitrate~~"),r.next=7,this.changeBitRate();case 7:return r.next=9,this._checkHasMeta();case 9:if(i=r.sent,!(this.changeBitRateTime>0)){r.next=26;break}if(this.resetFragmentLoadState(n,!0),this.resetRepeatInfo(),this.resetDemuxSampleIdx(this.changeBitRateTime),c=this.getFragmentIdx(this.changeBitRateTime),f=n,!((n=this.getAdaptIdxBySrcIdx(c))<0)){r.next=20;break}return this.log(u._.ERROR,"[switchBitrate] start new bitrate fragIndex error"),r.abrupt("return");case 20:f!==n&&this.resetFragmentLoadState(n),this._curLoadSegIdx=n,this.log(u._.LOG,"[switchBitrate], need update load fragIndex: ".concat(n,"/").concat(f),"stTime: ".concat(this.changeBitRateTime),"adaptTimeRange: ".concat(this.adaptTimeRange[n].startTime,"-").concat(this.adaptTimeRange[n].endTime)),this.emit(S.UPDATE_LOAD_IDX,n),this.seekTime=this.changeBitRateTime,this.changeBitRateTime=-1;case 26:this._needInitSegment=!0,this.resetTransmuxer(),i&&(this._switchBitRate=!1);case 29:if(!(!this.fillGopDataInfo&&this._switchBitRate&&this.metaLoading)){r.next=31;break}return r.abrupt("return");case 31:s=this.getFragRange(n),(l=this.getFragmentFromCache(n,s))&&this._needInitSegment&&!l.initSeg&&(l=null,this.log(u._.LOG,"[mp4.load] fragIndex ".concat(n,", Data In Cache but not has init, so not use cacheData"))),(this.seekTime<0||this.options.loadRangeType===_.TJ.GOP)&&l?(d=(h=l.muxSampleIdxRange).video,p=h.audio,this.lastDemuxSampleIdxRange.video=d,this.lastDemuxSampleIdxRange.audio=p,this.log(u._.LOG,"[mp4.load] fragIndex: ".concat(n," Data In Cache"),"needInit: ".concat(this._needInitSegment,", muxSampleIdxRange: ").concat(JSON.stringify(l.muxSampleIdxRange)),JSON.stringify(s)),this.adaptTimeRange[n].downloaded=!0,this.adaptTimeRange[n].isLoading=!0,this._needInitSegment=!1,this._loadSuccessCallBack&&this._loadSuccessCallBack(l)):(v=s?[s[0],s[1]]:void 0,g=this.seekTime,this.fillGopDataInfo&&s&&s[0]<this.fillGopDataInfo.endRange&&(s[1]=this.fillGopDataInfo.endRange,this.log(u._.LOG,"[switchBitrate] fillGopDataInfo fix load range ~~")),this.log(u._.LOG,"loadFragment ".concat(n),"bitRate: ".concat(this._bitRate,", range: ").concat(JSON.stringify(s)),"fillGopDataInfo: ".concat(JSON.stringify(this.fillGopDataInfo),", srcRange: ").concat(v,", seekTime: ").concat(g)),g>=0?(x=this.getSubRange(n,g,s),null!==(b=this.options)&&void 0!==b&&b.enableMsePatches&&(this.seekTime=-1),null===(y=this.resetDemuxSampleIdx)||void 0===y||y.call(this,g),this.repeatInfo.usedPos=0,this.loadFragment(n,x),this.repeatInfo.curDataPos=0,!(null!==(m=this.options)&&void 0!==m&&m.enableMsePatches)&&(this.seekTime=-1)):this.loadFragment(n,s));case 35:case"end":return r.stop()}},r,this)})),function(r,n){return T.apply(this,arguments)})},{key:"getFragmentFromCache",value:function(r,n){var a=this.preloadCache;if(!a||!a.segList)return null;for(var i=-1,o=a.segList,c=a.initSeg,f=0;f<o.length;f++)if(o[f].index===r){i=f;break}if(i<0)return null;var s=o[i];if(!(s.range[1]>=n[1]))return null;var u=[this.adaptTimeRange[r].startTime,this.adaptTimeRange[r].endTime];return{buffer:s.buffer,range:n,muxSampleIdxRange:s.muxSampleIdxRange,context:{range:n,fragIndex:r,state:!0,adaptTimeRange:[u[0],u[1]]},state:!0,initSeg:this._needInitSegment?c:void 0,fromCache:!0}}},{key:"notVailRangeResError",value:(L=(0,o.x)((0,o.l5)().mark(function r(n,a,i){var c,f=arguments;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(f.length>3&&void 0!==f[3]&&f[3]){r.next=4;break}return r.next=4,this.cancelLoading();case 4:c=(null==a?void 0:a.load_type)===w.PCDN,this.loadError({response:n,message:(null==n?void 0:n.status)!==206?"responseCode not 206":"datalen not match"},"loadFragment",c,{range:null==a?void 0:a.range,fragIndex:i});case 6:case"end":return r.stop()}},r,this)})),function(r,n,a){return L.apply(this,arguments)})},{key:"checkResponse",value:function(r,n){if(r.hasCheck)return!0;r.hasCheck=!0;var a=n.range?n.range[1]-n.range[0]+1:-1,i=Number((0,b.He)(r.headers));return(null==r?void 0:r.status)===206&&(!(a>0)||!(i>0)||a===i)||(this.log(u._.LOG,"[DataArrive] response code, ".concat(r.status,",\n contentLength: ").concat(i,",\n reqLen: ").concat(a)),!1)}},{key:"startMux",value:function(r,n,a,i){if(!!(null!=r&&r.byteLength))this._optionDataLenInfo[n]||(this._optionDataLenInfo[n]=0),this._optionDataLenInfo[n]+=r.byteLength,this._receiveDataPos=null==a?void 0:a.range[1],this.cacheRepeatData(this.adaptTimeRange[a.index].repeatRange,a.range,r),this._mux(r,a.range[0],a.index,i)}},{key:"partCacheRepeatData",value:function(r){if(!this.repeatInfo)return;var n=this.repeatInfo,a=n.curDataPos,i=n.startPos,o=n.usedPos;if(!(a<=0)&&!(i>r)&&!(i+a<i)&&r!==i)this.log(u._.LOG,"[partCacheRepeatData bebore],startPos: ".concat(i),",usedPos: ".concat(this.repeatInfo.usedPos),"curDataPos: ".concat(a)),this.repeatInfo.data.set(this.repeatInfo.data.subarray(r-i,i+a),0),this.repeatInfo.usedPos=Math.max(i+o-r,0),this.repeatInfo.curDataPos=i+a-r,this.repeatInfo.startPos=r,this.log(u._.LOG,"[partCacheRepeatData after],startPos: ".concat(this.repeatInfo.startPos),",usedPos: ".concat(this.repeatInfo.usedPos),"curDataPos: ".concat(this.repeatInfo.curDataPos))}},{key:"cacheRepeatData",value:function(r,n,a){var i;if(!!r&&!!(null!=r&&r.length)&&!!(null!==(i=this.repeatInfo.data)&&void 0!==i&&i.byteLength)&&!this.options.disableRepeatRange){if(this.repeatInfo.startPos<0&&n[0]+a.byteLength>=r[0]&&n[0]+a.byteLength<=r[1]+1&&(this.repeatInfo.startPos=r[0]),this.repeatInfo.startPos>=0&&n[0]+a.byteLength>=r[0]&&n[0]+a.byteLength<=r[1]+1){var o=this.repeatInfo.startPos+this.repeatInfo.curDataPos-n[0];if(o<0)return;var c=a.subarray(o);if(this.repeatInfo.curDataPos+c.byteLength<this.repeatInfo.data.byteLength){try{this.repeatInfo.data.set(c,this.repeatInfo.curDataPos),this.repeatInfo.curDataPos+=c.byteLength}catch(r){}this.log(u._.LOG,"repeatInfo pos: ".concat(this.repeatInfo.startPos,"-").concat(this.repeatInfo.startPos+this.repeatInfo.curDataPos),"curAppendLen: ".concat(c.byteLength))}else try{var f=2*a.byteLength,s=Math.max(this.repeatInfo.data.byteLength+f,r[1]-r[0]+f),l=g.Z.newUint8Array(s);if(!l)return;l.set(this.repeatInfo.data.slice(0,this.repeatInfo.curDataPos),0),l.set(c,this.repeatInfo.curDataPos),this.repeatInfo.curDataPos+=c.byteLength,delete this.repeatInfo.data,this.repeatInfo.data=l,this.log(u._.LOG,"exp repeatInfo pos: ".concat(this.repeatInfo.startPos,", curDataPos: ").concat(this.repeatInfo.curDataPos,", capacity: ").concat(s))}catch(r){}}}}},{key:"_mux",value:function(r,n,a,i){var c=this.getSamplesRange(a,"video"),f=this.getSamplesRange(a,"audio");if(this.fillFirstSegment&&(this.log(u._.LOG,"mux sampleRange, fillFirstSegment",i),c&&(c[1]=1/0),f&&(f[1]=1/0),i&&(this.fillFirstSegment=!1)),this.fillGopDataInfo){this.log(u._.LOG,"mux sampleRange, fillGopDataInfo",JSON.stringify(this.fillGopDataInfo));var s=this.fillGopDataInfo,p=s.endVFrameIdx,v=s.endAFrameIdx;p>=0&&c&&(null==c?void 0:c[1])>p&&(null==c?void 0:c[0])<=p&&c[1]&&(c[1]=p),v>=0&&f&&(null==f?void 0:f[1])>v&&(null==f?void 0:f[0])<=v&&f[1]&&(f[1]=v)}this.log(u._.LOG,"mux sampleRange:",JSON.stringify(c),JSON.stringify(f));var b=[n,n+r.byteLength];if(this.transmuxerWorkerControl){var m,x,k={range:b,state:i,fragIndex:a};this.log(u._.LOG,"[transmuxerWorker start] range: ".concat(JSON.stringify(b)),",dataLen: ".concat(r.byteLength),k);var S=null!==(m=this.lastMuxRemainBufferInfo)&&void 0!==m&&m.data?new Uint8Array(this.lastMuxRemainBufferInfo.data):null,w=null===(x=this.lastMuxRemainBufferInfo)||void 0===x?void 0:x.pos;this.lastMuxRemainBufferInfo=null;var T=this.transmuxerWorkerHasTrak;!this.transmuxerWorkerHasTrak&&(this.transmuxerWorkerHasTrak=!0),this.transmuxerWorkerControl.transmux(this.workerSequence,r,n,c,f,this.meta.moov,this.useEME,this.secretKey,k,T?null:this.videoTrak,T?null:this.audioTrak,S,w)}else{var E=this.options,R=E.memoryOpt,L=E.softDecode;try{!this.MP4Demuxer&&(this.MP4Demuxer=new l._(this.videoTrak,this.audioTrak,null,{openLog:y.i5,memoryOpt:R})),this.lastMuxRemainBufferInfo&&(this.MP4Demuxer.setLastRemainBufferInfo(this.lastMuxRemainBufferInfo.data,this.lastMuxRemainBufferInfo.pos),this.lastMuxRemainBufferInfo=null);var I,O,A,P,C=this.MP4Demuxer.demuxPart(r,n,c,f,this.meta.moov,this.useEME,this.keyValue);!this.FMP4Remuxer&&!L&&(!this.checkCodecH265()||this.options.supportHevc)&&(this.FMP4Remuxer=new h.N(this.MP4Demuxer.videoTrack,this.MP4Demuxer.audioTrack,{openLog:y.i5}));var D=C.videoTrack,M=C.audioTrack,N=C.lastRemainBufferInfo,j=null==D?void 0:D.samples,B=(null==j?void 0:j.length)>0?j[0].sampleOffset:-1,U=(null==j?void 0:j.length)>0?j[j.length-1].sampleOffset:-1,F=null==M?void 0:M.samples,G=(null==F?void 0:F.length)>0?F[0].sampleOffset:-1,V=(null==F?void 0:F.length)>0?F[F.length-1].sampleOffset:-1,W=this.meta.videoTimescale,K=(null==j?void 0:j.length)>0?j[0].dts/W:-1,z=(null==j?void 0:j.length)>0?j[j.length-1].dts/W:-1,H=i||(null==F?void 0:F.length)>0?null==C||null===(I=C.audioTrack)||void 0===I?void 0:I.startPts:-1,Z=i||(null==F?void 0:F.length)>0?null==C||null===(O=C.audioTrack)||void 0===O?void 0:O.endPts:-1;if(this.log(u._.LOG,"[mux] ".concat(a),",videoTimeRange: ".concat(K,"-").concat(z),",videoSampleIdx: ".concat(B,"-").concat(U),",audioTimeRange: ".concat(H,"-").concat(Z),",audioSampleIdx: ".concat(G,"-").concat(V),JSON.stringify(b),i),B>=0&&B!==(null==c?void 0:c[0])||G>=0&&G!==(null==f?void 0:f[0])){this.log(u._.LOG,"mux sample is not continue, so abandon"),!this.firstMetMuxNotContinue&&(this.firstMetMuxNotContinue=!0,this.log(u._.LOG,"emit firstMetMuxNotContinue"),this.emit(_.fD.FIRST_MET_MUX_NOT_CONTINUE));return}this.updateDemuxSampleIdxRange([B,U],[G,V]);var J=[Math.min.apply(Math,(0,o.u)([K,H].filter(function(r){return -1!==r}))),Math.max.apply(Math,(0,o.u)([z,Z].filter(function(r){return -1!==r})))],Y=null;if(N&&(Y={data:N.data.slice(),pos:N.pos}),this.FMP4Remuxer){var q=this.FMP4Remuxer.remux(this._needInitSegment,{initMerge:!0,range:b});q.initSegment&&(this._needInitSegment=!1),P={buffer:g.Z.concatData(q.audioSegment,q.videoSegment),range:b,state:i,context:{range:b,fragIndex:a,timeRange:J},initSeg:q.initSegment,lastRemainBufferInfo:Y,videoIdxEnd:U,audioIdxEnd:V,mp4:this}}else P={videoTrack:C.videoTrack,audioTrack:C.audioTrack,buffer:null,range:b,state:i,context:{range:b,fragIndex:a,timeRange:J},lastRemainBufferInfo:Y,videoIdxEnd:U,audioIdxEnd:V,mp4:this};(null==b?void 0:b[1])>=(null===(A=this.fillGopDataInfo)||void 0===A?void 0:A.endRange)&&(this.fillGopDataInfo=null,this.log(u._.LOG,"clear fillGopDataInfo")),this._loadSuccessCallBack&&this._loadSuccessCallBack(P)}catch(i){var X=null==i?void 0:i.message;this.log(u._.ERROR,"mux err:",X);var Q=new d.zO(d.iR.REMUX,d.O1.muxError,{msg:X});this.errorHandler(Q,"mux",{fragIndex:a,range:[n,n+r.byteLength]})}}}},{key:"updateDemuxSampleIdxRange",value:function(r,n){r&&r[1]>=0&&(this.lastDemuxSampleIdxRange.video=r[1]),n&&n[1]>=0&&(this.lastDemuxSampleIdxRange.audio=n[1]),this.log(u._.LOG,"updateDemuxSampleIdxRange",JSON.stringify(this.lastDemuxSampleIdxRange))}},{key:"resetDemuxSampleIdx",value:function(r){if(r){var n=this.videoTrak,a=this.audioTrak;if(n&&(null==n?void 0:n.length)>0){var i=n.find(function(n){return n.startTime<=r&&n.endTime>r});if(i){var o=i.frames;this.lastDemuxSampleIdxRange.video=o[0].index-1}}if(a&&(null==a?void 0:a.length)>0){var c=a.find(function(n){return n.startTime<=r&&n.endTime>r});if(c){var f=c.frames;this.lastDemuxSampleIdxRange.audio=f[0].index-1}}}else this.lastDemuxSampleIdxRange={video:-1,audio:-1};this.log(u._.LOG,"resetDemuxSampleIdx",r,JSON.stringify(this.lastDemuxSampleIdxRange))}},{key:"loadFragment",value:(I=(0,o.x)((0,o.l5)().mark(function r(n,a){var i,c,f,s,l,h,d,p,v,g,b,y,m,_,x,k,S;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(this._curLoadSegIdx=n,!(this._isPending||(null==a?void 0:a[1])===0||!this.adaptTimeRange[n]||this.adaptTimeRange[n].isLoading||(null==a?void 0:a.length)===0)){r.next=3;break}return r.abrupt("return");case 3:if(this.log(u._.LOG,"[MP4.loadFragment] fragIndex: ".concat(n),",range: ".concat(JSON.stringify(a),", len: ").concat(a[1]-a[0],","),"repeatInfo: ".concat(this.repeatInfo.startPos,"-").concat(this.repeatInfo.startPos+this.repeatInfo.curDataPos)),this._segmentToBitRateMap.set(n,this._bitRate),!(a.length>=2&&a[1]&&a[1]>0&&a[0]>=this.repeatInfo.startPos&&a[1]<this.repeatInfo.startPos+this.repeatInfo.curDataPos)){r.next=16;break}this.adaptTimeRange[n].isLoading=!0,i=Math.max(a[0],this.repeatInfo.startPos+this.repeatInfo.usedPos),c=new Uint8Array(this.repeatInfo.data.slice(i-this.repeatInfo.startPos,a[1]-this.repeatInfo.startPos+1)),this.log(u._.LOG,"[mp4.loadFragment] fragIndex: ".concat(n),"has all data: ".concat(i,", ").concat(a[1]),"repeatInfo: ".concat(this.repeatInfo.startPos,"-").concat(this.repeatInfo.startPos+this.repeatInfo.usedPos),"curDataPos: ".concat(this.repeatInfo.startPos+this.repeatInfo.curDataPos)),this.adaptTimeRange[n].downloaded=!0,f=this.adaptTimeRange[n].range,!this.metaLoading&&0!==this.repeatInfo.startPos&&f?(s=f[0]-this.repeatInfo.startPos,l=f[1]+1-this.repeatInfo.startPos,h=new Uint8Array(this.repeatInfo.data.slice(s,l)),this.resetRepeatInfo(),this.cacheRepeatData(this.adaptTimeRange[n].repeatRange,f,h)):(this.repeatInfo.usedPos=0,this.log(u._.LOG,"[mp4.loadFragment] has all data set repeatInfo.usedPos = 0")),this._mux(c,i,n,!0),r.next=43;break;case 16:if(!(a.length>=2&&a[0]&&a[0]>=this.repeatInfo.startPos&&a[0]<=this.repeatInfo.startPos+this.repeatInfo.curDataPos)){r.next=37;break}if(this.adaptTimeRange[n].isLoading){r.next=35;break}if(d=Math.max(a[0],this.repeatInfo.startPos+this.repeatInfo.usedPos),p=Math.min(a[1]+1,this.repeatInfo.startPos+this.repeatInfo.curDataPos),!((v=new Uint8Array(this.repeatInfo.data.slice(d-this.repeatInfo.startPos,p-this.repeatInfo.startPos))).byteLength>0)){r.next=27;break}return this.repeatInfo.usedPos=p-this.repeatInfo.startPos,this.log(u._.LOG,"[mp4.loadFragment] has part data: ",d,d+v.byteLength),this.log(u._.LOG,"[mp4.loadFragment] ","repeatInfo, pos: ".concat(this.repeatInfo.startPos,"-").concat(this.repeatInfo.startPos+this.repeatInfo.usedPos),",curDataPos: ".concat(this.repeatInfo.startPos+this.repeatInfo.curDataPos,", usedPos: ").concat(this.repeatInfo.usedPos)),this._mux(v,d,n,a[1]<=this.repeatInfo.startPos+this.repeatInfo.usedPos),r.abrupt("return");case 27:if(!(!this.metaLoading&&!this.adaptTimeRange[n].isLoading)){r.next=35;break}return this.log(u._.LOG,"[mp4.loadFragment] load part data >>> ",this.repeatInfo.startPos+this.repeatInfo.curDataPos,a[1]),this.adaptTimeRange[n].isLoading=!0,b=[this.repeatInfo.startPos+this.repeatInfo.usedPos,a[1]],(y=null===(g=this.adaptTimeRange[n])||void 0===g?void 0:g.repeatRange)&&y[0]<b[0]?(m=[y[0],b[0]],x=(_=this.repeatInfo).startPos,k=_.curDataPos,S=_.data.slice(m[0]-x,k),this.resetRepeatInfo(),this.cacheRepeatData(this.adaptTimeRange[n].repeatRange,m,S)):this.resetRepeatInfo(),r.next=35,this.startLoad(b,n);case 35:r.next=43;break;case 37:if(!((!this.metaLoading||a[0]>this.repeatInfo.startPos)&&!this.adaptTimeRange[n].isLoading)){r.next=43;break}return this.adaptTimeRange[n].isLoading=!0,this.log(u._.LOG,"[mp4.loadFragment] ready to load all data ,fragIdx: ".concat(n,", range: ").concat(a)),this.resetRepeatInfo(),r.next=43,this.startLoad(a,n);case 43:case"end":return r.stop()}},r,this)})),function(r,n){return I.apply(this,arguments)})},{key:"resetRepeatInfo",value:function(){this.log(u._.LOG,", resetRepeatInfo"),this.repeatInfo.startPos=-1,this.repeatInfo.curDataPos=0,this.repeatInfo.usedPos=0}},{key:"setSwitchPCDNCallBack",value:function(r){this._switchPCDNCallBack=r}},{key:"updateChangeBitRateTime",value:function(r){this.changeBitRateTime=r}},{key:"startLoad",value:(O=(0,o.x)((0,o.l5)().mark(function r(n,a){var i,c,f,s,l,h,d,p,v,g,b=arguments;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i=b.length>2&&void 0!==b[2]&&b[2],f=(c=this.selectedPCDN(i))||this.url,f=this._addRangeToUrl(f,n),this.log(u._.LOG,"[startLoad], ",a,JSON.stringify(n),f),r.prev=5,s={index:a,onProgress:this.onprogressDataArrive,onProcessMinLen:this.options.onProcessMinLen,url:f,outChangeUrlRetry:this.useBackUrlRetry,priOptions:{type:c?w.PCDN:w.CDN,range:n},headers:{}},c&&(s.headers["X-Origin-Server-Host"]=this._domain),this.useBackUrlRetry=-1,r.next=11,this.MP4Loader.loadData(n,this.MP4Loader.cache,s);case 11:r.next=30;break;case 13:if(r.prev=13,r.t0=r.catch(5),h=(null===r.t0||void 0===r.t0||null===(l=r.t0.options)||void 0===l||null===(l=l.priOptions)||void 0===l?void 0:l.type)===w.PCDN||!!c,d=null,p=r.t0.url||(h?c:this.url),!h){r.next=28;break}return this.pcdnVVStat.conn_fail_num++,R.pcdn_download_failed_cnt++,d=this._pcdnNodeList.shift(),this.emit(S.REMOVE_PCDN_NODE,d),this.log(u._.ERROR,"pcdn load err, retry use cdn, fragIndex: ".concat(a),"range: ".concat(JSON.stringify(n),", err: ").concat(null===r.t0||void 0===r.t0?void 0:r.t0.message,", ").concat((null===r.t0||void 0===r.t0?void 0:r.t0.isTimeout)||(null===r.t0||void 0===r.t0||null===(v=r.t0.response)||void 0===v?void 0:v.status)),"url: ".concat(p)),r.next=26,this.startLoad(n,a,!0);case 26:r.next=29;break;case 28:this.log(u._.ERROR,"cdn load err, fragIndex: ".concat(a),"range: ".concat(JSON.stringify(n),", err: ").concat(null===r.t0||void 0===r.t0?void 0:r.t0.message,", ").concat((null===r.t0||void 0===r.t0?void 0:r.t0.isTimeout)||(null===r.t0||void 0===r.t0||null===(g=r.t0.response)||void 0===g?void 0:g.status)),"url: ".concat(p));case 29:this.loadError(r.t0,"loadFragment",h,{range:n,fragIndex:a,url:p});case 30:case"end":return r.stop()}},r,this,[[5,13]])})),function(r,n){return O.apply(this,arguments)})},{key:"loadError",value:function(r,n,a,i){r.response||(r.response={}),r.isTimeout?r.response.status=d.O1.timeout:!(null!=r&&null!==(o=r.response)&&void 0!==o&&o.status)&&(r.response.status=d.O1.networkError);var o,c,f,s=g.Z.getHostFromUrl(null==i?void 0:i.url);this.markErrHost(s);var l=r.response.headers?(0,b.xj)(r.response.headers):null;l&&(r.headers=l),this.log(u._.ERROR,"load err, headers: ".concat(JSON.stringify(l),",\n errC: ").concat(null==r||null===(c=r.response)||void 0===c?void 0:c.status,",\n errM: ").concat(null==r?void 0:r.message)),this.emit(S.LOAD_ERROR,{src:null==i?void 0:i.url,host:s,errorCode:null==r||null===(f=r.response)||void 0===f?void 0:f.status,message:null==r?void 0:r.message,range:(null==i?void 0:i.range)&&JSON.stringify(i.range),headers:l}),!a&&this.errorHandler(r,n,i)}},{key:"loadAllFragmentData",value:(A=(0,o.x)((0,o.l5)().mark(function r(n,a,i){var c,f,s,l,h,d,p,v,b,y,m,_,x,k,S,T,E=arguments;return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(f=E.length>3&&void 0!==E[3]&&E[3],s=E.length>4&&void 0!==E[4]?E[4]:null,!this.hasDestroyed){r.next=4;break}return r.abrupt("return");case 4:return this.resetRepeatInfo(),l=s||(null===(c=this.adaptTimeRange[n])||void 0===c?void 0:c.range)||this.getFragRange(n),this._curLoadSegIdx=n,h=this.selectedPCDN(f),d=g.Z.extUrl(h||this.url,(0,o.Zj)({__rand:new Date().getTime()},this.options.reqParams)),r.prev=9,this.log(u._.LOG,"loadAllFragmentData before, index: ".concat(n),"range: ".concat(JSON.stringify(l)),"use-pcdn: ".concat(!!h)),p={index:n,url:d,priOptions:{type:h?w.PCDN:w.CDN,range:l},headers:{}},h&&(p.headers["X-Origin-Server-Host"]=this._domain),r.next=15,this.MP4Loader.loadData(l,this.MP4Loader.cache,p);case 15:if(v=r.sent,this.log(u._.LOG,"loadAllFragmentData after, index: ".concat(n),"range: ".concat(JSON.stringify(l))),b=v.options.priOptions,this.checkResponse(null==v?void 0:v.response,b)){r.next=22;break}return this.notVailRangeResError(null==v?void 0:v.response,b,null===(y=v.options)||void 0===y?void 0:y.index,!0),r.abrupt("return");case 22:if(this.log(u._.LOG,"loadAllFragmentData after, index: ".concat(n),"range: ".concat(JSON.stringify(l))),!(!v||!v.data)){r.next=27;break}return m=Error("response null"),i?i(m):this.loadError(m,"loadFragment",!!h,{range:l,fragIndex:n,url:h||this.url}),r.abrupt("return");case 27:(_=v.data)&&l&&l.length>=2&&(null==_?void 0:_.byteLength)===l[1]-l[0]+1&&(this._receiveDataPos=l[0]+(null==_?void 0:_.byteLength),this._loadSuccessCallBack=a,this.adaptTimeRange[n].downloaded=!0,this.cacheRepeatData(this.adaptTimeRange[n].repeatRange,l,_),this._mux(_,l[0],n,!0)),r.next=44;break;case 31:if(r.prev=31,r.t0=r.catch(9),!(k=(null===r.t0||void 0===r.t0||null===(x=r.t0.options)||void 0===x||null===(x=x.priOptions)||void 0===x?void 0:x.type)===w.PCDN||!!h)){r.next=42;break}return R.pcdn_download_failed_cnt++,this._pcdnNodeList.shift(),this.log(u._.ERROR,"[loadAllFragmentData], pcdn load err, retry use cdn","fragIndex: ".concat(n,", ").concat((null===r.t0||void 0===r.t0?void 0:r.t0.isTimeout)||(null===r.t0||void 0===r.t0||null===(S=r.t0.response)||void 0===S?void 0:S.status),", ").concat(null===r.t0||void 0===r.t0?void 0:r.t0.message)),r.next=40,this.loadAllFragmentData(n,a,i,!0);case 40:r.next=43;break;case 42:this.log(u._.ERROR,"[MP4] loadAllFragmentData error: ".concat(JSON.stringify({fragIndex:n,range:l})),(null===r.t0||void 0===r.t0?void 0:r.t0.isTimeout)||(null===r.t0||void 0===r.t0||null===(T=r.t0.response)||void 0===T?void 0:T.status),null===r.t0||void 0===r.t0?void 0:r.t0.message);case 43:this.loadError(r.t0,"loadFragment",k,{range:l,fragIndex:n,url:r.t0.url||(k?h:this.url)});case 44:case"end":return r.stop()}},r,this,[[9,31]])})),function(r,n,a){return A.apply(this,arguments)})},{key:"currentLoadUseUrl",value:function(){var r;if(this._isUseCDN)return this.url;return(null===(r=this._pcdnNodeList)||void 0===r?void 0:r.length)>0?this._pcdnNodeList[0].url:""}},{key:"getCurSwitchPCDNCnt",value:function(){return this._PCDNSwitchCnt}},{key:"selectedPCDN",value:function(r){if("forbidden"===this._PCDNState||r){this._isUseCDN=!0;return}if(this.isUsePCDN()){if(this._isUseCDN){if(this._switchPCDNCallBack){var n,a=this._switchPCDNCallBack();a>0&&(this.options.switchPCDNMaxCnt=a)}if(this._PCDNSwitchCnt>=this.options.switchPCDNMaxCnt)return this._isUseCDN=!0,this.log(u._.LOG,"cdn switch pcdn out limit, curSwitchCnt: ".concat(this._PCDNSwitchCnt,", maxCnt: ").concat(this.options.switchPCDNMaxCnt)),null;this._PCDNSwitchCnt++;this.log(u._.LOG,"cdn switch pcdn, curSwitchCnt: ".concat(this._PCDNSwitchCnt,", maxCnt: ").concat(this.options.switchPCDNMaxCnt))}this._isUseCDN=!1,n=g.Z.extUrl(this._pcdnNodeList[0].url,(0,o.Zj)({__vid:this.options.vid},this.options.reqParams)),this._lastPCDNUrl!==n&&(this.emit(S.CHANGE_URL,n),this._lastPCDNUrl=n,this.pcdnVVStat.conn_req_num+=1),R.pcdn_download_request_cnt++}else!this._isUseCDN&&(this.log(u._.LOG,"pcdn switch cdn PCDNSwitchCnt: ".concat(this._PCDNSwitchCnt,", maxCnt: ").concat(this.options.switchPCDNMaxCnt)),this.pcdnVVStat.conn_jump_num+=1),this._isUseCDN=!0;return n}},{key:"cancelLoading",value:(P=(0,o.x)((0,o.l5)().mark(function r(){return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!this.MP4Loader){r.next=3;break}return r.next=3,this.MP4Loader.cancel();case 3:this._optionDataLenInfo[w.PCDN]&&this._optionDataLenInfo[w.PCDN]>0&&(this.emit(S.CANCEL_LOADED_LEN,{load_type:w.PCDN,len:this._optionDataLenInfo[w.PCDN]}),this._optionDataLenInfo[w.PCDN]=0),this._optionDataLenInfo[w.CDN]&&this._optionDataLenInfo[w.CDN]>0&&(this.emit(S.CANCEL_LOADED_LEN,{load_type:w.CDN,len:this._optionDataLenInfo[w.CDN]}),this._optionDataLenInfo[w.CDN]=0);case 5:case"end":return r.stop()}},r,this)})),function(){return P.apply(this,arguments)})},{key:"updateUrl",value:function(r,n){var a=g.Z.getHostFromUrl(r);!this._defaultDomain&&(this._defaultDomain=a),0>a.indexOf("www.")?this._domain=a:this._domain=this._defaultDomain,this.url=r,this.backUrl=n||[]}},{key:"getDataBitRate",value:function(r){return this._segmentToBitRateMap.get(r)}},{key:"checkCodecH265",value:function(){return this.meta&&(this.meta.videoCodec.indexOf("hvc1")>-1||this.meta.videoCodec.indexOf("hev1")>-1)}},{key:"checkCodecH266",value:function(){return this.meta&&this.meta.videoCodec.indexOf("bvc2")>-1}},{key:"destroy",value:(C=(0,o.x)((0,o.l5)().mark(function r(){return(0,o.l5)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!this.hasDestroyed){r.next=2;break}return r.abrupt("return");case 2:if(this.resetTransmuxer(),this.transmuxerWorkerControl&&this.transmuxerWorkerControl.destroy(),this.fileSize=0,this._isPending=!1,this.metaLoading=!1,this.resetRepeatInfo(),delete this.repeatInfo.data,this._bitRateInfoMap.clear(),this._segmentToBitRateMap.clear(),!this.MP4Loader){r.next=15;break}return r.next=14,this.MP4Loader.cancel();case 14:this.MP4Loader.destroy();case 15:this.removeAllListeners(),this.hasDestroyed=!0,this.pcdnVVStat=this.resetPcdnVVStat();case 18:case"end":return r.stop()}},r,this)})),function(){return C.apply(this,arguments)})},{key:"resetPcdnVVStat",value:function(){return{try_req_node:0,req_node_succ:0,has_ret_node:0,conn_req_num:0,conn_fail_num:0,conn_jump_num:0}}},{key:"resetTransmuxer",value:function(){this.MP4Demuxer&&this.MP4Demuxer.reset(),this.MP4Demuxer=null,this.FMP4Remuxer&&this.FMP4Remuxer.reset(),this.FMP4Remuxer=null,this.transmuxerWorkerControl&&this.transmuxerWorkerControl.reset()}},{key:"getMediaEndTime",value:function(){if(this._mediaEndTime>0)return this._mediaEndTime;var r=this.videoTrak,n=this.audioTrak;if(r&&(null==r?void 0:r.length)>0){var a=r[r.length-1].endTime;this._mediaEndTime=this._mediaEndTime<0?a:Math.min(a,this._mediaEndTime)}if(n&&(null==n?void 0:n.length)>0){var i=n[n.length-1].endTime;this._mediaEndTime=this._mediaEndTime<0?i:Math.min(i,this._mediaEndTime)}return this._mediaEndTime}},{key:"checkIsLoadEnd",value:function(r){var n=this.videoTrak,a=this.audioTrak;if(!n&&!a)return!1;var i=0,o=0;if(n&&(null==n?void 0:n.length)>0){var c=n[n.length-1].range;(null==c?void 0:c.length)>0&&(i=c[1])}if(a&&(null==a?void 0:a.length)>0){var f=a[a.length-1].range;(null==f?void 0:f.length)>0&&(o=f[1])}return r>=Math.max(i,o)}},{key:"checkInAdaptTimeRange",value:function(r){if(!(null!==(n=this.adaptTimeRange)&&void 0!==n&&n.length))return!1;var n,a=r.end-.5;return a<r.start&&(a=(r.end+r.start)/2),this.adaptTimeRange.some(function(r){return a>=r.startTime&&a<=r.endTime})}}],[{key:"pcdnDownLoadReqCnt",get:function(){var r=R.pcdn_download_request_cnt,n=R.pcdn_download_failed_cnt;return R.pcdn_download_request_cnt=0,R.pcdn_download_failed_cnt=0,{pcdn_download_request_cnt:r,pcdn_download_failed_cnt:n}}},{key:"getDefaultConfig",value:function(){return{onProcessMinLen:1024,xhrSetup:null,chunkSize:8e5,isCache:!1,playerId:"",vid:"",afterLoadeddataCallBackLen:0,ext:{}}}}])}(f()),L=R;L.pcdn_download_request_cnt=0,L.pcdn_download_failed_cnt=0},659830:function(r,n){var a;a=0,function(r){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var i=function(r){return r&&r.Math==Math&&r},o=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n&&n)||function(){return this}()||Function("return this")(),c={},f=function(r){try{return!!r()}catch(r){return!0}},s=!f(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),u={},l={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,d=h&&!l.call({1:2},1);u.f=d?function(r){var n=h(this,r);return!!n&&n.enumerable}:l;var p=function(r,n){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:n}},v={}.toString,g=function(r){return v.call(r).slice(8,-1)},b="".split,y=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(r){return"String"==g(r)?b.call(r,""):Object(r)}:Object,m=function(r){if(null==r)throw TypeError("Can't call method on "+r);return r},_=function(r){return y(m(r))},x=function(r){return"object"==typeof r?null!==r:"function"==typeof r},k=function(r,n){var a,i;if(!x(r))return r;if(n&&"function"==typeof(a=r.toString)&&!x(i=a.call(r))||"function"==typeof(a=r.valueOf)&&!x(i=a.call(r))||!n&&"function"==typeof(a=r.toString)&&!x(i=a.call(r)))return i;throw TypeError("Can't convert object to primitive value")},S=function(r){return Object(m(r))},w={}.hasOwnProperty,T=function(r,n){return w.call(S(r),n)},E=o.document,R=x(E)&&x(E.createElement),L=function(r){return R?E.createElement(r):{}},I=!s&&!f(function(){return 7!=Object.defineProperty(L("div"),"a",{get:function(){return 7}}).a}),O=Object.getOwnPropertyDescriptor;c.f=s?O:function(r,n){if(r=_(r),n=k(n,!0),I)try{return O(r,n)}catch(r){}if(T(r,n))return p(!u.f.call(r,n),r[n])};var A={},P=function(r){if(!x(r))throw TypeError(String(r)+" is not an object");return r},C=Object.defineProperty;A.f=s?C:function(r,n,a){if(P(r),n=k(n,!0),P(a),I)try{return C(r,n,a)}catch(r){}if("get"in a||"set"in a)throw TypeError("Accessors not supported");return"value"in a&&(r[n]=a.value),r};var D=s?function(r,n,a){return A.f(r,n,p(1,a))}:function(r,n,a){return r[n]=a,r},M={exports:{}},N=function(r,n){try{D(o,r,n)}catch(a){o[r]=n}return n},j="__core-js_shared__",B=o[j]||N(j,{}),U=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(r){return U.call(r)});var F=B.inspectSource,G=o.WeakMap,V="function"==typeof G&&/native code/.test(F(G)),W={exports:{}};(W.exports=function(r,n){return B[r]||(B[r]=void 0!==n?n:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var K,z,H,Z=W.exports,J=0,Y=Math.random(),q=function(r){return"Symbol("+String(void 0===r?"":r)+")_"+(++J+Y).toString(36)},X=Z("keys"),Q=function(r){return X[r]||(X[r]=q(r))},$={},ee="Object already initialized",et=o.WeakMap;if(V||B.state){var er=B.state||(B.state=new et),en=er.get,ea=er.has,ei=er.set;K=function(r,n){if(ea.call(er,r))throw TypeError(ee);return n.facade=r,ei.call(er,r,n),n},z=function(r){return en.call(er,r)||{}},H=function(r){return ea.call(er,r)}}else{var eo=Q("state");$[eo]=!0,K=function(r,n){if(T(r,eo))throw TypeError(ee);return n.facade=r,D(r,eo,n),n},z=function(r){return T(r,eo)?r[eo]:{}},H=function(r){return T(r,eo)}}var ec={set:K,get:z,has:H,enforce:function(r){return H(r)?z(r):K(r,{})},getterFor:function(r){return function(n){var a;if(!x(n)||(a=z(n)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return a}}},ef=ec.get,es=ec.enforce,eu=String(String).split("String");(M.exports=function(r,n,a,i){var c,f=!!i&&!!i.unsafe,s=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;"function"==typeof a&&("string"!=typeof n||T(a,"name")||D(a,"name",n),(c=es(a)).source||(c.source=eu.join("string"==typeof n?n:""))),r!==o?(f?!u&&r[n]&&(s=!0):delete r[n],s?r[n]=a:D(r,n,a)):s?r[n]=a:N(n,a)})(Function.prototype,"toString",function(){return"function"==typeof this&&ef(this).source||F(this)});var el=M.exports,eh=function(r){return"function"==typeof r?r:void 0},ed=function(r,n){return arguments.length<2?eh(o[r])||eh(o[r]):o[r]&&o[r][n]||o[r]&&o[r][n]},ep={},ev=Math.ceil,eg=Math.floor,eb=function(r){return isNaN(r=+r)?0:(r>0?eg:ev)(r)},ey=Math.min,em=function(r){return r>0?ey(eb(r),9007199254740991):0},e_=Math.max,ex=Math.min,ek=function(r,n){var a=eb(r);return a<0?e_(a+n,0):ex(a,n)},eS=function(r){return function(n,a,i){var o,c=_(n),f=em(c.length),s=ek(i,f);if(r&&a!=a){for(;f>s;)if((o=c[s++])!=o)return!0}else for(;f>s;s++)if((r||s in c)&&c[s]===a)return r||s||0;return!r&&-1}},ew={includes:eS(!0),indexOf:eS(!1)},eT=ew.indexOf,eE=function(r,n){var a,i=_(r),o=0,c=[];for(a in i)!T($,a)&&T(i,a)&&c.push(a);for(;n.length>o;)T(i,a=n[o++])&&(~eT(c,a)||c.push(a));return c},eR=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eL=eR.concat("length","prototype");ep.f=Object.getOwnPropertyNames||function(r){return eE(r,eL)};var eI={};eI.f=Object.getOwnPropertySymbols;var eO=ed("Reflect","ownKeys")||function(r){var n=ep.f(P(r)),a=eI.f;return a?n.concat(a(r)):n},eA=/#|\.prototype\./,eP=function(r,n){var a=eD[eC(r)];return a==eN||a!=eM&&("function"==typeof n?f(n):!!n)},eC=eP.normalize=function(r){return String(r).replace(eA,".").toLowerCase()},eD=eP.data={},eM=eP.NATIVE="N",eN=eP.POLYFILL="P",ej=c.f,eB=function(r,n){for(var a=eO(n),i=A.f,o=c.f,f=0;f<a.length;f++){var s=a[f];T(r,s)||i(r,s,o(n,s))}},eU=function(r,n){var a,i,c,f,s,u=r.target,l=r.global,h=r.stat;if(a=l?o:h?o[u]||N(u,{}):(o[u]||{}).prototype)for(i in n){if(f=n[i],c=r.noTargetGet?(s=ej(a,i))&&s.value:a[i],!eP(l?i:u+(h?".":"#")+i,r.forced)&&void 0!==c){if(typeof f==typeof c)continue;eB(f,c)}(r.sham||c&&c.sham)&&D(f,"sham",!0),el(a,i,f,r)}};function eF(r,n,a,i,o,c,f){try{var s=r[c](f),u=s.value}catch(r){return void a(r)}s.done?n(u):Promise.resolve(u).then(i,o)}function eG(r){return function(){var n=this,a=arguments;return new Promise(function(i,o){var c=r.apply(n,a);function f(r){eF(c,i,o,f,s,"next",r)}function s(r){eF(c,i,o,f,s,"throw",r)}f(void 0)})}}function eV(r,n,a){return n=eZ(n),function(r,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(r,eY()?Reflect.construct(n,a||[],eZ(r).constructor):n.apply(r,a))}function eW(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function eK(r,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,eQ(i.key),i)}}function ez(r,n,a){return n&&eK(r.prototype,n),a&&eK(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r}function eH(r,n,a){return(n=eQ(n))in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function eZ(r){return(eZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function eJ(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&eX(r,n)}function eY(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(eY=function(){return!!r})()}function eq(){eq=function(){return n};var r,n={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(r,n,a){r[n]=a.value},c="function"==typeof Symbol?Symbol:{},f=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function l(r,n,a){return Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}),r[n]}try{l({},"")}catch(r){l=function(r,n,a){return r[n]=a}}function h(n,a,i,c){var f=Object.create((a&&a.prototype instanceof y?a:y).prototype);return o(f,"_invoke",{value:function(n,a,i){var o=p;return function(c,f){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===c)throw f;return{value:r,done:!0}}for(i.method=c,i.arg=f;;){var s=i.delegate;if(s){var u=function n(a,i){var o=i.method,c=a.iterator[o];if(c===r)return i.delegate=null,"throw"===o&&a.iterator.return&&(i.method="return",i.arg=r,n(a,i),"throw"===i.method)||"return"!==o&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+o+"' method")),b;var f=d(c,a.iterator,i.arg);if("throw"===f.type)return i.method="throw",i.arg=f.arg,i.delegate=null,b;var s=f.arg;return s?s.done?(i[a.resultName]=s.value,i.next=a.nextLoc,"return"!==i.method&&(i.method="next",i.arg=r),i.delegate=null,b):s:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,b)}(s,i);if(u){if(u===b)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===p)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=v;var l=d(n,a,i);if("normal"===l.type){if(o=i.done?g:"suspendedYield",l.arg===b)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=g,i.method="throw",i.arg=l.arg)}}}(n,i,new I(c||[]))}),f}function d(r,n,a){try{return{type:"normal",arg:r.call(n,a)}}catch(r){return{type:"throw",arg:r}}}n.wrap=h;var p="suspendedStart",v="executing",g="completed",b={};function y(){}function m(){}function _(){}var x={};l(x,f,function(){return this});var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==a&&i.call(S,f)&&(x=S);var w=_.prototype=y.prototype=Object.create(x);function T(r){["next","throw","return"].forEach(function(n){l(r,n,function(r){return this._invoke(n,r)})})}function E(r,n){var a;o(this,"_invoke",{value:function(o,c){function f(){return new n(function(a,f){!function a(o,c,f,s){var u=d(r[o],r,c);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&i.call(h,"__await")?n.resolve(h.__await).then(function(r){a("next",r,f,s)},function(r){a("throw",r,f,s)}):n.resolve(h).then(function(r){l.value=r,f(l)},function(r){return a("throw",r,f,s)})}s(u.arg)}(o,c,a,f)})}return a=a?a.then(f,f):f()}})}function R(r){var n={tryLoc:r[0]};1 in r&&(n.catchLoc=r[1]),2 in r&&(n.finallyLoc=r[2],n.afterLoc=r[3]),this.tryEntries.push(n)}function L(r){var n=r.completion||{};n.type="normal",delete n.arg,r.completion=n}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(R,this),this.reset(!0)}function O(n){if(n||""===n){var a=n[f];if(a)return a.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,c=function a(){for(;++o<n.length;)if(i.call(n,o))return a.value=n[o],a.done=!1,a;return a.value=r,a.done=!0,a};return c.next=c}}throw TypeError(typeof n+" is not iterable")}return m.prototype=_,o(w,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:m,configurable:!0}),m.displayName=l(_,u,"GeneratorFunction"),n.isGeneratorFunction=function(r){var n="function"==typeof r&&r.constructor;return!!n&&(n===m||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,_):(r.__proto__=_,l(r,u,"GeneratorFunction")),r.prototype=Object.create(w),r},n.awrap=function(r){return{__await:r}},T(E.prototype),l(E.prototype,s,function(){return this}),n.AsyncIterator=E,n.async=function(r,a,i,o,c){void 0===c&&(c=Promise);var f=new E(h(r,a,i,o),c);return n.isGeneratorFunction(a)?f:f.next().then(function(r){return r.done?r.value:f.next()})},T(w),l(w,u,"Generator"),l(w,f,function(){return this}),l(w,"toString",function(){return"[object Generator]"}),n.keys=function(r){var n=Object(r),a=[];for(var i in n)a.push(i);return a.reverse(),function r(){for(;a.length;){var i=a.pop();if(i in n)return r.value=i,r.done=!1,r}return r.done=!0,r}},n.values=O,I.prototype={constructor:I,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(L),!n)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=r)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var a=this;function o(i,o){return s.type="throw",s.arg=n,a.next=i,o&&(a.method="next",a.arg=r),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c],s=f.completion;if("root"===f.tryLoc)return o("end");if(f.tryLoc<=this.prev){var u=i.call(f,"catchLoc"),l=i.call(f,"finallyLoc");if(u&&l){if(this.prev<f.catchLoc)return o(f.catchLoc,!0);if(this.prev<f.finallyLoc)return o(f.finallyLoc)}else if(u){if(this.prev<f.catchLoc)return o(f.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<f.finallyLoc)return o(f.finallyLoc)}}}},abrupt:function(r,n){for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===r||"continue"===r)&&c.tryLoc<=n&&n<=c.finallyLoc&&(c=null);var f=c?c.completion:{};return f.type=r,f.arg=n,c?(this.method="next",this.next=c.finallyLoc,b):this.complete(f)},complete:function(r,n){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&n&&(this.next=n),b},finish:function(r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.finallyLoc===r)return this.complete(a.completion,a.afterLoc),L(a),b}},catch:function(r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc===r){var i=a.completion;if("throw"===i.type){var o=i.arg;L(a)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,a,i){return this.delegate={iterator:O(n),resultName:a,nextLoc:i},"next"===this.method&&(this.arg=r),b}},n}function eX(r,n){return(eX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}function eQ(r){var n=function(r,n){if("object"!=typeof r||!r)return r;var a=r[Symbol.toPrimitive];if(void 0!==a){var i=a.call(r,n||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(r)}(r,"string");return"symbol"==typeof n?n:n+""}function e$(r){return(e$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function e0(r){var n="function"==typeof Map?new Map:void 0;return(e0=function(r){if(null===r||!function(r){try{return -1!==Function.toString.call(r).indexOf("[native code]")}catch(n){return"function"==typeof r}}(r))return r;if("function"!=typeof r)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(r))return n.get(r);n.set(r,a)}function a(){return function(r,n,a){if(eY())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,n);var o=new(r.bind.apply(r,i));return a&&eX(o,a.prototype),o}(r,arguments,eZ(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),eX(a,r)})(r)}eU({global:!0},{globalThis:o});var e8,e1,e2=Array.isArray||function(r){return"Array"==g(r)},e3=function(r,n,a){var i=k(n);i in r?A.f(r,i,p(0,a)):r[i]=a},e9=ed("navigator","userAgent")||"",e4=o.process,e5=e4&&e4.versions,e6=e5&&e5.v8;e6?e1=(e8=e6.split("."))[0]<4?1:e8[0]+e8[1]:e9&&(!(e8=e9.match(/Edge\/(\d+)/))||e8[1]>=74)&&(e8=e9.match(/Chrome\/(\d+)/))&&(e1=e8[1]);var e7=e1&&+e1,te=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())||!Symbol.sham&&e7&&e7<41}),tt=te&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,tr=Z("wks"),tn=o.Symbol,ta=tt?tn:tn&&tn.withoutSetter||q,ti=function(r){return T(tr,r)&&(te||"string"==typeof tr[r])||(te&&T(tn,r)?tr[r]=tn[r]:tr[r]=ta("Symbol."+r)),tr[r]},to=ti("species"),tc=function(r,n){var a;return e2(r)&&("function"==typeof(a=r.constructor)&&(a===Array||e2(a.prototype))?a=void 0:x(a)&&null===(a=a[to])&&(a=void 0)),new(void 0===a?Array:a)(0===n?0:n)},tf=ti("species"),ts=function(r){return e7>=51||!f(function(){var n=[];return(n.constructor={})[tf]=function(){return{foo:1}},1!==n[r](Boolean).foo})},tu=ti("isConcatSpreadable"),tl="Maximum allowed index exceeded",th=e7>=51||!f(function(){var r=[];return r[tu]=!1,r.concat()[0]!==r}),td=ts("concat"),tp=function(r){if(!x(r))return!1;var n=r[tu];return void 0!==n?!!n:e2(r)};eU({target:"Array",proto:!0,forced:!th||!td},{concat:function(r){var n,a,i,o,c,f=S(this),s=tc(f,0),u=0;for(n=-1,i=arguments.length;n<i;n++)if(tp(c=-1===n?f:arguments[n])){if(u+(o=em(c.length))>9007199254740991)throw TypeError(tl);for(a=0;a<o;a++,u++)a in c&&e3(s,u,c[a])}else{if(u>=9007199254740991)throw TypeError(tl);e3(s,u++,c)}return s.length=u,s}});var tv,tg=Object.keys||function(r){return eE(r,eR)},tb=s?Object.defineProperties:function(r,n){P(r);for(var a,i=tg(n),o=i.length,c=0;o>c;)A.f(r,a=i[c++],n[a]);return r},ty=ed("document","documentElement"),tm="prototype",t_="script",tx=Q("IE_PROTO"),tk=function(){},tS=function(r){return"<"+t_+">"+r+"</"+t_+">"},tw=function(){try{tv=document.domain&&new ActiveXObject("htmlfile")}catch(r){}tw=tv?((r=tv).write(tS("")),r.close(),n=r.parentWindow.Object,r=null,n):(i=L("iframe"),o="java"+t_+":",i.style.display="none",ty.appendChild(i),i.src=String(o),(a=i.contentWindow.document).open(),a.write(tS("document.F=Object")),a.close(),a.F);for(var r,n,a,i,o,c=eR.length;c--;)delete tw[tm][eR[c]];return tw()};$[tx]=!0;var tT=Object.create||function(r,n){var a;return null!==r?(tk[tm]=P(r),a=new tk,tk[tm]=null,a[tx]=r):a=tw(),void 0===n?a:tb(a,n)},tE=ti("unscopables"),tR=Array.prototype;null==tR[tE]&&A.f(tR,tE,{configurable:!0,value:tT(null)});var tL,tI,tO,tA={},tP=!f(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),tC=Q("IE_PROTO"),tD=Object.prototype,tM=tP?Object.getPrototypeOf:function(r){return T(r=S(r),tC)?r[tC]:"function"==typeof r.constructor&&r instanceof r.constructor?r.constructor.prototype:r instanceof Object?tD:null},tN=ti("iterator"),tj=!1;[].keys&&("next"in(tO=[].keys())?(tI=tM(tM(tO)))!==Object.prototype&&(tL=tI):tj=!0),(null==tL||f(function(){var r={};return tL[tN].call(r)!==r}))&&(tL={}),T(tL,tN)||D(tL,tN,function(){return this});var tB=tL,tU=tj,tF=A.f,tG=ti("toStringTag"),tV=function(r,n,a){r&&!T(r=a?r:r.prototype,tG)&&tF(r,tG,{configurable:!0,value:n})},tW=function(){return this},tK=function(r){if(!x(r)&&null!==r)throw TypeError("Can't set "+String(r)+" as a prototype");return r},tz=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,a={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(a,[]),n=a instanceof Array}catch(r){}return function(a,i){return P(a),tK(i),n?r.call(a,i):a.__proto__=i,a}}():void 0),tH=function(r,n,a){var i=n+" Iterator";return r.prototype=tT(tB,{next:p(1,a)}),tV(r,i,!1),tA[i]=tW,r},tZ=tB,tJ=tU,tY=ti("iterator"),tq="keys",tX="values",tQ="entries",t$=function(){return this},t0=function(r,n,a,i,o,c,f){tH(a,n,i);var s,u,l,h=function(r){if(r===o&&b)return b;if(!tJ&&r in v)return v[r];switch(r){case tq:case tX:case tQ:return function(){return new a(this,r)}}return function(){return new a(this)}},d=n+" Iterator",p=!1,v=r.prototype,g=v[tY]||v["@@iterator"]||o&&v[o],b=!tJ&&g||h(o),y="Array"==n&&v.entries||g;if(y&&(s=tM(y.call(new r)),tZ!==Object.prototype&&s.next&&(tM(s)!==tZ&&(tz?tz(s,tZ):"function"!=typeof s[tY]&&D(s,tY,t$)),tV(s,d,!0))),o==tX&&g&&g.name!==tX&&(p=!0,b=function(){return g.call(this)}),v[tY]!==b&&D(v,tY,b),tA[n]=b,o){if(u={values:h(tX),keys:c?b:h(tq),entries:h(tQ)},f)for(l in u)!tJ&&!p&&l in v||el(v,l,u[l]);else eU({target:n,proto:!0,forced:tJ||p},u)}return u},t8=function(r){tR[tE][r]=!0},t1="Array Iterator",t2=ec.set,t3=ec.getterFor(t1),t9=t0(Array,"Array",function(r,n){t2(this,{type:t1,target:_(r),index:0,kind:n})},function(){var r=t3(this),n=r.target,a=r.kind,i=r.index++;return!n||i>=n.length?(r.target=void 0,{value:void 0,done:!0}):"keys"==a?{value:i,done:!1}:"values"==a?{value:n[i],done:!1}:{value:[i,n[i]],done:!1}},"values");tA.Arguments=tA.Array,t8("keys"),t8("values"),t8("entries");var t4="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,t5=function(r,n,a){for(var i in n)el(r,i,n[i],a);return r},t6=function(r,n,a){if(!(r instanceof n))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return r},t7=function(r){if(void 0===r)return 0;var n=eb(r),a=em(n);if(n!==a)throw RangeError("Wrong length or index");return a},re=Math.abs,rt=Math.pow,rr=Math.floor,rn=Math.log,ra=Math.LN2,ri=function(r){for(var n=S(this),a=em(n.length),i=arguments.length,o=ek(i>1?arguments[1]:void 0,a),c=i>2?arguments[2]:void 0,f=void 0===c?a:ek(c,a);f>o;)n[o++]=r;return n},ro=function(r,n,a){var i,o,c,f=Array(a),s=8*a-n-1,u=(1<<s)-1,l=u>>1,h=23===n?rt(2,-24)-rt(2,-77):0,d=r<0||0===r&&1/r<0?1:0,p=0;for((r=re(r))!=r||r===1/0?(o=r!=r?1:0,i=u):(i=rr(rn(r)/ra),r*(c=rt(2,-i))<1&&(i--,c*=2),(r+=i+l>=1?h/c:h*rt(2,1-l))*c>=2&&(i++,c/=2),i+l>=u?(o=0,i=u):i+l>=1?(o=(r*c-1)*rt(2,n),i+=l):(o=r*rt(2,l-1)*rt(2,n),i=0));n>=8;f[p++]=255&o,o/=256,n-=8);for(i=i<<n|o,s+=n;s>0;f[p++]=255&i,i/=256,s-=8);return f[--p]|=128*d,f},rc=function(r,n){var a,i=r.length,o=8*i-n-1,c=(1<<o)-1,f=c>>1,s=o-7,u=i-1,l=r[u--],h=127&l;for(l>>=7;s>0;h=256*h+r[u],u--,s-=8);for(a=h&(1<<-s)-1,h>>=-s,s+=n;s>0;a=256*a+r[u],u--,s-=8);if(0===h)h=1-f;else{if(h===c)return a?NaN:l?-Infinity:1/0;a+=rt(2,n),h-=f}return(l?-1:1)*a*rt(2,h-n)},rf=ep.f,rs=A.f,ru=ec.get,rl=ec.set,rh="ArrayBuffer",rd="DataView",rp="prototype",rv="Wrong index",rg=o[rh],rb=rg,ry=o[rd],rm=ry&&ry[rp],r_=Object.prototype,rx=o.RangeError,rk=ro,rS=rc,rw=function(r){return[255&r]},rT=function(r){return[255&r,r>>8&255]},rE=function(r){return[255&r,r>>8&255,r>>16&255,r>>24&255]},rR=function(r){return r[3]<<24|r[2]<<16|r[1]<<8|r[0]},rL=function(r){return rk(r,23,4)},rI=function(r){return rk(r,52,8)},rO=function(r,n){rs(r[rp],n,{get:function(){return ru(this)[n]}})},rA=function(r,n,a,i){var o=t7(a),c=ru(r);if(o+n>c.byteLength)throw rx(rv);var f=ru(c.buffer).bytes,s=o+c.byteOffset,u=f.slice(s,s+n);return i?u:u.reverse()},rP=function(r,n,a,i,o,c){var f=t7(a),s=ru(r);if(f+n>s.byteLength)throw rx(rv);for(var u=ru(s.buffer).bytes,l=f+s.byteOffset,h=i(+o),d=0;d<n;d++)u[l+d]=h[c?d:n-d-1]};if(t4){if(!f(function(){rg(1)})||!f(function(){new rg(-1)})||f(function(){return new rg,new rg(1.5),new rg(NaN),rg.name!=rh})){for(var rC,rD=(rb=function(r){return t6(this,rb),new rg(t7(r))})[rp]=rg[rp],rM=rf(rg),rN=0;rM.length>rN;)(rC=rM[rN++])in rb||D(rb,rC,rg[rC]);rD.constructor=rb}tz&&tM(rm)!==r_&&tz(rm,r_);var rj=new ry(new rb(2)),rB=rm.setInt8;rj.setInt8(0,2147483648),rj.setInt8(1,2147483649),!rj.getInt8(0)&&rj.getInt8(1)||t5(rm,{setInt8:function(r,n){rB.call(this,r,n<<24>>24)},setUint8:function(r,n){rB.call(this,r,n<<24>>24)}},{unsafe:!0})}else rb=function(r){t6(this,rb,rh);var n=t7(r);rl(this,{bytes:ri.call(Array(n),0),byteLength:n}),s||(this.byteLength=n)},ry=function(r,n,a){t6(this,ry,rd),t6(r,rb,rd);var i=ru(r).byteLength,o=eb(n);if(o<0||o>i)throw rx("Wrong offset");if(o+(a=void 0===a?i-o:em(a))>i)throw rx("Wrong length");rl(this,{buffer:r,byteLength:a,byteOffset:o}),s||(this.buffer=r,this.byteLength=a,this.byteOffset=o)},s&&(rO(rb,"byteLength"),rO(ry,"buffer"),rO(ry,"byteLength"),rO(ry,"byteOffset")),t5(ry[rp],{getInt8:function(r){return rA(this,1,r)[0]<<24>>24},getUint8:function(r){return rA(this,1,r)[0]},getInt16:function(r){var n=rA(this,2,r,arguments.length>1?arguments[1]:void 0);return(n[1]<<8|n[0])<<16>>16},getUint16:function(r){var n=rA(this,2,r,arguments.length>1?arguments[1]:void 0);return n[1]<<8|n[0]},getInt32:function(r){return rR(rA(this,4,r,arguments.length>1?arguments[1]:void 0))},getUint32:function(r){return rR(rA(this,4,r,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(r){return rS(rA(this,4,r,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(r){return rS(rA(this,8,r,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(r,n){rP(this,1,r,rw,n)},setUint8:function(r,n){rP(this,1,r,rw,n)},setInt16:function(r,n){rP(this,2,r,rT,n,arguments.length>2?arguments[2]:void 0)},setUint16:function(r,n){rP(this,2,r,rT,n,arguments.length>2?arguments[2]:void 0)},setInt32:function(r,n){rP(this,4,r,rE,n,arguments.length>2?arguments[2]:void 0)},setUint32:function(r,n){rP(this,4,r,rE,n,arguments.length>2?arguments[2]:void 0)},setFloat32:function(r,n){rP(this,4,r,rL,n,arguments.length>2?arguments[2]:void 0)},setFloat64:function(r,n){rP(this,8,r,rI,n,arguments.length>2?arguments[2]:void 0)}});tV(rb,rh),tV(ry,rd);var rU={ArrayBuffer:rb,DataView:ry},rF=ti("species"),rG=function(r){var n=ed(r),a=A.f;s&&n&&!n[rF]&&a(n,rF,{configurable:!0,get:function(){return this}})},rV="ArrayBuffer",rW=rU[rV];eU({global:!0,forced:o[rV]!==rW},{ArrayBuffer:rW}),rG(rV);eU({target:"Object",stat:!0,forced:f(function(){tg(1)})},{keys:function(r){return tg(S(r))}});var rK={};rK[ti("toStringTag")]="z";var rz="[object z]"===String(rK),rH=ti("toStringTag"),rZ="Arguments"==g(function(){return arguments}()),rJ=rz?g:function(r){var n,a,i;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(a=function(r,n){try{return r[n]}catch(r){}}(n=Object(r),rH))?a:rZ?g(n):"Object"==(i=g(n))&&"function"==typeof n.callee?"Arguments":i};rz||el(Object.prototype,"toString",rz?({}).toString:function(){return"[object "+rJ(this)+"]"},{unsafe:!0});var rY=o.Promise,rq=function(r){if("function"!=typeof r)throw TypeError(String(r)+" is not a function");return r},rX=ti("iterator"),rQ=Array.prototype,r$=function(r){return void 0!==r&&(tA.Array===r||rQ[rX]===r)},r0=function(r,n,a){if(rq(r),void 0===n)return r;switch(a){case 0:return function(){return r.call(n)};case 1:return function(a){return r.call(n,a)};case 2:return function(a,i){return r.call(n,a,i)};case 3:return function(a,i,o){return r.call(n,a,i,o)}}return function(){return r.apply(n,arguments)}},r8=ti("iterator"),r1=function(r){if(null!=r)return r[r8]||r["@@iterator"]||tA[rJ(r)]},r2=function(r){var n=r.return;if(void 0!==n)return P(n.call(r)).value},r3=function(r,n){this.stopped=r,this.result=n},r9=function(r,n,a){var i,o,c,f,s,u,l,h=a&&a.that,d=!(!a||!a.AS_ENTRIES),p=!(!a||!a.IS_ITERATOR),v=!(!a||!a.INTERRUPTED),g=r0(n,h,1+d+v),b=function(r){return i&&r2(i),new r3(!0,r)},y=function(r){return d?(P(r),v?g(r[0],r[1],b):g(r[0],r[1])):v?g(r,b):g(r)};if(p)i=r;else{if("function"!=typeof(o=r1(r)))throw TypeError("Target is not iterable");if(r$(o)){for(c=0,f=em(r.length);f>c;c++)if((s=y(r[c]))&&s instanceof r3)return s;return new r3(!1)}i=o.call(r)}for(u=i.next;!(l=u.call(i)).done;){try{s=y(l.value)}catch(r){throw r2(i),r}if("object"==typeof s&&s&&s instanceof r3)return s}return new r3(!1)},r4=ti("iterator"),r5=!1;try{var r6=0,r7={next:function(){return{done:!!r6++}},return:function(){r5=!0}};r7[r4]=function(){return this},Array.from(r7,function(){throw 2})}catch(r){}var ne,nt,nr,nn=function(r,n){if(!n&&!r5)return!1;var a=!1;try{var i={};i[r4]=function(){return{next:function(){return{done:a=!0}}}},r(i)}catch(r){}return a},na=ti("species"),ni=function(r,n){var a,i=P(r).constructor;return void 0===i||null==(a=P(i)[na])?n:rq(a)},no=/(?:iphone|ipod|ipad).*applewebkit/i.test(e9),nc="process"==g(o.process),nf=o.location,ns=o.setImmediate,nu=o.clearImmediate,nl=o.process,nh=o.MessageChannel,nd=o.Dispatch,np=0,nv={},ng="onreadystatechange",nb=function(r){if(nv.hasOwnProperty(r)){var n=nv[r];delete nv[r],n()}},ny=function(r){return function(){nb(r)}},nm=function(r){nb(r.data)},n_=function(r){o.postMessage(r+"",nf.protocol+"//"+nf.host)};ns&&nu||(ns=function(r){for(var n=[],a=1;arguments.length>a;)n.push(arguments[a++]);return nv[++np]=function(){("function"==typeof r?r:Function(r)).apply(void 0,n)},ne(np),np},nu=function(r){delete nv[r]},nc?ne=function(r){nl.nextTick(ny(r))}:nd&&nd.now?ne=function(r){nd.now(ny(r))}:nh&&!no?(nr=(nt=new nh).port2,nt.port1.onmessage=nm,ne=r0(nr.postMessage,nr,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&nf&&"file:"!==nf.protocol&&!f(n_)?(ne=n_,o.addEventListener("message",nm,!1)):ne=ng in L("script")?function(r){ty.appendChild(L("script"))[ng]=function(){ty.removeChild(this),nb(r)}}:function(r){setTimeout(ny(r),0)});var nx,nk,nS,nw,nT,nE,nR,nL,nI=ns,nO=/web0s(?!.*chrome)/i.test(e9),nA=c.f,nP=o.MutationObserver||o.WebKitMutationObserver,nC=o.document,nD=o.process,nM=o.Promise,nN=nA(o,"queueMicrotask"),nj=nN&&nN.value;nj||(nx=function(){var r,n;for(nc&&(r=nD.domain)&&r.exit();nk;){n=nk.fn,nk=nk.next;try{n()}catch(r){throw nk?nw():nS=void 0,r}}nS=void 0,r&&r.enter()},no||nc||nO||!nP||!nC?nM&&nM.resolve?((nR=nM.resolve(void 0)).constructor=nM,nL=nR.then,nw=function(){nL.call(nR,nx)}):nw=nc?function(){nD.nextTick(nx)}:function(){nI.call(o,nx)}:(nT=!0,nE=nC.createTextNode(""),new nP(nx).observe(nE,{characterData:!0}),nw=function(){nE.data=nT=!nT}));var nB=nj||function(r){var n={fn:r,next:void 0};nS&&(nS.next=n),nk||(nk=n,nw()),nS=n},nU={},nF=function(r){var n,a;this.promise=new r(function(r,i){if(void 0!==n||void 0!==a)throw TypeError("Bad Promise constructor");n=r,a=i}),this.resolve=rq(n),this.reject=rq(a)};nU.f=function(r){return new nF(r)};var nG,nV,nW,nK,nz="object"==typeof window,nH=nI,nZ=function(r,n){if(P(r),x(n)&&n.constructor===r)return n;var a=nU.f(r);return(0,a.resolve)(n),a.promise},nJ=function(r,n){var a=o.console;a&&a.error&&(1==arguments.length?a.error(r):a.error(r,n))},nY=function(r){try{return{error:!1,value:r()}}catch(r){return{error:!0,value:r}}},nq=ti("species"),nX="Promise",nQ=ec.get,n$=ec.set,n0=ec.getterFor(nX),n8=rY&&rY.prototype,n1=rY,n2=n8,n3=o.TypeError,n9=o.document,n4=o.process,n5=nU.f,n6=n5,n7=!!(n9&&n9.createEvent&&o.dispatchEvent),ae="function"==typeof PromiseRejectionEvent,at="unhandledrejection",ar=!1,an=eP(nX,function(){var r=F(n1)!==String(n1);if(!r&&66===e7)return!0;if(e7>=51&&/native code/.test(n1))return!1;var n=new n1(function(r){r(1)}),a=function(r){r(function(){},function(){})};return(n.constructor={})[nq]=a,!(ar=n.then(function(){}) instanceof a)||!r&&nz&&!ae}),aa=an||!nn(function(r){n1.all(r).catch(function(){})}),ai=function(r){var n;return!(!x(r)||"function"!=typeof(n=r.then))&&n},ao=function(r,n){if(!r.notified){r.notified=!0;var a=r.reactions;nB(function(){for(var i=r.value,o=1==r.state,c=0;a.length>c;){var f,s,u,l=a[c++],h=o?l.ok:l.fail,d=l.resolve,p=l.reject,v=l.domain;try{h?(o||(2===r.rejection&&au(r),r.rejection=1),!0===h?f=i:(v&&v.enter(),f=h(i),v&&(v.exit(),u=!0)),f===l.promise?p(n3("Promise-chain cycle")):(s=ai(f))?s.call(f,d,p):d(f)):p(i)}catch(r){v&&!u&&v.exit(),p(r)}}r.reactions=[],r.notified=!1,n&&!r.rejection&&af(r)})}},ac=function(r,n,a){var i,c;n7?((i=n9.createEvent("Event")).promise=n,i.reason=a,i.initEvent(r,!1,!0),o.dispatchEvent(i)):i={promise:n,reason:a},!ae&&(c=o["on"+r])?c(i):r===at&&nJ("Unhandled promise rejection",a)},af=function(r){nH.call(o,function(){var n,a=r.facade,i=r.value;if(as(r)&&(n=nY(function(){nc?n4.emit("unhandledRejection",i,a):ac(at,a,i)}),r.rejection=nc||as(r)?2:1,n.error))throw n.value})},as=function(r){return 1!==r.rejection&&!r.parent},au=function(r){nH.call(o,function(){var n=r.facade;nc?n4.emit("rejectionHandled",n):ac("rejectionhandled",n,r.value)})},al=function(r,n,a){return function(i){r(n,i,a)}},ah=function(r,n,a){r.done||(r.done=!0,a&&(r=a),r.value=n,r.state=2,ao(r,!0))},ad=function(r,n,a){if(!r.done){r.done=!0,a&&(r=a);try{if(r.facade===n)throw n3("Promise can't be resolved itself");var i=ai(n);i?nB(function(){var a={done:!1};try{i.call(n,al(ad,a,r),al(ah,a,r))}catch(n){ah(a,n,r)}}):(r.value=n,r.state=1,ao(r,!1))}catch(n){ah({done:!1},n,r)}}};if(an&&(n2=(n1=function(r){t6(this,n1,nX),rq(r),nG.call(this);var n=nQ(this);try{r(al(ad,n),al(ah,n))}catch(r){ah(n,r)}}).prototype,(nG=function(r){n$(this,{type:nX,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=t5(n2,{then:function(r,n){var a=n0(this),i=n5(ni(this,n1));return i.ok="function"!=typeof r||r,i.fail="function"==typeof n&&n,i.domain=nc?n4.domain:void 0,a.parent=!0,a.reactions.push(i),0!=a.state&&ao(a,!1),i.promise},catch:function(r){return this.then(void 0,r)}}),nV=function(){var r=new nG,n=nQ(r);this.promise=r,this.resolve=al(ad,n),this.reject=al(ah,n)},nU.f=n5=function(r){return r===n1||r===nW?new nV(r):n6(r)},"function"==typeof rY&&n8!==Object.prototype)){nK=n8.then,ar||(el(n8,"then",function(r,n){var a=this;return new n1(function(r,n){nK.call(a,r,n)}).then(r,n)},{unsafe:!0}),el(n8,"catch",n2.catch,{unsafe:!0}));try{delete n8.constructor}catch(r){}tz&&tz(n8,n2)}eU({global:!0,wrap:!0,forced:an},{Promise:n1}),tV(n1,nX,!1),rG(nX),nW=ed(nX),eU({target:nX,stat:!0,forced:an},{reject:function(r){var n=n5(this);return n.reject.call(void 0,r),n.promise}}),eU({target:nX,stat:!0,forced:an},{resolve:function(r){return nZ(this,r)}}),eU({target:nX,stat:!0,forced:aa},{all:function(r){var n=this,a=n5(n),i=a.resolve,o=a.reject,c=nY(function(){var a=rq(n.resolve),c=[],f=0,s=1;r9(r,function(r){var u=f++,l=!1;c.push(void 0),s++,a.call(n,r).then(function(r){l||(l=!0,c[u]=r,--s||i(c))},o)}),--s||i(c)});return c.error&&o(c.value),a.promise},race:function(r){var n=this,a=n5(n),i=a.reject,o=nY(function(){var o=rq(n.resolve);r9(r,function(r){o.call(n,r).then(a.resolve,i)})});return o.error&&i(o.value),a.promise}});var ap=function(){var r=P(this),n="";return r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.sticky&&(n+="y"),n},av="toString",ag=RegExp.prototype,ab=ag[av],ay=f(function(){return"/a/b"!=ab.call({source:"a",flags:"b"})}),am=ab.name!=av;(ay||am)&&el(RegExp.prototype,av,function(){var r=P(this),n=String(r.source),a=r.flags;return"/"+n+"/"+String(void 0===a&&r instanceof RegExp&&!("flags"in ag)?ap.call(r):a)},{unsafe:!0});var a_,ax={exports:{}},ak=A.f,aS=o.Int8Array,aw=aS&&aS.prototype,aT=o.Uint8ClampedArray,aE=aT&&aT.prototype,aR=aS&&tM(aS),aL=aw&&tM(aw),aI=Object.prototype,aO=aI.isPrototypeOf,aA=ti("toStringTag"),aP=q("TYPED_ARRAY_TAG"),aC=t4&&!!tz&&"Opera"!==rJ(o.opera),aD=!1,aM={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},aN={BigInt64Array:8,BigUint64Array:8},aj=function(r){if(!x(r))return!1;var n=rJ(r);return T(aM,n)||T(aN,n)};for(a_ in aM)o[a_]||(aC=!1);if((!aC||"function"!=typeof aR||aR===Function.prototype)&&(aR=function(){throw TypeError("Incorrect invocation")},aC))for(a_ in aM)o[a_]&&tz(o[a_],aR);if((!aC||!aL||aL===aI)&&(aL=aR.prototype,aC))for(a_ in aM)o[a_]&&tz(o[a_].prototype,aL);if(aC&&tM(aE)!==aL&&tz(aE,aL),s&&!T(aL,aA))for(a_ in aD=!0,ak(aL,aA,{get:function(){return x(this)?this[aP]:void 0}}),aM)o[a_]&&D(o[a_],aP,a_);var aB={NATIVE_ARRAY_BUFFER_VIEWS:aC,TYPED_ARRAY_TAG:aD&&aP,aTypedArray:function(r){if(aj(r))return r;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(r){if(tz){if(aO.call(aR,r))return r}else for(var n in aM)if(T(aM,a_)){var a=o[n];if(a&&(r===a||aO.call(a,r)))return r}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(r,n,a){if(s){if(a)for(var i in aM){var c=o[i];if(c&&T(c.prototype,r))try{delete c.prototype[r]}catch(r){}}aL[r]&&!a||el(aL,r,a?n:aC&&aw[r]||n)}},exportTypedArrayStaticMethod:function(r,n,a){var i,c;if(s){if(tz){if(a){for(i in aM)if((c=o[i])&&T(c,r))try{delete c[r]}catch(r){}}if(aR[r]&&!a)return;try{return el(aR,r,a?n:aC&&aR[r]||n)}catch(r){}}for(i in aM)(c=o[i])&&(!c[r]||a)&&el(c,r,n)}},isView:function(r){if(!x(r))return!1;var n=rJ(r);return"DataView"===n||T(aM,n)||T(aN,n)},isTypedArray:aj,TypedArray:aR,TypedArrayPrototype:aL},aU=aB.NATIVE_ARRAY_BUFFER_VIEWS,aF=o.ArrayBuffer,aG=o.Int8Array,aV=!aU||!f(function(){aG(1)})||!f(function(){new aG(-1)})||!nn(function(r){new aG,new aG(null),new aG(1.5),new aG(r)},!0)||f(function(){return 1!==new aG(new aF(2),1,void 0).length}),aW=function(r){var n=eb(r);if(n<0)throw RangeError("The argument can't be less than 0");return n},aK=function(r,n){var a=aW(r);if(a%n)throw RangeError("Wrong offset");return a},az=aB.aTypedArrayConstructor,aH=[].push,aZ=function(r){var n=1==r,a=2==r,i=3==r,o=4==r,c=6==r,f=7==r,s=5==r||c;return function(u,l,h,d){for(var p,v,g=S(u),b=y(g),m=r0(l,h,3),_=em(b.length),x=0,k=d||tc,w=n?k(u,_):a||f?k(u,0):void 0;_>x;x++)if((s||x in b)&&(v=m(p=b[x],x,g),r)){if(n)w[x]=v;else if(v)switch(r){case 3:return!0;case 5:return p;case 6:return x;case 2:aH.call(w,p)}else switch(r){case 4:return!1;case 7:aH.call(w,p)}}return c?-1:i||o?o:w}},aJ={forEach:aZ(0),map:aZ(1),filter:aZ(2),some:aZ(3),every:aZ(4),find:aZ(5),findIndex:aZ(6),filterOut:aZ(7)},aY=function(r,n,a){var i,o;return tz&&"function"==typeof(i=n.constructor)&&i!==a&&x(o=i.prototype)&&o!==a.prototype&&tz(r,o),r},aq=ep.f,aX=function(r){var n,a,i,o,c,f,s=S(r),u=arguments.length,l=u>1?arguments[1]:void 0,h=void 0!==l,d=r1(s);if(null!=d&&!r$(d))for(f=(c=d.call(s)).next,s=[];!(o=f.call(c)).done;)s.push(o.value);for(h&&u>2&&(l=r0(l,arguments[2],2)),a=em(s.length),i=new(az(this))(a),n=0;a>n;n++)i[n]=h?l(s[n],n):s[n];return i},aQ=aJ.forEach,a$=ec.get,a0=ec.set,a8=A.f,a1=c.f,a2=Math.round,a3=o.RangeError,a9=rU.ArrayBuffer,a4=rU.DataView,a5=aB.NATIVE_ARRAY_BUFFER_VIEWS,a6=aB.TYPED_ARRAY_TAG,a7=aB.TypedArray,ie=aB.TypedArrayPrototype,it=aB.aTypedArrayConstructor,ir=aB.isTypedArray,ia="BYTES_PER_ELEMENT",ii="Wrong length",io=function(r,n){for(var a=0,i=n.length,o=new(it(r))(i);i>a;)o[a]=n[a++];return o},ic=function(r,n){a8(r,n,{get:function(){return a$(this)[n]}})},is=function(r){var n;return r instanceof a9||"ArrayBuffer"==(n=rJ(r))||"SharedArrayBuffer"==n},iu=function(r,n){return ir(r)&&"symbol"!=typeof n&&n in r&&String(+n)==String(n)},il=function(r,n){return iu(r,n=k(n,!0))?p(2,r[n]):a1(r,n)},ih=function(r,n,a){return!(iu(r,n=k(n,!0))&&x(a)&&T(a,"value"))||T(a,"get")||T(a,"set")||a.configurable||T(a,"writable")&&!a.writable||T(a,"enumerable")&&!a.enumerable?a8(r,n,a):(r[n]=a.value,r)};s?(a5||(c.f=il,A.f=ih,ic(ie,"buffer"),ic(ie,"byteOffset"),ic(ie,"byteLength"),ic(ie,"length")),eU({target:"Object",stat:!0,forced:!a5},{getOwnPropertyDescriptor:il,defineProperty:ih}),ax.exports=function(r,n,a){var i=r.match(/\d+$/)[0]/8,c=r+(a?"Clamped":"")+"Array",f="get"+r,s="set"+r,u=o[c],l=u,h=l&&l.prototype,d={},p=function(r,n){a8(r,n,{get:function(){var r,a,o;return r=this,a=n,(o=a$(r)).view[f](a*i+o.byteOffset,!0)},set:function(r){var o,c,f,u;return o=this,c=n,f=r,u=a$(o),void(a&&(f=(f=a2(f))<0?0:f>255?255:255&f),u.view[s](c*i+u.byteOffset,f,!0))},enumerable:!0})};a5?aV&&(l=n(function(r,n,a,o){return t6(r,l,c),aY(x(n)?is(n)?void 0!==o?new u(n,aK(a,i),o):void 0!==a?new u(n,aK(a,i)):new u(n):ir(n)?io(l,n):aX.call(l,n):new u(t7(n)),r,l)}),tz&&tz(l,a7),aQ(aq(u),function(r){r in l||D(l,r,u[r])}),l.prototype=h):(l=n(function(r,n,a,o){t6(r,l,c);var f,s,u,h=0,d=0;if(x(n)){if(!is(n))return ir(n)?io(l,n):aX.call(l,n);f=n,d=aK(a,i);var v=n.byteLength;if(void 0===o){if(v%i||(s=v-d)<0)throw a3(ii)}else if((s=em(o)*i)+d>v)throw a3(ii);u=s/i}else f=new a9(s=(u=t7(n))*i);for(a0(r,{buffer:f,byteOffset:d,byteLength:s,length:u,view:new a4(f)});h<u;)p(r,h++)}),tz&&tz(l,a7),h=l.prototype=tT(ie)),h.constructor!==l&&D(h,"constructor",l),a6&&D(h,a6,c),d[c]=l,eU({global:!0,forced:l!=u,sham:!a5},d),ia in l||D(l,ia,i),ia in h||D(h,ia,i),rG(c)}):ax.exports=function(){};var id=ax.exports;id("Uint8",function(r){return function(n,a,i){return r(this,n,a,i)}}),id("Uint16",function(r){return function(n,a,i){return r(this,n,a,i)}});var ip=Math.min,iv=[].copyWithin||function(r,n){var a=S(this),i=em(a.length),o=ek(r,i),c=ek(n,i),f=arguments.length>2?arguments[2]:void 0,s=ip((void 0===f?i:ek(f,i))-c,i-o),u=1;for(c<o&&o<c+s&&(u=-1,c+=s-1,o+=s-1);s-- >0;)c in a?a[o]=a[c]:delete a[o],o+=u,c+=u;return a},ig=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("copyWithin",function(r,n){return iv.call(ig(this),r,n,arguments.length>2?arguments[2]:void 0)});var ib=aJ.every,iy=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("every",function(r){return ib(iy(this),r,arguments.length>1?arguments[1]:void 0)});var im=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("fill",function(r){return ri.apply(im(this),arguments)});var i_=aB.aTypedArrayConstructor,ix=aJ.filter,ik=function(r,n){for(var a=ni(r,r.constructor),i=0,o=n.length,c=new(i_(a))(o);o>i;)c[i]=n[i++];return c},iS=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("filter",function(r){var n=ix(iS(this),r,arguments.length>1?arguments[1]:void 0);return ik(this,n)});var iw=aJ.find,iT=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("find",function(r){return iw(iT(this),r,arguments.length>1?arguments[1]:void 0)});var iE=aJ.findIndex,iR=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("findIndex",function(r){return iE(iR(this),r,arguments.length>1?arguments[1]:void 0)});var iL=aJ.forEach,iI=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("forEach",function(r){iL(iI(this),r,arguments.length>1?arguments[1]:void 0)});var iO=ew.includes,iA=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("includes",function(r){return iO(iA(this),r,arguments.length>1?arguments[1]:void 0)});var iP=ew.indexOf,iC=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("indexOf",function(r){return iP(iC(this),r,arguments.length>1?arguments[1]:void 0)});var iD=ti("iterator"),iM=o.Uint8Array,iN=t9.values,ij=t9.keys,iB=t9.entries,iU=aB.aTypedArray,iF=aB.exportTypedArrayMethod,iG=iM&&iM.prototype[iD],iV=!!iG&&("values"==iG.name||null==iG.name),iW=function(){return iN.call(iU(this))};iF("entries",function(){return iB.call(iU(this))}),iF("keys",function(){return ij.call(iU(this))}),iF("values",iW,!iV),iF(iD,iW,!iV);var iK=aB.aTypedArray,iz=[].join;(0,aB.exportTypedArrayMethod)("join",function(r){return iz.apply(iK(this),arguments)});var iH=function(r,n){var a=[][r];return!!a&&f(function(){a.call(null,n||function(){throw 1},1)})},iZ=Math.min,iJ=[].lastIndexOf,iY=!!iJ&&1/[1].lastIndexOf(1,-0)<0,iq=iH("lastIndexOf"),iX=iY||!iq?function(r){if(iY)return iJ.apply(this,arguments)||0;var n=_(this),a=em(n.length),i=a-1;for(arguments.length>1&&(i=iZ(i,eb(arguments[1]))),i<0&&(i=a+i);i>=0;i--)if(i in n&&n[i]===r)return i||0;return -1}:iJ,iQ=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("lastIndexOf",function(r){return iX.apply(iQ(this),arguments)});var i$=aJ.map,i0=aB.aTypedArray,i8=aB.aTypedArrayConstructor;(0,aB.exportTypedArrayMethod)("map",function(r){return i$(i0(this),r,arguments.length>1?arguments[1]:void 0,function(r,n){return new(i8(ni(r,r.constructor)))(n)})});var i1=function(r){return function(n,a,i,o){rq(a);var c=S(n),f=y(c),s=em(c.length),u=r?s-1:0,l=r?-1:1;if(i<2)for(;;){if(u in f){o=f[u],u+=l;break}if(u+=l,r?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?u>=0:s>u;u+=l)u in f&&(o=a(o,f[u],u,c));return o}},i2={left:i1(!1),right:i1(!0)},i3=i2.left,i9=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("reduce",function(r){return i3(i9(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)});var i4=i2.right,i5=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("reduceRight",function(r){return i4(i5(this),r,arguments.length,arguments.length>1?arguments[1]:void 0)});var i6=aB.aTypedArray,i7=aB.exportTypedArrayMethod,oe=Math.floor;i7("reverse",function(){for(var r,n=i6(this).length,a=oe(n/2),i=0;i<a;)r=this[i],this[i++]=this[--n],this[n]=r;return this});var ot=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("set",function(r){ot(this);var n=aK(arguments.length>1?arguments[1]:void 0,1),a=this.length,i=S(r),o=em(i.length),c=0;if(o+n>a)throw RangeError("Wrong length");for(;c<o;)this[n+c]=i[c++]},f(function(){new Int8Array(1).set({})}));var or=aB.aTypedArray,on=aB.aTypedArrayConstructor,oa=[].slice;(0,aB.exportTypedArrayMethod)("slice",function(r,n){for(var a=oa.call(or(this),r,n),i=ni(this,this.constructor),o=0,c=a.length,f=new(on(i))(c);c>o;)f[o]=a[o++];return f},f(function(){new Int8Array(1).slice()}));var oi=aJ.some,oo=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("some",function(r){return oi(oo(this),r,arguments.length>1?arguments[1]:void 0)});var oc=aB.aTypedArray,of=[].sort;(0,aB.exportTypedArrayMethod)("sort",function(r){return of.call(oc(this),r)});var os=aB.aTypedArray;(0,aB.exportTypedArrayMethod)("subarray",function(r,n){var a=os(this),i=a.length,o=ek(r,i);return new(ni(a,a.constructor))(a.buffer,a.byteOffset+o*a.BYTES_PER_ELEMENT,em((void 0===n?i:ek(n,i))-o))});var ou=o.Int8Array,ol=aB.aTypedArray,oh=aB.exportTypedArrayMethod,od=[].toLocaleString,op=[].slice,ov=!!ou&&f(function(){od.call(new ou(1))});oh("toLocaleString",function(){return od.apply(ov?op.call(ol(this)):ol(this),arguments)},f(function(){return[1,2].toLocaleString()!=new ou([1,2]).toLocaleString()})||!f(function(){ou.prototype.toLocaleString.call([1,2])}));var og=aB.exportTypedArrayMethod,ob=o.Uint8Array,oy=ob&&ob.prototype||{},om=[].toString,o_=[].join;f(function(){om.call({})})&&(om=function(){return o_.call(this)});var ox=oy.toString!=om;og("toString",om,ox);var ok={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},oS=aJ.forEach,ow=iH("forEach")?[].forEach:function(r){return oS(this,r,arguments.length>1?arguments[1]:void 0)};for(var oT in ok){var oE=o[oT],oR=oE&&oE.prototype;if(oR&&oR.forEach!==ow)try{D(oR,"forEach",ow)}catch(r){oR.forEach=ow}}var oL=ti("iterator"),oI=ti("toStringTag"),oO=t9.values;for(var oA in ok){var oP=o[oA],oC=oP&&oP.prototype;if(oC){if(oC[oL]!==oO)try{D(oC,oL,oO)}catch(r){oC[oL]=oO}if(oC[oI]||D(oC,oI,oA),ok[oA]){for(var oD in t9)if(oC[oD]!==t9[oD])try{D(oC,oD,t9[oD])}catch(r){oC[oD]=t9[oD]}}}}var oM={exports:{}};!function(r){var n=Object.prototype.hasOwnProperty,a="~";function i(){}function o(r,n,a){this.fn=r,this.context=n,this.once=a||!1}function c(r,n,i,c,f){if("function"!=typeof i)throw TypeError("The listener must be a function");var s=new o(i,c||r,f),u=a?a+n:n;return r._events[u]?r._events[u].fn?r._events[u]=[r._events[u],s]:r._events[u].push(s):(r._events[u]=s,r._eventsCount++),r}function f(r,n){0==--r._eventsCount?r._events=new i:delete r._events[n]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),s.prototype.eventNames=function(){var r,i,o=[];if(0===this._eventsCount)return o;for(i in r=this._events)n.call(r,i)&&o.push(a?i.slice(1):i);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(r)):o},s.prototype.listeners=function(r){var n=a?a+r:r,i=this._events[n];if(!i)return[];if(i.fn)return[i.fn];for(var o=0,c=i.length,f=Array(c);o<c;o++)f[o]=i[o].fn;return f},s.prototype.listenerCount=function(r){var n=a?a+r:r,i=this._events[n];return i?i.fn?1:i.length:0},s.prototype.emit=function(r,n,i,o,c,f){var s=a?a+r:r;if(!this._events[s])return!1;var u,l,h=this._events[s],d=arguments.length;if(h.fn){switch(h.once&&this.removeListener(r,h.fn,void 0,!0),d){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,n),!0;case 3:return h.fn.call(h.context,n,i),!0;case 4:return h.fn.call(h.context,n,i,o),!0;case 5:return h.fn.call(h.context,n,i,o,c),!0;case 6:return h.fn.call(h.context,n,i,o,c,f),!0}for(l=1,u=Array(d-1);l<d;l++)u[l-1]=arguments[l];h.fn.apply(h.context,u)}else{var p,v=h.length;for(l=0;l<v;l++)switch(h[l].once&&this.removeListener(r,h[l].fn,void 0,!0),d){case 1:h[l].fn.call(h[l].context);break;case 2:h[l].fn.call(h[l].context,n);break;case 3:h[l].fn.call(h[l].context,n,i);break;case 4:h[l].fn.call(h[l].context,n,i,o);break;default:if(!u)for(p=1,u=Array(d-1);p<d;p++)u[p-1]=arguments[p];h[l].fn.apply(h[l].context,u)}}return!0},s.prototype.on=function(r,n,a){return c(this,r,n,a,!1)},s.prototype.once=function(r,n,a){return c(this,r,n,a,!0)},s.prototype.removeListener=function(r,n,i,o){var c=a?a+r:r;if(!this._events[c])return this;if(!n)return f(this,c),this;var s=this._events[c];if(s.fn)s.fn!==n||o&&!s.once||i&&s.context!==i||f(this,c);else{for(var u=0,l=[],h=s.length;u<h;u++)(s[u].fn!==n||o&&!s[u].once||i&&s[u].context!==i)&&l.push(s[u]);l.length?this._events[c]=1===l.length?l[0]:l:f(this,c)}return this},s.prototype.removeAllListeners=function(r){var n;return r?(n=a?a+r:r,this._events[n]&&f(this,n)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=a,s.EventEmitter=s,r.exports=s}(oM);var oN=a(oM.exports),oj=[].join,oB=y!=Object,oU=iH("join",",");eU({target:"Array",proto:!0,forced:oB||!oU},{join:function(r){return oj.call(_(this),void 0===r?",":r)}});var oF=aJ.map;eU({target:"Array",proto:!0,forced:!ts("map")},{map:function(r){return oF(this,r,arguments.length>1?arguments[1]:void 0)}});var oG=ts("slice"),oV=ti("species"),oW=[].slice,oK=Math.max;eU({target:"Array",proto:!0,forced:!oG},{slice:function(r,n){var a,i,o,c=_(this),f=em(c.length),s=ek(r,f),u=ek(void 0===n?f:n,f);if(e2(c)&&("function"==typeof(a=c.constructor)&&(a===Array||e2(a.prototype))?a=void 0:x(a)&&null===(a=a[oV])&&(a=void 0),a===Array||void 0===a))return oW.call(c,s,u);for(i=new(void 0===a?Array:a)(oK(u-s,0)),o=0;s<u;s++,o++)s in c&&e3(i,o,c[s]);return i.length=o,i}});var oz="[ \n\v\f\r \xa0  \u2028\u2029\uFEFF]",oH=RegExp("^"+oz+oz+"*"),oZ=RegExp(oz+oz+"*$"),oJ=function(r){return function(n){var a=String(m(n));return 1&r&&(a=a.replace(oH,"")),2&r&&(a=a.replace(oZ,"")),a}},oY={start:oJ(1),end:oJ(2),trim:oJ(3)},oq=ep.f,oX=c.f,oQ=A.f,o$=oY.trim,o0="Number",o8=o[o0],o1=o8.prototype,o2=g(tT(o1))==o0,o3=function(r){var n,a,i,o,c,f,s,u,l=k(r,!1);if("string"==typeof l&&l.length>2){if(43===(n=(l=o$(l)).charCodeAt(0))||45===n){if(88===(a=l.charCodeAt(2))||120===a)return NaN}else if(48===n){switch(l.charCodeAt(1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+l}for(f=(c=l.slice(2)).length,s=0;s<f;s++)if((u=c.charCodeAt(s))<48||u>o)return NaN;return parseInt(c,i)}}return+l};if(eP(o0,!o8(" 0o1")||!o8("0b1")||o8("+0x1"))){for(var o9,o4=function(r){var n=arguments.length<1?0:r,a=this;return a instanceof o4&&(o2?f(function(){o1.valueOf.call(a)}):g(a)!=o0)?aY(new o8(o3(n)),a,o4):o3(n)},o5=s?oq(o8):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),o6=0;o5.length>o6;o6++)T(o8,o9=o5[o6])&&!T(o4,o9)&&oQ(o4,o9,oX(o8,o9));o4.prototype=o1,o1.constructor=o4,el(o,o0,o4)}var o7={};function ce(r,n){return RegExp(r,n)}o7.UNSUPPORTED_Y=f(function(){var r=RegExp("a","y");return r.lastIndex=2,null!=r.exec("abcd")}),o7.BROKEN_CARET=f(function(){var r=RegExp("^r","gy");return r.lastIndex=2,null!=r.exec("str")});var ct,cr,cn=RegExp.prototype.exec,ca=Z("native-string-replace",String.prototype.replace),ci=cn,co=(ct=/a/,cr=/b*/g,cn.call(ct,"a"),cn.call(cr,"a"),0!==ct.lastIndex||0!==cr.lastIndex),cc=o7.UNSUPPORTED_Y||o7.BROKEN_CARET,cf=void 0!==/()??/.exec("")[1];(co||cf||cc)&&(ci=function(r){var n,a,i,o,c=cc&&this.sticky,f=ap.call(this),s=this.source,u=0,l=r;return c&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),l=String(r).slice(this.lastIndex),this.lastIndex>0&&(!this.multiline||this.multiline&&"\n"!==r[this.lastIndex-1])&&(s="(?: "+s+")",l=" "+l,u++),a=RegExp("^(?:"+s+")",f)),cf&&(a=RegExp("^"+s+"$(?!\\s)",f)),co&&(n=this.lastIndex),i=cn.call(c?a:this,l),c?i?(i.input=i.input.slice(u),i[0]=i[0].slice(u),i.index=this.lastIndex,this.lastIndex+=i[0].length):this.lastIndex=0:co&&i&&(this.lastIndex=this.global?i.index+i[0].length:n),cf&&i&&i.length>1&&ca.call(i[0],a,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)}),i});var cs=ci;eU({target:"RegExp",proto:!0,forced:/./.exec!==cs},{exec:cs});var cu=ti("species"),cl=RegExp.prototype,ch=!f(function(){var r=/./;return r.exec=function(){var r=[];return r.groups={a:"7"},r},"7"!=="".replace(r,"$<a>")}),cd="$0"==="a".replace(/./,"$0"),cp=ti("replace"),cv=!!/./[cp]&&""===/./[cp]("a","$0"),cg=!f(function(){var r=/(?:)/,n=r.exec;r.exec=function(){return n.apply(this,arguments)};var a="ab".split(r);return 2!==a.length||"a"!==a[0]||"b"!==a[1]}),cb=function(r,n,a,i){var o=ti(r),c=!f(function(){var n={};return n[o]=function(){return 7},7!=""[r](n)}),s=c&&!f(function(){var n=!1,a=/a/;return"split"===r&&((a={}).constructor={},a.constructor[cu]=function(){return a},a.flags="",a[o]=/./[o]),a.exec=function(){return n=!0,null},a[o](""),!n});if(!c||!s||"replace"===r&&(!ch||!cd||cv)||"split"===r&&!cg){var u=/./[o],l=a(o,""[r],function(r,n,a,i,o){var f=n.exec;return f===cs||f===cl.exec?c&&!o?{done:!0,value:u.call(n,a,i)}:{done:!0,value:r.call(a,n,i)}:{done:!1}},{REPLACE_KEEPS_$0:cd,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:cv}),h=l[0],d=l[1];el(String.prototype,r,h),el(cl,o,2==n?function(r,n){return d.call(r,this,n)}:function(r){return d.call(r,this)})}i&&D(cl[o],"sham",!0)},cy=function(r){return function(n,a){var i,o,c=String(m(n)),f=eb(a),s=c.length;return f<0||f>=s?r?"":void 0:(i=c.charCodeAt(f))<55296||i>56319||f+1===s||(o=c.charCodeAt(f+1))<56320||o>57343?r?c.charAt(f):i:r?c.slice(f,f+2):o-56320+(i-55296<<10)+65536}},cm={codeAt:cy(!1),charAt:cy(!0)},c_=cm.charAt,cx=function(r,n,a){return n+(a?c_(r,n).length:1)},ck=function(r,n){var a=r.exec;if("function"==typeof a){var i=a.call(r,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==g(r))throw TypeError("RegExp#exec called on incompatible receiver");return cs.call(r,n)};cb("match",1,function(r,n,a){return[function(n){var a=m(this),i=null==n?void 0:n[r];return void 0!==i?i.call(n,a):new RegExp(n)[r](String(a))},function(r){var i=a(n,r,this);if(i.done)return i.value;var o=P(r),c=String(this);if(!o.global)return ck(o,c);var f=o.unicode;o.lastIndex=0;for(var s,u=[],l=0;null!==(s=ck(o,c));){var h=String(s[0]);u[l]=h,""===h&&(o.lastIndex=cx(c,em(o.lastIndex),f)),l++}return 0===l?null:u}]});var cS=Math.floor,cw="".replace,cT=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cE=/\$([$&'`]|\d{1,2})/g,cR=function(r,n,a,i,o,c){var f=a+r.length,s=i.length,u=cE;return void 0!==o&&(o=S(o),u=cT),cw.call(c,u,function(c,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return r;case"`":return n.slice(0,a);case"'":return n.slice(f);case"<":l=o[u.slice(1,-1)];break;default:var h=+u;if(0===h)return c;if(h>s){var d=cS(h/10);return 0===d?c:d<=s?void 0===i[d-1]?u.charAt(1):i[d-1]+u.charAt(1):c}l=i[h-1]}return void 0===l?"":l})},cL=Math.max,cI=Math.min;cb("replace",2,function(r,n,a,i){var o=i.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,c=i.REPLACE_KEEPS_$0,f=o?"$":"$0";return[function(a,i){var o=m(this),c=null==a?void 0:a[r];return void 0!==c?c.call(a,o,i):n.call(String(o),a,i)},function(r,i){if(!o&&c||"string"==typeof i&&-1===i.indexOf(f)){var s=a(n,r,this,i);if(s.done)return s.value}var u=P(r),l=String(this),h="function"==typeof i;h||(i=String(i));var d=u.global;if(d){var p=u.unicode;u.lastIndex=0}for(var v=[];;){var g=ck(u,l);if(null===g||(v.push(g),!d))break;""===String(g[0])&&(u.lastIndex=cx(l,em(u.lastIndex),p))}for(var b,y="",m=0,_=0;_<v.length;_++){g=v[_];for(var x=String(g[0]),k=cL(cI(eb(g.index),l.length),0),S=[],w=1;w<g.length;w++)S.push(void 0===(b=g[w])?b:String(b));var T=g.groups;if(h){var E=[x].concat(S,k,l);void 0!==T&&E.push(T);var R=String(i.apply(void 0,E))}else R=cR(x,l,k,S,T,i);k>=m&&(y+=l.slice(m,k)+R,m=k+x.length)}return y+l.slice(m)}]});var cO=aB.aTypedArrayConstructor;(0,aB.exportTypedArrayStaticMethod)("of",function(){for(var r=0,n=arguments.length,a=new(cO(this))(n);n>r;)a[r]=arguments[r++];return a},aV);var cA=function(r){var n=0;for(n=0;0!==r;n++)r&=r-1;return n};function cP(r,n){return r^n}function cC(r,n,a){return String.fromCharCode(255&r+cA(n)+a)}function cD(r,n,a){return String.fromCharCode(255&r-cA(n)-a)}function cM(r){for(var n,a=r.length,i=0;i<a&&i!==a-1;i+=2)n=r[i],r[i]=r[i+1],r[i+1]=n;return r}function cN(r,n){var a,i=function(r,n){var a,i=(r[0].charCodeAt(0)^r[1].charCodeAt(0)^r[2].charCodeAt(0))-48,o=n-i-1,c=Array(i);for(a=i;a>0;a--)c[i-a]=String.fromCharCode(r[n-i-2].charCodeAt(0)^r[n-i-1].charCodeAt(0)^r[n-a].charCodeAt(0));return{convertKey:r.substring(1,o+1).split(""),convertLen:o,method:c.join(""),methodLen:i}}(r,n=n||r.length),o=i.convertKey,c=i.convertLen,f=(i.methodLen,i.method),s="11"===f||"appdevice"===f||"app_v2"===f?0:1;switch(f){case"11":case"22":case"appdevice":case"webdevice":o=function(r,n,a){for(var i,o=85,c=250,f=0;f<n;f++){var s=r[f].charCodeAt(0);f%2==1?(i=o^s,o=s):(i=c^s,c=s),r[f]=0===a?cD(i,f,21):cC(i,f,21)}return r}(o,c,s);break;case"app_v2":case"web_v2":o=function(r,n,a){n=n||r.length;var i=85,o=250;cM(r);for(var c=0;c<n;c++){var f=r[c].charCodeAt(0),s=void 0,u=void 0;c%2==1?(u=i^f,i=f,s=o):(u=o^f,o=f,s=i);var l=(0===a?cD:cC)(u,c,21).charCodeAt(0)-s;l<0&&(l+=256),r[c]=String.fromCharCode(l)}return cM(r),r}(o,c,s)}var u=c-((a=o[0])>="0"&&a<="9"?a.charCodeAt(0)-48:a>="a"&&a<="z"?a.charCodeAt(0)-97+10:255)-1,l=Array(u+1);l[u]="";var h=0;for(h=0;h<u;h++)l[h]=o[h+1];return l.join("")}var cj=ez(function r(){eW(this,r);var n,a,i=new Promise(function(r,i){n=r,a=i});return i.resolve=function(r){n(r),i.state="fulfilled"},i.reject=function(r){a(r),i.state="rejected",i.isBreak="DESTROYED"===r},i.state="pending",i},[{key:"resolve",value:function(r){}},{key:"reject",value:function(r){}}]);function cB(r){var n=r||{},a=n.url,i=n.method,o=void 0===i?"GET":i,c=n.type,f=void 0===c?"arraybuffer":c,s=n.data,u=void 0===s?{}:s;return new Promise(function(r,n){var i=new window.XMLHttpRequest,c=o.toUpperCase(),s=[];if(Object.keys(u).map(function(r){s.push("k=".concat(u[r]))}),"GET"===c){var l="";l=0>a.indexOf("?")?"".concat(a,"?").concat(s.join("&")):(null==s?void 0:s.length)>0?"".concat(a,"&").concat(s.join("&")):a,i.open(c,l),f&&(i.responseType=f),i.send()}else{if("POST"!==c)throw Error("xhr ".concat(c," is not supported"));i.open(c,a,!0),f&&(i.responseType=f),i.setRequestHeader("Content-Type","application/json"),i.send(JSON.stringify(u))}i.onload=function(){200===i.status||206===i.status?r(i):n(i)},i.onerror=function(){n(i)}})}var cU,cF,cG,cV,cW,cK,cz,cH,cZ=A.f,cJ=Function.prototype,cY=cJ.toString,cq=/^\s*function ([^ (]*)/,cX="name";function cQ(){return(cQ=eG(eq().mark(function r(n){var a,i,o=arguments;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a=!(o.length>1&&void 0!==o[1])||o[1],i=o.length>2&&void 0!==o[2]?o[2]:["encrypt","decrypt"],r.abrupt("return",new Promise(function(r,o){var c;"undefined"!=typeof crypto&&null!==(c=crypto)&&void 0!==c&&c.subtle?crypto.subtle.generateKey(n,a,i).then(function(n){r(n)}).catch(function(r){o(r)}):o(Error(cF.WebCryptoNotSupport.msg))}));case 3:case"end":return r.stop()}},r)}))).apply(this,arguments)}function c$(r){return c0.apply(this,arguments)}function c0(){return(c0=eG(eq().mark(function r(n){var a,i,o,c,f;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a=n.data,i=n.privateKey,o=function(r){for(var n=window.atob(r),a=new Uint8Array(n.length),i=0;i<n.length;i++)a[i]=n.charCodeAt(i);return a.buffer}(a),function(){if("object"!==("undefined"==typeof crypto?"undefined":e$(crypto))||"[object crypto]"!==Object.prototype.toString.call(crypto).toLowerCase()||void 0===crypto.subtle)throw new cG(cF.WebCryptoNotSupport.code,cF.WebCryptoNotSupport.msg);}(),r.prev=3,r.next=6,crypto.subtle.decrypt({name:"RSA-OAEP"},i,o);case 6:c=r.sent,r.next=12;break;case 9:throw r.prev=9,r.t0=r.catch(3),new cG(cF.PrivateKeyDecryptFail.code,"".concat(cF.PrivateKeyDecryptFail.msg,": ").concat((null===r.t0||void 0===r.t0?void 0:r.t0.message)||(null===r.t0||void 0===r.t0?void 0:r.t0.name)));case 12:return f=(new TextDecoder).decode(c),r.abrupt("return",f);case 14:case"end":return r.stop()}},r,null,[[3,9]])}))).apply(this,arguments)}function c8(r){for(var n="",a=0;a<r.length;a+=16e3){var i=r.subarray(a,a+16e3);n+=String.fromCharCode.apply(null,i)}return n}!s||cX in cJ||cZ(cJ,cX,{configurable:!0,get:function(){try{return cY.call(this).match(cq)[1]}catch(r){return""}}}),function(r,n,a){function i(r,n){var a=parseInt(r.slice(n,n+2),16);return a>>>7==0?[1,a]:a>>>6==2?[2,a=((63&a)<<8)+parseInt(r.slice(n+2,n+4),16)]:[3,a=((63&a)<<16)+parseInt(r.slice(n+2,n+6),16)]}var o,c=0,f=[],s=[];for(o=0;o<4;++o)c+=(3&parseInt(r.slice(8+2*o,10+2*o),16))<<2*o;var u=parseInt(r.slice(16,24),16),l=2*parseInt(r.slice(32,40),16);for(o=40;o<l+40;o+=2)f.push(parseInt(r.slice(o,o+2),16));var h=l+40,d=parseInt(r.slice(h,h+4),16);for(h+=4,o=0;o<d;++o){var p=i(r,h);h+=2*p[0];for(var v="",g=0;g<p[1];++g){var b=i(r,h);v+=String.fromCharCode(c^b[1]),h+=2*b[0]}s.push(v)}n.p=null,function r(n,a,i,o,c){var u,l,h,d,p,v=-1,g=[],b=[0,null],y=null,m=[a];for(l=Math.min(a.length,i),h=0;h<l;++h)m.push(a[h]);m.p=o;for(var _=[];;)try{switch(f[n++]){case 4:g[++v]=!1;break;case 27:g[++v]=null;break;case 2:u=f[n++],g[++v]=u<<24>>24;break;case 45:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=u<<16>>16;break;case 23:u=((u=((u=f[n++])<<8)+f[n++])<<8)+f[n++],g[++v]=(u<<8)+f[n++];break;case 15:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=s[u];break;case 13:g[++v]=void 0;break;case 7:g[++v]=c;break;case 14:u=(f[n]<<8)+f[n+1],n+=2,v=v-u+1,l=g.slice(v,v+u),g[v]=l;break;case 67:g[++v]={};break;case 73:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],g[v][l]=h;break;case 31:for(l=f[n++],h=f[n++],d=m;l>0;--l)d=d.p;g[++v]=d[h];break;case 58:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],g[v]=g[v][l];break;case 68:l=g[v--],g[v]=g[v][l];break;case 24:for(l=f[n++],h=f[n++],d=m;l>0;--l)d=d.p;d[h]=g[v--];break;case 12:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],d=g[v--],h[l]=d;break;case 3:l=g[v--],h=g[v--],d=g[v--],h[l]=d;break;case 46:for(l=f[n++],h=f[n++],d=m,d=m;l>0;--l)d=d.p;g[++v]=d,g[++v]=h;break;case 35:l=g[v--],g[v]+=l;break;case 25:l=g[v--],g[v]-=l;break;case 9:l=g[v--],d=(h=g[v--])[l]++,g[++v]=d;break;case 62:l=g[v--],g[v]=g[v]===l;break;case 0:l=g[v--],g[v]=g[v]!==l;break;case 56:l=g[v--],g[v]=g[v]<l;break;case 21:l=g[v--],g[v]=g[v]>l;break;case 54:g[v]=!g[v];break;case 28:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?--v:n+=u;break;case 22:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?n+=u:--v;break;case 26:l=g[v--],(h=g[v--])[l]=g[v];break;case 10:l=g[v--],g[v]=g[v]instanceof l;break;case 63:g[v]=void 0;break;case 37:g[v]=typeof g[v];break;case 5:u=f[n++],l=g[v--],(h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)})._v=[l,u,m],h._u=r,g[++v]=h;break;case 75:u=f[n++],l=g[v--],(d=[h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)}]).p=m,h._v=[l,u,d],h._u=r,g[++v]=h;break;case 38:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,(l=_[_.length-1])[1]=n+u;break;case 69:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,(l=_[_.length-1])&&!l[1]?(l[0]=3,l.push(n)):_.push([1,0,n]),n+=u;break;case 18:throw l=g[v--];case 51:if(h=(l=_.pop())[0],d=b[0],1===h)n=l[1];else if(0===h){if(0===d)n=l[1];else{if(1!==d)throw b[1];if(!y)return b[1];n=y[1],c=y[2],m=y[3],_=y[4],g[++v]=b[1],b=[0,null],y=y[0]}}else n=l[2],l[0]=0,_.push(l);break;case 43:for(l=g[v--],h=null;d=_.pop();)if(2===d[0]||3===d[0]){h=d;break}if(h)b=[1,l],n=h[2],h[0]=0,_.push(h);else{if(!y)return l;n=y[1],c=y[2],m=y[3],_=y[4],g[++v]=l,b=[0,null],y=y[0]}break;case 8:v-=u=f[n++],h=g.slice(v+1,v+u+1),l=g[v--],d=g[v--],l._u===r?(l=l._v,y=[y,n,c,m,_],n=l[0],null==d&&(d=function(){return this}()),c=d,(m=[h].concat(h)).length=Math.min(l[1],u)+1,m.p=l[2],_=[]):(p=l.apply(d,h),g[++v]=p);break;case 30:for(u=f[n++],d=[void 0],p=u;p>0;--p)d[p]=g[v--];h=g[v--],p=new(l=Function.bind.apply(h,d)),g[++v]=p;break;case 66:n+=2+(u=(u=(f[n]<<8)+f[n+1])<<16>>16);break;case 1:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,(l=g[v--])||(n+=u);break;case 57:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,l=g[v--],g[v]===l&&(--v,n+=u);break;case 72:--v;break;case 47:l=g[v],g[++v]=l;break;default:throw Error("ioe")}}catch(r){for(b=[0,null];(u=_.pop())&&!u[0];);if(!u){t:for(;y;){for(l=y[4];u=l.pop();)if(u[0])break t;y=y[0]}if(!y)throw r;n=y[1],c=y[2],m=y[3],_=y[4],y=y[0]}1===(l=u[0])?(n=u[2],u[0]=0,_.push(u),g[++v]=r):2===l?(n=u[2],u[0]=0,_.push(u),b=[3,r]):(n=u[3],u[0]=2,_.push(u),g[++v]=r)}}(u,[],0,n,a)}("504B01012c284a3f000006be3f49292f000007620f00001f00010f0001030f00021f00010f0003030f00041f00010f0005031f00012b170000004305021800021b1f020d1f00021f00010802481b1f02101f000208012b1b1f030f071f01020802481b1f030e071f01021f00020e000108031800031f00011f00030c00061f00032b0f000c2f3a000d1f00010f000e08022f3a000d1f00020f000f08022f3a000d1f000308011800051f000402003f0001007145001f1800071f00050f00102f3a000d1b1f02021f000408010801232e00051a483326004c1f0004250f00113e0100061f000442000c1f02012f3a00121f000408011800061f00050f00102f3a000d1f000602003f3e01000c1b1f02021f000408014200031f00060801232e00051a48331f02001f00051e012b1f02121e001800041b1f0213430f00134900140f00154900161f0003490017430f00184900190f001a49001b431f000149001c0e00002f3a000d1f0002080149001d0e000149001e49001f08012f3a00201700000185050108012f3a0029170000029505010801481f00042b1f00011b3e1600071f000102003f3e01000602003f4200061f00013a00211800031f0003250f00113e01000f1f03012f3a00221f000308011800031f00033601002e1b1f02021f01011f01020f002308031800041b1f031c1f00043a00240801481f01042f3a00251f00040801480d2b1f00032e00021a1b3e1600071f000202003f3e16000c1f00023a00262e00021a1b3e1600071f000202003f3e16000d1f00021f0101442e00021a1b3e1600071f000202003f3e01000602003f4200071f00021f0102441800051f0005360100311b1f02021f01011f01020f00271f000308041800061b1f031c1f00063a00240801481f01042f3a00251f00060801480d2b1f01042f3a00281f00050801480d2b1f00011f03000a0100061f00014200121b1f02021f01011f01020f002a1f000108041800021b1f031c0f002b1f01010f002c1f01020f00291f00020806481f01042f3a00251f00020801480d2b1f01032f3a002d071f000008022b1b1f020b1b1f020908002f3a002e170000031a4b06080108011801031f01032f3a002d071f000008022b1b1f040908002f3a002f17000003314b011f010008022b02010101681f00013a00301f00010f00311a02003900320205390080020839008f0209390093020c3900b9020d3900bd020f3900d2021639011602173901210f003239011b484201211f02011600030f00331802011f020201000b02091f00010c00304201041f02011c00031f02031c00031f02043601000b02081f00010c00304200e602051f00010c00301b1f06181f02011f02031f020408032b1f00013a003418020202091f00010c00304200ba1f06000f00351e01121f02050f00043e3601000b020d1f00010c003042009b020c1f00010c00301b1f061a1f02021f020608022b1f00013a00341802021f020201000b020f1f00010c003042006c1f06000f00361e01121b1f06111b1f06031f0202080108011802071f02033601000b02161f00010c003042003f43434900371802081f02071f02083a00371f0203031f00012f3a00380f00391f020808022b1f00012f3a00380f00391f020708022b1f00012f3a003a08002b42fe930d2b1f01042f3a002d071f000008022b1b1f020b1b1f020908002f3a002e17000004d84b02080108011801041f01042f3a002d071f000008022b1b1f040908002f3a002f17000004ef4b011f010008022b020101009a1f00013a00301f00010f00311a0200390019020239003e0204390058020639006c0f00323900664842006c1f0201361600041f0202363601000b02021f00010c00304200521f00012f3a00380f00391f020108022b02041f00010c00301b1f0614431f020149001f1f02023a003b49003b08012b1f00013a00341802011f00012f3a00380f00391f020108022b1f00012f3a003a08002b42ff610d2b450004180002332600741f0204250f003c3e0100060f003c4200091b1f020a1f020408010f003d3e1c000b1f02043a003e250f003f3e0100441f02043a00401f02052f3a0041020002610273026d020102000200020008081e011800011f00011f02043a00400a0100131f02043a00421f00011e011f02043a00420a2b33042b1f01011b3e010022450004180006332600181f02061c000e1f02062f3a00430f004408013636180101331f00003a00451800031f02071f00030201150100091f000302011942000202001e0118000402011800051f00051f0003380100191f00001f0005441f00041f0005020119032e0005094842ffdd1f01011c00061f02083a00461c00251f02082e00021a3a00462f3a002d1f00020f00471f00010e00022f3a000d1f000408010802480d2b170000006e05041800021700000119050318011817000002e2050618011917000002f0050018000317000004a0050218011a17000004ae05001800041700000590050018011b1700000610050118011c1b1800011b170000000005011f011516000143080118011543432d1c214900060f0007490008490009432d1c224900060f000a49000849000b1801161b170000002205011b1f010c1f0100080108011801170d2b004810809380948081808e808480818092808480bf8085808e808380928099809080941080b380b480a180ae80a480a180b280a480bf80a580ae80a380b280b980b080b40f809080928089809680818094808580bf8085808e808380928099809080940f80b080b280a980b680a180b480a580bf80a580ae80a380b280b980b080b417809080928089809680818094808580bf8085808e8083809280998090809480bf80958090808780928081808480851780b080b280a980b680a180b480a580bf80a580ae80a380b280b980b080b480bf80b580b080a780b280a180a480a5048083808f808480852580b78085808280c080838092809980908094808f80878092808180908088809980c080a180b080a980c08089809380c0808e808f809480c08093809580908090808f809280948085808403808d809380871380b78085808280a38092809980908094808f80ae808f809480b3809580908090808f809280941d80a48085808380928099809080948089808f808e80c08082809980c080b280b380a180cd80af80a180a580b080c0808680818089808c808580841580b080928089809680818094808580ab8085809980a480858083809280998090809480a680818089808c1f80878085809480b38085808380928085809480ab8085809980a2809980ab8089808480c0808680818089808c8085808480cc80c080968089808480da80c0068083808f808e8083808180940780cc80c0808b8089808480da80c00280cc80c00c80cc80c08092808580938090808f808e8093808580da80c0068093809480928089808e8087098093809480928089808e808780898086809904808a8093808f808e0480948099809080850480b080af80b380b406808d808580948088808f80840380958092808c0280d280d20880848092808d80bf80948099809080850380d280ce80d00780968085809280938089808f808e0380968089808404808b8089808480930f808c808980838085808e8093808580bf809280858091809580858093809404808480818094808104809480888085808e088092808580938090808f808e8093808505809080818092809380850d8092808580938090808f808e8093808580c0808e8095808c808c07808d8085809380938081808780850680928085808a8085808380940d8090808c8081809980bf808c808980838085808e809380858093228092808580938090808f808e8093808580c0808d8089809380938089808e808780c08090808c8081809980bf808c808980838085808e80938085809380c0808b8085809907809280858093808f808c8096808505808380818094808380880d809280858091809580858093809480c0808380818094808380881b80878085809480b38085808380928085809480ab8085809980a2809980ab8089808480c08085808e808480cc80c080968089808480cc0580cc80c0808b8089808405808180908090808c809904808d80818092808b04809780928081809004808e808580988094048090809280858096038085808e8084000480938085808e80943580938088808f8095808c808480c080908092808f809680898084808580c080938085808380928085809480ab8085809980c0808f809280c080968089808480cc80c0808b8085809980a9808480c08081808e808480c0808c808980838085808e8093808580b58092808c1880878085809480ab8085809980b68081808c8095808580da80c08093808b80c08089809380c08085808d809080948099098083808c80858081809280ab808580998093068081808280928095809080940680928085809480958092808e0480938094808f80900a809080928089809680818094808580ab80858099098095808e8084808580868089808e8085808406808f8082808a8085808380940b8089808e809380948081808e809480898081809480850880868095808e808380948089808f808e0680ad808f80848095808c808502808f80860880a9808e809380948081808e808380850780878085809480a980948085808d0c809380858083809280858094808b80858099808c808f808706808c8085808e80878094808803808c808f80870d80bb80b880a780b380858083809280858094808b8085809980bd",{0:Error,1:JSON,2:String,get 3(){return atob},4:WebAssembly,5:Uint8Array,get 6(){return localStorage},7:Array,get 8(){return console},get 9(){return eq},get 10(){return e$},get 11(){return eG},get 12(){return e0},get 13(){return eJ},get 14(){return eV},get 15(){return eW},get 16(){return ez},get 17(){return cN},get 18(){return cj},get 19(){return cB},get 20(){return c$},get 21(){return cU},set 21(e){cU=e},get 22(){return cF},set 22(e){cF=e},get 23(){return cG},set 23(e){cG=e},get 24(){return cV},set 24(e){cV=e},get 25(){return cW},set 25(e){cW=e},get 26(){return cK},set 26(e){cK=e},get 27(){return cz},set 27(e){cz=e},get 28(){return cH},set 28(e){cH=e}},void 0);var c1,c2,c3,c9,c4,c5,c6,c7,fe=(c3="vodTimestampSalt",c9=function(r){return r.split("").map(function(r){return r.charCodeAt(0)})},c4=function(r){return"0".concat(Number(r).toString(16)).substr(-2)},c5=function(r){return c9(c3).reduce(function(r,n){return r^n},r)},function(r){return r.split("").map(c9).map(c5).map(c4).join("")}),ft=(c1="vodTimestampSalt",c2=function(r){return c1.split("").map(function(r){return r.charCodeAt(0)}).reduce(function(r,n){return r^n},r)},function(r){return r.match(/.{1,2}/g).map(function(r){return parseInt(r,16)}).map(c2).map(function(r){return String.fromCharCode(r)}).join("")}),fr={str2hex:function(r){if(""===r)return"";for(var n=[],a=0;a<r.length;a++)n.push(r.charCodeAt(a));return n},Base64ToHex:function(r){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=window.atob(r.replace(/-/g,"+").replace(/_/g,"/"));if(n){for(var i=[],o=0;o<a.length;o++)i.push(a.charCodeAt(o));return new Uint8Array(i).buffer}for(var c="",f=0;f<a.length;f++)c+="0".concat(a.charCodeAt(f).toString(16)).substr(-2);return c},checkUnionInfoExpired:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;if(0===n.indexOf(r)){var i=parseInt(ft(n.slice(r.length))),o=(new Date).getTime()-i;if(o>0&&o<=1e3*a)return!0;cH("UnionInfo timestamp expire!!!")}else cH("unionID and UnionInfo not match!!!");return!1},getUnionInfo:function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(fe((new Date).getTime().toString()))},StringToArrayBuffer:function(r){for(var n=new ArrayBuffer(r.length),a=new Uint8Array(n),i=0;i<r.length;i++)a[i]=r.charCodeAt(i);return n},ArrayBufferToString:function(r){var n=[];r=ArrayBuffer.isView(r)?r:new Uint8Array(r);for(var a=0;a<r.length;a++)n.push(String.fromCharCode(r[a]));return n.join("")},isBase64:function(r){return/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/.test(r)},fromCharCode:c8,fromHex:function(r){for(var n=new Uint8Array(r.length/2),a=0;a<r.length;a+=2)n[a/2]=window.parseInt(r.substr(a,2),16);return n},toUTF8:function(r){for(var n=encodeURIComponent(r),a=unescape(n),i=new Uint8Array(a.length),o=0;o<a.length;++o)i[o]=a.charCodeAt(o);return i.buffer},toBase64:function(r,n){var a=c8(r);n=void 0===n||n;var i=window.btoa(a).replace(/\+/g,"-").replace(/\//g,"_");return n?i:i.replace(/=*$/,"")}};r.EVENT_EME=void 0,function(r,n,a){function i(r,n){var a=parseInt(r.slice(n,n+2),16);return a>>>7==0?[1,a]:a>>>6==2?[2,a=((63&a)<<8)+parseInt(r.slice(n+2,n+4),16)]:[3,a=((63&a)<<16)+parseInt(r.slice(n+2,n+6),16)]}var o,c=0,f=[],s=[];for(o=0;o<4;++o)c+=(3&parseInt(r.slice(8+2*o,10+2*o),16))<<2*o;var u=parseInt(r.slice(16,24),16),l=2*parseInt(r.slice(32,40),16);for(o=40;o<l+40;o+=2)f.push(parseInt(r.slice(o,o+2),16));var h=l+40,d=parseInt(r.slice(h,h+4),16);for(h+=4,o=0;o<d;++o){var p=i(r,h);h+=2*p[0];for(var v="",g=0;g<p[1];++g){var b=i(r,h);v+=String.fromCharCode(c^b[1]),h+=2*b[0]}s.push(v)}n.p=null,function r(n,a,i,o,c){var u,l,h,d,p,v=-1,g=[],b=null,y=[a];for(l=Math.min(a.length,i),h=0;h<l;++h)y.push(a[h]);y.p=o;for(var m=[];;)try{switch(f[n++]){case 4:g[++v]=!1;break;case 27:g[++v]=null;break;case 2:u=f[n++],g[++v]=u<<24>>24;break;case 45:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=u<<16>>16;break;case 23:u=((u=((u=f[n++])<<8)+f[n++])<<8)+f[n++],g[++v]=(u<<8)+f[n++];break;case 15:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=s[u];break;case 13:g[++v]=void 0;break;case 7:g[++v]=c;break;case 14:u=(f[n]<<8)+f[n+1],n+=2,v=v-u+1,l=g.slice(v,v+u),g[v]=l;break;case 67:g[++v]={};break;case 73:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],g[v][l]=h;break;case 31:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;g[++v]=d[h];break;case 58:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],g[v]=g[v][l];break;case 68:l=g[v--],g[v]=g[v][l];break;case 24:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;d[h]=g[v--];break;case 12:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],d=g[v--],h[l]=d;break;case 3:l=g[v--],h=g[v--],d=g[v--],h[l]=d;break;case 46:for(l=f[n++],h=f[n++],d=y,d=y;l>0;--l)d=d.p;g[++v]=d,g[++v]=h;break;case 9:l=g[v--],d=(h=g[v--])[l]++,g[++v]=d;break;case 62:l=g[v--],g[v]=g[v]===l;break;case 0:l=g[v--],g[v]=g[v]!==l;break;case 54:g[v]=!g[v];break;case 28:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?--v:n+=u;break;case 22:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?n+=u:--v;break;case 26:l=g[v--],(h=g[v--])[l]=g[v];break;case 63:g[v]=void 0;break;case 32:l=g[v--],d=delete(h=g[v--])[l],g[++v]=d;break;case 5:u=f[n++],l=g[v--],(h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)})._v=[l,u,y],h._u=r,g[++v]=h;break;case 75:u=f[n++],l=g[v--],(d=[h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)}]).p=y,h._v=[l,u,d],h._u=r,g[++v]=h;break;case 18:throw l=g[v--];case 43:for(l=g[v--],h=null;d=m.pop();)if(2===d[0]||3===d[0]){h=d;break}if(h)n=h[2],h[0]=0,m.push(h);else{if(!b)return l;n=b[1],c=b[2],y=b[3],m=b[4],g[++v]=l,b=b[0]}break;case 8:v-=u=f[n++],h=g.slice(v+1,v+u+1),l=g[v--],d=g[v--],l._u===r?(l=l._v,b=[b,n,c,y,m],n=l[0],null==d&&(d=function(){return this}()),c=d,(y=[h].concat(h)).length=Math.min(l[1],u)+1,y.p=l[2],m=[]):(p=l.apply(d,h),g[++v]=p);break;case 30:for(u=f[n++],d=[void 0],p=u;p>0;--p)d[p]=g[v--];h=g[v--],p=new(l=Function.bind.apply(h,d)),g[++v]=p;break;case 66:n+=2+(u=(u=(f[n]<<8)+f[n+1])<<16>>16);break;case 1:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,(l=g[v--])||(n+=u);break;case 72:--v;break;case 47:l=g[v],g[++v]=l;break;default:throw Error("ioe")}}catch(r){for(;(u=m.pop())&&!u[0];);if(!u){t:for(;b;){for(l=b[4];u=l.pop();)if(u[0])break t;b=b[0]}if(!b)throw r;n=b[1],c=b[2],y=b[3],m=b[4],b=b[0]}1===(l=u[0])?(n=u[2],u[0]=0,m.push(u),g[++v]=r):2===l?(n=u[2],u[0]=0,m.push(u)):(n=u[3],u[0]=2,m.push(u),g[++v]=r)}}(u,[],0,n,a)}("504B01012c284a3f00000fbc3f49292f00000ff20f00011f00010f0002030f00031f00010f0004030f00051f00010f0005030f00061f00010f0006031f00012b170000012d05011800021b1f020f1f00021f00010802481b1f02111f0002430f002d49002f17000008be4b02490033430f003449002f170000097f4b01490033430f003549002f1700000a124b00490033430f002949002f1700000a504b01490033430f002449002f1700000a704b01490033430f004b49002f1700000b6a4b00490033430f001a49002f1700000b6c4b03490033430f005249002f1700000c024b01490033430f005349002f1700000c144b01490033430f005649002f1700000cb64b01490033430f002549002f1700000ce44b01490033430f007a49002f1700000f104b01490033430f008249002f1700000fad4b004900330e000d08022b1b1f0312071f01020802481b1f0310071f010208021800020f00071f00020c0008431f00020c000902003f1f00020c000a1f03151f00020c00001b1f00020c000b02001f00020c000c1f03001e002f3a000d08002f3a000e022408011f00020c000f17000001c905011f00020c002c0e00001f00020c001b1f00022f3a002d1f00010801481f00022f3a002e0f00031f00023a002c0802481f00022b1f01021800021f00023a000b1800031f01021800041f0003360100020d2b1f01023a00080f00103e0100330f00111800051f04012f3a0012430f00130e000149001408011800061f04021f04142f3a00151f000608011e0118000742054f1f01023a00080f00163e0100b90f00171800051f00011c000b1f04021f00013a00181e011600991f04020200020002000243027002730273026802000200020002002d00ed2d00ef2d008b2d00a902792d00d6024a2d00ce2d00a32d00c802272d00dc2d00d5021d02212d00ed020002000200022302080201021202100233023302330233023302330233023302330233023302330200020002000200021a020a0269026e0274026502720274027202750273027402220201022a0e00431e011800074204891f01023a00080f00193e01047c0f00171800051f00011c000b1f04021f00013a00181e0116045f1f04020200020002020226027002730273026802000200020002002d009a02042d00f002792d0098024002422d00862d00ab2d00922d00e6025b2d00e02d0088025f2d00950200020002020206020602020200020002010200020102002d00fc0201023c02000257020002520200024d02000248020002450200024102000244020002450200025202000220020002780200026d0200026c0200026e020002730200023d02000222020002680200027402000274020002700200023a0200022f0200022f020002730200026302000268020002650200026d02000261020002730200022e0200026d0200026902000263020002720200026f020002730200026f02000266020002740200022e020002630200026f0200026d0200022f02000244020002520200024d0200022f020002320200023002000230020002370200022f02000230020002330200022f020002500200026c02000261020002790200025202000265020002610200026402000279020002480200026502000261020002640200026502000272020002220200022002000276020002650200027202000273020002690200026f0200026e0200023d02000222020002340200022e020002300200022e020002300200022e02000230020002220200023e0200023c020002440200024102000254020002410200023e0200023c02000250020002520200024f02000254020002450200024302000254020002490200024e020002460200024f0200023e0200023c0200024b02000245020002590200024c020002450200024e0200023e02000231020002360200023c0200022f0200024b02000245020002590200024c020002450200024e0200023e0200023c020002410200024c0200024702000249020002440200023e0200024102000245020002530200024302000254020002520200023c0200022f020002410200024c0200024702000249020002440200023e0200023c0200022f02000250020002520200024f02000254020002450200024302000254020002490200024e020002460200024f0200023e0200023c0200024b02000249020002440200023e0200024d0200027a0200024d0200027a0200024d0200027a0200024d0200027a0200024d0200027a0200024d0200027a0200024d0200027a0200024d0200027a0200024102000241020002410200024102000241020002410200023d0200023d0200023c0200022f0200024b02000249020002440200023e0200023c020002430200024802000245020002430200024b02000253020002550200024d0200023e02000241020002310200023502000242020002590200025702000244020002340200027102000273020002490200023d0200023c0200022f020002430200024802000245020002430200024b02000253020002550200024d0200023e0200023c0200022f020002440200024102000254020002410200023e0200023c0200022f02000257020002520200024d0200024802000245020002410200024402000245020002520200023e02000e02261e011800071f00042f3a001a1f00031f00043a00081f00043a001b08032f3a001c17000007b9050017000008a2050008022f3a001c17000008af050017000008b105000802480d2b1f01033a001d2e00011a1b3e1600071f000102003f3e01000602003f4200091f00012f3a001e08001800021f0002360100091f05030f001f1e01121f01033a00202f3a00211f00020801481f01043a00080f00103e0100291f04011f01043a000f441800031f00022f3a00220f00231f01042f3a00241f000308010802484200551f01043a00080f00163e01001f1f00022f3a00220f00231f01043a00252f3a00261f010408010802484200291f01043a00080f00193e01001c1f00022f3a00220f00231f01043a00252f3a00261f010408010802481f00022f3a00271f01051f01073a002808022b1f01042f3a00290f002a08012b0d2b1f01042f3a00290f002b08012b1f00011b001c00071f000102003f001c00061f00013a00300100150f0010070c00081f00013a00301f0301073a000f031f00011b001c00071f000102003f001c00061f00013a003001000a0f0010070c000842005b1f00011b001c00071f000102003f001c00061f00013a00310100140f0016070c00081f00013a0031070c000942002c1f00011b001c00071f000102003f001c00061f00013a00320100110f0019070c00081f00013a0032070c00091f00021c00081f0002070f00001a480d2b073a00001f04153e01007f073a00080f00103e1c000e1f0301073a000f442e00021a1b001c00071f000202003f001c00081f0002073a0000440100291f0301073a000f44073a0000441f0301073a000f441f0001031f0301073a000f441f04152048420025073a0009073a000044010019073a00091f041544073a00091f000103073a00091f041520481f0001070c00000d2b430f00110f00360e0002490037430f00384900390e000149003a430f003b490039430f003c490039430f003d4900390e000349003e0e0001070c001b0d2b1f04042f3a00010f003f1f0001080248072f3a00400f00011f00010802480d2b071800021700000a7c05012b0e00001800020e00001800031f05052f3a00091f010108012f3a00411700000aea0501080148431f00024900091800041f05012f3a00121f000408011800051f00013a00472f3a00481f05142f3a00491f0005080108012f3a001c1700000b5b05001700000b5d05000802480d2b1f02011f0001441800021f06142f3a00421f000108011800031f06142f3a00421f00020801180004430f00434900441f06142f3a00451f00030408024900001f06142f3a00451f00040408024900461800051f01022f3a00211f00050801481f01032f3a00211f00053a00000801480d2b0d2b1f02022f3a00290f004a08012b0d2b07180004073a000a1600061f00013a001d010011073a000a1600091f04062f3a004c08002b1f04072f3a004d1f00021f000308022f3a001c1700000bd105011700000bdb050008022f3a001c1700000be805011700000bf505000802070c000a073a000a2b1f00012f3a004e08002b1f01042f3a00290f004f08012b1f01012f3a00501f000108012b1f01042f3a00290f005108012b1f0001070c000b0e00001f00010c00200d2b0f00541800021f04083a005501008f072f3a00561f000108011800031f04083a00551e001800041f00042f3a00571f00030f005808021800051f00050100151f00052f3a00591f00020f005a08020200444200011b1800061f00060100151f00062f3a00591f00020f005b08020200444200011b1800071f00070100151f00072f3a00591f00020f005c08020200444200011b1800081f00080100021b2b1f00012b1f04093a005d2f3a005e1b1f04021f00011e0108021800021b1f040a1b1f040b1f0002080108011800031f00032b071800021f040c1e001800031f00032f3a005f0f0060073a00093a00610802481700000d1d05001f00030c00781f00032f3a00790800480d2b1f01033a006202043e0101161f01013a00231800011f01033a00631800021f01023a00080f00193e0100331f05012f3a00641f01033a006308011800020f00072f3a00651f00023a00660f006708022f3a00651f00023a006808011800021f0002360100431f01022f3a00400f0006430f00072f3a00651f01023a00093a00610f006908022f3a00651f01033a006a0f006b08022f3a00651f01033a006c080149006d0802480d2b1f050c1e001800031f01013a00471f00030c006e0f006f1f00030c0070041f00030c00711f00032f3a005f0f00721b1f05091f000208010802481f01023a00080f00193e0100101f00032f3a00730f00740f00580802481700000e4105001f00030c00781f00032f3a00791f01022f3a007a1f000108010801480d2b1f01033a006202043e0100c11f01033a006a2d00c80001003d1f02022f3a00400f0006430f00072f3a00651f01020f007508022f3a00651f01033a006a0f006b08022f3a00651f01033a006c080149006d0802480d2b1f02022f3a00400f0005431f02023a000c49006d0802481f02020f000c09481f02023a00080f00193e0100151f02022f3a00531f01033a0063080118000142000e1f06021f01033a00631e011800011f01033a006e2f3a00481f000108012f3a00761f06043a00012f3a00261f06040f007708020801480d2b073a00080f00193e0100891b1800021f040d1e001800031f040e1f00011e011800041f04093a005d2f3a005e1b1f000408021800051f00032f3a00571f00050f007b08021800061f00062f3a007c0f007d08010200440100331f00062f3a007c0f007e08010200443a007f0200443a00801800071f000701000f1f04082f3a00811f000708011800024200041f00012b1f00022b1f04021f00011e012b072f3a00830800481b070c000b0d2b0f00001801151b170000000005011f0116160001430801180116431800011b170000002c05011f011308011800021f00021801170d2b008403808b8089808405808580928092808f80920580a580b280b280af80b2098085808e80838092809980908094808580840980a580ae80a380b280b980b080b480a580a41380a380a480ad80bf80ac80a980a380a580ae80b380a580bf80b380b580a380a380a580b380b31180a380a480ad80bf80ac80a980a380a580ae80b380a580bf80a580b280b280af80b20009808b8085809980b38099809380948085808d04808b8085809980930d8085808e809380958092808580b08092808f808d808980938085058096808980848085808f0b808c808980838085808e8093808580b38094808580900780878085809480b48089808d8085088094808f80b3809480928089808e80870f8083808c80858081809280ab8085809980b38094808f8092808580a980840f808f8092808780ce809780d380ce8083808c808580818092808b8085809906808b80858099808980848093098093809480928089808e80878089808680992080d080d180d280d380d480d580d680d780d880d980818082808380848085808680d080d180d280d380d480d580d680d780d880d980818082808380848085808604808b808980848093068094808f80b580b480a680d8128083808f808d80ce809780898084808580968089808e808580ce8081808c8090808880810480838085808e8083088089808e8089809480a4808180948081178083808f808d80ce808d808980838092808f8093808f8086809480ce8090808c8081809980928085808180848099168085808e809380958092808580ad808580848089808180ab80858099809380a380928085808180948085808407808f809080948089808f808e809304809480888085808e09808d808580848089808180ab8085809980930d80838092808580818094808580b38085809380938089808f808e1980a680818089808c8085808480c08094808f80c080838092808580818094808580c080938085809380938089808f808e80ce0880938085809380938089808f808e80930480908095809380881080818084808480a580968085808e809480ac8089809380948085808e8085809207808d8085809380938081808780851180958090808480818094808580b38085809380938089808f808e80a68095808e808313808c808980838085808e8093808580b280858091809580858093809480b280858081808480990480828089808e80840f80878085808e8085809280818094808580b28085809180958085809380940680828095808680868085809204808280818089808c2f80c0808680818089808c8085808480c08094808f80c08085808e809380958092808580c080ad808580848089808180ab80858099809380c0808f808e80c080a880b480ad80ac80ad808580848089808180a5808c8085808d8085808e80941c80c080a680818089808c8085808480c08094808f80c080878085808e8085809280818094808580c0809280858091809580858093809480ce0d8085808e8083809280998090809480a88081808e8084808c80850980958090808480818094808580a48092808d02808f808e03808b80858099098083808c80858081809280ab80858099809308809780898084808580968089808e8085098090808c80818099809280858081808480990580968081808c809580850980958090808480818094808580ab808980840a80938085809480af809080948089808f808e809304809780858082808d0d8089808e8089809480a480818094808180b480998090808580931d8081809580848089808f80cf808d809080d480db80c08083808f808480858083809380dd80c2808d809080d4808180ce80d480d080ce80d280c20b8083808f808e80948085808e809480b4809980908085118081809580848089808f80a380818090808180828089808c808980948089808580931f8096808980848085808f80cf808d809080d480db80c08083808f808480858083809380dd80c280818096808380d180ce80d480d2808380d080d1808580c2248096808980848085808f80cf808d809080d480db80c08083808f808480858083809380dd80c280888085809680d180ce80d180ce80d680ce80ac80d180d280d080ce80d980d080c2188096808980848085808f80cf809780858082808d80db80c08083808f808480858083809380dd80c28096809080d880c2118096808980848085808f80a380818090808180828089808c808980948089808580930580bb80a580ad80a580bd048085808d80898094078086808f809280a58081808380880780868092808f808d80a88085809803808f8083809403808b80948099088094808f80a280818093808580d680d401808b06809480818092808780858094068095809080848081809480851380b3809480928089808e808780b4808f80a1809280928081809980a2809580868086808580921e80c080ad808580848089808180ab8085809980b38085809380938089808f808e80c080958090808480818094808580c0808680818089808c808580840a808b80858099809380a380888081808e8087808507809280858093808f808c809680851b809280858091809580858093809480ad808580848089808180ab8085809980b38099809380948085808d80a1808380838085809380930f80838092808580818094808580ad808580848089808180ab8085809980932580c080a680818089808c8085808480c08094808f80c0809280858091809580858093809480c0808b8085809980c080938099809380948085808d80c080818083808380858093809380ce0c80938085809480ad808580848089808180ab8085809980932280c0808680818089808c8085808480c08094808f80c080838092808580818094808580c080ad808580848089808180ab80858099809380c0808f8082808a808580838094088093808580948095809080a580ad80a5138090808180928093808580b38085809280968085809280b2808580938090808f808e809380852a8088809480948090809380da80cf80cf8093808380888085808d8081809380ce8098808d808c8093808f8081809080ce808f8092808780cf8093808f8081809080cf8085808e80968085808c808f8090808580cf0980a480af80ad80b0808180928093808580920c80958089808e809480b4808f80b3809480928089808e80870f8090808180928093808580a68092808f808d80b3809480928089808e808708809480858098809480cf8098808d808c1680878085809480a5808c8085808d8085808e8094809380a2809980b48081808780ae8081808d808580ae80b30880a5808e80968085808c808f809080850480a2808f808480990580a680818095808c80940c80868092808f808d80a380888081809280a3808f8084808505808180908090808c809904808f80908085808e0380a780a580b40980938085809280968085809280b580b280ac0a8092808580818084809980b38094808180948085088092808580938090808f808e809380850580908081809280938085068083808f808e80838081809415808c808980838085808e8093808580a180838091809580898093808980948089808f808e80b58092808c1280df80a580988090809280858093809380b0808c8081809980b4808f808b8085808e80dd058094808f808b8085808e2380c0809280858091809580858093809480c0808680818089808c8085808480c180c080ea80c080c080c080c080c080c080c080c080c080c080938094808180948095809380da068093809480818094809580930c80c080938094808180948095809380b480858098809480da0a80938094808180948095809380b48085809880940480848081809480810a808b8085809980b38085809380938089808f808e0b808180928092808180998082809580868086808580920c8092808580938090808f808e8093808580b48099809080850f809780898094808880a38092808580848085808e809480898081808c80930480b080af80b380b41080938085809480b280858091809580858093809480a8808580818084808580920c80a3808f808e80948085808e809480cd80948099809080852780c0809280858091809580858093809480c0808680818089808c8085808480c180c080ea80c080c080c080c080c080c080c080c080c080c080c080c080c080c080938094808180948095809380da05808380818094808380880f80958090808480818094808580c880c980c0808680818089808c8085808412808f808e8092808580818084809980938094808180948085808380888081808e808780850480938085808e80841c80878085809480ac808980838085808e8093808580b280858091809580858093809480a68092808f808d80ad8085809380938081808780850f808180908090808c80898083808180948089808f808e80cf8098808d808c1480878085809480a5808c8085808d8085808e8094809380a2809980b48081808780ae8081808d80851380b0808c8081809980b2808580818084809980ab8085809980ad8085809380938081808780850980a380888081808c808c8085808e808780850a808380888089808c808480ae808f80848085809309808e808f8084808580b68081808c809580850480818094808f80820780848085809380948092808f80991280928085808d808f8096808580a1808c808c80ac8089809380948085808e808580928093",{0:Date,1:JSON,2:Uint8Array,3:Error,get 4(){return console},5:Object,6:Promise,get 7(){return navigator},get 8(){return window},9:String,10:decodeURIComponent,get 11(){return escape},get 12(){return XMLHttpRequest},get 13(){return DOMParser},14:Uint16Array,get 15(){return eJ},get 16(){return eV},get 17(){return ez},get 18(){return eW},get 19(){return oN},get 20(){return fr},get 21(){return c6},set 21(e){c6=e},get 22(){return r.EVENT_EME},set 22(t){r.EVENT_EME=t},get 23(){return c7},set 23(e){c7=e}},void 0);var fn,fa,fi=c7,fo=ti("match"),fc=A.f,ff=ep.f,fs=function(r){var n;return x(r)&&(void 0!==(n=r[fo])?!!n:"RegExp"==g(r))},fu=ec.enforce,fl=ti("match"),fh=o.RegExp,fd=fh.prototype,fp=/a/g,fv=/a/g,fg=new fh(fp)!==fp,fb=o7.UNSUPPORTED_Y;if(s&&eP("RegExp",!fg||fb||f(function(){return fv[fl]=!1,fh(fp)!=fp||fh(fv)==fv||"/a/i"!=fh(fp,"i")}))){for(var fy=function(r,n){var a,i=this instanceof fy,o=fs(r),c=void 0===n;if(!i&&o&&r.constructor===fy&&c)return r;fg?o&&!c&&(r=r.source):r instanceof fy&&(c&&(n=ap.call(r)),r=r.source),fb&&(a=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var f=aY(fg?new fh(r,n):fh(r,n),i?this:fd,fy);return fb&&a&&(fu(f).sticky=!0),f},fm=function(r){r in fy||fc(fy,r,{configurable:!0,get:function(){return fh[r]},set:function(n){fh[r]=n}})},f_=ff(fh),fx=0;f_.length>fx;)fm(f_[fx++]);fd.constructor=fy,fy.prototype=fd,el(o,"RegExp",fy)}rG("RegExp"),r.isNativeFunction=void 0,r.checkMSEValid=void 0,r.checkEMEValid=void 0,function(r,n,a){function i(r,n){var a=parseInt(r.slice(n,n+2),16);return a>>>7==0?[1,a]:a>>>6==2?[2,a=((63&a)<<8)+parseInt(r.slice(n+2,n+4),16)]:[3,a=((63&a)<<16)+parseInt(r.slice(n+2,n+6),16)]}var o,c=0,f=[],s=[];for(o=0;o<4;++o)c+=(3&parseInt(r.slice(8+2*o,10+2*o),16))<<2*o;var u=parseInt(r.slice(16,24),16),l=2*parseInt(r.slice(32,40),16);for(o=40;o<l+40;o+=2)f.push(parseInt(r.slice(o,o+2),16));var h=l+40,d=parseInt(r.slice(h,h+4),16);for(h+=4,o=0;o<d;++o){var p=i(r,h);h+=2*p[0];for(var v="",g=0;g<p[1];++g){var b=i(r,h);v+=String.fromCharCode(c^b[1]),h+=2*b[0]}s.push(v)}n.p=null,function r(n,a,i,o,c){var u,l,h,d,p,v=-1,g=[],b=null,y=[a];for(l=Math.min(a.length,i),h=0;h<l;++h)y.push(a[h]);y.p=o;for(var m=[];;)try{switch(f[n++]){case 53:g[++v]=!0;break;case 4:g[++v]=!1;break;case 27:g[++v]=null;break;case 2:u=f[n++],g[++v]=u<<24>>24;break;case 23:u=((u=((u=f[n++])<<8)+f[n++])<<8)+f[n++],g[++v]=(u<<8)+f[n++];break;case 15:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=s[u];break;case 13:g[++v]=void 0;break;case 14:u=(f[n]<<8)+f[n+1],n+=2,v=v-u+1,l=g.slice(v,v+u),g[v]=l;break;case 31:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;g[++v]=d[h];break;case 58:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],g[v]=g[v][l];break;case 68:l=g[v--],g[v]=g[v][l];break;case 24:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;d[h]=g[v--];break;case 46:for(l=f[n++],h=f[n++],d=y,d=y;l>0;--l)d=d.p;g[++v]=d,g[++v]=h;break;case 41:g[v]=-g[v];break;case 62:l=g[v--],g[v]=g[v]===l;break;case 0:l=g[v--],g[v]=g[v]!==l;break;case 21:l=g[v--],g[v]=g[v]>l;break;case 28:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?--v:n+=u;break;case 22:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?n+=u:--v;break;case 26:l=g[v--],(h=g[v--])[l]=g[v];break;case 63:g[v]=void 0;break;case 37:g[v]=typeof g[v];break;case 5:u=f[n++],l=g[v--],(h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)})._v=[l,u,y],h._u=r,g[++v]=h;break;case 43:for(l=g[v--],h=null;d=m.pop();)if(2===d[0]||3===d[0]){h=d;break}if(h)n=h[2],h[0]=0,m.push(h);else{if(!b)return l;n=b[1],c=b[2],y=b[3],m=b[4],g[++v]=l,b=b[0]}break;case 8:v-=u=f[n++],h=g.slice(v+1,v+u+1),l=g[v--],d=g[v--],l._u===r?(l=l._v,b=[b,n,c,y,m],n=l[0],null==d&&(d=function(){return this}()),c=d,(y=[h].concat(h)).length=Math.min(l[1],u)+1,y.p=l[2],m=[]):(p=l.apply(d,h),g[++v]=p);break;case 30:for(u=f[n++],d=[void 0],p=u;p>0;--p)d[p]=g[v--];h=g[v--],p=new(l=Function.bind.apply(h,d)),g[++v]=p;break;case 66:n+=2+(u=(u=(f[n]<<8)+f[n+1])<<16>>16);break;case 1:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,(l=g[v--])||(n+=u);break;case 72:--v;break;case 47:l=g[v],g[++v]=l;break;default:throw Error("ioe")}}catch(r){for(;(u=m.pop())&&!u[0];);if(!u){t:for(;b;){for(l=b[4];u=l.pop();)if(u[0])break t;b=b[0]}if(!b)throw r;n=b[1],c=b[2],y=b[3],m=b[4],b=b[0]}1===(l=u[0])?(n=u[2],u[0]=0,m.push(u),g[++v]=r):2===l?(n=u[2],u[0]=0,m.push(u)):(n=u[3],u[0]=2,m.push(u),g[++v]=r)}}(u,[],0,n,a)}("504B01012c284a3f000002f73f49292f00000343351800021f02022f3a00021f000108010100191f00012f3a0003170000009d05021f0002080218000242006d1b1f02030f00042f3a00051b1f02041f010108012f3a00061f02030f00070f00081e020f000908022f3a00061f02030f000a0f00081e020f000b08020f000c080208011800031f0001250f000d3e0100181f00032f3a000e1f01022f3a000f1f000108010801420001041800021f00022b1f00011c00091b1f030c1f000208012b1f00003a00100200151c00081f00000200440d000100091f0000020044420001041800011f0205250f0011000100071f02052b4200371f00011c000c1f02060f001244250f00110001000b1f02060f0012442b4200171f02060f001344250f0011000100081f02060f0013442b0d2b1f00003a00100200151c00081f00000200440d000100091f0000020044420001041800011f0207250f0011000100071f02072b42001d1f00011c000c1f02060f001444250f0011000100081f02060f0014442b0d2b1f00003a00100200151c00081f00000200440d000100091f0000020044420001041800011b1f020d1f000108011800021b1f020e1f00010801180003041800041f00021c00031f00030100620e00001800051f00030100201f00052f3a00151f00030801481f00052f3a00151f00033a00003a00160801481f00020100201f00052f3a00151f00020801481f00052f3a00151f00023a00003a00170801481b1f020c1f00050801010004351800041f00042b0e00001800011f0208250f0011000100a91f00012f3a00151f02083a00003a00180801481f00012f3a00151f02093a00003a00190801481f00012f3a00151f02083a00003a001a0801481f020a250f0011001c00451f020b2e00021a1b3e1600071f000202003f3e16000c1f00023a001b2e00021a1b3e1600071f000202003f3e01000602003f42000c1f00022f3a001c0f001d08010201293e01000d1f00012f3a00151f020a0801481f00012f3a00151f020b3a001e0801481f00013a001002003e010004354200091b1f020c1f000108012b1700000000050118010c17000000ad050018010d170000011c050018010e1700000171050018010f170000022305001801101f01003a00003a00011800011f01013a00003a00011800020d2b001f0980908092808f8094808f8094809980908085088094808f80b3809480928089808e8087078089809380a18092809280818099068092808580848095808380850180be068083808f808e80838081809407809280858090808c8081808380851480bb80ce80ca80cb80df80be80c4809b809d80c880c9809c80bb80bc80bd80bc80cf80bc80bc80bd0180870380bc80c480c62f8094808f80b3809480928089808e8087809c80c880868095808e808380948089808f808e80c980ce80ca80df80c880df80dd80bc80bc80bc80c880c9809c80c08086808f809280c080ce80cb80df80c880df80dd80bc80bc80bc80bd80c90580c480d180ce80ca80df0180c40880868095808e808380948089808f808e0480948085809380940480838081808c808c06808c8085808e808780948088098095808e8084808580868089808e808580841280ad8081808e808180878085808480ad808580848089808180b3808f80958092808380851180b78085808280ab8089809480ad808580848089808180b3808f80958092808380851380ad8081808e808180878085808480b3808f809580928083808580a2809580868086808580920480908095809380880c8081809080908085808e808480a2809580868086808580920f80818084808480b3808f809580928083808580a280958086808680858092068095809080848081809480850d80838092808580818094808580b38085809380938089808f808e1080818084808480a580968085808e809480ac8089809380948085808e8085809209809580938085809280a180878085808e8094078089808e80848085809880af80860880a5808c8085808380948092808f808e1b809280858091809580858093809480ad808580848089808180ab8085809980b38099809380948085808d80a180838083808580938093",{0:Object,1:Function,2:Array,3:RegExp,4:String,get 5(){return"undefined"!=typeof MediaSource?MediaSource:void 0},get 6(){return self},get 7(){return"undefined"!=typeof SourceBuffer?SourceBuffer:void 0},get 8(){return"undefined"!=typeof MediaKeySession?MediaKeySession:void 0},get 9(){return MediaKeys},get 10(){return"undefined"!=typeof atob?atob:void 0},get 11(){return navigator},get 12(){return r.isNativeFunction},set 12(t){r.isNativeFunction=t},get 13(){return fn},set 13(e){fn=e},get 14(){return fa},set 14(e){fa=e},get 15(){return r.checkMSEValid},set 15(t){r.checkMSEValid=t},get 16(){return r.checkEMEValid},set 16(t){r.checkEMEValid=t}},void 0);var fk={exports:{}},fS=!f(function(){return Object.isExtensible(Object.preventExtensions({}))}),fw=A.f,fT=q("meta"),fE=0,fR=Object.isExtensible||function(){return!0},fL=function(r){fw(r,fT,{value:{objectID:"O"+ ++fE,weakData:{}}})},fI=fk.exports={REQUIRED:!1,fastKey:function(r,n){if(!x(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!T(r,fT)){if(!fR(r))return"F";if(!n)return"E";fL(r)}return r[fT].objectID},getWeakData:function(r,n){if(!T(r,fT)){if(!fR(r))return!0;if(!n)return!1;fL(r)}return r[fT].weakData},onFreeze:function(r){return fS&&fI.REQUIRED&&fR(r)&&!T(r,fT)&&fL(r),r}};$[fT]=!0;var fO=fk.exports,fA=A.f,fP=fO.fastKey,fC=ec.set,fD=ec.getterFor;!function(r,n,a){var i=-1!=="Map".indexOf("Map"),c=-1!==r.indexOf("Weak"),s=i?"set":"add",u=o[r],l=u&&u.prototype,h=u,d={},p=function(r){var n=l[r];el(l,r,"add"==r?function(r){return n.call(this,0===r?0:r),this}:"delete"==r?function(r){return!(c&&!x(r))&&n.call(this,0===r?0:r)}:"get"==r?function(r){return c&&!x(r)?void 0:n.call(this,0===r?0:r)}:"has"==r?function(r){return!(c&&!x(r))&&n.call(this,0===r?0:r)}:function(r,a){return n.call(this,0===r?0:r,a),this})};if(eP(r,"function"!=typeof u||!(c||l.forEach&&!f(function(){(new u).entries().next()}))))h=a.getConstructor(n,r,i,s),fO.REQUIRED=!0;else if(eP(r,!0)){var v=new h,g=v[s](c?{}:-0,1)!=v,b=f(function(){v.has(1)}),y=nn(function(r){new u(r)}),m=!c&&f(function(){for(var r=new u,n=5;n--;)r[s](n,n);return!r.has(-0)});y||((h=n(function(n,a){t6(n,h,r);var o=aY(new u,n,h);return null!=a&&r9(a,o[s],{that:o,AS_ENTRIES:i}),o})).prototype=l,l.constructor=h),(b||m)&&(p("delete"),p("has"),i&&p("get")),(m||g)&&p(s),c&&l.clear&&delete l.clear}d[r]=h,eU({global:!0,forced:h!=u},d),tV(h,r),c||a.setStrong(h,r,i)}("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},{getConstructor:function(r,n,a,i){var o=r(function(r,c){t6(r,o,n),fC(r,{type:n,index:tT(null),first:void 0,last:void 0,size:0}),s||(r.size=0),null!=c&&r9(c,r[i],{that:r,AS_ENTRIES:a})}),c=fD(n),f=function(r,n,a){var i,o,f=c(r),l=u(r,n);return l?l.value=a:(f.last=l={index:o=fP(n,!0),key:n,value:a,previous:i=f.last,next:void 0,removed:!1},f.first||(f.first=l),i&&(i.next=l),s?f.size++:r.size++,"F"!==o&&(f.index[o]=l)),r},u=function(r,n){var a,i=c(r),o=fP(n);if("F"!==o)return i.index[o];for(a=i.first;a;a=a.next)if(a.key==n)return a};return t5(o.prototype,{clear:function(){for(var r=c(this),n=r.index,a=r.first;a;)a.removed=!0,a.previous&&(a.previous=a.previous.next=void 0),delete n[a.index],a=a.next;r.first=r.last=void 0,s?r.size=0:this.size=0},delete:function(r){var n=c(this),a=u(this,r);if(a){var i=a.next,o=a.previous;delete n.index[a.index],a.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==a&&(n.first=i),n.last==a&&(n.last=o),s?n.size--:this.size--}return!!a},forEach:function(r){for(var n,a=c(this),i=r0(r,arguments.length>1?arguments[1]:void 0,3);n=n?n.next:a.first;)for(i(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(r){return!!u(this,r)}}),t5(o.prototype,a?{get:function(r){var n=u(this,r);return n&&n.value},set:function(r,n){return f(this,0===r?0:r,n)}}:{add:function(r){return f(this,r=0===r?0:r,r)}}),s&&fA(o.prototype,"size",{get:function(){return c(this).size}}),o},setStrong:function(r,n,a){var i=n+" Iterator",o=fD(n),c=fD(i);t0(r,n,function(r,n){fC(this,{type:i,target:r,state:o(r),kind:n,last:void 0})},function(){for(var r=c(this),n=r.kind,a=r.last;a&&a.removed;)a=a.previous;return r.target&&(r.last=a=a?a.next:r.state.first)?"keys"==n?{value:a.key,done:!1}:"values"==n?{value:a.value,done:!1}:{value:[a.key,a.value],done:!1}:(r.target=void 0,{value:void 0,done:!0})},a?"entries":"values",!a,!0),rG(n)}});var fM=cm.charAt,fN="String Iterator",fj=ec.set,fB=ec.getterFor(fN);t0(String,"String",function(r){fj(this,{type:fN,string:String(r),index:0})},function(){var r,n=fB(this),a=n.string,i=n.index;return i>=a.length?{value:void 0,done:!0}:(r=fM(a,i),n.index+=r.length,{value:r,done:!1})});var fU=function(){for(var r,n=P(this),a=rq(n.delete),i=!0,o=0,c=arguments.length;o<c;o++)r=a.call(n,arguments[o]),i=i&&r;return!!i};eU({target:"Map",proto:!0,real:!0,forced:!1},{deleteAll:function(){return fU.apply(this,arguments)}});var fF=function(r){return Map.prototype.entries.call(r)};eU({target:"Map",proto:!0,real:!0,forced:!1},{every:function(r){var n=P(this),a=fF(n),i=r0(r,arguments.length>1?arguments[1]:void 0,3);return!r9(a,function(r,a,o){if(!i(a,r,n))return o()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});eU({target:"Map",proto:!0,real:!0,forced:!1},{filter:function(r){var n=P(this),a=fF(n),i=r0(r,arguments.length>1?arguments[1]:void 0,3),o=new(ni(n,ed("Map"))),c=rq(o.set);return r9(a,function(r,a){i(a,r,n)&&c.call(o,r,a)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});eU({target:"Map",proto:!0,real:!0,forced:!1},{find:function(r){var n=P(this),a=fF(n),i=r0(r,arguments.length>1?arguments[1]:void 0,3);return r9(a,function(r,a,o){if(i(a,r,n))return o(a)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});eU({target:"Map",proto:!0,real:!0,forced:!1},{findKey:function(r){var n=P(this),a=fF(n),i=r0(r,arguments.length>1?arguments[1]:void 0,3);return r9(a,function(r,a,o){if(i(a,r,n))return o(r)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});eU({target:"Map",proto:!0,real:!0,forced:!1},{includes:function(r){return r9(fF(P(this)),function(n,a,i){var o,c;if((o=a)===(c=r)||o!=o&&c!=c)return i()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});eU({target:"Map",proto:!0,real:!0,forced:!1},{keyOf:function(r){return r9(fF(P(this)),function(n,a,i){if(a===r)return i(n)},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}});eU({target:"Map",proto:!0,real:!0,forced:!1},{mapKeys:function(r){var n=P(this),a=fF(n),i=r0(r,arguments.length>1?arguments[1]:void 0,3),o=new(ni(n,ed("Map"))),c=rq(o.set);return r9(a,function(r,a){c.call(o,i(a,r,n),a)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});eU({target:"Map",proto:!0,real:!0,forced:!1},{mapValues:function(r){var n=P(this),a=fF(n),i=r0(r,arguments.length>1?arguments[1]:void 0,3),o=new(ni(n,ed("Map"))),c=rq(o.set);return r9(a,function(r,a){c.call(o,r,i(a,r,n))},{AS_ENTRIES:!0,IS_ITERATOR:!0}),o}});eU({target:"Map",proto:!0,real:!0,forced:!1},{merge:function(r){for(var n=P(this),a=rq(n.set),i=0;i<arguments.length;)r9(arguments[i++],a,{that:n,AS_ENTRIES:!0});return n}});eU({target:"Map",proto:!0,real:!0,forced:!1},{reduce:function(r){var n=P(this),a=fF(n),i=arguments.length<2,o=i?void 0:arguments[1];if(rq(r),r9(a,function(a,c){i?(i=!1,o=c):o=r(o,c,a,n)},{AS_ENTRIES:!0,IS_ITERATOR:!0}),i)throw TypeError("Reduce of empty map with no initial value");return o}});eU({target:"Map",proto:!0,real:!0,forced:!1},{some:function(r){var n=P(this),a=fF(n),i=r0(r,arguments.length>1?arguments[1]:void 0,3);return r9(a,function(r,a,o){if(i(a,r,n))return o()},{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}});eU({target:"Map",proto:!0,real:!0,forced:!1},{update:function(r,n){var a=P(this),i=arguments.length;rq(n);var o=a.has(r);if(!o&&i<3)throw TypeError("Updating absent value");var c=o?a.get(r):rq(i>2?arguments[2]:void 0)(r,a);return a.set(r,n(c,r,a)),a}});var fG={exports:{}};fG.exports=function(r){var n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function a(r,n){var a=r[0],i=r[1],o=r[2],c=r[3];i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&o|~i&c)+n[0]-680876936|0)<<7|a>>>25)+i|0)&i|~a&o)+n[1]-389564586|0)<<12|c>>>20)+a|0)&a|~c&i)+n[2]+606105819|0)<<17|o>>>15)+c|0)&c|~o&a)+n[3]-1044525330|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&o|~i&c)+n[4]-176418897|0)<<7|a>>>25)+i|0)&i|~a&o)+n[5]+1200080426|0)<<12|c>>>20)+a|0)&a|~c&i)+n[6]-1473231341|0)<<17|o>>>15)+c|0)&c|~o&a)+n[7]-45705983|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&o|~i&c)+n[8]+1770035416|0)<<7|a>>>25)+i|0)&i|~a&o)+n[9]-1958414417|0)<<12|c>>>20)+a|0)&a|~c&i)+n[10]-42063|0)<<17|o>>>15)+c|0)&c|~o&a)+n[11]-1990404162|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&o|~i&c)+n[12]+1804603682|0)<<7|a>>>25)+i|0)&i|~a&o)+n[13]-40341101|0)<<12|c>>>20)+a|0)&a|~c&i)+n[14]-1502002290|0)<<17|o>>>15)+c|0)&c|~o&a)+n[15]+1236535329|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&c|o&~c)+n[1]-165796510|0)<<5|a>>>27)+i|0)&o|i&~o)+n[6]-1069501632|0)<<9|c>>>23)+a|0)&i|a&~i)+n[11]+643717713|0)<<14|o>>>18)+c|0)&a|c&~a)+n[0]-373897302|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&c|o&~c)+n[5]-701558691|0)<<5|a>>>27)+i|0)&o|i&~o)+n[10]+38016083|0)<<9|c>>>23)+a|0)&i|a&~i)+n[15]-660478335|0)<<14|o>>>18)+c|0)&a|c&~a)+n[4]-405537848|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&c|o&~c)+n[9]+568446438|0)<<5|a>>>27)+i|0)&o|i&~o)+n[14]-1019803690|0)<<9|c>>>23)+a|0)&i|a&~i)+n[3]-187363961|0)<<14|o>>>18)+c|0)&a|c&~a)+n[8]+1163531501|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i&c|o&~c)+n[13]-1444681467|0)<<5|a>>>27)+i|0)&o|i&~o)+n[2]-51403784|0)<<9|c>>>23)+a|0)&i|a&~i)+n[7]+1735328473|0)<<14|o>>>18)+c|0)&a|c&~a)+n[12]-1926607734|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i^o^c)+n[5]-378558|0)<<4|a>>>28)+i|0)^i^o)+n[8]-2022574463|0)<<11|c>>>21)+a|0)^a^i)+n[11]+1839030562|0)<<16|o>>>16)+c|0)^c^a)+n[14]-35309556|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i^o^c)+n[1]-1530992060|0)<<4|a>>>28)+i|0)^i^o)+n[4]+1272893353|0)<<11|c>>>21)+a|0)^a^i)+n[7]-155497632|0)<<16|o>>>16)+c|0)^c^a)+n[10]-1094730640|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i^o^c)+n[13]+681279174|0)<<4|a>>>28)+i|0)^i^o)+n[0]-358537222|0)<<11|c>>>21)+a|0)^a^i)+n[3]-722521979|0)<<16|o>>>16)+c|0)^c^a)+n[6]+76029189|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((c=((c+=((a=((a+=(i^o^c)+n[9]-640364487|0)<<4|a>>>28)+i|0)^i^o)+n[12]-421815835|0)<<11|c>>>21)+a|0)^a^i)+n[15]+530742520|0)<<16|o>>>16)+c|0)^c^a)+n[2]-995338651|0)<<23|i>>>9)+o|0,i=((i+=((c=((c+=(i^((a=((a+=(o^(i|~c))+n[0]-198630844|0)<<6|a>>>26)+i|0)|~o))+n[7]+1126891415|0)<<10|c>>>22)+a|0)^((o=((o+=(a^(c|~i))+n[14]-1416354905|0)<<15|o>>>17)+c|0)|~a))+n[5]-57434055|0)<<21|i>>>11)+o|0,i=((i+=((c=((c+=(i^((a=((a+=(o^(i|~c))+n[12]+1700485571|0)<<6|a>>>26)+i|0)|~o))+n[3]-1894986606|0)<<10|c>>>22)+a|0)^((o=((o+=(a^(c|~i))+n[10]-1051523|0)<<15|o>>>17)+c|0)|~a))+n[1]-2054922799|0)<<21|i>>>11)+o|0,i=((i+=((c=((c+=(i^((a=((a+=(o^(i|~c))+n[8]+1873313359|0)<<6|a>>>26)+i|0)|~o))+n[15]-30611744|0)<<10|c>>>22)+a|0)^((o=((o+=(a^(c|~i))+n[6]-1560198380|0)<<15|o>>>17)+c|0)|~a))+n[13]+1309151649|0)<<21|i>>>11)+o|0,i=((i+=((c=((c+=(i^((a=((a+=(o^(i|~c))+n[4]-145523070|0)<<6|a>>>26)+i|0)|~o))+n[11]-1120210379|0)<<10|c>>>22)+a|0)^((o=((o+=(a^(c|~i))+n[2]+718787259|0)<<15|o>>>17)+c|0)|~a))+n[9]-343485551|0)<<21|i>>>11)+o|0,r[0]=a+r[0]|0,r[1]=i+r[1]|0,r[2]=o+r[2]|0,r[3]=c+r[3]|0}function i(r){var n,a=[];for(n=0;n<64;n+=4)a[n>>2]=r.charCodeAt(n)+(r.charCodeAt(n+1)<<8)+(r.charCodeAt(n+2)<<16)+(r.charCodeAt(n+3)<<24);return a}function o(r){var n,a=[];for(n=0;n<64;n+=4)a[n>>2]=r[n]+(r[n+1]<<8)+(r[n+2]<<16)+(r[n+3]<<24);return a}function c(r){var n,o,c,f,s,u,l=r.length,h=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=l;n+=64)a(h,i(r.substring(n-64,n)));for(o=(r=r.substring(n-64)).length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<o;n+=1)c[n>>2]|=r.charCodeAt(n)<<(n%4<<3);if(c[n>>2]|=128<<(n%4<<3),n>55)for(a(h,c),n=0;n<16;n+=1)c[n]=0;return s=parseInt((f=(f=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(f[1],16)||0,c[14]=s,c[15]=u,a(h,c),h}function f(r){var a;for(a=0;a<r.length;a+=1)r[a]=function(r){var a,i="";for(a=0;a<4;a+=1)i+=n[r>>8*a+4&15]+n[r>>8*a&15];return i}(r[a]);return r.join("")}function s(r){return/[\u0080-\uFFFF]/.test(r)&&(r=unescape(encodeURIComponent(r))),r}function u(r){var n,a=[],i=r.length;for(n=0;n<i-1;n+=2)a.push(parseInt(r.substr(n,2),16));return String.fromCharCode.apply(String,a)}function l(){this.reset()}return f(c("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function r(r,n){return(r=0|r||0)<0?Math.max(r+n,0):Math.min(r,n)}ArrayBuffer.prototype.slice=function(n,a){var i,o,c,f,s=this.byteLength,u=r(n,s),l=s;return void 0!==a&&(l=r(a,s)),u>l?new ArrayBuffer(0):(c=new Uint8Array(o=new ArrayBuffer(i=l-u)),f=new Uint8Array(this,u,i),c.set(f),o)}}(),l.prototype.append=function(r){return this.appendBinary(s(r)),this},l.prototype.appendBinary=function(r){this._buff+=r,this._length+=r.length;var n,o=this._buff.length;for(n=64;n<=o;n+=64)a(this._hash,i(this._buff.substring(n-64,n)));return this._buff=this._buff.substring(n-64),this},l.prototype.end=function(r){var n,a,i=this._buff,o=i.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<o;n+=1)c[n>>2]|=i.charCodeAt(n)<<(n%4<<3);return this._finish(c,o),a=f(this._hash),r&&(a=u(a)),this.reset(),a},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(r){return this._buff=r.buff,this._length=r.length,this._hash=r.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(r,n){var i,o,c,f=n;if(r[f>>2]|=128<<(f%4<<3),f>55)for(a(this._hash,r),f=0;f<16;f+=1)r[f]=0;o=parseInt((i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),c=parseInt(i[1],16)||0,r[14]=o,r[15]=c,a(this._hash,r)},l.hash=function(r,n){return l.hashBinary(s(r),n)},l.hashBinary=function(r,n){var a=f(c(r));return n?u(a):a},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(r){var n,i,c,f,s,u=(n=this._buff.buffer,i=r,c=!0,(f=new Uint8Array(n.byteLength+i.byteLength)).set(new Uint8Array(n)),f.set(new Uint8Array(i),n.byteLength),c?f:f.buffer),l=u.length;for(this._length+=r.byteLength,s=64;s<=l;s+=64)a(this._hash,o(u.subarray(s-64,s)));return this._buff=new Uint8Array(s-64<l?u.buffer.slice(s-64):0),this},l.ArrayBuffer.prototype.end=function(r){var n,a,i=this._buff,o=i.length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n<o;n+=1)c[n>>2]|=i[n]<<(n%4<<3);return this._finish(c,o),a=f(this._hash),r&&(a=u(a)),this.reset(),a},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var r,n=l.prototype.getState.call(this);return n.buff=(r=n.buff,String.fromCharCode.apply(null,new Uint8Array(r))),n},l.ArrayBuffer.prototype.setState=function(r){return r.buff=function(r,n){var a,i=r.length,o=new ArrayBuffer(i),c=new Uint8Array(o);for(a=0;a<i;a+=1)c[a]=r.charCodeAt(a);return n?c:o}(r.buff,!0),l.prototype.setState.call(this,r)},l.ArrayBuffer.prototype.destroy=l.prototype.destroy,l.ArrayBuffer.prototype._finish=l.prototype._finish,l.ArrayBuffer.hash=function(r,n){var i=f(function(r){var n,i,c,f,s,u,l=r.length,h=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=l;n+=64)a(h,o(r.subarray(n-64,n)));for(i=(r=n-64<l?r.subarray(n-64):new Uint8Array(0)).length,c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],n=0;n<i;n+=1)c[n>>2]|=r[n]<<(n%4<<3);if(c[n>>2]|=128<<(n%4<<3),n>55)for(a(h,c),n=0;n<16;n+=1)c[n]=0;return s=parseInt((f=(f=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(f[1],16)||0,c[14]=s,c[15]=u,a(h,c),h}(new Uint8Array(r)));return n?u(i):i},l}();var fV=a(fG.exports),fW="KekHelper",fK="-----BEGIN PUBLIC KEY-----",fz="-----END PUBLIC KEY-----";function fH(r){return String.fromCharCode.apply(null,new Uint8Array(r))}function fZ(r){return new Uint8Array(r.split("").map(function(r){return r.charCodeAt(0)}))}function fJ(){return(fJ=eG(eq().mark(function r(n,a,i){var o,c,f,s;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=fZ(n),r.next=3,crypto.subtle.importKey("pkcs8",o,{name:i.name,hash:i.hash},!0,["decrypt"]);case 3:return c=r.sent,f=fZ(a),r.next=7,crypto.subtle.importKey("spki",f,{name:i.name,hash:i.hash},!0,["encrypt"]);case 7:return s=r.sent,r.abrupt("return",{privateKey:c,publicKey:s});case 9:case"end":return r.stop()}},r)}))).apply(this,arguments)}function fY(){return(fY=eG(eq().mark(function r(){var n,a,i,o,c,f,s,u,l,h,d,p,v,g,b,y;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(n={name:"RSA-OAEP",modulusLength:2048,publicExponent:new Uint8Array([1,0,1]),hash:"SHA-256"},a=null,i="",o="",c="",s=/kek=localstorage/gi.test("object"===("undefined"==typeof location?"undefined":e$(location))?location.href:""),r.prev=7,u=performance.now(),!(l=s?localStorage.getItem("player_keypair"):null)||!((h=JSON.parse(l))&&h.privateKey&&h.publicKey)){r.next=23;break}return cH(fW,"Found key pair in local storage",h),i=h.privateKey,o=h.publicKey,c=atob(h.publicKey.replace(fK,"").replace(fz,"").replace(/\s/g,"")),f=atob(h.privateKey.replace("-----BEGIN PRIVATE KEY-----","").replace("-----END PRIVATE KEY-----","").replace(/\s/g,"")),r.next=20,function(r,n,a){return fJ.apply(this,arguments)}(f,c,n);case 20:a=r.sent,d=performance.now(),cH(fW,"importKeyPair took ".concat(d-u," milliseconds"));case 23:r.next=28;break;case 25:r.prev=25,r.t0=r.catch(7),cH(fW,"importKeyPair error:",r.t0);case 28:if(a){r.next=46;break}return p=performance.now(),r.next=32,function(r){return cQ.apply(this,arguments)}(n);case 32:return a=r.sent,r.next=35,crypto.subtle.exportKey("pkcs8",a.privateKey);case 35:return v=fH(r.sent),i=window.btoa(v),r.next=40,crypto.subtle.exportKey("spki",a.publicKey);case 40:c=fH(r.sent),o=window.btoa(c),g=performance.now(),cH(fW,"keyPair generated, took ".concat(g-p," milliseconds")),s&&localStorage.setItem("player_keypair",JSON.stringify({privateKey:i,publicKey:o}));case 46:return b="".concat(fK,"\n").concat(o,"\n").concat(fz),cH(fW,"Public key (PEM format): \n".concat(b)),y=btoa((function(r,n){var a=85,i=250;cM(r);for(var o=0;o<r.length;o++){var c=r[o].charCodeAt(0),f=cD;o%2==1?a=c=a^f(c+i,o,21).charCodeAt(0):i=c=i^f(c+a,o,21).charCodeAt(0),r[o]=String.fromCharCode(c)}return cM(r),r})(c.split("")).join("")),cH(fW,"drmKeK: ".concat(y)),r.abrupt("return",{keyPair:a,drmKeK:y});case 51:case"end":return r.stop()}},r,null,[[7,25]])}))).apply(this,arguments)}var fq={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(r){this.toString=function(){return"CORRUPT: "+this.message},this.message=r},invalid:function(r){this.toString=function(){return"INVALID: "+this.message},this.message=r},bug:function(r){this.toString=function(){return"BUG: "+this.message},this.message=r},notReady:function(r){this.toString=function(){return"NOT READY: "+this.message},this.message=r}}};function fX(r,n){return fQ.apply(this,arguments)}function fQ(){return(fQ=eG(eq().mark(function r(n,a){var i,o,c,f,s,u,l;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i=a.iv,o=a.tagLength,c=a.data,f=null,n=fr.StringToArrayBuffer(n),c=fr.Base64ToHex(c,!0),r.prev=4,r.next=7,crypto.subtle.importKey("raw",n,"AES-GCM",!0,["encrypt","decrypt"]);case 7:s=r.sent,r.next=14;break;case 10:throw r.prev=10,r.t0=r.catch(4),u=r.t0 instanceof Error?r.t0.message:String(r.t0),Error("importKey: ".concat(u));case 14:return r.prev=14,r.next=17,crypto.subtle.decrypt({name:"AES-GCM",iv:new Uint8Array(i),tagLength:o},s,c);case 17:f=r.sent,r.next=32;break;case 20:if(r.prev=20,r.t1=r.catch(14),"OperationError"!==(l=(r.t1 instanceof DOMException||r.t1 instanceof Error?r.t1.name:"")||String(r.t1))){r.next=27;break}throw Error("Wrong Password.");case 27:if("InvalidAccessError"!==l){r.next=31;break}throw Error("Invalid Key");case 31:throw r.t1 instanceof Error?r.t1:Error(String(r.t1));case 32:return r.abrupt("return",new TextDecoder("utf-8").decode(f));case 33:case"end":return r.stop()}},r,null,[[4,10],[14,20]])}))).apply(this,arguments)}function f$(r,n){return f0.apply(this,arguments)}function f0(){return(f0=eG(eq().mark(function r(n,a){var i,o,c,f,s,u,l;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return i=a.iv,o=a.tagLength,c=a.data,f=btoa(fr.ArrayBufferToString(i)),s=fq.codec.base64.toBits(f),u=fq.codec.utf8String.toBits(n),l=new fq.cipher.aes(u),r.abrupt("return",fq.codec.utf8String.fromBits(fq.mode.gcm.decrypt(l,fq.codec.base64.toBits(c),s,[],o)));case 6:case"end":return r.stop()}},r)}))).apply(this,arguments)}fq.cipher.aes=function(r){this._tables[0][0][0]||this._precompute();var n,a,i,o,c,f=this._tables[0][4],s=this._tables[1],u=r.length,l=1;if(4!==u&&6!==u&&8!==u)throw new fq.exception.invalid("invalid aes key size");for(this._key=[o=r.slice(0),c=[]],n=u;n<4*u+28;n++)i=o[n-1],(n%u==0||8===u&&n%u==4)&&(i=f[i>>>24]<<24^f[i>>16&255]<<16^f[i>>8&255]<<8^f[255&i],n%u==0&&(i=i<<8^i>>>24^l<<24,l=l<<1^283*(l>>7))),o[n]=o[n-u]^i;for(a=0;n;a++,n--)i=o[3&a?n:n-4],c[a]=n<=4||a<4?i:s[0][f[i>>>24]]^s[1][f[i>>16&255]]^s[2][f[i>>8&255]]^s[3][f[255&i]]},fq.cipher.aes.prototype={encrypt:function(r){return this._crypt(r,0)},decrypt:function(r){return this._crypt(r,1)},_tables:[[[],[],[],[],[]],[[],[],[],[],[]]],_precompute:function(){var r,n,a,i,o,c,f,s,u=this._tables[0],l=this._tables[1],h=u[4],d=l[4],p=[],v=[];for(r=0;r<256;r++)v[(p[r]=r<<1^283*(r>>7))^r]=r;for(n=a=0;!h[n];n^=i||1,a=v[a]||1)for(c=(c=a^a<<1^a<<2^a<<3^a<<4)>>8^255&c^99,h[n]=c,d[c]=n,s=16843009*p[o=p[i=p[n]]]^65537*o^257*i^16843008*n,f=257*p[c]^16843008*c,r=0;r<4;r++)u[r][n]=f=f<<24^f>>>8,l[r][c]=s=s<<24^s>>>8;for(r=0;r<5;r++)u[r]=u[r].slice(0),l[r]=l[r].slice(0)},_crypt:function(r,n){if(4!==r.length)throw new fq.exception.invalid("invalid aes block size");var a,i,o,c,f=this._key[n],s=r[0]^f[0],u=r[n?3:1]^f[1],l=r[2]^f[2],h=r[n?1:3]^f[3],d=f.length/4-2,p=4,v=[0,0,0,0],g=this._tables[n],b=g[0],y=g[1],m=g[2],_=g[3],x=g[4];for(c=0;c<d;c++)a=b[s>>>24]^y[u>>16&255]^m[l>>8&255]^_[255&h]^f[p],i=b[u>>>24]^y[l>>16&255]^m[h>>8&255]^_[255&s]^f[p+1],o=b[l>>>24]^y[h>>16&255]^m[s>>8&255]^_[255&u]^f[p+2],h=b[h>>>24]^y[s>>16&255]^m[u>>8&255]^_[255&l]^f[p+3],p+=4,s=a,u=i,l=o;for(c=0;c<4;c++)v[n?3&-c:c]=x[s>>>24]<<24^x[u>>16&255]<<16^x[l>>8&255]<<8^x[255&h]^f[p++],a=s,s=u,u=l,l=h,h=a;return v}},fq.bitArray={bitSlice:function(r,n,a){return r=fq.bitArray._shiftRight(r.slice(n/32),32-(31&n)).slice(1),void 0===a?r:fq.bitArray.clamp(r,a-n)},extract:function(r,n,a){var i=Math.floor(-n-a&31);return(-32&(n+a-1^n)?r[n/32|0]<<32-i^r[n/32+1|0]>>>i:r[n/32|0]>>>i)&(1<<a)-1},concat:function(r,n){if(0===r.length||0===n.length)return r.concat(n);var a=r[r.length-1],i=fq.bitArray.getPartial(a);return 32===i?r.concat(n):fq.bitArray._shiftRight(n,i,0|a,r.slice(0,r.length-1))},bitLength:function(r){var n,a=r.length;return 0===a?0:(n=r[a-1],32*(a-1)+fq.bitArray.getPartial(n))},clamp:function(r,n){if(32*r.length<n)return r;var a=(r=r.slice(0,Math.ceil(n/32))).length;return n&=31,a>0&&n&&(r[a-1]=fq.bitArray.partial(n,r[a-1]&2147483648>>n-1,1)),r},partial:function(r,n,a){return 32===r?n:(a?0|n:n<<32-r)+1099511627776*r},getPartial:function(r){return Math.round(r/1099511627776)||32},equal:function(r,n){if(fq.bitArray.bitLength(r)!==fq.bitArray.bitLength(n))return!1;var a,i=0;for(a=0;a<r.length;a++)i|=r[a]^n[a];return 0===i},_shiftRight:function(r,n,a,i){var o,c,f;for(void 0===i&&(i=[]);n>=32;n-=32)i.push(a),a=0;if(0===n)return i.concat(r);for(o=0;o<r.length;o++)i.push(a|r[o]>>>n),a=r[o]<<32-n;return c=r.length?r[r.length-1]:0,f=fq.bitArray.getPartial(c),i.push(fq.bitArray.partial(n+f&31,n+f>32?a:i.pop(),1)),i},_xor4:function(r,n){return[r[0]^n[0],r[1]^n[1],r[2]^n[2],r[3]^n[3]]},byteswapM:function(r){var n,a;for(n=0;n<r.length;++n)a=r[n],r[n]=a>>>24|a>>>8&65280|(65280&a)<<8|a<<24;return r}},fq.codec.utf8String={fromBits:function(r){var n,a,i="",o=fq.bitArray.bitLength(r);for(n=0;n<o/8;n++)3&n||(a=r[n/4]),i+=String.fromCharCode(a>>>8>>>8>>>8),a<<=8;return decodeURIComponent(escape(i))},toBits:function(r){r=unescape(encodeURIComponent(r));var n,a=[],i=0;for(n=0;n<r.length;n++)i=i<<8|r.charCodeAt(n),3&~n||(a.push(i),i=0);return 3&n&&a.push(fq.bitArray.partial(8*(3&n),i)),a}},fq.codec.base64={_chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(r,n,a){var i,o="",c=0,f=fq.codec.base64._chars,s=0,u=fq.bitArray.bitLength(r);for(a&&(f=f.substr(0,62)+"-_"),i=0;6*o.length<u;)o+=f.charAt((s^r[i]>>>c)>>>26),c<6?(s=r[i]<<6-c,c+=26,i++):(s<<=6,c-=6);for(;3&o.length&&!n;)o+="=";return o},toBits:function(r,n){r=r.replace(/\s|=/g,"");var a,i,o=[],c=0,f=fq.codec.base64._chars,s=0;for(n&&(f=f.substr(0,62)+"-_"),a=0;a<r.length;a++){if((i=f.indexOf(r.charAt(a)))<0)throw new fq.exception.invalid("this isn't base64!");c>26?(c-=26,o.push(s^i>>>c),s=i<<32-c):s^=i<<32-(c+=6)}return 56&c&&o.push(fq.bitArray.partial(56&c,s,1)),o}},fq.codec.base64url={fromBits:function(r){return fq.codec.base64.fromBits(r,1,1)},toBits:function(r){return fq.codec.base64.toBits(r,1)}},fq.mode.gcm={name:"gcm",encrypt:function(r,n,a,i,o){var c,f=n.slice(0),s=fq.bitArray;return o=o||128,i=i||[],c=fq.mode.gcm._ctrMode(!0,r,f,i,a,o),s.concat(c.data,c.tag)},decrypt:function(r,n,a,i,o){var c,f,s=n.slice(0),u=fq.bitArray,l=u.bitLength(s);if(i=i||[],(o=o||128)<=l?(f=u.bitSlice(s,l-o),s=u.bitSlice(s,0,l-o)):(f=s,s=[]),c=fq.mode.gcm._ctrMode(!1,r,s,i,a,o),!u.equal(c.tag,f))throw new fq.exception.corrupt("gcm: tag doesn't match");return c.data},_galoisMultiply:function(r,n){var a,i,o,c,f,s=fq.bitArray._xor4;for(o=[0,0,0,0],c=n.slice(0),a=0;a<128;a++){for(r[Math.floor(a/32)]&1<<31-a%32&&(o=s(o,c)),f=!!(1&c[3]),i=3;i>0;i--)c[i]=c[i]>>>1|(1&c[i-1])<<31;c[0]=c[0]>>>1,f&&(c[0]=-520093696^c[0])}return o},_ghash:function(r,n,a){var i,o,c=a.length;for(i=n.slice(0),o=0;o<c;o+=4)i[0]^=4294967295&a[o],i[1]^=4294967295&a[o+1],i[2]^=4294967295&a[o+2],i[3]^=4294967295&a[o+3],i=fq.mode.gcm._galoisMultiply(i,r);return i},_ctrMode:function(r,n,a,i,o,c){var f,s,u,l,h,d,p,v,g,b,y,m,_=fq.bitArray;for(g=a.length,b=_.bitLength(a),y=_.bitLength(i),m=_.bitLength(o),f=n.encrypt([0,0,0,0]),96===m?(s=o.slice(0),s=_.concat(s,[1])):(s=fq.mode.gcm._ghash(f,[0,0,0,0],o),s=fq.mode.gcm._ghash(f,s,[0,0,Math.floor(m/4294967296),4294967295&m])),u=fq.mode.gcm._ghash(f,[0,0,0,0],i),d=s.slice(0),p=u.slice(0),r||(p=fq.mode.gcm._ghash(f,u,a)),h=0;h<g;h+=4)d[3]++,l=n.encrypt(d),a[h]^=l[0],a[h+1]^=l[1],a[h+2]^=l[2],a[h+3]^=l[3];return a=_.clamp(a,b),r&&(p=fq.mode.gcm._ghash(f,u,a)),v=[Math.floor(y/4294967296),4294967295&y,Math.floor(b/4294967296),4294967295&b],p=fq.mode.gcm._ghash(f,p,v),l=n.encrypt(s),p[0]^=l[0],p[1]^=l[1],p[2]^=l[2],p[3]^=l[3],{tag:_.bitSlice(p,0,c),data:a}}};var f8,f1={webCryptoDecrypt:fX,decrypt:(f8=eG(eq().mark(function r(n,a){var i,o;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if("string"==typeof a&&(a=JSON.parse(a)),!a.enableSoftwareAES&&null!==(i=crypto)&&void 0!==i&&i.subtle){r.next=7;break}return r.next=4,f$(n,a);case 4:case 10:o=r.sent,r.next=18;break;case 7:return r.prev=7,r.next=10,fX(n,a);case 13:return r.prev=13,r.t0=r.catch(7),r.next=17,f$(n,a);case 17:o=r.sent;case 18:return r.abrupt("return",o);case 19:case"end":return r.stop()}},r,null,[[7,13]])})),function(r,n){return f8.apply(this,arguments)})};function f2(r,n,a){function i(r,n){var a=parseInt(r.slice(n,n+2),16);return a>>>7==0?[1,a]:a>>>6==2?[2,a=((63&a)<<8)+parseInt(r.slice(n+2,n+4),16)]:[3,a=((63&a)<<16)+parseInt(r.slice(n+2,n+6),16)]}var o,c=0,f=[],s=[];for(o=0;o<4;++o)c+=(3&parseInt(r.slice(8+2*o,10+2*o),16))<<2*o;var u=parseInt(r.slice(16,24),16),l=2*parseInt(r.slice(32,40),16);for(o=40;o<l+40;o+=2)f.push(parseInt(r.slice(o,o+2),16));var h=l+40,d=parseInt(r.slice(h,h+4),16);for(h+=4,o=0;o<d;++o){var p=i(r,h);h+=2*p[0];for(var v="",g=0;g<p[1];++g){var b=i(r,h);v+=String.fromCharCode(c^b[1]),h+=2*b[0]}s.push(v)}return n.p=null,function r(n,a,i,o,c){var u,l,h,d,p,v=-1,g=[],b=null,y=[a];for(l=Math.min(a.length,i),h=0;h<l;++h)y.push(a[h]);y.p=o;for(var m=[];;)try{switch(f[n++]){case 53:g[++v]=!0;break;case 4:g[++v]=!1;break;case 27:g[++v]=null;break;case 2:u=f[n++],g[++v]=u<<24>>24;break;case 23:u=((u=((u=f[n++])<<8)+f[n++])<<8)+f[n++],g[++v]=(u<<8)+f[n++];break;case 15:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=s[u];break;case 13:g[++v]=void 0;break;case 7:g[++v]=c;break;case 14:u=(f[n]<<8)+f[n+1],n+=2,v=v-u+1,l=g.slice(v,v+u),g[v]=l;break;case 67:g[++v]={};break;case 73:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],g[v][l]=h;break;case 31:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;g[++v]=d[h];break;case 58:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],g[v]=g[v][l];break;case 68:l=g[v--],g[v]=g[v][l];break;case 24:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;d[h]=g[v--];break;case 12:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],d=g[v--],h[l]=d;break;case 3:l=g[v--],h=g[v--],d=g[v--],h[l]=d;break;case 46:for(l=f[n++],h=f[n++],d=y,d=y;l>0;--l)d=d.p;g[++v]=d,g[++v]=h;break;case 35:l=g[v--],g[v]+=l;break;case 41:g[v]=-g[v];break;case 62:l=g[v--],g[v]=g[v]===l;break;case 0:l=g[v--],g[v]=g[v]!==l;break;case 21:l=g[v--],g[v]=g[v]>l;break;case 54:g[v]=!g[v];break;case 28:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?--v:n+=u;break;case 22:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,g[v]?n+=u:--v;break;case 26:l=g[v--],(h=g[v--])[l]=g[v];break;case 63:g[v]=void 0;break;case 37:g[v]=typeof g[v];break;case 5:u=f[n++],l=g[v--],(h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)})._v=[l,u,y],h._u=r,g[++v]=h;break;case 75:u=f[n++],l=g[v--],(d=[h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)}]).p=y,h._v=[l,u,d],h._u=r,g[++v]=h;break;case 18:throw l=g[v--];case 43:for(l=g[v--],h=null;d=m.pop();)if(2===d[0]||3===d[0]){h=d;break}if(h)n=h[2],h[0]=0,m.push(h);else{if(!b)return l;n=b[1],c=b[2],y=b[3],m=b[4],g[++v]=l,b=b[0]}break;case 8:v-=u=f[n++],h=g.slice(v+1,v+u+1),l=g[v--],d=g[v--],l._u===r?(l=l._v,b=[b,n,c,y,m],n=l[0],null==d&&(d=function(){return this}()),c=d,(y=[h].concat(h)).length=Math.min(l[1],u)+1,y.p=l[2],m=[]):(p=l.apply(d,h),g[++v]=p);break;case 30:for(u=f[n++],d=[void 0],p=u;p>0;--p)d[p]=g[v--];h=g[v--],p=new(l=Function.bind.apply(h,d)),g[++v]=p;break;case 66:n+=2+(u=(u=(f[n]<<8)+f[n+1])<<16>>16);break;case 1:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,(l=g[v--])||(n+=u);break;case 57:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,l=g[v--],g[v]===l&&(--v,n+=u);break;case 72:--v;break;case 47:l=g[v],g[++v]=l;break;default:throw Error("ioe")}}catch(r){for(;(u=m.pop())&&!u[0];);if(!u){t:for(;b;){for(l=b[4];u=l.pop();)if(u[0])break t;b=b[0]}if(!b)throw r;n=b[1],c=b[2],y=b[3],m=b[4],b=b[0]}1===(l=u[0])?(n=u[2],u[0]=0,m.push(u),g[++v]=r):2===l?(n=u[2],u[0]=0,m.push(u)):(n=u[3],u[0]=2,m.push(u),g[++v]=r)}}(u,[],0,n,a)}r.TRANSFORM_IV=void 0,r.transformUnionKey=void 0,function(r,n,a){function i(r,n){var a=parseInt(r.slice(n,n+2),16);return a>>>7==0?[1,a]:a>>>6==2?[2,a=((63&a)<<8)+parseInt(r.slice(n+2,n+4),16)]:[3,a=((63&a)<<16)+parseInt(r.slice(n+2,n+6),16)]}var o,c=0,f=[],s=[];for(o=0;o<4;++o)c+=(3&parseInt(r.slice(8+2*o,10+2*o),16))<<2*o;var u=parseInt(r.slice(16,24),16),l=2*parseInt(r.slice(32,40),16);for(o=40;o<l+40;o+=2)f.push(parseInt(r.slice(o,o+2),16));var h=l+40,d=parseInt(r.slice(h,h+4),16);for(h+=4,o=0;o<d;++o){var p=i(r,h);h+=2*p[0];for(var v="",g=0;g<p[1];++g){var b=i(r,h);v+=String.fromCharCode(c^b[1]),h+=2*b[0]}s.push(v)}n.p=null,function r(n,a,i,o,c){var u,l,h,d,p,v=-1,g=[],b=null,y=[a];for(l=Math.min(a.length,i),h=0;h<l;++h)y.push(a[h]);y.p=o;for(var m=[];;)try{switch(f[n++]){case 27:g[++v]=null;break;case 2:u=f[n++],g[++v]=u<<24>>24;break;case 45:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=u<<16>>16;break;case 23:u=((u=((u=f[n++])<<8)+f[n++])<<8)+f[n++],g[++v]=(u<<8)+f[n++];break;case 15:u=(f[n]<<8)+f[n+1],n+=2,g[++v]=s[u];break;case 13:g[++v]=void 0;break;case 7:g[++v]=c;break;case 14:u=(f[n]<<8)+f[n+1],n+=2,v=v-u+1,l=g.slice(v,v+u),g[v]=l;break;case 67:g[++v]={};break;case 73:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],g[v][l]=h;break;case 31:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;g[++v]=d[h];break;case 58:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],g[v]=g[v][l];break;case 24:for(l=f[n++],h=f[n++],d=y;l>0;--l)d=d.p;d[h]=g[v--];break;case 12:u=(f[n]<<8)+f[n+1],n+=2,l=s[u],h=g[v--],d=g[v--],h[l]=d;break;case 26:l=g[v--],(h=g[v--])[l]=g[v];break;case 5:u=f[n++],l=g[v--],(h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)})._v=[l,u,y],h._u=r,g[++v]=h;break;case 75:u=f[n++],l=g[v--],(d=[h=function r(){var n=r._v;return(0,r._u)(n[0],arguments,n[1],n[2],this)}]).p=y,h._v=[l,u,d],h._u=r,g[++v]=h;break;case 43:for(l=g[v--],h=null;d=m.pop();)if(2===d[0]||3===d[0]){h=d;break}if(h)n=h[2],h[0]=0,m.push(h);else{if(!b)return l;n=b[1],c=b[2],y=b[3],m=b[4],g[++v]=l,b=b[0]}break;case 8:v-=u=f[n++],h=g.slice(v+1,v+u+1),l=g[v--],d=g[v--],l._u===r?(l=l._v,b=[b,n,c,y,m],n=l[0],null==d&&(d=function(){return this}()),c=d,(y=[h].concat(h)).length=Math.min(l[1],u)+1,y.p=l[2],m=[]):(p=l.apply(d,h),g[++v]=p);break;case 30:for(u=f[n++],d=[void 0],p=u;p>0;--p)d[p]=g[v--];h=g[v--],p=new(l=Function.bind.apply(h,d)),g[++v]=p;break;case 66:n+=2+(u=(u=(f[n]<<8)+f[n+1])<<16>>16);break;case 1:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,(l=g[v--])||(n+=u);break;case 57:u=(u=(f[n]<<8)+f[n+1])<<16>>16,n+=2,l=g[v--],g[v]===l&&(--v,n+=u);break;case 72:--v;break;case 47:l=g[v],g[++v]=l;break;default:throw Error("ioe")}}catch(r){for(;(u=m.pop())&&!u[0];);if(!u){t:for(;b;){for(l=b[4];u=l.pop();)if(u[0])break t;b=b[0]}if(!b)throw r;n=b[1],c=b[2],y=b[3],m=b[4],b=b[0]}1===(l=u[0])?(n=u[2],u[0]=0,m.push(u),g[++v]=r):2===l?(n=u[2],u[0]=0,m.push(u)):(n=u[3],u[0]=2,m.push(u),g[++v]=r)}}(u,[],0,n,a)}("504B01012c284a3f000000d93f49292f0000011a1f01012f3a0001071f000008022b1b1f02011b1f020208002f3a000217000000384b02080108011801011f01012f3a0001071f000008022b1b1f040208002f3a0003170000004f4b011f010008022b02010100831f00013a00041f00010f00051a02003900140203390046020539005a0f00063900544842005a1f06042f3a00071f0202080118020302031f00010c00041f06032f3a00081f0203431f02014900091f060549000a2d008049000b08022b1f00013a000c1802041f00012f3a000d0f000e1f020408022b1f00012f3a000f08002b42ff780d2b17000000000502180106170000000e05001800011f0100025b02680245024b2d009c2d00ab2d00ee02472d00ca02042d00f402050e000c1e013a00001801050d2b00100680828095808680868085809205808180908090808c809904808d80818092808b04809780928081809004808e808580988094048090809280858096038085808e808404808880818093808807808480858083809280998090809404808480818094808102808980960980948081808780ac8085808e8087809480880480938085808e8094068081808280928095809080940680928085809480958092808e0480938094808f8090",{0:Uint8Array,get 1(){return eG},get 2(){return eq},get 3(){return f1},get 4(){return fV},get 5(){return r.TRANSFORM_IV},set 5(t){r.TRANSFORM_IV=t},get 6(){return r.transformUnionKey},set 6(t){r.transformUnionKey=t}},void 0);var f3="volcvui",f9=new Map,f4=new Map,f5=void 0,f6=function(){var n,a;function i(n){var a;return eW(this,i),(a=eV(this,i)).EMEError=function(n){a.emit(r.EVENT_EME.ERROR,n)},a.encryptHandle=function(){var n;null===(n=a.eme)||void 0===n||n.emit(r.EVENT_EME.ENCRYPTED)},a.config=f6.defaultConfig,a.updateConfig(n),a.config.isEncrypt=!!(a.config.kid||a.config.drm||a.config.secretKey||a.config.drmKeyToken||a.config.keyValue),a.on(r.EVENT_EME.ENCRYPTED,a.encryptHandle),a}return eJ(i,oN),ez(i,[{key:"destroy",value:function(){this.removeAllListeners(),this.eme&&(this.eme.destroy(),this.eme=null)}},{key:"log",value:function(r){for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];cH.apply(void 0,[r].concat(a))}},{key:"setupEME",value:function(r){this.eme&&this.eme.setupEME(r)}},{key:"updateConfig",value:function(r){var n=this;Object.keys(r).map(function(a){void 0!==r[a]&&null!==r[a]&&(n.config[a]=r[a])}),this.log("set config",JSON.stringify(this.config))}},{key:"setOptions",value:function(r){this.eme&&this.eme.setOptions(r)}},{key:"getSecretKeyByToken",value:function(r,n,a){var i=this,o=this.config,c=r||o.kid,f=n||o.playDomain||"";0>f.indexOf("//")&&(f="//".concat(f));var s=a||o.drmKeyToken||"",u=fr.isBase64(s)?window.atob(s):s,l="".concat(f,"?").concat(u,"&PlayAuthIds=").concat(c,"&ssl=true");0>u.indexOf("DrmType=")&&(l+="&DrmType=".concat(o.useUnionInfoDRM?"webdevice":"22")),this.log("getSecretKeyByToken start, vid,",o.vid,l);var h=Promise.withResolvers(),d=h.promise,p=h.resolve,v=h.reject;return cB({type:"json",method:"GET",url:l}).then(function(r){var n,a,c=r.response;if("string"==typeof c&&(c=JSON.parse(c)),c&&null!==(n=c)&&void 0!==n&&n.Result&&(null===(a=c.Result.PlayAuthInfoList)||void 0===a?void 0:a.length)>0){var f=c.Result.PlayAuthInfoList[0].PlayAuthContent;i.log("getSecretKeyByToken end, vid,",o.vid,",res,",JSON.stringify(c)),p(f)}else v(Error("getSecretKeyByToken end, vid, ".concat(o.vid,", response null")))}).catch(function(r){v(r)}),d}},{key:"getLicense",value:function n(){return f2("504B01012c284a3f0000031e3f49292f000003a11b1f030308002f3a000b17000000224b011f01001b020502200e00020e000108042b02010102f51f00013a000c1f00010f000d1a02003900460203390067020a390106020b39010a02133901e102163901f002173901f402193901fa021a3901fb02203902560225390288022739028e022939029a0f000e3902944842029a430f000f4900100449001118020102031f00010c000c1f04012f3a00121f02011f040a08022b1f04013a00002e02021a481f02023a00132e02031a481f02023a00142e02041a481f04041600031f02031600031f02041600091f04013a00003a00153601000b02271f00010c000c42022902051f00010c000d1f04013a00003a00151600031f02041802071f02031600091f04041c00031f04053601000b020b1f00010c000c4201f1020a1f00010c000c1b1f05041f04031f02031f04041f04051f04061f050508062b1f00013a00161802071f04041c00091f02072e02051a1b001c00071f020502003f001c00061f02053a001701000d1f02073a00171f0404444200031f02071802081f04013a00002e020a1a481f020a3a00182e020b1a481f020a3a00192e020c1a481f04012f3a001a080018020d1f0208361c000d1f04013a00003a00142e02081a481f020b1c00031f020d1c00181f05062f3a001b1f020d3a001c1f020d3a001d1f020c08033601000b02191f00010c000c42011a1f0507250f001e3e3601000b02161f00010c000c42010302131f00010c000c1b1f05071f02081f020d3a001d08022b1f00013a001618020902171f00010c000c4200d71f05080f001f1e0112021a1f00010c000c4200c31f02081802091f04041c00091f02072e02061a1b001c00071f020602003f001c00061f02063a00170100161f02091f02073a00171f0404031f02071f02010c00151f02091f02010c0014351f02010c00111b1f04091f020108014802251f00010c000c42005d02201f00010c000d1f00012f0f002044020508011f00010c0021041f02010c00111f00013a00211f02010c00221b1f040a1f020108014802291f00010c000c42001b351f02010c00111b1f04091f02010801481f00012f3a002308002b42fd060d2b07180001073a00001800021f00023a00011800031f00023a00021800041f00023a00031800051f00023a00041800061f01012f3a000508001800071f00073a00061800081f00073a00071800091f00073a000818000a1f01012f3a000708002f3a00091b1f01021b1f010308002f3a000a17000000004b00080108010801481f00082b0024068083808f808e8086808980870380968089808403808b808980840d80878085809480ac808980838085808e8093808580b58092808c0780848092808d80b48099809080850d809780898094808880b280858093808f808c80968085809280930780908092808f808d80898093808507809280858093808f808c809680850680928085808a80858083809404809480888085808e04808d80818092808b04809780928081809004808e808580988094048090809280858096038085808e80840a80878085809480ac808980838085808e8093808506808d808580948088808f80840780938095808380838085809380931780bf80948092809980a78085809480b38085808380928085809480ab8085809980a2809980b4808f808b8085808e0980938085808380928085809480ab8085809908808b8085809980b68081808c809580850380848092808d0480938085808e8094098083808c80858081809280ab8085809980930f80958093808580b5808e8089808f808e80a9808e8086808f80a480b280ad17808b8085809980b4808f808b8085808e80a580988090808980928085808480a480958092808180948089808f808e0d80bf80878085809480b5808e8089808f808e80a9808e8086808f158083808880858083808b80b5808e8089808f808e80a9808e8086808f80a5809880908089809280858084078095808e8089808f808e80a980a4098095808e8089808f808e80a9808e8086808f0880868095808e808380948089808f808e4980b48088808580c080c2809480928081808e80938086808f8092808d80b5808e8089808f808e80ab8085809980c280c080938088808f8095808c808480c08082808580c080908092808f8096808980848085808480c08089808e80c08083808f808e80868089808780958092808180948089808f808e80c08081809380c0808180c080868095808e808380948089808f808e058083808180948083808802809480d005808580928092808f80920480938094808f8090",{get 0(){return n},1:Promise,get 2(){return eG},get 3(){return eq},get 4(){return cW},get 5(){return f5},get 6(){return fr},get 7(){return void 0!==r.transformUnionKey?r.transformUnionKey:void 0},8:Error,9:arguments},this)}},{key:"_tryGetSecretKeyByToken",value:(a=eG(eq().mark(function r(n,a){var i,o,c,f;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=(i=this.config).kid,c=i.drmKeyToken,f=i.playDomain,!(o&&c&&f)){r.next=14;break}return r.prev=2,r.next=5,this.getSecretKeyByToken(o,f,c);case 5:this.config.secretKey=r.sent,n.success=!0,r.next=14;break;case 9:r.prev=9,r.t0=r.catch(2),n.success=!1,n.error=r.t0,a(n);case 14:case"end":return r.stop()}},r,this,[[2,9]])})),function(r,n){return a.apply(this,arguments)})},{key:"updateKid",value:function r(n){return f2("504B01012c284a3f000000003f49292f00000017073a00001c000d073a00002f3a00011f01020801480d2b0002038085808d80850980958090808480818094808580ab80898084",{get 0(){return r},1:arguments,2:n},this)}},{key:"getLicenseSecret",value:function n(){return f2("504B01012c284a3f0000032c3f49292f0000048a1f01012f3a000c1f02023a000b1f00010802480d2b1f01012f3a000c1f02023a000d1f00010802480d2b1b1f030708002f3a001e170000004c4b011f01001b0201021e0e00020e000108042b02010102d91f00013a001f1f00010f00201a0200390041020439006a0206390091020b3900e8020c3900ec020f390115021039011902173901d102183901d502193901ee021e39025102233902830f002139027d48420283430f00224900230449002418020102011f00010c002002041f00010c001f1f04012f3a00251f02011f040f08022b1f02013a0024361c00061f02013a00263601000b02061f00010c001f4202361f00012f3a00270f002808012b1f04013a00003a00291802021f0202361c00041f0407363601000b020c1f00010c001f4202031f04041c00031f04053601000b020c1f00010c001f4201eb020b1f00010c001f1b1f05081f04031600030f002a1f04041f040508032b1f00013a002b1802021f04081f05093a002c3e3601000b02101f00010c001f4201ab020f1f00010c001f1b1f050a1f02021f050b08022b1f00013a002b1802021f04060100271f04070100091f04071802024200181f02020100121b1f050c1b1f050d1f0202080108011802021f04013a00002e02031a481f02033a002d2e02041a481f02033a002e2e02051a481f04012f3a002f08001802061f02041c00031f02061c00181f050e2f3a00301f02063a00311f02063a00321f020508033601000b02191f00010c001f4201001f04061c00031f02023601000b02181f00010c001f4200e802171f00010c001f1b1f050f1f02021f02063a003208022b1f00013a002b1802021f050e2f3a00331f05102f3a00341f02063a0032080108011f02010c00351f040601003d43434900361802071f04041600031f05111802081f02021f02073a00361f0208031f04013a00072f3a00171f020708014802003f1f02010c00294200091f02021f02010c0029351f02010c00241b1f040e1f020108014802231f00010c001f420041021e1f00010c00201f00012f0f003744020108011f00010c0038041f02010c00241f00013a00381f02010c00261b1f040f1f02010801481f00012f3a003908002b42fd220d2b07180001073a00001800021f00023a00011800031f00023a00021800041f00023a00031800051f00023a00041800061f00023a00051800071f00023a0006180008073a00003a00040100bf1f01011e00070c0007073a00072f3a00081f01023a0009073a000a080248073a00072f3a00081f01023a000b17000000000501080248073a00072f3a00081f01023a000d17000000150501080248073a00003a000e1800091f00041c00031f000901005b1f01033a000f3a00102f3a001108002f3a00120f00130801020129150100060f00144200030f001518000a1b1f0104431f000a431f00091f000423490016080318000b073a00072f3a00171f000b0801481f01052f3a001808002b1f01052f3a0019080018000c1f000c3a001a18000d1f000c3a001818000e1f000c3a001b18000f1f01052f3a001808002f3a001c1b1f01061b1f010708002f3a001d170000002a4b00080108010801481f000d2b003a068083808f808e8086808980870380968089808403808b808980840d80878085809480ac808980838085808e8093808580b58092808c0680958093808580a580ad80a508808b8085809980b68081808c809580850780848092808d80b4809980908085038085808d808502808f808e0580a580b280b280af80b20880a580ad80a580a580928092808f80921380a380a480ad80bf80ac80a980a380a580ae80b380a580bf80b380b580a380a380a580b380b3048085808d808980941180a380a480ad80bf80ac80a980a380a580ae80b380a580bf80a580b280b280af80b2138089808e8094808580928094809280958093809480b38085809280968085809280b580b280ac09808e808180968089808780818094808f809209809580938085809280a180878085808e8094118094808f80ac808f80838081808c808580ac808f80978085809280a3808180938085078089808e80848085809880af808606808380888092808f808d808508809780898084808580968089808e8085098090808c80818099809280858081808480990980938085809280968085809280b580b280ac0980958090808480818094808580a48092808d07809280858093808f808c809680850d809780898094808880b280858093808f808c80968085809280930780908092808f808d8089809380850680928085808a80858083809404809480888085808e04808d80818092808b04809780928081809004808e808580988094048090809280858096038085808e80840a80878085809480ac808980838085808e8093808506808d808580948088808f80840780938095808380838085809380931780bf80948092809980a78085809480b38085808380928085809480ab8085809980a2809980b4808f808b8085808e05808580928092808f8092068081808280928095809080940680928085809480958092808e0980938085808380928085809480ab80858099000480938085808e80941780b080b280a980b680a180b480a580bf80a580ae80a380b280b980b080b480bf80b580b080a780b280a180a480a50f80958093808580b5808e8089808f808e80a9808e8086808f80a480b280ad17808b8085809980b4808f808b8085808e80a580988090808980928085808480a480958092808180948089808f808e0d80bf80878085809480b5808e8089808f808e80a9808e8086808f158083808880858083808b80b5808e8089808f808e80a9808e8086808f80a5809880908089809280858084078095808e8089808f808e80a980a4098095808e8089808f808e80a9808e8086808f1380b3809480928089808e808780b4808f80a1809280928081809980a2809580868086808580920480888081809380880a808480858083809280998090809480ab80858099098083808c80858081809280ab808580998093058083808180948083808802809480d00480938094808f8090",{get 0(){return n},get 1(){return fi},get 2(){return r.EVENT_EME},get 3(){return window},get 4(){return eH},5:Promise,get 6(){return eG},get 7(){return eq},get 8(){return cV},get 9(){return cU},get 10(){return cK},get 11(){return f5},get 12(){return cN},get 13(){return atob},get 14(){return fr},get 15(){return r.transformUnionKey},get 16(){return fV},get 17(){return c6},18:arguments},this)}},{key:"getSecretKey",value:function(){var r=this.config,n=r.vid,a=r.kid,i=r.getLicenseUrl,o=r.drmKeyToken,c=r.playDomain,f=r.secretKey;return i&&a?cV(n||"",a,i):o&&a&&c?this.getSecretKeyByToken(a,c,o):f||null}},{key:"getKeyValue",value:function r(){return f2("504B01012c284a3f000000003f49292f0000004d073a00001800011f00013a00011800021f00013a00021800031f00013a00031800041f00013a00041800051f00013a00051800061b1f01011f00021f00051f00031f00041f00061f010208062b0006068083808f808e8086808980870380968089808403808b808980840d80878085809480ac808980838085808e8093808580b58092808c0980938085808380928085809480ab808580990780848092808d80b4809980908085",{get 0(){return r},get 1(){return cW},get 2(){return f5},3:arguments},this)}},{key:"_getUnionInfo",value:function(){var r=this.config,n=r.drmType,a=r.sessionId;if(!r.useUnionInfoDRM||!a)return null;var i=n===cU.PRIVATE_ENCRYPT_UPGRADE?f4:f9;if(!i.get(a))throw Error('The "sessionId" '.concat(a," for unionInfo is not valid"));return i.get(a)}}],[{key:"pluginName",get:function(){return"XGSecretKey"}},{key:"defaultConfig",get:function(){return{keyValue:void 0,kid:void 0,getLicenseUrl:"",secretKey:void 0,drm:void 0,drmType:void 0,vid:"",useUnionInfoDRM:!1,transformUnionKey:void 0,drmKeyToken:void 0,keyTokenExpiredDuration:void 0,playDomain:void 0,sessionId:f3,useEME:!0,intertrustServerURL:void 0}}},{key:"updateUnionInfo",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f3,a=fr.getUnionInfo(r);return f9.set(n,{unionID:r,unionInfo:a}),a}},{key:"generateEncryptInfo",value:(n=eG(eq().mark(function r(){var n,a,i,o,c,f,s=arguments;return eq().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=s.length>0&&void 0!==s[0]?s[0]:"",a=s.length>1&&void 0!==s[1]?s[1]:f3,r.next=4,function(){return fY.apply(this,arguments)}();case 4:return o=(i=r.sent).drmKeK,c=i.keyPair,f=fr.getUnionInfo(n),f4.set(a,{unionID:n,unionInfo:f}),f5=c,r.abrupt("return",{sessionId:a,unionInfo:f,drmKeK:o});case 11:case"end":return r.stop()}},r)})),function(){return n.apply(this,arguments)})}])}();f6.isWebAssemblySupported=cz,r.XGSecretKey=f6,r.aes4js=f1,r.openBox=cN,r.util=fr}(n)},265256:function(r,n,a){"use strict";a.d(n,{g:function(){return o}});var i=a(737178),o={bufferThreshold:10,defaultFormat:"dash",useEME:null,getLicenseUrl:"",intertrustServerURL:null,defaultDefinition:null,useGapJump:!0,useDurationBackoff:!1,preloadTime:void 0,maxBufferLength:void 0,minBufferLength:10,dynamicPreloadTimeOpts:null,preloadCancelTime:5,progressTimer:1e3,tickInSeconds:void 0,disableCanplayCheck:!0,canplayTimeout:2e3,disableBufferBreakCheck:!0,waitingTimeOut:2e4,definitionText:null,useUnionInfoDRM:!1,keyTokenExpiredDuration:null,keyToken:null,playDomain:null,usePlaySpade:!1,preloadBufferThreshold:.5,vtype:a(373974).l0.DASH,useProgressiveAppend:!1,useProgressiveAppendAll:!1,loader:i.d,logMaxSize:204800,timeout:5e3,reqOptions:{},timerInWorker:!1,resumePlayWaterLevel:0,waitingInBufferTimeOut:5e3,waitJampBufferMaxCnt:3,removeBufferLen:60,removeBufferWhenSeekInBuffer:!0,replayReset:!0,resetStateUpdrade:!1,netNoRetryCode:[403,404],progressiveTimeout:1500,usePCDNProgressiveCheck:!1,useCDNProgressiveCheck:!1,useSeparationMode:!0,loadFirstGopData:!1,useGopCacheAcc:!1,mseOpenTimeout:-1,useInitTimeout:!1,initTimeout:1500,usePlayAbortRetry:!1,useStuckCheck:!1,useStuckWaitBuffer:!1,usePCDNOpt:!1,pcdnDelays:[0,1e3,3e3],useMSENotOpenDegrade:!1,mseNotOpenDegradeCount:2,useWaitingInBufferOptimize:!1}},129966:function(r,n,a){"use strict";function i(r){return"string"!=typeof r&&(r=String(r)),r}a.d(n,{Z:function(){return i}})},730210:function(r,n,a){"use strict";a.d(n,{$w:function(){return c},Ac:function(){return _},PA:function(){return f},Vx:function(){return y},XW:function(){return p},_x:function(){return l},l5:function(){return g},qH:function(){return u},x:function(){return o}});function i(r,n,a,i,o,c,f){try{var s=r[c](f),u=s.value}catch(r){return void a(r)}s.done?n(u):Promise.resolve(u).then(i,o)}function o(r){return function(){var n=this,a=arguments;return new Promise(function(o,c){var f=r.apply(n,a);function s(r){i(f,o,c,s,u,"next",r)}function u(r){i(f,o,c,s,u,"throw",r)}s(void 0)})}}function c(r,n,a){return n=d(n),function(r,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}(r,v()?Reflect.construct(n,a||[],d(r).constructor):n.apply(r,a))}function f(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function s(r,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,m(i.key),i)}}function u(r,n,a){return n&&s(r.prototype,n),a&&s(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r}function l(r,n,a){return(n=m(n))in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function h(){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(r,n,a){var i=function(r,n){for(;!({}).hasOwnProperty.call(r,n)&&null!==(r=d(r)););return r}(r,n);if(i){var o=Object.getOwnPropertyDescriptor(i,n);return o.get?o.get.call(arguments.length<3?r:a):o.value}}).apply(null,arguments)}function d(r){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function p(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&b(r,n)}function v(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(r){}return(v=function(){return!!r})()}function g(){g=function(){return n};var r,n={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(r,n,a){r[n]=a.value},c="function"==typeof Symbol?Symbol:{},f=c.iterator||"@@iterator",s=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function l(r,n,a){return Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}),r[n]}try{l({},"")}catch(r){l=function(r,n,a){return r[n]=a}}function h(n,a,i,c){var f=Object.create((a&&a.prototype instanceof m?a:m).prototype);return o(f,"_invoke",{value:function(n,a,i){var o=p;return function(c,f){if(o===v)throw Error("Generator is already running");if(o===b){if("throw"===c)throw f;return{value:r,done:!0}}for(i.method=c,i.arg=f;;){var s=i.delegate;if(s){var u=function n(a,i){var o=i.method,c=a.iterator[o];if(c===r)return i.delegate=null,"throw"===o&&a.iterator.return&&(i.method="return",i.arg=r,n(a,i),"throw"===i.method)||"return"!==o&&(i.method="throw",i.arg=TypeError("The iterator does not provide a '"+o+"' method")),y;var f=d(c,a.iterator,i.arg);if("throw"===f.type)return i.method="throw",i.arg=f.arg,i.delegate=null,y;var s=f.arg;return s?s.done?(i[a.resultName]=s.value,i.next=a.nextLoc,"return"!==i.method&&(i.method="next",i.arg=r),i.delegate=null,y):s:(i.method="throw",i.arg=TypeError("iterator result is not an object"),i.delegate=null,y)}(s,i);if(u){if(u===y)continue;return u}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===p)throw o=b,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=v;var l=d(n,a,i);if("normal"===l.type){if(o=i.done?b:"suspendedYield",l.arg===y)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=b,i.method="throw",i.arg=l.arg)}}}(n,i,new O(c||[]))}),f}function d(r,n,a){try{return{type:"normal",arg:r.call(n,a)}}catch(r){return{type:"throw",arg:r}}}n.wrap=h;var p="suspendedStart",v="executing",b="completed",y={};function m(){}function _(){}function x(){}var k={};l(k,f,function(){return this});var S=Object.getPrototypeOf,w=S&&S(S(A([])));w&&w!==a&&i.call(w,f)&&(k=w);var T=x.prototype=m.prototype=Object.create(k);function E(r){["next","throw","return"].forEach(function(n){l(r,n,function(r){return this._invoke(n,r)})})}function R(r,n){var a;o(this,"_invoke",{value:function(o,c){function f(){return new n(function(a,f){!function a(o,c,f,s){var u=d(r[o],r,c);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&i.call(h,"__await")?n.resolve(h.__await).then(function(r){a("next",r,f,s)},function(r){a("throw",r,f,s)}):n.resolve(h).then(function(r){l.value=r,f(l)},function(r){return a("throw",r,f,s)})}s(u.arg)}(o,c,a,f)})}return a=a?a.then(f,f):f()}})}function L(r){var n={tryLoc:r[0]};1 in r&&(n.catchLoc=r[1]),2 in r&&(n.finallyLoc=r[2],n.afterLoc=r[3]),this.tryEntries.push(n)}function I(r){var n=r.completion||{};n.type="normal",delete n.arg,r.completion=n}function O(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(L,this),this.reset(!0)}function A(n){if(n||""===n){var a=n[f];if(a)return a.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,c=function a(){for(;++o<n.length;)if(i.call(n,o))return a.value=n[o],a.done=!1,a;return a.value=r,a.done=!0,a};return c.next=c}}throw TypeError(typeof n+" is not iterable")}return _.prototype=x,o(T,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:_,configurable:!0}),_.displayName=l(x,u,"GeneratorFunction"),n.isGeneratorFunction=function(r){var n="function"==typeof r&&r.constructor;return!!n&&(n===_||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,x):(r.__proto__=x,l(r,u,"GeneratorFunction")),r.prototype=Object.create(T),r},n.awrap=function(r){return{__await:r}},E(R.prototype),l(R.prototype,s,function(){return this}),n.AsyncIterator=R,n.async=function(r,a,i,o,c){void 0===c&&(c=Promise);var f=new R(h(r,a,i,o),c);return n.isGeneratorFunction(a)?f:f.next().then(function(r){return r.done?r.value:f.next()})},E(T),l(T,u,"Generator"),l(T,f,function(){return this}),l(T,"toString",function(){return"[object Generator]"}),n.keys=function(r){var n=Object(r),a=[];for(var i in n)a.push(i);return a.reverse(),function r(){for(;a.length;){var i=a.pop();if(i in n)return r.value=i,r.done=!1,r}return r.done=!0,r}},n.values=A,O.prototype={constructor:O,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(I),!n)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=r)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var a=this;function o(i,o){return s.type="throw",s.arg=n,a.next=i,o&&(a.method="next",a.arg=r),!!o}for(var c=this.tryEntries.length-1;c>=0;--c){var f=this.tryEntries[c],s=f.completion;if("root"===f.tryLoc)return o("end");if(f.tryLoc<=this.prev){var u=i.call(f,"catchLoc"),l=i.call(f,"finallyLoc");if(u&&l){if(this.prev<f.catchLoc)return o(f.catchLoc,!0);if(this.prev<f.finallyLoc)return o(f.finallyLoc)}else if(u){if(this.prev<f.catchLoc)return o(f.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<f.finallyLoc)return o(f.finallyLoc)}}}},abrupt:function(r,n){for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===r||"continue"===r)&&c.tryLoc<=n&&n<=c.finallyLoc&&(c=null);var f=c?c.completion:{};return f.type=r,f.arg=n,c?(this.method="next",this.next=c.finallyLoc,y):this.complete(f)},complete:function(r,n){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&n&&(this.next=n),y},finish:function(r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.finallyLoc===r)return this.complete(a.completion,a.afterLoc),I(a),y}},catch:function(r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc===r){var i=a.completion;if("throw"===i.type){var o=i.arg;I(a)}return o}}throw Error("illegal catch attempt")},delegateYield:function(n,a,i){return this.delegate={iterator:A(n),resultName:a,nextLoc:i},"next"===this.method&&(this.arg=r),y}},n}function b(r,n){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}function y(r,n,a,i){var o=h(d(1&i?r.prototype:r),n,a);return 2&i&&"function"==typeof o?function(r){return o.apply(a,r)}:o}function m(r){var n=function(r,n){if("object"!=typeof r||!r)return r;var a=r[Symbol.toPrimitive];if(void 0!==a){var i=a.call(r,n||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(r)}(r,"string");return"symbol"==typeof n?n:n+""}function _(r){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}},75740:function(r,n,a){"use strict";a.d(n,{Ye:function(){return u},_R:function(){return d},kW:function(){return h},l0:function(){return s},l1:function(){return p},sm:function(){return v},u7:function(){return l}});var i,o,c,f=a(730210);var s=((i=s||{}).MP4="MP4",i.MP4_MSE_SOFT="MP4_MSE_SOFT",i.MP4_MSE="MP4_MSE",i.MP4_0="MP4_0",i.MP4_1="MP4_1",i.MP4_2="MP4_2",i.DASH="DASH",i.HLS="HLS",i);var u=((o=u||{})[o.Normal=0]="Normal",o[o.Ad=1]="Ad",o);var l=((c=l||{})[c.AVC=0]="AVC",c[c.HEVC=1]="HEVC",c[c.VVC=2]="VVC",c.H264="h264",c.H265="h265",c.H266="h266",c),h="real_time_speed",d={CDN:"cdn",PCDN:"pcdn"},p={BEFEORE_START:0,NOT_SUPPORTED:1,START_INIT_DESTROY:2,NO_PRELOAD:3,CLOSE_DWNGRADE:4,INIT_PROMISE_CATCH:5,PLAYER_ERROR:6,HTTP_ERROR:7,MSE_ERROR:8,DESTROY:9},v=(0,f._x)((0,f._x)((0,f._x)((0,f._x)((0,f._x)((0,f._x)((0,f._x)((0,f._x)((0,f._x)((0,f._x)({},p.BEFEORE_START,"before start"),p.NOT_SUPPORTED,"codec not support"),p.START_INIT_DESTROY,"start init destroy"),p.NO_PRELOAD,"no preload"),p.CLOSE_DWNGRADE,"close downgrade"),p.INIT_PROMISE_CATCH,"init promise catch"),p.PLAYER_ERROR,"player error"),p.HTTP_ERROR,"http error"),p.MSE_ERROR,"mse error"),p.DESTROY,"destroy")},548814:function(r,n,a){"use strict";a.d(n,{Kd:function(){return b},Lc:function(){return y},PA:function(){return u},WY:function(){return m},XW:function(){return p},ZQ:function(){return _},Zj:function(){return o},_x:function(){return d},l5:function(){return c},qH:function(){return h},u:function(){return x},x:function(){return s}});function i(r,n){var a=Object.keys(r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),a.push.apply(a,i)}return a}function o(r){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?i(Object(a),!0).forEach(function(n){d(r,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(a,n))})}return r}function c(){c=function(){return r};var r={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(r,n,a){r[n]=a.value},o="function"==typeof Symbol?Symbol:{},f=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(r,n,a){return Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}),r[n]}try{l({},"")}catch(r){l=function(r,n,a){return r[n]=a}}function h(r,n,a,o){var c=Object.create((n&&n.prototype instanceof v?n:v).prototype);return i(c,"_invoke",{value:function(r,n,a){var i="suspendedStart";return function(o,c){if("executing"===i)throw Error("Generator is already running");if("completed"===i){if("throw"===o)throw c;return L()}for(a.method=o,a.arg=c;;){var f=a.delegate;if(f){var s=function r(n,a){var i=a.method,o=n.iterator[i];if(void 0===o)return a.delegate=null,"throw"===i&&n.iterator.return&&(a.method="return",a.arg=void 0,r(n,a),"throw"===a.method)||"return"!==i&&(a.method="throw",a.arg=TypeError("The iterator does not provide a '"+i+"' method")),p;var c=d(o,n.iterator,a.arg);if("throw"===c.type)return a.method="throw",a.arg=c.arg,a.delegate=null,p;var f=c.arg;return f?f.done?(a[n.resultName]=f.value,a.next=n.nextLoc,"return"!==a.method&&(a.method="next",a.arg=void 0),a.delegate=null,p):f:(a.method="throw",a.arg=TypeError("iterator result is not an object"),a.delegate=null,p)}(f,a);if(s){if(s===p)continue;return s}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===i)throw i="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i="executing";var u=d(r,n,a);if("normal"===u.type){if(i=a.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:a.done}}"throw"===u.type&&(i="completed",a.method="throw",a.arg=u.arg)}}}(r,a,new E(o||[]))}),c}function d(r,n,a){try{return{type:"normal",arg:r.call(n,a)}}catch(r){return{type:"throw",arg:r}}}r.wrap=h;var p={};function v(){}function g(){}function b(){}var y={};l(y,f,function(){return this});var m=Object.getPrototypeOf,_=m&&m(m(R([])));_&&_!==n&&a.call(_,f)&&(y=_);var x=b.prototype=v.prototype=Object.create(y);function k(r){["next","throw","return"].forEach(function(n){l(r,n,function(r){return this._invoke(n,r)})})}function S(r,n){var o;i(this,"_invoke",{value:function(i,c){function f(){return new n(function(o,f){!function i(o,c,f,s){var u=d(r[o],r,c);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&a.call(h,"__await")?n.resolve(h.__await).then(function(r){i("next",r,f,s)},function(r){i("throw",r,f,s)}):n.resolve(h).then(function(r){l.value=r,f(l)},function(r){return i("throw",r,f,s)})}s(u.arg)}(i,c,o,f)})}return o=o?o.then(f,f):f()}})}function w(r){var n={tryLoc:r[0]};1 in r&&(n.catchLoc=r[1]),2 in r&&(n.finallyLoc=r[2],n.afterLoc=r[3]),this.tryEntries.push(n)}function T(r){var n=r.completion||{};n.type="normal",delete n.arg,r.completion=n}function E(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(w,this),this.reset(!0)}function R(r){if(r){var n=r[f];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var i=-1,o=function n(){for(;++i<r.length;)if(a.call(r,i))return n.value=r[i],n.done=!1,n;return n.value=void 0,n.done=!0,n};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return g.prototype=b,i(x,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,u,"GeneratorFunction"),r.isGeneratorFunction=function(r){var n="function"==typeof r&&r.constructor;return!!n&&(n===g||"GeneratorFunction"===(n.displayName||n.name))},r.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,b):(r.__proto__=b,l(r,u,"GeneratorFunction")),r.prototype=Object.create(x),r},r.awrap=function(r){return{__await:r}},k(S.prototype),l(S.prototype,s,function(){return this}),r.AsyncIterator=S,r.async=function(n,a,i,o,c){void 0===c&&(c=Promise);var f=new S(h(n,a,i,o),c);return r.isGeneratorFunction(a)?f:f.next().then(function(r){return r.done?r.value:f.next()})},k(x),l(x,u,"Generator"),l(x,f,function(){return this}),l(x,"toString",function(){return"[object Generator]"}),r.keys=function(r){var n=Object(r),a=[];for(var i in n)a.push(i);return a.reverse(),function r(){for(;a.length;){var i=a.pop();if(i in n)return r.value=i,r.done=!1,r}return r.done=!0,r}},r.values=R,E.prototype={constructor:E,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!r)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var r=this.tryEntries[0].completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function i(a,i){return f.type="throw",f.arg=r,n.next=a,i&&(n.method="next",n.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var c=this.tryEntries[o],f=c.completion;if("root"===c.tryLoc)return i("end");if(c.tryLoc<=this.prev){var s=a.call(c,"catchLoc"),u=a.call(c,"finallyLoc");if(s&&u){if(this.prev<c.catchLoc)return i(c.catchLoc,!0);if(this.prev<c.finallyLoc)return i(c.finallyLoc)}else if(s){if(this.prev<c.catchLoc)return i(c.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<c.finallyLoc)return i(c.finallyLoc)}}}},abrupt:function(r,n){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var c=o;break}}c&&("break"===r||"continue"===r)&&c.tryLoc<=n&&n<=c.finallyLoc&&(c=null);var f=c?c.completion:{};return f.type=r,f.arg=n,c?(this.method="next",this.next=c.finallyLoc,p):this.complete(f)},complete:function(r,n){if("throw"===r.type)throw r.arg;return"break"===r.type||"continue"===r.type?this.next=r.arg:"return"===r.type?(this.rval=this.arg=r.arg,this.method="return",this.next="end"):"normal"===r.type&&n&&(this.next=n),p},finish:function(r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.finallyLoc===r)return this.complete(a.completion,a.afterLoc),T(a),p}},catch:function(r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc===r){var i=a.completion;if("throw"===i.type){var o=i.arg;T(a)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,n,a){return this.delegate={iterator:R(r),resultName:n,nextLoc:a},"next"===this.method&&(this.arg=void 0),p}},r}function f(r,n,a,i,o,c,f){try{var s=r[c](f),u=s.value}catch(r){a(r);return}s.done?n(u):Promise.resolve(u).then(i,o)}function s(r){return function(){var n=this,a=arguments;return new Promise(function(i,o){var c=r.apply(n,a);function s(r){f(c,i,o,s,u,"next",r)}function u(r){f(c,i,o,s,u,"throw",r)}s(void 0)})}}function u(r,n){if(!(r instanceof n))throw TypeError("Cannot call a class as a function")}function l(r,n){for(var a=0;a<n.length;a++){var i=n[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,w(i.key),i)}}function h(r,n,a){return n&&l(r.prototype,n),a&&l(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r}function d(r,n,a){return(n=w(n))in r?Object.defineProperty(r,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[n]=a,r}function p(r,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&g(r,n)}function v(r){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function g(r,n){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(r,n)}function b(r,n){if(null==r)return{};var a,i,o=function(r,n){if(null==r)return{};var a,i,o={},c=Object.keys(r);for(i=0;i<c.length;i++)a=c[i],!(n.indexOf(a)>=0)&&(o[a]=r[a]);return o}(r,n);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(r);for(i=0;i<c.length;i++){if(a=c[i],!(n.indexOf(a)>=0))Object.prototype.propertyIsEnumerable.call(r,a)&&(o[a]=r[a])}}return o}function y(r){if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function m(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(r){return!1}}();return function(){var a,i=v(r);return a=n?Reflect.construct(i,arguments,v(this).constructor):i.apply(this,arguments),function(r,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return y(r)}(this,a)}}function _(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,n){var a=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=a){var i,o,c,f,s=[],u=!0,l=!1;try{if(c=(a=a.call(r)).next,0===n){if(Object(a)!==a)return;u=!1}else for(;!(u=(i=c.call(a)).done)&&(s.push(i.value),s.length!==n);u=!0);}catch(r){l=!0,o=r}finally{try{if(!u&&null!=a.return&&(f=a.return(),Object(f)!==f))return}finally{if(l)throw o}}return s}}(r,n)||k(r,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(r){return function(r){if(Array.isArray(r))return S(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||k(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(r,n){if(r){if("string"==typeof r)return S(r,n);var a=Object.prototype.toString.call(r).slice(8,-1);if("Object"===a&&r.constructor&&(a=r.constructor.name),"Map"===a||"Set"===a)return Array.from(r);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return S(r,n)}}function S(r,n){(null==n||n>r.length)&&(n=r.length);for(var a=0,i=Array(n);a<n;a++)i[a]=r[a];return i}function w(r){var n=function(r,n){if("object"!=typeof r||null===r)return r;var a=r[Symbol.toPrimitive];if(void 0!==a){var i=a.call(r,n||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(r)}(r,"string");return"symbol"==typeof n?n:String(n)}},726085:function(r,n,a){"use strict";a.d(n,{d1:function(){return g}}),a(149336);var i=a(616376),o=a(272787),c=a(919209),f=a(315355),s=a(787070),u=a.n(s);a(124300),a(248385),a(591111),a(490629),a(656562),a(992871),a(663030),a(2885),a(679308),a(759943);var l=a(858417),h=a(791823),d=a(84303),p=a(484775),v=function(){try{return p.j?window.MediaSource:null}catch(r){}}(),g=function(){var r,n,a;function s(r){var n=this;(0,f.Z)(this,s),(0,o.Z)(this,"media",null),(0,o.Z)(this,"mediaSource",null),(0,o.Z)(this,"_openPromise",(0,l.Q)()),(0,o.Z)(this,"_queue",Object.create(null)),(0,o.Z)(this,"_sourceBuffer",Object.create(null)),(0,o.Z)(this,"_onSBUpdateEnd",function(r){var a=n._queue[r];if(a){var i=a.shift();i&&(i.promise.resolve(),n._startQueue(r))}}),(0,o.Z)(this,"_onSBUpdateError",function(r,a){var i=n._queue[r];if(i){var o=i[0];o&&o.promise.reject(new d.Fc(d.wb.MEDIA,d.wb.SUB_TYPES.MSE_APPEND_BUFFER,a))}}),r&&this.bindMedia(r)}return(0,c.Z)(s,[{key:"isOpened",get:function(){var r;return(null===(r=this.mediaSource)||void 0===r?void 0:r.readyState)==="open"}},{key:"duration",get:function(){var r;return(null===(r=this.mediaSource)||void 0===r?void 0:r.duration)||-1}},{key:"updateDuration",value:function(r){var n=this;return this._enqueueBlockingOp(function(){n.mediaSource&&(n.mediaSource.duration=r)})}},{key:"open",value:function(){var r=this;if(this._openPromise.used&&!this.isOpened&&this.mediaSource){var n=this.mediaSource;n.addEventListener("sourceopen",function a(){n.removeEventListener("sourceopen",a),r._openPromise.resolve()}),this._openPromise=(0,l.Q)()}return this._openPromise}},{key:"bindMedia",value:(r=(0,i.Z)(u().mark(function r(n){var a,i,o=this;return u().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!(this.mediaSource||this.media)){r.next=3;break}return r.next=3,this.unbindMedia();case 3:if(!(!n||!v)){r.next=5;break}throw Error("Param media or MediaSource does not exist");case 5:return this.media=n,a=this.mediaSource=new v,n.src=URL.createObjectURL(a),i=function r(){a.removeEventListener("sourceopen",r),URL.revokeObjectURL(n.src),o._openPromise.resolve()},a.addEventListener("sourceopen",i),r.abrupt("return",this._openPromise);case 11:case"end":return r.stop()}},r,this)})),function(n){return r.apply(this,arguments)})},{key:"unbindMedia",value:(n=(0,i.Z)(u().mark(function r(){var n,a=this;return u().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!this._openPromise.used&&this._openPromise.resolve(),n=this.mediaSource){if(Object.keys(this._queue).forEach(function(r){var n=a._queue[r];n&&n.forEach(function(r){return r.promise.resolve})}),"open"===n.readyState)try{n.endOfStream()}catch(r){}Object.keys(this._sourceBuffer).forEach(function(r){try{n.removeSourceBuffer(a._sourceBuffer[r])}catch(r){}})}if(this.media){this.media.removeAttribute("src");try{this.media.load()}catch(r){}this.media=null}this.mediaSource=null,this._openPromise=(0,l.Q)(),this._queue=Object.create(null),this._sourceBuffer=Object.create(null);case 8:case"end":return r.stop()}},r,this)})),function(){return n.apply(this,arguments)})},{key:"createSource",value:function(r,n){var a;if(!this._sourceBuffer[r]&&this.mediaSource){try{a=this._sourceBuffer[r]=this.mediaSource.addSourceBuffer(n)}catch(r){throw new d.Fc(d.wb.MEDIA,d.wb.SUB_TYPES.MSE_ADD_SB,r)}a.mimeType=n,a.addEventListener("updateend",this._onSBUpdateEnd.bind(this,r)),a.addEventListener("error",this._onSBUpdateError.bind(this,r))}}},{key:"changeType",value:function(r,n){var a=this._sourceBuffer[r];return this.mediaSource&&a&&a.mimeType!==n&&"function"==typeof a.changeType?this._enqueueOp(function(){a.changeType(n)}):Promise.resolve()}},{key:"createOrChangeSource",value:function(r,n){return this.createSource(r,n),this.changeType(r,n)}},{key:"append",value:function(r,n){var a=this;return n&&n.byteLength&&this._sourceBuffer[r]?this._enqueueOp(r,function(){var i;a.mediaSource&&(null===(i=a._sourceBuffer[r])||void 0===i||i.appendBuffer(n))}):Promise.resolve()}},{key:"remove",value:function(r,n,a){var i=this;if(1!==Object.keys(this._sourceBuffer).length)return this._enqueueOp(r,function(){if(i.mediaSource){var o=i._sourceBuffer[r];if(n>=a||!o){i._onSBUpdateEnd(r);return}o.remove(n,a)}})}},{key:"clearBuffer",value:function(r,n){var a,i=this;return Object.keys(this._sourceBuffer).forEach(function(o){a=i._enqueueOp(o,function(){i.mediaSource&&i._sourceBuffer[o].remove(r,n)})}),a}},{key:"clearAllBuffer",value:function(){var r,n=this;return Object.keys(this._sourceBuffer).forEach(function(a){r=n._enqueueOp(a,function(){if(n.mediaSource){var r=n._sourceBuffer[a];r.remove(0,h.l.end(h.l.get(r)))}})}),r}},{key:"endOfStream",value:function(r){var n=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp(function(){var a=n.mediaSource;a&&"open"===a.readyState&&(r?a.endOfStream(r):a.endOfStream())}):Promise.resolve()}},{key:"setLiveSeekableRange",value:function(r,n){var a=this.mediaSource;!(r<0)&&!(n<r)&&null!=a&&a.setLiveSeekableRange&&"open"===a.readyState&&a.setLiveSeekableRange(r,n)}},{key:"buffered",value:function(r){return h.l.get(this._sourceBuffer[r])}},{key:"bufferStart",value:function(r){return h.l.start(this.buffered(r))}},{key:"bufferEnd",value:function(r){return h.l.end(this.buffered(r))}},{key:"_enqueueOp",value:function(r,n){if(!this.mediaSource)return Promise.resolve();var a=this._queue[r]=this._queue[r]||[],i={exec:n,promise:(0,l.Q)()};return a.push(i),1===a.length&&this._startQueue(r),i.promise}},{key:"_enqueueBlockingOp",value:(a=(0,i.Z)(u().mark(function r(n){var a,i,o=this;return u().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(this.mediaSource){r.next=2;break}return r.abrupt("return",Promise.resolve());case 2:if((a=Object.keys(this._sourceBuffer)).length){r.next=5;break}return r.abrupt("return",n());case 5:return i=[],a.forEach(function(r){var n=o._queue[r],a=(0,l.Q)();i.push(a),n.push({exec:function(){return a.resolve()},promise:a}),1===n.length&&o._startQueue(r)}),r.abrupt("return",Promise.all(i).then(function(){try{return n()}finally{a.forEach(function(r){var n=o._queue[r],a=o._sourceBuffer[r];null==n||n.shift(),(!a||!a.updating)&&o._startQueue(r)})}}));case 8:case"end":return r.stop()}},r,this)})),function(r){return a.apply(this,arguments)})},{key:"_startQueue",value:function(r){var n=this._queue[r];if(n){var a=n[0];if(a)try{a.exec()}catch(i){a.promise.reject(new d.Fc(d.wb.MEDIA,d.wb.SUB_TYPES.MSE_OTHER,i)),n.shift(),this._startQueue(r)}}}}],[{key:"isSupported",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"';if(!v)return!1;try{return v.isTypeSupported(r)}catch(r){return!1}}}]),s}();(0,o.Z)(g,"VIDEO","video"),(0,o.Z)(g,"AUDIO","audio")},918532:function(r,n,a){"use strict";a.d(n,{Y:function(){return l}});var i=a(182432),o=1,c=2,f=3,s=4,u=["Boolean","Number","String","Undefined","Null","Date","Object"],l=function(){function r(n,a){(0,i.PA)(this,r),this.name=n||"",this._prefix="[".concat(this.name,"]"),this.logCacheLevel=(null==a?void 0:a.logCacheLevel)||3,this.logMaxSize=(null==a?void 0:a.logMaxSize)||204800,this.logSize=0,this.logTextArray=[]}return(0,i.qH)(r,[{key:"debug",value:function(){for(var n,a=arguments.length,i=Array(a),c=0;c<a;c++)i[c]=arguments[c];this.logCache.apply(this,[o].concat(i)),!r.disabled&&(n=console).debug.apply(n,[this._prefix,h()].concat(i))}},{key:"log",value:function(){for(var n,a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];this.logCache.apply(this,[c].concat(i)),!r.disabled&&(n=console).log.apply(n,[this._prefix,h()].concat(i))}},{key:"warn",value:function(){for(var n,a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];this.logCache.apply(this,[f].concat(i)),!r.disabled&&(n=console).warn.apply(n,[this._prefix,h()].concat(i))}},{key:"error",value:function(){for(var n,a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];this.logCache.apply(this,[s].concat(i)),!r.disabled&&(n=console).error.apply(n,[this._prefix,h()].concat(i))}},{key:"logCache",value:function(r){if(!(r<this.logCacheLevel)){var n="";try{for(var a=arguments.length,o=Array(a>1?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];var f=o.map(function(r){return function r(n,a,o){!o&&(o=1),!a&&(a=2);var c={};if(!n||"object"!==(0,i.Ac)(n))return n;var f=Object.prototype.toString.call(n).slice(8,-1);if(!u.includes(f))return f;if(!(o>a)){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(o===a?c[s]=function(r){if("object"!==(0,i.Ac)(r))return r;var n=Object.prototype.toString.call(r).slice(8,-1);switch(n){case"Array":case"Uint8Array":case"ArrayBuffer":return n+"["+r.length+"]";case"Object":return"{}";default:return n}}(n[s]):"object"===(0,i.Ac)(n[s])?c[s]=r(n[s],a,o+1):c[s]=n[s]);return c}}(r)});n=this._prefix+h()+JSON.stringify(f)}catch(r){return}if(r>=this.logCacheLevel&&(this.logSize+=n.length,this.logTextArray.push(n)),this.logSize>this.logMaxSize){var s=this.logTextArray.shift();this.logSize-=s.length}}}},{key:"getLogCache",value:function(){var r=this.logTextArray.join("\n");return this.reset(),r}},{key:"reset",value:function(){this.logTextArray=[],this.logSize=0}},{key:"table",value:function(){var n;!r.disabled&&(n=console).table.apply(n,arguments)}},{key:"setLogLevel",value:function(r){this.logCacheLevel=r}}],[{key:"enable",value:function(){r.disabled=!1}},{key:"disable",value:function(){r.disabled=!0}}]),r}();function h(){return new Date().toLocaleString()}(0,i._x)(l,"disabled",!0)},720357:function(r,n,a){"use strict";a.d(n,{l:function(){return o}});var i=a(70427),o=function(){function r(){(0,i.PA)(this,r)}return(0,i.qH)(r,null,[{key:"start",value:function(r){return!r||!r.length||1===r.length&&r.end(0)-r.start(0)<1e-6||1===r.length&&0>r.start(0)?0:r.start(0)}},{key:"end",value:function(r){return!r||!r.length||1===r.length&&r.end(0)-r.start(0)<1e-6?0:r.end(r.length-1)}},{key:"get",value:function(r){if(r)try{return r.buffered}catch(r){}}},{key:"buffers",value:function(r,n){if(!r||!r.length)return[];for(var a=[],i=0,o=r.length;i<o;i++){var c=a.length;if(c&&n){var f=a[c-1],s=f[1];if(r.start(i)-s<=n){var u=r.end(i);u>s&&(f[1]=u)}else a.push([r.start(i),r.end(i)])}else a.push([r.start(i),r.end(i)])}return a}},{key:"totalLength",value:function(r){return r&&r.length?r.reduce(function(r,n){return r+(n[1]-n[0])},0):0}},{key:"info",value:function(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n||!n.length)return{start:0,end:0,buffers:[]};for(var o=0,c=0,f=0,s=0,u=0,l=0,h=0,d=r.buffers(n,i),p=0,v=d.length;p<v;p++){var g=d[p];if(a+i>=g[0]&&a<=g[1])o=g[0],c=g[1],f=p;else if(a+i<g[0]){s=g[0],u=g[1];break}else a+i>g[1]&&(l=g[0],h=g[1])}return{start:o,end:c,index:f,buffers:d,nextStart:s,nextEnd:u,prevStart:l,prevEnd:h,currentTime:a,behind:a-o,remaining:c?c-a:0,length:r.totalLength&&r.totalLength(d)}}},{key:"isBuffered",value:function(n,a){if(n){var i=r.get(n);if(null!=i&&i.length){for(var o=0;o<i.length;o++)if(a>=i.start(o)&&a<=i.end(o))return!0}}return!1}}]),r}()},584832:function(r,n,a){"use strict";a.d(n,{Vc:function(){return i},_e:function(){return o}});var i={VIDEO:"video",AUDIO:"audio",METADATA:"metadata"},o={AVC:"avc",HEVC:"hevc"}},249387:function(r,n,a){"use strict";a.d(n,{m$:function(){return c}});var i=a(697946),o=a(745740),c=function(){function r(){(0,i.PA)(this,r),(0,i._x)(this,"id",3),(0,i._x)(this,"type",o.Vc.METADATA),(0,i._x)(this,"timescale",0),(0,i._x)(this,"flvScriptSamples",[]),(0,i._x)(this,"seiSamples",[])}return(0,i.qH)(r,[{key:"exist",value:function(){return!!((this.flvScriptSamples.length||this.seiSamples.length)&&this.timescale)}},{key:"reset",value:function(){this.timescale=0,this.flvScriptSamples=[],this.seiSamples=[]}},{key:"hasSample",value:function(){return!!(this.flvScriptSamples.length||this.seiSamples.length)}}]),r}()},731588:function(r,n,a){"use strict";a.d(n,{W:function(){return c}});var i=a(519357),o=a(258413),c=function(){function r(){(0,i.PA)(this,r),(0,i._x)(this,"id",2),(0,i._x)(this,"type",o.Vc.AUDIO),(0,i._x)(this,"codecType",o.yQ.AAC),(0,i._x)(this,"pid",-1),(0,i._x)(this,"codec",""),(0,i._x)(this,"sequenceNumber",0),(0,i._x)(this,"sampleDuration",0),(0,i._x)(this,"timescale",0),(0,i._x)(this,"formatTimescale",0),(0,i._x)(this,"baseMediaDecodeTime",0),(0,i._x)(this,"duration",0),(0,i._x)(this,"warnings",[]),(0,i._x)(this,"samples",[]),(0,i._x)(this,"baseDts",0),(0,i._x)(this,"sampleSize",16),(0,i._x)(this,"sampleRate",0),(0,i._x)(this,"channelCount",0),(0,i._x)(this,"objectType",0),(0,i._x)(this,"sampleRateIndex",0),(0,i._x)(this,"config",[]),(0,i._x)(this,"present",!1),(0,i._x)(this,"isVideoEncryption",!1),(0,i._x)(this,"isAudioEncryption",!1),(0,i._x)(this,"kid",null),(0,i._x)(this,"ext",void 0)}return(0,i.qH)(r,[{key:"reset",value:function(){this.sequenceNumber=0,this.timescale=0,this.sampleDuration=0,this.sampleRate=0,this.channelCount=0,this.baseMediaDecodeTime=0,this.present=!1,this.pid=-1,this.codec="",this.samples=[],this.config=[],this.warnings=[]}},{key:"exist",value:function(){return!!(this.sampleRate&&this.channelCount&&this.codec&&this.codecType===o.yQ.AAC)}},{key:"hasSample",value:function(){return!!this.samples.length}},{key:"isEncryption",get:function(){return this.isAudioEncryption}}]),r}()}}]);