PageSourceSearch

https://cdn.hailuoai.video/open-hailuo-video-web/prod-en-0.1.869/_next/static/chunks/9266-4c3d4e64c1ecb2df.js

js hailuoai.video collected 2026-09-24 17:53:35 UTC 23,641 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9266],{58057:function(e,t,n){n.d(t,{J_:function(){return p},Y4:function(){return h},Yh:function(){return u},bt:function(){return s},fw:function(){return d},m6:function(){return f},nN:function(){return m},pX:function(){return g},wh:function(){return c},yu:function(){return l}});var r=n(77269);let o={en:{prod:"https://platform.minimax.io",pre:"https://mmx-pre.xaminim.com/platform",test:"https://mmx-test.xaminim.com/platform",dev:"https://mmx-test.xaminim.com/platform"},zh:{prod:"https://platform.minimaxi.com",pre:"https://platform-pre.xaminim.com",test:"https://platform-test.xaminim.com",dev:"https://platform-test.xaminim.com"}},i={en:{prod:"".concat(o.en.prod).concat("/docs/api-reference/video-generation-t2v"),pre:"".concat(o.en.pre).concat("/document/video_generation?key=66d1439376e52fcee2853049"),test:"".concat(o.en.test).concat("/document/video_generation?key=66d1439376e52fcee2853049"),dev:"".concat(o.en.dev).concat("/document/video_generation?key=66d1439376e52fcee2853049")},zh:{prod:"".concat(o.zh.prod).concat("/docs/api-reference/video-generation-t2v"),pre:"".concat(o.zh.pre).concat("/docs/guides/video-generation"),test:"".concat(o.zh.test).concat("/document/video_generation?key=66d1439376e52fcee2853049"),dev:"".concat(o.zh.dev).concat("/document/video_generation?key=66d1439376e52fcee2853049")}};function a(e){let t=r.a1?"en":"zh",n=r.BB?"prod":r.EU?"pre":r.Y8?"test":"dev";return e[t][n]}let c=a({en:{prod:"https://hailuoai.video",pre:"https://hailuoai-video-test.xaminim.com",test:"https://hailuoai-video-test.xaminim.com",dev:"http://localhost:3000"},zh:{prod:"https://hailuoai.com",pre:"https://hailuo-pre.xaminim.com",test:"https://hailuo-pre.xaminim.com",dev:"http://localhost:3000"}}),u=a({en:{prod:"https://www.minimax.io/audio",pre:"https://mmx-pre.xaminim.com/audio",test:"https://mmx-test.xaminim.com/audio",dev:"http://localhost:3001/audio"},zh:{prod:"https://www.minimaxi.com/audio",pre:"https://platform-pre.xaminim.com/audio",test:"https://platform-test.xaminim.com/audio",dev:"http://localhost:3001/audio"}}),l=a({en:{prod:"https://design.minimax.io",pre:"https://hub-pre.xaminim.com",test:"https://hub-test.xaminim.com",dev:"https://hub-test.xaminim.com"},zh:{prod:"https://design.minimaxi.com",pre:"https://hub-pre.xaminim.com",test:"https://hub-test.xaminim.com",dev:"https://hub-test.xaminim.com"}}),s=a({en:{prod:"https://chat.minimax.io",pre:"https://mmx-pre.xaminim.com/chat",test:"https://mmx-test.xaminim.com/chat",dev:"https://mmx-test.xaminim.com/chat"},zh:{prod:"https://chat.minimaxi.com",pre:"https://platform-pre.xaminim.com/chat",test:"https://platform-test.xaminim.com/chat",dev:"https://platform-test.xaminim.com/chat"}}),d=a({en:{prod:"https://agent.minimax.io",pre:"https://mmx-pre.xaminim.com/agent",test:"https://mmx-test.xaminim.com/agent",dev:"https://mmx-test.xaminim.com/agent"},zh:{prod:"https://agent.minimaxi.com",pre:"https://platform-pre.xaminim.com/agent",test:"https://platform-test.xaminim.com/agent",dev:"https://platform-test.xaminim.com/agent"}}),m=a({en:{prod:"https://www.minimax.io",pre:"https://open-platform-for-online-test.xaminim.com",test:"https://openplatform-test.xaminim.com",dev:"https://openplatform-test.xaminim.com"},zh:{prod:"https://www.minimaxi.com",pre:"https://open-platform-for-online-test.xaminim.com",test:"https://openplatform-test.xaminim.com",dev:"https://openplatform-test.xaminim.com"}}),f=a(o),p=a(i),g=s,h=u},89942:function(e,t,n){n.d(t,{J2:function(){return a},LC:function(){return i},lx:function(){return o}});let r=["Trending","NEW","Upgrade","FreeTrial","Free Trial"],o={Trending:"template-card-tag--trending",NEW:"template-card-tag--new",Upgrade:"template-card-tag--upgrade",FreeTrial:"template-card-tag--free-trial","Free Trial":"template-card-tag--free-trial"},i={Trending:"tools_page_tag_trending",NEW:"tools_page_tag_new",Upgrade:"tools_page_tag_upgrade",FreeTrial:"tools_page_tag_free_trial","Free Trial":"tools_page_tag_free_trial"};function a(e){return"string"==typeof e&&r.includes(e)}},62367:function(e,t,n){n.d(t,{R:function(){return o},g:function(){return r}});let r="language_switch",o="language_selector_open"},29266:function(e,t,n){n.d(t,{Ew:function(){return j},vD:function(){return E},tg:function(){return U},T_:function(){return P.T},pm:function(){return b},YR:function(){return x},vI:function(){return S},Lf:function(){return A},V8:function(){return z.V},aB:function(){return D},GM:function(){return V.GM},it:function(){return M},RZ:function(){return I.R},C3:function(){return m}}),n(10346);var r=n(88661),o=n(46153),i=n(84743),a=n(38438),c=n(82983),u=n(26482),l=n(8220),s=n(47493),d=n(83574);let m=()=>{let e=(0,o.I0)(),{uploadedImages:t}=(0,s.i)(),{activeTab:n,sortAsc:m,showFavoritesOnly:f}=(0,o.v9)(e=>e.create.uploadHistoryState),{currentModelEntity:p}=(0,d.ZP)(),g=(0,o.v9)(e=>e.create.curFrameActiveTab),h=(0,r.useCallback)(t=>{(0,o.dC)(()=>{e((0,a.KQ)(!1)),e((0,a.$L)(!1)),e((0,a.VL)("")),e((0,u.HZ)()),e((0,a.LU)(t))})},[e]);return{activeTab:n,sortAsc:m,showFavoritesOnly:f,handleTabChange:h,handleSortToggle:(0,r.useCallback)(()=>{e((0,a.VL)("")),e((0,a.ff)())},[e]),handleFavoritesToggle:(0,r.useCallback)(()=>{e((0,a.VL)("")),e((0,a.pI)())},[e]),handleBack:(0,r.useCallback)(()=>{var n;if(e((0,a.LU)(i.__.ImageTypeImageToVideo)),e((0,a.VL)("")),e((0,c.c1)(!1)),null==p?void 0:null===(n=p.addition)||void 0===n?void 0:n.supportFrame){let n=t.find(e=>e.frameType===g);e((0,a.QP)(n?l.A.PREVIEW:l.A.UPLOAD));return}e((0,a.QP)(t.length>0?l.A.PREVIEW:l.A.UPLOAD))},[t.length,e])}};n(92173);var f=n(7475),p=n(97194),g=n(39869),h=n(32277),v=()=>{let{getUserInfo:e}=(0,g.Z)(),{fetchUserPay:t,fetchChargeGuideInfo:n}=(0,h.Z)(),o=(0,r.useRef)(!1);return{loginWithTicket:async r=>{if(o.current)return!1;let i=(0,f.UE)();try{var a;o.current=!0;let i=await (0,p.Fs)({ticket:r});return await e(null==i?void 0:null===(a=i.data)||void 0===a?void 0:a.isRegister),await t(),await n(),!0}catch(e){return console.error("[ticketLogin]:",e),!1}finally{o.current=!1,i()}}}},w=n(58057),_=n(93340),y=n(77269),b=()=>{let e=(0,r.useRef)(!1);return{jumpToAudio:async t=>{if(e.current)return;e.current=!0;let n=new URL(w.Yh);if(t&&n.searchParams.set("redirect",t),(0,_.Xx)()&&!y.Xy)try{let{ticket:e}=await (0,p.Hn)();e&&(console.log("[jumpToAudio] ticket length:",e.length),n.searchParams.set("ticket",e))}catch(e){console.error("[jumpToAudio] generateTicket failed:",e)}let r=n.toString();console.log("[jumpToAudio] final URL length:",r.length);let o=document.createElement("a");o.href=r,o.target="_blank",o.rel="noopener noreferrer",document.body.appendChild(o),o.click(),document.body.removeChild(o),e.current=!1}}},x=()=>({jumpToHub:()=>{window.open(w.yu,"_blank","noopener,noreferrer")}}),k=n(79206),E=()=>{let e=(0,k.lr)(),t=(0,k.tv)(),{loginWithTicket:n}=v(),o=(0,r.useRef)(!1);(0,r.useEffect)(()=>
1{if(o.current)return;let r=y.Xy?null:e.get("ticket");r&&(o.current=!0,(async()=>{try{await n(r)}finally{let e=new URL(window.location.href);e.searchParams.delete("ticket"),t.replace(e.pathname+e.search)}})())},[e,t,n])},L=n(23927),T=n(16253),C=n(49521),R=n(62367);let S=()=>{let e=(0,L.bU)(),t=(0,T.usePathname)(),n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=(0,k.g5)(n);return(0,k.Le)(r,e)};return{currentLocale:e,getSupportedLanguageOptions:()=>(C.dU||[]).filter(e=>C.E7.includes(e.code)),switchLanguage:(t,r)=>{var o,i;if(t===e)return!1;null==r||null===(o=r.onBeforeSwitch)||void 0===o||o.call(r),(0,_.I)({id:R.g,from_language:e,to_language:t}),"undefined"!=typeof document&&(document.cookie="".concat("user_manual_language","=").concat(t,"; max-age=2592000; path=/; SameSite=Lax"));let a=n(t);return null==r||null===(i=r.onAfterSwitch)||void 0===i||i.call(r),window.location.href=a,!0},buildNewPath:n}};var I=n(77089);let D=e=>{let{minSize:t,maxSize:n,direction:o,containerRef:i,handleRef:a}=e,c=(0,r.useRef)(!1),u=(0,r.useRef)(t),[l,s]=(0,r.useState)(t),[d,m]=(0,r.useState)(!1),f="left"===o||"right"===o?"width":"height",p=(0,r.useCallback)(e=>{let t=i.current;t&&(t.style[f]="".concat(e,"px"))},[i,f]),g=(0,r.useCallback)(e=>{let r=i.current;if(!r)return u.current;let a=r.getBoundingClientRect();return Math.max(t,Math.min(n,"left"===o?a.right-e.clientX:"right"===o?e.clientX-a.left:"top"===o?a.bottom-e.clientY:e.clientY-a.top))},[i,o,t,n]),h=(0,r.useCallback)(e=>{e.preventDefault(),c.current=!0,m(!0),document.body.style.userSelect="none",document.body.style.cursor="left"===o||"right"===o?"ew-resize":"ns-resize"},[o]),v=(0,r.useCallback)(e=>{if(!c.current)return;let t=g(e);u.current=t,p(t)},[g,p]),w=(0,r.useCallback)(()=>{c.current&&(c.current=!1,m(!1),document.body.style.userSelect="",document.body.style.cursor="",s(u.current))},[]);return(0,r.useEffect)(()=>{let e=a.current;if(e)return e.addEventListener("pointerdown",h),document.addEventListener("pointermove",v),document.addEventListener("pointerup",w),document.addEventListener("pointercancel",w),()=>{e.removeEventListener("pointerdown",h),document.removeEventListener("pointermove",v),document.removeEventListener("pointerup",w),document.removeEventListener("pointercancel",w)}},[a,h,v,w]),(0,r.useEffect)(()=>{p(l)},[]),{containerRef:i,handleRef:a,size:l,isResizing:d}};var F=n(11719);let U=e=>{let{componentName:t,page:n="independent_function_page",extraParams:o={},enabled:i=!0,threshold:a=.5}=e,c=(0,r.useRef)(null),u=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(!i||!c.current||u.current)return;let e=c.current,r=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&!u.current&&(u.current=!0,(0,_.I)((0,F._)({id:"independent_function_page_component_view",component_name:t,page:n},o)),r.disconnect())})},{threshold:a,rootMargin:"0px"});return r.observe(e),()=>{r.disconnect()}},[t,n,o,i,a]),c};var Z=n(73378);function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{eventId:t="page_duration",pageKey:n="",extraParams:o={},visibleOnly:i=!0,minDuration:a=1,enabled:c=!0}=e,u=(0,r.useRef)(Date.now()),l=(0,r.useRef)(0),s=(0,r.useRef)(Date.now()),d=(0,r.useRef)(!1),m=(0,r.useCallback)(()=>{let e;if(d.current)return;d.current=!0,i?("visible"===document.visibilityState&&(l.current+=Date.now()-s.current),e=l.current):e=Date.now()-u.current;let r=e/1e3;r<a||(0,Z.I)((0,F._)({id:t,duration:r.toFixed(2),page_key:n,visible_only:i},o))},[t,n,o,i,a]);(0,r.useEffect)(()=>{if(!c)return;u.current=Date.now(),s.current=Date.now(),l.current=0,d.current=!1;let e=()=>{"hidden"===document.visibilityState?l.current+=Date.now()-s.current:s.current=Date.now()},t=()=>m(),n=()=>m();return i&&document.addEventListener("visibilitychange",e),window.addEventListener("beforeunload",t),window.addEventListener("pagehide",n),()=>{m(),i&&document.removeEventListener("visibilitychange",e),window.removeEventListener("beforeunload",t),window.removeEventListener("pagehide",n)}},[c,i,m])}n(25171);var P=n(72914),z=n(87894),V=n(18950);function j(){let e=(0,r.useRef)(null),t=(0,r.useCallback)(()=>{e.current&&(e.current.abort(),e.current=null)},[]),n=(0,r.useCallback)(()=>{t();let n=new AbortController;return e.current=n,n},[t]);return{abort:t,createAbortController:n}}function M(e){let{searchKeyword:t,isSearchMode:n,onClearSearch:o}=e,[i,a]=(0,r.useState)(!1),c=(0,r.useCallback)(()=>{(t||n)&&o(),a(!1)},[o,t,n]);return{isSearchExpanded:i,setIsSearchExpanded:a,handleCloseSearch:c}}n(53787),n(54985),n(61997)},7475:function(e,t,n){n.d(t,{Fo:function(){return i},TV:function(){return a},UE:function(){return u}});let r=new Set,o=new Set,i=()=>r.size>0,a=e=>(o.add(e),()=>{o.delete(e)}),c=()=>
1o.forEach(e=>e());function u(){let e=Symbol("login");r.add(e),c();let t=()=>{r.delete(e)&&c()},n=setTimeout(t,15e4);return()=>{clearTimeout(n),t()}}},39869:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(11719),o=n(46153),i=n(28733),a=n(79206),c=n(97194),u=n(77269),l=n(20745),s=n(62148),d=n(42873),m=n(29099),f=n(17271),p=n(7475),g=()=>{let e=(0,i.T)(),t=(0,o.I0)(),n=()=>{d.Z.confirm({size:"s",colorMode:"dark",icon:null,closeIcon:null,title:e("preview_version_title"),content:e("preview_version_description"),okText:e("preview_version_join_button"),cancelText:e("preview_version_visit_button"),wrapClassName:"preview-intercept-modal",onOk:()=>{window.location.href=(0,a.Q2)(l.rF)},onCancel:()=>{window.location.href="".concat(u.rX)}})};return{getUserInfo:async function(e){let{canCommit:o=()=>!0,signal:i,suppressRequestToast:a=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=(0,p.UE)();try{let{userInfo:n}=await (0,c.getCurrentUser)(a||i?(0,r._)({},i?{signal:i}:{},a?{showToast:!1}:{}):void 0);if(!n||!o())return!1;let u={userID:null==n?void 0:n.userID,realUserID:null==n?void 0:n.realUserID,retentionDays:null==n?void 0:n.retentionDays,userName:null==n?void 0:n.name,avatar:null==n?void 0:n.avatar,id:null==n?void 0:n.id,email:null==n?void 0:n.email,phone:null==n?void 0:n.phone,canAffiliate:null==n?void 0:n.canAffiliate,isRegister:null!=e&&e};return t((0,f.x4)(u)),t((0,f.pZ)(!1)),(0,m.Tl)(n),!0}catch(e){return console.error("fetch user info err",e),(0,s.k0)(e)&&26===e.code&&n(),!1}finally{u()}}}}},87894:function(e,t,n){n.d(t,{V:function(){return o}});var r=n(88661);let o=(e,t,n)=>{let{disabled:o=!1,preventDefault:i=!1}=n||{},a=(0,r.useCallback)(e=>{if(o)return;let n=e.clipboardData;if(!n)return;let r=Array.from(n.items).map(e=>e.getAsFile()).filter(e=>null!==e),a=n.getData("text/plain")||"",c=n.getData("text/html")||"";i&&e.preventDefault(),t(e,{files:r,text:a,html:c})},[t,o,i]);(0,r.useEffect)(()=>{let t=null;if(t="string"==typeof e?document.querySelector(e):"function"==typeof e?e():e.current)return t.addEventListener("paste",a),()=>{t.removeEventListener("paste",a)}},[e,a])}},53787:function(e,t,n){n.d(t,{D:function(){return h}});var r=n(11719),o=n(26015),i=n(88661),a=n(28733),c=n(89153),u=n(82756),l=n(42236),s=n(92173),d=n(99659),m=n(79982),f=n(97024),p=n(71596),g=n(93340);function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{maxImages:t=14}=e,n=(0,a.T)(),[h,v]=(0,i.useState)([]),{uploadImage:w}=(0,s.Vn)(),_=(0,i.useRef)({}),y=(0,i.useRef)(h.length);y.current=h.length;let b=(0,i.useCallback)(e=>{let t=_.current[e];t&&(URL.revokeObjectURL(t),delete _.current[e])},[]),x=(0,i.useCallback)(()=>{Object.values(_.current).forEach(e=>URL.revokeObjectURL(e)),_.current={}},[]);(0,i.useEffect)(()=>()=>{x()},[x]);let k=h.some(e=>e.status===u.Z0.loading),E=h.filter(e=>e.status===u.Z0.success),L=(0,i.useCallback)(e=>{let i=y.current;if(i+e.length>t){p.Z.error(n("agent_chat_max_upload_image_toast",{num:t}));return}(0,g.I)({id:"image_chat_upload_image",upload_count:e.length,current_count:i}),e.forEach(e=>{let t=URL.createObjectURL(e),n=e.name,i=(0,c.Z)(),a=Date.now();_.current[i]=t;let s=(e,t)=>{if(e===u.Z0.clear){b(i),v(e=>e.filter(e=>e.uuid!==i));return}v(n=>n.map(n=>n.uuid===i?(0,o._)((0,r._)({},n,t),{uuid:i,status:e,frameType:l.w.Reference,_uploadedAt:a}):n)),e===u.Z0.success&&b(i)};v(r=>[...r,{url:t,uuid:i,file:e,name:n,file_type:e.type.split("/")[1]||"jpeg",status:u.Z0.placeholder,frameType:l.w.Reference,_uploadedAt:a}]),w({file:e,fileScene:u.OA.image_history_to_image_and_video,verify:[d.f,d.G,m._O,m.GV],preprocess:[f.Fw],trackBaseParams:{upload_type:u.pY.click},onStart:e=>{s(u.Z0.loading,e)},onSuccess:e=>{s(u.Z0.success,e)},onError:(e,t,n)=>{t&&p.Z.error(t),s(u.Z0.clear,e)},onVerifyFail:(e,t)=>{t.message&&p.Z.error(t.message),s(u.Z0.clear,e)},onPreprocessFail:(e,t)=>{t&&p.Z.error(t),s(u.Z0.clear,e)}})})},[t,b,n,w]),T=(0,i.useCallback)(e=>{b(e),v(t=>t.filter(t=>t.uuid!==e))},[b]),C=(0,i.useCallback)(e=>{},[]),R=(0,i.useCallback)(()=>{x(),v([])},[x]);return{images:h,setImages:v,isImageUploading:k,successImages:E,handleUpload:L,handleRemove:T,handleRetry:C,clearImages:R}}},10346:function(e,t,n){n.d(t,{R:function(){return o}});var r=n(88661);let o=e=>{let[t,n]=(0,r.useState)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=(0,r.useRef)(null),c=(0,r.useCallback)(t=>{let r=t||document.getElementById(e);if(r){let e=r.getBoundingClientRect();e.width>0&&(n(e.width),a.current=r)}},[e]),u=(0,r.useCallback)(e=>
1{o.current&&o.current.disconnect(),o.current=new ResizeObserver(()=>{c(e)}),o.current.observe(e)},[c]),l=(0,r.useCallback)(()=>{let t=document.getElementById(e);return!!t&&(c(t),u(t),!0)},[e,c,u]);return(0,r.useEffect)(()=>{if(!l())return i.current=new MutationObserver(()=>{if(l()){var e;null===(e=i.current)||void 0===e||e.disconnect()}}),i.current.observe(document.body,{childList:!0,subtree:!0}),()=>{o.current&&o.current.disconnect(),i.current&&i.current.disconnect()}},[l]),t}},18950:function(e,t,n){n.d(t,{DP:function(){return o},GM:function(){return i}});var r=n(88661);let o="createbar:scroll-close";function i(e,t){let n=(0,r.useRef)(t);n.current=t,(0,r.useEffect)(()=>{if(!e)return;let t=()=>{n.current()};return window.addEventListener(o,t),()=>{window.removeEventListener(o,t)}},[e])}},25171:function(e,t,n){n.d(t,{d:function(){return l}});var r=n(88661),o=n(46153),i=n(79206),a=n(23883),c=n(42084),u=n(20745);let l=()=>{let e=(0,i.jD)(),t=(0,i.lr)().get("source-page")||"",n=(0,c.K)(),l=(0,o.v9)(e=>e.createUI.forceSidebarShow);return{notShowSideBar:(0,r.useMemo)(()=>{if(l)return!1;let r=(0,u.F2)(e),o=(0,u.RU)(e),i=(0,u.ky)(e),c=r&&!n,s=r&&n;return i||c||s&&t===a.o.create||o},[e,n,t,l])}}},61997:function(e,t,n){n.d(t,{k:function(){return i}});var r=n(88661),o=n(80618);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{initialData:n,enabled:i=!0}=t,[a,c]=(0,r.useState)(null!=n?n:[]),[u,l]=(0,r.useState)(!(null==n?void 0:n.length)&&i),[s,d]=(0,r.useState)(null),m=(0,r.useRef)((null==n?void 0:n.length)?e:null);return(0,r.useEffect)(()=>{if(!i||m.current===e)return;let t=!1;return l(!0),d(null),(0,o.PP)(e).then(n=>{t||(c(n),m.current=e)}).catch(n=>{if(t)return;let r=n instanceof Error?n:Error(String(n));d(r),m.current=e,console.error("Failed to load tools categories:",r)}).finally(()=>{t||l(!1)}),()=>{t=!0}},[e,i]),{categories:a,isLoading:u,error:s}}},77089:function(e,t,n){n.d(t,{R:function(){return a}});var r=n(88661),o=n(16253),i=n(79206);let a=()=>{let e=(0,o.usePathname)(),t=(0,r.useMemo)(()=>(0,i.oE)(e),[e]);return(0,r.useCallback)(e=>{let n=(0,i.Le)(e,t);window.history.replaceState({},"",n)},[t])}},42084:function(e,t,n){n.d(t,{K:function(){return f},Z:function(){return m}});var r=n(46153),o=n(20745),i=n(99422),a=n(23883),c=n(36928),u=n(87322),l=n(79206);let s="detailModalReferrer";function d(e,t){let n=o.o3?o.ft+"?".concat(o.o3,"=").concat(null!=t?t:""):o.ft;switch(e){case a.o.discover:return n;case a.o.mine:case a.o.folder_video:return o.EZ;case a.o.create:return o.GZ;case a.o.liked:case a.o.posted:return o.pk;default:return n}}function m(){let e=(0,r.I0)(),t=(0,l.tv)(),n=(0,r.oR)(),m=(0,l.lr)(),f=(0,l.jD)();return{openVideoDetailModal:r=>{let{sourcePage:l,target:d,list:p,hasNext:g,homeTabID:h,filterType:v,isAwarded:w}=r,_=l===a.o.create?i.L.mine:i.L[l];try{let r=n.getState();e((0,u.H5)(_)),e((0,u.I1)(d)),e((0,u.k7)(p)),e((0,u.Yz)({pre:!1,next:g}));let a=r.mineList,y=r.folder,b=(null==a?void 0:a.subTabKey)===c.mK.insideFolder,x=null==y?void 0:y.currentFolderID,k=(0,o.eV)(d.videoAsset.generatorType),E="";if(f){let e=m.toString(),t=e?"".concat(f,"?").concat(e):f;sessionStorage.setItem(s,t)}switch(_){case i.L.discover:E="".concat(o.il).concat(k,"/").concat(d.id,"?").concat(o.o3,"=").concat(null!=h?h:"");break;case i.L.activityLanding:E="".concat(o.il).concat(k,"/").concat(d.id,"?").concat(o.o3,"=").concat(null!=h?h:"","&source-page=").concat(l,"&isAwarded=").concat(w);break;case i.L.agentTemplate:t.push("".concat(o.K5,"/").concat(d.id,"?source-page=").concat(l));return;default:{let e=b?"&folder-video-id=".concat(d.id):"";E="".concat(o.Fm).concat(k,"/").concat(d.id,"?source-page=").concat(l).concat(b?"&folder-id=".concat(x):"").concat(e).concat(v?"&filter-type=".concat(v):"")}}t.push(E)}catch(e){console.error("openVideoDetailModal error",e)}},closeVideoDetailModal:e=>{let{isModalMode:n}=e,r=sessionStorage.getItem(s);if(sessionStorage.removeItem(s),r)t.replace(r);else if(n){let e=d(m.get("source-page")||"",m.get(o.o3)||"");t.replace(e)}else{let e=d(m.get("source-page")||"",m.get(o.o3)||"");t.push(e)}}}}function f(){let e=(0,l.wm)("modal");return"(.)generate"===e[1]||"(.)my-work-detail"===e[1]}},80618:function(e,t,n){n.d(t,{Yz:function(){return o.Yz},pH:function(){return i.pH},Fu:function(){return i.Fu},oO:function(){return i.oO},Z3:function(){return i.Z3},ir:function(){return i.ir},PP:function(){return r.PP},HC:function(){return r.HC},iy:function(){return i.iy}});var r=n(51885),o=n(62784),i=n(58388)},51885:function(e,t,n){n.d(t,{iq:function(){return d},PP:function(){return m},HC:function(){return f},yT:function(){return s}});var r=n(89461),o=n(40857),i=n(11719),a=n(26015),c=n(89942);function u(e,t){if(!e)return"";for(let n of[t,t.toLowerCase()]){let t=e[n];if("string"==typeof t&&t.trim())return t}let n=e.default;return"string"==typeof n&&n.trim()?n:Object.values(e).find(e=>"string"==typeof e&&e.trim())||""}var l=n(88934);async function s(){let{data:e}=await r.default.get("/public/api/config/web/common_config");return function(e,t){if(!e)return e;let{preview_config:n}=e,r=(0,l._)(e,["preview_config"]);return t&&n?(0,i._)({},r,n):r}(e.data,(0,o.k)())}async function d(){let{data:e}=await r.default.get("/public/api/config/web/seo_config");return e.data}async function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"en";try{let t=await d(),n=null==t?void 0:t.tools_page_entry_v2;if(!(null==n?void 0:n.entry)||!Array.isArray(n.entry))return console.warn("⚠️ [getToolsCategories] tools_page_entry_v2 not found in SeoConfig"),[];let{categories:r}=function(e,t){var n;let r=[],o=new Map,l=new Map;if(!(null==e?void 0:null===(n=e.entry)||void 0===n?void 0:n.length))return{categories:r,toolLookupById:o,toolLookupByPageKey:l};let s=Object.entries(e.tools||{}).reduce((e,n)=>{let[r,o]=n;return e[r]=function(e,t){var n,r;let o=(0,c.J2)(e.tagType)?e.tagType:void 0,i="string"==typeof(n=e.path)&&/^\/(?!\/)/.test(n)?e.path:"",a="str
1ing"==typeof(r=e.coverImage)&&/^https:\/\//i.test(r)?e.coverImage:void 0;return i||console.warn("[localizeToolsItem] unsafe path dropped:",e.id,e.path),e.coverImage&&!a&&console.warn("[localizeToolsItem] unsafe coverImage dropped:",e.id,e.coverImage),{id:e.id,name:u(e.name,t),path:i,desc:u(e.desc,t)||void 0,coverImage:a,tagType:o}}(o,t),e},{});return e.entry.forEach(e=>{let n={id:e.id,title:u(e.title,t),desc:u(e.desc,t)||void 0},c=(e.toolIds||[]).map(e=>s[e]).filter(Boolean).filter(e=>!!e.path);c.forEach(e=>{var t;o.has(e.id)||o.set(e.id,e);let n=(t=e.path).startsWith("/tools/")?t.replace("/tools/","").split("?")[0].split("#")[0]:"";n&&!l.has(n)&&l.set(n,e)}),r.push((0,a._)((0,i._)({},n),{children:c}))}),{categories:r,toolLookupById:o,toolLookupByPageKey:l}}(n,e);return r}catch(e){return console.error("❌ [getToolsCategories] Failed to fetch tools categories:",e),[]}}async function f(){try{let e=await d(),t=null==e?void 0:e.tools_footer_config;if(!(null==t?void 0:t.columns)||!Array.isArray(t.columns))return console.warn("⚠️ [getToolsFooterConfig] tools_footer_config not found in SeoConfig"),null;return t}catch(e){return console.error("❌ [getToolsFooterConfig] Failed to fetch footer config:",e),null}}},23883:function(e,t,n){var r,o;n.d(t,{o:function(){return r}}),(o=r||(r={})).discover="discover",o.mine="mine",o.create="create",o.posted="posted",o.liked="liked",o.folder_video="folder_video",o.agentTemplate="agentTemplate",o.agentTemplateDetail="agentTemplateDetail",o.agentProject="agentProject",o.activityLanding="activityLanding"}}]);

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.