/*! For license information please see player-8.08f08e6c.js.LICENSE.txt */ "use strict";!function(U,F){"object"==typeof module&&"object"==typeof module.exports?F():"function"==typeof define&&define.amd?define([],F):(U="undefined"!=typeof globalThis?globalThis:U||self)&&F()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(U,F){"object"==typeof exports&&"undefined"!=typeof module?F(exports):"function"==typeof define&&define.amd?define(["exports"],F):F((U="undefined"!=typeof globalThis?globalThis:U||self).xss={})}(this,function(U){"use strict";var F=function(){return(F=Object.assign||function(U){for(var F,Q=1,B=arguments.length;Q/g,l=/&#([a-zA-Z0-9]*);?/gim,Z=/"/g,d=/:?/gim,J=/&newline;?/gim,S=/((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,W=/u\s*r\s*l\s*\(.*/gi,n=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,N=/"/g,E=function(U){return U.replace(R,"<").replace(V,">")},k={indexOf:function(U,F){var Q,B;for(Q=0,B=U.length;Q127&&B<2048?F+=String.fromCharCode(B>>6|192)+String.fromCharCode(63&B|128):F+=String.fromCharCode(B>>12|224)+String.fromCharCode(B>>6&63|128)+String.fromCharCode(63&B|128)}return F}(U);S>2,V=(3&F)<<4|(Q=U.charCodeAt(S++))>>4,l=(15&Q)<<2|(B=U.charCodeAt(S++))>>6,Z=63&B,isNaN(Q)?l=Z=64:isNaN(B)&&(Z=64),J=J+d.charAt(R)+d.charAt(V)+d.charAt(l)+d.charAt(Z);return J}function h(U){var F,Q,B,R,V,l,Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d="",J=0;for(U=U.replace(/[^A-Za-z0-9+/=]/g,"");J>4,Q=(15&R)<<4|(V=Z.indexOf(U.charAt(J++)))>>2,B=(3&V)<<6|(l=Z.indexOf(U.charAt(J++))),d+=String.fromCharCode(F),64!==V&&(d+=String.fromCharCode(Q)),64!==l&&(d+=String.fromCharCode(B));return function(U){for(var F="",Q=0,B=0,R=0,V=0;Q191&&B<224?(F+=String.fromCharCode((31&B)<<6|63&(V=U.charCodeAt(Q+1))),Q+=2):(V=U.charCodeAt(Q+1),F+=String.fromCharCode((15&B)<<12|(63&V)<<6|63&(R=U.charCodeAt(Q+2))),Q+=3);return F}(d)}function X(U,F,Q){var B="",R=0,V=!1,l=!1,Z=0,d=U.length,J="",S="";U:for(Z=0;Z"===W||Z===d-1){B+=Q(U.slice(R,V)),J=function(U){var F,Q=k.spaceIndex(U);return F=-1===Q?U.slice(1,-1):U.slice(1,Q+1),"/"===(F=k.trim(F).toLowerCase()).slice(0,1)&&(F=F.slice(1)),"/"===F.slice(-1)&&(F=F.slice(0,-1)),F}(S=U.slice(V,Z+1)),B+=F(V,B.length,J,S,"0;F--){var Q=U[F];if(" "!==Q)return"="===Q?F:-1}return -1}(U,J-1))){d(l,c(k.trim(U.slice(Q,J)))),l=!1,Q=J+1;continue}}}else{if(-1===(W=U.indexOf(S,J+1)))break;d(l,k.trim(U.slice(R+1,W))),l=!1,Q=(J=W)+1}}else l=U.slice(Q,J),Q=J+1,R='"'===U.charAt(Q)||"'"===U.charAt(Q)?Q:function(U,F){for(;FU.charCodeAt(Q)?" ":U.charAt(Q);return k.trim(F)}(U=(U=(U=U.replace(Z,'"')).replace(l,function(U,F){return"x"===F[0]||"X"===F[0]?String.fromCharCode(parseInt(F.substr(1),16)):String.fromCharCode(parseInt(F,10))})).replace(d,":").replace(J," "))}(Q),"href"===F||"src"===F){if("#"===(Q=k.trim(Q)))return"#";if("http://"!==Q.substr(0,7)&&"https://"!==Q.substr(0,8)&&"mailto:"!==Q.substr(0,7)&&"tel:"!==Q.substr(0,4)&&"data:image/"!==Q.substr(0,11)&&"ftp://"!==Q.substr(0,6)&&"./"!==Q.substr(0,2)&&"../"!==Q.substr(0,3)&&"#"!==Q[0]&&"/"!==Q[0])return""}else if("background"===F){if(S.lastIndex=0,S.test(Q))return""}else if("style"===F&&(n.lastIndex=0,n.test(Q)||(W.lastIndex=0,W.test(Q)&&(S.lastIndex=0,S.test(Q)))))return"";return Q=function(U){return U=E(U=U.replace(N,"""))}(Q)}var p=function(U){return"string"==typeof U?U.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},a=function(){function U(U){var F=function(U){var F={};for(var Q in U)F[Q]=U[Q];return F}(U||{});F.stripIgnoreTag&&(F.onIgnoreTag,F.onIgnoreTag=function(){return""}),F.whiteList={},F.onTag=function(){},F.onTagAttr=function(){},F.onIgnoreTag=function(){},F.onIgnoreTagAttr=function(){},F.safeAttrValue=T,F.escapeHtml=E,this.options=Object.assign(F,U)}return U.prototype.process=function(U){if(!(U=(U=U||"").toString()))return"";var F,Q,B,R,V,l,Z=this.options,d=Z.whiteList,J=Z.onTag,S=Z.onIgnoreTag,W=Z.onTagAttr,n=Z.onIgnoreTagAttr,N=Z.safeAttrValue,E=Z.escapeHtml;Z.stripBlankChar&&(U=(F=(F=U.split("")).filter(function(U){var F=U.charCodeAt(0);return!(127===F||F<=31&&10!==F&&13!==F)})).join("")),Z.allowCommentTag||(U=function(U){for(var F="",Q=0;Q");var Z=function(U){var F=k.spaceIndex(U);if(-1===F)return{html:"",closing:"/"===U[U.length-2]};var Q="/"===(U=k.trim(U.slice(F+1,-1)))[U.length-1];return Q&&(U=k.trim(U.slice(0,-1))),{html:U,closing:Q}}(B),m=d[Q],c=C(Z.html,function(U,F){var B=-1!==k.indexOf(m,U),R=W(Q,U,F,B);return null==R?B?(F=N(Q,U,F,null))?"".concat(U,'="').concat(F,'"'):U:null==(R=n(Q,U,F,B))?void 0:R:R});return B="<".concat(Q),c&&(B+=" ".concat(c)),Z.closing&&(B+=" /"),B+=">"}return null==(l=S(Q,B,V))?E(B):l},E);return m&&(c=m.remove(c)),c},U}(),G=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")(),y=new(function(){function U(){var U=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var F,Q,B="douyin_web";if(!k.includes(B,"bid"))return B;if(U.config&&U.config.bid)return U.config.bid;if(G&&G._xssBid)return G._xssBid;if(G&&G.slardar&&"function"==typeof G.slardar.config){var R=(G.slardar.config()||{}).bid;if(R)return R}if(G&&G.Slardar&&"function"==typeof G.Slardar.config){var V=(G.Slardar.config()||{}).bid;if(V)return V}return(null===(Q=null===(F=null==G?void 0:G.Slardar)||void 0===F?void 0:F._baseParams)||void 0===Q?void 0:Q.bid)||"argus"},this.getConfigRegion=function(){var F;return k.includes("cn","region")?U.config&&U.config.region?U.config.region:((null===(F=null==G?void 0:G.gfdatav1)||void 0===F?void 0:F.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var F={cn:h("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:h("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:h("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:h("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:h("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:h("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:h("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[U.getConfigRegion()];if(F)return F+U.getSlardarBid()}}return U.prototype.setConfig=function(U){this.config=U},U.prototype.upload=function(){var U=this,F=this.gerReportUrl();!this.lock&&F&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var Q=U.batchData.slice(0,100);U.batchData=U.batchData.slice(100),G.fetch(F,{method:"post",body:JSON.stringify(Q),headers:{"Content-Type":"application/json"}}).catch(function(U){}),U.lock=!1,U.upload()},this.timeout))},U.prototype.generateKey=function(U){return U.collectKey?[U.collectMode,U.collectKey].join("___"):""},U.prototype.push=function(U){this.batchData.push(U),this.upload()},U.prototype.report=function(U){var F=this.generateKey(U);if(G.fetch&&U.collectKey){var Q="object"==typeof window?window.location.href:"SSR";U.documentUrl=Q;var B={age:Math.floor(Date.now()),type:"xss",url:Q,body:U,"user-agent":""};"enforce"===U.disposition&&"SSR"!==Q||(B.url=F),"SSR"===Q&&(B.url="SSR___".concat(B.url),B.body.ssr=!0),this.push(B)}},U}()),D=function(U){for(var F=0,Q=function(Q){Array.isArray(U[Q])?0===U[Q].length?delete U[Q]:(U[Q]=k.from(k.uniq(U[Q])),F+=U[Q].length):0===k.keys(U[Q]).length?delete U[Q]:k.keys(U[Q]).forEach(function(B){U[Q][B]=k.from(k.uniq(U[Q][B])),F+=U[Q][B].length})},B=0,R=k.keys(U);B0)return F&&F("javascript:"),!1;if(/^javascript:/i.test(U)){var R=U.slice(11).replace(/\s/g,"").trim();return!!k.some(["void","void(0)","void0","false","undefined",";"],function(U){return U===R})||(F&&F("javascript:"),!1)}return!0}var x=function(U,F){var Q,B,R="<%= isSaveValidUrl =>";if("string"!=typeof U||(B=Number("<%= urlLimit =>"),void 0!==Q&&(B=Q),"NaN"!==U.toString()&&-1!==B&&U.length>=B)||M(U,F))return U;try{if(!0===(R=JSON.parse(R))||"true"===R){var V=new URL(U);return V.origin+V.pathname}}catch(U){}return"#"};function s(U,F,B){if(void 0===U&&(U=""),void 0===F&&(F=[]),"string"!=typeof U)return!0;if(!M(U=i(U)))return!1;var R,V={url:(R=U.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:R[1],slash:R[2],host:R[3],port:R[4],path:R[5],query:R[6],hash:R[7]},l=V.scheme,Z=V.host;return B?!!B(U):!(!l||!Z)&&(!k.includes(["http","https","file"],l)||("object"==typeof window&&window&&(F=Q(Q([],F,!0),[location.host],!1)),k.some(F,function(U){return!!(U instanceof RegExp&&U.test(Z))||U===Z})))}var t={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:[]},K={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var U=D(this.collect),F=U.count,Q=U.ret;return this.collect=null,{collectKey:0===F?null:JSON.stringify(Q),collectMode:"white"}},onIgnoreTagAttr:function(U,F,B){return U&&k.indexOf(["href","src"],F)>-1?K.domainWhiteList&&Array.isArray(K.domainWhiteList)&&K.domainWhiteList.length>0&&!s(B,Q([],K.domainWhiteList,!0))?"":"".concat(F,'="').concat(x(B,function(U){var F;null===(F=K.collect)||void 0===F||F.filterProtocol.push(U)}),'"'):U&&(k.indexOf(["style","class","id"],F)>-1||F.indexOf("data-")>-1)?"".concat(F,'="').concat(B,'"'):(K.collect.whiteList[U]=K.collect.whiteList[U]||[],void K.collect.whiteList[U].push(F))},onIgnoreTag:function(U,F){if("style"===U)return F;X(F,function(U,F,Q,B){C(L(B).html.replace("/",""),function(U){K.collect.whiteList[Q]=K.collect.whiteList[Q]||[],K.collect.whiteList[Q].push(U)})},E)},whiteList:t,mergeWhiteList:function(U){for(var F,Q={},B=0,R=k.keys(t);B");var V=L(B),l=C(V.html,function(U,F){var B,R=0;if(H.blackList[Q]&&k.includes(H.blackList[Q],U)&&(j.collect.blackList[Q]=j.collect.blackList[Q]||[],j.collect.blackList[Q].push(U),R++),H.blackAttrRegExps.length&&H.blackAttrRegExps.some(function(F){return F.test(U)})&&k.forEach(H.blackAttrRegExps,function(F){F.test(U)&&(j.collect.blackAttrRegExps.push("".concat(F.toString(),"->").concat(U)),R++)}),H.blackAttrs.length&&k.includes(H.blackAttrs,U)&&(H.blackAttrs.push(U),R++),!R){if(H.filterList&&H.filterList[Q]&&k.includes(H.filterList[Q],U)){var V=x(F,function(U){var F;null===(F=j.collect)||void 0===F||F.filterProtocol.push(U)});return V!==F&&(j.collect.filterList[Q]=j.collect.filterList[Q]||[],j.collect.filterList[Q].push(U)),F?"".concat(U,"='").concat(V,"'"):U}return H.filterAttrs&&k.includes(H.filterAttrs,U)?((V=x(F,function(U){var F;null===(F=j.collect)||void 0===F||F.filterProtocol.push(U)}))!==F&&(null===(B=j.collect)||void 0===B||B.filterAttrs.push(U)),F?"".concat(U,"='").concat(V,"'"):U):F?"".concat(U,"='").concat(F,"'"):U}});return B="<".concat(Q),l&&(B+=" ".concat(l)),V.closing&&(B+=" /"),B+=">"},E);null===(Q=j.collect)||void 0===Q||Q.blackTags.push(U)}},v=function(U){var F=U.reportOnly,Q=void 0===F||F,B=U.block;return Q&&"all"===Q?"report":("string"==typeof Q&&("true"===Q&&(Q=!0),"false"===Q&&(Q=!1)),B?"enforce":Q?"report":"enforce")},w=function(U){return function(Q,B,R){if(!Q||"string"!=typeof Q)return Q;var V=B;U===Y&&(V=K).initCollect();var l=U(Q,V);if(p(l)===p(Q))return Q;if(!R)return l;var Z=R.logType,d=v(R),J=V.removeCollect();return y.report(F(F({type:Z,disposition:d},J),{sourceText:b(Q),filterText:b(l)})),"enforce"===d?l:Q}},P=w(function(U,F){return void 0===F&&(F={}),F&&F.whiteList||(F.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 a(F).process(U)}),O=w(Y),g=function(U,F,Q){var B=[],R=x(U,function(U){B.push(U)});if(R===U)return U;B=k.from(k.uniq(B));var V=F||Q||{};if(!V)return R;var l=V.logType,Z=v(Q);return y.report({type:l,disposition:Z,collectKey:B.join("___"),collectData:JSON.stringify(B),collectMode:"black",sourceText:b(U),filterText:b(R)}),"enforce"===Z?R:U},r=G._xssProject||{},f=G.xssNamespace||{},A="3.0.26",q={FilterXSS:a,version:A,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:P,_filterXSS:O,filterUrl:g,Config:K,BlackConfig:j,project:r,setProjectName:function(U){r[U]=this,G._xssProjectName=U}};f.douyin_web=q,G.xssNamespace=f,G.Math&&!G.Math.xssNamespace&&(G.Math.xssNamespace=f),r[A]=q,G.globalThis=G,G.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:q},G.xss=q,G.isSafeUrl=s,G.isSafeDomain=s,G.isSafeProtocol=M,G._xssProject=r,G._xssProjectName&&(r[G._xssProjectName]=q);var _=q.setProjectName.bind(q);U.BlackConfig=j,U.Config=K,U.FilterXSS=a,U._filterXSS=O,U.filterUrl=g,U.filterXSS=P,U.isSafeDomain=s,U.isSafeProtocol=M,U.isSafeUrl=s,U.project=r,U.setProjectName=_,U.setXssNamespace=function(U){var F=U.appId,Q=U.bid,B=U.region;f[F]=q;K.bid=Q,K.region=B,K.enabled=!0},U.xssNamespace=f,Object.defineProperty(U,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["99794"],{718828:function(U,F,Q){Q.d(F,{XO:function(){return l},cM:function(){return d},i5:function(){return V},qw:function(){return Z}}),Q(346984);var B={1:"debug",2:"log",3:"warn",4:"error"},R=function(){return function(){try{return"undefined"!=typeof localStorage&&"setItem"in window.localStorage&&!!window.localStorage.setItem}catch(U){return!1}}()&&!function(){var U="local_storage_support_test";try{return window.localStorage.setItem(U,"true"),window.localStorage.removeItem(U),!1}catch(U){return!0}}()}(),V=Z(),l=function(){if(R)try{return!!window.localStorage.getItem("playertestlog")}catch(U){}return!1}();function Z(){if(R)try{return!!window.localStorage.getItem("playerlog")}catch(U){}return!1}function d(U,F,Q){var R=B[F];if(R&&null!=U&&U[R]){for(var V=arguments.length,l=Array(V>3?V-3:0),Z=3;Z0)&&U&&(window.URL||window.webkitlRL).revokeObjectURL(U)}}},771098:function(U,F,Q){Q.d(F,{i:function(){return R}});var B=Q(548814);function R(U){return"boolean"!=typeof U.fixEditListOffset&&delete U.fixEditListOffset,(0,B.Zj)({vid:"",moovEnd:8e4,segmentDuration:2,maxDownloadInfoSize:30,responseType:"arraybuffer",fixEditListOffset:!0,cache:null},U)}},516968:function(U,F,Q){Q.d(F,{mf:function(){return n}});var B=Q(70427),R=Q(261237),V=Q(265614),l=Q(604165),Z=Q(341284),d=Q(673747),J=Q(372196),S=Q(982143),W=Q(942155),n=function(U){(0,B.XW)(W,U);var F,Q=(0,B.WY)(W);function W(U){var F;return(0,B.PA)(this,W),F=Q.call(this,U),(0,B._x)((0,B.Lc)(F),"type",V.t.FETCH),(0,B._x)((0,B.Lc)(F),"_queue",[]),(0,B._x)((0,B.Lc)(F),"_alive",[]),(0,B._x)((0,B.Lc)(F),"_currentTask",null),(0,B._x)((0,B.Lc)(F),"_finnalUrl",""),(0,B._x)((0,B.Lc)(F),"_config",void 0),F._config=(0,l.i)(U),(F._config.loaderType===V.t.XHR||!R.j.isSupported())&&(F.type=V.t.XHR),F.log=U.logger,F}return(0,B.qH)(W,[{key:"isFetch",value:function(){return this.type===V.t.FETCH}},{key:"load",value:function(U){var F=this,Q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"!=typeof U&&U?Q=U:Q.url=U||Q.url||this._config.url,(Q=Object.assign({},this._config,Q)).params&&(Q.params=Object.assign({},Q.params)),Q.headers&&(0,d.PO)(Q.headers)&&(Q.headers=Object.assign({},Q.headers)),Q.body&&(0,d.PO)(Q.body)&&(Q.body=Object.assign({},Q.body)),Q.transformRequest&&(Q=Q.transformRequest(Q)||Q),Q.logger=this.log,Q.dynamicTimeoutIns=this._config.dynamicTimeoutIns;var B=new Z.i(this.type,Q);return B.loader.on(S.K.REAL_TIME_SPEED,function(U){F.emit(S.K.REAL_TIME_SPEED,U)}),this._queue.push(B),1===this._queue.length&&(!this._currentTask||!this._currentTask.running)&&this._processTask(),B.promise}},{key:"cancel",value:(F=(0,B.x)((0,B.l5)().mark(function U(){var F;return(0,B.l5)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return F=this._queue.map(function(U){return U.cancel()}).concat(this._alive.map(function(U){return U.cancel()})),this._currentTask&&F.push(this._currentTask.cancel()),this._queue=[],this._alive=[],U.next=6,Promise.all(F);case 6:return U.next=8,(0,J._v)();case 8:case"end":return U.stop()}},U,this)})),function(){return F.apply(this,arguments)})},{key:"_processTask",value:function(){var U=this;if(this._currentTask=this._queue.shift(),!!this._currentTask){this._currentTask.alive&&this._alive.push(this._currentTask);var F=this._currentTask.exec().catch(function(U){});F&&"function"==typeof F.finally&&F.finally(function(){var F,Q;null!==(F=U._currentTask)&&void 0!==F&&F.alive&&(null===(Q=U._alive)||void 0===Q?void 0:Q.length)>0&&(U._alive=U._alive.filter(function(F){return F&&F!==U._currentTask})),U._processTask()})}}}],[{key:"isFetchSupport",value:function(){return R.j.isSupported()}}]),W}(Q.n(W)())}}]);