PageSourceSearch

https://dywang.cn/views/chunk-vendors-2487433e.js

js dywang.cn collected 2026-10-06 06:59:57 UTC 17,823 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdy"]=self["webpackChunkdy"]||[]).push([[6365],{51583:function(e,t,r){var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function(e,t,r){var i=!0;while(i){var n=e,s=t,a=r;i=!1,null===n&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,s);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(a)}var u=Object.getPrototypeOf(n);if(null===u)return;e=u,t=s,r=a,i=!0,o=u=void 0}};function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(89144),u=s(l),c=r(74614),d=s(c),h=r(51379),f=s(h),p=r(44296),y=s(p),m=r(95854),_=r(74282),g=s(_),v=r(8568),b=r(24773),T=s(b),P=r(84181),S=s(P),C=r(54717),E=r(73204),w=s(E),L=r(31966),k=s(L),O=r(58908),R=s(O),A=r(23337),I=s(A),N=r(66837),H=s(N),j=r(53),D={PlaylistLoader:d["default"],Playlist:f["default"],Decrypter:m.Decrypter,AsyncStream:m.AsyncStream,decrypt:m.decrypt,utils:g["default"],STANDARD_PLAYLIST_SELECTOR:j.lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:j.lowestBitrateCompatibleVariantSelector,comparePlaylistBandwidth:j.comparePlaylistBandwidth,comparePlaylistResolution:j.comparePlaylistResolution,xhr:(0,y["default"])()},q=4194304;["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach((function(e){Object.defineProperty(D,e,{get:function(){return S["default"].log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),w["default"][e]},set:function(t){S["default"].log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?S["default"].log.warn("value of Hls."+e+" must be greater than or equal to 0"):w["default"][e]=t}})}));var x=function(e,t){for(var r=t.media(),i=-1,n=0;n<e.length;n++)if(e[n].id===r.uri){i=n;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})},M=function(e,t){t.representations().forEach((function(t){e.addQualityLevel(t)})),x(e,t.playlists)};D.canPlaySource=function(){return S["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")},D.supportsNativeHls=function(){var e=u["default"].createElement("video");if(!S["default"].getTech("Html5").isSupported())return!1;var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),D.isSupported=function(){return S["default"].log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var F=S["default"].getComponent("Component"),B=function(e){function t(e,r,i){var s=this;if(a(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,r,i.hls),r.options_&&r.options_.playerId){var o=(0,S["default"])(r.options_.playerId);o.hasOwnProperty("hls")||Object.defineProperty(o,"hls",{get:function(){return S["default"].log.warn("player.hls is deprecated. Use player.tech_.hls instead."),r.trigger({type:"usage",name:"hls-player-access"}),s}})}if(this.tech_=r,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&(r.featuresNativeVideoTracks||r.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");this.on(u["default"],["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=u["default"].fullscreenElement||u["default"].webkitFullscreenElement||u["default"].mozFullScreenElement||u["default"].msFullscreenElement;t&&t.contains(s.tech_.el())&&s.masterPlaylistController_.fastQualityChange_()})),this.on(this.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),this.on(this.tech_,"error",(function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),this.on(this.tech_,"play",this.play)}return o(t,e),i(t,[{key:"setOptions_",value:function(){var e=this;this.options_.withCredentials=this.options_.withCredentials||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=q),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===q,["withCredentials","bandwidth","handleManifestRedirects"].forEach((function(t){"undefined"!==typeof e.source_[t]&&(e.options_[t]=e.source_[t])})),this.bandwidth=this.options_.bandwidth}},{key:"src",value:function(e){var t=this;e&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=D,this.masterPlaylistController_=new C.MasterPlaylistController(this.options_),this.playbackWatcher_=new I["default"](S["default"].mergeOptions(this.options_,{seekable:function(){return t.seekable()}})),this.masterPlaylistController_.on("error",(function(){var e=S["default"].players[t.tech_.options_.playerId];e.error(t.masterPlaylistController_.error)})),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):D.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=D.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
1,set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;t=this.throughput>0?1/this.throughput:0;var r=Math.floor(1/(e+t));return r},set:function(){S["default"].log.error('The "systemBandwidth" property is read-only')}}}),Object.defineProperties(this.stats,{bandwidth:{get:function(){return t.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return t.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return t.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return t.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return t.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return t.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return t.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return t.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.masterPlaylistController_.on("selectedinitialmedia",(function(){(0,k["default"])(t)})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.tech_.ready((function(){return t.setupQualityLevels_()})),this.tech_.el()&&this.tech_.src(S["default"].URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var e=this,t=S["default"].players[this.tech_.options_.playerId];t&&t.qualityLevels&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){M(e.qualityLevels_,e)})),this.playlists.on("mediachange",(function(){x(e.qualityLevels_,e.playlists)})))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(e){this.masterPlaylistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),n(Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(F),U=function e(t){return{canHandleSource:function(r){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=S["default"].mergeOptions(S["default"].options,i);return(!n.hls||!n.hls.mode||n.hls.mode===t)&&e.canPlayType(r.type,n)},handleSource:function(e,r){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=S["default"].mergeOptions(S["default"].options,i,{hls:{mode:t}});return"flash"===t&&r.setTimeout((function(){r.trigger("loadstart")}),1),r.hls=new B(e,r,n),r.hls.xhr=(0,y["default"])(),r.hls.src(e.src),r.hls},canPlayType:function(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=S["default"].mergeOptions(S["default"].options,r);return e.canPlayType(t,i)?"maybe":""}}};U.canPlayType=function(e,t){if(S["default"].browser.IE_VERSION&&S["default"].browser.IE_VERSION<=10)return!1;var r=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;return!(!t.hls.overrideNative&&D.supportsNativeHls)&&r.test(e)},"undefined"!==typeof S["default"].MediaSource&&"undefined"!==typeof S["default"].URL||(S["default"].MediaSource=v.MediaSource,S["default"].URL=v.URL);var W=S["default"].getTech("Flash");v.MediaSource.supportsNativeMediaSources()&&S["default"].getTech("Html5").registerSourceHandler(U("html5"),0),R["default"].Uint8Array&&W&&W.registerSourceHandler(U("flash")),S["default"].HlsHandler=B,S["default"].HlsSourceHandler=U,S["default"].Hls=D,S["default"].use||S["default"].registerComponent("Hls",D),S["default"].m3u8=T["default"],S["default"].options.hls=S["default"].options.hls||{},S["default"].registerPlugin?S["default"].registerPlugin("reloadSourceOnError",H["default"]):S["default"].plugin("reloadSourceOnError",H["default"]),e.exports={Hls:D,HlsHandler:B,HlsSourceHandler:U}}
1,12835:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function(e,t,r){var i=!0;while(i){var n=e,s=t,a=r;i=!1,null===n&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,s);if(void 0!==o){if("value"in o)return o.value;var l=o.get;if(void 0===l)return;return l.call(a)}var u=Object.getPrototypeOf(n);if(null===u)return;e=u,t=s,r=a,i=!0,o=u=void 0}};function s(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=r(98698),u=s(l),c=r(84181),d=s(c),h=r(58908),f=s(h),p=r(96565),y=s(p),m=r(74282),_=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),g=function(e){return String.fromCharCode.apply(null,e)},v=function(e){function t(e){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];a(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,r),this.mediaSource_=null,this.subtitlesTrack_=null}return o(t,e),i(t,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return d["default"].createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,r=e[e.length-1].startTime;return d["default"].createTimeRanges([[t,r]])}},{key:"initSegment",value:function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];if(!e)return null;var r=(0,m.initSegmentId)(e),i=this.initSegments_[r];if(t&&!i&&e.bytes){var n=_.byteLength+e.bytes.byteLength,s=new Uint8Array(n);s.set(e.bytes),s.set(_,e.bytes.byteLength),this.initSegments_[r]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:s}}return i||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return"undefined"===typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}},{key:"remove",value:function(e,t){(0,y["default"])(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t),t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var r=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",r),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}}},{key:"skipEmptySegments_",value:function(e){while(e&&e.segment.empty)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e}},{key:"handleSegment_",value:function(){var e=this;if(this.pendingSegment_&&this.subtitlesTrack_){this.state="APPENDING";var t=this.pendingSegment_,r=t.segment;if("function"!==typeof f["default"].WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var i=function(){var t=function(){e.handleSegment_()};return e.state="WAITING_ON_VTTJS",e.subtitlesTrack_.tech_.one("vttjsloaded",t),e.subtitlesTrack_.tech_.one("vttjserror",(function(){e.subtitlesTrack_.tech_.off("vttjsloaded",t),e.error({message:"Error loading vtt.js"}),e.state="READY",e.pause(),e.trigger("error")})),{v:void 0}}();if("object"===typeof i)return i.v}r.requested=!0;try{this.parseVTTCues_(t)}catch(n){return this.error({message:n.message}),this.state="READY",this.pause(),this.trigger("error")}if(this.updateTimeMapping_(t,this.syncController_.timelines[t.timeline],this.playlist_),t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");t.byteLength=t.bytes.byteLength,this.mediaSecondsLoaded+=r.duration,t.cues.length&&this.remove(t.cues[0].endTime,t.cues[t.cues.length-1].endTime),t.cues.forEac
1h((function(t){e.subtitlesTrack_.addCue(t)})),this.handleUpdateEnd_()}else this.state="READY"}},{key:"parseVTTCues_",value:function(e){var t=void 0,r=!1;"function"===typeof f["default"].TextDecoder?t=new f["default"].TextDecoder("utf8"):(t=f["default"].WebVTT.StringDecoder(),r=!0);var i=new f["default"].WebVTT.Parser(f["default"],f["default"].vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){return e.timestampmap=t},i.onparsingerror=function(e){d["default"].log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var n=e.segment.map.bytes;r&&(n=g(n)),i.parse(n)}var s=e.bytes;r&&(s=g(s)),i.parse(s),i.flush()}},{key:"updateTimeMapping_",value:function(e,t,r){var i=e.segment;if(t)if(e.cues.length){var n=e.timestampmap,s=n.MPEGTS/9e4-n.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=s,e.endTime+=s})),!r.syncInfo){var a=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;r.syncInfo={mediaSequence:r.mediaSequence+e.mediaIndex,time:Math.min(a,o-i.duration)}}}else i.empty=!0}}]),t}(u["default"]);t["default"]=v,e.exports=t["default"]},44296:function(e,t,r){function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(84181),s=i(n),a=function(){var e=function e(t,r){t=(0,n.mergeOptions)({timeout:45e3},t);var i=e.beforeRequest||s["default"].Hls.xhr.beforeRequest;if(i&&"function"===typeof i){var a=i(t);a&&(t=a)}var o=(0,n.xhr)(t,(function(e,t){var i=o.response;!e&&i&&(o.responseTime=Date.now(),o.roundTripTime=o.responseTime-o.requestTime,o.bytesReceived=i.byteLength||i.length,o.bandwidth||(o.bandwidth=Math.floor(o.bytesReceived/o.roundTripTime*8*1e3))),e&&"ETIMEDOUT"===e.code&&(o.timedout=!0),e||o.aborted||200===t.statusCode||206===t.statusCode||0===t.statusCode||(e=new Error("XHR Failed with a response of: "+(o&&(i||o.responseText)))),r(e,o)})),l=o.abort;return o.abort=function(){return o.aborted=!0,l.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o};return e};t["default"]=a,e.exports=t["default"]}}]);

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.