PageSourceSearch

https://dywang.cn/views/chunk-vendors-9c8b1491.js

js dywang.cn collected 2026-10-06 06:59:55 UTC 7,949 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdy"]=self["webpackChunkdy"]||[]).push([[6195],{53:function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(73204),u=r(i),a=n(51379),s=r(a),d=n(51569),l=function(t,e){var n=void 0;return t?(n=window.getComputedStyle(t),n?n[e]:""):""},f=function(t,e){var n=t.slice();t.sort((function(t,r){var i=e(t,r);return 0===i?n.indexOf(t)-n.indexOf(r):i}))},o=function(t,e){var n=void 0,r=void 0;return t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||window.Number.MAX_VALUE,e.attributes.BANDWIDTH&&(r=e.attributes.BANDWIDTH),r=r||window.Number.MAX_VALUE,n-r};e.comparePlaylistBandwidth=o;var c=function(t,e){var n=void 0,r=void 0;return t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||window.Number.MAX_VALUE,e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(r=e.attributes.RESOLUTION.width),r=r||window.Number.MAX_VALUE,n===r&&t.attributes.BANDWIDTH&&e.attributes.BANDWIDTH?t.attributes.BANDWIDTH-e.attributes.BANDWIDTH:n-r};e.comparePlaylistResolution=c;var h=function(t,e,n,r){var i=t.playlists.map((function(t){var e=void 0,n=void 0,r=void 0;return e=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width,n=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.height,r=t.attributes.BANDWIDTH,r=r||window.Number.MAX_VALUE,{bandwidth:r,width:e,height:n,playlist:t}}));f(i,(function(t,e){return t.bandwidth-e.bandwidth})),i=i.filter((function(t){return!s["default"].isIncompatible(t.playlist)}));var a=i.filter((function(t){return s["default"].isEnabled(t.playlist)}));a.length||(a=i.filter((function(t){return!s["default"].isDisabled(t.playlist)})));var d=a.filter((function(t){return t.bandwidth*u["default"].BANDWIDTH_VARIANCE<e})),l=d[d.length-1],o=d.filter((function(t){return t.bandwidth===l.bandwidth}))[0],c=d.filter((function(t){return t.width&&t.height}));f(c,(function(t,e){return t.width-e.width}));var h=c.filter((function(t){return t.width===n&&t.height===r}));l=h[h.length-1];var m=h.filter((function(t){return t.bandwidth===l.bandwidth}))[0],v=void 0,b=void 0,g=void 0;m||(v=c.filter((function(t){return t.width>n||t.height>r})),b=v.filter((function(t){return t.width===v[0].width&&t.height===v[0].height})),l=b[b.length-1],g=b.filter((function(t){return t.bandwidth===l.bandwidth}))[0]);var p=g||m||o||a[0]||i[0];return p?p.playlist:null};e.simpleSelector=h;var m=function(){return h(this.playlists.master,this.systemBandwidth,parseInt(l(this.tech_.el(),"width"),10),parseInt(l(this.tech_.el(),"height"),10))};e.lastBandwidthSelector=m;var v=function(t){var e=-1;if(t<0||t>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){return e<0&&(e=this.systemBandwidth),e=t*this.systemBandwidth+(1-t)*e,h(this.playlists.master,e,parseInt(l(this.tech_.el(),"width"),10),parseInt(l(this.tech_.el(),"height"),10))}};e.movingAverageBandwidthSelector=v;var b=function(t){var e=t.master,n=t.currentTime,r=t.bandwidth,i=t.duration,u=t.segmentDuration,a=t.timeUntilRebuffer,d=t.currentTimeline,l=t.syncController,c=e.playlists.filter((function(t){return!s["default"].isIncompatible(t)})),h=c.filter(s["default"].isEnabled);h.length||(h=c.filter((function(t){return!s["default"].isDisabled(t)})));var m=h.filter(s["default"].hasAttribute.bind(null,"BANDWIDTH")),v=m.map((function(t){var e=l.getSyncPoint(t,i,d,n),f=e?1:2,o=s["default"].estimateSegmentRequestTime(u,r,t),c=o*f-a;return{playlist:t,rebufferingImpact:c}})),b=v.filter((function(t){return t.rebufferingImpact<=0}));return f(b,(function(t,e){return o(e.playlist,t.playlist)})),b.length?b[0]:(f(v,(function(t,e){return t.rebufferingImpact-e.rebufferingImpact})),v[0]||null)};e.minRebufferMaxBandwidthSelector=b;var g=function(){var t=this.playlists.master.playlists.filter(s["default"].isEnabled);f(t,(function(t,e){return o(t,e)}));var e=t.filter((function(t){return(0,d.parseCodecs)(t.attributes.CODECS).videoCodec}));return e[0]||null};e.lowestBitrateCompatibleVariantSelector=g},51379:function(t,e,n){function r(t){return t&&t.__esModule?t:{default:t}}
1Object.defineProperty(e,"__esModule",{value:!0});var i=n(84181),u=n(58908),a=r(u),s=function(t,e){var n=0,r=e-t.mediaSequence,i=t.segments[r];if(i){if("undefined"!==typeof i.start)return{result:i.start,precise:!0};if("undefined"!==typeof i.end)return{result:i.end-i.duration,precise:!0}}while(r--){if(i=t.segments[r],"undefined"!==typeof i.end)return{result:n+i.end,precise:!0};if(n+=i.duration,"undefined"!==typeof i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}},d=function(t,e){for(var n=0,r=void 0,i=e-t.mediaSequence;i<t.segments.length;i++){if(r=t.segments[i],"undefined"!==typeof r.start)return{result:r.start-n,precise:!0};if(n+=r.duration,"undefined"!==typeof r.end)return{result:r.end-n,precise:!0}}return{result:-1,precise:!1}},l=function(t,e,n){var r=void 0,i=void 0;return"undefined"===typeof e&&(e=t.mediaSequence+t.segments.length),e<t.mediaSequence?0:(r=s(t,e),r.precise?r.result:(i=d(t,e),i.precise?i.result:r.result+n))},f=function(t,e,n){if(!t)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof e){if(t.totalDuration)return t.totalDuration;if(!t.endList)return a["default"].Infinity}return l(t,e,n)};e.duration=f;var o=function(t,e,n){var r=0;if(e>n){var i=[n,e];e=i[0],n=i[1]}if(e<0){for(var u=e;u<Math.min(0,n);u++)r+=t.targetDuration;e=0}for(u=e;u<n;u++)r+=t.segments[u].duration;return r};e.sumDurations=o;var c=function(t){if(!t.segments.length)return 0;var e=t.segments.length-1,n=t.segments[e].duration||t.targetDuration,r=n+2*t.targetDuration;while(e--)if(n+=t.segments[e].duration,n>=r)break;return Math.max(0,e)};e.safeLiveIndex=c;var h=function(t,e,n){if(!t||!t.segments)return null;if(t.endList)return f(t);if(null===e)return null;e=e||0;var r=n?c(t):t.segments.length;return l(t,t.mediaSequence+r,e)};e.playlistEnd=h;var m=function(t,e){var n=!0,r=e||0,u=h(t,e,n);return null===u?(0,i.createTimeRange)():(0,i.createTimeRange)(r,u)};e.seekable=m;var v=function(t){return t-Math.floor(t)===0},b=function(t,e){if(v(e))return e+.1*t;for(var n=e.toString().split(".")[1].length,r=1;r<=n;r++){var i=Math.pow(10,r),u=e*i;if(v(u)||r===n)return(u+t)/i}},g=b.bind(null,1),p=b.bind(null,-1),w=function(t,e,n,r){var i=void 0,u=void 0,a=t.segments.length,s=e-r;if(s<0){if(n>0)for(i=n-1;i>=0;i--)if(u=t.segments[i],s+=p(u.duration),s>0)return{mediaIndex:i,startTime:r-o(t,n,i)};return{mediaIndex:0,startTime:e}}if(n<0){for(i=n;i<0;i++)if(s-=t.targetDuration,s<0)return{mediaIndex:0,startTime:e};n=0}for(i=n;i<a;i++)if(u=t.segments[i],s-=g(u.duration),s<0)return{mediaIndex:i,startTime:r+o(t,n,i)};return{mediaIndex:a-1,startTime:e}};e.getMediaInfoForTime=w;var I=function(t){return t.excludeUntil&&t.excludeUntil>Date.now()};e.isBlacklisted=I;var D=function(t){return t.excludeUntil&&t.excludeUntil===1/0};e.isIncompatible=D;var y=function(t){var e=I(t);return!t.disabled&&!e};e.isEnabled=y;var T=function(t){return t.disabled};e.isDisabled=T;var A=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].key)return!0;return!1};e.isAes=A;var N=function(t){for(var e=0;e<t.segments.length;e++)if(t.segments[e].map)return!0;return!1};e.isFmp4=N;var E=function(t,e){return e.attributes&&e.attributes[t]};e.hasAttribute=E;var S=function(t,e,n){var r=arguments.length<=3||void 0===arguments[3]?0:arguments[3];if(!E("BANDWIDTH",n))return NaN;var i=t*n.attributes.BANDWIDTH;return(i-8*r)/e};e.estimateSegmentRequestTime=S;var B=function(t,e){if(1===t.playlists.length)return!0;var n=e.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===t.playlists.filter((function(t){return!!y(t)&&(t.attributes.BANDWIDTH||0)<n})).length};e.isLowestEnabledRendition=B,e["default"]={duration:f,seekable:m,safeLiveIndex:c,getMediaInfoForTime:w,isEnabled:y,isDisabled:T,isBlacklisted:I,isIncompatible:D,playlistEnd:h,isAes:A,isFmp4:N,hasAttribute:E,estimateSegmentRequestTime:S,isLowestEnabledRendition:B}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.