PageSourceSearch

https://cdn.hailuoai.video/open-hailuo-video-web/prod-en-0.1.869/_next/static/chunks/1255.c73fc36ae600fdb6.js

js hailuoai.video collected 2026-09-24 17:56:16 UTC 15,538 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1255,6562],{67768:function(e,t,n){let r=(0,n(57833).Z)("check",[["path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M20 6L9 17l-5-5"}]],"0 0 24 24",!1);t.Z=r},93562:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(32627),o=n(89485),i=function(e){if(!e||!document.getRootNode)return document;var t,n=Array.isArray(e)?e:[e];return n.every(function(e){var t=(0,o.n)(e);return!!t&&t.getRootNode() instanceof ShadowRoot})&&(t=(0,o.n)(n[0]))?t.getRootNode():document},a=n(48039);function u(e,t,n){void 0===n&&(n="click");var u=(0,r.Z)(e);(0,a.Z)(function(){var e=function(e){(Array.isArray(t)?t:[t]).some(function(t){var n=(0,o.n)(t);return!n||n.contains(e.target)})||u.current(e)},r=i(t),a=Array.isArray(n)?n:[n];return a.forEach(function(t){return r.addEventListener(t,e)}),function(){a.forEach(function(t){return r.removeEventListener(t,e)})}},Array.isArray(n)?n:[n],t)}},76562:function(e,t,n){n.d(t,{Z:function(){return W}});var r=n(12551),o=n(88661),i=n(54735),a=function(e,t){var n=t.manual,a=t.ready,u=void 0===a||a,c=t.defaultParams,s=void 0===c?[]:c,l=t.refreshDeps,d=t.refreshDepsAction,f=(0,o.useRef)(!1);return f.current=!1,(0,i.Z)(function(){!n&&u&&(f.current=!0,e.run.apply(e,(0,r.ev)([],(0,r.CR)(s),!1)))},[u]),(0,i.Z)(function(){!f.current&&(n||(f.current=!0,d?d():e.refresh()))},(0,r.ev)([],(0,r.CR)(void 0===l?[]:l),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};a.onInit=function(e){var t=e.ready;return{loading:!e.manual&&(void 0===t||t)}};var u=n(65046),c=function(e,t){var n=(0,o.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==n.initialized&&(0,u.Z)(n.deps,t)||(n.deps=t,n.obj=e(),n.initialized=!0),n.obj},s=n(72292),l=new Map,d=function(e,t,n){var o=l.get(e);(null==o?void 0:o.timer)&&clearTimeout(o.timer);var i=void 0;t>-1&&(i=setTimeout(function(){l.delete(e)},t)),l.set(e,(0,r.pi)((0,r.pi)({},n),{timer:i}))},f=new Map,v=function(e,t){f.set(e,t),t.then(function(t){return f.delete(e),t}).catch(function(){f.delete(e)})},h={},m=function(e,t){h[e]&&h[e].forEach(function(e){return e(t)})},p=function(e,t){return h[e]||(h[e]=[]),h[e].push(t),function(){var n=h[e].indexOf(t);h[e].splice(n,1)}},y=function(e,t){var n=t.cacheKey,i=t.cacheTime,a=void 0===i?3e5:i,u=t.staleTime,h=void 0===u?0:u,y=t.setCache,g=t.getCache,b=(0,o.useRef)(void 0),w=(0,o.useRef)(void 0),C=function(e,t){y?y(t):d(e,a,t),m(e,t.data)},R=function(e,t){return(void 0===t&&(t=[]),g)?g(t):l.get(e)};return(c(function(){if(n){var t=R(n);t&&Object.hasOwnProperty.call(t,"data")&&(e.state.data=t.data,e.state.params=t.params,(-1===h||Date.now()-t.time<=h)&&(e.state.loading=!1)),b.current=p(n,function(t){e.setState({data:t})})}},[]),(0,s.Z)(function(){var e;null===(e=b.current)||void 0===e||e.call(b)}),n)?{onBefore:function(e){var t=R(n,e);return t&&Object.hasOwnProperty.call(t,"data")?-1===h||Date.now()-t.time<=h?{loading:!1,data:null==t?void 0:t.data,error:void 0,returnNow:!0}:{data:null==t?void 0:t.data,error:void 0}:{}},onRequest:function(e,t){var o=f.get(n);return o&&o!==w.current||(o=e.apply(void 0,(0,r.ev)([],(0,r.CR)(t),!1)),w.current=o,v(n,o)),{servicePromise:o}},onSuccess:function(t,r){var o;n&&(null===(o=b.current)||void 0===o||o.call(b),C(n,{data:t,params:r,time:Date.now()}),b.current=p(n,function(t){e.setState({data:t})}))},onMutate:function(t){var r;n&&(null===(r=b.current)||void 0===r||r.call(b),C(n,{data:t,params:e.state.params,time:Date.now()}),b.current=p(n,function(t){e.setState({data:t})}))}}:{}},g=n(42919),b=n.n(g),w=function(e,t){var n=t.debounceWait,i=t.debounceLeading,a=t.debounceTrailing,u=t.debounceMaxWait,c=(0,o.useRef)(void 0),s=(0,o.useMemo)(function(){var e={};return void 0!==i&&(e.leading=i),void 0!==a&&(e.trailing=a),void 0!==u&&(e.maxWait=u),e},[i,a,u]);return((0,o.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return c.current=b()(function(e){e()},n,s),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise(function(n,o){var i;null===(i=c.current)||void 0===i||i.call(c,function(){t.apply(void 0,(0,r.ev)([],(0,r.CR)(e),!1)).then(n).catch(o)})})},function(){var n;null===(n=c.current)||void 0===n||n.cancel(),e.runAsync=t}}},[n,s]),n)?{onCancel:function(){var e;null===(e=c.current)||void 0===e||e.cancel()}}:{}},C=function(e,t){var n=t.loadingDelay,r=t.ready,i=(0,o.useRef)(void 0);if(!n)return{};var a=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return a(),!1!==r&&(i.current=setTimeout(function(){e.setState({loading:!0})},n)),{loading:!1}},onFinally:function(){a()},onCancel:function(){a()}}},R=n(26016);
1function E(){return!R.Z||"hidden"!==document.visibilityState}var S=new Set;R.Z&&window.addEventListener("visibilitychange",function(){E()&&S.forEach(function(e){return e()})},!1);var A=function(e,t){var n=t.pollingInterval,r=t.pollingWhenHidden,a=void 0===r||r,u=t.pollingErrorRetryCount,c=void 0===u?-1:u,s=(0,o.useRef)(void 0),l=(0,o.useRef)(void 0),d=(0,o.useRef)(0),f=function(){var e;s.current&&clearTimeout(s.current),null===(e=l.current)||void 0===e||e.call(l)};return((0,i.Z)(function(){n||f()},[n]),n)?{onBefore:function(){f()},onError:function(){d.current+=1},onSuccess:function(){d.current=0},onFinally:function(){-1===c||-1!==c&&d.current<=c?s.current=setTimeout(function(){if(a||E())e.refresh();else{var t;l.current=(t=function(){e.refresh()},S.add(t),function(){S.has(t)&&S.delete(t)})}},n):d.current=0},onCancel:function(){f()}}:{}},T=new Set;if(R.Z){var P=function(){E()&&(!R.Z||void 0===navigator.onLine||navigator.onLine)&&T.forEach(function(e){return e()})};window.addEventListener("visibilitychange",P,!1),window.addEventListener("focus",P,!1)}var Z=function(e,t){var n=t.refreshOnWindowFocus,i=t.focusTimespan,a=void 0===i?5e3:i,u=(0,o.useRef)(void 0),c=function(){var e;null===(e=u.current)||void 0===e||e.call(u)};return(0,o.useEffect)(function(){if(n){var t,o,i,s=(t=e.refresh.bind(e),o=!1,function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o||(o=!0,t.apply(void 0,(0,r.ev)([],(0,r.CR)(e),!1)),setTimeout(function(){o=!1},a))});u.current=(i=function(){s()},T.add(i),function(){T.has(i)&&T.delete(i)})}return function(){c()}},[n,a]),(0,s.Z)(function(){c()}),{}},k=function(e,t){var n=t.retryInterval,r=t.retryCount,i=(0,o.useRef)(void 0),a=(0,o.useRef)(0),u=(0,o.useRef)(!1);return r?{onBefore:function(){u.current||(a.current=0),u.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){a.current=0},onError:function(){if(a.current+=1,-1===r||a.current<=r){var t=null!=n?n:Math.min(1e3*Math.pow(2,a.current),3e4);i.current=setTimeout(function(){u.current=!0,e.refresh()},t)}else a.current=0},onCancel:function(){a.current=0,i.current&&clearTimeout(i.current)}}:{}},L=n(76055),M=n.n(L),N=function(e,t){var n=t.throttleWait,i=t.throttleLeading,a=t.throttleTrailing,u=(0,o.useRef)(void 0),c={};return(void 0!==i&&(c.leading=i),void 0!==a&&(c.trailing=a),(0,o.useEffect)(function(){if(n){var t=e.runAsync.bind(e);return u.current=M()(function(e){e()},n,c),e.runAsync=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new Promise(function(n,o){var i;null===(i=u.current)||void 0===i||i.call(u,function(){t.apply(void 0,(0,r.ev)([],(0,r.CR)(e),!1)).then(n).catch(o)})})},function(){var n;e.runAsync=t,null===(n=u.current)||void 0===n||n.cancel()}}},[n,i,a]),n)?{onCancel:function(){var e;null===(e=u.current)||void 0===e||e.cancel()}}:{}},O=n(32627),j=n(12852),H=n(68432),I=n(61),_=function(e){I.Z&&!(0,H.mf)(e)&&console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".')),(0,o.useEffect)(function(){var t=null==e?void 0:e();if(!t||"object"!=typeof t||"function"!=typeof t.then)return t},[])},x=n(53283),B=function(){function e(e,t,n,o){void 0===o&&(o={}),this.serviceRef=e,this.options=t,this.subscribe=n,this.initState=o,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=(0,r.pi)((0,r.pi)((0,r.pi)({},this.state),{loading:!t.manual}),o)}return e.prototype.setState=function(e){void 0===e&&(e={}),this.state=(0,r.pi)((0,r.pi)({},this.state),e),this.subscribe()},e.prototype.runPluginHandler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this.pluginImpls.map(function(n){var o;return null===(o=n[e])||void 0===o?void 0:o.call.apply(o,(0,r.ev)([n],(0,r.CR)(t),!1))}).filter(Boolean);return Object.assign.apply(Object,(0,r.ev)([{}],(0,r.CR)(o),!1))},e.prototype.runAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,r.mG)(this,void 0,void 0,function(){var t,n,o,i,a,u,c,s,l,d,f,v,h,m,p,y,g,b,w,C,R;return(0,r.Jh)(this,function(E){switch(E.label){case 0:if(this.count+=1,t=this.count,i=void 0!==(o=(n=this.runPluginHandler("onBefore",e)).stopNow)&&o,u=void 0!==(a=n.returnNow)&&a,c=(0,r._T)(n,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState((0,r.pi)({loading:!0,params:e},c)),u)return[2,Promise.resolve(c.data)];
1null===(h=(v=this.options).onBefore)||void 0===h||h.call(v,e),E.label=1;case 1:return E.trys.push([1,3,,4]),(s=this.runPluginHandler("onRequest",this.serviceRef.current,e).servicePromise)||(s=(f=this.serviceRef).current.apply(f,(0,r.ev)([],(0,r.CR)(e),!1))),[4,s];case 2:if(l=E.sent(),t!==this.count)return[2,new Promise(function(){})];return this.setState({data:l,error:void 0,loading:!1}),null===(p=(m=this.options).onSuccess)||void 0===p||p.call(m,l,e),this.runPluginHandler("onSuccess",l,e),null===(g=(y=this.options).onFinally)||void 0===g||g.call(y,e,l,void 0),t===this.count&&this.runPluginHandler("onFinally",e,l,void 0),[2,l];case 3:if(d=E.sent(),t!==this.count)return[2,new Promise(function(){})];throw this.setState({error:d,loading:!1}),null===(w=(b=this.options).onError)||void 0===w||w.call(b,d,e),this.runPluginHandler("onError",d,e),null===(R=(C=this.options).onFinally)||void 0===R||R.call(C,e,void 0,d),t===this.count&&this.runPluginHandler("onFinally",e,void 0,d),d;case 4:return[2]}})})},e.prototype.run=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.runAsync.apply(this,(0,r.ev)([],(0,r.CR)(t),!1)).catch(function(t){e.options.onError||console.error(t)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,(0,r.ev)([],(0,r.CR)(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,(0,r.ev)([],(0,r.CR)(this.state.params||[]),!1))},e.prototype.mutate=function(e){var t=(0,H.mf)(e)?e(this.state.data):e;this.runPluginHandler("onMutate",t),this.setState({data:t})},e}(),F=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=[]);var o=t.manual,i=void 0!==o&&o,a=t.ready,u=void 0===a||a,l=(0,r._T)(t,["manual","ready"]);I.Z&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var d=(0,r.pi)({manual:i,ready:u},l),f=(0,O.Z)(e),v=(0,x.Z)(),h=c(function(){var e=n.map(function(e){var t;return null===(t=null==e?void 0:e.onInit)||void 0===t?void 0:t.call(e,d)}).filter(Boolean);return new B(f,d,v,Object.assign.apply(Object,(0,r.ev)([{}],(0,r.CR)(e),!1)))},[]);return h.options=d,h.pluginImpls=n.map(function(e){return e(h,d)}),_(function(){if(!i&&u){var e=h.state.params||t.defaultParams||[];h.run.apply(h,(0,r.ev)([],(0,r.CR)(e),!1))}}),(0,s.Z)(function(){h.cancel()}),{loading:h.state.loading,data:h.state.data,error:h.state.error,params:h.state.params||[],cancel:(0,j.Z)(h.cancel.bind(h)),refresh:(0,j.Z)(h.refresh.bind(h)),refreshAsync:(0,j.Z)(h.refreshAsync.bind(h)),run:(0,j.Z)(h.run.bind(h)),runAsync:(0,j.Z)(h.runAsync.bind(h)),mutate:(0,j.Z)(h.mutate.bind(h))}},W=function(e,t,n){return F(e,t,(0,r.ev)((0,r.ev)([],(0,r.CR)(n||[]),!1),[w,C,A,Z,N,a,y,k],!1))}},54735:function(e,t,n){n.d(t,{Z:function(){return i}});var r,o=n(88661),i=(r=o.useEffect,function(e,t){var n=(0,o.useRef)(!1);r(function(){return function(){n.current=!1}},[]),r(function(){if(n.current)return e();n.current=!0},t)})},82457:function(e,t,n){n.d(t,{F:function(){return f},ThemeProvider:function(){return v}});var r=n(11719),o=n(26015),i=n(88661),a=(e,t,n,r,o,i,a,u)=>{let c=document.documentElement,s=["light","dark"];function l(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(c.classList.remove(...r),c.classList.add(i&&i[t]?i[t]:t)):c.setAttribute(e,t)}),u&&s.includes(t)&&(c.style.colorScheme=t)}if(r)l(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;l(r)}catch(e){}},u=["light","dark"],c="(prefers-color-scheme: dark)",s="undefined"==typeof window,l=i.createContext(void 0),d={setTheme:e=>{},themes:[]},f=()=>{var e;return null!=(e=i.useContext(l))?e:d},v=e=>i.useContext(l)?i.createElement(i.Fragment,null,e.children):i.createElement(m,(0,r._)({},e)),h=["light","dark"],m=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:a="theme",themes:s=h,defaultTheme:d=r?"system":"light",attribute:f="data-theme",value:v,children:m,nonce:w,scriptProps:C}=e,[R,E]=i.useState(()=>y(a,d)),[S,A]=i.useState(()=>"system"===R?b():R),T=v?Object.values(v):s,P=i.useCallback(e=>{let t=e;if(!t)return;"system"===e&&r&&(t=b());let i=v?v[t]:t,a=n?g(w):null,c=document.documentElement,s=e=>{"class"===e?(c.classList.remove(...T),i&&c.classList.add(i)):e.startsWith("data-")&&(i?c.setAttribute(e,i):c.removeAttribute(e))};if(Array.isArray(f)?f.forEach(s):s(f),o){let e=u.includes(d)?d:null,n=u.includes(t)?t:e;c.style.colorScheme=n}null==a||a()},[w]),Z=i.useCallback(e=>{let t="function"==typeof e?e(R):e;E(t);try{localStorage.setItem(a,t)}catch(e){}},[R]),k=i.useCallback(e=>{A(b(e)),"system"===R&&r&&!t&&P("system")},[R,t]);i.useEffect(()=>{let e=window.matchMedia(c);return e.addListener(k),k(e),()=>e.removeListener(k)},[k]),i.useEffect(()=>{let e=e=>{e.key===a&&(e.newValue?E(e.newValue):Z(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[Z]),i.useEffect(()=>{P(null!=t?t:R)},[t,R]);let L=i.useMemo(()=>({theme:R,setTheme:Z,forcedTheme:t,resolvedTheme:"system"===R?S:R,themes:r?[...s,"system"]:s,systemTheme:r?S:void 0}),[R,Z,t,S,r,s]);return i.createElement(l.Provider,{value:L},i.createElement(p,{forcedTheme:t,storageKey:a,attribute:f,enableSystem:r,enableColorScheme:o,defaultTheme:d,value:v,themes:s,nonce:w,scriptProps:C}),m)},p=i.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:u,enableSystem:c,enableColorScheme:s,defaultTheme:l,value:d,themes:f,nonce:v,scriptProps:h}=e,m=JSON.stringify([u,n,l,t,f,d,c,s]).slice(1,-1);return i.createElement("script",(0,o._)((0,r._)({},h),{suppressHydrationWarning:!0,nonce:"undefined"==typeof window?v:"",dangerouslySetInnerHTML:{__html:"(".concat(a.toString(),")(").concat(m,")")}}
1))}),y=(e,t)=>{let n;if(!s){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},g=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},b=e=>(e||(e=window.matchMedia(c)),e.matches?"dark":"light")}}]);

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.