PageSourceSearch

https://minibooks.ai/_next/static/chunks/7448.5176de688c289b58.js

js minibooks.ai collected 2026-10-05 13:42:43 UTC 16,012 bytes, 7 lines download raw bytes

vendor: 4,463 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7448],{37448:function(e,t,r){r.r(t),r.d(t,{i:function(){return P}}),r(93542),function(e){var t=function(e){var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch{l=function(e,t,r){return e[t]=r}}function c(e,r,o,n){var a,i=Object.create((r&&r.prototype instanceof g?r:g).prototype),s=new x(n||[]);return i._invoke=(a=p,function(r,n){if(a===u)throw Error("Generator is already running");if(a===h){if("throw"===r)throw n;return k()}for(s.method=r,s.arg=n;;){var i=s.delegate;if(i){var l=function e(r,o){var n=r.iterator[o.method];if(n===t){if(o.delegate=null,"throw"===o.method){if(r.iterator.return&&(o.method="return",o.arg=t,e(r,o),"throw"===o.method))return m;o.method="throw",o.arg=TypeError("The iterator does not provide a 'throw' method")}return m}var a=f(n,r.iterator,o.arg);if("throw"===a.type)return o.method="throw",o.arg=a.arg,o.delegate=null,m;var i=a.arg;return i?i.done?(o[r.resultName]=i.value,o.next=r.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,m):i:(o.method="throw",o.arg=TypeError("iterator result is not an object"),o.delegate=null,m)}(i,s);if(l){if(l===m)continue;return l}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(a===p)throw a=h,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);a=u;var c=f(e,o,s);if("normal"===c.type){if(a=s.done?h:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:s.done}}"throw"===c.type&&(a=h,s.method="throw",s.arg=c.arg)}}),i}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",u="executing",h="completed",m={};function g(){}function d(){}function y(){}var w={};l(w,a,function(){return this});var v=Object.getPrototypeOf,b=v&&v(v(L([])));b&&b!==r&&o.call(b,a)&&(w=b);var F=y.prototype=g.prototype=Object.create(w);function E(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){var r;this._invoke=function(n,a){function i(){return new t(function(r,i){!function r(n,a,i,s){var l=f(e[n],e,a);if("throw"===l.type)s(l.arg);else{var c=l.arg,p=c.value;return p&&"object"==typeof p&&o.call(p,"__await")?t.resolve(p.__await).then(function(e){r("next",e,i,s)},function(e){r("throw",e,i,s)}):t.resolve(p).then(function(e){c.value=e,i(c)},function(e){return r("throw",e,i,s)})}}(n,a,r,i)})}return r=r?r.then(i,i):i()}}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function L(e){if(e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}return{next:k}}function k(){return{value:t,done:!0}}return d.prototype=y,l(F,"constructor",y),l(y,"constructor",d),d.displayName=l(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,s,"GeneratorFunction")),e.prototype=Object.create(F),e},e.awrap=function(e){return{__await:e}},E(_.prototype),l(_.prototype,i,function(){return this}),e.AsyncIterator=_,e.async=function(t,r,o,n,a){void 0===a&&(a=Promise);var i=new _(c(t,r,o,n),a);return e.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},E(F),l(F,s,"Generator"),l(F,a,function(){return this}),l(F,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=L,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
1h(P),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return s.type="throw",s.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else if(c){if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else throw Error("try statement without catch or finally")}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;P(r)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:L(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});let o={name:"@ffmpeg/ffmpeg",version:"0.11.6",description:"FFmpeg WebAssembly version",main:"src/index.js",types:"src/index.d.ts",directories:{example:"examples"},scripts:{start:"node scripts/server.js","start:worker":"node scripts/worker-server.js",build:"rimraf dist && webpack --config scripts/webpack.config.prod.js","build:worker":"rimraf dist && webpack --config scripts/webpack.config.worker.prod.js",prepublishOnly:"npm run build",lint:"eslint src",wait:"rimraf dist && wait-on http://localhost:3000/dist/ffmpeg.dev.js",test:"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:ffmpeg test:node:all","test:node":"node node_modules/mocha/bin/_mocha --exit --bail --require ./scripts/test-helper.js","test:node:all":"npm run test:node -- ./tests/*.test.js","test:browser":"mocha-headless-chrome -a allow-file-access-from-files -a incognito -a no-sandbox -a disable-setuid-sandbox -a disable-logging -t 300000","test:browser:ffmpeg":"npm run test:browser -- -f ./tests/ffmpeg.test.html"},browser:{"./src/node/index.js":"./src/browser/index.js"},repository:{type:"git",url:"git+https://github.com/ffmpegwasm/ffmpeg.wasm.git"},keywords:["ffmpeg","WebAssembly","video"],author:"Jerome Wu <[email protected]>",license:"MIT",bugs:{url:"https://github.com/ffmpegwasm/ffmpeg.wasm/issues"},engines:{node:">=12.16.1"},homepage:"https://github.com/ffmpegwasm/ffmpeg.wasm#readme",dependencies:{"is-url":"^1.2.4","node-fetch":"^2.6.1","regenerator-runtime":"^0.13.7","resolve-url":"^0.2.1"},devDependencies:{"@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@ffmpeg/core":"^0.11.0","@types/emscripten":"^1.39.4","babel-eslint":"^10.1.0","babel-loader":"^8.1.0",chai:"^4.2.0",cors:"^2.8.5",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.22.1",express:"^4.17.1",mocha:"^8.2.1","mocha-headless-chrome":"^2.0.3","npm-run-all":"^4.1.5","wait-on":"^5.3.0",webpack:"^5.3.2","webpack-cli":"^4.1.0","webpack-dev-middleware":"^4.0.0"}},n=`https://unpkg.com/@ffmpeg/core@${o.devDependencies["@ffmpeg/core"].substring(1)}/dist/ffmpeg-core.js`,a=!1,i=()=>{};var s={logging:!1,setLogging:e=>{a=e},setCustomLogger:e=>{i=e},log:(e,t)=>
1{i({type:e,message:t}),a&&console.log(`[${e}] ${t}`)}},l={CREATE_FFMPEG_CORE_IS_NOT_DEFINED:e=>`
2createFFmpegCore is not defined. ffmpeg.wasm is unable to find createFFmpegCore after loading ffmpeg-core.js from ${e}. Use another URL when calling createFFmpeg():
3
4const ffmpeg = createFFmpeg({
5  corePath: 'http://localhost:3000/ffmpeg-core.js',
6});
7`};let c=async(e,t)=>{s.log("info",`fetch ${e}`);let r=await (await fetch(e)).arrayBuffer();s.log("info",`${e} file size = ${r.byteLength} bytes`);let o=new Blob([r],{type:t}),n=URL.createObjectURL(o);return s.log("info",`${e} blob URL = ${n}`),n},f=async({corePath:e,workerPath:t,wasmPath:r})=>{if("u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope){if("string"!=typeof e)throw Error("corePath should be a string!");let o=new URL(e,"file:///vercel/path0/node_modules/react-audio-voice-recorder/dist/index-1c988149.js").href,n=await c(o,"application/javascript"),a=await c(void 0!==r?r:o.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),i=await c(void 0!==t?t:o.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return typeof createFFmpegCore>"u"?new Promise(e=>{if(globalThis.importScripts(n),typeof createFFmpegCore>"u")throw Error(l.CREATE_FFMPEG_CORE_IS_NOT_DEFINED(o));s.log("info","ffmpeg-core.js script loaded"),e({createFFmpegCore,corePath:n,wasmPath:a,workerPath:i})}):(s.log("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore,corePath:n,wasmPath:a,workerPath:i}))}if("string"!=typeof e)throw Error("corePath should be a string!");let o=new URL(e,"file:///vercel/path0/node_modules/react-audio-voice-recorder/dist/index-1c988149.js").href,n=await c(o,"application/javascript"),a=await c(void 0!==r?r:o.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),i=await c(void 0!==t?t:o.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return typeof createFFmpegCore>"u"?new Promise(e=>{let t=document.createElement("script"),r=()=>{if(t.removeEventListener("load",r),typeof createFFmpegCore>"u")throw Error(l.CREATE_FFMPEG_CORE_IS_NOT_DEFINED(o));s.log("info","ffmpeg-core.js script loaded"),e({createFFmpegCore,corePath:n,wasmPath:a,workerPath:i})};t.src=n,t.type="text/javascript",t.addEventListener("load",r),document.getElementsByTagName("head")[0].appendChild(t)}):(s.log("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore,corePath:n,wasmPath:a,workerPath:i}))},p=e=>new Promise((t,r)=>{let o=new FileReader;o.onload=()=>{t(o.result)},o.onerror=({target:{error:{code:e}}})=>{r(Error(`File could not be read! Code=${e}`))},o.readAsArrayBuffer(e)}),u=async e=>{let t=e;return typeof e>"u"?new Uint8Array:("string"==typeof e?t=/data:_data\/([a-zA-Z]*);base64,([^"]*)/.test(e)?atob(e.split(",")[1]).split("").map(e=>e.charCodeAt(0)):await (await fetch(new URL(e,"file:///vercel/path0/node_modules/react-audio-voice-recorder/dist/index-1c988149.js").href)).arrayBuffer():(e instanceof File||e instanceof Blob)&&(t=await p(e)),new Uint8Array(t))},h=Object.freeze(Object.defineProperty({__proto__:null,defaultOptions:{corePath:n},fetchFile:u,getCreateFFmpegCore:f},Symbol.toStringTag,{value:"Module"})),m=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}),r}(h),{defaultArgs:g,baseOptions:d}={defaultArgs:["./ffmpeg","-nostdin","-y"],baseOptions:{log:!1,logger:()=>{},progress:()=>{},corePath:""}},y=(e,t)=>{let r=e._malloc(t.length*Uint32Array.BYTES_PER_ELEMENT);return t.forEach((t,o)=>{let n=e.lengthBytesUTF8(t)+1,a=e._malloc(n);e.stringToUTF8(t,a,n),e.setValue(r+Uint32Array.BYTES_PER_ELEMENT*o,a,"i32")}),[t.length,r]},{defaultOptions:w,getCreateFFmpegCore:v}=m,{version:b}=o,F=Error("ffmpeg.wasm is not ready, make sure you have completed load()."),{fetchFile:E}=m;var _={createFFmpeg:(e={})=>{let{log:t,logger:r,progress:o,...n}={...d,...w,...e}
7,a=null,i=null,s=null,l=null,c=!1,f=()=>{},p=t,u=o,h=0,m=0,E=!1,_=0,j=e=>{"FFMPEG_END"===e&&null!==s&&(s(),s=null,l=null,c=!1)},P=(e,t)=>{f({type:e,message:t}),p&&console.log(`[${e}] ${t}`)},x=e=>{let[t,r,o]=e.split(":");return 3600*parseFloat(t)+60*parseFloat(r)+parseFloat(o)},L=(e,t)=>{if("string"==typeof e){if(e.startsWith("  Duration")){let r=e.split(", ")[0].split(": ")[1],o=x(r);t({duration:o,ratio:_}),(0===h||h>o)&&(h=o,E=!0)}else if(E&&e.startsWith("    Stream")){let t=e.match(/([\d.]+) fps/);if(t){let e=parseFloat(t[1]);m=h*e}else m=0;E=!1}else if(e.startsWith("frame")||e.startsWith("size")){let r=e.split("time=")[1].split(" ")[0],o=x(r),n=e.match(/frame=\s*(\d+)/);if(m&&n){let e=parseFloat(n[1]);_=Math.min(e/m,1)}else _=o/h;t({ratio:_,time:o})}else e.startsWith("video:")&&(t({ratio:1}),h=0)}},k=({type:e,message:t})=>{P(e,t),L(t,u),j(t)},O=async()=>{if(P("info","load ffmpeg-core"),null===a){P("info","loading ffmpeg-core");let{createFFmpegCore:e,corePath:t,workerPath:r,wasmPath:o}=await v(n);i=(a=await e({mainScriptUrlOrBlob:t,printErr:e=>k({type:"fferr",message:e}),print:e=>k({type:"ffout",message:e}),locateFile:(e,t)=>{if("u">typeof window||"u">typeof WorkerGlobalScope){if("u">typeof o&&e.endsWith("ffmpeg-core.wasm"))return o;if("u">typeof r&&e.endsWith("ffmpeg-core.worker.js"))return r}return t+e}})).cwrap(n.mainName||"proxy_main","number",["number","number"]),P("info","ffmpeg-core loaded")}else throw Error("ffmpeg.wasm was loaded, you should not load it again, use ffmpeg.isLoaded() to check next time.")};return P("info",`use ffmpeg.wasm v${b}`),{setProgress:e=>{u=e},setLogger:e=>{f=e},setLogging:e=>{p=e},load:O,isLoaded:()=>null!==a,run:(...e)=>{if(P("info",`run ffmpeg command: ${e.join(" ")}`),null===a)throw F;if(c)throw Error("ffmpeg.wasm can only run one command at a time");return c=!0,new Promise((t,r)=>{let o=[...g,...e].filter(e=>0!==e.length);s=t,l=r,i(...y(a,o))})},exit:()=>{if(null===a)throw F;l&&l("ffmpeg has exited"),c=!1;try{a.exit(1)}catch(e){P(e.message),l&&l(e)}finally{a=null,i=null,s=null,l=null}},FS:(e,...t)=>{if(P("info",`run FS.${e} ${t.map(e=>"string"==typeof e?e:`<${e.length} bytes binary file>`).join(" ")}`),null===a)throw F;{let r=null;try{r=a.FS[e](...t)}catch{throw Error("readdir"===e?`ffmpeg.FS('readdir', '${t[0]}') error. Check if the path exists, ex: ffmpeg.FS('readdir', '/')`:"readFile"===e?`ffmpeg.FS('readFile', '${t[0]}') error. Check if the path exists`:"Oops, something went wrong in FS operation.")}return r}}}},fetchFile:E};let j=_&&_.__esModule&&Object.prototype.hasOwnProperty.call(_,"default")?_.default:_,P=function(e,t){for(var r=0;r<t.length;r++){let o=t[r];if("string"!=typeof o&&!Array.isArray(o)){for(let t in o)if("default"!==t&&!(t in e)){let r=Object.getOwnPropertyDescriptor(o,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>o[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:j},[_])}}]);

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.