1 line
39 KiB
JavaScript
1 line
39 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,528225,136030,e=>{"use strict";var t=e.i(182004);let r=Symbol("cancelled"),s=new class{maxConcurrency;running;queue;constructor(e){this.maxConcurrency=e,this.running=0,this.queue=[]}add(e){return new Promise((t,r)=>{this.queue.push({task:e,resolve:t,reject:r}),this.flush()})}remove(e){let t=this.queue.findIndex(t=>t.task===e);if(-1===t)return!1;let[s]=this.queue.splice(t,1);return s.reject(r),!0}clear(){for(let e of this.queue.splice(0))e.reject(r)}flush(){for(;this.running<this.maxConcurrency&&this.queue.length>0;){let e=this.queue.shift();if(!e)break;this.running++,e.task().then(e.resolve).catch(e.reject).finally(()=>{this.running--,this.flush()})}}}(10);function i(e,t){return new Promise(r=>{let s=setTimeout(()=>r(void 0),t);e.then(e=>{clearTimeout(s),r(e)}).catch(()=>{clearTimeout(s),r(void 0)})})}async function n(e){return await i(s.add(()=>new Promise((t,r)=>{let s=new Image;s.onload=()=>{t({width:s.naturalWidth>0?s.naturalWidth:void 0,height:s.naturalHeight>0?s.naturalHeight:void 0})},s.onerror=()=>r(Error("image probe failed")),s.src=e})),1e4)??{}}async function l(e){return await i(new Promise((t,r)=>{let s=document.createElement("video");s.preload="metadata",s.src=e,s.onloadedmetadata=()=>{t({width:s.videoWidth>0?s.videoWidth:void 0,height:s.videoHeight>0?s.videoHeight:void 0,durationSec:Number.isFinite(s.duration)&&s.duration>0?s.duration:void 0}),s.removeAttribute("src"),s.load()},s.onerror=()=>{r(Error("video probe failed")),s.removeAttribute("src"),s.load()}}),1e4)??{}}async function a(e){return await i(new Promise((t,r)=>{let s=document.createElement("audio");s.preload="metadata",s.src=e,s.onloadedmetadata=()=>{t({durationSec:Number.isFinite(s.duration)&&s.duration>0?s.duration:void 0}),s.removeAttribute("src"),s.load()},s.onerror=()=>{r(Error("audio probe failed")),s.removeAttribute("src"),s.load()}}),1e4)??{}}function o(e){let t=e.lastIndexOf(".");return t>0?e.substring(t+1).toLowerCase():void 0}function c(e,r){let s=o(e.name),i={mimeType:e.type||void 0,byteSize:Number.isFinite(e.size)?e.size:void 0,extension:s};return r===t.NodeType.IMAGE?{kind:"image",...i}:r===t.NodeType.VIDEO?{kind:"video",...i}:r===t.NodeType.AUDIO?{kind:"audio",...i}:void 0}e.s(["mediaPreloadQueue",0,s],136030),e.s(["buildUploadMeta",()=>c,"extractExtension",()=>o,"probeAudioMeta",()=>a,"probeImageMeta",()=>n,"probeVideoMeta",()=>l],528225)},318359,(e,t,r)=>{var s=e.r(528253);t.exports=function(){return s.Date.now()}},919424,(e,t,r)=>{var s=/\s/;t.exports=function(e){for(var t=e.length;t--&&s.test(e.charAt(t)););return t}},425390,(e,t,r)=>{var s=e.r(919424),i=/^\s+/;t.exports=function(e){return e?e.slice(0,s(e)+1).replace(i,""):e}},914715,(e,t,r)=>{var s=e.r(425390),i=e.r(825036),n=e.r(961322),l=0/0,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(e){if("number"==typeof e)return e;if(n(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=s(e);var r=o.test(e);return r||c.test(e)?u(e.slice(2),r?2:8):a.test(e)?l:+e}},476293,(e,t,r)=>{var s=e.r(825036),i=e.r(318359),n=e.r(914715),l=Math.max,a=Math.min;t.exports=function(e,t,r){var o,c,u,d,f,p,h=0,m=!1,g=!1,x=!0;if("function"!=typeof e)throw TypeError("Expected a function");function v(t){var r=o,s=c;return o=c=void 0,h=t,d=e.apply(s,r)}function b(e){var r=e-p,s=e-h;return void 0===p||r>=t||r<0||g&&s>=u}function y(){var e,r,s,n=i();if(b(n))return w(n);f=setTimeout(y,(e=n-p,r=n-h,s=t-e,g?a(s,u-r):s))}function w(e){return(f=void 0,x&&o)?v(e):(o=c=void 0,d)}function C(){var e,r=i(),s=b(r);if(o=arguments,c=this,p=r,s){if(void 0===f)return h=e=p,f=setTimeout(y,t),m?v(e):d;if(g)return clearTimeout(f),f=setTimeout(y,t),v(p)}return void 0===f&&(f=setTimeout(y,t)),d}return t=n(t)||0,s(r)&&(m=!!r.leading,u=(g="maxWait"in r)?l(n(r.maxWait)||0,t):u,x="trailing"in r?!!r.trailing:x),C.cancel=function(){void 0!==f&&clearTimeout(f),h=0,o=p=c=f=void 0},C.flush=function(){return void 0===f?d:w(i())},C}},395,168161,395132,e=>{"use strict";var t=e.i(462214),r=e.i(358379),s=e.i(41671),i=e.i(295085),n=e.i(23741);let l="poolKey";function a(e,t){e.dataset[l]=t}let o=e=>(e=>{if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("blob:"))return!0;if(e.startsWith("data:")){let t=e.indexOf(",");return -1!==t&&(e.length-t-1)*.75<=512e3}return!1})(e),c=void 0!==n.default&&!1;class u{available=new Map;totalAvailable=0;lruKeys=new Set;maxPoolSize;evictScheduled=!1;_hits=0;_misses=0;constructor(e=300){this.maxPoolSize=e}acquire(e){if(o(e)){let t=this.available.get(e);if(t&&t.length>0){c&&this._hits++;let r=t.pop();if(r)return this.totalAvailable--,0===t.length&&this.available.delete(e),a(r,e),r}}c&&this._misses++;let t=document.createElement("img");return t.src=e,a(t,e),t}tryAcquire(e){if(!o(e))return null;let t=this.available.get(e);if(!t||0===t.length)return null;let r=t.pop()??null;return r?(this.totalAvailable--,0===t.length&&this.available.delete(e),a(r,e),r):null}release(e,t){let r=t??e.dataset?.[l],s=r??e.currentSrc??e.src;if(!s||!o(s)){c&&console.warn("[imgPool] release skip",{key:r?.slice?.(0,80),src:s?.slice?.(0,80),poolable:!!s&&o(s)});return}e.onload=null,e.onerror=null;let i=this.available.get(s);i||(i=[],this.available.set(s,i)),i.push(e),this.totalAvailable++,this.lruKeys.delete(s),this.lruKeys.add(s),this.totalAvailable>this.maxPoolSize&&!this.evictScheduled&&(this.evictScheduled=!0,queueMicrotask(()=>{this.evictScheduled=!1,this.evictExcess()}))}evictExcess(){for(;this.totalAvailable>this.maxPoolSize&&this.lruKeys.size>0;){let e=this.lruKeys.values().next().value,t=this.available.get(e);if(!t||0===t.length){this.lruKeys.delete(e);continue}let r=t.shift();r&&(r.src=""),this.totalAvailable--,0===t.length&&(this.available.delete(e),this.lruKeys.delete(e))}}getStats(){if(!c)return;let e=this._hits+this._misses,t=e>0?(this._hits/e*100).toFixed(1)+"%":"0%";return{hits:this._hits,misses:this._misses,hitRate:t}}}let d=new u(function(){if("u"<typeof navigator)return 300;let e=navigator.deviceMemory;return"number"==typeof e&&e<=4?200:"number"==typeof e&&e<=8?400:600}());function f(e,t){e.alt=t.alt??"",e.className=t.className??"",void 0!==t.crossOrigin&&(e.crossOrigin=t.crossOrigin??""),void 0!==t.draggable?e.draggable="string"==typeof t.draggable?"false"!==t.draggable:!!t.draggable:e.draggable=!1,e.decoding=t.decoding??"async",void 0!==t.srcSet&&(e.srcset=t.srcSet),void 0!==t.sizes&&(e.sizes=t.sizes),void 0!==t.width&&(e.width="number"==typeof t.width?t.width:parseInt(t.width,10)),void 0!==t.height&&(e.height="number"==typeof t.height?t.height:parseInt(t.height,10)),t.loading&&(e.loading=t.loading),t.fetchPriority&&e.setAttribute("fetchpriority",t.fetchPriority),t.style&&"object"==typeof t.style?(e.removeAttribute("style"),Object.assign(e.style,t.style)):t.style||e.removeAttribute("style"),e.onload=t.onLoad?e=>t.onLoad(e):null,e.onerror=t.onError?e=>t.onError(e):null,e.onclick=t.onClick?e=>t.onClick(e):null,t.onLoad&&e.complete&&e.naturalWidth>0&&t.onLoad({currentTarget:e})}function p(e){e.onload=null,e.onerror=null,e.onclick=null,e.parentNode&&e.parentNode.removeChild(e),d.release(e)}e.s(["imgPool",0,d,"setPoolKey",()=>a],168161);let h={display:"contents"},m=(0,r.memo)(function({src:e="",bustKey:s,expectedAcquireUrl:n,...l}){let o=(0,r.useRef)(null),c=(0,r.useRef)(null),u=(0,r.useRef)(l),m=(0,r.useRef)(l);m.current=l;let g=(0,r.useRef)(n);return g.current=n,(0,r.useLayoutEffect)(()=>()=>{let e=o.current;if(e)for(;e.firstChild;)p(e.firstChild);c.current=null},[]),(0,r.useLayoutEffect)(()=>{let t=o.current;if(!t)return;if((0,i.isEmptyImageSrc)(e)){let e=c.current;e&&(p(e),c.current=null);return}let r=c.current;if(!r||!r.parentNode||s){r?.parentNode&&p(r);let i=g.current||e,n=s?document.createElement("img"):d.acquire(i);s&&a(n,i),(s||n.src!==i)&&(n.src=e),f(n,m.current),t.appendChild(n),c.current=n;return}let n=g.current||e,l=d.tryAcquire(n);l&&l.complete&&l.naturalWidth>0?(t.replaceChild(l,r),d.release(r),c.current=l,f(l,m.current)):(l&&d.release(l),f(r,m.current),r.src=e)},[e,s]),(0,r.useLayoutEffect)(()=>{let e=c.current;e&&n&&a(e,n)},[n]),(0,r.useLayoutEffect)(()=>{if(!c.current)return;let e=u.current;(e.className!==l.className||e.alt!==l.alt||e.style!==l.style||e.srcSet!==l.srcSet||e.sizes!==l.sizes||e.width!==l.width||e.height!==l.height||e.onLoad!==l.onLoad||e.onError!==l.onError||e.onClick!==l.onClick)&&(u.current=l,f(c.current,l))}),(0,t.jsx)("div",{ref:o,style:h})});e.s(["default",0,m],395132);let g=e=>!!e&&(e.startsWith("blob:")||e.startsWith("data:")),x=(0,r.memo)(function({src:e,alt:n,className:l,iconSize:a=32,crossOrigin:o,retryKey:c,onLoadError:u,onLoadSuccess:d,onCacheCapture:f,skipBlobTransition:p,uploaded:h,srcSet:x,sizes:v,fetchPriority:b,expectedAcquireUrl:y,...w}){let[C,j]=(0,r.useState)(!1),[N,k]=(0,r.useState)(),[S,L]=(0,r.useState)(!1),[I,E]=(0,r.useState)(!1),T=(0,r.useRef)(e),[z,A]=(0,r.useState)(0),M=(0,r.useRef)(),R=!p&&g(e);(0,r.useEffect)(()=>{let t=T.current;T.current=e,j(!1),A(0),M.current&&(clearTimeout(M.current),M.current=void 0),E(!1),!p&&g(t)&&e&&!g(e)?k(t):k(void 0),L(!1)},[e]),(0,r.useEffect)(()=>()=>{M.current&&clearTimeout(M.current)},[]),(0,r.useEffect)(()=>{if(!S||!N)return;let e=setTimeout(()=>E(!0),350);return()=>clearTimeout(e)},[S,N]),(0,r.useEffect)(()=>{void 0!==c&&c>0&&(M.current&&(clearTimeout(M.current),M.current=void 0),A(0),j(!1))},[c]);let U=(0,r.useCallback)(t=>{if(L(!0),d?.(),e&&f){let r=t.currentTarget;f(r?.currentSrc||e)}},[d,f,e]),P=(0,r.useCallback)(()=>{let t=void 0!==c||u?0:1;if(e&&!g(e)&&z<t){M.current=setTimeout(()=>{M.current=void 0,A(e=>e+1),j(!1)},2e3*(z+1)),j(!0);return}j(!0),u?.()},[u,z,e]),O=(0,r.useCallback)(t=>{if(d?.(),e&&f){let r=t.currentTarget;f(r?.currentSrc||e)}},[d,f,e]);return C||(0,i.isEmptyImageSrc)(e)?(0,t.jsx)("div",{className:`flex w-full items-center justify-center bg-[#F5F5F5] dark:bg-[#212121] ${l??""}`,children:(0,t.jsx)(s.Icons.ImagePlaceholder,{width:a,height:a,className:"text-[#a8a8a8] dark:text-white/15"})}):N?(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,t.jsx)("img",{src:N,alt:"",className:l,style:{filter:"blur(12px)",transform:"scale(1.1)"},crossOrigin:o,draggable:w.draggable??!1}),(0,t.jsx)("div",{className:"bg-bg-overlay pointer-events-none absolute inset-0 flex items-center justify-center",style:{opacity:+!S,transition:"opacity 300ms ease-out"},children:(0,t.jsx)("span",{className:"border-fg-muted/35 border-t-fg-default size-5 animate-spin rounded-full border-2"})}),(0,t.jsx)(m,{src:e,alt:n??"",className:I?l:"absolute inset-0 h-full w-full object-cover",style:I?void 0:{opacity:+!!S,transition:"opacity 300ms ease-out"},crossOrigin:o,onLoad:U,onError:P,...w})]}):R?h?(0,t.jsx)("img",{src:e,alt:n??"",className:l,crossOrigin:o,draggable:w.draggable??!1,...w}):(0,t.jsxs)("div",{className:"relative h-full w-full overflow-hidden",children:[(0,t.jsx)("img",{src:e,alt:n??"",className:l,style:{filter:"blur(12px)",transform:"scale(1.1)"},crossOrigin:o,draggable:w.draggable??!1,...w}),(0,t.jsx)("div",{className:"bg-bg-overlay absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"border-fg-muted/35 border-t-fg-default size-5 animate-spin rounded-full border-2"})})]}):(0,t.jsx)(m,{bustKey:z,src:e,alt:n??"",className:l,crossOrigin:o,onError:P,onLoad:O,srcSet:x,sizes:v,fetchPriority:b,expectedAcquireUrl:y,...w})});e.s(["default",0,x],395)},111581,e=>{"use strict";var t=e.i(358379);let r=(0,t.createContext)({takeSnapshot:()=>{},undo:void 0,redo:void 0,canUndo:!1,canRedo:!1,ungroupNode:()=>{},deleteEdgeById:()=>{},openCreateAssetModal:()=>{},openCreateWorkflowModal:()=>{},openMyWorkflowModal:()=>{},onApplyAsset:()=>{},pullCanvas:()=>{},runGroupPipeline:async()=>({completed:[],failed:null,skipped:[]}),regenGridGroup:async()=>{},stopGroupPipeline:()=>{},resetGroupPipelineState:()=>{},pipelineStates:{},singlePipelineState:{running:!1,plan:[],currentIndex:-1,nodeStatuses:{}},requestFileUpload:()=>{},downloadNodesAsZip:()=>{},batchZipDownload:{status:"idle"},cancelBatchZipDownload:()=>{},duplicateVideoSourceForClipSplit:void 0,duplicateAudioSourceForClipSplit:void 0}),s=r.Provider;function i(){return(0,t.useContext)(r)}e.s(["CanvasProvider",0,s,"useCanvasCallbacks",()=>i])},290297,e=>{"use strict";var t=e.i(23741);function r(){return void 0!==t.default&&t.default.env&&1?"production":"development"}e.s(["getEnv",()=>r])},518366,e=>{"use strict";var t=e.i(462214);e.i(358379),e.i(7284);var r=e.i(910655),s=e.i(525230),i=e.i(479324),n=e.i(511859);let l={__staticSelector:"InputBase",withAria:!0,size:"sm"},a=(0,r.polymorphicFactory)((e,r)=>{let{inputProps:a,wrapperProps:o,...c}=function(e,t,r){let s=(0,i.useProps)(e,t,r),{label:l,description:a,error:o,required:c,classNames:u,styles:d,className:f,unstyled:p,__staticSelector:h,__stylesApiProps:m,errorProps:g,labelProps:x,descriptionProps:v,wrapperProps:b,id:y,size:w,style:C,inputContainer:j,inputWrapperOrder:N,withAsterisk:k,variant:S,vars:L,mod:I,attributes:E,...T}=s,{styleProps:z,rest:A}=(0,n.extractStyleProps)(T),M={label:l,description:a,error:o,required:c,classNames:u,className:f,__staticSelector:h,__stylesApiProps:m||s,errorProps:g,labelProps:x,descriptionProps:v,unstyled:p,styles:d,size:w,style:C,inputContainer:j,inputWrapperOrder:N,withAsterisk:k,variant:S,id:y,mod:I,attributes:E,...b};return{...A,classNames:u,styles:d,unstyled:p,wrapperProps:{...M,...z},inputProps:{required:c,classNames:u,styles:d,unstyled:p,size:w,__staticSelector:h,__stylesApiProps:m||s,error:o,variant:S,id:y,attributes:E}}}("InputBase",l,e);return(0,t.jsx)(s.Input.Wrapper,{...o,children:(0,t.jsx)(s.Input,{...a,...c,ref:r})})});a.classes={...s.Input.classes,...s.Input.Wrapper.classes},a.displayName="@mantine/core/InputBase",e.s(["InputBase",()=>a],518366)},675706,e=>{"use strict";e.i(966660);var t=e.i(941060),r=e.i(624452),s=e.i(466752),i=e.i(593933),n=e.i(319606),l=e.i(505e3),a=e.i(135623),o=e.i(168823);let c={getExtraHeaders:()=>{let e=(0,a.getCookieWebid)(),t=(0,o.getCookie)(l.LOCALE_COOKIE_KEY),r={webid:"string"==typeof e?e:"","x-language":"string"==typeof t?t:"zh"};{let e=(0,o.getCookie)(l.USER_TOKEN_COOKIE_KEY);e&&"string"==typeof e&&(r.token=e)}return r},onError:e=>{console.error(e)},baseURL:(0,n.getUrl)("/api/www")},u=new i.SDService({...c,baseURL:""}),d=new s.ModelInfoService(c),f=new r.EditorImageService({...c,baseURL:""}),p=new t.ConfigService(c);e.s(["configService",0,p,"editorImageService",0,f,"modelInfoService",0,d,"sdService",0,u])},636820,e=>{"use strict";var t=e.i(462214),r=e.i(358379),s=e.i(41671),i=e.i(41114);let n=(0,r.memo)(function({icon:e,iconElement:r,label:n,active:l,disabled:a,onClick:o,className:c}){return(0,t.jsxs)("button",{type:"button",disabled:a,onClick:o,className:(0,i.cn)("border-border-default border-hair flex size-12 flex-col items-center justify-center gap-0.5 rounded-lg p-1 transition-colors",a?"cursor-not-allowed":"cursor-pointer",l?"bg-canvas-controls-active canvas-light:bg-transparent canvas-light:shadow-[inset_0_0_0_1px_var(--canvas-controls-border)]":"bg-transparent",!a&&"hover:bg-btn-ghost-hover active:bg-btn-ghost-active",c),children:[r??(e&&(0,t.jsx)(s.IconifyIcon,{icon:e,className:a?"text-fg-disabled":l?"text-canvas-controls-text":"text-fg-muted canvas-light:text-neutral-700"})),n?(0,t.jsx)("span",{className:(0,i.cn)("text-center text-[10px] leading-3",a?"text-fg-disabled":l?"text-canvas-controls-text":"text-fg-muted canvas-light:text-neutral-700"),style:e||r?void 0:{maxWidth:"2.5em"},children:n}):null]})});e.s(["ActionButton",0,n])},121959,629062,e=>{"use strict";var t,r,s=e.i(462214),i=e.i(358379),n=e.i(403094),l=e.i(734911),a=e.i(41671),o=e.i(777784),c=e.i(299750),u=e.i(675706),d=e.i(216257),f=e.i(791997),p=e.i(135623),h=e.i(41114),m=((t={}).Hot="hot",t.Collect="collect",t.History="history",t),g=((r={})[r.Recommend=0]="Recommend",r[r.Latest=1]="Latest",r[r.MostUsed=2]="MostUsed",r);let x=[19,20,5],v=[{id:m.Hot,label:"广场"},{id:m.Collect,label:"我的收藏"},{id:m.History,label:"最近使用"}];function b({activeKey:e,onChange:t}){return(0,s.jsx)("div",{className:"border-canvas-controls-border bg-canvas-controls-hover flex shrink-0 items-center gap-1 rounded-xl border-[0.5px] p-1",style:{boxShadow:"var(--canvas-shadow-panel)"},children:v.map(r=>(0,s.jsx)("button",{type:"button",onClick:()=>t(r.id),className:(0,h.cn)("flex h-8 min-w-[76px] items-center justify-center rounded-lg px-3 py-2 text-[13px] transition-colors",e===r.id?"bg-btn-ghost-active canvas-light:bg-white text-fg-default":"text-fg-muted hover:bg-btn-ghost-hover"),children:r.label},r.id))})}function y(){return(0,s.jsxs)("div",{className:"relative size-[104px] shrink-0",children:[(0,s.jsx)("svg",{viewBox:"0 0 58 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute left-6 top-3.5 h-[59px] w-[58px]",children:(0,s.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H29H41.8431C42.904 0 43.9214 0.421427 44.6716 1.17157L50 6.5L56.8716 13.5863C57.5953 14.3326 58 15.3314 58 16.3709V29.5V55C58 57.2091 56.2091 59 54 59H4C1.79086 59 0 57.2091 0 55V4Z",fill:"#525252"})}),(0,s.jsxs)("svg",{viewBox:"0 0 58 59",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute left-6 top-3.5 h-[59px] w-[58px]",children:[(0,s.jsx)("mask",{id:"empty-folder-mask",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"58",height:"59",children:(0,s.jsx)("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H29H41.8431C42.904 0 43.9214 0.421427 44.6716 1.17157L50 6.5L56.8716 13.5863C57.5953 14.3326 58 15.3314 58 16.3709V29.5V55C58 57.2091 56.2091 59 54 59H4C1.79086 59 0 57.2091 0 55V4Z",fill:"#29313A"})}),(0,s.jsx)("g",{mask:"url(#empty-folder-mask)",children:(0,s.jsx)("path",{d:"M42 12V-3L60.5 16H46C43.7909 16 42 14.2091 42 12Z",fill:"#363636"})})]}),(0,s.jsxs)("svg",{viewBox:"0 0 81.4831 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"absolute left-3 top-[34px] h-[54px] w-[82px]",children:[(0,s.jsxs)("defs",{children:[(0,s.jsxs)("filter",{id:"empty-folder-inner-shadow",x:"-20",y:"-20",width:"121.483",height:"94",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,s.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,s.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),(0,s.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,s.jsx)("feOffset",{dy:"1"}),(0,s.jsx)("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:"-1",k3:"1"}),(0,s.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.66 0"}),(0,s.jsx)("feBlend",{mode:"normal",in2:"shape",result:"effect1_innerShadow"})]}),(0,s.jsxs)("radialGradient",{id:"empty-folder-gradient",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(42.7717 2) rotate(89.5416) scale(62.502 63.7305)",children:[(0,s.jsx)("stop",{stopColor:"#CDDAEB"}),(0,s.jsx)("stop",{offset:"1",stopColor:"white"})]})]}),(0,s.jsxs)("g",{filter:"url(#empty-folder-inner-shadow)",children:[(0,s.jsx)("path",{d:"M0.00628562 4.22188C-0.121092 1.92908 1.70379 0 4.00013 0H28.6322C29.9986 0 31.3055 0.559217 32.249 1.54762L38.9081 8.52381C40.4177 10.1053 42.5087 11 44.6949 11H77.4829C79.8017 11 81.6346 12.9653 81.4732 15.2784L79.0314 50.2784C78.8852 52.3744 77.1422 54 75.0411 54H6.55568C4.43274 54 2.6796 52.3415 2.56184 50.2219L0.00628562 4.22188Z",fill:"url(#empty-folder-gradient)",fillOpacity:"0.8"}),(0,s.jsx)("path",{d:"M4.00025 0.200195H28.6321C29.9438 0.200195 31.199 0.736679 32.1047 1.68555L38.7629 8.66211C40.3102 10.283 42.4538 11.2001 44.6946 11.2002H77.4827C79.6855 11.2002 81.427 13.0672 81.2737 15.2646L78.8323 50.2646C78.6933 52.2557 77.0372 53.7997 75.0413 53.7998H6.55592C4.53919 53.7998 2.87393 52.2245 2.76197 50.2109L0.206307 4.21094C0.0852978 2.03277 1.81873 0.200195 4.00025 0.200195Z",stroke:"#E3E3E3",strokeWidth:"0.4"})]})]}),(0,s.jsx)("div",{className:"absolute left-[77px] top-[52px] h-1 w-2.5 rounded-[1px] bg-white"})]})}var w=e.i(295085);function C({item:e,isSelected:t,onSelect:r,onLike:n,showAuthorInfo:l=!1}){let o=e.imageUrl||e.webpUrl||"",c=e.name||e.modelName||"",u=e.runCount,[d,f]=(0,i.useState)(!1),[p,m]=(0,i.useState)(!1),{elementRef:g,isVisible:x}=((e={})=>{let{rootMargin:t="100px",threshold:r=.1,triggerOnce:s=!0}=e,[n,l]=(0,i.useState)(!1),[a,o]=(0,i.useState)(!1),c=(0,i.useRef)(null);return(0,i.useEffect)(()=>{if(s&&a)return;let e=null,i=requestAnimationFrame(()=>{let i;(i=c.current)&&(e=new IntersectionObserver(([t])=>{t.isIntersecting?(l(!0),s&&(o(!0),e?.unobserve(i))):s||l(!1)},{rootMargin:t,threshold:r})).observe(i)});return()=>{cancelAnimationFrame(i),e&&(e.disconnect(),e=null)}},[t,r,s,a]),{elementRef:c,isVisible:n}})({rootMargin:"200px"}),v=(0,i.useCallback)(e=>{e&&(f(!1),m(!1),e.complete&&e.naturalWidth>0&&f(!0))},[o]),b=(0,i.useMemo)(()=>{if((0,w.isVideoUrl)(o)){let e=o.includes("?")?"&":"?";return`${o}${e}x-oss-process=video/snapshot,t_0,f_jpg,w_400,m_fast`}return(0,w.getFasterCroppedImage)(o,{width:196,height:261})},[o]);return(0,s.jsxs)("div",{className:(0,h.cn)("group relative flex cursor-pointer flex-col gap-2 p-1 transition-all",t?"border-border-brand bg-bg-surface-secondary rounded-xl border":"hover:bg-bg-surface-secondary rounded-lg border border-transparent hover:rounded-xl"),onClick:()=>r(e),children:[(0,s.jsxs)("div",{ref:g,className:"aspect-196/261 relative w-full overflow-hidden rounded-lg",children:[o&&!p?(0,s.jsxs)(s.Fragment,{children:[!d&&(0,s.jsx)("div",{className:"bg-bg-surface-secondary absolute inset-0 animate-pulse"}),x&&(0,s.jsx)("img",{ref:v,src:b,alt:c,className:(0,h.cn)("absolute inset-0 size-full object-cover transition-opacity duration-200",d?"opacity-100":"opacity-0"),decoding:"async",onLoad:()=>f(!0),onError:()=>m(!0)},b)]}):(0,s.jsx)("div",{className:"bg-bg-surface-secondary flex size-full items-center justify-center",children:(0,s.jsx)(a.Icons.image,{className:"text-fg-muted size-8"})}),null!=u&&u>0&&(0,s.jsxs)("div",{className:"bg-linear-to-t absolute inset-x-0 bottom-0 flex items-center gap-1 from-black/70 to-transparent p-2",children:[(0,s.jsx)(a.Icons.PlayLine,{className:"size-3 text-white"}),(0,s.jsx)("span",{className:"text-xs text-white",children:u>1e4?`${(u/1e4).toFixed(1)}w`:u})]}),n&&(0,s.jsx)("button",{type:"button",className:"absolute bottom-1.5 right-1.5 flex size-6 items-center justify-center rounded-full bg-black/40 opacity-0 transition-opacity group-hover:opacity-100",onClick:t=>{t.stopPropagation(),n(e)},children:e.isLike?(0,s.jsx)(a.Icons.LikeF,{className:"h-4 w-4 text-[#F53F3F]"}):(0,s.jsx)(a.Icons.LikeL,{className:"h-4 w-4 text-white"})})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1 px-1",children:[(0,s.jsx)("p",{className:"text-fg-default w-full truncate text-sm font-medium",children:c}),l&&(0,s.jsxs)("div",{className:"flex items-center gap-1",children:[e.avatar?(0,s.jsx)("img",{src:e.avatar,alt:"",className:"size-4 shrink-0 rounded-full object-cover"}):(0,s.jsx)(a.Icons.image,{className:"text-fg-muted size-4 shrink-0"}),(0,s.jsx)("span",{className:"text-fg-muted min-w-0 flex-1 truncate text-xs",children:e.nickname||"佚名"})]})]})]})}function j({value:e,onChange:t,onSearch:r,onClear:n}){let l=(0,i.useCallback)(e=>{"Enter"===e.key&&r()},[r]);return(0,s.jsxs)("div",{className:"border-canvas-controls-border bg-canvas-controls-hover flex h-10 w-[336px] shrink-0 items-center overflow-hidden rounded-full border-[0.5px] py-2 pl-4 pr-1",children:[(0,s.jsx)("input",{value:e,onChange:e=>t(e.target.value),onKeyDown:l,placeholder:"搜索模型名称、作者、标签",className:"text-fg-default placeholder:text-canvas-controls-text/50 min-w-0 flex-1 bg-transparent text-sm outline-none"}),e&&(0,s.jsx)("button",{type:"button",onClick:n,className:"mr-1 flex shrink-0 items-center justify-center",children:(0,s.jsx)(a.Icons.x,{className:"text-fg-muted hover:text-fg-default size-3.5 cursor-pointer"})}),(0,s.jsx)("button",{type:"button",onClick:r,className:"bg-canvas-controls-active flex size-8 shrink-0 items-center justify-center rounded-full",children:(0,s.jsx)(a.Icons.search,{className:"text-fg-default size-4"})})]})}let N=[{value:g.Recommend,label:"推荐"},{value:g.Latest,label:"最新"},{value:g.MostUsed,label:"最多使用"}];function k({value:e,onChange:t}){let[r,n]=(0,i.useState)(!1),l=(0,i.useRef)(null),o=(0,i.useMemo)(()=>N.find(t=>t.value===e)?.label??"推荐",[e]);(0,i.useEffect)(()=>{if(!r)return;let e=e=>{l.current&&!l.current.contains(e.target)&&n(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[r]);let c=(0,i.useCallback)(e=>{t(e),n(!1)},[t]);return(0,s.jsxs)("div",{ref:l,className:"relative",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>n(e=>!e),className:(0,h.cn)("border-canvas-controls-border bg-canvas-controls-hover flex h-8 cursor-pointer items-center gap-1 rounded-lg border-[0.5px] px-2.5 text-[13px] transition-colors","hover:bg-bg-surface-secondary",r&&"bg-bg-surface-secondary"),children:[(0,s.jsx)("span",{className:"text-fg-default whitespace-nowrap",children:o}),(0,s.jsx)(a.Icons.chevronDown,{className:(0,h.cn)("text-fg-muted size-3.5 transition-transform",r&&"rotate-180")})]}),r&&(0,s.jsx)("div",{className:"z-2100 border-canvas-controls-border absolute right-0 top-full mt-1 min-w-[90px] overflow-hidden rounded-lg border-[0.5px] py-1 shadow-lg",style:{backgroundColor:"var(--canvas-controls-bg)"},children:N.map(t=>(0,s.jsx)("div",{className:(0,h.cn)("cursor-pointer px-3 py-1.5 text-center text-[13px] transition-colors","hover:bg-bg-surface-secondary",e===t.value?"text-fg-brand font-medium":"text-fg-default"),onClick:()=>c(t.value),children:t.label},t.value))})]})}function S({tags:e,activeKey:t,onChange:r}){let n=[{tagLabel:"推荐",id:"all",ids:[]},...e],l=(0,i.useRef)(null),[o,c]=(0,i.useState)(!1),[u,d]=(0,i.useState)(!1),f=(0,i.useCallback)(()=>{let e=l.current;e&&(c(e.scrollLeft>0),d(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[]);(0,i.useEffect)(()=>{f();let e=l.current;if(e)return e.addEventListener("scroll",f),window.addEventListener("resize",f),()=>{e.removeEventListener("scroll",f),window.removeEventListener("resize",f)}},[n.length,f]);let p=(0,i.useCallback)(e=>{let t=l.current;t&&t.scrollTo({left:"left"===e?t.scrollLeft-150:t.scrollLeft+150,behavior:"smooth"})},[]);return(0,s.jsxs)("div",{className:"group relative flex min-w-0 flex-1 items-center",children:[o&&(0,s.jsx)("button",{type:"button",className:"bg-popover absolute left-0 top-1/2 z-10 flex size-6 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full opacity-0 shadow-sm transition-opacity group-hover:opacity-100",onClick:()=>p("left"),children:(0,s.jsx)(a.Icons.chevronLeft,{className:"text-fg-default size-4 opacity-80"})}),(0,s.jsx)("div",{ref:l,className:"scrollbar-hide flex min-w-0 flex-1 items-center gap-3 overflow-x-auto scroll-smooth",children:n.map(e=>(0,s.jsx)("button",{type:"button",onClick:()=>r(e.id),className:(0,h.cn)("h-8 min-w-12 shrink-0 whitespace-nowrap rounded-lg px-3 py-1 text-[13px] transition-colors",t===e.id?"bg-btn-ghost-active canvas-light:bg-white canvas-light:shadow-sm text-fg-default font-medium":"text-fg-muted hover:bg-btn-ghost-hover"),children:e.tagLabel},e.id))}),u&&(0,s.jsx)("button",{type:"button",className:"bg-popover absolute right-0 top-1/2 z-10 flex size-6 -translate-y-1/2 cursor-pointer items-center justify-center rounded-full opacity-0 shadow-sm transition-opacity group-hover:opacity-100",onClick:()=>p("right"),children:(0,s.jsx)(a.Icons.chevronRight,{className:"text-fg-default size-4 opacity-80"})})]})}function L({open:t,onClose:r,fineTuneType:h,selectedModels:g,maxCount:v,onSelect:w,onDeselect:N,modelSchema:L,nodeId:I,replacingUuid:E,currentModelName:T,modality:z}){let A=(0,f.useCanvasThemeStore)(e=>e.theme),M=(0,p.getCookieWebid)(),R="style"===h,U=L?.baseType!=null?L.baseType:null,P=(0,d.useCanvasStore)(e=>{if(!I)return null;let t=e.nodes.find(e=>e.id===I),r=t?.data;return r?.params?.fineTuneModels??null}),O=null!==P?P:g,_=(0,i.useMemo)(()=>E?O.filter(e=>e.uuid!==E):O,[O,E]),F=(0,d.useGlobalStore)(e=>e.support?.image??null),H=L?.modelKey,W=(0,i.useMemo)(()=>{if(null!=T)return T;if(!F||!H)return null;let e=F.find(e=>e.modelKey===H);return e?.modelName??null},[T,F,H]),{items:B,isLoading:K,hasMore:q,category:V,searchValue:D,isSearchMode:G,secondCategory:Z,secondCategoryList:$,sortType:Y,setCategory:J,setSearchValue:Q,setSecondCategory:X,setSortType:ee,handleSearch:et,handleClearSearch:er,loadMore:es,toggleLike:ei}=function({fineTuneType:t,isStyleType:r,baseType:s,open:n,modelKey:l,modality:a="image"}){let o="video"===a,u=(0,p.getCookieWebid)(),d=null!=s?Array.isArray(s)?s:[s]:[],[f,h]=(0,i.useState)([]),[m,g]=(0,i.useState)(!1),[v,b]=(0,i.useState)(!0),y=(0,i.useRef)(1),[w,C]=(0,i.useState)("hot"),[j,N]=(0,i.useState)(""),[k,S]=(0,i.useState)("all"),[L,I]=(0,i.useState)([]),[E,T]=(0,i.useState)(0),[z,A]=(0,i.useState)(!1),M=(0,i.useRef)(w),R=(0,i.useRef)(j),U=(0,i.useRef)(k),P=(0,i.useRef)(E),O=(0,i.useRef)([]),_=(0,i.useRef)(!1),F=(0,i.useRef)(null),H=(0,i.useRef)("");(0,i.useEffect)(()=>{M.current=w},[w]),(0,i.useEffect)(()=>{R.current=j},[j]),(0,i.useEffect)(()=>{U.current=k},[k]),(0,i.useEffect)(()=>{P.current=E},[E]);let W=(0,i.useCallback)((e,s)=>{let i={page:e,pageSize:32,cid:u,requestId:s};if(r)return{pageNo:e,pageSize:100};let n="template"===t?o?x:[21]:[5];if(_.current)return{...i,keyword:R.current,scene:"ImgGenerator",types:d,models:n};if("hot"===M.current){let e={...i,types:d,models:n,tagIds:O.current.length>0?O.current:void 0,sort:P.current};return"template"===t&&(e.isTemplate="true"),e}return"collect"===M.current||"history"===M.current?{subscribeType:"history"===M.current?4:1,modelTypeIds:n,baseTypeIds:d,page:e,pageSize:32}:i},[u,r,d,t]),B=(0,i.useCallback)(async(e,t=!1)=>{F.current&&F.current.abort();let s=new AbortController;F.current=s,g(!0),1===e&&(H.current=crypto.randomUUID());let i=W(e,H.current);try{let n,l="collect"===M.current||"history"===M.current;n=r?()=>(0,c.getStyleList)(i):_.current?()=>(0,c.searchModelByKeyword)(i):l?()=>(0,c.getCollectOrHistoryModels)(i):()=>o?(0,c.getVideoModelFeedStream)(i):(0,c.getModelFeedStream)(i);let a=await n();if(s.signal.aborted)return;let{data:u,hasMore:d,list:f}=a.data||{},p=[];p=l?u||[]:u||f||[],h(e=>t?[...e,...p]:p),b(!!(d??p.length>=32)),y.current=e}catch{s.signal.aborted||b(!1)}finally{s.signal.aborted||g(!1)}},[W,r]),K=(0,i.useCallback)(()=>{!m&&v&&B(y.current+1,!0)},[m,v,B]),q=(0,i.useCallback)(()=>{y.current=1,h([]),b(!0),B(1,!1)},[B]),V=(0,i.useCallback)(()=>{_.current=!0,A(!0),C("hot"),M.current="hot",q()},[q]),D=(0,i.useCallback)(()=>{N(""),_.current=!1,A(!1),C("hot"),S("all"),O.current=[],q()},[q]),G=(0,i.useCallback)(e=>{_.current=!1,A(!1),N(""),C(e),S("all"),O.current=[],requestAnimationFrame(()=>{setTimeout(()=>q(),50)})},[q]),Z=(0,i.useCallback)(e=>{if(S(e),O.current=[],"all"!==e){let t=L.find(t=>t.id===e);t&&(O.current=t.ids)}requestAnimationFrame(()=>{setTimeout(()=>q(),50)})},[L,q]),$=(0,i.useCallback)(e=>{T(e),P.current=e,requestAnimationFrame(()=>{setTimeout(()=>q(),50)})},[q]),Y=(0,i.useCallback)(e=>{h(t=>t.map(t=>(t.uuid||t.id)===(e.uuid||e.id)?{...t,isLike:!t.isLike}:t))},[]),J=(0,i.useRef)(!1);(0,i.useEffect)(()=>{!n||r||J.current||(J.current=!0,e.A(402487).then(({getPublicTags:e})=>{e({categoryCode:"model"}).then(e=>{let{data:t}=e||{};I(t?.map(e=>({tagLabel:e.name,id:e.name,ids:e.ids}))||[])})}))},[n,r]);let Q=(0,i.useRef)(l),X=(0,i.useRef)(!0);return(0,i.useEffect)(()=>{l!==Q.current&&(Q.current=l,X.current=!0,C("hot"),M.current="hot",N(""),R.current="",S("all"),U.current="all",T(0),P.current=0,O.current=[],_.current=!1,A(!1),h([]),b(!0),y.current=1)},[l]),(0,i.useEffect)(()=>{n&&X.current&&(X.current=!1,B(1,!1))},[n,B]),{items:f,isLoading:m,hasMore:v,category:w,searchValue:j,isSearchMode:z,secondCategory:k,secondCategoryList:L,sortType:E,setCategory:G,setSearchValue:N,setSecondCategory:Z,setSortType:$,handleSearch:V,handleClearSearch:D,loadMore:K,refresh:q,toggleLike:Y}}({fineTuneType:h,isStyleType:R,baseType:U,open:t,modelKey:H,modality:z}),en=(0,i.useMemo)(()=>new Set(O.map(e=>e.uuid)),[O]),el=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!t)return;let e=el.current;if(!e)return;let r=()=>{if(K||!q)return;let{scrollTop:t,scrollHeight:r,clientHeight:s}=e;t+s>=r-50&&es()};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)},[t,K,q,es]);let ea=(0,i.useCallback)(async e=>{let t=e.uuid||e.id||"";if(_.some(e=>e.uuid===t))return void N(t);if(_.length>=v)return;let s=[];if([19,20,21].includes(e.modelType))try{let t=await u.modelInfoService.getModelInfoByUuid(e.uuid);if(t?.versions?.[0]?.versionIntro){let e=JSON.parse(t.versions[0].versionIntro);e?.templateInfo?.length&&(s=e.templateInfo)}}catch(e){console.error("获取模型信息失败:",e)}w({uuid:t,name:e.name||e.modelName||"",imageUrl:e.imageUrl||e.webpUrl||"",baseType:e.baseType,modelType:e.modelType,versionUuid:e.versionUuid,versionId:e.versionId,modelUuid:e.modelUuid,weight:e.weight||.8,templateInfo:s}),!R&&e.versionId&&e.versionUuid&&(0,c.addModelHistoryUsed)({modelType:"template"===h?"21":"5",cid:M,versionId:e.versionId,versionUuid:e.versionUuid}),r()},[_,g.length,v,w,N,r,R,h,M]),eo=(0,i.useCallback)(async e=>{let{versionUuid:t,isLike:r}=e,s={subscribeType:1,sourceType:"TOOL",modelVersionId:t,cid:M};null!=(r?await (0,c.unsubscribeModel)(s):await (0,c.subscribeModel)(s))&&(o.Notify.success(r?"取消收藏成功":"收藏成功"),ei(e))},[M,ei]);return(0,s.jsxs)(l.Modal,{opened:t,onClose:r,title:null,centered:!0,size:"calc(100vw - 320px)",withCloseButton:!1,classNames:{content:"light"===A?"canvas-light":""},styles:{body:{padding:0,display:"flex",flexDirection:"column",height:"min(calc(100vh - 160px), 1200px)"},content:{borderRadius:"12px",maxWidth:"1600px",margin:"0 auto",overflow:"hidden",backgroundColor:"var(--canvas-controls-bg)",color:"var(--fg-default)",border:"0.5px solid var(--canvas-controls-border)"},overlay:{zIndex:700},inner:{zIndex:701}},children:[(0,s.jsxs)("div",{className:"relative flex items-center gap-4 px-4 pb-3 pt-4",children:[(0,s.jsx)(b,{activeKey:V,onChange:J}),(0,s.jsx)(j,{value:D,onChange:Q,onSearch:et,onClear:er}),(0,s.jsx)("button",{type:"button",onClick:r,className:"text-fg-muted hover:text-fg-default absolute right-4 top-4 flex size-6 shrink-0 items-center justify-center rounded-lg transition-colors",children:(0,s.jsx)(a.Icons.x,{className:"size-3.5"})})]}),(0,s.jsxs)("div",{className:"flex items-center justify-between gap-2 px-4 pb-3",children:[V===m.Hot?(0,s.jsx)(S,{tags:$,activeKey:Z,onChange:X}):(0,s.jsxs)("div",{className:"text-fg-muted flex-1 text-xs",children:["仅展示当前模型的",V===m.Collect?"收藏":"最近使用"]}),(0,s.jsxs)("div",{className:"flex shrink-0 items-center gap-3",children:[W&&(0,s.jsx)("div",{className:"border-canvas-controls-border bg-canvas-controls-hover flex h-8 items-center rounded-lg border-[0.5px] pl-3 pr-2",children:(0,s.jsx)("span",{className:"text-fg-default whitespace-nowrap text-[13px]",children:W})}),V===m.Hot&&!G&&(0,s.jsx)(k,{value:Y,onChange:ee})]})]}),(0,s.jsxs)("div",{ref:el,className:"tiny-scrollbar min-h-0 flex-1 overflow-y-auto px-4 pb-4",children:[K&&0===B.length&&(0,s.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,s.jsx)(n.Loader,{size:"sm"})}),!K&&0===B.length&&(0,s.jsxs)("div",{className:"flex h-full flex-col items-center justify-center gap-3",children:[(0,s.jsx)(y,{}),(0,s.jsx)("span",{className:"text-fg-muted text-sm",children:"暂无模型"})]}),B.length>0&&(0,s.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(180px,1fr))] gap-1",children:B.map((e,t)=>{let r=e.uuid||e.id||`item-${t}`;return(0,s.jsx)(C,{item:e,isSelected:en.has(r),onSelect:e=>void ea(e),onLike:R?void 0:e=>void eo(e),showAuthorInfo:!R},r)})}),K&&B.length>0&&(0,s.jsx)("div",{className:"flex items-center justify-center py-4",children:(0,s.jsx)(n.Loader,{size:"xs"})}),!q&&B.length>0&&(0,s.jsx)("div",{className:"text-fg-muted py-4 text-center text-xs",children:"已加载全部"})]})]})}function I({width:e=12,height:t=13,className:r}){return(0,s.jsx)("svg",{className:(0,h.cn)("text-fg-muted canvas-light:text-neutral-700",r),width:e,height:t,viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.89258 0.218709C5.39592 -0.0728179 6.01724 -0.0729882 6.52051 0.218709L10.6035 2.5859C11.1041 2.87616 11.4129 3.41154 11.4131 3.99019V6.33004C11.413 6.58199 11.208 6.78599 10.9561 6.78609C10.7041 6.78596 10.5001 6.58198 10.5 6.33004V4.17965L6.55664 6.45211C6.45178 6.51251 6.34116 6.55948 6.22852 6.59566L6.22852 11.5888L8.22363 10.4804C8.44392 10.3583 8.72229 10.438 8.84473 10.6582C8.96687 10.8784 8.88692 11.1557 8.66699 11.2783L6.61523 12.4189C6.12054 12.6937 5.51764 12.6912 5.02539 12.4121L0.822266 10.0273C0.314067 9.73899 0 9.19948 0 8.61519L0 3.99019C0.000177796 3.41163 0.308119 2.87619 0.808594 2.5859L4.89258 0.218709ZM0.913086 8.61519C0.913086 8.87072 1.05028 9.10718 1.27246 9.23336L5.17871 11.4482V6.59078C5.07572 6.55653 4.97439 6.51261 4.87793 6.45797L0.913086 4.20992L0.913086 8.61519ZM9.74219 7.09469C9.80245 6.93252 10.0316 6.93251 10.0918 7.09469L10.5176 8.2441C10.5365 8.29513 10.5769 8.33556 10.6279 8.35445L11.7764 8.78023C11.9389 8.84037 11.9389 9.06971 11.7764 9.12984L10.6279 9.55562C10.5771 9.57443 10.5366 9.61428 10.5176 9.665L10.0918 10.8154C10.0316 10.9775 9.80256 10.9774 9.74219 10.8154L9.31641 9.665C9.29745 9.61428 9.25681 9.57451 9.20605 9.55562L8.05664 9.12984C7.89426 9.06965 7.89425 8.8404 8.05664 8.78023L9.20605 8.35445C9.25698 8.33549 9.29754 8.29508 9.31641 8.2441L9.74219 7.09469ZM6.0625 1.00875C5.84243 0.881216 5.57073 0.8814 5.35059 1.00875L1.41602 3.28902L5.39551 5.54488C5.59308 5.65666 5.83551 5.65526 6.03223 5.54195L9.96875 3.2734L6.0625 1.00875Z",fill:"currentColor"})})}e.s(["default",()=>L],121959),e.s(["StyleIcon",()=>I],629062)},450439,e=>{"use strict";function t(e,t,r){return e?!e.model&&r?{...e,model:r}:e:{prompt:"",model:r,count:1}}e.s(["initScriptGeneratorParams",()=>t])},732030,e=>{"use strict";var t=e.i(462214);e.i(358379),e.i(7284);var r=e.i(479324),s=e.i(593307),i=e.i(518366);let n=(0,s.factory)((e,s)=>{let n=(0,r.useProps)("TextInput",null,e);return(0,t.jsx)(i.InputBase,{component:"input",ref:s,...n,__staticSelector:"TextInput"})});n.classes=i.InputBase.classes,n.displayName="@mantine/core/TextInput",e.s(["TextInput",()=>n])},602638,e=>{e.v("https://liblibai-web-static.liblib.cloud/liblibtv_online/static/_next/static/media/login-banner.601eed98.png")},33725,e=>{"use strict";var t=e.i(462214),r=e.i(722573),s=e.i(791997),i=e.i(41114);let n={backgroundColor:"var(--canvas-controls-bg)",color:"var(--canvas-controls-text)",borderRadius:"8px",padding:"4px 8px",fontSize:"12px",lineHeight:"normal",border:"0.5px solid var(--canvas-controls-border)",boxShadow:"var(--canvas-shadow-dropdown)"},l={backgroundColor:"var(--canvas-controls-bg)",borderColor:"var(--canvas-controls-border)"};function a({styles:e,classNames:a,...o}){let c=(0,s.useCanvasThemeStore)(e=>"light"===e.theme),u="function"==typeof e?e:{tooltip:{...n,...e&&"object"==typeof e&&"tooltip"in e?e.tooltip:{}},arrow:{...l,...e&&"object"==typeof e&&"arrow"in e?e.arrow:{}}},d="function"==typeof a?a:{...a??{},tooltip:(0,i.cn)(c&&"canvas-light",a?.tooltip)};return(0,t.jsx)(r.Tooltip,{styles:u,classNames:d,...o})}e.s(["CanvasTooltip",()=>a])}]); |