InvokeAI/invokeai/frontend/dist/assets/index-legacy-3b86d684.js

46 lines
1.6 MiB
JavaScript
Raw Normal View History

2023-02-07 11:23:39 +00:00
!function(){var e=["__cssMap","__cssVars","__breakpoints"],t=["theme","css","__css","sx"],n=["baseStyle"],r=["styleConfig"],o=["as","viewBox","color","focusable","children","className","__css"],i=["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"],a=["transitionEnd","transition"],s=["root"],l=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"],u=["ease","times","yoyo","flip","loop"],c=["transitionEnd","transition"],d=["transition","transitionEnd"],f=["transition","transitionEnd"],h=["willChange"],p=["transition","transitionEnd"],v=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],g=["unmountOnExit","in","className","transition","transitionEnd","delay"],m=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],y=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay","motionProps"],b=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],w=["onChange","defaultIndex","index","allowMultiple","allowToggle"],k=["isDisabled","isFocusable","id"],x=["htmlProps"],S=["className","motionProps"],C=["children","reduceMotion"],_=["htmlProps","descendants"],E=["label","thickness","speed","emptyColor","className"],P=["status","addRole"],L=["htmlWidth","htmlHeight","alt"],O=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin","fallbackStrategy","referrerPolicy"],A=["children","className"],M=["label","placement","spacing","children","className","__css"],T=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],I=["size","colorScheme","variant","className","spacing","isAttached","isDisabled"],R=["icon","children","isRound","aria-label"],N=["id","isRequired","isInvalid","isDisabled","isReadOnly"],D=["getRootProps","htmlProps"],z=["isDisabled","isInvalid","isReadOnly","isRequired"],j=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"],B=["className","children","requiredIndicator","optionalIndicator"],F=["isIndeterminate","isChecked"],H=["defaultChecked","isChecked","isFocusable","onChange","isIndeterminate","name","value","tabIndex","aria-label","aria-labelledby","aria-invalid"],V=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],W=["children","isDisabled","__css"],U=["htmlSize"],G=["children","className"],q=["placement"],Y=["placement"],Z=["className"],X=["className"],$=["ratio","children","className"],K=["className"],Q=["size","centerContent"],J=["size"],ee=["axis"],te=["className"],ne=["className","centerContent"],re=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],oe=["className","orientation","__css"],ie=["direction","align","justify","wrap","basis","grow","shrink"],ae=["templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],se=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],le=["className"],ue=["className"],ce=["className","isExternal"],de=["isExternal","target","rel","className"],fe=["className"],he=["children","styleType","stylePosition","spacing"],pe=["as"],ve=["as"],ge=["columns","spacingX","spacingY","spacing","minChildWidth"],me=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],ye=["className","align","decoration","casing"],be=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],we=["className"],ke=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"],xe=["size","shadowColor","bg","style"],Se=["containerRef"],Ce=[
/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===("undefined"==typeof performance?"undefined":kn(performance))&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,v=!1,g="function"==typeof setTimeout?setTimeout:null,m="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function w(e){if(v=!1,b(e),!p)if(null!==n(l))p=!0,T(k);else{var t=n(u);null!==t&&I(w,t.startTime-e)}}function k(t,o){p=!1,v&&(v=!1,m(_),_=-1),h=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!L());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&I(w,g.startTime-o),c=!1}return c}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,S=!1,C=null,_=-1,E=5,P=-1;function L(){return!(e.unstable_now()-P<E)}function O(){if(null!==C){var t=e.unstable_now();P=t;var n=!0;try{n=C(!0,t)}finally{n?x():(S=!1,C=null)}}else S=!1}if("function"==typeof y)x=function(){y(O)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,M=A.port2;A.port1.onmessage=O,x=function(){M.postMessage(null)}}else x=function(){g(O,0)};function T(e){C=e,S||(S=!0,x())}function I(t,n){_=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,T(k))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"===kn(i)&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(v?(m(_),_=-1):v=!0,I(w,i-a))):(r.sortIndex=s,t(l,r),p||h||(p=!0,T(k))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(rA),function(e){e.exports=rA}(nA);
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var oA=cr,iA=tA;function aA(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var sA=new Set,lA={};function uA(e,t){cA(e,t),cA(e+"Capture",t)}function cA(e,t){for(lA[e]=t,e=0;e<t.length;e++)sA.add(t[e])}var dA=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),fA=Object.prototype.hasOwnProperty,hA=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,pA={},vA={};function gA(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(kn(t)){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mA(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var yA={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){yA[e]=new mA(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];yA[t]=new mA(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){yA[e]=new mA(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){yA[e]=new mA(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){yA[e]=new mA(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){yA[e]=new mA(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){yA[e]=new mA(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){yA[e]=new mA(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){yA[e]=new mA(e,5,!1,e.toLowerCase(),null,!1,!1)}));var bA=/[\-:]([a-z])/g;function wA(e){return e[1].toUpperCase()}function kA(e,t,n,r){var o=yA.hasOwnProperty(t)?yA[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(gA(t,n,o,r)&&(n=null),r||null===o?function(e){return!!fA.call(vA,e)||!fA.call(pA,e)&&(hA.test(e)?vA[e]=!0:(pA[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness pain
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ige=function(e,t){return Ige=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Ige(e,t)};var Rge=function(){return Rge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rge.apply(this,arguments)};function Nge(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||t)}var Dge=function(e,t){return Number(e.toFixed(t))},zge=function(e,t,n){n&&"function"==typeof n&&n(e,t)},jge={easeOut:function(e){return-Math.cos(e*Math.PI)/2+.5},linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},Bge=function(e){"number"==typeof e&&cancelAnimationFrame(e)},Fge=function(e){e.mounted&&(Bge(e.animation),e.animate=!1,e.animation=null,e.velocity=null)};function Hge(e,t,n,r){if(e.mounted){var o=(new Date).getTime();Fge(e),e.animation=function(){if(!e.mounted)return Bge(e.animation);var i=(new Date).getTime()-o,a=(0,jge[t])(i/n);i>=n?(r(1),e.animation=null):e.animation&&(r(a),requestAnimationFrame(e.animation))},requestAnimationFrame(e.animation)}}function Vge(e,t,n,r){var o=function(e){var t=e.scale,n=e.positionX,r=e.positionY;if(isNaN(t)||isNaN(n)||isNaN(r))return!1;return!0}(t);if(e.mounted&&o){var i=e.setTransformState,a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,c=t.scale-s,d=t.positionX-l,f=t.positionY-u;0===n?i(t.scale,t.positionX,t.positionY):Hge(e,r,n,(function(e){i(s+c*e,l+d*e,u+f*e)}))}}var Wge=function(e,t){var n=e.wrapperComponent,r=e.contentComponent,o=e.setup.centerZoomedOut;if(!n||!r)throw new Error("Components are not mounted");var i=function(e,t,n){var r=e.offsetWidth,o=e.offsetHeight,i=t.offsetWidth*n,a=t.offsetHeight*n;return{wrapperWidth:r,wrapperHeight:o,newContentWidth:i,newDiffWidth:r-i,newContentHeight:a,newDiffHeight:o-a}}(n,r,t),a=i.wrapperWidth,s=i.wrapperHeight,l=function(e,t,n,r,o,i,a){var s=e>t?n*(a?1:.5):0,l=r>o?i*(a?1:.5):0;return{minPositionX:e-t-s,maxPositionX:s,minPositionY:r-o-l,maxPositionY:l}}(a,i.newContentWidth,i.newDiffWidth,s,i.newContentHeight,i.newDiffHeight,Boolean(o));return l},Uge=function(e,t){var n=Wge(e,t);return e.bounds=n,n};function Gge(e,t,n,r,o,i,a){var s=n.minPositionX,l=n.minPositionY,u=n.maxPositionX,c=n.maxPositionY,d=0,f=0;return a&&(d=o,f=i),{x:qge(e,s-d,u+d,r),y:qge(t,l-f,c+f,r)}}var qge=function(e,t,n,r){return Dge(r?e<t?t:e>n?n:e:e,2)};function Yge(e,t,n,r,o,i){var a=e.transformState,s=a.scale,l=a.positionX,u=a.positionY,c=r-s;return"number"!=typeof t||"number"!=typeof n?(console.error("Mouse X and Y position were not provided!"),{x:l,y:u}):Gge(l-t*c,u-n*c,o,i,0,0,null)}function Zge(e,t,n,r,o){var i=t-(o?r:0);return!isNaN(n)&&e>=n?n:!isNaN(t)&&e<=i?i:e}var Xge=function(e,t){var n=e.setup.panning.excluded,r=e.isInitialized,o=e.wrapperComponent,i=t.target,a=null==o?void 0:o.contains(i);return!!(r&&i&&a)&&!xme(i,n)},$ge=function(e){var t=e.isInitialized,n=e.isPanning,r=e.setup.panning.disabled;return!(!t||!n||r)};var Kge=function(e,t){var n=e.setup,r=e.transformState.scale,o=n.minScale;return t>0&&r>=o?t:0};function Qge(e,t,n,r,o,i,a,s,l,u){if(o){var c;if(t>a&&n>a)return(c=a+(e-a)*u)>l?l:c<a?a:c;if(t<i&&n<i)return(c=i+(e-i)*u)<s?s:c>i?i:c}return r?t:qge(e,i,a,o)}function Jge(e,t){var n=function(e){va
/**
* @license React
* react-reconciler-constants.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
ConcurrentRoot:1,ContinuousEventPriority:4,DefaultEventPriority:16,DiscreteEventPriority:1,IdleEventPriority:536870912,LegacyRoot:0};!function(e){e.exports=dbe}(cbe);var fbe={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0},hbe=!1,pbe=!1,vbe=".react-konva-event",gbe="ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled.\nPosition of a node will be changed during drag&drop, so you should update state of the react app as well.\nConsider to add onDragMove or onDragEnd events.\nFor more info see: https://github.com/konvajs/react-konva/issues/256\n",mbe='ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor more info see: https://github.com/konvajs/react-konva/issues/194\n',ybe={};function bbe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ybe;if(!hbe&&"zIndex"in t&&(console.warn(mbe),hbe=!0),!pbe&&t.draggable){var r=void 0!==t.x||void 0!==t.y,o=t.onDragEnd||t.onDragMove;r&&!o&&(console.warn(gbe),pbe=!0)}for(var i in n)if(!fbe[i]){var a="on"===i.slice(0,2),s=n[i]!==t[i];if(a&&s)"content"===(p=i.substr(2).toLowerCase()).substr(0,7)&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),e.off(p,n[i]);var l=!t.hasOwnProperty(i);l&&e.setAttr(i,void 0)}var u=t._useStrictMode,c={},d=!1,f={};for(var i in t)if(!fbe[i]){a="on"===i.slice(0,2);var h=n[i]!==t[i];if(a&&h)"content"===(p=i.substr(2).toLowerCase()).substr(0,7)&&(p="content"+p.substr(7,1).toUpperCase()+p.substr(8)),t[i]&&(f[p]=t[i]);!a&&(t[i]!==n[i]||u&&t[i]!==e.getAttr(i))&&(d=!0,c[i]=t[i])}for(var p in d&&(e.setAttrs(c),wbe(e)),f)e.on(p+vbe,f[p])}function wbe(e){if(!Ste.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}var kbe={},xbe={};kre.Node.prototype._applyProps=bbe;var Sbe=setTimeout,Cbe=clearTimeout;function _be(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),wbe(e)}var Ebe=Object.freeze(Object.defineProperty({__proto__:null,appendChild:function(e,t){t.parent===e?t.moveToTop():e.add(t),wbe(e)},appendChildToContainer:function(e,t){t.parent===e?t.moveToTop():e.add(t),wbe(e)},appendInitialChild:function(e,t){"string"!=typeof t?(e.add(t),wbe(e)):console.error("Do not use plain text as child of Konva.Node. You are using text: ".concat(t))},cancelTimeout:Cbe,clearContainer:function(e){},commitMount:function(e,t,n){},commitTextUpdate:function(e,t,n){console.error('Text components are not yet supported in ReactKonva. You text is: "'.concat(n,'"'))},commitUpdate:function(e,t,n,r,o){bbe(e,o,r)},createInstance:function(e,t,n){var r=kre[e];r||(console.error("Konva has no node with the type ".concat(e,'. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/').concat(e,'" If you want to render DOM elements as part of canvas tree take a look into this demo: https://konvajs.github.io/docs/react/DOM_Portal.html')),r=kre.Group);var o={},i={};for(var a in t){"on"===a.slice(0,2)?i[a]=t[a]:o[a]=t[a]}var s=new r(o);return bbe(s,i),s},createTextInstance:function(e,t,n){console.error('Text components are not supported for now in ReactKonva. Your text is: "'.concat(e,'"'))},detachDeletedInstance:function(){},finalizeInitialChildren:function(e,t,n){return!1},getChildHostContext:function(){return kbe},getCurrentEventPriority:function(){return ube.DefaultEventPriority},getPublicInstance:function(e){return e},getRootHostContext:function(){return kbe},hideInstance:function(e){e.hide(),wbe(e)},hideTextInstance:function(e){},idlePriority:tA.unstable_IdlePriority,insertBefore:_be,insertInContainerBefore:function(e,t,n){_be(e,t,n)},isPrimaryRenderer:!1,noTimeout:-1,now:tA.unstable_now,prepareForCommit:function(){return null},preparePortalMount:function(){return null},prepareUpdate:function(e,t,n,r){return xbe},removeChild:function(e,t){t.destroy(),t.off(vbe),wbe(e)},removeChildFromContainer:function(e,t){t.d