/*! For license information please see 60672.e5e13500.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,n=1,r=arguments.length;n/g,o=/&#([a-zA-Z0-9]*);?/gim,s=/"/g,l=/:?/gim,c=/&newline;?/gim,u=/((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,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,f=/"/g,p=function(t){return t.replace(i,"<").replace(a,">")},m={indexOf:function(t,e){var n,r;for(n=0,r=t.length;n127&&r<2048?e+=String.fromCharCode(r>>6|192)+String.fromCharCode(63&r|128):e+=String.fromCharCode(r>>12|224)+String.fromCharCode(r>>6&63|128)+String.fromCharCode(63&r|128)}return e}(t);u>2,a=(3&e)<<4|(n=t.charCodeAt(u++))>>4,o=(15&n)<<2|(r=t.charCodeAt(u++))>>6,s=63&r,isNaN(n)?o=s=64:isNaN(r)&&(s=64),c=c+l.charAt(i)+l.charAt(a)+l.charAt(o)+l.charAt(s);return c}function b(t){var e,n,r,i,a,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");c>4,n=(15&i)<<4|(a=s.indexOf(t.charAt(c++)))>>2,r=(3&a)<<6|(o=s.indexOf(t.charAt(c++))),l+=String.fromCharCode(e),64!==a&&(l+=String.fromCharCode(n)),64!==o&&(l+=String.fromCharCode(r));return function(t){for(var e="",n=0,r=0,i=0,a=0;n191&&r<224?(e+=String.fromCharCode((31&r)<<6|63&(a=t.charCodeAt(n+1))),n+=2):(a=t.charCodeAt(n+1),e+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&(i=t.charCodeAt(n+2))),n+=3);return e}(l)}function _(t,e,n){var r="",i=0,a=!1,o=!1,s=0,l=t.length,c="",u="";t:for(s=0;s"===d||s===l-1){r+=n(t.slice(i,a)),c=function(t){var e,n=m.spaceIndex(t);return e=-1===n?t.slice(1,-1):t.slice(1,n+1),"/"===(e=m.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}(u=t.slice(a,s+1)),r+=e(a,r.length,c,u,"0;e--){var n=t[e];if(" "!==n)return"="===n?e:-1}return -1}(t,c-1))){l(o,v(m.trim(t.slice(n,c)))),o=!1,n=c+1;continue}}}else{if(-1===(d=t.indexOf(u,c+1)))break;l(o,m.trim(t.slice(i+1,d))),o=!1,n=(c=d)+1}}else o=t.slice(n,c),n=c+1,i='"'===t.charAt(n)||"'"===t.charAt(n)?n:function(t,e){for(;et.charCodeAt(n)?" ":t.charAt(n);return m.trim(e)}(t=(t=(t=t.replace(s,'"')).replace(o,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})).replace(l,":").replace(c," "))}(n),"href"===e||"src"===e){if("#"===(n=m.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===e){if(u.lastIndex=0,u.test(n))return""}else if("style"===e&&(h.lastIndex=0,h.test(n)||(d.lastIndex=0,d.test(n)&&(u.lastIndex=0,u.test(n)))))return"";return n=function(t){return t=p(t=t.replace(f,"""))}(n)}var L=function(t){return"string"==typeof t?t.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},P=function(){function t(t){var e=function(t){var e={};for(var n in t)e[n]=t[n];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=S,e.escapeHtml=p,this.options=Object.assign(e,t)}return t.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e,n,r,i,a,o,s=this.options,l=s.whiteList,c=s.onTag,u=s.onIgnoreTag,d=s.onTagAttr,h=s.onIgnoreTagAttr,f=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="",n=0;n");var s=function(t){var e=m.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var n="/"===(t=m.trim(t.slice(e+1,-1)))[t.length-1];return n&&(t=m.trim(t.slice(0,-1))),{html:t,closing:n}}(r),g=l[n],v=w(s.html,function(t,e){var r=-1!==m.indexOf(g,t),i=d(n,t,e,r);return null==i?r?(e=f(n,t,e,null))?"".concat(t,'="').concat(e,'"'):t:null==(i=h(n,t,e,r))?void 0:i:i});return r="<".concat(n),v&&(r+=" ".concat(v)),s.closing&&(r+=" /"),r+=">"}return null==(o=u(n,r,a))?p(r):o},p);return g&&(v=g.remove(v)),v},t}(),k=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")(),C=new(function(){function t(){var t=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var e,n,r="douyin_web";if(!m.includes(r,"bid"))return r;if(t.config&&t.config.bid)return t.config.bid;if(k&&k._xssBid)return k._xssBid;if(k&&k.slardar&&"function"==typeof k.slardar.config){var i=(k.slardar.config()||{}).bid;if(i)return i}if(k&&k.Slardar&&"function"==typeof k.Slardar.config){var a=(k.Slardar.config()||{}).bid;if(a)return a}return(null===(n=null===(e=null==k?void 0:k.Slardar)||void 0===e?void 0:e._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var e;return m.includes("cn","region")?t.config&&t.config.region?t.config.region:((null===(e=null==k?void 0:k.gfdatav1)||void 0===e?void 0:e.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var e={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("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 n=t.batchData.slice(0,100);t.batchData=t.batchData.slice(100),k.fetch(e,{method:"post",body:JSON.stringify(n),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(k.fetch&&t.collectKey){var n="object"==typeof window?window.location.href:"SSR";t.documentUrl=n;var r={age:Math.floor(Date.now()),type:"xss",url:n,body:t,"user-agent":""};"enforce"===t.disposition&&"SSR"!==n||(r.url=e),"SSR"===n&&(r.url="SSR___".concat(r.url),r.body.ssr=!0),this.push(r)}},t}()),x=function(t){for(var e=0,n=function(n){Array.isArray(t[n])?0===t[n].length?delete t[n]:(t[n]=m.from(m.uniq(t[n])),e+=t[n].length):0===m.keys(t[n]).length?delete t[n]:m.keys(t[n]).forEach(function(r){t[n][r]=m.from(m.uniq(t[n][r])),e+=t[n][r].length})},r=0,i=m.keys(t);r0)return e&&e("javascript:"),!1;if(/^javascript:/i.test(t)){var i=t.slice(11).replace(/\s/g,"").trim();return!!m.some(["void","void(0)","void0","false","undefined",";"],function(t){return t===i})||(e&&e("javascript:"),!1)}return!0}var O=function(t,e){var n,r,i="<%= isSaveValidUrl =>";if("string"!=typeof t||(r=Number("<%= urlLimit =>"),void 0!==n&&(r=n),"NaN"!==t.toString()&&-1!==r&&t.length>=r)||T(t,e))return t;try{if(!0===(i=JSON.parse(i))||"true"===i){var a=new URL(t);return a.origin+a.pathname}}catch(t){}return"#"};function R(t,e,r){if(void 0===t&&(t=""),void 0===e&&(e=[]),"string"!=typeof t)return!0;if(!T(t=E(t)))return!1;var i,a={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]},o=a.scheme,s=a.host;return r?!!r(t):!(!o||!s)&&(!m.includes(["http","https","file"],o)||("object"==typeof window&&window&&(e=n(n([],e,!0),[location.host],!1)),m.some(e,function(t){return!!(t instanceof RegExp&&t.test(s))||t===s})))}var W={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:[]},I={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var t=x(this.collect),e=t.count,n=t.ret;return this.collect=null,{collectKey:0===e?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(t,e,r){return t&&m.indexOf(["href","src"],e)>-1?I.domainWhiteList&&Array.isArray(I.domainWhiteList)&&I.domainWhiteList.length>0&&!R(r,n([],I.domainWhiteList,!0))?"":"".concat(e,'="').concat(O(r,function(t){var e;null===(e=I.collect)||void 0===e||e.filterProtocol.push(t)}),'"'):t&&(m.indexOf(["style","class","id"],e)>-1||e.indexOf("data-")>-1)?"".concat(e,'="').concat(r,'"'):(I.collect.whiteList[t]=I.collect.whiteList[t]||[],void I.collect.whiteList[t].push(e))},onIgnoreTag:function(t,e){if("style"===t)return e;_(e,function(t,e,n,r){w(A(r).html.replace("/",""),function(t){I.collect.whiteList[n]=I.collect.whiteList[n]||[],I.collect.whiteList[n].push(t)})},p)},whiteList:W,mergeWhiteList:function(t){for(var e,n={},r=0,i=m.keys(W);r");var a=A(r),o=w(a.html,function(t,e){var r,i=0;if(M.blackList[n]&&m.includes(M.blackList[n],t)&&(X.collect.blackList[n]=X.collect.blackList[n]||[],X.collect.blackList[n].push(t),i++),M.blackAttrRegExps.length&&M.blackAttrRegExps.some(function(e){return e.test(t)})&&m.forEach(M.blackAttrRegExps,function(e){e.test(t)&&(X.collect.blackAttrRegExps.push("".concat(e.toString(),"->").concat(t)),i++)}),M.blackAttrs.length&&m.includes(M.blackAttrs,t)&&(M.blackAttrs.push(t),i++),!i){if(M.filterList&&M.filterList[n]&&m.includes(M.filterList[n],t)){var a=O(e,function(t){var e;null===(e=X.collect)||void 0===e||e.filterProtocol.push(t)});return a!==e&&(X.collect.filterList[n]=X.collect.filterList[n]||[],X.collect.filterList[n].push(t)),e?"".concat(t,"='").concat(a,"'"):t}return M.filterAttrs&&m.includes(M.filterAttrs,t)?((a=O(e,function(t){var e;null===(e=X.collect)||void 0===e||e.filterProtocol.push(t)}))!==e&&(null===(r=X.collect)||void 0===r||r.filterAttrs.push(t)),e?"".concat(t,"='").concat(a,"'"):t):e?"".concat(t,"='").concat(e,"'"):t}});return r="<".concat(n),o&&(r+=" ".concat(o)),a.closing&&(r+=" /"),r+=">"},p);null===(n=X.collect)||void 0===n||n.blackTags.push(t)}},D=function(t){var e=t.reportOnly,n=void 0===e||e,r=t.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),r?"enforce":n?"report":"enforce")},G=function(t){return function(n,r,i){if(!n||"string"!=typeof n)return n;var a=r;t===j&&(a=I).initCollect();var o=t(n,a);if(L(o)===L(n))return n;if(!i)return o;var s=i.logType,l=D(i),c=a.removeCollect();return C.report(e(e({type:s,disposition:l},c),{sourceText:y(n),filterText:y(o)})),"enforce"===l?o:n}},J=G(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 P(e).process(t)}),H=G(j),z=function(t,e,n){var r=[],i=O(t,function(t){r.push(t)});if(i===t)return t;r=m.from(m.uniq(r));var a=e||n||{};if(!a)return i;var o=a.logType,s=D(n);return C.report({type:o,disposition:s,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:y(t),filterText:y(i)}),"enforce"===s?i:t},B=k._xssProject||{},U=k.xssNamespace||{},K="3.0.26",Q={FilterXSS:P,version:K,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:J,_filterXSS:H,filterUrl:z,Config:I,BlackConfig:X,project:B,setProjectName:function(t){B[t]=this,k._xssProjectName=t}};U.douyin_web=Q,k.xssNamespace=U,k.Math&&!k.Math.xssNamespace&&(k.Math.xssNamespace=U),B[K]=Q,k.globalThis=k,k.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:Q},k.xss=Q,k.isSafeUrl=R,k.isSafeDomain=R,k.isSafeProtocol=T,k._xssProject=B,k._xssProjectName&&(B[k._xssProjectName]=Q);var q=Q.setProjectName.bind(Q);t.BlackConfig=X,t.Config=I,t.FilterXSS=P,t._filterXSS=H,t.filterUrl=z,t.filterXSS=J,t.isSafeDomain=R,t.isSafeProtocol=T,t.isSafeUrl=R,t.project=B,t.setProjectName=q,t.setXssNamespace=function(t){var e=t.appId,n=t.bid,r=t.region;U[e]=Q;I.bid=n,I.region=r,I.enabled=!0},t.xssNamespace=U,Object.defineProperty(t,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["60672"],{440608:function(t,e,n){"use strict";function r(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(t){n(t);return}s.done?e(l):Promise.resolve(l).then(r,i)}n.d(e,{p:function(){return c}});function i(t){for(var e=1;e0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=400)throw Error(m||p.statusText);return g=m.trim()?JSON.parse(m):{},a(g),[3,5];case 4:var _,w;return _=v=b.sent(),y=(null!=(w=Error)&&"undefined"!=typeof Symbol&&w[Symbol.hasInstance]?!!w[Symbol.hasInstance](_):_ instanceof w)?v:Error("Network request failed"),l(y),[3,5];case 5:return[2]}})},(l=function(){var e=this,n=arguments;return new Promise(function(i,a){var o=t.apply(e,n);function s(t){r(o,i,a,s,l,"next",t)}function l(t){r(o,i,a,s,l,"throw",t)}s(void 0)})}).apply(this,arguments)}var c=function(){return window.fetch?{get:function(t){s(a(i({},t),{method:"GET"})).catch(o)},post:function(t){s(a(i({},t),{method:"POST"})).catch(o)}}:{get:o,post:o}}},66472:function(t,e,n){"use strict";n.r(e),n.d(e,{componentsToDebugString:function(){return tt},default:function(){return ti},getFullscreenElement:function(){return W},getScreenFrame:function(){return Y},hashComponents:function(){return te},isAndroid:function(){return I},isChromium:function(){return E},isDesktopSafari:function(){return O},isEdgeHTML:function(){return A},isGecko:function(){return R},isTrident:function(){return j},isWebKit:function(){return T},load:function(){return tr},loadSources:function(){return C},murmurX64Hash128:function(){return ta},prepareForSources:function(){return tn},sources:function(){return $},transformSource:function(){return x},withIframe:function(){return Z}});var r,i,a=n(954090),o="3.4.2";function s(t,e){return new Promise(function(n){return setTimeout(n,t,e)})}function l(t){return!!t&&"function"==typeof t.then}function c(t,e){try{var n=t();l(n)?n.then(function(t){return e(!0,t)},function(t){return e(!1,t)}):e(!0,n)}catch(t){e(!1,t)}}function u(t,e,n){return void 0===n&&(n=16),(0,a.mG)(this,void 0,void 0,function(){var r,i,o,l;return(0,a.Jh)(this,function(a){switch(a.label){case 0:r=Array(t.length),i=Date.now(),o=0,a.label=1;case 1:if(!(o=i+n))return[3,3];return i=l,[4,s(0)];case 2:a.sent(),a.label=3;case 3:return++o,[3,1];case 4:return[2,r]}})})}function d(t){t.then(void 0,function(){})}function h(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]+e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]+e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]+e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]+e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function f(t,e){t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]],e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]];var n=[0,0,0,0];return n[3]+=t[3]*e[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=t[2]*e[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=t[3]*e[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=t[1]*e[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[2]*e[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=t[3]*e[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=t[0]*e[3]+t[1]*e[2]+t[2]*e[1]+t[3]*e[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function p(t,e){return 32==(e%=64)?[t[1],t[0]]:e<32?[t[0]<>>32-e,t[1]<>>32-e]:(e-=32,[t[1]<>>32-e,t[0]<>>32-e])}function m(t,e){return 0==(e%=64)?t:e<32?[t[0]<>>32-e,t[1]<>>1]),[4283543511,3981806797]),t=f(t=g(t,[0,t[0]>>>1]),[3301882366,444984403]),t=g(t,[0,t[0]>>>1])}function y(t,e){e=e||0;var n,r=(t=t||"").length%16,i=t.length-r,a=[0,e],o=[0,e],s=[0,0],l=[0,0],c=[2277735313,289559509],u=[1291169091,658871167];for(n=0;n>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)}function b(t){return parseInt(t)}function _(t){return parseFloat(t)}function w(t,e){return"number"==typeof t&&isNaN(t)?e:t}function S(t){return t.reduce(function(t,e){return t+(e?1:0)},0)}function L(t,e){if(void 0===e&&(e=1),Math.abs(e)>=1)return Math.round(t/e)*e;var n=1/e;return Math.round(t*n)/n}function P(t){return t&&"object"==typeof t&&"message"in t?t:{message:t}}function k(t){return"function"!=typeof t}function C(t,e,n){var r=Object.keys(t).filter(function(t){return!function(t,e){for(var n=0,r=t.length;n=4}function A(){var t=window,e=navigator;return S(["msWriteProfilerMark"in t,"MSStream"in t,"msLaunchUri"in e,"msSaveBlob"in e])>=3&&!j()}function E(){var t=window,e=navigator;return S(["webkitPersistentStorage"in e,"webkitTemporaryStorage"in e,0===e.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in t,"BatteryManager"in t,"webkitMediaStream"in t,"webkitSpeechGrammar"in t])>=5}function T(){var t=window,e=navigator;return S(["ApplePayError"in t,"CSSPrimitiveValue"in t,"Counter"in t,0===e.vendor.indexOf("Apple"),"getStorageUpdates"in e,"WebKitMediaKeys"in t])>=4}function O(){var t=window;return S(["safari"in t,!("DeviceMotionEvent"in t),!("ongestureend"in t),!("standalone"in navigator)])>=3}function R(){var t,e,n=window;return S(["buildID"in navigator,"MozAppearance"in(null!==(e=null===(t=document.documentElement)||void 0===t?void 0:t.style)&&void 0!==e?e:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function W(){var t=document;return t.fullscreenElement||t.msFullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||null}function I(){var t=E(),e=R();if(!t&&!e)return!1;var n=window;return S(["onorientationchange"in n,"orientation"in n,t&&!("SharedWorker"in n),e&&/android/i.test(navigator.appVersion)])>=2}function V(t){var e=Error(t);return e.name=t,e}function Z(t,e,n){var r,i,o;return void 0===n&&(n=50),(0,a.mG)(this,void 0,void 0,function(){var l,c;return(0,a.Jh)(this,function(a){switch(a.label){case 0:l=document,a.label=1;case 1:if(l.body)return[3,3];return[4,s(n)];case 2:return a.sent(),[3,1];case 3:c=l.createElement("iframe"),a.label=4;case 4:return a.trys.push([4,,10,11]),[4,new Promise(function(t,n){var r=!1,i=function(){r=!0,t()};c.onload=i,c.onerror=function(t){r=!0,n(t)};var a=c.style;a.setProperty("display","block","important"),a.position="absolute",a.top="0",a.left="0",a.visibility="hidden",e&&"srcdoc"in c?c.srcdoc=e:c.src="about:blank",l.body.appendChild(c);var o=function(){var t,e;if(!r)(null===(e=null===(t=c.contentWindow)||void 0===t?void 0:t.document)||void 0===e?void 0:e.readyState)==="complete"?i():setTimeout(o,10)};o()})];case 5:a.sent(),a.label=6;case 6:if(null===(i=null===(r=c.contentWindow)||void 0===r?void 0:r.document)||void 0===i?void 0:i.body)return[3,8];return[4,s(n)];case 7:return a.sent(),[3,6];case 8:return[4,t(c,c.contentWindow)];case 9:return[2,a.sent()];case 10:return null===(o=c.parentNode)||void 0===o||o.removeChild(c),[7];case 11:return[2]}})})}var F=["monospace","sans-serif","serif"],M=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function N(t){return t.toDataURL()}function Y(){var t=this;return!function(){if(void 0===i){var t=function(){var e=X();D(e)?i=setTimeout(t,2500):(r=e,i=void 0)};t()}}(),function(){return(0,a.mG)(t,void 0,void 0,function(){var t;return(0,a.Jh)(this,function(e){switch(e.label){case 0:var n;if(!D(t=X()))return[3,2];if(r)return[2,(0,a.ev)([],r,!0)];if(!W())return[3,2];return[4,((n=document).exitFullscreen||n.msExitFullscreen||n.mozCancelFullScreen||n.webkitExitFullscreen).call(n)];case 1:e.sent(),t=X(),e.label=2;case 2:return!D(t)&&(r=t),[2,t]}})})}}function X(){var t=screen;return[w(_(t.availTop),null),w(_(t.width)-_(t.availWidth)-w(_(t.availLeft),0),null),w(_(t.height)-_(t.availHeight)-w(_(t.availTop),0),null),w(_(t.availLeft),null)]}function D(t){for(var e=0;e<4;++e)if(t[e])return!1;return!0}function G(t){t.style.setProperty("display","block","important")}function J(t){return matchMedia("(inverted-colors: ".concat(t,")")).matches}function H(t){return matchMedia("(forced-colors: ".concat(t,")")).matches}function z(t){return matchMedia("(prefers-contrast: ".concat(t,")")).matches}function B(t){return matchMedia("(prefers-reduced-motion: ".concat(t,")")).matches}function U(t){return matchMedia("(dynamic-range: ".concat(t,")")).matches}var K=Math,Q=function(){return 0},q={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},$={fonts:function(){return Z(function(t,e){var n=e.document,r=n.body;r.style.fontSize="48px";var i=n.createElement("div"),a={},o={},s=function(t){var e=n.createElement("span"),r=e.style;return r.position="absolute",r.top="0",r.left="0",r.fontFamily=t,e.textContent="mmMwWLliI0O&1",i.appendChild(e),e},l=F.map(s),c=function(){for(var t={},e=function(e){t[e]=F.map(function(t){var n,r;return n=e,r=t,s("'".concat(n,"',").concat(r))})},n=0;n.6*n.length})).sort(),[2,i]}})})},fontPreferences:function(){return function(t,e){return void 0===e&&(e=4e3),Z(function(n,r){var i=r.document,o=i.body,s=o.style;s.width="".concat(e,"px"),s.webkitTextSizeAdjust=s.textSizeAdjust="none",E()?o.style.zoom="".concat(1/r.devicePixelRatio):T()&&(o.style.zoom="reset");var l=i.createElement("div");return l.textContent=(0,a.ev)([],Array(e/20<<0),!0).map(function(){return"word"}).join(" "),o.appendChild(l),t(i,o)},'')}(function(t,e){for(var n={},r={},i=0,a=Object.keys(q);i=3)}())return -1;var n=new e(1,5e3,44100),r=n.createOscillator();r.type="triangle",r.frequency.value=1e4;var i=n.createDynamicsCompressor();i.threshold.value=-50,i.knee.value=40,i.ratio.value=12,i.attack.value=0,i.release.value=.25,r.connect(i),i.connect(n.destination),r.start(0);var a=function(t){var e=function(){};return[new Promise(function(n,r){var i=!1,a=0,o=0;t.oncomplete=function(t){return n(t.renderedBuffer)};var s=function(){setTimeout(function(){return r(V("timeout"))},Math.min(500,o+5e3-Date.now()))},c=function(){try{var e=t.startRendering();switch(l(e)&&d(e),t.state){case"running":o=Date.now(),i&&s();break;case"suspended":!document.hidden&&a++,i&&a>=3?r(V("suspended")):setTimeout(c,500)}}catch(t){r(t)}};c(),e=function(){!i&&(i=!0,o>0&&s())}}),e]}(n),o=a[0],s=a[1],c=o.then(function(t){return function(t){for(var e=0,n=0;n=3))n.push(e.languages)}else if("string"==typeof e.languages){var i=e.languages;i&&n.push(i.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return w(_(navigator.deviceMemory),void 0)},screenResolution:function(){var t=screen,e=function(t){return w(b(t),null)},n=[e(t.width),e(t.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return w(b(navigator.hardwareConcurrency),void 0)},timezone:function(){var t,e=null===(t=window.Intl)||void 0===t?void 0:t.DateTimeFormat;if(e){var n=new e().resolvedOptions().timeZone;if(n)return n}var r=-function(){var t=new Date().getFullYear();return Math.max(_(new Date(t,0,1).getTimezoneOffset()),_(new Date(t,6,1).getTimezoneOffset()))}();return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch(t){return!0}},localStorage:function(){try{return!!window.localStorage}catch(t){return!0}},indexedDB:function(){if(!(j()||A()))try{return!!window.indexedDB}catch(t){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var t=navigator.platform;return"MacIntel"===t&&T()&&!O()?!function(){if("iPad"===navigator.platform)return!0;var t=screen,e=t.width/t.height;return S(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,e>.65&&e<1.53])>=2}()?"iPhone":"iPad":t},plugins:function(){var t=navigator.plugins;if(!!t){for(var e=[],n=0;n=.001))try{var t=new XMLHttpRequest;t.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),t.send()}catch(t){}}(),[4,tn(n)];case 1:var e,i;return t.sent(),[2,(e=C($,{debug:r},[]),i=r,Date.now(),{get:function(t){return(0,a.mG)(this,void 0,void 0,function(){var n,r;return(0,a.Jh)(this,function(n){switch(n.label){case 0:return Date.now(),[4,e()];case 1:return r=function(t){var e,n,r;return{get visitorId(){return void 0===r&&(r=te(this.components)),r},set visitorId(visitorId){r=visitorId},confidence:(n=function(t){return L(.99+.01*t,1e-4)}(e=function(t){if(I())return .4;if(T())return O()?.5:.3;var e=t.platform.value||"";return/^Win/.test(e)?.6:/^Mac/.test(e)?.5:.7}(t)),{score:e,comment:"$ if upgrade to Pro: https://fpjs.dev/pro".replace(/\$/g,"".concat(n))}),components:t,version:o}}(n.sent()),i||null==t||t.debug,[2,r]}})})}})]}})})}var ti={load:tr,hashComponents:te,componentsToDebugString:tt},ta=y},659456:function(t,e,n){"use strict";n.d(e,{n:function(){return d}});var r=n(315355),i=n(919209),a=n(732905),o=n(625813),s=n(92833),l=n(272787),c=n(483803),u=n(19470),d=function(t){(0,o.Z)(n,t);var e=(0,s.Z)(n);function n(){var t;(0,r.Z)(this,n);for(var i=arguments.length,o=Array(i),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},i=r.width,a=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=e.match(a);if(!o)return null;var s=o[0],l=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(l)?function(t,e){for(var n=0;n-1&&t%1==0&&t<=9007199254740991}},978865:function(t,e,n){var r=n(584897),i=n(340378),a=n(79594);t.exports=function(t,e){var n={};return e=a(e,3),i(t,function(t,i,a){r(n,i,e(t,i,a))}),n}},636513:function(t,e,n){"use strict";n.r(e)},100318:function(t,e,n){"use strict";n(932651);var r=n(795233),i=n.n(r),a=n(469935),o=n.n(a),s=n(622689),l=n.n(s),c=n(101199),u=n(680093),d=n(627658),h=n(426337),f=n(67495),p=n(451659),m=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};class g extends h.Z{componentDidMount(){this.foundation.init()}componentDidUpdate(t){if(!("number"==typeof t.value&&isNaN(t.value)&&"number"==typeof this.props.value&&isNaN(this.props.value)))t.value!==this.props.value&&this.foundation.handlePropValueChange(this.props.value)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setValue:t=>{this.setState({value:t})},getProps:()=>this.props,isInProps:t=>t in this.props,notifyChange:t=>{this.props.onChange&&this.props.onChange(t)}})}render(){let t;let e=this.props,{children:n,options:r,mode:i,prefixCls:a,className:s,style:l,direction:d,type:h,buttonSize:g,id:v}=e,y=m(e,["children","options","mode","prefixCls","className","style","direction","type","buttonSize","id"]),b=h===u.j2.TYPE_BUTTON,_=h===u.j2.TYPE_PURECARD,w=h===u.j2.TYPE_CARD||_,S=h===u.j2.TYPE_DEFAULT,L=a||u.hl.PREFIX,P=o()(s,{[L]:!0,[`${L}-wrapper`]:!0,[`${L}-${d}`]:d&&!b,[`${L}-${d}-default`]:d&&S,[`${L}-${d}-card`]:d&&w,[`${L}-buttonRadio`]:b}),k=this.state.value;return r?t=(r||[]).map((t,e)=>"string"==typeof t?c.createElement(p.Z,{key:e,disabled:this.props.disabled,value:t},t):c.createElement(p.Z,{key:e,disabled:t.disabled||this.props.disabled,value:t.value,extra:t.extra,className:t.className,style:t.style,addonId:t.addonId,addonStyle:t.addonStyle,addonClassName:t.addonClassName,extraId:t.extraId},t.label)):n&&(t=c.Children.map(n,(t,e)=>c.isValidElement(t)?c.cloneElement(t,{key:e}):null)),c.createElement("div",Object.assign({className:P,style:l,id:v,"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-required":this.props["aria-required"]},this.getDataAttr(y)),c.createElement(f.Z.Provider,{value:{radioGroup:{onChange:this.onChange,value:k,disabled:this.props.disabled,name:this.getFormatName(),isButtonRadio:b,isCardRadio:w,isPureCardRadio:_,buttonSize:g,prefixCls:a},mode:i}},t))}constructor(t){super(t),this.onChange=t=>{this.foundation.handleChange(t)},this.getFormatName=()=>this.props.name||"default",this.state={value:t.value||t.defaultValue},this.foundation=new d.Z(this.adapter)}}g.propTypes={defaultValue:l().any,disabled:l().bool,name:l().string,options:l().array,buttonSize:l().oneOf(u.j2.BUTTON_SIZE),type:l().oneOf([u.j2.TYPE_DEFAULT,u.j2.TYPE_BUTTON,u.j2.TYPE_CARD,u.j2.TYPE_PURECARD]),value:l().any,onChange:l().func,children:l().node,prefixCls:l().string,className:l().string,style:l().object,direction:l().oneOf(u.j2.DIRECTION_SET),mode:l().oneOf(u.j2.MODE),"aria-label":l().string,"aria-describedby":l().string,"aria-errormessage":l().string,"aria-invalid":l().bool,"aria-labelledby":l().string,"aria-required":l().bool,id:l().string},g.defaultProps={disabled:!1,onChange:i(),direction:u.j2.DEFAULT_DIRECTION,mode:"",type:u.j2.TYPE_DEFAULT,buttonSize:"middle"},e.Z=g},240054:function(t,e,n){"use strict";n.d(e,{U:function(){return i}});var r=n(707852);let i={PREFIX:`${r.T}-audio-player`}},800658:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}}),n(932651);var r=n(78430),i=n(708863),a=n(856445),o=n(109242),s=n(214684);class l extends a.Z{init(){}destroy(){}selectYear(t,e){let{currentYear:n,currentMonth:r}=this.getStates(),{type:i}=this.getProps(),a=o.j2.PANEL_TYPE_LEFT,l=o.j2.PANEL_TYPE_RIGHT,c=(0,s.ZP)(n);if(c[e]=t.value,"monthRange"===i){let n=c[a]===c[l]&&r[a]>r[l];e===a&&t.value>c[l]||e===a&&n?c[l]=t.value+1:e===l&&n&&(c[a]=t.value-1)}this._adapter.setCurrentYear(c,()=>this.autoSelectMonth(t,e,c)),this._adapter.notifySelectYear(c)}selectMonth(t,e){let{currentMonth:n,currentYear:r}=this.getStates(),{type:i}=this.getProps(),a=o.j2.PANEL_TYPE_LEFT,l=o.j2.PANEL_TYPE_RIGHT,c=(0,s.ZP)(n);c[e]=t.month,"monthRange"===i&&e===a&&r[a]===r[l]&&t.value>c[l]&&(c[l]=t.month),this._adapter.setCurrentMonth(c),this._adapter.notifySelectMonth(c)}autoSelectMonth(t,e,n){let{disabledDate:a,locale:s}=this._adapter.getProps(),{months:l,currentMonth:c}=this._adapter.getStates(),u=e===o.j2.PANEL_TYPE_LEFT?"right":"left",d=(0,r.Z)(Date.now(),t.year),h=a((0,i.Z)(d,c[e]-1)),f=a((0,i.Z)((0,r.Z)(Date.now(),n[u]),c[u]-1));if(!h&&!f)return;let p=n,m=c;if(h){let n;let r=l.findIndex(t=>{let{month:n}=t;return n===c[e]});!(n=l.slice(r).find(t=>{let{month:e}=t;return!a((0,i.Z)(d,e-1))}))&&(n=l.slice(0,r).find(t=>{let{month:e}=t;return!a((0,i.Z)(d,e-1))})),n&&!f?m[e]=n.month:n&&f&&(p={left:t.year,right:t.year},m={left:n.month,right:n.month})}else!h&&f&&(p={left:t.year,right:t.year},m={left:c[e],right:c[e]});this._adapter.setCurrentYearAndMonth(p,m),this._adapter.notifySelectYearAndMonth(p,m)}backToMain(){this._adapter.notifyBackToMain()}constructor(t){super(Object.assign({},t))}}},712711:function(t,e,n){"use strict";n.d(e,{Z:function(){return d}});var r=n(480333),i=n(629686),a=n(402748);n(374954),n(932651);var o=n(299690),s=n(846766),l=n(268474),c=n(938631);let u=t=>{let{TTCommon:e}=window;return e?(u=t=>{if(!t)return 0;try{let{alg_type:n,sharp_level:r,scale_type:i,sr_enable:a,sr_local_error:o,proc_avg:s,render_from:l}=JSON.parse(e.executeWithElement(t,"getSrCurrentInfo",""))||{};return{is_super_resolution:3===a&&0===o||!o&&s>0?1:0,sr_alg_type:n,sr_sharp_level:r,sr_scale_type:i,sr_enable:a,sr_local_error:o,sr_render_from:l}}catch(t){return{}}})(t):(u=()=>{},{})};class d{init(){this.initLog(),this.initEvt()}initLog(){let t=(0,s.Kj)(this.options);this.log=(0,s.Px)(this.options),this.tea=new c.Z(this.options,t)}initEvt(){var t,e,n;let r=this._player;r&&(this._player.on(o.le.SEI,this.handleSEIParsed),this._player.on(o.wW,this.handleError),this._player.on(o.le.TTFB,this.handleTTFB),this._player.on(o.le.RESPONSEHEADERS,this.setCdnIp),this._player.on(o.le.METADATA,this.handleMetaDataLoaded),this._player.on(o.le.PROP_SPEED,this.handleSpeedUpdate),this._player.on("rtm_timing",this.handleRTCTiming),this._player.on(o.le.RTM_WEBTS_TIMING,this.handleRTMWebTsTiming),this._player.on("pause",this.handlePause),this._player.once(o.le.KEYFRAME,this.handleKeyframe),this._player.on(o.le.PROP_ENDEDSTATUS,this.handleEndStatus),this._player.on(o.le.RTM_NETWORK,this.handleRTMNetwork),null===(t=this._player._core)||void 0===t||t.on("srstate_change",this.handleSRStateChange),null===(e=this._player._core)||void 0===e||e.on("workerinit",this.handleWorkerInit),null===(n=this._player._core)||void 0===n||n.on("av-unsync",this.handleAVUnsync),r.addEventListener("loadstart",this.reportStartPlay),r.addEventListener("loadeddata",this.handleLoadeddata),r.addEventListener("canplay",this.handleCanplay),r.addEventListener("waiting",this.handleWaiting),r.addEventListener("playing",this.handleOncePlaying),r.addEventListener("playing",this.handlePlaying),r.addEventListener("timeupdate",this.handleTimeupdate),r.addEventListener("ended",this.handleEnd),r.addEventListener("degrade",this.handleDegrade),this.initWindowListener())}offEvt(){var t,e,n;let r=this._player;r&&(this._player.off(o.le.SEI,this.handleSEIParsed),this._player.off(o.wW,this.handleError),this._player.off(o.le.TTFB,this.handleTTFB),this._player.off(o.le.RESPONSEHEADERS,this.setCdnIp),this._player.off(o.le.METADATA,this.handleMetaDataLoaded),this._player.off(o.le.PROP_SPEED,this.handleSpeedUpdate),this._player.off("rtm_timing",this.handleRTCTiming),this._player.off(o.le.RTM_WEBTS_TIMING,this.handleRTMWebTsTiming),this._player.off("pause",this.handlePause),this._player.off(o.le.KEYFRAME,this.handleKeyframe),this._player.off(o.le.PROP_ENDEDSTATUS,this.handleEndStatus),this._player.off(o.le.RTM_NETWORK,this.handleRTMNetwork),null===(t=this._player._core)||void 0===t||t.off("srstate_change",this.handleSRStateChange),null===(e=this._player._core)||void 0===e||e.off("workerinit",this.handleWorkerInit),null===(n=this._player._core)||void 0===n||n.off("av-unsync",this.handleAVUnsync),r.removeEventListener("loadstart",this.reportStartPlay),r.removeEventListener("loadeddata",this.handleLoadeddata),r.removeEventListener("canplay",this.handleCanplay),r.removeEventListener("waiting",this.handleWaiting),r.removeEventListener("playing",this.handleOncePlaying),r.removeEventListener("playing",this.handlePlaying),r.removeEventListener("timeupdate",this.handleTimeupdate),r.removeEventListener("ended",this.handleEnd),r.removeEventListener("degrade",this.handleDegrade),this.removeWindowListener())}initWindowListener(){window.addEventListener("beforeunload",this.destroyFunc)}removeWindowListener(){window.removeEventListener("beforeunload",this.destroyFunc)}stallEnd(){let t=(0,l.Xn)();if(this.inWaitingStart){let e=t-this.inWaitingStart;e>200&&(this.log.play_stop.stall_count++,this.log.play_stop.stall_time+=e,this.log.playing.stall_time+=t-Math.max(this.inWaitingStart,this.log.playing.timestamp),this.log.stall.stall_end=t,this.log.playing.stall_count++,this.tea.push(this.log.stall))}this.inWaitingStart=0}reportPause(){this.log.pause.timestamp=(0,l.Xn)(),this.tea.push(this.log.pause)}handleUserLeave(){if(!this.destroyed&&!!this.started)this.updatePlayStopParams(),this.reportPlayStop(),this.clearPlayingInterval()}reportPlayStop(){this.tea.push(this.log.play_stop)}updatePlayStopParams(){let t=(0,l.Xn)(),e=t-this.log.start_play.start_play_time,{play_stop:n}=this.log;if(this.inWaitingStart&&t-this.inWaitingStart>200&&(n.stall_time+=t-this.inWaitingStart),this.inWaitingStart=0,Object.assign(n,{stall_time_per_100sec:n.stall_time/e*100,stall_count_per_100sec:1e3*n.stall_count/e*100}),0===this.log.play_stop.stall_count_per_100sec&&(this.log.play_stop.stall_time_per_100sec=0),!(this.log.play_stop.stall_time_per_100sec>100)&&!(this.log.play_stop.stall_time_per_100sec<0))this.log.playing.index?(Object.assign(this.log.playing,{is_last:1}),this.reportPlaying(!1)):(this.log.play_stop.error_code=this.log.play_error.code,this.log.play_stop.error_info=this.log.play_error.msg),Object.assign(n,{duration:e/1e3,play_time:e})}reportPlaying(t){this.log.playing.index++;let e=this.log.playing.timestamp,n=0,r=(0,l.Xn)();this.inWaitingStart&&this.inWaitingStart200&&(this.log.playing.stall_time+=n,this.log.playing.stall_count++),Object.assign(this.log.playing,{duration:t?0:o/1e3,stall_time_per_100sec:t?0:this.log.playing.stall_time/o*100,stall_count_per_100sec:t?0:1e3*this.log.playing.stall_count/o*100,first_frame_view:this.log.first_frame.first_frame_view}),this.log.playing.video_render_stall_time_per_100sec=this.log.playing.stall_time_per_100sec,this.log.playing.video_render_stall_count_per_100sec=this.log.playing.stall_count_per_100sec,this.log.playing.timestamp=r,this.tea.push(Object.assign((0,a._)((0,i._)({},u(this._player._video)),{time_hour:new Date(r).getHours()}),this.log.playing)),this.log.playing.stall_time=0,this.log.playing.stall_count=0,this.log.playing.rtm_network=[]}setPlayResultTimer(){this.clearPlayResultTimer(),this.log.play_result.start=(0,l.Xn)(),this.playResultTimer=setTimeout(()=>{if(!(this.log.play_result.timestamp>=this.log.play_result.start))this.log.play_result.elapsed=(0,l.Xn)()-this.log.play_result.start,this.log.play_result.is_shorter=+(this.log.play_result.elapsed=this.playingSpeedInfoCache.totalByteSize){let n=t-this.playingSpeedInfoCache.totalByteSize;this.log.playing.downloaded_size=n,this.log.playing.download_speed=8*n/s,this.log.playing.current_speed=e/8e3}else this.log.playing.downloaded_size=t,this.log.playing.download_speed=e/1e3,this.log.playing.current_speed=e/8e3;let o=n-this.playingSpeedInfoCache.renderFrames;this.log.playing.render_fps=o/s*1e3,Object.assign(this.log.playing,{demux_frames:r-this.playingSpeedInfoCache.demuxFrames,decode_frames:i-this.playingSpeedInfoCache.decodeFrames,decoded_frames:a-this.playingSpeedInfoCache.decodedFrames,render_frames:o})}else this.log.playing.downloaded_size=t,this.log.playing.current_speed=e/8e3;this.playingSpeedInfoCache={totalByteSize:t,demuxFrames:r,decodeFrames:i,decodedFrames:a,renderFrames:n,timestamp:o}}}constructor(t){var e=this;(0,r._)(this,"options",void 0),(0,r._)(this,"_player",void 0),(0,r._)(this,"log",{}),(0,r._)(this,"tea",void 0),(0,r._)(this,"inWaitingStart",0),(0,r._)(this,"tempDroppedFrameCount",0),(0,r._)(this,"tempTotalFrameCount",0),(0,r._)(this,"started",!1),(0,r._)(this,"firstFrameViewed",!1),(0,r._)(this,"destroyed",!1),(0,r._)(this,"loadeddata",!1),(0,r._)(this,"speedInfo",void 0),(0,r._)(this,"playingSpeedInfoCache",{renderFrames:0,demuxFrames:0,decodeFrames:0,decodedFrames:0,totalByteSize:0,timestamp:0}),(0,r._)(this,"playResultTimer",void 0),(0,r._)(this,"intervalId",void 0),(0,r._)(this,"reportUrlChange",t=>{this.tea.push(Object.assign(this.log.play_url_change,{url:t}))}),(0,r._)(this,"updateExt",t=>{var e;null===(e=this.tea)||void 0===e||e.updateCommonParams(t)}),(0,r._)(this,"reportStartPlay",()=>{this.log.start_play.start_play_time=(0,l.Xn)(),!this.started&&this.tea.push(this.log.start_play),this.started=!0,this.setPlayResultTimer()}),(0,r._)(this,"handleTTFB",t=>{let{responseUrl:e,url:n,elapsed:r}=t;this.log.first_frame.ttfb=r||-1,this.log.first_frame.is_redirect=+(e!==n)}),(0,r._)(this,"setCdnIp",t=>{var e;let{headers:n,elapsed:r}=t;r&&(this.log.first_frame.sdp_elapse=r||-1),n&&(null===(e=this.tea)||void 0===e||e.updateCommonParams({cdn_ip:n["x-server-ip"]||n["X-Server-Ip"]||n["X-SERVER-IP"]}))}),(0,r._)(this,"handleMetaDataLoaded",t=>{let{trackType:e,codec:n,isEncrypted:r}=t;this.log.play_metadata_loaded.meta=t,this.log.play_metadata_loaded.codec=n,this.log.play_metadata_loaded.mediaType=e,"video"===e&&this.tea.updateCommonParams({codec_type:n,is_encrypted:r?1:0}),this.tea.push(this.log.play_metadata_loaded)}),(0,r._)(this,"handleSpeedUpdate",t=>{if(this.speedInfo=t,this.speedInfo){let{recentSpeed:t,renderFrames:e}=this.speedInfo;this.log.stall.current_speed=t/8e3,this.log.stall.render_fps=e}}),(0,r._)(this,"handleRTCTiming",t=>{if(t&&"object"==typeof t){let e=t.play_start_time,n=t.dtls_connected_time,r=t.report_start_time;Object.assign(this.log.first_frame,t),e&&r&&n&&(this.log.first_frame.rtm_report_start_time=r,this.log.first_frame.rtm_first_time=e,this.log.first_frame.dtls_connected_time=n)}}),(0,r._)(this,"handleRTMWebTsTiming",t=>{"object"==typeof t&&Object.assign(this.log.first_frame,t)}),(0,r._)(this,"handleKeyframe",t=>{this.log.play_stop.is_firstframe_received=1,this.log.play_stop.firstframe_pts=t.pts}),(0,r._)(this,"handleEndStatus",()=>{this.stallEnd()}),(0,r._)(this,"handleRTMNetwork",t=>{this.log.playing.rtm_network.push(t)}),(0,r._)(this,"handleSRStateChange",function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.running?e.log.playing.is_super_resolution=1:(e.log.playing.is_super_resolution=0,e.log.playing.sr_code=t.code,e.log.playing.sr_message=t.message)}),(0,r._)(this,"handleWorkerInit",t=>{let{costtime:e,workerReadyTime:n,workerinitStartTime:r}=t.detail||t,o=n>this.log.start_play.start_play_time?n-r:0;this.log.play_stop.worker_init_cost=this.log.first_frame.worker_init_cost=o,this.tea.push((0,a._)((0,i._)({},this.log.worker_message),{cost_time:e,worker_init_cost:o}))}),(0,r._)(this,"handleAVUnsync",t=>{let{currentTime:e,gap:n,reason:r,direction:o,meanGap:s}=t.detail||t;this.tea.push((0,a._)((0,i._)({},this.log.play_av_unsync),{currentTime:e,duration:n,reason:r,direction:o,meanGap:s}))}),(0,r._)(this,"handleWaiting",()=>{if(!this.inWaitingStart&&!!this.firstFrameViewed&&!!this.loadeddata)!(this._player.media.currentTime<=0)&&(this.inWaitingStart=this.log.stall.stall_start=(0,l.Xn)(),this.log.stall.play_current_time=this._player.currentTime,this.log.stall.buffered=this.getBuffered(),this.log.stall.start_diff=this.inWaitingStart-this.log.first_frame.timestamp,this.log.stall.audio_buffer_time=this.getPlayerBuffer())}),(0,r._)(this,"handleLoadeddata",()=>{this.loadeddata=!0,this.reportFirstframe()}),(0,r._)(this,"handleCanplay",()=>{this.stallEnd(),this.reportFirstframe()}),(0,r._)(this,"handleOncePlaying",()=>{if(this._player.removeEventListener("playing",this.handleOncePlaying),this._player.paused){this.handlePause();return}this.playingSpeedInfoCache={totalByteSize:0,demuxFrames:0,decodeFrames:0,decodedFrames:0,renderFrames:0,timestamp:0},this.reportPlaying(!0),this.clearPlayingInterval();this.intervalId=setInterval(()=>{(100>Math.abs((0,l.Xn)()-this.log.playing.timestamp-1e4)||(0,l.Xn)()-this.log.playing.timestamp>=1e4)&&(this._player?this._player.paused?this.handlePause():this.reportPlaying(!1):this.destroyFunc())},1e3)}),(0,r._)(this,"handlePlaying",()=>{this.stallEnd()}),(0,r._)(this,"handleTimeupdate",()=>{this.stallEnd()}),(0,r._)(this,"handleSEIParsed",t=>{if(100===t.code){let e;let{log:{playing:n,first_frame:r,play_result:i}}=this;try{e=new TextDecoder("utf-8").decode(t.content)}catch(n){e=(0,l.j2)(t.content)}e=e.slice(e.indexOf("{"),e.lastIndexOf("}")+1);try{let t=JSON.parse(e),a=t.ts||t.heart_beat&&t.heart_beat.ts;if(Object.assign(r,t.loudness),Object.assign(i,t.loudness),!a){n.sei_string=e;return}n.sei_delay=(0,l.Xn)()-a,r.first_sei_delay=n.sei_delay,n.sei_source=t.source,n.ntp_sync=0,r.ntp_sync=0}catch(t){n.sei_string=e}n.sei_delay?n.sei_string=void 0:n.sei_string=e}}),(0,r._)(this,"handlePause",()=>{this.stallEnd(),this.clearPlayingInterval(),this.reportPlaying(!1),this._player.addEventListener("playing",this.handleOncePlaying),this.reportPause()}),(0,r._)(this,"handleEnd",()=>{this.stallEnd(),this.clearPlayingInterval(),this.log.playing.is_last=1,this.reportPlaying(!1),this.tea.push(this.log.play_stop)}),(0,r._)(this,"handleError",t=>{var e,n,r,a;t=t.detail||t;let o=this._player.error||{},s=(null==t?void 0:t.snapshot_play_url)||(null===(e=this._player)||void 0===e?void 0:e.snapshotPlayUrl)||this._player.src||"",c=(null==t?void 0:t.snapshot_play_protocol)||(null===(n=this._player)||void 0===n?void 0:n.snapshotPlayProtocol)||(null===(a=this._player.config)||void 0===a?void 0:null===(r=a.baseConfig)||void 0===r?void 0:r.protocol)||"",u=(0,l.l6)(s,c),d={snapshot_play_url:s,snapshot_play_format:u};Object.assign(this.log.play_error,{code:t.httpCode||t.code||o.code,info:t.message||o.message});let h=this.log.playing.rtm_network,f=h.length?h[h.length-1]:void 0;this.tea.push((0,i._)({},this.log.play_error,d,f&&{rtm_network:f})),!this.destroyed&&(!this.firstFrameViewed&&(Object.assign(this.log.first_frame_failed,{code:this.log.play_error.code,msg:t.message||o.message}),void 0!==this.log.first_frame_failed.timestamp&&(this.log.first_frame_failed.timestamp=(0,l.Xn)()),this.tea.push((0,i._)({},this.log.first_frame_failed,d)),!this.log.play_result.is_threshold&&(this.clearPlayResultTimer(),this.log.play_result.reason=t.message||o.message,this.log.play_result.code=this.log.play_error.code,this.tea.push((0,i._)({},this.log.play_result,d)))),this.log.play_stop.snapshot_play_url=s,this.log.play_stop.snapshot_play_format=u,this.handleUserLeave(),delete this.log.play_stop.snapshot_play_url,delete this.log.play_stop.snapshot_play_format)}),(0,r._)(this,"handleDegrade",t=>{Object.assign(this.log.degrade,{message:t.message}),this.tea.push(this.log.degrade)}),(0,r._)(this,"reportFirstframe",()=>{var t;if(this.firstFrameViewed)return;this.firstFrameViewed=!0;let e=(0,l.Xn)();if(Object.assign(this.log.first_frame,{first_frame_view:e-this.log.start_play.start_play_time,buffered:this.getPlayerBuffer()}),this.log.first_frame.rtm_first_time){let t=performance.now()-this.log.first_frame.rtm_report_start_time;Object.assign(this.log.first_frame,{play_to_frist_frame:t-this.log.first_frame.rtm_first_time,waiting_first_frame:t-this.log.first_frame.dtls_connected_time})}let n=null===(t=this._player)||void 0===t?void 0:t._firstFrameStartTime;n>0&&Object.assign(this.log.first_frame,{actual_first_frame_view:performance.now()-n}),this.tea.push(this.log.first_frame),this.clearPlayResultTimer(),this.log.play_result.result=1,this.tea.push(this.log.play_result),this.log.play_stop.is_stream_received=1}),(0,r._)(this,"destroyFunc",()=>{!this.destroyed&&(this.handleUserLeave(),this.destroyed=!0,this.offEvt(),this.clearPlayingInterval(),this.clearPlayResultTimer())}),this.options=(0,s.FW)(t),this._player=this.options.player,this.init()}}},900312:function(t,e,n){"use strict";n.d(e,{F:function(){return i}});var r=n(368183);function i(t){let e=[],n=-1,i=0,a=0;for(;++n55295&&o<57344){let e=t.charCodeAt(n+1);o<56320&&e>56319&&e<57344?(s=String.fromCharCode(o,e),a=1):s="�"}else s=String.fromCharCode(o);s&&(e.push(t.slice(i,n),encodeURIComponent(s)),i=n+a+1,s=""),a&&(n+=a,a=0)}return e.join("")+t.slice(i)}},628801:function(t,e,n){"use strict";function r(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r3?e.i-4:e.i:Array.isArray(t)?1:u(t)?2:d(t)?3:0}function l(t,e){return 2===s(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}n.d(e,{Uy:function(){return K}}),n(76375),n(414931),n(490629),n(374954),n(362051),n(559352),n(313036),n(181365),n(527553),n(679308);function c(t,e,n){var r=s(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function u(t){return Z&&t instanceof Map}function d(t){return F&&t instanceof Set}function h(t){return t.o||t.t}function f(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=J(t);delete e[X];for(var n=G(e),r=0;r1&&(t.set=t.add=t.clear=t.delete=m),Object.freeze(t),e&&o(t,function(t,e){return p(e,!0)},!0)),t}function m(){r(2)}function g(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function v(t){var e=H[t];return e||r(18,t),e}function y(){return I}function b(t,e){e&&(v("Patches"),t.u=[],t.s=[],t.v=e)}function _(t){w(t),t.p.forEach(L),t.p=null}function w(t){t===I&&(I=t.l)}function S(t){return I={p:[],l:I,h:t,m:!0,_:0}}function L(t){var e=t[X];0===e.i||1===e.i?e.j():e.g=!0}function P(t,e){e._=e.p.length;var n=e.p[0],i=void 0!==t&&t!==n;return e.h.O||v("ES5").S(e,t,i),i?(n[X].P&&(_(e),r(4)),a(t)&&(t=k(e,t),e.l||x(e,t)),e.u&&v("Patches").M(n[X].t,t,e.u,e.s)):t=k(e,n,[]),_(e),e.u&&e.v(e.u,e.s),t!==N?t:void 0}function k(t,e,n){if(g(e))return e;var r=e[X];if(!r)return o(e,function(i,a){return C(t,r,e,i,a,n)},!0),e;if(r.A!==t)return e;if(!r.P)return x(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=f(r.k):r.o,a=i,s=!1;3===r.i&&(a=new Set(i),i.clear(),s=!0),o(a,function(e,a){return C(t,r,i,e,a,n,s)}),x(t,i,!1),n&&t.u&&v("Patches").N(r,n,t.u,t.s)}return r.o}function C(t,e,n,r,o,s,u){if(i(o)){var d=k(t,o,s&&e&&3!==e.i&&!l(e.R,r)?s.concat(r):void 0);if(c(n,r,d),!i(d))return;t.m=!1}else u&&n.add(o);if(a(o)&&!g(o)){if(!t.h.D&&t._<1)return;k(t,o),e&&e.A.l||x(t,o)}}function x(t,e,n){void 0===n&&(n=!1),!t.l&&t.h.D&&t.m&&p(e,n)}function j(t,e){var n=t[X];return(n?h(n):t)[e]}function A(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Object.getPrototypeOf(n)}}function E(t){t.P||(t.P=!0,t.l&&E(t.l))}function T(t){t.o||(t.o=f(t.t))}function O(t,e,n){var r,i,a,o,s,l,c,h,f,p=u(e)?v("MapSet").F(e,n):d(e)?v("MapSet").T(e,n):t.O?(r=e,i=n,s=o={i:(a=Array.isArray(r))?1:0,A:i?i.A:I,P:!1,I:!1,R:{},l:i,t:r,k:null,o:null,j:null,C:!1},l=z,a&&(s=[o],l=B),h=(c=Proxy.revocable(s,l)).revoke,f=c.proxy,o.k=f,o.j=h,f):v("ES5").J(e,n);return(n?n.A:I).p.push(p),p}function R(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return f(t)}var W,I,V="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Z="undefined"!=typeof Map,F="undefined"!=typeof Set,M="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,N=V?Symbol.for("immer-nothing"):((W={})["immer-nothing"]=!0,W),Y=V?Symbol.for("immer-draftable"):"__$immer_draftable",X=V?Symbol.for("immer-state"):"__$immer_state",D=""+Object.prototype.constructor,G="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,J=Object.getOwnPropertyDescriptors||function(t){var e={};return G(t).forEach(function(n){e[n]=Object.getOwnPropertyDescriptor(t,n)}),e},H={},z={get:function(t,e){if(e===X)return t;var n,r,i,o=h(t);if(!l(o,e)){;return n=t,(i=A(o,e))?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(n.k):void 0}var s=o[e];return t.I||!a(s)?s:s===j(t.t,e)?(T(t),t.o[e]=O(t.A.h,s,t)):s},has:function(t,e){return e in h(t)},ownKeys:function(t){return Reflect.ownKeys(h(t))},set:function(t,e,n){var r=A(h(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,n),!0;if(!t.P){var i,a,o=j(h(t),e),s=null==o?void 0:o[X];if(s&&s.t===n)return t.o[e]=n,t.R[e]=!1,!0;if(((i=n)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==n||l(t.t,e)))return!0;T(t),E(t)}return t.o[e]===n&&(void 0!==n||e in t.o)||Number.isNaN(n)&&Number.isNaN(t.o[e])||(t.o[e]=n,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==j(t.t,e)||e in t.t?(t.R[e]=!1,T(t),E(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var n=h(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){r(12)}},B={};o(z,function(t,e){B[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),B.deleteProperty=function(t,e){return B.set.call(this,t,e,void 0)},B.set=function(t,e,n){return z.set.call(this,t[0],e,n,t[0])};var U=new(function(){function t(t){var e=this;this.O=M,this.D=!0,this.produce=function(t,n,i){if("function"==typeof t&&"function"!=typeof n){var o,s=n;return n=t,function(t){var r=this;void 0===t&&(t=s);for(var i=arguments.length,a=Array(i>1?i-1:0),o=1;o1?r-1:0),a=1;a=0;n--){var n,r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));var a=v("Patches").$;return i(t)?a(t,e):this.produce(t,function(t){return a(t,e)})},t}()),K=U.produce;U.produceWithPatches.bind(U),U.setAutoFreeze.bind(U),U.setUseProxies.bind(U),U.applyPatches.bind(U),U.createDraft.bind(U),U.finishDraft.bind(U)}}]);