(this["webpackJsonplama-cleaner"]=this["webpackJsonplama-cleaner"]||[]).push([[0],{65:function(e,t,n){},72:function(e,t,n){"use strict";n.r(t);vara=n(0),r=n.n(a),c=n(12),i=n.n(c),o=(n(65),n(6)),s=n(3),l=n(56),u=n(9),d=n.n(u),b=n(13);varj=n(16),h=n(1),f=Object(o.b)({key:"themeState",default:"dark"}),p=function(){vare=Object(o.d)(f),t=Object(s.a)(e,2),n=t[0],a=t[1];returnObject(h.jsx)("div",{className:"theme-toggle-ui",children:Object(h.jsx)("div",{className:"theme-btn",onClick:function(){a("light"===n?"dark":"light")},role:"button",tabIndex:0,"aria-hidden":"true",children:"light"===n?Object(h.jsx)(j.h,{}):Object(h.jsx)(j.i,{style:{color:"#ffcc00"}})})})},O=n(2),g=n(8),v=n(51),m=n(81),x=n(54),w=n(82),y=n(7);functionS(e){for(vart=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),a=[],r=0;r<n.length;r+=1)a.push(n.charCodeAt(r));returnnewBlob([newUint8Array(a)],{type:t})}functionk(e,t){returnnewPromise((function(n,a){varr=e.src,c=e;c.onload=n,c.onerror=function(e){c.src=r,a(e)},c.src=t}))}functionC(e){return1===e.nativeEvent.button}functionL(e,t,n){returnfetch(e).then((function(e){returne.arrayBuffer()})).then((function(e){returnnewFile([e],t,{type:n})}))}functionM(){returnN.apply(this,arguments)}functionN(){return(N=Object(b.a)(d.a.mark((functione(){vart,n;returnd.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.prev=0,e.next=3,navigator.permissions.query({name:"clipboard-write"});case3:returnt=e.sent,n=t.state,e.abrupt("return","granted"===n);case8:returne.prev=8,e.t0=e.catch(0),e.abrupt("return",!1);case11:case"end":returne.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}functionI(e,t){returnnewPromise((function(n,a){returne.toBlob(function(){vare=Object(b.a)(d.a.mark((functione(t){returnd.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:t?n(t):a(newError("Expected toBlob() to be defined"));case1:case"end":returne.stop()}}),e)})));returnfunction(t){returne.apply(this,arguments)}}(),t)}))}varz=function(){vare=Object(b.a)(d.a.mark((functione(t){varn;returnd.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnn=[newClipboardItem(Object(y.a)({},t.type,t))],e.next=3,navigator.clipboard.write(n);case3:case"end":returne.stop()}}),e)})));returnfunction(t){returne.apply(this,arguments)}}();functionE(e){returnD.apply(this,arguments)}functionD(){return(D=Object(b.a)(d.a.mark((functione(t){varn;returnd.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:returne.next=2,I(t,"image/png");case2:returnn=e.sent,e.prev=3,e.next=6,z(n);case6:e.next=11;break;case8:e.prev=8,e.t0=e.catch(3),console.log("Copy image failed!");case11:case"end":returne.stop()}}),e,null,[[3,8]])})))).apply(this,arguments)}varT="".concat("");functionR(e,t,n,a,r,c,i){returnF.apply(this,arguments)}functionF(){return(F=Object(b.a)(d.a.mark((functione(t,n,a,r,c,i,o){vars,l,u,b,j,h;returnd.a.wrap((function(e){for(;;)switch(e.prev=e.next){case0:return(s=newFormData).append("image",t),l=S(n),s.append("mask",l),u=a.hdSettings[a.model],s.append("ldmSteps",a.ldmSteps.toString()),s.append("ldmSampler",a.ldmSampler.toString()),s.append("zitsWireframe",a.zitsWireframe.toString()),s.append("hdStrategy",u.hdStrategy),s.append("hdStrategyCropMargin",u.hdStrategyCropMargin.toString()),s.append("hdStrategyCropTrigerSize",u.hdStrategyCropTrigerSize.toString()),s.append("hdStrategyResizeLimit",u.hdStrategyResizeLimit.toString()),s.append("prompt",void0===c?"":c),s.append("croperX",r.x.toString()),s.append("croperY",r.y.toString()),s.append("croperHeight",r.height.toString()),s.append("croperWidth",r.width.toString()),s.append("useCroper",a.showCroper?"true":"false"),s.append("sdMaskBlur",a.sdMaskBlur.toString()),s.append("sdStrength",a.sdStrength.toString()),s.append("sdSteps",a.sdSteps.toString()),s.append("sdGuidanceScale",a.sdGuidanceScale.toString()),s.append("sdSampler",a.sdSampler.toString()),s.append("sdSeed",o?o.toString():"-1"),s.append("cv2Radius",a.cv2Radius.toString()),s.append("cv2Flag",a.cv2Flag.toString()),void0===i?s.append("sizeLimit