1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c88eb239-fe4e-4fd6-b0f5-640ae0553b92",e._sentryDebugIdIdentifier="sentry-dbid-c88eb239-fe4e-4fd6-b0f5-640ae0553b92")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9062],{38864:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/background-remover/result",function(){return n(89627)}])},28956:function(e,t,n){"use strict";n.d(t,{Mr:function(){return r},v6:function(){return v},sk:function(){return h},ZP:function(){return b}});var l,r,a=n(52676),o=n(52890),i=n(95481),s=n(30654);n(76771);var c=n(75271),u=n(4814),d=n(67811),m=n(4067),p=n(34758);let f=e=>(null==e?void 0:e.replace(/[^0-9a-fA-F#]/g,"").slice(0,9))||"",x=(0,c.forwardRef)((e,t)=>{let{children:n,onChangeStop:l,noInput:r=!1,noAlpha:x}=e,h=(0,m.S)(),[v,g]=(0,c.useState)(!1),[b,w]=(0,c.useState)(""),[j,y]=(0,c.useState)(""),k=(0,c.useRef)(""),[N,E]=(0,c.useState)({left:0,top:0}),C=(0,c.useRef)(null),F=(0,c.useRef)(null),[P,A]=(0,c.useState)(!1),_=(0,c.useRef)((0,d.Z)(e=>{y(e)},600)).current,B=(0,c.useCallback)(e=>{let t=e.target.value;w(f(t)),_(f(t))},[_]),R=(0,c.useCallback)(e=>(0,a.jsxs)(a.Fragment,{children:[e,!r&&(0,a.jsx)("input",{className:(0,o.cn)("rounded-md bg-[#f1f3f4] p-1 text-sm leading-none text-[#75797e]",x&&"mt-2"),value:b,onInput:B})]}),[r,x,b,B]),S=(0,c.useCallback)(e=>{if(e){let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight="".concat(e,"px"),document.body.style.overflow="hidden",document.body.style.touchAction="none";return}["padding-right","overflow","touch-action"].forEach(e=>document.body.style.removeProperty(e))},[]),Z=(0,c.useCallback)(e=>{!((null==F?void 0:F.current)&&F.current.contains(e.target))&&(null==C?void 0:C.current)&&!C.current.contains(e.target)&&(S(!1),g(!1))},[S]),I=(0,c.useCallback)(e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),g(!1)},[]),O=()=>{if(C.current&&F.current){let{left:e,top:t,height:n}=C.current.getBoundingClientRect(),{width:l,height:r}=F.current.getBoundingClientRect(),a=window.innerWidth,o=window.innerHeight,{scrollX:i}=window,{scrollY:s}=window,c=e+i,u=t+n+10+s;if(c+l>a+i&&(c=a+i-l-10),c=Math.max(10+i,c),u+r>o+s){let e=t-r-10+s;u=e>=15+s?e:Math.max(10+s,o+s-r-10)}E({left:c,top:u}),A(!0)}};return(0,c.useEffect)(()=>{v&&j&&(k.current!==j&&(null==l||l(j)),k.current=j)},[v,j,l]),(0,c.useEffect)(()=>{w(h===p.Vr.pc?"#ff813c":"#ff528f")},[h]),(0,c.useEffect)(()=>{let e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(null==navigator?void 0:navigator.userAgent),t=["touchstart","touchmove","touchend",...e?[]:["mousedown"]];return v&&(O(),S(!0),window.addEventListener("resize",O),window.addEventListener("wheel",I),t.forEach(e=>window.addEventListener(e,Z),{passive:!1})),()=>{S(!1),window.removeEventListener("resize",O),window.addEventListener("wheel",I),t.forEach(e=>window.removeEventListener(e,Z),{passive:!1})}},[v,Z,I,S]),(0,c.useImperativeHandle)(t,()=>({isOpen:v,open:()=>{g(!0)},close:()=>{g(!1)}}),[v]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{ref:C,className:"relative",children:[v&&(0,a.jsx)(i.Z,{children:(0,a.jsx)("div",{ref:F,className:(0,u.Z)("absolute z-50",{hidden:!P}),style:{transform:"translateZ(0)",left:"".concat(null==N?void 0:N.left,"px"),top:"".concat(null==N?void 0:N.top,"px")},children:(0,a.jsx)(s.ZP,{value:b,onChange:e=>w(e.toHexString()),onChangeComplete:e=>y(e.toHexString()),panelRender:R,disabledAlpha:x})})}),n]}),(0,a.jsx)("style",{children:'\n .rc-color-picker-handler-sm {\n width: 18px;\n height: 18px;\n }\n .rc-color-picker-slider .rc-color-picker-palette {\n height: 10px;\n }\n .rc-color-picker-slider .rc-color-picker-palette::after {\n content: "";\n position: absolute;\n top: -10px;\n bottom: -10px;\n left: -10px;\n right: -10px;\n background: transparent;\n pointer-events: auto;\n }\n '})]})});x.displayName="CustomColorPanel";let h={url:"https://object.pixocial.com/pixocial/k86eiks6mussc8fxxqi173vd.png",value:"none"},v={url:"https://object.pixocial.com/pixocial/xz3lv2de90hmmbe5yb0z2mh7.png",value:"customize"};(l=r||(r={})).Preset="preset",l.Customize="customize";let g=e=>{let{colorItem:t,disabled:n,currentColor:l,currentColorType:i,onColor:s,onColorPanel:u}=e,d=(0,c.useCallback)(()=>{n||(t===v.value?null==u||u():s(t,r.Preset,!0))},[t,n,s,u]);return(0,a.jsx)("div",{className:(0,o.cn)("relative flex h-10 w-10 flex-shrink-0 rounded-full p-[2px] transition-all duration-75",(t===l&&i===r.Preset||i===r.Customize&&t===v.value)&&"border border-[var(--theme-color)]"),children:(0,a.jsx)("div",{className:(0,o.cn)("h-full w-full cursor-pointer rounded-full","#000000"===t?"border border-[var(--download-l
1ine-color)]":[h.value,v.value].includes(t)?"":"border border-transparent",n&&"cursor-not-allowed"),style:[h.value,v.value].includes(t)?{backgroundImage:'url("'.concat(t===h.value?h.url:v.url,'")'),backgroundSize:"cover"}:{background:t},onClick:d})},t)};var b=e=>{let{colors:t,noAlpha:n,...l}=e,o=(0,c.useRef)(null);(0,c.useEffect)(()=>{let e=document.querySelector('meta[name="viewport"]');if(e)e.setAttribute("content","width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0");else{let e=document.createElement("meta");e.name="viewport",e.content="width=device-width, initial-scale=1.0, user-scalable=no, maximum-scale=1.0, minimum-scale=1.0",document.head.appendChild(e)}},[]);let i=(0,c.useCallback)(()=>{var t,n;if(e.disabled)return;let l=null===(t=o.current)||void 0===t?void 0:t.isOpen;null===(n=o.current)||void 0===n||n[l?"close":"open"]()},[e.disabled]);return(0,a.jsx)(a.Fragment,{children:t.map(t=>t===v.value?(0,a.jsx)(x,{ref:o,onChangeStop:t=>{e.onColor(t,r.Customize,!0)},noInput:!1,noAlpha:n,children:(0,a.jsx)(g,{...l,colorItem:t,onColorPanel:i})},t):(0,a.jsx)(g,{...l,colorItem:t},t))})}},72063:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var l=n(52676),r=n(39748);function a(e){let{meta:t,localePath:n}=e;return(0,l.jsx)(r.Z,{meta:{...t,robots:"noindex"},localePath:n})}},18611:function(e,t,n){"use strict";var l=n(52676),r=n(43686),a=n.n(r),o=n(23545),i=n(75271),s=n(22971),c=n(97690),u=n(52890),d=n(56261),m=n(51557),p=n(43373),f=n(71054);t.Z=e=>{var t;let{breadcrumbList:n,className:r}=e,x=(0,s.useRouter)(),h=x.locale===c.Locales[0]?"":"/".concat(x.locale),v=(0,m.ug)(x.locale),[g,b]=(0,i.useState)();return(0,i.useEffect)(()=>{var e;let t,n=x.pathname;if("/[slug]"===x.pathname)n="/".concat(x.query.slug);else if(x.query.type){let e=d.g.some(e=>e.slug===x.query.type);e&&(n="/".concat(x.query.type))}n=n.replace("/result","");let l="".concat("/"===n?"":n,"/"),r=(0,p.B2)(o.t).filter(t=>!(null!==(e=t.hide)&&void 0!==e?e:[]).includes("breadcrumb")).map(e=>({...e,title:e.header}));for(let e=0;e<r.length;e++)if(r[e].link===l){t=r[e];break}b(t)},[h,x.pathname,x.query.slug,x.query.type]),(0,l.jsx)("div",{className:(0,u.cn)("relative flex justify-start px-6 pt-6","mobile:px-4 mobile:pt-3",r),children:(0,l.jsx)("div",{className:"flex w-full items-center gap-3 overflow-hidden leading-[21px]",children:(null===(t=null!=n?n:[])||void 0===t?void 0:t.length)?n.map((e,t)=>(0,l.jsxs)(i.Fragment,{children:[(0,l.jsx)(a(),{href:e.link,className:"mobile:text-sm cursor-pointer whitespace-nowrap text-base font-normal leading-[21px] text-white/60",children:e.title}),t<n.length-1?(0,l.jsx)("span",{className:"text-sm text-gray-500",children:(0,l.jsx)(f.Z,{className:"h-4 w-4 text-white/80"})}):null]},t)):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a(),{href:v.WorkspaceHome,className:"mobile:text-sm cursor-pointer whitespace-nowrap text-base font-normal leading-[21px] text-white/60",children:(0,o.t)("homepage.header")}),(0,l.jsx)("span",{className:"text-sm text-gray-500",children:(0,l.jsx)(f.Z,{className:"h-4 w-4 text-white/80"})}),(0,l.jsx)(a(),{href:v.AllTools,className:"mobile:text-sm cursor-pointer whitespace-nowrap text-base font-normal leading-[21px] text-white/60",children:(0,o.t)("worspace.tab.all.tools")}),g?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"text-sm text-gray-500",children:(0,l.jsx)(f.Z,{className:"h-4 w-4 text-white/80"})}),(0,l.jsx)(a(),{href:g.link,className:"mobile:text-sm cursor-pointer overflow-hidden text-ellipsis whitespace-nowrap text-base font-normal leading-[21px] text-white",children:g.title})]}):null]})})})}},92115:function(e,t,n){"use strict";var l=n(52676),r=n(63641);t.Z=()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"mobile:px-4 mobile:pt-3 mobile:relative absolute left-0 top-0 px-6 pt-6",children:(0,l.jsx)(r.O,{className:" h-[21px] w-[250px] justify-start rounded-xl"})}),(0,l.jsx)("div",{className:"mx-auto max-w-[1200px]",children:(0,l.jsxs)("div",{className:"flex h-auto w-full flex-col items-center justify-center gap-6 px-7 py-5 md:flex-row md:gap-10 md:pb-[60px] md:pt-4",children:[(0,l.jsxs)("div",{className:"flex w-full max-w-[720px] flex-col items-center justify-center gap-4 md:gap-3",children:[(0,l.jsx)(r.O,{className:"h-[40px] w-full rounded-xl"}),(0,l.jsx)(r.O,{className:"mobile:h-[300px] h-[428px] w-full rounded-xl"})]}),(0,l.jsxs)("div",{className:"flex w-full flex-col gap-8 md:w-[350px]",children:[(0,l.jsx)(r.O,{className:"h-[60px] w-full rounded-xl"}),(0,l.jsx)(r.O,{className:"h-[60px] w-full rounded-xl"}),(0,l.jsx)(r.O,{className:"h-[60px] w-full rounded-xl"}),(0,l.jsx)(r.O,{className:"h-[60px] w-full rounded-xl"}),(0,l.jsx)(r.O,{className:"h-[60px] w-full rounded-xl"})]})]})})]})},78871:function(e,t,n){"use strict";n.d(t,{A:function(){return c},S:function(){return i}});var l=n(52676),r=n(75271),a=n(42725),o=n(81076);let i=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return{loaded:!1,rendered:e,promise:null}},s=e=>e.loaded&&e.rendered?Promise.resolve(!0):(e.promise||(e.promise=new Promise(t=>{let n=()=>{e.loaded&&e.rendered?t(!0):setTimeout(n,100)};n()})),e.promise),c=r.memo(e=>{let{LoadingComponent:t,ContentComponent:n,isLoading:i,defaultHeight:c,contentReadyState:u}=e,[d,m]=(0,r.useState)(!0),[p,f]=(0,r.useState)(!1),[x,h]=(0,r.useState)(!1),v=(0,o.ZP)();return(0,r.useEffect)(()=>{let e=!1;return i?(f(!1),m(!0),h(!1),()=>{e=!0}):(s(u).then(()=>{e||(f(!0),requestAnimationFrame(()=>{e||m(!1)}))}),()=>{e=!0})},[i,u]),(0,r.useEffect)(()=>{i&&h(!1)},[i]),(0,l.jsxs)("div",{className:"grid min-w-0",style:{minHeight:v?"unset":c,gridTemplateColumns:"minmax(0, 1fr)"},children:[(0,l.jsx)(a.E.div,{"data-testid":"content",initial:!1,animate:{o
1pacity:p&&!d?1:0},transition:{duration:.2},style:{gridArea:"1 / 1",minWidth:0,visibility:p?"visible":"hidden",pointerEvents:p&&!d?"auto":"none"},children:n}),(0,l.jsx)(a.E.div,{"data-testid":"loading",initial:!1,animate:{opacity:d?1:0},transition:{duration:.15},onAnimationComplete:()=>{d||h(!0)},style:{gridArea:"1 / 1",minWidth:0,display:x?"none":"block",pointerEvents:"none",zIndex:1},children:(0,l.jsx)(t,{})})]})},(e,t)=>!!e.compareProps&&e.compareProps(e,t))},84712:function(e,t,n){"use strict";n.d(t,{Bq:function(){return u},J9:function(){return i},bv:function(){return a},dP:function(){return o},oy:function(){return r},uf:function(){return c},vm:function(){return s}});var l=n(28956);let r="bg_remover_cache_key",a="bg_remover_task_info",o="/image/bg-remover",i={aisa:{before:"".concat(o,"/img-0-before"),after:"".concat(o,"/img-0-after")},west:{before:"".concat(o,"/west/img-0-before"),after:"".concat(o,"/west/img-0-after")}},s={PC:4/3,MOBILE:4/3},c=[l.sk.value,l.v6.value,"#FFFFFF","#03A9F4","#000000","#D7A88B","#ABD2AE","#A5C3E1","#B5BAE4","#4CAF50","#FFEB3B","#FF9800","#FF5722","#E91E63","#673AB7","#009688"],u="bg.remover"},89627:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var l=n(52676),r=n(52234),a=n.n(r),o=n(51557),i=n(22971),s=n(23545),c=n(75271),u=n(72063),d=n(18611),m=n(72055),p=n(74457),f=n(39748),x=n(78871),h=n(92115),v=n(84712);let g=(0,x.S)(),b=a()(()=>Promise.all([n.e(2188),n.e(9548),n.e(2269),n.e(8387),n.e(9150),n.e(170),n.e(2850),n.e(3543),n.e(9378),n.e(8820),n.e(7594),n.e(6172)]).then(n.bind(n,60349)).then(async e=>(g.loaded=!0,e)),{loadableGenerated:{webpack:()=>[60349]},ssr:!1});function w(){let e=(0,i.useRouter)(),t=(0,o.ug)(e.locale),n=(0,o.ug)(""),r=(0,c.useMemo)(()=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.Z,{className:"mobile:relative absolute left-0 top-0"}),(0,l.jsx)(b,{})]}),[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Z,{meta:(0,f.g)(s.t,v.Bq),localePath:t.BackgroundRemover}),(0,l.jsx)(m.Z,{data:(0,m.F)(s.t,t.BackgroundRemoverResult,v.Bq)}),(0,l.jsx)(p.Z,{path:n.BackgroundRemoverResult}),(0,l.jsx)("div",{id:"toolbox-root",className:"pt-ws-nav-h mobile:pt-[var(--gbanner-height)] relative",children:(0,l.jsx)(x.A,{LoadingComponent:h.Z,ContentComponent:r,isLoading:!e.isReady,defaultHeight:"600px",contentReadyState:g})})]})}}},function(e){e.O(0,[2725,8126,9774,2888,179],function(){return e(e.s=38864)}),_N_E=e.O()}]);
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.