PageSourceSearch

https://www.genuinelink.ai/_next/static/chunks/6274.5d4887395d55dfe1.js

js genuinelink.ai collected 2026-10-02 01:13:52 UTC 7,825 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6274],{16274:(t,i,e)=>{function s(t,i,e,s){return new(e||(e=Promise))(function(r,o){function n(t){try{d(s.next(t))}catch(t){o(t)}}function a(t){try{d(s.throw(t))}catch(t){o(t)}}function d(t){var i;t.done?r(t.value):((i=t.value)instanceof e?i:new e(function(t){t(i)})).then(n,a)}d((s=s.apply(t,i||[])).next())})}e.r(i),e.d(i,{default:()=>d}),"function"==typeof SuppressedError&&SuppressedError;class r{constructor(){this.listeners={}}on(t,i,e){if(this.listeners[t]||(this.listeners[t]=new Set),null==e?void 0:e.once){let e=(...s)=>{this.un(t,e),i(...s)};return this.listeners[t].add(e),()=>this.un(t,e)}return this.listeners[t].add(i),()=>this.un(t,i)}un(t,i){var e;null==(e=this.listeners[t])||e.delete(i)}once(t,i){return this.on(t,i,{once:!0})}unAll(){this.listeners={}}emit(t,...i){this.listeners[t]&&this.listeners[t].forEach(t=>t(...i))}}class o extends r{constructor(t){super(),this.subscriptions=[],this.isDestroyed=!1,this.options=t}onInit(){}_init(t){this.isDestroyed&&(this.subscriptions=[],this.isDestroyed=!1),this.wavesurfer=t,this.onInit()}destroy(){this.emit("destroy"),this.subscriptions.forEach(t=>t()),this.subscriptions=[],this.isDestroyed=!0,this.wavesurfer=void 0}}class n extends r{constructor(){super(...arguments),this.animationFrameId=null,this.isRunning=!1}start(){if(this.isRunning)return;this.isRunning=!0;let t=()=>
1{this.isRunning&&(this.emit("tick"),this.animationFrameId=requestAnimationFrame(t))};t()}stop(){this.isRunning=!1,null!==this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null)}destroy(){this.stop()}}let a=["audio/webm","audio/wav","audio/mpeg","audio/mp4","audio/mp3"];class d extends o{constructor(t){var i,e,s,r,o,a;super(Object.assign(Object.assign({},t),{audioBitsPerSecond:null!=(i=t.audioBitsPerSecond)?i:128e3,scrollingWaveform:null!=(e=t.scrollingWaveform)&&e,scrollingWaveformWindow:null!=(s=t.scrollingWaveformWindow)?s:5,continuousWaveform:null!=(r=t.continuousWaveform)&&r,renderRecordedAudio:null==(o=t.renderRecordedAudio)||o,mediaRecorderTimeslice:null!=(a=t.mediaRecorderTimeslice)?a:void 0})),this.stream=null,this.mediaRecorder=null,this.dataWindow=null,this.isWaveformPaused=!1,this.lastStartTime=0,this.lastDuration=0,this.duration=0,this.micStream=null,this.recordedBlobUrl=null,this.timer=new n,this.subscriptions.push(this.timer.on("tick",()=>{let t=performance.now()-this.lastStartTime;this.duration=this.isPaused()?this.duration:this.lastDuration+t,this.emit("record-progress",this.duration)}))}static create(t){return new d(t||{})}renderMicStream(t){let i=new AudioContext,e=i.createMediaStreamSource(t),s=i.createAnalyser();e.connect(s),(this.options.continuousWaveform||this.options.scrollingWaveform)&&(s.fftSize=32);let r=s.frequencyBinCount,o=new Float32Array(r),n=0;this.wavesurfer&&(null!=this.originalOptions||(this.originalOptions=Object.assign({},this.wavesurfer.options)),this.wavesurfer.options.interact=!1,this.options.scrollingWaveform&&(this.wavesurfer.options.cursorWidth=0,this.wavesurfer.options.normalize=!0,this.wavesurfer.options.maxPeak=1));let a=setInterval(()=>{var t,i,e,a;if(!this.isWaveformPaused){if(s.getFloatTimeDomainData(o),this.options.scrollingWaveform){let t=Math.floor(100*(this.options.scrollingWaveformWindow||0)),i=0;for(let t=0;t<r;t++){let e=Math.abs(o[t]);e>i&&(i=e)}this.dataWindow||(this.dataWindow=new Float32Array(t));let e=new Float32Array(t);if(this.dataWindow&&this.dataWindow.length>0){let i=t-1,s=this.dataWindow.slice(-i);e.set(s,0)}e[t-1]=i,this.dataWindow=e}else if(this.options.continuousWaveform){if(!this.dataWindow){let e=this.options.continuousWaveformDuration?Math.round(100*this.options.continuousWaveformDuration):(null!=(i=null==(t=this.wavesurfer)?void 0:t.getWidth())?i:0)*window.devicePixelRatio;this.dataWindow=new Float32Array(e)}let e=0;for(let t=0;t<r;t++){let i=Math.abs(o[t]);i>e&&(e=i)}if(n+1>this.dataWindow.length){let t=new Float32Array(2*this.dataWindow.length);t.set(this.dataWindow,0),this.dataWindow=t}this.dataWindow[n]=e,n++}else this.dataWindow=o;if(this.wavesurfer){let t=(null!=(a=null==(e=this.dataWindow)?void 0:e.length)?a:0)/100;this.wavesurfer.load("",[this.dataWindow],this.options.scrollingWaveform?this.options.scrollingWaveformWindow:t).then(()=>{this.wavesurfer&&this.options.continuousWaveform&&(this.wavesurfer.setTime(this.getDuration()/1e3),this.wavesurfer.options.minPxPerSec||this.wavesurfer.setOptions({minPxPerSec:this.wavesurfer.getWidth()/this.wavesurfer.getDuration()}))}).catch(t=>{console.error("Error rendering real-time recording data:",t)})}}},10);return{onDestroy:()=>{clearInterval(a),null==e||e.disconnect(),null==i||i.close()},onEnd:()=>{this.isWaveformPaused=!0,this.stopMic()}}}startMic(t){return s(this,void 0,void 0,function*(){let i;this.micStream&&this.stopMic();try{i=yield navigator.mediaDevices.getUserMedia({audio:null==t||t})}catch(t){throw Error("Error accessing the microphone: "+t.message)}let e=this.renderMicStream(i);return this.micStream=e,this.unsubscribeDestroy=this.once("destroy",e.onDestroy),this.unsubscribeRecordEnd=this.once("record-end",e.onEnd),this.stream=i,i})}stopMic(){var t,i,e;null==(t=this.micStream)||t.onDestroy(),null==(i=this.unsubscribeDestroy)||i.call(this),null==(e=this.unsubscribeRecordEnd)||e.call(this),this.micStream=null,this.unsubscribeDestroy=void 0,this.unsubscribeRecordEnd=void 0,this.stream&&(this.stream.getTracks().forEach(t=>t.stop()),this.stream=null,this.mediaRecorder=null)}startRecording(t){return s(this,void 0,void 0,function*(){let i=this.stream||(yield this.startMic(t));this.dataWindow=null;let e=this.mediaRecorder||new MediaRecorder(i,{mimeType:this.options.mimeType||a.find(t=>
1MediaRecorder.isTypeSupported(t)),audioBitsPerSecond:this.options.audioBitsPerSecond});this.mediaRecorder=e,this.stopRecording();let s=[];e.ondataavailable=t=>{t.data.size>0&&s.push(t.data),this.emit("record-data-available",t.data)};let r=t=>{var i;let r=new Blob(s,{type:e.mimeType});this.emit(t,r),this.options.renderRecordedAudio&&(this.applyOriginalOptionsIfNeeded(),this.recordedBlobUrl&&URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=URL.createObjectURL(r),null==(i=this.wavesurfer)||i.load(this.recordedBlobUrl))};e.onpause=()=>r("record-pause"),e.onstop=()=>r("record-end"),e.start(this.options.mediaRecorderTimeslice),this.lastStartTime=performance.now(),this.lastDuration=0,this.duration=0,this.isWaveformPaused=!1,this.timer.start(),this.emit("record-start")})}getDuration(){return this.duration}isRecording(){var t;return"recording"===(null==(t=this.mediaRecorder)?void 0:t.state)}isPaused(){var t;return"paused"===(null==(t=this.mediaRecorder)?void 0:t.state)}isActive(){var t;return"inactive"!==(null==(t=this.mediaRecorder)?void 0:t.state)}stopRecording(){var t;this.isActive()&&(null==(t=this.mediaRecorder)||t.stop(),this.timer.stop())}pauseRecording(){var t,i;this.isRecording()&&(this.isWaveformPaused=!0,null==(t=this.mediaRecorder)||t.requestData(),null==(i=this.mediaRecorder)||i.pause(),this.timer.stop(),this.lastDuration=this.duration)}resumeRecording(){var t;this.isPaused()&&(this.isWaveformPaused=!1,null==(t=this.mediaRecorder)||t.resume(),this.timer.start(),this.lastStartTime=performance.now(),this.emit("record-resume"))}static getAvailableAudioDevices(){return s(this,void 0,void 0,function*(){return navigator.mediaDevices.enumerateDevices().then(t=>t.filter(t=>"audioinput"===t.kind))})}destroy(){this.applyOriginalOptionsIfNeeded(),super.destroy(),this.stopRecording(),this.stopMic(),this.recordedBlobUrl&&(URL.revokeObjectURL(this.recordedBlobUrl),this.recordedBlobUrl=null)}applyOriginalOptionsIfNeeded(){this.wavesurfer&&this.originalOptions&&(this.wavesurfer.setOptions(this.originalOptions),delete this.originalOptions)}}}}]);

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.