/*! For license information please see player-13.e74a8f6b.js.LICENSE.txt */ !function(t,e){"object"==typeof module&&"object"==typeof module.exports?e():"function"==typeof define&&define.amd?define([],e):(t="undefined"!=typeof globalThis?globalThis:t||self)&&e()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).xss={})}(this,function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,r=1,n=arguments.length;r/g,a=/&#([a-zA-Z0-9]*);?/gim,s=/"/g,u=/:?/gim,c=/&newline;?/gim,l=/((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,f=/u\s*r\s*l\s*\(.*/gi,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,d=/"/g,p=function(t){return t.replace(i,"<").replace(o,">")},g={indexOf:function(t,e){var r,n;for(r=0,n=t.length;r127&&n<2048?e+=String.fromCharCode(n>>6|192)+String.fromCharCode(63&n|128):e+=String.fromCharCode(n>>12|224)+String.fromCharCode(n>>6&63|128)+String.fromCharCode(63&n|128)}return e}(t);l>2,o=(3&e)<<4|(r=t.charCodeAt(l++))>>4,a=(15&r)<<2|(n=t.charCodeAt(l++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),c=c+u.charAt(i)+u.charAt(o)+u.charAt(a)+u.charAt(s);return c}function y(t){var e,r,n,i,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u="",c=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");c>4,r=(15&i)<<4|(o=s.indexOf(t.charAt(c++)))>>2,n=(3&o)<<6|(a=s.indexOf(t.charAt(c++))),u+=String.fromCharCode(e),64!==o&&(u+=String.fromCharCode(r)),64!==a&&(u+=String.fromCharCode(n));return function(t){for(var e="",r=0,n=0,i=0,o=0;r191&&n<224?(e+=String.fromCharCode((31&n)<<6|63&(o=t.charCodeAt(r+1))),r+=2):(o=t.charCodeAt(r+1),e+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&(i=t.charCodeAt(r+2))),r+=3);return e}(u)}function b(t,e,r){var n="",i=0,o=!1,a=!1,s=0,u=t.length,c="",l="";t:for(s=0;s"===f||s===u-1){n+=r(t.slice(i,o)),c=function(t){var e,r=g.spaceIndex(t);return e=-1===r?t.slice(1,-1):t.slice(1,r+1),"/"===(e=g.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}(l=t.slice(o,s+1)),n+=e(o,n.length,c,l,"0;e--){var r=t[e];if(" "!==r)return"="===r?e:-1}return -1}(t,c-1))){u(a,m(g.trim(t.slice(r,c)))),a=!1,r=c+1;continue}}}else{if(-1===(f=t.indexOf(l,c+1)))break;u(a,g.trim(t.slice(i+1,f))),a=!1,r=(c=f)+1}}else a=t.slice(r,c),r=c+1,i='"'===t.charAt(r)||"'"===t.charAt(r)?r:function(t,e){for(;et.charCodeAt(r)?" ":t.charAt(r);return g.trim(e)}(t=(t=(t=t.replace(s,'"')).replace(a,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})).replace(u,":").replace(c," "))}(r),"href"===e||"src"===e){if("#"===(r=g.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===e){if(l.lastIndex=0,l.test(r))return""}else if("style"===e&&(h.lastIndex=0,h.test(r)||(f.lastIndex=0,f.test(r)&&(l.lastIndex=0,l.test(r)))))return"";return r=function(t){return t=p(t=t.replace(d,"""))}(r)}var S=function(t){return"string"==typeof t?t.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},k=function(){function t(t){var e=function(t){var e={};for(var r in t)e[r]=t[r];return e}(t||{});e.stripIgnoreTag&&(e.onIgnoreTag,e.onIgnoreTag=function(){return""}),e.whiteList={},e.onTag=function(){},e.onTagAttr=function(){},e.onIgnoreTag=function(){},e.onIgnoreTagAttr=function(){},e.safeAttrValue=w,e.escapeHtml=p,this.options=Object.assign(e,t)}return t.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e,r,n,i,o,a,s=this.options,u=s.whiteList,c=s.onTag,l=s.onIgnoreTag,f=s.onTagAttr,h=s.onIgnoreTagAttr,d=s.safeAttrValue,p=s.escapeHtml;s.stripBlankChar&&(t=(e=(e=t.split("")).filter(function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)})).join("")),s.allowCommentTag||(t=function(t){for(var e="",r=0;r");var s=function(t){var e=g.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var r="/"===(t=g.trim(t.slice(e+1,-1)))[t.length-1];return r&&(t=g.trim(t.slice(0,-1))),{html:t,closing:r}}(n),v=u[r],m=x(s.html,function(t,e){var n=-1!==g.indexOf(v,t),i=f(r,t,e,n);return null==i?n?(e=d(r,t,e,null))?"".concat(t,'="').concat(e,'"'):t:null==(i=h(r,t,e,n))?void 0:i:i});return n="<".concat(r),m&&(n+=" ".concat(m)),s.closing&&(n+=" /"),n+=">"}return null==(a=l(r,n,o))?p(n):a},p);return v&&(m=v.remove(m)),m},t}(),T=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")(),O=new(function(){function t(){var t=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var e,r,n="douyin_web";if(!g.includes(n,"bid"))return n;if(t.config&&t.config.bid)return t.config.bid;if(T&&T._xssBid)return T._xssBid;if(T&&T.slardar&&"function"==typeof T.slardar.config){var i=(T.slardar.config()||{}).bid;if(i)return i}if(T&&T.Slardar&&"function"==typeof T.Slardar.config){var o=(T.Slardar.config()||{}).bid;if(o)return o}return(null===(r=null===(e=null==T?void 0:T.Slardar)||void 0===e?void 0:e._baseParams)||void 0===r?void 0:r.bid)||"argus"},this.getConfigRegion=function(){var e;return g.includes("cn","region")?t.config&&t.config.region?t.config.region:((null===(e=null==T?void 0:T.gfdatav1)||void 0===e?void 0:e.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var e={cn:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:y("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[t.getConfigRegion()];if(e)return e+t.getSlardarBid()}}return t.prototype.setConfig=function(t){this.config=t},t.prototype.upload=function(){var t=this,e=this.gerReportUrl();!this.lock&&e&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var r=t.batchData.slice(0,100);t.batchData=t.batchData.slice(100),T.fetch(e,{method:"post",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).catch(function(t){}),t.lock=!1,t.upload()},this.timeout))},t.prototype.generateKey=function(t){return t.collectKey?[t.collectMode,t.collectKey].join("___"):""},t.prototype.push=function(t){this.batchData.push(t),this.upload()},t.prototype.report=function(t){var e=this.generateKey(t);if(T.fetch&&t.collectKey){var r="object"==typeof window?window.location.href:"SSR";t.documentUrl=r;var n={age:Math.floor(Date.now()),type:"xss",url:r,body:t,"user-agent":""};"enforce"===t.disposition&&"SSR"!==r||(n.url=e),"SSR"===r&&(n.url="SSR___".concat(n.url),n.body.ssr=!0),this.push(n)}},t}()),E=function(t){for(var e=0,r=function(r){Array.isArray(t[r])?0===t[r].length?delete t[r]:(t[r]=g.from(g.uniq(t[r])),e+=t[r].length):0===g.keys(t[r]).length?delete t[r]:g.keys(t[r]).forEach(function(n){t[r][n]=g.from(g.uniq(t[r][n])),e+=t[r][n].length})},n=0,i=g.keys(t);n0)return e&&e("javascript:"),!1;if(/^javascript:/i.test(t)){var i=t.slice(11).replace(/\s/g,"").trim();return!!g.some(["void","void(0)","void0","false","undefined",";"],function(t){return t===i})||(e&&e("javascript:"),!1)}return!0}var A=function(t,e){var r,n,i="<%= isSaveValidUrl =>";if("string"!=typeof t||(n=Number("<%= urlLimit =>"),void 0!==r&&(n=r),"NaN"!==t.toString()&&-1!==n&&t.length>=n)||I(t,e))return t;try{if(!0===(i=JSON.parse(i))||"true"===i){var o=new URL(t);return o.origin+o.pathname}}catch(t){}return"#"};function B(t,e,n){if(void 0===t&&(t=""),void 0===e&&(e=[]),"string"!=typeof t)return!0;if(!I(t=L(t)))return!1;var i,o={url:(i=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:i[1],slash:i[2],host:i[3],port:i[4],path:i[5],query:i[6],hash:i[7]},a=o.scheme,s=o.host;return n?!!n(t):!(!a||!s)&&(!g.includes(["http","https","file"],a)||("object"==typeof window&&window&&(e=r(r([],e,!0),[location.host],!1)),g.some(e,function(t){return!!(t instanceof RegExp&&t.test(s))||t===s})))}var C={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:[]},M={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var t=E(this.collect),e=t.count,r=t.ret;return this.collect=null,{collectKey:0===e?null:JSON.stringify(r),collectMode:"white"}},onIgnoreTagAttr:function(t,e,n){return t&&g.indexOf(["href","src"],e)>-1?M.domainWhiteList&&Array.isArray(M.domainWhiteList)&&M.domainWhiteList.length>0&&!B(n,r([],M.domainWhiteList,!0))?"":"".concat(e,'="').concat(A(n,function(t){var e;null===(e=M.collect)||void 0===e||e.filterProtocol.push(t)}),'"'):t&&(g.indexOf(["style","class","id"],e)>-1||e.indexOf("data-")>-1)?"".concat(e,'="').concat(n,'"'):(M.collect.whiteList[t]=M.collect.whiteList[t]||[],void M.collect.whiteList[t].push(e))},onIgnoreTag:function(t,e){if("style"===t)return e;b(e,function(t,e,r,n){x(P(n).html.replace("/",""),function(t){M.collect.whiteList[r]=M.collect.whiteList[r]||[],M.collect.whiteList[r].push(t)})},p)},whiteList:C,mergeWhiteList:function(t){for(var e,r={},n=0,i=g.keys(C);n");var o=P(n),a=x(o.html,function(t,e){var n,i=0;if(D.blackList[r]&&g.includes(D.blackList[r],t)&&(W.collect.blackList[r]=W.collect.blackList[r]||[],W.collect.blackList[r].push(t),i++),D.blackAttrRegExps.length&&D.blackAttrRegExps.some(function(e){return e.test(t)})&&g.forEach(D.blackAttrRegExps,function(e){e.test(t)&&(W.collect.blackAttrRegExps.push("".concat(e.toString(),"->").concat(t)),i++)}),D.blackAttrs.length&&g.includes(D.blackAttrs,t)&&(D.blackAttrs.push(t),i++),!i){if(D.filterList&&D.filterList[r]&&g.includes(D.filterList[r],t)){var o=A(e,function(t){var e;null===(e=W.collect)||void 0===e||e.filterProtocol.push(t)});return o!==e&&(W.collect.filterList[r]=W.collect.filterList[r]||[],W.collect.filterList[r].push(t)),e?"".concat(t,"='").concat(o,"'"):t}return D.filterAttrs&&g.includes(D.filterAttrs,t)?((o=A(e,function(t){var e;null===(e=W.collect)||void 0===e||e.filterProtocol.push(t)}))!==e&&(null===(n=W.collect)||void 0===n||n.filterAttrs.push(t)),e?"".concat(t,"='").concat(o,"'"):t):e?"".concat(t,"='").concat(e,"'"):t}});return n="<".concat(r),a&&(n+=" ".concat(a)),o.closing&&(n+=" /"),n+=">"},p);null===(r=W.collect)||void 0===r||r.blackTags.push(t)}},z=function(t){var e=t.reportOnly,r=void 0===e||e,n=t.block;return r&&"all"===r?"report":("string"==typeof r&&("true"===r&&(r=!0),"false"===r&&(r=!1)),n?"enforce":r?"report":"enforce")},q=function(t){return function(r,n,i){if(!r||"string"!=typeof r)return r;var o=n;t===R&&(o=M).initCollect();var a=t(r,o);if(S(a)===S(r))return r;if(!i)return a;var s=i.logType,u=z(i),c=o.removeCollect();return O.report(e(e({type:s,disposition:u},c),{sourceText:_(r),filterText:_(a)})),"enforce"===u?a:r}},G=q(function(t,e){return void 0===e&&(e={}),e&&e.whiteList||(e.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 k(e).process(t)}),V=q(R),Y=function(t,e,r){var n=[],i=A(t,function(t){n.push(t)});if(i===t)return t;n=g.from(g.uniq(n));var o=e||r||{};if(!o)return i;var a=o.logType,s=z(r);return O.report({type:a,disposition:s,collectKey:n.join("___"),collectData:JSON.stringify(n),collectMode:"black",sourceText:_(t),filterText:_(i)}),"enforce"===s?i:t},J=T._xssProject||{},X=T.xssNamespace||{},Z="3.0.26",K={FilterXSS:k,version:Z,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:G,_filterXSS:V,filterUrl:Y,Config:M,BlackConfig:W,project:J,setProjectName:function(t){J[t]=this,T._xssProjectName=t}};X.douyin_web=K,T.xssNamespace=X,T.Math&&!T.Math.xssNamespace&&(T.Math.xssNamespace=X),J[Z]=K,T.globalThis=T,T.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:K},T.xss=K,T.isSafeUrl=B,T.isSafeDomain=B,T.isSafeProtocol=I,T._xssProject=J,T._xssProjectName&&(J[T._xssProjectName]=K);var Q=K.setProjectName.bind(K);t.BlackConfig=W,t.Config=M,t.FilterXSS=k,t._filterXSS=V,t.filterUrl=Y,t.filterXSS=G,t.isSafeDomain=B,t.isSafeProtocol=I,t.isSafeUrl=B,t.project=J,t.setProjectName=Q,t.setXssNamespace=function(t){var e=t.appId,r=t.bid,n=t.region;X[e]=K;M.bid=r,M.region=n,M.enabled=!0},t.xssNamespace=X,Object.defineProperty(t,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["82166"],{455890:function(t,e,r){"use strict";r.d(e,{LH:function(){return c},O1:function(){return o},T3:function(){return v},UK:function(){return m},YL:function(){return h},av:function(){return u},bB:function(){return f},bJ:function(){return p},bT:function(){return n},c3:function(){return l},co:function(){return g},fp:function(){return s},iR:function(){return i},kU:function(){return a},qC:function(){return d}});var n={ONE_PLAY:"videoplayer_oneplay",ONE_OPERA:"videoplayer_oneopera",ONE_ERROR:"videoplayer_oneerror",ONE_EVENT:"videoplayer_oneevent",ONE_TEMP:"videoplayer_onetemp"},i={data:1e3,runtime:1002,parse:1004,network:1003,no_error_handler:9997,custom_error:9998,other:9999,notSupport:1005},o={1:-499991,2:-499992,3:-499993,4:-499994,5:-499995},a={STOP:0,PLAYING:1,PAUSE:2,ERROR:3,LOADING:4},s={UNKNOWN:0,PLAYABLE:1,STALLED:2,ERROR:3},u={UNSPECIFIED:0,ERROR:1,NEXT:2,ENDED:3,UNLOAD:4,DESTROY:5,PLAY_CATCH:6,PLAY_ERROR:7,PROGRESS_LEAVE:8},c={RETRY:"error_retry",ONEERROR:"oneerror",ONEEVENT:"oneevent",ONETEMP:"onetemp"},l={NO_CACHE:0,CACHED:1},f=864e5,h=36e5,d=["tag","subtag","device_type"],p=200,g=6e4,v=6e4,m={NO_FULLSCREEN:0,FULLSCREEN:1,CSS:2}},374260:function(t,e,r){"use strict";r.d(e,{Z:function(){return a}});var n=r(61072);r(346984),r(705574),r(941533),r(9498),r(503e3),r(232070),r(248385);var i=r(403826),o=r(861504),a=function(t){function e(t,r,i,a,s){var u;return(0,n.PA)(this,e),(u=(0,n.$w)(this,e,[t,r,i,a,s])).logTag="".concat(s,"_").concat(o.TJ.GOP)||"",u.lastDemuxSampleIdxRange.video=-1,u.lastDemuxSampleIdxRange.audio=-1,u.adaptTimeRange=[],u}return(0,n.XW)(e,t),(0,n.qH)(e,[{key:"updateAdaptTimeRange",value:function(t,e){!this.adaptTimeRange&&(this.adaptTimeRange=[]),this.lastTargetDur=e;var r=this.adaptTimeRange;null===t&&(t=r.length>0?r[r.length-1].timeRangeIdx[1]:0);for(var n=0;n<(null==r?void 0:r.length);n++){var o=r[n].timeRangeIdx;if(o&&t>=o[0]&&t0?r[r.length-1].timeRangeIdx[1]:0;if(a>=this.timeRange.length)return r.length-1;for(;a1&&void 0!==arguments[1]&&arguments[1],n=this.adaptTimeRange.length;if(!r&&t>=(null===(e=this.adaptTimeRange[n-1])||void 0===e?void 0:e.timeRangeIdx[1])){var i=this.lastTargetDur||5;this.updateAdaptTimeRange(t,i)}for(var o=0;o=a[0]&&tt}))?n.index:0;if(r=this.videoTrak.find(function(e){return e.startTime<=t&&e.endTime>t}),n=null===(o=this.audioTrak)||void 0===o?void 0:o.find(function(e){return e.startTime<=t&&e.endTime>t}),r&&n)return Math.min(r.index,n.index);if(r||n)return r?r.index:n.index;else{var e,r,n,i,o,a=Number.MAX_VALUE;return this.videoTrak.length>0&&(a=this.videoTrak.length-1),this.audioTrak&&this.audioTrak.length>0&&(a=Math.min(this.audioTrak.length-1,a)),a}}},{key:"resetFragmentLoadState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.log(i._.LOG,", resetFragmentLoadState, fragIndex, ",t,",changeBitrate,",e);var r=this.adaptTimeRange.length;e&&(this.adaptTimeRange.splice(t+1,r-t-1),r=this.adaptTimeRange.length);for(var n=0;n=this.timeRange.length){this.log(i._.WARN,"fix adaptTimeRange fragIndex ".concat(t)," ,timeRangeIdx[0] >= this.timeRange.length, so end",o[0],this.timeRange.length,",endFragment,",n),this.adaptTimeRange=this.adaptTimeRange.slice(0,n);break}o&&o[1]>=this.timeRange.length&&(this.log(i._.WARN,"fix adaptTimeRange fragIndex",t," ,timeRangeIdx[1],",o[1],">>>>",this.timeRange.length,",endFragment,",n),o[1]=this.timeRange.length,this.adaptTimeRange=this.adaptTimeRange.slice(0,n+1)),this.adaptTimeRange[n].startTime=this.timeRange[o[0]].startTime,this.adaptTimeRange[n].endTime=o&&o[1]>=this.timeRange.length?this.timeRange[this.timeRange.length-1].endTime:this.timeRange[o[1]].startTime,this.adaptTimeRange[n].range=this.getFragRange(n)}}},{key:"calculateRange",value:function(t){var e,r,o,a,s=null,u=null,c=null,l=null,f=t1&&o[0]o[0]&&(this.adaptTimeRange[t].repeatRange=[o[0],r[1]])}}return r}},{key:"getSubRange",value:function(t,e,r){for(var n=this.adaptTimeRange[t].timeRangeIdx,o=n[0],a=n[0];a=this.timeRange[a].startTime&&e>>>>getSubRange finalRange ",JSON.stringify(s),",oldRange,",JSON.stringify(r)),s}},{key:"getSrcFragRange",value:function(t){var e,r,n,o=null,a=null;this.log(i._.LOG,"getFragRange, timeRangeIdx, srcFragment,",JSON.stringify(t));var s=this.videoTrak;s&&s.length>0&&(o=t0&&(a=t0){var a=o[1]-1,s=n.length,u=a0&&void 0!==arguments[0]?arguments[0]:{};(0,n.PA)(this,e),(t=(0,n.$w)(this,e)).options=r,t.worker=new a.Z,t.worker.onmessage=function(e){t.emit(e.data.method,e.data)};var i=t.options,o=i.memoryOpt,s=i.openLog,u=i.supportHevc,c=i.codecType;return t.worker.postMessage({method:"init",id:r.id||0,args:{memoryOpt:o,openLog:s,supportHevc:u,codecType:c}}),t}return(0,n.XW)(e,t),(0,n.qH)(e,[{key:"updateValue",value:function(t){var e,r;null===(e=this.worker)||void 0===e||e.postMessage({method:"updateValue",id:(null===(r=this.options)||void 0===r?void 0:r.id)||0,args:{value:t}})}},{key:"transmux",value:function(t,e,r,n,i,o,a,s,u,c,l,f,h){var d,p=e.buffer;null===(d=this.worker)||void 0===d||d.postMessage({method:"transmux",id:t,buffer:p,args:{start:r,videoIdx:n,audioIdx:i,moov:o,useEME:a,kidValue:s,context:u,videoTrak:c,audioTrak:l,lastUnMuxData:f,pos:h}},f?[p,f.buffer]:[p])}},{key:"reset",value:function(){this.worker&&this.worker.postMessage({method:"reset"})}},{key:"destroy",value:function(){this.worker&&this.worker.postMessage({method:"destroy"}),this.worker&&this.worker.terminate()}}])}(o())},648955:function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function f(t,e,r){return(e=w(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:P(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function y(t,e){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function b(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||k(t,e)||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(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||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 w(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){if(t){if("string"==typeof t)return n(t,e);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}},879525:function(t,e,r){"use strict";r.d(e,{N:function(){return o}});var n=r(552374);r(346984),r(705574),r(303846),r(124300),r(162093),r(117232),r(173757),r(932651),r(2885),r(248385),r(706056),r(851329),r(905442),r(446336),r(808483),r(840938),r(118438),r(325598),r(92999),r(611067),r(273723),r(724016),r(803903),r(214604),r(901250),r(755006),r(437048),r(488336),r(825666),r(177162),r(286633),r(943281),r(810658),r(82726),r(224727);var i={buffer:60,bbaControl:!1,bbaControl_2:!1,highLevel:15,lowLevel:7,bolaControl:!1,abrAgloType:0,hurryBuffer:-1,dangerBuffer:-1,safeBuffer:-1,safeThreshold:-1,safeFactor:.9,dangerFactor:.8,minSafeFactor:.7,minDangerFactor:.4,safeFactorChange:.05,dangerFactorChange:.1,rebufferDegrade:0,safeUpgrade:0,safeRebufferDegrade:0,hurryForseLowest:0,maxPlaySpeed:1,screen_factor:-1},o=(0,n.qH)(function t(e){(0,n.PA)(this,t),this._playInfo={playbackRate:1,maxCacheTimeAudio:0,maxCacheTimeVideo:0,buffer:0,downloadSpeed:0,seekState:0,currentTime:0,stallState:0,segmentBufferEnd:0},this._sortedMediaInfos={v_adaptation:[]},this.HEAP32=new Int32Array(7),this._debugMode=!1,this._currentBitrateIdx=-1,this._lastpredictTime=0,this._algoArg={buffer:60,bbaControl:!1,highLevel:15,lowLevel:7,bolaControl:!0,limitFirstUpSwitch:-1,limitFirstDownSwitch:-1,limitUpSwitchAfterUpSwitch:-1,limitUpSwitchAfterDownSwitch:-1,minUpSwitchPosition:-1,minDownSwitchPosition:-1,maxUpSwitchCount:-1,maxDownSwitchCount:-1,maxSwitchCount:-1,maxUpSwitchLevel:-1,maxDownSwitchLevel:-1,downSwitchType:-1,debugMode:0,debug_mode_3_interval:3,debug_mode_4_interval:10,libra_abr_version:0,max_debug_mode_2_change:0,abrAgloType:0,hurryBuffer:-1,dangerBuffer:-1,safeBuffer:-1,safeThreshold:-1,safeFactor:.9,dangerFactor:.8,minSafeFactor:.7,minDangerFactor:.4,safeFactorChange:.05,dangerFactorChange:.1,rebufferDegrade:0,safeUpgrade:0,safeRebufferDegrade:0,hurryForseLowest:0,maxPlaySpeed:1,screen_factor:-1},this._seekState=0,this._isSeekedPredict=!1,this._stat={buffer:0,target_birate:0,b_seek:!1,is_upper:!1,bitrate_list:"",video_quality_list:"",num_abr_call:0,download_position:-1,calc_bitrate:-1,change_level:-1,last_level:-1,target_level:-1,last_bitrate:-1,diff_download_position:-1,diff_buffer:-1,abr_time:-1,diff_abr_time:-1,hit_limitbitrate:0,dangerFactor:-1,safeFactor:-1,abrDownloadSpeed:0,hitSrRule:0,last_video_quality:-1,target_video_quality:-1,screen_factor:-1},this.numAbrCall=0,this.upSwitchCount=0,this.downSwitchCount=0,this.lastUpSwitch=-1,this.lastDownSwitch=-1,this.downloadPosition=-1,this.gopSize=-1,this._cacheBitrate=-1,this._prevDownloadPosition=-1,this._prevBuffer=-1,this._prevCurrentPosition=-1,this._abrStartTime=0,this._prevAbrStartTime=0,this._firstLevelIdx=0,this._dropFrameCount=0,this._currentDropFrameRate=0,this._maxBitrate=-1,this._isCurrentSafeBuffer=!1,this._hasSafeRebufferDegrade=!1,this._config=e,this._algoArg=Object.assign({},i,e.algoArg),this.onRuntimeInitialized(),this._dangerFactor=this._algoArg.dangerFactor,this._safeFactor=this._algoArg.safeFactor,this._maxSafeFactor=this._safeFactor,this._maxDangerFactor=this._dangerFactor},[{key:"onRuntimeInitialized",value:function(){this._config.promise.resolve()}},{key:"_setDebugModel",value:function(t){this._debugMode=t}},{key:"_logger",value:function(){if(this._debugMode){for(var t,e=arguments.length,r=Array(e),n=0;n9&&void 0!==arguments[9]?arguments[9]:-1;this._playInfo={playbackRate:t,maxCacheTimeAudio:e,maxCacheTimeVideo:r,buffer:n,downloadSpeed:o,seekState:a,currentTime:s,stallState:u,segmentBufferEnd:i},this._maxBitrate=c}},{key:"updateDropFrame",value:function(t){this._currentDropFrameRate=t}},{key:"_updateSwitchInfo",value:function(t,e,r,n,i,o){}},{key:"_getPredictedBitrate",value:function(){var t=0,e=this._getMethodName();if(!e)return this.HEAP32[t]=-1,this._logger("abr method not found"),t;if(-1===this._currentBitrateIdx){this._logger("getPredictedBitrate _cacheBitrate",this._cacheBitrate);for(var r=this._sortedMediaInfos.v_adaptation,n=0;n=s||u){var c=this[e]().predictedBitrate;this.HEAP32[t]=c}else this.HEAP32[t]=0;return t++,this.HEAP32[t]=0,t++,this.HEAP32[t]=0,0}},{key:"_getMethodName",value:function(){var t="";return(this._algoArg.bbaControl||this._algoArg.bbaControl_2)&&(t="_getBitrateBBA"),this._algoArg.bolaControl&&(t="_getBitrateBOLA"),t}},{key:"_getBitrateBOLA",value:function(){return{predictedBitrate:0,predictSpeed:0}}},{key:"_doBufferControl",value:function(t,e){var r=this._algoArg,n=r.highLevel,i=r.lowLevel,o=-1;if(t>=n)this._currentBitrateIdx=e.length-1,o=e[this._currentBitrateIdx].bandwidth;else if(t<=i)this._currentBitrateIdx=0,o=e[this._currentBitrateIdx].bandwidth;else{var a=e[e.length-1].bandwidth-e[0].bandwidth,s=a/(n-i)*(t-i)+e[0].bandwidth;o=s;for(var u=e.length-1;u>-1;u--)if(s>=e[u].bandwidth){this._currentBitrateIdx=u;break}s>=e[e.length-1].bandwidth?this._currentBitrateIdx=e.length-1:s<=e[0].bandwidth&&(this._currentBitrateIdx=0),this._logger("bola mid",this._currentBitrateIdx,s,"chose",e[this._currentBitrateIdx].bandwidth)}return{calc_bitrate:o}}},{key:"_getCalcPlayrate",value:function(){return Math.min(Math.max(this._playInfo.playbackRate,1),this._algoArg.maxPlaySpeed)}},{key:"_filterIndexByBitrate",value:function(t,e){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];t/=r?this._getCalcPlayrate():1;var n=!1,i=0;if(t>e[e.length-1].bandwidth)i=e.length-1;else{for(var o=0;o=t){n=!0,(i=o)>0&&r&&(i-=1);break}!n&&(i=0)}return this._logger("filterIndexByBitrate",i,"hasFound",n),i}},{key:"_doSpeedBufferControl",value:function(t,e){var r=-1,n=this._playInfo.downloadSpeed,i=this._algoArg,o=i.hurryBuffer,a=i.dangerBuffer,s=i.safeBuffer,u=i.safeThreshold,c=i.hurryForseLowest,l=i.safeUpgrade,f=i.dangerFactorChange,h=i.safeFactorChange,d=this._currentBitrateIdx;if(this._isCurrentSafeBuffer=!1,0===n)r=-1,this._currentBitrateIdx=Math.min(d,this._firstLevelIdx),this._logger("SpeedBuffer 网速为0, firstLevel",this._firstLevelIdx,"prev",d);else{var p=n*this._dangerFactor*8e3,g=n*this._safeFactor*8e3;if(tthis._maxDangerFactor&&(this._dangerFactor=this._maxDangerFactor),this._safeFactor>this._maxSafeFactor&&(this._safeFactor=this._maxSafeFactor))}return{calc_bitrate:r}}},{key:"_doSizeLimitControl",value:function(t){var e=this._algoArg.screen_factor;if(e>0&&this._videoHeight>0&&this._videoWidth>0){var r=this._currentBitrateIdx,n=t[r],i=this._videoWidth*e,o=this._videoHeight*e;if(n.width>i&&n.height>o){var a=t.concat();a.sort(function(t,e){return t.widthi&&a[u].height>o){s=u,this._logger("SizeLimitControl _currentBitrateIdx",u,"prev",r);break}if(s>-1){for(var c=a.filter(function(t){return t.width===a[s].width&&t.height===a[s].height}),l=-1,f=0;fl&&(l=c[f].bandwidth);l>-1&&(this._currentBitrateIdx=this._filterIndexByBitrate(l,t,!1),this._logger("SizeLimitControl maxBitrate",this._currentBitrateIdx,"prev",r))}}}}},{key:"_doLimitControl",value:function(t,e,r,n){var i=this._algoArg,o=i.limitFirstUpSwitch,a=i.limitFirstDownSwitch,s=i.minUpSwitchPosition,u=i.minDownSwitchPosition,c=i.maxUpSwitchLevel,l=i.maxDownSwitchLevel,f=i.maxUpSwitchCount,h=i.maxDownSwitchCount,d=i.maxSwitchCount,p=i.limitUpSwitchAfterUpSwitch,g=i.limitUpSwitchAfterDownSwitch,v=i.downSwitchType,m=i.debugMode,_=this._currentBitrateIdx>t,y=this._currentBitrateIdx0&&this.numAbrCall0&&this.numAbrCall=0&&this.downloadPosition>0&&this.downloadPosition=0&&this.downloadPosition>0&&this.downloadPosition=0&&this._currentBitrateIdx-t>c&&(this._currentBitrateIdx=t+c,this._logger("限制上切幅度, maxUpSwitchLevel",c)),l>=0&&t-this._currentBitrateIdx>l&&(this._currentBitrateIdx=t-l,this._logger("限制下切幅度, maxDownSwitchLevel",l)),f>=0&&this.upSwitchCount>=f&&_&&(this._currentBitrateIdx=t,this._logger("限制上切切换次数, maxUpSwitchCount",f)),h>=0&&this.downSwitchCount>=h&&y&&(this._currentBitrateIdx=t,this._logger("限制下切切换次数, maxDownSwitchCount",h)),d>=0&&this.upSwitchCount+this.downSwitchCount>=d&&(this._currentBitrateIdx=t,this._logger("限制总切换次数, maxSwitchCount",d)),_&&(p>=0&&this.lastDownSwitch>=0&&this.numAbrCall-this.lastDownSwitch<=p&&(this._currentBitrateIdx=t,this._logger("限制上切后上切")),g>=0&&this.lastDownSwitch>=0&&this.numAbrCall-this.lastDownSwitch<=g&&(this._currentBitrateIdx=t,this._logger("下切后上切"))),this._currentBitrateIdx==t-1){var b=r[t].bandwidth;1==v?b=(r[t].bandwidth+r[t-1].bandwidth)/2:2==v&&(b=r[t-1].bandwidth),this._logger("下切灵敏度调节, downSwitchThreshold",b,"downSwitchType",v,"calc_bitrate",e),e>b&&(this._currentBitrateIdx=t)}var x=!1;if(this._maxBitrate>0&&r[this._currentBitrateIdx].bandwidth>=this._maxBitrate&&(this._currentBitrateIdx=n.length-1,x=!0),m>0&&!x&&(1==m||2==m||3==m||4==m)&&n.length>=2){var w=this._algoArg,S=w.max_debug_mode_2_change,k=w.debug_mode_3_interval,T=w.debug_mode_4_interval;if(this._firstLevelIdx>0){if((1==m||2==m||3==m)&&((1==m||2==m)&&(this._currentBitrateIdx=this._firstLevelIdx-(this.numAbrCall+1)%2),3==m&&1==(this.numAbrCall+1)%k&&(this._currentBitrateIdx=this._currentBitrateIdx===this._firstLevelIdx?this._firstLevelIdx-1:this._firstLevelIdx)),4==m){var O=(this.numAbrCall+T)%T;(0===O||1===O)&&(this._currentBitrateIdx=this._firstLevelIdx-(1-O))}}else this._currentBitrateIdx=0;this.numAbrCall>=S&&2==m&&(this._currentBitrateIdx=t)}return{hitLimitBitrate:x}}},{key:"_doReport",value:function(t,e,r,n,i,o,a,s,u){var c=-1===this._prevBuffer?-1:t-this._prevBuffer;this._prevBuffer=t,this._playInfo.segmentBufferEnd>0?this.downloadPosition=this._playInfo.segmentBufferEnd:this.downloadPosition=this.gopSize>0?this.gopSize:-1;var l=this.downloadPosition-this._prevDownloadPosition;-1===this._prevDownloadPosition&&(l=-1e4),this._prevDownloadPosition=this.downloadPosition,this._stat={buffer:t,target_birate:n,b_seek:this._isSeekedPredict,is_upper:ithis._currentBitrateIdx&&(this.lastDownSwitch=this.numAbrCall,this.downSwitchCount++),this.numAbrCall++}},{key:"_getBitrateBBA",value:function(){var t=this,e=0,r=0,n=this._algoArg,i=n.abrAgloType,o=n.getTargetSrName,a=n.isOpenSr,s=performance.now(),u=this._playInfo.buffer,c=this._sortedMediaInfos.v_adaptation,l=this._sortedMediaInfos.v_adaptation.filter(function(e){return!(t._maxBitrate>0)||e.bandwidth<=t._maxBitrate});this._logger("mediaBuffer",u);var f=this._currentBitrateIdx,h=-1;1===i&&(h=this._doSpeedBufferControl(u,l).calc_bitrate),0===i&&(h=this._doBufferControl(u,l).calc_bitrate);var d=this._doLimitControl(f,h,c,l).hitLimitBitrate;this._doSizeLimitControl(l);var p=0;if(a&&o&&"function"==typeof o){var g=o(l[this._currentBitrateIdx].gearName),v=l[this._currentBitrateIdx].bandwidth;if(g)for(var m=l.length-1;m>-1;m--){var _=l[m];if(_.gearName.includes(g)&&_.bandwidtha){if("number"==typeof s&&t.currentTime>s||t.currentTime>t.duration/2)return null==r||r("log","[checkIfStartPreload] hit buffer",c,"startPreloadMinBuffer",a),!0}else if(t.currentTime+a+1>t.duration&&t.currentTime+c>t.duration-1)return null==r||r("log","[checkIfStartPreload] hit end"),!0}else{var l="number"==typeof u&&t.duration>u+5?u:t.duration/2,f=Math.min(t.currentTime+u,t.duration),h=n[1]-f;if(t.currentTime>l&&h>-1)return null==r||r("log","[checkIfStartPreload] hit minPos",l,"minCacheTime",f),!0}return!1}function i(t,e,r){var n=e.endPreloadControl,i=e.endPreloadMinBuffer,a=e.startPreloadMinBuffer;if(!t)return!1;if(n){if("number"==typeof a&&t.currentTime+a>=t.duration)return!1;var s=Math.max(o(t.buffered,t.currentTime)[1]-t.currentTime,0);if(s<=i)return null==r||r("log","[checkIfCancelPreload] hit buffer:",s,"endPreloadMinBuffer:",i,"video:","".concat(t.currentTime,"/").concat(t.duration)),!0}return!1}function o(t,e){var r=[0,0];if(t)for(var n=0,i=t.length;n0&&void 0!==arguments[0]?arguments[0]:0;return new Promise(function(e){return setTimeout(e,t)})}r.d(e,{_v:function(){return n}})},938310:function(t,e,r){"use strict";r.d(e,{d1:function(){return h}});var n=r(570783),i=r(364812),o=r(929415),a=r(674495),s=r(403826),u=r(264583);function c(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];try{if(!o.j)return null;if(t&&"undefined"!=typeof ManagedMediaSource)return ManagedMediaSource;return window.MediaSource}catch(t){}}function l(t){return/ManagedMediaSource/gi.test(Object.prototype.toString.call(t))}var f={APPEND:"appendBuffer",REMOVE:"removeBuffer",UPDATE_DURATION:"updateDuration"},h=function(){var t,e,r;function o(t,e){var r=this;(0,n.PA)(this,o),(0,n._x)(this,"media",null),(0,n._x)(this,"mediaSource",null),(0,n._x)(this,"_openPromise",(0,u.Qo)()),(0,n._x)(this,"_queue",Object.create(null)),(0,n._x)(this,"_sourceBuffer",Object.create(null)),(0,n._x)(this,"_mseFullFlag",{}),(0,n._x)(this,"_st",0),(0,n._x)(this,"_opst",0),(0,n._x)(this,"_logger",null),(0,n._x)(this,"_config",null),(0,n._x)(this,"_url",null),(0,n._x)(this,"_onStartStreaming",function(){r._logger.debug("startstreaming")}),(0,n._x)(this,"_onEndStreaming",function(){r._logger.debug("endstreaming")}),(0,n._x)(this,"_onSBUpdateEnd",function(t){var e=r._queue[t];if(e){var n=e[0];if((null==n?void 0:n.opName)!==f.UPDATE_DURATION&&e.shift(),n){var i,o,a=(0,u.je)()-r._opst;r._logger.debug("UpdateEnd(".concat(t,"/").concat(n.opName,")"),u.Kp.stringify(function(t){var e=[];if(t instanceof TimeRanges)for(var r=0;r0))}),e}},{key:"url",get:function(){return this._url}},{key:"duration",get:function(){var t;return(null===(t=this.mediaSource)||void 0===t?void 0:t.duration)||-1}},{key:"isEnded",get:function(){return!!this.mediaSource&&"ended"===this.mediaSource.readyState}},{key:"streaming",get:function(){return!l(this.mediaSource)||this.mediaSource.streaming}},{key:"isFull",value:function(t){return t?this._mseFullFlag[t]:this._mseFullFlag[o.VIDEO]}},{key:"updateDuration",value:function(t){var e=this,r=this.mediaSource&&this.mediaSource.duration>t;if(this.mediaSource&&this.mediaSource.duration>t){var n=0;if(Object.keys(this._sourceBuffer).forEach(function(t){try{n=Math.max(e.bufferEnd(t)||0,n)}catch(t){}}),t=1,i="open"===e.readyState,r&&i)try{e.endOfStream()}catch(t){}Object.keys(this._sourceBuffer).forEach(function(t){try{e.removeSourceBuffer(o._sourceBuffer[t])}catch(t){}}),l(e)&&(e.removeEventListener("startstreaming",this._onStartStreaming),e.removeEventListener("endstreaming",this._onEndStreaming))}if(this.media){this.media.disableRemotePlayback=!1,this.media.removeAttribute("src");try{this.media.load()}catch(t){}this.media=null}this.mediaSource=null,this._openPromise=(0,u.Qo)(),this._queue=Object.create(null),this._sourceBuffer=Object.create(null);case 8:case"end":return t.stop()}},t,this)})),function(){return e.apply(this,arguments)})},{key:"createSource",value:function(t,e){var r;if(!this._sourceBuffer[t]&&this.mediaSource){try{r=this._sourceBuffer[t]=this.mediaSource.addSourceBuffer(e)}catch(t){throw new a.Fc(a.wb.MEDIA,a.wb.SUB_TYPES.MSE_ADD_SB,t)}r.mimeType=e,r.addEventListener("updateend",this._onSBUpdateEnd.bind(this,t)),r.addEventListener("error",this._onSBUpdateError.bind(this,t))}}},{key:"changeType",value:function(t,e){var r=this,n=this._sourceBuffer[t];return this.mediaSource&&n&&n.mimeType!==e?"function"!=typeof n.changeType?Promise.reject(new a.Fc(a.wb.MEDIA,a.wb.SUB_TYPES.MSE_CHANGE_TYPE,Error("changeType is not a function"))):this._enqueueOp(t,function(){try{n.changeType(e)}catch(t){throw new a.Fc(a.wb.MEDIA,a.wb.SUB_TYPES.MSE_CHANGE_TYPE,t)}n.mimeType=e,r._onSBUpdateEnd(t)},"changeType",{mimeType:e}):Promise.resolve()}},{key:"createOrChangeSource",value:function(t,e){return this.createSource(t,e),this.changeType(t,e)}},{key:"append",value:function(t,e,r){var n=this;return e&&e.byteLength&&this._sourceBuffer[t]?this._enqueueOp(t,function(){var i;n.mediaSource&&!n.media.error&&(n._logger.debug("MSE APPEND START",r),n._opst=(0,u.je)(),null===(i=n._sourceBuffer[t])||void 0===i||i.appendBuffer(e))},f.APPEND,r):Promise.resolve()}},{key:"remove",value:function(t,e,r,n){var i=this,o=!1;return this._mseFullFlag[t]&&(o=!0),this._enqueueOp(t,function(){if(i.mediaSource&&!i.media.error){var o=i._sourceBuffer[t];if(e>=r||!o){i._onSBUpdateEnd(t);return}i._opst=(0,u.je)(),i._logger.debug("MSE REMOVE START",t,e,r,n),o.remove(e,r)}},f.REMOVE,n,o)}},{key:"clearBuffer",value:function(t,e){var r,n=this;return Object.keys(this._sourceBuffer).forEach(function(i){r=n.remove(i,t,e)}),r||Promise.resolve()}},{key:"clearAllBuffer",value:function(){var t,e=this;return Object.keys(this._sourceBuffer).forEach(function(r){var n=e._sourceBuffer[r];t=e.remove(r,0,i.l.end(i.l.get(n)))}),t}},{key:"clearOpQueues",value:function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=this._queue[t],n=this._sourceBuffer[t];this._logger.debug("MSE clearOpQueue",t,e,"sb updating: ",null==n?void 0:n.updating);var i=!1;if(null!=n&&n.updating&&(i=!0),e&&r){var o=i?Math.max(r.length-1,0):r.length;o>0&&r.splice(0,o);return}}},{key:"endOfStream",value:function(t){var e=this;return this.mediaSource&&"open"===this.mediaSource.readyState?this._enqueueBlockingOp(function(){var r=e.mediaSource;r&&"open"===r.readyState&&(e._logger.debug("MSE endOfStream START"),t?r.endOfStream(t):r.endOfStream())},"endOfStream"):Promise.resolve()}},{key:"setLiveSeekableRange",value:function(t,e){var r=this.mediaSource;!(t<0)&&!(e=0?(this._mseFullFlag[t]=!0,o.context&&"object"===(0,n.Ac)(o.context)&&(o.context.isFull=!0),this._logger.error("[MSE error], context,",o.context," ,name,",o.opName,",err,SourceBuffer is full"),null==o||null===(r=o.promise)||void 0===r||r.reject(new a.Fc(a.wb.MEDIA,a.wb.SUB_TYPES.MSE_FULL,s))):(this._logger.error(s),null==o||null===(i=o.promise)||void 0===i||i.reject(s.constructor===a.Fc?s:new a.Fc(a.wb.MEDIA,a.wb.SUB_TYPES.MSE_OTHER,s)),e.shift(),this._startQueue(t))}}}},{key:"setTimeoffset",value:function(t,e,r){var n=this;return this._enqueueOp(t,function(){e<0&&(e+=.001),n._sourceBuffer[t].timestampOffset=e,n._onSBUpdateEnd(t)},"setTimeoffset",r)}},{key:"abort",value:function(t,e){var r=this;return this.isOpened?this._enqueueOp(t,function(){var n;r._logger.debug("MSE abort",t,e),null===(n=r._sourceBuffer[t])||void 0===n||n.abort(),r._onSBUpdateEnd(t)},"abort",e):Promise.resolve()}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'video/mp4; codecs="avc1.42E01E,mp4a.40.2"',e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=c(e);if(!r)return!1;try{return r.isTypeSupported(t)}catch(e){return this._logger.error(t,e),!1}}},{key:"isMMSOnly",value:function(){return"undefined"!=typeof ManagedMediaSource&&"undefined"==typeof MediaSource}},{key:"getDefaultConfig",value:function(){return{openLog:!1,preferMMS:!1}}}]),o}();(0,n._x)(h,"VIDEO","video"),(0,n._x)(h,"AUDIO","audio")},205531:function(t,e,r){"use strict";r.d(e,{i:function(){return o}});var n=r(570783),i=r(65661);function o(t){return(0,n.Zj)({loaderType:i.t.FETCH,retry:0,retryDelay:0,timeout:0,request:null,onTimeout:void 0,onProgress:void 0,onRetryError:void 0,transformRequest:void 0,transformResponse:void 0,transformError:void 0,responseType:i.U.TEXT,range:void 0,url:"",params:void 0,method:"GET",headers:{},body:void 0,mode:void 0,credentials:void 0,cache:void 0,redirect:void 0,referrer:void 0,referrerPolicy:void 0,integrity:void 0,onProcessMinLen:0,processMaxGapTime:1/0},t)}},319049:function(t,e,r){"use strict";r.d(e,{j:function(){return l}});var n=r(570783),i=r(991372),o=r(602929),a=r(65661),s=r(637961),u=r(942155),c=r.n(u),l=function(t){(0,n.XW)(u,t);var e,r=(0,n.WY)(u);function u(){var t;return(0,n.PA)(this,u),t=r.call(this),(0,n._x)((0,n.Lc)(t),"_abortController",null),(0,n._x)((0,n.Lc)(t),"_timeoutTimer",null),(0,n._x)((0,n.Lc)(t),"_reader",null),(0,n._x)((0,n.Lc)(t),"_response",null),(0,n._x)((0,n.Lc)(t),"_aborted",!1),(0,n._x)((0,n.Lc)(t),"_index",-1),(0,n._x)((0,n.Lc)(t),"_range",null),(0,n._x)((0,n.Lc)(t),"_receivedLength",0),(0,n._x)((0,n.Lc)(t),"_running",!1),(0,n._x)((0,n.Lc)(t),"_logger",null),(0,n._x)((0,n.Lc)(t),"_vid",""),(0,n._x)((0,n.Lc)(t),"_firtstByte",0),(0,n._x)((0,n.Lc)(t),"_onProcessMinLen",0),(0,n._x)((0,n.Lc)(t),"_onCancel",null),(0,n._x)((0,n.Lc)(t),"_priOptions",null),(0,n._x)((0,n.Lc)(t),"_processMaxGapTime",1/0),(0,n._x)((0,n.Lc)(t),"curTimeout",0),t}return(0,n.qH)(u,[{key:"load",value:function(t){var e,r=this,u=t.url,c=t.vid,l=t.timeout,f=t.dynamicTimeoutIns,h=t.responseType,d=t.onProgress,p=t.index,g=t.onTimeout,v=t.onCancel,m=t.range,_=t.transformResponse,y=t.request,b=t.params,x=t.logger,w=t.method,S=t.headers,k=t.body,T=t.mode,O=t.credentials,E=t.cache,R=t.redirect,P=t.referrer,L=t.referrerPolicy,I=t.onProcessMinLen,A=t.priOptions,B=t.streamRes,C=t.firstMaxChunkSize,M=t.processMaxGapTime;this._logger=x,this._aborted=!1,this._onProcessMinLen=I,this._onCancel=v,this._abortController="undefined"!=typeof AbortController&&new AbortController,this._running=!0,this._receivedLength=0,this._index=p,this._range=m||[0,0],this._vid=c||u,this._priOptions=A||{},this._firstMaxChunkSize=C,this._processMaxGapTime=M;var j={method:w,headers:S,body:k,mode:T,credentials:O,cache:E,redirect:R,referrer:P,referrerPolicy:L,signal:null===(e=this._abortController)||void 0===e?void 0:e.signal},N=!1;clearTimeout(this._timeoutTimer),u=(0,o.G7)(u,b);var F=(0,o.Gu)(m);F&&(S=y?y.headers:j.headers=j.headers||(Headers?new Headers:{}),Headers&&S instanceof Headers?S.append("Range",F):S.Range=F);var D=f&&"function"==typeof f.getTimeout?f.getTimeout(l):l;this.curTimeout=D,D&&(this._timeoutTimer=setTimeout((0,n.x)((0,n.l5)().mark(function t(){var e;return(0,n.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return N=!0,f&&"function"==typeof f.update&&(r._logger.debug("[dytimeout] fetch timeout update rtt,",5*D),f.update(5*D)),t.next=4,r.cancel();case 4:g&&((e=new i.C(u,j,null,"timeout")).isTimeout=!0,g(e,{index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions}));case 5:case"end":return t.stop()}},t)})),D));var U=Date.now();return this._logger.debug("[fetch load start], index,",p,",range,",m,",[dytimeout]",D),new Promise(function(t,e){var c;(B?new Promise(function(t){t(B)}):fetch(y||u,y?void 0:j)).then((c=(0,n.x)((0,n.l5)().mark(function c(l){var g,v,y,b;return(0,n.l5)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(clearTimeout(r._timeoutTimer),r._response=l,!(r._aborted||!r._running)){n.next=4;break}return n.abrupt("return");case 4:if(_&&(l=_(l,u)||l),l.ok){n.next=7;break}throw new i.C(u,j,l,"bad network response");case 7:if(g=Date.now(),r._priOptions.rtt=g-U,f&&"function"==typeof f.update&&(r._logger.debug("[dytimeout] fetch update rtt,",r._priOptions.rtt),f.update(r._priOptions.rtt)),h!==a.U.TEXT){n.next=17;break}return n.next=13,l.text();case 13:case 20:v=n.sent,r._running=!1,n.next=39;break;case 17:if(h!==a.U.JSON){n.next=24;break}return n.next=20,l.json();case 24:if(!d){n.next=31;break}return r.resolve=t,r.reject=e,r._loadChunk(l,d,U,g),n.abrupt("return");case 31:return n.next=33,l.arrayBuffer();case 33:v=new Uint8Array(v=n.sent),r._running=!1,y=Date.now()-U,b=(0,o.pl)(v.byteLength,y),r.emit(s.K.REAL_TIME_SPEED,{speed:b,len:v.byteLength,time:y,vid:r._vid,index:r._index,range:r._range,priOptions:r._priOptions});case 39:r._logger.debug("[fetch load end], index,",p,",range,",m),t((0,o.rO)(v,!0,l,l.headers.get("Content-Length"),l.headers.get("age"),U,g,p,m,r._vid,r._priOptions));case 41:case"end":return n.stop()}},c)})),function(t){return c.apply(this,arguments)})).catch(function(t){var n;clearTimeout(r._timeoutTimer),r._running=!1,(!r._aborted||N)&&((t=t instanceof i.C?t:new i.C(u,j,null,null===(n=t)||void 0===n?void 0:n.message)).startTime=U,t.endTime=Date.now(),t.isTimeout=N,t.options={index:r._index,range:r._range,vid:r._vid,priOptions:r._priOptions},e(t))})})}},{key:"cancel",value:(e=(0,n.x)((0,n.l5)().mark(function t(){return(0,n.l5)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._aborted){t.next=2;break}return t.abrupt("return");case 2:if(this._aborted=!0,this._running=!1,!this._response){t.next=14;break}if(t.prev=5,!this._reader){t.next=9;break}return t.next=9,this._reader.cancel();case 9:t.next=13;break;case 11:t.prev=11,t.t0=t.catch(5);case 13:this._response=this._reader=null;case 14:if(this._abortController){try{this._abortController.abort()}catch(t){}this._abortController=null}this._onCancel&&this._onCancel({index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions});case 16:case"end":return t.stop()}},t,this,[[5,11]])})),function(){return e.apply(this,arguments)})},{key:"_loadChunk",value:function(t,e,r,a){var u,c,l,f,h=this;if(!t.body||!t.body.getReader){this._running=!1;var d=new i.C(t.url,"",t,"onProgress of bad response.body.getReader");d.options={index:this._index,range:this._range,vid:this._vid,priOptions:this._priOptions},this.reject(d);return}this._onProcessMinLen>0&&(this._cache=new Uint8Array(2097152),this._writeIdx=0);var p=this._reader=t.body.getReader(),g=Date.now();var v=(u=(0,n.x)((0,n.l5)().mark(function u(){var d,m,_,y,b,x,w,S,k,T,O;return(0,n.l5)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return l=Date.now(),n.prev=1,n.next=4,p.read();case 4:c=n.sent,f=Date.now(),n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(1),f=Date.now(),!h._aborted&&(h._running=!1,n.t0.options={index:h._index,range:h._range,vid:h._vid,priOptions:h._priOptions},h.reject(n.t0)),n.abrupt("return");case 13:if(_=(m=(null===(d=h._range)||void 0===d?void 0:d.length)>0?h._range[0]:0)+h._receivedLength,!h._aborted){n.next=19;break}return h._running=!1,e(void 0,!1,{range:[_,_],vid:h._vid,index:h._index,startTime:l,endTime:f,st:r,firstByteTime:a,priOptions:h._priOptions},t),n.abrupt("return");case 19:if(y=c.value?c.value.byteLength:0,h._receivedLength+=y,h._onProcessMinLen>0?h._writeIdx+y>=h._onProcessMinLen||c.done?((b=new Uint8Array(h._writeIdx+y)).set(h._cache.subarray(0,h._writeIdx),0),y>0&&b.set(c.value,h._writeIdx),h._writeIdx=0,h._logger.debug("【fetchLoader,onProgress enough】,done,",c.done,",len,",b.byteLength,", writeIdx,",h._writeIdx)):y>0&&h._writeIdx+y<2097152?(h._cache.set(c.value,h._writeIdx),h._writeIdx+=y,h._logger.debug("【fetchLoader,onProgress cache】,len,",y,", writeIdx,",h._writeIdx)):y>0&&(x=new Uint8Array(h._writeIdx+y+2048),h._logger.debug("【fetchLoader,onProgress extra start】,size,",h._writeIdx+y+2048,", datalen,",y,", writeIdx,",h._writeIdx),x.set(h._cache.subarray(0,h._writeIdx),0),y>0&&x.set(c.value,h._writeIdx),h._writeIdx+=y,delete h._cache,h._cache=x,h._logger.debug("【fetchLoader,onProgress extra end】,len,",y,", writeIdx,",h._writeIdx)):b=c.value,!(b&&b.byteLength>0||c.done)){n.next=29;break}h._firstMaxChunkSize&&(h._firtstByte?h._cacheData&&((S=new Uint8Array(h._cacheData.byteLength+b.byteLength)).set(h._cacheData,0),S.set(b,h._cacheData.byteLength),b=S,h._cacheData=null):(h._firtstByte++,w=b.slice(0,h._firstMaxChunkSize),h._cacheData=b.slice(h._firstMaxChunkSize),b=w)),h._logger.debug("【fetchLoader,onProgress call】,task,",h._range,", start,",_,", end,",m+h._receivedLength,", done,",c.done,r),e(b,c.done,{range:[h._range[0]+h._receivedLength-(b?b.byteLength:0),h._range[0]+h._receivedLength],vid:h._vid,index:h._index,startTime:l,endTime:f,st:r,firstByteTime:a,priOptions:h._priOptions},t),g=Date.now(),n.next=38;break;case 29:if(!(Date.now()-g>=h._processMaxGapTime)){n.next=38;break}return h._logger.debug("[onProgress timeout],task: ".concat(JSON.stringify(h._range)," done: ").concat(c.done," processMaxGapTime: ").concat(h._processMaxGapTime)),(k=new i.C(t.url,null,t,"process timeout")).options={index:h._index,range:h._range,vid:h._vid,priOptions:h._priOptions},h.running=!1,n.next=36,h.cancel();case 36:return h.reject(k),n.abrupt("return");case 38:c.done?(T=Date.now()-r,O=(0,o.pl)(h._receivedLength,T),h.emit(s.K.REAL_TIME_SPEED,{speed:O,len:h._receivedLength,time:T,vid:h._vid,index:h._index,range:h._range,priOptions:h._priOptions}),h._running=!1,h._logger.debug("[fetchLoader onProgress end],task,",h._range,",done,",c.done),h.resolve((0,o.rO)(c,!0,t,t.headers.get("Content-Length"),t.headers.get("age"),r,a,h._index,h._range,h._vid,h._priOptions))):h._firstMaxChunkSize?setTimeout(function(){v()},0):v();case 39:case"end":return n.stop()}},u,null,[[1,8]])})),function(){return u.apply(this,arguments)});v()}},{key:"receiveLen",get:function(){return this._receivedLength}},{key:"running",get:function(){return this._running},set:function(t){this._running=t}}],[{key:"isSupported",value:function(){return"undefined"!=typeof fetch}}]),u}(c())},178561:function(t){var e,r;e=0,r=function(){"use strict";function t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,e){return t(e={exports:{}},e.exports),e.exports}function r(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=P(e),this.reject=P(r)}function n(t){var e=t.length;return 3===e?(60*(60*Number(t[0])+Number(t[1]))*1e3+1e3*Number(t[2]))/1e3:2===e?(60*Number(t[0])*1e3+1e3*Number(t[1]))/1e3:Number(t[0])}function i(t){return t}function o(t,e){return t>=0&&t1&&void 0!==arguments[1]?arguments[1]:{},r={code:r3[t].code,msg:r3[t].msg};return rW(e).map(function(t){r[t]=e[t]}),r}function c(t,e,r,n,i){i?r(u(2,i),{format:n.format}):n.format?(t.list=n.list,t.format=n.format,t.styles=n.styles,e(t)):r(u(3))}function l(t){return new rU(function(e,r){if(t.list)return void e(t);if(t.json){var n=r0.parseJson(t.json);return t.list=n,t.format="json",void e(t)}t.stringContent&&!t.url?r0.parse(t.stringContent,function(n,i){c(t,e,r,n,i)}):t.url?new rq({url:t.url,type:"text"}).then(function(n){r0.parse(n.res.response,function(n,i){c(t,e,r,n,i)})}).catch(function(e){r(u(1,{statusText:e.statusText,status:e.status,type:e.type,message:"http load error",url:t.url}))}):r(u(8))})}function f(t,e){return!!(t.id&&t.id===e.id||t.language&&t.language===e.language)}var h,d,p=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return Object(p(t))},v={}.hasOwnProperty,m=function(t,e){return v.call(t,e)},_=e(function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)}),y=(_.version,e(function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),b=e(function(t){var e=y["__core-js_shared__"]||(y["__core-js_shared__"]={});(t.exports=function(t,r){return e[t]||(e[t]=void 0!==r?r:{})})("versions",[]).push({version:_.version,mode:"pure",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})}),x=0,w=Math.random(),S=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++x+w).toString(36))},k=b("keys"),T=function(t){return k[t]||(k[t]=S(t))},O=T("IE_PROTO"),E=Object.prototype,R=Object.getPrototypeOf||function(t){return m(t=g(t),O)?t[O]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?E:null},P=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},L=function(t,e,r){if(P(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}},I=function(t){return"object"==typeof t?null!==t:"function"==typeof t},A=function(t){if(!I(t))throw TypeError(t+" is not an object!");return t},B=function(t){try{return!!t()}catch(t){return!0}},C=!B(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),M=y.document,j=I(M)&&I(M.createElement),N=function(t){return j?M.createElement(t):{}},F=!C&&!B(function(){return 7!=Object.defineProperty(N("div"),"a",{get:function(){return 7}}).a}),D=function(t,e){var r,n;if(!I(t))return t;if(e&&"function"==typeof(r=t.toString)&&!I(n=r.call(t))||"function"==typeof(r=t.valueOf)&&!I(n=r.call(t))||!e&&"function"==typeof(r=t.toString)&&!I(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")},U=Object.defineProperty,H={f:C?Object.defineProperty:function(t,e,r){if(A(t),e=D(e,!0),A(r),F)try{return U(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},W=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},z=C?function(t,e,r){return H.f(t,e,W(1,r))}:function(t,e,r){return t[e]=r,t},q=function(t,e,r){var n,i,o,a=t&q.F,s=t&q.G,u=t&q.S,c=t&q.P,l=t&q.B,f=t&q.W,h=s?_:_[e]||(_[e]={}),d=h.prototype,p=s?y:u?y[e]:(y[e]||{}).prototype;for(n in s&&(r=e),r)(i=!a&&p&&void 0!==p[n])&&m(h,n)||(o=i?p[n]:r[n],h[n]=s&&"function"!=typeof p[n]?r[n]:l&&i?L(o,y):f&&p[n]==o?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(o):c&&"function"==typeof o?L(Function.call,o):o,c&&((h.virtual||(h.virtual={}))[n]=o,t&q.R&&d&&!d[n]&&z(d,n,o)))};q.F=1,q.G=2,q.S=4,q.P=8,q.B=16,q.W=32,q.U=64,q.R=128;var G=function(t,e){var r=(_.Object||{})[t]||Object[t],n={};n[t]=e(r),q(q.S+q.F*B(function(){r(1)}),"Object",n)};G("getPrototypeOf",function(){return function(t){return R(g(t))}});var V=_.Object.getPrototypeOf,Y=t(e(function(t){t.exports={default:V,__esModule:!0}})),J=t(e(function(t,e){e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}})),X=Math.ceil,Z=Math.floor,K=function(t){return isNaN(t=+t)?0:(t>0?Z:X)(t)},Q={},$={}.toString,tt=function(t){return $.call(t).slice(8,-1)},te=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==tt(t)?t.split(""):Object(t)},tr=function(t){return te(p(t))},tn=Math.min,ti=function(t){return t>0?tn(K(t),9007199254740991):0},to=Math.max,ta=Math.min,ts=(eF=!1,function(t,e,r){var n,i,o,a=tr(t),s=ti(a.length),u=(n=r,i=s,(n=K(n))<0?to(n+i,0):ta(n,i));if(eF&&e!=e){for(;s>u;)if((o=a[u++])!=o)return!0}else for(;s>u;u++)if((eF||u in a)&&a[u]===e)return eF||u||0;return!eF&&-1}),tu=T("IE_PROTO"),tc=function(t,e){var r,n=tr(t),i=0,o=[];for(r in n)r!=tu&&m(n,r)&&o.push(r);for(;e.length>i;)m(n,r=e[i++])&&(~ts(o,r)||o.push(r));return o},tl="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),tf=Object.keys||function(t){return tc(t,tl)},th=C?Object.defineProperties:function(t,e){A(t);for(var r,n=tf(e),i=n.length,o=0;i>o;)H.f(t,r=n[o++],e[r]);return t},td=y.document,tp=td&&td.documentElement,tg=T("IE_PROTO"),tv=function(){},tm=function(){var t,e=N("iframe"),r=tl.length;for(e.style.display="none",tp.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("