import{q as uc,p as uk,O as ks}from"./previewUtils-DGR5aPfN.chunk.mjs";function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}function ZA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qA(e,t){if(Hr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dk(e){var t=qA(e,"string");return Hr(t)=="symbol"?t:t+""}function $A(e,t){for(var n=0;n>>1,Q=K[oe];if(0>>1;oe<$;){var re=2*(oe+1)-1,we=K[re],W=re+1,D=K[W];if(0>i(we,ne))Wi(D,we)?(K[oe]=D,K[W]=ne,oe=W):(K[oe]=we,K[re]=ne,oe=re);else if(Wi(D,ne))K[oe]=D,K[W]=ne,oe=W;else break e}}return ce}function i(K,ce){var ne=K.sortIndex-ce.sortIndex;return ne!==0?ne:K.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],d=[],h=1,b=null,m=3,g=!1,v=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(K){for(var ce=n(d);ce!==null;){if(ce.callback===null)r(d);else if(ce.startTime<=K)r(d),ce.sortIndex=ce.expirationTime,t(c,ce);else break;ce=n(d)}}function x(K){if(w=!1,f(K),!v)if(n(c)!==null)v=!0,Y(E);else{var ce=n(d);ce!==null&&le(x,ce.startTime-K)}}function E(K,ce){v=!1,w&&(w=!1,C(P),P=-1),g=!0;var ne=m;try{for(f(ce),b=n(c);b!==null&&(!(b.expirationTime>ce)||K&&!R());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,m=b.priorityLevel;var Q=oe(b.expirationTime<=ce);ce=e.unstable_now(),typeof Q=="function"?b.callback=Q:b===n(c)&&r(c),f(ce)}else r(c);b=n(c)}if(b!==null)var $=!0;else{var re=n(d);re!==null&&le(x,re.startTime-ce),$=!1}return $}finally{b=null,m=ne,g=!1}}var M=!1,j=null,P=-1,N=5,T=-1;function R(){return!(e.unstable_now()-TK||125oe?(K.sortIndex=ne,t(d,K),n(c)===null&&K===n(d)&&(w?(C(P),P=-1):w=!0,le(x,ne-oe))):(K.sortIndex=Q,t(c,K),v||g||(v=!0,Y(E))),K},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(K){var ce=m;return function(){var ne=m;m=ce;try{return K.apply(this,arguments)}finally{m=ne}}}})(v9),wk.exports=v9;var Th=wk.exports,pL=V,wi=Th;function Ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),uv=Object.prototype.hasOwnProperty,gL=/^[: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]*$/,y9={},b9={};function mL(e){return uv.call(b9,e)?!0:uv.call(y9,e)?!1:gL.test(e)?b9[e]=!0:(y9[e]=!0,!1)}function vL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function yL(e,t,n,r){if(t===null||typeof t>"u"||vL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fr(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var fr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fr[e]=new Fr(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fr[t]=new Fr(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){fr[e]=new Fr(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fr[e]=new Fr(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){fr[e]=new Fr(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){fr[e]=new Fr(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){fr[e]=new Fr(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){fr[e]=new Fr(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){fr[e]=new Fr(e,5,!1,e.toLowerCase(),null,!1,!1)});var t5=/[\-:]([a-z])/g;function n5(e){return e[1].toUpperCase()}"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 paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(t5,n5);fr[t]=new Fr(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(t5,n5);fr[t]=new Fr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(t5,n5);fr[t]=new Fr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){fr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!1,!1)}),fr.xlinkHref=new Fr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){fr[e]=new Fr(e,1,!1,e.toLowerCase(),null,!0,!0)});function f6(e,t,n,r){var i=fr.hasOwnProperty(t)?fr[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var c=` `+i[o].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=o&&0<=s);break}}}finally{i5=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wh(e):""}function bL(e){switch(e.tag){case 5:return wh(e.type);case 16:return wh("Lazy");case 13:return wh("Suspense");case 19:return wh("SuspenseList");case 0:case 2:case 15:return e=a5(e.type,!1),e;case 11:return e=a5(e.type.render,!1),e;case 1:return e=a5(e.type,!0),e;default:return""}}function pv(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case gu:return"Fragment";case pu:return"Portal";case dv:return"Profiler";case p6:return"StrictMode";case hv:return"Suspense";case fv:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Sk:return(e.displayName||"Context")+".Consumer";case Ck:return(e._context.displayName||"Context")+".Provider";case g6:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case m6:return t=e.displayName||null,t!==null?t:pv(e.type)||"Memo";case ws:t=e._payload,e=e._init;try{return pv(e(t))}catch{}}return null}function wL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pv(t);case 8:return t===p6?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _k(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xL(e){var t=_k(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function M1(e){e._valueTracker||(e._valueTracker=xL(e))}function kk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=_k(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Kp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gv(e,t){var n=t.checked;return xn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function x9(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ok(e,t){t=t.checked,t!=null&&f6(e,"checked",t,!1)}function mv(e,t){Ok(e,t);var n=zs(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vv(e,t.type,n):t.hasOwnProperty("defaultValue")&&vv(e,t.type,zs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function C9(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vv(e,t,n){(t!=="number"||Kp(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var xh=Array.isArray;function Tu(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=I1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Kh(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},CL=["Webkit","ms","Moz","O"];Object.keys(Mh).forEach(function(e){CL.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mh[t]=Mh[e]})});function Ik(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mh.hasOwnProperty(e)&&Mh[e]?(""+t).trim():t+"px"}function Ak(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ik(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var SL=xn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wv(e,t){if(t){if(SL[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ee(62))}}function xv(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cv=null;function v6(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sv=null,Mu=null,Iu=null;function _9(e){if(e=k0(e)){if(typeof Sv!="function")throw Error(Ee(280));var t=e.stateNode;t&&(t=lm(t),Sv(e.stateNode,e.type,t))}}function Lk(e){Mu?Iu?Iu.push(e):Iu=[e]:Mu=e}function jk(){if(Mu){var e=Mu,t=Iu;if(Iu=Mu=null,_9(e),t)for(e=0;e>>=0,e===0?32:31-(jL(e)/NL|0)|0}var A1=64,L1=4194304;function Ch(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Qp(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Ch(s):(a&=o,a!==0&&(r=Ch(a)))}else o=n&~i,o!==0?r=Ch(o):a!==0&&(r=Ch(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function E0(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fa(t),e[t]=n}function zL(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ah),j9=" ",N9=!1;function eO(e,t){switch(e){case"keyup":return fj.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mu=!1;function gj(e,t){switch(e){case"compositionend":return tO(t);case"keypress":return t.which!==32?null:(N9=!0,j9);case"textInput":return e=t.data,e===j9&&N9?null:e;default:return null}}function mj(e,t){if(mu)return e==="compositionend"||!_6&&eO(e,t)?(e=Qk(),ip=C6=Os=null,mu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=z9(n)}}function aO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?aO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oO(){for(var e=window,t=Kp();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Kp(e.document)}return t}function k6(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _j(e){var t=oO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&aO(n.ownerDocument.documentElement,n)){if(r!==null&&k6(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=B9(n,a);var o=B9(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,vu=null,Tv=null,jh=null,Mv=!1;function H9(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mv||vu==null||vu!==Kp(r)||(r=vu,"selectionStart"in r&&k6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jh&&e0(jh,r)||(jh=r,r=t2(Tv,"onSelect"),0wu||(e.current=Dv[wu],Dv[wu]=null,wu--)}function en(e,t){wu++,Dv[wu]=e.current,e.current=t}var Bs={},Lr=Vs(Bs),ni=Vs(!1),Jl=Bs;function Vu(e,t){var n=e.type.contextTypes;if(!n)return Bs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ri(e){return e=e.childContextTypes,e!=null}function r2(){rn(ni),rn(Lr)}function K9(e,t,n){if(Lr.current!==Bs)throw Error(Ee(168));en(Lr,t),en(ni,n)}function gO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ee(108,wL(e)||"Unknown",i));return xn({},n,r)}function i2(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Bs,Jl=Lr.current,en(Lr,e),en(ni,ni.current),!0}function Z9(e,t,n){var r=e.stateNode;if(!r)throw Error(Ee(169));n?(e=gO(e,t,Jl),r.__reactInternalMemoizedMergedChildContext=e,rn(ni),rn(Lr),en(Lr,e)):rn(ni),en(ni,n)}var vo=null,cm=!1,b5=!1;function mO(e){vo===null?vo=[e]:vo.push(e)}function Rj(e){cm=!0,mO(e)}function Us(){if(!b5&&vo!==null){b5=!0;var e=0,t=Ft;try{var n=vo;for(Ft=1;e>=o,i-=o,bo=1<<32-fa(t)+i|n<P?(N=j,j=null):N=j.sibling;var T=m(C,j,f[P],x);if(T===null){j===null&&(j=N);break}e&&j&&T.alternate===null&&t(C,j),_=a(T,_,P),M===null?E=T:M.sibling=T,M=T,j=N}if(P===f.length)return n(C,j),un&&Rl(C,P),E;if(j===null){for(;PP?(N=j,j=null):N=j.sibling;var R=m(C,j,T.value,x);if(R===null){j===null&&(j=N);break}e&&j&&R.alternate===null&&t(C,j),_=a(R,_,P),M===null?E=R:M.sibling=R,M=R,j=N}if(T.done)return n(C,j),un&&Rl(C,P),E;if(j===null){for(;!T.done;P++,T=f.next())T=b(C,T.value,x),T!==null&&(_=a(T,_,P),M===null?E=T:M.sibling=T,M=T);return un&&Rl(C,P),E}for(j=r(C,j);!T.done;P++,T=f.next())T=g(j,C,P,T.value,x),T!==null&&(e&&T.alternate!==null&&j.delete(T.key===null?P:T.key),_=a(T,_,P),M===null?E=T:M.sibling=T,M=T);return e&&j.forEach(function(z){return t(C,z)}),un&&Rl(C,P),E}function k(C,_,f,x){if(typeof f=="object"&&f!==null&&f.type===gu&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case T1:e:{for(var E=f.key,M=_;M!==null;){if(M.key===E){if(E=f.type,E===gu){if(M.tag===7){n(C,M.sibling),_=i(M,f.props.children),_.return=C,C=_;break e}}else if(M.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===ws&&Q9(E)===M.type){n(C,M.sibling),_=i(M,f.props),_.ref=Zd(C,M,f),_.return=C,C=_;break e}n(C,M);break}else t(C,M);M=M.sibling}f.type===gu?(_=Wl(f.props.children,C.mode,x,f.key),_.return=C,C=_):(x=hp(f.type,f.key,f.props,null,C.mode,x),x.ref=Zd(C,_,f),x.return=C,C=x)}return o(C);case pu:e:{for(M=f.key;_!==null;){if(_.key===M)if(_.tag===4&&_.stateNode.containerInfo===f.containerInfo&&_.stateNode.implementation===f.implementation){n(C,_.sibling),_=i(_,f.children||[]),_.return=C,C=_;break e}else{n(C,_);break}else t(C,_);_=_.sibling}_=O5(f,C.mode,x),_.return=C,C=_}return o(C);case ws:return M=f._init,k(C,_,M(f._payload),x)}if(xh(f))return v(C,_,f,x);if(Ud(f))return w(C,_,f,x);B1(C,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,_!==null&&_.tag===6?(n(C,_.sibling),_=i(_,f),_.return=C,C=_):(n(C,_),_=k5(f,C.mode,x),_.return=C,C=_),o(C)):n(C,_)}return k}var Wu=wO(!0),xO=wO(!1),s2=Vs(null),l2=null,Su=null,M6=null;function I6(){M6=Su=l2=null}function A6(e){var t=s2.current;rn(s2),e._currentValue=t}function zv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lu(e,t){l2=e,M6=Su=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ei=!0),e.firstContext=null)}function Ui(e){var t=e._currentValue;if(M6!==e)if(e={context:e,memoizedValue:t,next:null},Su===null){if(l2===null)throw Error(Ee(308));Su=e,l2.dependencies={lanes:0,firstContext:e}}else Su=Su.next=e;return t}var Gl=null;function L6(e){Gl===null?Gl=[e]:Gl.push(e)}function CO(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,L6(t)):(n.next=i.next,i.next=n),t.interleaved=n,ko(e,r)}function ko(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var xs=!1;function j6(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function SO(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ls(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ot&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ko(e,n)}return i=r.interleaved,i===null?(t.next=t,L6(r)):(t.next=i.next,i.next=t),r.interleaved=t,ko(e,n)}function op(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,b6(e,n)}}function J9(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function c2(e,t,n,r){var i=e.updateQueue;xs=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,d=c.next;c.next=null,o===null?a=d:o.next=d,o=c;var h=e.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==o&&(s===null?h.firstBaseUpdate=d:s.next=d,h.lastBaseUpdate=c))}if(a!==null){var b=i.baseState;o=0,h=d=c=null,s=a;do{var m=s.lane,g=s.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,w=s;switch(m=t,g=n,w.tag){case 1:if(v=w.payload,typeof v=="function"){b=v.call(g,b,m);break e}b=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=w.payload,m=typeof v=="function"?v.call(g,b,m):v,m==null)break e;b=xn({},b,m);break e;case 2:xs=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[s]:m.push(s))}else g={eventTime:g,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(d=h=g,c=b):h=h.next=g,o|=m;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(!0);if(h===null&&(c=b),i.baseState=c,i.firstBaseUpdate=d,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);nc|=o,e.lanes=o,e.memoizedState=b}}function ew(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=x5.transition;x5.transition={};try{e(!1),t()}finally{Ft=n,x5.transition=r}}function BO(){return Wi().memoizedState}function Hj(e,t,n){var r=Ns(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},HO(e))GO(t,n);else if(n=CO(e,t,n,r),n!==null){var i=Br();pa(n,e,r,i),VO(n,t,r)}}function Gj(e,t,n){var r=Ns(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(HO(e))GO(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ma(s,o)){var c=t.interleaved;c===null?(i.next=i,L6(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=CO(e,t,i,r),n!==null&&(i=Br(),pa(n,e,r,i),VO(n,t,r))}}function HO(e){var t=e.alternate;return e===wn||t!==null&&t===wn}function GO(e,t){Nh=d2=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function VO(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,b6(e,n)}}var h2={readContext:Ui,useCallback:Er,useContext:Er,useEffect:Er,useImperativeHandle:Er,useInsertionEffect:Er,useLayoutEffect:Er,useMemo:Er,useReducer:Er,useRef:Er,useState:Er,useDebugValue:Er,useDeferredValue:Er,useTransition:Er,useMutableSource:Er,useSyncExternalStore:Er,useId:Er,unstable_isNewReconciler:!1},Vj={readContext:Ui,useCallback:function(e,t){return za().memoizedState=[e,t===void 0?null:t],e},useContext:Ui,useEffect:nw,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,lp(4194308,4,NO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return lp(4194308,4,e,t)},useInsertionEffect:function(e,t){return lp(4,2,e,t)},useMemo:function(e,t){var n=za();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=za();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Hj.bind(null,wn,e),[r.memoizedState,e]},useRef:function(e){var t=za();return e={current:e},t.memoizedState=e},useState:tw,useDebugValue:G6,useDeferredValue:function(e){return za().memoizedState=e},useTransition:function(){var e=tw(!1),t=e[0];return e=Bj.bind(null,e[1]),za().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=wn,i=za();if(un){if(n===void 0)throw Error(Ee(407));n=n()}else{if(n=t(),lr===null)throw Error(Ee(349));tc&30||OO(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,nw(TO.bind(null,r,a,e),[e]),r.flags|=2048,l0(9,PO.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=za(),t=lr.identifierPrefix;if(un){var n=wo,r=bo;n=(r&~(1<<32-fa(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=o0++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ba]=t,e[r0]=r,JO(e,t,!1,!1),t.stateNode=e;e:{switch(o=xv(n,r),n){case"dialog":nn("cancel",e),nn("close",e),i=r;break;case"iframe":case"object":case"embed":nn("load",e),i=r;break;case"video":case"audio":for(i=0;iKu&&(t.flags|=128,r=!0,qd(a,!1),t.lanes=4194304)}else{if(!r)if(e=u2(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),qd(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!un)return _r(t),null}else 2*Nn()-a.renderingStartTime>Ku&&n!==1073741824&&(t.flags|=128,r=!0,qd(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Nn(),t.sibling=null,n=vn.current,en(vn,r?n&1|2:n&1),t):(_r(t),null);case 22:case 23:return K6(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mi&1073741824&&(_r(t),t.subtreeFlags&6&&(t.flags|=8192)):_r(t),null;case 24:return null;case 25:return null}throw Error(Ee(156,t.tag))}function $j(e,t){switch(P6(t),t.tag){case 1:return ri(t.type)&&r2(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xu(),rn(ni),rn(Lr),R6(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return D6(t),null;case 13:if(rn(vn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ee(340));Uu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return rn(vn),null;case 4:return Xu(),null;case 10:return A6(t.type._context),null;case 22:case 23:return K6(),null;case 24:return null;default:return null}}var G1=!1,Ar=!1,Qj=typeof WeakSet=="function"?WeakSet:Set,Re=null;function Eu(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){On(e,t,r)}else n.current=null}function nP(e,t,n){try{n()}catch(r){On(e,t,r)}}var fw=!1;function Jj(e,t){if(Iv=Jp,e=oO(),k6(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,c=-1,d=0,h=0,b=e,m=null;t:for(;;){for(var g;b!==n||i!==0&&b.nodeType!==3||(s=o+i),b!==a||r!==0&&b.nodeType!==3||(c=o+r),b.nodeType===3&&(o+=b.nodeValue.length),(g=b.firstChild)!==null;)m=b,b=g;for(;;){if(b===e)break t;if(m===n&&++d===i&&(s=o),m===a&&++h===r&&(c=o),(g=b.nextSibling)!==null)break;b=m,m=b.parentNode}b=g}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Av={focusedElem:e,selectionRange:n},Jp=!1,Re=t;Re!==null;)if(t=Re,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Re=e;else for(;Re!==null;){t=Re;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var w=v.memoizedProps,k=v.memoizedState,C=t.stateNode,_=C.getSnapshotBeforeUpdate(t.elementType===t.type?w:oa(t.type,w),k);C.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ee(163))}}catch(x){On(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,Re=e;break}Re=t.return}return v=fw,fw=!1,v}function Dh(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&nP(t,n,a)}i=i.next}while(i!==r)}}function hm(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kv(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function rP(e){var t=e.alternate;t!==null&&(e.alternate=null,rP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ba],delete t[r0],delete t[Nv],delete t[Nj],delete t[Dj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function iP(e){return e.tag===5||e.tag===3||e.tag===4}function pw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||iP(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=n2));else if(r!==4&&(e=e.child,e!==null))for(Zv(e,t,n),e=e.sibling;e!==null;)Zv(e,t,n),e=e.sibling}function qv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qv(e,t,n),e=e.sibling;e!==null;)qv(e,t,n),e=e.sibling}var hr=null,sa=!1;function Jo(e,t,n){for(n=n.child;n!==null;)aP(e,t,n),n=n.sibling}function aP(e,t,n){if(Ua&&typeof Ua.onCommitFiberUnmount=="function")try{Ua.onCommitFiberUnmount(im,n)}catch{}switch(n.tag){case 5:Ar||Eu(n,t);case 6:var r=hr,i=sa;hr=null,Jo(e,t,n),hr=r,sa=i,hr!==null&&(sa?(e=hr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):hr.removeChild(n.stateNode));break;case 18:hr!==null&&(sa?(e=hr,n=n.stateNode,e.nodeType===8?y5(e.parentNode,n):e.nodeType===1&&y5(e,n),Qh(e)):y5(hr,n.stateNode));break;case 4:r=hr,i=sa,hr=n.stateNode.containerInfo,sa=!0,Jo(e,t,n),hr=r,sa=i;break;case 0:case 11:case 14:case 15:if(!Ar&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&nP(n,t,o),i=i.next}while(i!==r)}Jo(e,t,n);break;case 1:if(!Ar&&(Eu(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){On(n,t,s)}Jo(e,t,n);break;case 21:Jo(e,t,n);break;case 22:n.mode&1?(Ar=(r=Ar)||n.memoizedState!==null,Jo(e,t,n),Ar=r):Jo(e,t,n);break;default:Jo(e,t,n)}}function gw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Qj),t.forEach(function(r){var i=lN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ea(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Nn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tN(r/1960))-r,10e?16:e,Ps===null)var r=!1;else{if(e=Ps,Ps=null,g2=0,(Ot&6)!==0)throw Error(Ee(331));var i=Ot;for(Ot|=4,Re=e.current;Re!==null;){var a=Re,o=a.child;if(Re.flags&16){var s=a.deletions;if(s!==null){for(var c=0;cNn()-X6?Ul(e,0):W6|=n),ii(e,t)}function fP(e,t){t===0&&(e.mode&1?(t=L1,L1<<=1,!(L1&130023424)&&(L1=4194304)):t=1);var n=Br();e=ko(e,t),e!==null&&(E0(e,t,n),ii(e,n))}function sN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),fP(e,n)}function lN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ee(314))}r!==null&&r.delete(t),fP(e,n)}var pP;pP=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ni.current)ei=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ei=!1,Zj(e,t,n);ei=(e.flags&131072)!==0}else ei=!1,un&&t.flags&1048576&&vO(t,o2,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;cp(e,t),e=t.pendingProps;var i=Vu(t,Lr.current);Lu(t,n),i=z6(null,t,r,e,i,n);var a=B6();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ri(r)?(a=!0,i2(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,j6(t),i.updater=dm,t.stateNode=i,i._reactInternals=t,Hv(t,r,e,n),t=Uv(null,t,r,!0,a,n)):(t.tag=0,un&&a&&O6(t),zr(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(cp(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=uN(r),e=oa(r,e),i){case 0:t=Vv(null,t,r,e,n);break e;case 1:t=uw(null,t,r,e,n);break e;case 11:t=lw(null,t,r,e,n);break e;case 14:t=cw(null,t,r,oa(r.type,e),n);break e}throw Error(Ee(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oa(r,i),Vv(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oa(r,i),uw(e,t,r,i,n);case 3:e:{if(qO(t),e===null)throw Error(Ee(387));r=t.pendingProps,a=t.memoizedState,i=a.element,SO(e,t),c2(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Yu(Error(Ee(423)),t),t=dw(e,t,r,n,i);break e}else if(r!==i){i=Yu(Error(Ee(424)),t),t=dw(e,t,r,n,i);break e}else for(yi=As(t.stateNode.containerInfo.firstChild),bi=t,un=!0,la=null,n=xO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Uu(),r===i){t=To(e,t,n);break e}zr(e,t,r,n)}t=t.child}return t;case 5:return EO(t),e===null&&Fv(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Lv(r,i)?o=null:a!==null&&Lv(r,a)&&(t.flags|=32),ZO(e,t),zr(e,t,o,n),t.child;case 6:return e===null&&Fv(t),null;case 13:return $O(e,t,n);case 4:return N6(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wu(t,null,r,n):zr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oa(r,i),lw(e,t,r,i,n);case 7:return zr(e,t,t.pendingProps,n),t.child;case 8:return zr(e,t,t.pendingProps.children,n),t.child;case 12:return zr(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,en(s2,r._currentValue),r._currentValue=o,a!==null)if(ma(a.value,o)){if(a.children===i.children&&!ni.current){t=To(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var c=s.firstContext;c!==null;){if(c.context===r){if(a.tag===1){c=Oo(-1,n&-n),c.tag=2;var d=a.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?c.next=c:(c.next=h.next,h.next=c),d.pending=c}}a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),zv(a.return,n,t),s.lanes|=n;break}c=c.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(Ee(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),zv(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}zr(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Lu(t,n),i=Ui(i),r=r(i),t.flags|=1,zr(e,t,r,n),t.child;case 14:return r=t.type,i=oa(r,t.pendingProps),i=oa(r.type,i),cw(e,t,r,i,n);case 15:return YO(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oa(r,i),cp(e,t),t.tag=1,ri(r)?(e=!0,i2(t)):e=!1,Lu(t,n),UO(t,r,i),Hv(t,r,i,n),Uv(null,t,r,!0,e,n);case 19:return QO(e,t,n);case 22:return KO(e,t,n)}throw Error(Ee(156,t.tag))};function gP(e,t){return Hk(e,t)}function cN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hi(e,t,n,r){return new cN(e,t,n,r)}function q6(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uN(e){if(typeof e=="function")return q6(e)?1:0;if(e!=null){if(e=e.$$typeof,e===g6)return 11;if(e===m6)return 14}return 2}function Ds(e,t){var n=e.alternate;return n===null?(n=Hi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function hp(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")q6(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case gu:return Wl(n.children,i,a,t);case p6:o=8,i|=8;break;case dv:return e=Hi(12,n,t,i|2),e.elementType=dv,e.lanes=a,e;case hv:return e=Hi(13,n,t,i),e.elementType=hv,e.lanes=a,e;case fv:return e=Hi(19,n,t,i),e.elementType=fv,e.lanes=a,e;case Ek:return pm(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ck:o=10;break e;case Sk:o=9;break e;case g6:o=11;break e;case m6:o=14;break e;case ws:o=16,r=null;break e}throw Error(Ee(130,e==null?e:typeof e,""))}return t=Hi(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Wl(e,t,n,r){return e=Hi(7,e,r,t),e.lanes=n,e}function pm(e,t,n,r){return e=Hi(22,e,r,t),e.elementType=Ek,e.lanes=n,e.stateNode={isHidden:!1},e}function k5(e,t,n){return e=Hi(6,e,null,t),e.lanes=n,e}function O5(e,t,n){return t=Hi(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dN(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=s5(0),this.expirationTimes=s5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s5(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function $6(e,t,n,r,i,a,o,s,c){return e=new dN(e,t,n,s,c),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Hi(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},j6(a),e}function hN(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yP)}catch(e){console.error(e)}}yP(),bk.exports=pi;var P0=bk.exports,ny,Ew=P0;ny=Ew.createRoot,Ew.hydrateRoot;function vN(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function me(e,t){if(e==null)return{};var n,r,i=vN(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;rve)&&(We=(Ge=Ge.replace(" ",":")).length),0we&&(we=($=$.trim()).charCodeAt(0)),we){case 38:return $.replace(C,"$1"+Q.trim());case 58:return Q.trim()+$.replace(C,"$1"+Q.trim());default:if(0<1*re&&0<$.indexOf("\f"))return $.replace(C,(Q.charCodeAt(0)===58?"":"$1")+Q.trim())}return Q+$}function i(Q,$,re,we){var W=Q+";",D=2*$+3*re+4*we;if(D===944){Q=W.indexOf(":",9)+1;var B=W.substring(Q,W.length-1).trim();return B=W.substring(0,Q).trim()+B+";",q===1||q===2&&a(B,1)?"-webkit-"+B+B:B}if(q===0||q===2&&!a(W,1))return W;switch(D){case 1015:return W.charCodeAt(10)===97?"-webkit-"+W+W:W;case 951:return W.charCodeAt(3)===116?"-webkit-"+W+W:W;case 963:return W.charCodeAt(5)===110?"-webkit-"+W+W:W;case 1009:if(W.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+W+W;case 978:return"-webkit-"+W+"-moz-"+W+W;case 1019:case 983:return"-webkit-"+W+"-moz-"+W+"-ms-"+W+W;case 883:if(W.charCodeAt(8)===45)return"-webkit-"+W+W;if(0B.charCodeAt(8))break;case 115:W=W.replace(B,"-webkit-"+B)+";"+W;break;case 207:case 102:W=W.replace(B,"-webkit-"+(102re.charCodeAt(0)&&(re=re.trim()),oe=re,re=[oe],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var XN=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&ic(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var s=a;s=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,s=a;s=zh&&(zh=t+1),Ap.set(e,t),C2.set(t,e)},ZN="style["+qu+'][data-styled-version="5.3.11"]',qN=new RegExp("^"+qu+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),$N=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a=0;d--){var h=c[d];if(h&&h.nodeType===1&&h.hasAttribute(qu))return h}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(qu,"active"),r.setAttribute("data-styled-version","5.3.11");var o=JN();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},eD=function(){function e(n){var r=this.element=OP(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,s=a.length;o=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n0&&(b+=m+",")}),a+=""+d+h+'{content:"'+b+`"}/*!sc*/ `}}}return a}(this)},e}(),iD=/(a)(d)/gi,Lw=function(e){return String.fromCharCode(e+(e>25?39:97))};function dy(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Lw(t%52)+n;return(Lw(t%52)+n).replace(iD,"$1-$2")}var ku=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},PP=function(e){return ku(5381,e)};function TP(e){for(var t=0;t>>0);if(!n.hasNameForId(i,s)){var c=r(o,"."+s,void 0,i);n.insertRules(i,s,c)}a.push(s),this.staticRulesId=s}else{for(var d=this.rules.length,h=ku(this.baseHash,r.hash),b="",m=0;m>>0);if(!n.hasNameForId(i,k)){var C=r(b,"."+k,void 0,i);n.insertRules(i,k,C)}a.push(k)}}return a.join(" ")},e}(),sD=/^\s*\/\/.*$/gm,lD=[":","[",".","#"];function cD(e){var t,n,r,i,a=Rs,o=a.options,s=o===void 0?Rs:o,c=a.plugins,d=c===void 0?x2:c,h=new _N(s),b=[],m=function(w){function k(C){if(C)try{w(C+"}")}catch{}}return function(C,_,f,x,E,M,j,P,N,T){switch(C){case 1:if(N===0&&_.charCodeAt(0)===64)return w(_+";"),"";break;case 2:if(P===0)return _+"/*|*/";break;case 3:switch(P){case 102:case 112:return w(f[0]+_),"";default:return _+(T===0?"/*|*/":"")}case-2:_.split("/*|*/}").forEach(k)}}}(function(w){b.push(w)}),g=function(w,k,C){return k===0&&lD.indexOf(C[n.length])!==-1||C.match(i)?w:"."+t};function v(w,k,C,_){_===void 0&&(_="&");var f=w.replace(sD,""),x=k&&C?C+" "+k+" { "+f+" }":f;return t=_,n=k,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),h(C||!k?"":k,x)}return h.use([].concat(d,[function(w,k,C){w===2&&C.length&&C[0].lastIndexOf(n)>0&&(C[0]=C[0].replace(r,g))},m,function(w){if(w===-2){var k=b;return b=[],k}}])),v.hash=d.length?d.reduce(function(w,k){return k.name||ic(15),ku(w,k.name)},5381).toString():"",v}var MP=y.createContext();MP.Consumer;var IP=y.createContext(),uD=(IP.Consumer,new S2),hy=cD();function AP(){return V.useContext(MP)||uD}function LP(){return V.useContext(IP)||hy}var jP=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=hy);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return ic(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=hy),this.name+t.hash},e}(),dD=/([A-Z])/,hD=/([A-Z])/g,fD=/^ms-/,pD=function(e){return"-"+e.toLowerCase()};function jw(e){return dD.test(e)?e.replace(hD,pD).replace(fD,"-ms-"):e}var Nw=function(e){return e==null||e===!1||e===""};function ac(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,mD=/(^-|-$)/g;function M5(e){return e.replace(gD,"-").replace(mD,"")}var e8=function(e){return dy(PP(e)>>>0)};function K1(e){return typeof e=="string"&&!0}var fy=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},vD=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function yD(e,t,n){var r=e[n];fy(t)&&fy(r)?DP(r,t):e[n]=t}function DP(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(T[P]=M[P]);return T}(t,["componentId"]),E=f&&f+"-"+(K1(_)?_:M5(Iw(_)));return RP(_,ua({},x,{attrs:m,componentId:E}),n)},Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(_){this._foldedDefaultProps=r?DP({},e.defaultProps,_):_}}),Object.defineProperty(v,"toString",{value:function(){return"."+v.styledComponentId}}),i&&VN(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),v}var Z=function(e){return function t(n,r,i){if(i===void 0&&(i=Rs),!SP.isValidElementType(r))return ic(1,String(r));var a=function(){return n(r,i,X.apply(void 0,arguments))};return a.withConfig=function(o){return t(n,r,ua({},i,{},o))},a.attrs=function(o){return t(n,r,ua({},i,{attrs:Array.prototype.concat(i.attrs,o).filter(Boolean)}))},a}(RP,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Z[e]=Z(e)});var wD=function(){function e(n,r){this.rules=n,this.componentId=r,this.isStatic=TP(n),S2.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(n,r,i,a){var o=a(ac(this.rules,r,i,a).join(""),""),s=this.componentId+n;i.insertRules(s,s,o)},t.removeStyles=function(n,r){r.clearRules(this.componentId+n)},t.renderStyles=function(n,r,i,a){n>2&&S2.registerId(this.componentId+n),this.removeStyles(n,i),this.createStyles(n,r,i,a)},e}();function gm(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r-1}function bd(U,te){var pe=this.__data__,Fe=yc(pe,U);return Fe<0?(++this.size,pe.push([U,te])):pe[Fe][1]=te,this}ci.prototype.clear=yd,ci.prototype.delete=Za,ci.prototype.get=Gn,ci.prototype.has=Gr,ci.prototype.set=bd;function zo(U){var te=-1,pe=U==null?0:U.length;for(this.clear();++te1?pe[vt-1]:void 0,Ct=vt>2?pe[2]:void 0;for(Bt=U.length>3&&typeof Bt=="function"?(vt--,Bt):void 0,Ct&&Zm(pe[0],pe[1],Ct)&&(Bt=vt<3?void 0:Bt,vt=1),te=Object(te);++Fe-1&&U%1==0&&U0){if(++te>=i)return arguments[0]}else te=0;return U.apply(void 0,arguments)}}function Ed(U){if(U!=null){try{return gt.call(U)}catch{}try{return U+""}catch{}}return""}function _a(U,te){return U===te||U!==U&&te!==te}var _d=bc(function(){return arguments}())?bc:function(U){return sn(U)&&mt.call(U,"callee")&&!kt.call(U,"callee")},il=Array.isArray;function bt(U){return U!=null&&G0(U.length)&&!Ec(U)}function H0(U){return sn(U)&&bt(U)}var Sc=si||Qm;function Ec(U){if(!$a(U))return!1;var te=Ho(U);return te==g||te==v||te==d||te==f}function G0(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=o}function $a(U){var te=typeof U;return U!=null&&(te=="object"||te=="function")}function sn(U){return U!=null&&typeof U=="object"}function kd(U){if(!sn(U)||Ho(U)!=_)return!1;var te=Ze(U);if(te===null)return!0;var pe=mt.call(te,"constructor")&&te.constructor;return typeof pe=="function"&&pe instanceof pe&>.call(pe)==Mn}var V0=se?Se(se):xd;function Od(U){return vr(U,U0(U))}function U0(U){return bt(U)?Xm(U):Go(U)}var _c=wc(function(U,te,pe){Ki(U,te,pe)});function ki(U){return function(){return U}}function W0(U){return U}function Qm(){return!1}e.exports=_c}(Lp,Lp.exports);var CD=Lp.exports;const SD=uc(CD);var fl=function(e,t){return e.reduce(function(n,r){return Object.assign(n,I({},r,t))},{})};function py(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=n||1e6,i=+e;return Math.min(Math.max(t,i),r)}function A5(e,t,n,r,i){return(e-t)*(i-r)/(n-t)+r}var i8=function(e){return e.replaceAll(/[^\d,]/gi,"").split(",").map(function(t){return+t})},jp=function(e){return e?[Number.parseInt(e.slice(1,3),16),Number.parseInt(e.slice(3,5),16),Number.parseInt(e.slice(5,7),16)]:[0,0,0]},zP=function(e){return e.toString(16).padStart(2,"0")},BP=function(){for(var e=arguments.length,t=new Array(e),n=0;n.5?b/(2-s-o):b/(s+o),s){case r:c=(i-a)/b+(i0&&arguments[0]!==void 0?arguments[0]:{};return e={},I(I(I(I(I(I(I(I(I(I(e,_e.LabelExtraSmall,Ce(Ce({},Ue),{},{fontSize:"10px",lineHeight:"12px"},t)),_e.LabelExtraSmallEmphasis,Ce(Ce({},Ue),{},{fontWeight:"Bold",fontSize:"10px",lineHeight:"12px"},t)),_e.LabelExtraSmallUp,Ce(Ce({},Ue),{},{fontSize:"11px",lineHeight:"12px"},t)),_e.LabelSmall,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"},t)),_e.LabelSmallEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"12px",lineHeight:"14px"},t)),_e.LabelSmallUp,Ce(Ce({fontSize:"13px",lineHeight:"16px"},Ue),t)),_e.LabelSmallUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"13px",lineHeight:"16px"},t)),_e.LabelMedium,Ce(Ce({fontSize:"14px",lineHeight:"16px"},Ue),t)),_e.LabelMediumEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"14px",lineHeight:"16px"},t)),_e.LabelLarge,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"},t)),I(I(I(I(I(I(I(I(I(e,_e.LabelLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"16px",lineHeight:"18px"},t)),_e.LabelLargeUp,Ce(Ce({},Ue),{},{fontWeight:Jt.Regular,fontSize:"18px",lineHeight:"20px"},t)),_e.LabelExtraLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"24px",lineHeight:"28px"},t)),_e.LabelExtraLarge,Ce(Ce({},Ue),{},{fontWeight:Jt.Regular,fontSize:"24px",lineHeight:"28px"},t)),_e.LabelXExtraLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"32px",lineHeight:"36px"},t)),_e.LabelXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"32px",lineHeight:"36px"},t)),_e.LabelXXExtraLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"48px",lineHeight:"54px"},t)),_e.LabelXXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"48px",lineHeight:"54px"},t)),_e.LabelXXXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"60px",lineHeight:"68px"},t))},DD=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return I(I(I(I(I(I(I({},_e.TextExtraSmall,Ce(Ce({},WP()[_e.LabelExtraSmallUp]),{},{lineHeight:"14px"},e)),_e.TextSmall,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"18px"},e)),_e.TextSmallUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"18px"},e)),_e.TextMedium,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"20px"},e)),_e.TextLarge,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"22px"},e)),_e.TextExtraLarge,Ce(Ce({},Ue),{},{fontSize:"18px",lineHeight:"26px"},e)),_e.TextXExtraLarge,Ce(Ce({},Ue),{},{fontSize:"28px",lineHeight:"40px"},e))},RD=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return I(I(I(I(I(I(I(I(I(I({},_e.ButtonSmEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"12px",lineHeight:"14px"},e)),_e.ButtonSm,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"},e)),_e.ButtonSmUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"13px",lineHeight:"16px"},e)),_e.ButtonSmUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"16px"},e)),_e.ButtonMdEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"14px",lineHeight:"16px"},e)),_e.ButtonMd,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"16px"},e)),_e.ButtonLgEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"16px",lineHeight:"18px"},e)),_e.ButtonLg,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"},e)),_e.ButtonLgUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"18px",lineHeight:"20px"},e)),_e.ButtonLgUp,Ce(Ce({},Ue),{},{fontSize:"18px",lineHeight:"20px"},e))},FD=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return I(I(I(I(I(I(I(I(I(I({},_e.LinkSmall,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"},e)),_e.LinkSmallEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"12px",lineHeight:"14px"},e)),_e.LinkSmallUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"16px"},e)),_e.LinkSmallUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"13px",lineHeight:"16px"},e)),_e.LinkMedium,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"16px"},e)),_e.LinkMediumEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"14px",lineHeight:"16px"},e)),_e.LinkLarge,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"},e)),_e.LinkLargeEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"16px",lineHeight:"18px"},e)),_e.LinkLargeUp,Ce(Ce({},Ue),{},{fontSize:"18px",lineHeight:"20px"},e)),_e.LinkLargeUpEmphasis,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"18px",lineHeight:"20px"},e))},zD=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return I(I(I(I({},_e.InputSm,Ce(Ce({},Ue),{},{fontSize:"12px",lineHeight:"14px"},e)),_e.InputSmUp,Ce(Ce({},Ue),{},{fontSize:"13px",lineHeight:"16px"},e)),_e.InputMd,Ce(Ce({},Ue),{},{fontSize:"14px",lineHeight:"16px"},e)),_e.InputLg,Ce(Ce({},Ue),{},{fontSize:"16px",lineHeight:"18px"},e))},BD=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return I(I(I(I(I(I({},_e.TitleH6,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"12px",lineHeight:"18px"},e)),_e.TitleH5,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"14px",lineHeight:"21px"},e)),_e.TitleH4,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"16px",lineHeight:"24px"},e)),_e.TitleH3,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"18px",lineHeight:"27px"},e)),_e.TitleH2,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"20px",lineHeight:"30px"},e)),_e.TitleH1,Ce(Ce({},Ue),{},{fontWeight:Jt.Medium,fontSize:"28px",lineHeight:"42px"},e))},XP=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ce(Ce({fontFamily:Ue.fontFamily,baseLineHeight:1.375},e),{},{font:Ce(Ce(Ce(Ce(Ce(Ce({},WP(e)),DD(e)),RD(e)),FD(e)),zD(e)),BD(e))})},HD=gm(["@keyframes spinner{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}.Menu-open{overflow:hidden;}.Modal-open{overflow:hidden;}"]),Yr,Ir=(Yr={},I(I(I(I(I(I(I(I(I(I(Yr,L.TextPrimary,"rgba(55, 65, 75, 1)"),L.TextSecondary,"rgba(118, 138, 159, 1)"),L.TextSecondaryInvert,"rgba(213, 216, 220, 1)"),L.TextPlaceholder,"rgba(169, 182, 194, 1)"),L.TextWarning,"rgba(196, 110, 0, 1)"),L.TextError,"rgba(185, 33, 46, 1)"),L.TextInfo,"rgba(35, 117, 171, 1)"),L.AccentPrimary,"rgba(104, 121, 235, 1)"),L.AccentPrimaryHover,"rgba(96, 111, 209, 1)"),L.AccentPrimaryActive,"rgba(73, 88, 188, 1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.AccentPrimaryDisabled,"rgba(233, 238, 242, 1)"),L.AccentSecondaryDisabled,"#F9FBFC"),L.AccentStateless,"rgba(104, 121, 235, 1)"),L.AccentStateless_0_4_Opacity,"rgba(104, 121, 235, 0.4)"),L.Accent_0_5_Opacity,"rgba(104, 121, 235, 0.05)"),L.Accent_1_2_Opacity,"rgba(104, 121, 235, 0.12)"),L.Accent_1_8_Opacity,"rgba(104, 121, 235, 0.18)"),L.Accent_2_8_Opacity,"rgba(104, 121, 235, 0.28)"),L.Accent_4_0_Opacity,"rgba(104, 121, 235, 0.4)"),L.BackgroundGrey,"rgba(216, 224, 232, 1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.BackgroundStateless,"rgba(255, 255, 255, 1)"),L.BackgroundActive,"rgba(243, 247, 250, 1)"),L.BackgroundBaseLight,"rgba(235, 239, 252, 1)"),L.BackgroundBaseMedium,"rgba(227, 231, 251, 1)"),L.BackgroundPrimary,"rgba(248, 250, 251, 1)"),L.BackgroundPrimaryLight,"rgba(243, 245, 247, 1)"),L.BackgroundPrimaryHover,"rgba(239, 243, 246, 1)"),L.BackgroundPrimaryActive,"rgba(93, 109, 126, 1)"),L.BackgroundPrimary_0_5_Opacity,"rgba(255, 255, 255, 0.500)"),L.BackgroundPrimaryStateless,"#CCD6DE"),I(I(I(I(I(I(I(I(I(I(Yr,L.BackgroundSecondary,"rgba(255, 255, 255, 1)"),L.BackgroundHover,"rgba(249, 251, 252, 1)"),L.BackgroundGreen,"rgba(237, 250, 244, 1)"),L.BackgroundGreenMedium,"rgba(227, 250, 239, 1)"),L.BackgroundBlue,"rgba(244, 249, 255, 1)"),L.BackgroundRed,"rgba(253, 244, 242, 1)"),L.BackgroundRedLight,"rgba(255, 245, 245, 1)"),L.BackgroundRedMedium,"rgba(247, 228, 230, 1)"),L.BackgroundOrange,"rgba(255, 249, 242, 1)"),L.BackgroundTooltip,"rgba(79, 98, 118, 1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.IconsPrimary,"rgba(118, 138, 159, 1)"),L.IconsPrimaryOpacity_0_6,"rgba(93, 109, 126, 0.600)"),L.IconsSecondary,"rgba(151, 166, 182, 1)"),L.IconsPlaceholder,"rgba(223, 231, 237, 1)"),L.IconsInvert,"rgba(255, 255, 255, 1)"),L.IconsMuted,"rgba(169, 182, 194, 1)"),L.IconsPrimaryHover,"rgba(79, 98, 118, 1)"),L.IconsSecondaryHover,"rgba(118, 138, 159, 1)"),L.ButtonPrimaryText,"rgba(255, 255, 255, 1)"),L.ButtonPrimaryText_0_6,"rgba(255, 255, 255, 0.6)"),I(I(I(I(I(I(I(I(I(I(Yr,L.ButtonPrimaryText_0_4,"rgba(255, 255, 255, 0.4)"),L.ButtonDisabledText,"rgba(169, 182, 194, 1)"),L.ButtonSecondaryText,"rgba(0, 0, 0, 1)"),L.LinkPrimary,"rgba(118, 138, 159, 1)"),L.LinkStateless,"rgba(118, 138, 159, 1)"),L.LinkHover,"rgba(79, 98, 118, 1)"),L.LinkActive,"rgba(55, 65, 75, 1)"),L.LinkPressed,"rgba(104, 121, 235, 1)"),L.LinkMuted,"rgba(169, 182, 194, 1)"),L.BordersPrimary,"rgba(204, 214, 222, 1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.BordersPrimaryHover,"rgba(104, 118, 134, 1)"),L.BordersSecondary,"rgba(236, 240, 243, 1)"),L.BordersStrong,"rgba(204, 214, 222, 1)"),L.BordersInvert,"rgba(85, 99, 115, 1)"),L.BorderHoverBottom,"rgba(104, 121, 235, 0.18)"),L.BorderActiveBottom,"#4958BC"),L.BorderPrimaryStateless,"rgba(204, 214, 222, 1)"),L.BordersDisabled,"rgba(73, 88, 188, 0.4)"),L.BordersButton,"rgba(151, 166, 182, 1)"),L.BordersItem,"rgba(226, 232, 236, 1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.BordersBaseLight,"rgba(211, 219, 250, 1)"),L.BordersBaseMedium,"rgba(164, 175, 227, 1)"),L.BordersGreen,"rgba(27, 161, 99, 0.22)"),L.BordersGreenMedium,"rgba(27, 161, 99, 0.4)"),L.BordersRed,"rgba(185, 33, 46, 0.4)"),L.ActiveSecondary,"#FFFFFF"),L.ActiveSecondaryHover,"rgba(104, 121, 235, 0.05)"),L.Error,"rgba(246, 61, 61, 1)"),L.Error_0_28_Opacity,"rgba(185, 33, 46, 0.28)"),L.Error_0_12_Opacity,"rgba(255, 86, 78, 0.1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.ErrorHover,"rgba(216, 46, 46, 1)"),L.ErrorActive,"rgba(185, 33, 46, 1)"),L.Success,"rgba(38, 193, 122, 1)"),L.SuccessHover,"rgba(30, 154, 98, 1)"),L.SuccessActive,"rgba(23, 116, 73, 1)"),L.Warning,"rgba(255, 172, 74, 1)"),L.WarningHover,"rgba(237, 145, 7, 1)"),L.WarningActive,"rgba(224, 135, 0, 1)"),L.Info,"rgba(41, 127, 184, 1)"),L.Modified,"rgba(165, 166, 246, 1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.Red,"rgba(219, 46, 50, 1)"),L.Orange,"rgba(255, 168, 0, 1)"),L.Salad,"rgba(143, 176, 33, 1)"),L.Green,"rgba(22, 160, 134, 1)"),L.Blue,"rgba(41, 127, 184, 1)"),L.Indigo,"rgba(91, 72, 162, 1)"),L.Violet,"rgba(141, 68, 173, 1)"),L.Pink,"rgba(211, 92, 158, 1)"),L.GradientRight,"linear-gradient(270deg, #FFFFFF 1.56%, rgba(255, 255, 255, 0.89) 52.4%, rgba(255, 255, 255, 0.532165) 76.04%, rgba(255, 255, 255, 0) 100%)"),L.Extra_0_3_Overlay,"rgba(79, 98, 118, 0.3)"),I(I(I(I(I(I(I(I(I(I(Yr,L.GradientRightActive,"linear-gradient(270deg, #F3F7FA 1.56%, #F3F7FA 52.4%, rgba(243, 247, 250, 0.53) 76.04%, rgba(243, 247, 250, 0) 100%)"),L.GradientRightHover,"linear-gradient(270deg, #F9FBFC 1.56%, #F9FBFC 52.4%, rgba(249, 251, 252, 0.53) 76.04%, rgba(249, 251, 252, 0) 100%)"),L.Extra_0_5_Overlay,"rgba(79, 98, 118, 0.5)"),L.Extra_0_7_Overlay,"rgba(79, 98, 118, 0.7)"),L.Extra_0_9_Overlay,"rgba(79, 98, 118, 0.9)"),L.Red_0_1_Overlay,"rgba(232, 91, 70, 0.1)"),L.Orange_0_1_Overlay,"rgba(250, 157, 47, 0.1)"),L.Accent_0_8_Overlay,"rgba(104, 121, 235, 0.08)"),L.Link,"rgba(250, 166, 68, 1)"),L.Camera,"rgba(73, 186, 224, 1)"),I(I(I(I(I(I(I(I(I(I(Yr,L.GoogleDrive,"rgba(81, 136, 238, 1)"),L.Dropbox,"rgba(17, 40, 124, 1)"),L.OneDrive,"rgba(40, 100, 186, 1)"),L.Device,"rgba(102, 73, 209, 1)"),L.Instagram,"rgba(244, 70, 154, 1)"),L.Unsplash,"rgba(173, 38, 220, 1)"),L.FreeImages,"rgba(16, 163, 135, 1)"),L.FreeIcons,"rgba(62, 207, 139, 1)"),L.Canvas,"rgba(36, 190, 202, 1)"),L.Box,"rgba(0, 97, 213, 1)"),I(I(I(I(I(I(I(Yr,L.ScreenCast,"rgba(48, 61, 78, 1)"),L.Tag,"#889AAC"),L.StatesErrorDisabledText,"rgba(185, 33, 46, 0.3)"),L.LightShadow,"rgba(146, 166, 188, 0.2)"),L.MediumShadow,"rgba(146, 166, 188, 0.24)"),L.LargeShadow,"rgba(146, 166, 188, 0.32)"),L.XLargeShadow,"rgba(146, 166, 188, 0.5)")),GD=Ir,R5,VD=(R5={},I(I(I(I(I(I(I(I(I(I(R5,qr.ShadowSm,"0px 1px 2px 0px rgba(146, 166, 188, 0.2)"),qr.ShadowMd," 0px 1px 4px 0px rgba(146, 166, 188, 0.24)"),qr.ShadowLg," 0px 2px 6px 0px rgba(146, 166, 188, 0.32)"),qr.ShadowXl," 0px 2px 6px 0px rgba(146, 166, 188, 0.5)"),qr.Label," 0px 1px 3px 0px rgba(77, 78, 78, 0.15)"),qr.Header," 0px 6px 10px 0px rgba(146, 166, 188, 0.2)"),qr.HeaderPopup," 0px 3px 7px 0px rgba(146, 166, 188, 0.16)"),qr.FooterPopup," 0px -4px 8px 0px rgba(208, 215, 220, 0.22)"),qr.LeftPanelMd," 6px 8px 12px 0px rgba(146, 166, 188, 0.14)"),qr.RightPanelMd,"-6px 8px 12px 0px rgba(146, 166, 188, 0.14)"),I(I(R5,qr.LeftPanelSm,"6px -4px 12px 0px rgba(146, 166, 188, 0.14)"),qr.RightPanelSm,"-6px -4px 12px 0px rgba(146, 166, 188, 0.14)")),UD=VD,Vw={values:I(I(I(I(I(I(I({},Mr.Xs,0),Mr.Sm,576),Mr.Md,768),Mr.Lg,1084),Mr.Xl,1342),Mr.Xxl,1600),Mr.Xxxl,1920),classes:I(I(I(I(I(I(I({},Mr.Xs,".sfx-breakpoint-xs"),Mr.Sm,".sfx-breakpoint-sm"),Mr.Md,".sfx-breakpoint-md"),Mr.Lg,".sfx-breakpoint-lg"),Mr.Xl,".sfx-breakpoint-xl"),Mr.Xxl,".sfx-breakpoint-xxl"),Mr.Xxxl,".sfx-breakpoint-xxxl")},WD=function(e){var t=e.values,n=t===void 0?Vw.values:t,r=e.classes,i=r===void 0?Vw.classes:r,a="px",o=Object.keys(n),s=function(m){var g=typeof n[m]=="number"?n[m]:m;return"@media (min-width:".concat(g).concat(a,")")},c=function(m){var g=n[m];return"@media (max-width:".concat(g).concat(a,")")},d=function(m,g){var v=o.indexOf(g);return"@media (min-width:".concat(n[m]).concat(a,") and (max-width:").concat(n[o[v]]).concat(a,")")},h=function(m){return o.indexOf(m)+1=n.xs&&m=n.sm&&m=n.md&&m=n.lg&&m=n.xl&&m=n.xxl&&m=n.xxxl?g?v(i.xxxl):i.xxxl:g?v(i.md):i.md};return{keys:o,values:n,classes:i,getBreakpointClass:b,up:s,down:c,between:d,only:h}};function Uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t{e.Konva[i.prototype.getClassName()]=i};e._registerNode=r,e.Konva._injectGlobal(e.Konva)})(ct);var Cn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=ct;class n{constructor(x=[1,0,0,1,0,0]){this.dirty=!1,this.m=x&&x.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new n(this.m)}copyInto(x){x.m[0]=this.m[0],x.m[1]=this.m[1],x.m[2]=this.m[2],x.m[3]=this.m[3],x.m[4]=this.m[4],x.m[5]=this.m[5]}point(x){const E=this.m;return{x:E[0]*x.x+E[2]*x.y+E[4],y:E[1]*x.x+E[3]*x.y+E[5]}}translate(x,E){return this.m[4]+=this.m[0]*x+this.m[2]*E,this.m[5]+=this.m[1]*x+this.m[3]*E,this}scale(x,E){return this.m[0]*=x,this.m[1]*=x,this.m[2]*=E,this.m[3]*=E,this}rotate(x){const E=Math.cos(x),M=Math.sin(x),j=this.m[0]*E+this.m[2]*M,P=this.m[1]*E+this.m[3]*M,N=this.m[0]*-M+this.m[2]*E,T=this.m[1]*-M+this.m[3]*E;return this.m[0]=j,this.m[1]=P,this.m[2]=N,this.m[3]=T,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(x,E){const M=this.m[0]+this.m[2]*E,j=this.m[1]+this.m[3]*E,P=this.m[2]+this.m[0]*x,N=this.m[3]+this.m[1]*x;return this.m[0]=M,this.m[1]=j,this.m[2]=P,this.m[3]=N,this}multiply(x){const E=this.m[0]*x.m[0]+this.m[2]*x.m[1],M=this.m[1]*x.m[0]+this.m[3]*x.m[1],j=this.m[0]*x.m[2]+this.m[2]*x.m[3],P=this.m[1]*x.m[2]+this.m[3]*x.m[3],N=this.m[0]*x.m[4]+this.m[2]*x.m[5]+this.m[4],T=this.m[1]*x.m[4]+this.m[3]*x.m[5]+this.m[5];return this.m[0]=E,this.m[1]=M,this.m[2]=j,this.m[3]=P,this.m[4]=N,this.m[5]=T,this}invert(){const x=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),E=this.m[3]*x,M=-this.m[1]*x,j=-this.m[2]*x,P=this.m[0]*x,N=x*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),T=x*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=E,this.m[1]=M,this.m[2]=j,this.m[3]=P,this.m[4]=N,this.m[5]=T,this}getMatrix(){return this.m}decompose(){const x=this.m[0],E=this.m[1],M=this.m[2],j=this.m[3],P=this.m[4],N=this.m[5],T=x*j-E*M,R={x:P,y:N,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(x!=0||E!=0){const z=Math.sqrt(x*x+E*E);R.rotation=E>0?Math.acos(x/z):-Math.acos(x/z),R.scaleX=z,R.scaleY=T/z,R.skewX=(x*M+E*j)/T,R.skewY=0}else if(M!=0||j!=0){const z=Math.sqrt(M*M+j*j);R.rotation=Math.PI/2-(j>0?Math.acos(-M/z):-Math.acos(M/z)),R.scaleX=T/z,R.scaleY=z,R.skewX=0,R.skewY=(x*M+E*j)/T}return R.rotation=e.Util._getRotation(R.rotation),R}}e.Transform=n;const r="[object Array]",i="[object Number]",a="[object String]",o="[object Boolean]",s=Math.PI/180,c=180/Math.PI,d="#",h="",b="0",m="Konva warning: ",g="Konva error: ",v="rgb(",w={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},k=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;let C=[];const _=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(f){setTimeout(f,60)};e.Util={_isElement(f){return!!(f&&f.nodeType==1)},_isFunction(f){return!!(f&&f.constructor&&f.call&&f.apply)},_isPlainObject(f){return!!f&&f.constructor===Object},_isArray(f){return Object.prototype.toString.call(f)===r},_isNumber(f){return Object.prototype.toString.call(f)===i&&!isNaN(f)&&isFinite(f)},_isString(f){return Object.prototype.toString.call(f)===a},_isBoolean(f){return Object.prototype.toString.call(f)===o},isObject(f){return f instanceof Object},isValidSelector(f){if(typeof f!="string")return!1;const x=f[0];return x==="#"||x==="."||x===x.toUpperCase()},_sign(f){return f===0||f>0?1:-1},requestAnimFrame(f){C.push(f),C.length===1&&_(function(){const x=C;C=[],x.forEach(function(E){E()})})},createCanvasElement(){const f=document.createElement("canvas");try{f.style=f.style||{}}catch{}return f},createImageElement(){return document.createElement("img")},_isInDocument(f){for(;f=f.parentNode;)if(f==document)return!0;return!1},_urlToImage(f,x){const E=e.Util.createImageElement();E.onload=function(){x(E)},E.src=f},_rgbToHex(f,x,E){return((1<<24)+(f<<16)+(x<<8)+E).toString(16).slice(1)},_hexToRgb(f){f=f.replace(d,h);const x=parseInt(f,16);return{r:x>>16&255,g:x>>8&255,b:x&255}},getRandomColor(){let f=(Math.random()*16777215<<0).toString(16);for(;f.length<6;)f=b+f;return d+f},getRGB(f){let x;return f in w?(x=w[f],{r:x[0],g:x[1],b:x[2]}):f[0]===d?this._hexToRgb(f.substring(1)):f.substr(0,4)===v?(x=k.exec(f.replace(/ /g,"")),{r:parseInt(x[1],10),g:parseInt(x[2],10),b:parseInt(x[3],10)}):{r:0,g:0,b:0}},colorToRGBA(f){return f=f||"black",e.Util._namedColorToRBA(f)||e.Util._hex3ColorToRGBA(f)||e.Util._hex4ColorToRGBA(f)||e.Util._hex6ColorToRGBA(f)||e.Util._hex8ColorToRGBA(f)||e.Util._rgbColorToRGBA(f)||e.Util._rgbaColorToRGBA(f)||e.Util._hslColorToRGBA(f)},_namedColorToRBA(f){const x=w[f.toLowerCase()];return x?{r:x[0],g:x[1],b:x[2],a:1}:null},_rgbColorToRGBA(f){if(f.indexOf("rgb(")===0){f=f.match(/rgb\(([^)]+)\)/)[1];const x=f.split(/ *, */).map(Number);return{r:x[0],g:x[1],b:x[2],a:1}}},_rgbaColorToRGBA(f){if(f.indexOf("rgba(")===0){f=f.match(/rgba\(([^)]+)\)/)[1];const x=f.split(/ *, */).map((E,M)=>E.slice(-1)==="%"?M===3?parseInt(E)/100:parseInt(E)/100*255:Number(E));return{r:x[0],g:x[1],b:x[2],a:x[3]}}},_hex8ColorToRGBA(f){if(f[0]==="#"&&f.length===9)return{r:parseInt(f.slice(1,3),16),g:parseInt(f.slice(3,5),16),b:parseInt(f.slice(5,7),16),a:parseInt(f.slice(7,9),16)/255}},_hex6ColorToRGBA(f){if(f[0]==="#"&&f.length===7)return{r:parseInt(f.slice(1,3),16),g:parseInt(f.slice(3,5),16),b:parseInt(f.slice(5,7),16),a:1}},_hex4ColorToRGBA(f){if(f[0]==="#"&&f.length===5)return{r:parseInt(f[1]+f[1],16),g:parseInt(f[2]+f[2],16),b:parseInt(f[3]+f[3],16),a:parseInt(f[4]+f[4],16)/255}},_hex3ColorToRGBA(f){if(f[0]==="#"&&f.length===4)return{r:parseInt(f[1]+f[1],16),g:parseInt(f[2]+f[2],16),b:parseInt(f[3]+f[3],16),a:1}},_hslColorToRGBA(f){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(f)){const[x,...E]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(f),M=Number(E[0])/360,j=Number(E[1])/100,P=Number(E[2])/100;let N,T,R;if(j===0)return R=P*255,{r:Math.round(R),g:Math.round(R),b:Math.round(R),a:1};P<.5?N=P*(1+j):N=P+j-P*j;const z=2*P-N,H=[0,0,0];for(let J=0;J<3;J++)T=M+1/3*-(J-1),T<0&&T++,T>1&&T--,6*T<1?R=z+(N-z)*6*T:2*T<1?R=N:3*T<2?R=z+(N-z)*(2/3-T)*6:R=z,H[J]=R*255;return{r:Math.round(H[0]),g:Math.round(H[1]),b:Math.round(H[2]),a:1}}},haveIntersection(f,x){return!(x.x>f.x+f.width||x.x+x.widthf.y+f.height||x.y+x.height1?(N=E,T=M,R=(E-j)*(E-j)+(M-P)*(M-P)):(N=f+H*(E-f),T=x+H*(M-x),R=(N-j)*(N-j)+(T-P)*(T-P))}return[N,T,R]},_getProjectionToLine(f,x,E){const M=e.Util.cloneObject(f);let j=Number.MAX_VALUE;return x.forEach(function(P,N){if(!E&&N===x.length-1)return;const T=x[(N+1)%x.length],R=e.Util._getProjectionToSegment(P.x,P.y,T.x,T.y,f.x,f.y),z=R[0],H=R[1],J=R[2];Jx.length){const N=x;x=f,f=N}for(let N=0;N{x.width=0,x.height=0})},drawRoundedRectPath(f,x,E,M){let j=0,P=0,N=0,T=0;typeof M=="number"?j=P=N=T=Math.min(M,x/2,E/2):(j=Math.min(M[0]||0,x/2,E/2),P=Math.min(M[1]||0,x/2,E/2),T=Math.min(M[2]||0,x/2,E/2),N=Math.min(M[3]||0,x/2,E/2)),f.moveTo(j,0),f.lineTo(x-P,0),f.arc(x-P,P,P,Math.PI*3/2,0,!1),f.lineTo(x,E-T),f.arc(x-T,E-T,T,0,Math.PI/2,!1),f.lineTo(N,E),f.arc(N,E-N,N,Math.PI/2,Math.PI,!1),f.lineTo(0,j),f.arc(j,j,j,Math.PI,Math.PI*3/2,!1)}}})(Cn);var dn={},pt={},qe={};Object.defineProperty(qe,"__esModule",{value:!0}),qe.RGBComponent=ZD,qe.alphaComponent=qD,qe.getNumberValidator=$D,qe.getNumberOrArrayOfNumbersValidator=QD,qe.getNumberOrAutoValidator=JD,qe.getStringValidator=eR,qe.getStringOrGradientValidator=tR,qe.getFunctionValidator=nR,qe.getNumberArrayValidator=rR,qe.getBooleanValidator=iR,qe.getComponentValidator=aR;const Ao=ct,Pn=Cn;function Lo(e){return Pn.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Pn.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function ZD(e){return e>255?255:e<0?0:Math.round(e)}function qD(e){return e>1?1:e<1e-4?1e-4:e}function $D(){if(Ao.Konva.isUnminified)return function(e,t){return Pn.Util._isNumber(e)||Pn.Util.warn(Lo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}function QD(e){if(Ao.Konva.isUnminified)return function(t,n){let r=Pn.Util._isNumber(t),i=Pn.Util._isArray(t)&&t.length==e;return!r&&!i&&Pn.Util.warn(Lo(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array('+e+")"),t}}function JD(){if(Ao.Konva.isUnminified)return function(e,t){var n=Pn.Util._isNumber(e),r=e==="auto";return n||r||Pn.Util.warn(Lo(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}function eR(){if(Ao.Konva.isUnminified)return function(e,t){return Pn.Util._isString(e)||Pn.Util.warn(Lo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}function tR(){if(Ao.Konva.isUnminified)return function(e,t){const n=Pn.Util._isString(e),r=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return n||r||Pn.Util.warn(Lo(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}function nR(){if(Ao.Konva.isUnminified)return function(e,t){return Pn.Util._isFunction(e)||Pn.Util.warn(Lo(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}function rR(){if(Ao.Konva.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(Pn.Util._isArray(e)?e.forEach(function(r){Pn.Util._isNumber(r)||Pn.Util.warn('"'+t+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):Pn.Util.warn(Lo(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}function iR(){if(Ao.Konva.isUnminified)return function(e,t){var n=e===!0||e===!1;return n||Pn.Util.warn(Lo(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}function aR(e){if(Ao.Konva.isUnminified)return function(t,n){return t==null||Pn.Util.isObject(t)||Pn.Util.warn(Lo(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Cn,n=qe,r="get",i="set";e.Factory={addGetterSetter(a,o,s,c,d){e.Factory.addGetter(a,o,s),e.Factory.addSetter(a,o,c,d),e.Factory.addOverloadedGetterSetter(a,o)},addGetter(a,o,s){var c=r+t.Util._capitalize(o);a.prototype[c]=a.prototype[c]||function(){const d=this.attrs[o];return d===void 0?s:d}},addSetter(a,o,s,c){var d=i+t.Util._capitalize(o);a.prototype[d]||e.Factory.overWriteSetter(a,o,s,c)},overWriteSetter(a,o,s,c){var d=i+t.Util._capitalize(o);a.prototype[d]=function(h){return s&&h!==void 0&&h!==null&&(h=s.call(this,h,o)),this._setAttr(o,h),c&&c.call(this),this}},addComponentsGetterSetter(a,o,s,c,d){const h=s.length,b=t.Util._capitalize,m=r+b(o),g=i+b(o);a.prototype[m]=function(){const w={};for(let k=0;k{this._setAttr(o+b(C),void 0)}),this._fireChangeEvent(o,k,w),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(a,o)},addOverloadedGetterSetter(a,o){var s=t.Util._capitalize(o),c=i+s,d=r+s;a.prototype[o]=function(){return arguments.length?(this[c](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(a,o,s,c){t.Util.error("Adding deprecated "+o);const d=r+t.Util._capitalize(o),h=o+" property is deprecated and will be removed soon. Look at Konva change log for more information.";a.prototype[d]=function(){t.Util.error(h);const b=this.attrs[o];return b===void 0?s:b},e.Factory.addSetter(a,o,c,function(){t.Util.error(h)}),e.Factory.addOverloadedGetterSetter(a,o)},backCompat(a,o){t.Util.each(o,function(s,c){const d=a.prototype[c],h=r+t.Util._capitalize(s),b=i+t.Util._capitalize(s);function m(){d.apply(this,arguments),t.Util.error('"'+s+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}a.prototype[s]=m,a.prototype[h]=m,a.prototype[b]=m})},afterSetFilter(){this._filterUpToDate=!1}}})(pt);var da={},xo={};Object.defineProperty(xo,"__esModule",{value:!0}),xo.HitContext=xo.SceneContext=xo.Context=void 0;const $P=Cn,oR=ct;function sR(e){const t=[],n=e.length,r=$P.Util;for(let i=0;itypeof d=="number"?Math.floor(d):d)),i+=lR+c.join(Ww)+cR)):(i+=o.property,e||(i+=pR+o.val)),i+=hR;return i}clearTrace(){this.traceArr=[]}_trace(e){let t=this.traceArr,n;t.push(e),n=t.length,n>=mR&&t.shift()}reset(){const e=this.getCanvas().getPixelRatio();this.setTransform(1*e,0,0,1*e,0,0)}getCanvas(){return this.canvas}clear(e){const t=this.getCanvas();e?this.clearRect(e.x||0,e.y||0,e.width||0,e.height||0):this.clearRect(0,0,t.getWidth()/t.pixelRatio,t.getHeight()/t.pixelRatio)}_applyLineCap(e){const t=e.attrs.lineCap;t&&this.setAttr("lineCap",t)}_applyOpacity(e){const t=e.getAbsoluteOpacity();t!==1&&this.setAttr("globalAlpha",t)}_applyLineJoin(e){const t=e.attrs.lineJoin;t&&this.setAttr("lineJoin",t)}setAttr(e,t){this._context[e]=t}arc(e,t,n,r,i,a){this._context.arc(e,t,n,r,i,a)}arcTo(e,t,n,r,i){this._context.arcTo(e,t,n,r,i)}beginPath(){this._context.beginPath()}bezierCurveTo(e,t,n,r,i,a){this._context.bezierCurveTo(e,t,n,r,i,a)}clearRect(e,t,n,r){this._context.clearRect(e,t,n,r)}clip(...e){this._context.clip.apply(this._context,e)}closePath(){this._context.closePath()}createImageData(e,t){const n=arguments;if(n.length===2)return this._context.createImageData(e,t);if(n.length===1)return this._context.createImageData(e)}createLinearGradient(e,t,n,r){return this._context.createLinearGradient(e,t,n,r)}createPattern(e,t){return this._context.createPattern(e,t)}createRadialGradient(e,t,n,r,i,a){return this._context.createRadialGradient(e,t,n,r,i,a)}drawImage(e,t,n,r,i,a,o,s,c){const d=arguments,h=this._context;d.length===3?h.drawImage(e,t,n):d.length===5?h.drawImage(e,t,n,r,i):d.length===9&&h.drawImage(e,t,n,r,i,a,o,s,c)}ellipse(e,t,n,r,i,a,o,s){this._context.ellipse(e,t,n,r,i,a,o,s)}isPointInPath(e,t,n,r){return n?this._context.isPointInPath(n,e,t,r):this._context.isPointInPath(e,t,r)}fill(...e){this._context.fill.apply(this._context,e)}fillRect(e,t,n,r){this._context.fillRect(e,t,n,r)}strokeRect(e,t,n,r){this._context.strokeRect(e,t,n,r)}fillText(e,t,n,r){r?this._context.fillText(e,t,n,r):this._context.fillText(e,t,n)}measureText(e){return this._context.measureText(e)}getImageData(e,t,n,r){return this._context.getImageData(e,t,n,r)}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}rect(e,t,n,r){this._context.rect(e,t,n,r)}roundRect(e,t,n,r,i){this._context.roundRect(e,t,n,r,i)}putImageData(e,t,n){this._context.putImageData(e,t,n)}quadraticCurveTo(e,t,n,r){this._context.quadraticCurveTo(e,t,n,r)}restore(){this._context.restore()}rotate(e){this._context.rotate(e)}save(){this._context.save()}scale(e,t){this._context.scale(e,t)}setLineDash(e){this._context.setLineDash?this._context.setLineDash(e):"mozDash"in this._context?this._context.mozDash=e:"webkitLineDash"in this._context&&(this._context.webkitLineDash=e)}getLineDash(){return this._context.getLineDash()}setTransform(e,t,n,r,i,a){this._context.setTransform(e,t,n,r,i,a)}stroke(e){e?this._context.stroke(e):this._context.stroke()}strokeText(e,t,n,r){this._context.strokeText(e,t,n,r)}transform(e,t,n,r,i,a){this._context.transform(e,t,n,r,i,a)}translate(e,t){this._context.translate(e,t)}_enableTrace(){let e=this,t=Xw.length,n=this.setAttr,r,i;const a=function(o){let s=e[o],c;e[o]=function(){return i=sR(Array.prototype.slice.call(arguments,0)),c=s.apply(e,arguments),e._trace({method:o,args:i}),c}};for(r=0;r{i.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){let r;return e.DD._dragElements.forEach(i=>{r=i.node}),r},_dragElements:new Map,_drag(r){const i=[];e.DD._dragElements.forEach((a,o)=>{const{node:s}=a,c=s.getStage();c.setPointersPositions(r),a.pointerId===void 0&&(a.pointerId=n.Util._getFirstPointerId(r));const d=c._changedPointerPositions.find(h=>h.id===a.pointerId);if(d){if(a.dragStatus!=="dragging"){const h=s.dragDistance();if(Math.max(Math.abs(d.x-a.startPointerPos.x),Math.abs(d.y-a.startPointerPos.y)){a.fire("dragmove",{type:"dragmove",target:a,evt:r},!0)})},_endDragBefore(r){const i=[];e.DD._dragElements.forEach(a=>{const{node:o}=a,s=o.getStage();if(r&&s.setPointersPositions(r),!s._changedPointerPositions.find(d=>d.id===a.pointerId))return;(a.dragStatus==="dragging"||a.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,a.dragStatus="stopped");const c=a.node.getLayer()||a.node instanceof t.Konva.Stage&&a.node;c&&i.indexOf(c)===-1&&i.push(c)}),i.forEach(a=>{a.draw()})},_endDragAfter(r){e.DD._dragElements.forEach((i,a)=>{i.dragStatus==="stopped"&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:r},!0),i.dragStatus!=="dragging"&&e.DD._dragElements.delete(a)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("touchcancel",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1),window.addEventListener("touchcancel",e.DD._endDragAfter,!1))})(mm),Object.defineProperty(dn,"__esModule",{value:!0}),dn.Node=void 0;const wt=Cn,Eh=pt,Qd=da,es=ct,Ni=mm,Ln=qe,Dp="absoluteOpacity",Q1="allEventListeners",po="absoluteTransform",Yw="absoluteScale",gl="canvas",CR="Change",SR="children",ER="konva",my="listening",Kw="mouseenter",Zw="mouseleave",qw="set",$w="Shape",Rp=" ",Qw="stage",vs="transform",_R="Stage",vy="visible",kR=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(Rp);let OR=1,rt=class yy{constructor(t){this._id=OR++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===vs||t===po)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,n){let r=this._cache.get(t);return(r===void 0||(t===vs||t===po)&&r.dirty===!0)&&(r=n.call(this),this._cache.set(t,r)),r}_calculate(t,n,r){if(!this._attachedDepsListeners.get(t)){const i=n.map(a=>a+"Change.konva").join(Rp);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(gl)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===po&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(gl)){const{scene:t,filter:n,hit:r}=this._cache.get(gl);wt.Util.releaseCanvas(t,n,r),this._cache.delete(gl)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){const n=t||{};let r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));let i=Math.ceil(n.width||r.width),a=Math.ceil(n.height||r.height),o=n.pixelRatio,s=n.x===void 0?Math.floor(r.x):n.x,c=n.y===void 0?Math.floor(r.y):n.y,d=n.offset||0,h=n.drawBorder||!1,b=n.hitCanvasPixelRatio||1;if(!i||!a){wt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const m=Math.abs(Math.round(r.x)-s)>.5?1:0,g=Math.abs(Math.round(r.y)-c)>.5?1:0;i+=d*2+m,a+=d*2+g,s-=d,c-=d;const v=new Qd.SceneCanvas({pixelRatio:o,width:i,height:a}),w=new Qd.SceneCanvas({pixelRatio:o,width:0,height:0,willReadFrequently:!0}),k=new Qd.HitCanvas({pixelRatio:b,width:i,height:a}),C=v.getContext(),_=k.getContext();return k.isCache=!0,v.isCache=!0,this._cache.delete(gl),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(v.getContext()._context.imageSmoothingEnabled=!1,w.getContext()._context.imageSmoothingEnabled=!1),C.save(),_.save(),C.translate(-s,-c),_.translate(-s,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Dp),this._clearSelfAndDescendantCache(Yw),this.drawScene(v,this),this.drawHit(k,this),this._isUnderCache=!1,C.restore(),_.restore(),h&&(C.save(),C.beginPath(),C.rect(0,0,i,a),C.closePath(),C.setAttr("strokeStyle","red"),C.setAttr("lineWidth",5),C.stroke(),C.restore()),this._cache.set(gl,{scene:v,filter:w,hit:k,x:s,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(gl)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,n){const r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}];let i=1/0,a=1/0,o=-1/0,s=-1/0;const c=this.getAbsoluteTransform(n);return r.forEach(function(d){const h=c.point(d);i===void 0&&(i=o=h.x,a=s=h.y),i=Math.min(i,h.x),a=Math.min(a,h.y),o=Math.max(o,h.x),s=Math.max(s,h.y)}),{x:i,y:a,width:o-i,height:s-a}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();t.translate(n.x,n.y);const r=this._getCachedSceneCanvas(),i=r.pixelRatio;t.drawImage(r._canvas,0,0,r.width/i,r.height/i),t.restore()}_drawCachedHitCanvas(t){const n=this._getCanvasCache(),r=n.hit;t.save(),t.translate(n.x,n.y),t.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),t.restore()}_getCachedSceneCanvas(){let t=this.filters(),n=this._getCanvasCache(),r=n.scene,i=n.filter,a=i.getContext(),o,s,c,d;if(t){if(!this._filterUpToDate){const h=r.pixelRatio;i.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(o=t.length,a.clear(),a.drawImage(r._canvas,0,0,r.getWidth()/h,r.getHeight()/h),s=a.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c{let n,r;if(!t)return this;for(n in t)n!==SR&&(r=qw+wt.Util._capitalize(n),wt.Util._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]))}),this}isListening(){return this._getCache(my,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(vy,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,n=!1){if(t)return this._isVisible(t)&&this._isListening(t);const r=this.getLayer();let i=!1;Ni.DD._dragElements.forEach(o=>{o.dragStatus==="dragging"&&(o.node.nodeType==="Stage"||o.node.getLayer()===r)&&(i=!0)});const a=!n&&!es.Konva.hitOnDragEnabled&&(i||es.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!a}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){let t=this.getDepth(),n=this,r=0,i,a,o,s;function c(h){for(i=[],a=h.length,o=0;o0&&i[0].getDepth()<=t&&c(i)}const d=this.getStage();return n.nodeType!==_R&&d&&c(d.getChildren()),r}getDepth(){let t=0,n=this.parent;for(;n;)t++,n=n.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(vs),this._clearSelfAndDescendantCache(po)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;const n=t.getPointerPosition();if(!n)return null;const r=this.getAbsoluteTransform().copy();return r.invert(),r.point(n)}getAbsolutePosition(t){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!t&&(t=!0);const i=this.getAbsoluteTransform(t).getMatrix(),a=new wt.Transform,o=this.offset();return a.m=i.slice(),a.translate(o.x,o.y),a.getTranslation()}setAbsolutePosition(t){const{x:n,y:r,...i}=this._clearTransform();this.attrs.x=n,this.attrs.y=r,this._clearCache(vs);const a=this._getAbsoluteTransform().copy();return a.invert(),a.translate(t.x,t.y),t={x:this.attrs.x+a.getTranslation().x,y:this.attrs.y+a.getTranslation().y},this._setTransform(i),this.setPosition({x:t.x,y:t.y}),this._clearCache(vs),this._clearSelfAndDescendantCache(po),this}_setTransform(t){let n;for(n in t)this.attrs[n]=t[n]}_clearTransform(){const t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){let n=t.x,r=t.y,i=this.x(),a=this.y();return n!==void 0&&(i+=n),r!==void 0&&(a+=r),this.setPosition({x:i,y:a}),this}_eachAncestorReverse(t,n){let r=[],i=this.getParent(),a,o;if(!(n&&n._id===this._id)){for(r.unshift(this);i&&(!n||i._id!==n._id);)r.unshift(i),i=i.parent;for(a=r.length,o=0;o0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return wt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;const t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return wt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&wt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");const n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Dp,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){let t=this.opacity();const n=this.getParent();return n&&!n._isUnderCache&&(t*=n.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){let t=this.getAttrs(),n,r,i,a,o;const s={attrs:{},className:this.getClassName()};for(n in t)r=t[n],o=wt.Util.isObject(r)&&!wt.Util._isPlainObject(r)&&!wt.Util._isArray(r),!o&&(i=typeof this[n]=="function"&&this[n],delete t[n],a=i?i.call(this):null,t[n]=r,a!==r&&(s.attrs[n]=r));return wt.Util._prepareToStringify(s)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,n,r){const i=[];n&&this._isMatch(t)&&i.push(this);let a=this.parent;for(;a;){if(a===r)return i;a._isMatch(t)&&i.push(a),a=a.parent}return i}isAncestorOf(t){return!1}findAncestor(t,n,r){return this.findAncestors(t,n,r)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);let n=t.replace(/ /g,"").split(","),r=n.length,i,a;for(i=0;i{try{const i=t?.callback;i&&delete t.callback,wt.Util._urlToImage(this.toDataURL(t),function(a){n(a),i?.(a)})}catch(i){r(i)}})}toBlob(t){return new Promise((n,r)=>{try{const i=t?.callback;i&&delete t.callback,this.toCanvas(t).toBlob(a=>{n(a),i?.(a)},t?.mimeType,t?.quality)}catch(i){r(i)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():es.Konva.dragDistance}_off(t,n,r){let i=this.eventListeners[t],a,o,s;for(a=0;a=0)||this.isDragging())return;let n=!1;Ni.DD._dragElements.forEach(r=>{this.isAncestorOf(r.node)&&(n=!0)}),n||this._createDragElement(t)})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{if(this._dragCleanup(),!this.getStage())return;const t=Ni.DD._dragElements.get(this._id),n=t&&t.dragStatus==="dragging",r=t&&t.dragStatus==="ready";n?this.stopDrag():r&&Ni.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-t.x,y:-t.y,width:n.width()+2*t.x,height:n.height()+2*t.y};return wt.Util.haveIntersection(r,this.getClientRect())}static create(t,n){return wt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)}static _createNode(t,n){let r=yy.prototype.getClassName.call(t),i=t.children,a,o,s;n&&(t.attrs.container=n),es.Konva[r]||(wt.Util.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const c=es.Konva[r];if(a=new c(t.attrs),i)for(o=i.length,s=0;s0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(let n=0;n0?t[0]:void 0}_generalFind(e,t){const n=[];return this._descendants(r=>{const i=r._isMatch(e);return i&&n.push(r),!!(i&&t)}),n}_descendants(e){let t=!1;const n=this.getChildren();for(const r of n)if(t=e(r),t||r.hasChildren()&&(t=r._descendants(e),t))return!0;return!1}toObject(){const e=F5.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(t=>{e.children.push(t.toObject())}),e}isAncestorOf(e){let t=e.getParent();for(;t;){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){const t=F5.Node.prototype.clone.call(this,e);return this.getChildren().forEach(function(n){t.add(n.clone())}),t}getAllIntersections(e){const t=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(e)&&t.push(n)}),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),!this.isCached()&&((t=this.children)===null||t===void 0||t.forEach(function(n){n._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(t,n){t.index=n}),this._requestDraw()}drawScene(e,t,n){const r=this.getLayer(),i=e||r&&r.getCanvas(),a=i&&i.getContext(),o=this._getCanvasCache(),s=o&&o.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(s){a.save();const d=this.getAbsoluteTransform(t).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,t,n);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;const n=this.getLayer(),r=e||n&&n.hitCanvas,i=r&&r.getContext(),a=this._getCanvasCache();if(a&&a.hit){i.save();const o=this.getAbsoluteTransform(t).getMatrix();i.transform(o[0],o[1],o[2],o[3],o[4],o[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",r,t);return this}_drawChildren(e,t,n,r){var i;const a=t&&t.getContext(),o=this.clipWidth(),s=this.clipHeight(),c=this.clipFunc(),d=typeof o=="number"&&typeof s=="number"||c,h=n===this;if(d){a.save();const m=this.getAbsoluteTransform(n);let g=m.getMatrix();a.transform(g[0],g[1],g[2],g[3],g[4],g[5]),a.beginPath();let v;if(c)v=c.call(this,a,this);else{const w=this.clipX(),k=this.clipY();a.rect(w||0,k||0,o,s)}a.clip.apply(a,v),g=m.copy().invert().getMatrix(),a.transform(g[0],g[1],g[2],g[3],g[4],g[5])}const b=!h&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";b&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(m){m[e](t,n,r)}),b&&a.restore(),d&&a.restore()}getClientRect(e={}){var t;const n=e.skipTransform,r=e.relativeTo;let i,a,o,s,c={x:1/0,y:1/0,width:0,height:0};const d=this;(t=this.children)===null||t===void 0||t.forEach(function(m){if(!m.visible())return;const g=m.getClientRect({relativeTo:d,skipShadow:e.skipShadow,skipStroke:e.skipStroke});g.width===0&&g.height===0||(i===void 0?(i=g.x,a=g.y,o=g.x+g.width,s=g.y+g.height):(i=Math.min(i,g.x),a=Math.min(a,g.y),o=Math.max(o,g.x+g.width),s=Math.max(s,g.y+g.height)))});const h=this.find("Shape");let b=!1;for(let m=0;mW.indexOf("pointer")>=0?"pointer":W.indexOf("touch")>=0?"touch":"mouse",Q=W=>{const D=oe(W);if(D==="pointer")return i.Konva.pointerEventsEnabled&&ne.pointer;if(D==="touch")return ne.touch;if(D==="mouse")return ne.mouse};function $(W={}){return(W.clipFunc||W.clipWidth||W.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),W}const re="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class we extends r.Container{constructor(D){super($(D)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{$(this.attrs)}),this._checkVisibility()}_validateAdd(D){const B=D.getType()==="Layer",ee=D.getType()==="FastLayer";B||ee||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const D=this.visible()?"":"none";this.content.style.display=D}setContainer(D){if(typeof D===h){if(D.charAt(0)==="."){const ee=D.slice(1);D=document.getElementsByClassName(ee)[0]}else{var B;D.charAt(0)!=="#"?B=D:B=D.slice(1),D=document.getElementById(B)}if(!D)throw"Can not find container in document with id "+B}return this._setAttr("container",D),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),D.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){const D=this.children,B=D.length;for(let ee=0;ee-1&&e.stages.splice(B,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const D=this._pointerPositions[0]||this._changedPointerPositions[0];return D?{x:D.x,y:D.y}:(t.Util.warn(re),null)}_getPointerById(D){return this._pointerPositions.find(B=>B.id===D)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(D){D=D||{},D.x=D.x||0,D.y=D.y||0,D.width=D.width||this.width(),D.height=D.height||this.height();const B=new a.SceneCanvas({width:D.width,height:D.height,pixelRatio:D.pixelRatio||1}),ee=B.getContext()._context,ue=this.children;return(D.x||D.y)&&ee.translate(-1*D.x,-1*D.y),ue.forEach(function(ve){if(!ve.isVisible())return;const se=ve._toKonvaCanvas(D);ee.drawImage(se._canvas,D.x,D.y,se.getWidth()/se.getPixelRatio(),se.getHeight()/se.getPixelRatio())}),B}getIntersection(D){if(!D)return null;const B=this.children,ee=B.length,ue=ee-1;for(let ve=ue;ve>=0;ve--){const se=B[ve].getIntersection(D);if(se)return se}return null}_resizeDOM(){const D=this.width(),B=this.height();this.content&&(this.content.style.width=D+b,this.content.style.height=B+b),this.bufferCanvas.setSize(D,B),this.bufferHitCanvas.setSize(D,B),this.children.forEach(ee=>{ee.setSize({width:D,height:B}),ee.draw()})}add(D,...B){if(arguments.length>1){for(let ue=0;ueK&&t.Util.warn("The stage has "+ee+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),D.setSize({width:this.width(),height:this.height()}),D.draw(),i.Konva.isBrowser&&this.content.appendChild(D.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(D){return c.hasPointerCapture(D,this)}setPointerCapture(D){c.setPointerCapture(D,this)}releaseCapture(D){c.releaseCapture(D,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&ce.forEach(([D,B])=>{this.content.addEventListener(D,ee=>{this[B](ee)},{passive:!1})})}_pointerenter(D){this.setPointersPositions(D);const B=Q(D.type);B&&this._fire(B.pointerenter,{evt:D,target:this,currentTarget:this})}_pointerover(D){this.setPointersPositions(D);const B=Q(D.type);B&&this._fire(B.pointerover,{evt:D,target:this,currentTarget:this})}_getTargetShape(D){let B=this[D+"targetShape"];return B&&!B.getStage()&&(B=null),B}_pointerleave(D){const B=Q(D.type),ee=oe(D.type);if(!B)return;this.setPointersPositions(D);const ue=this._getTargetShape(ee),ve=!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled;ue&&ve?(ue._fireAndBubble(B.pointerout,{evt:D}),ue._fireAndBubble(B.pointerleave,{evt:D}),this._fire(B.pointerleave,{evt:D,target:this,currentTarget:this}),this[ee+"targetShape"]=null):ve&&(this._fire(B.pointerleave,{evt:D,target:this,currentTarget:this}),this._fire(B.pointerout,{evt:D,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}_pointerdown(D){const B=Q(D.type),ee=oe(D.type);if(!B)return;this.setPointersPositions(D);let ue=!1;this._changedPointerPositions.forEach(ve=>{const se=this.getIntersection(ve);if(o.DD.justDragged=!1,i.Konva["_"+ee+"ListenClick"]=!0,!se||!se.isListening()){this[ee+"ClickStartShape"]=void 0;return}i.Konva.capturePointerEventsEnabled&&se.setPointerCapture(ve.id),this[ee+"ClickStartShape"]=se,se._fireAndBubble(B.pointerdown,{evt:D,pointerId:ve.id}),ue=!0;const Ie=D.type.indexOf("touch")>=0;se.preventDefault()&&D.cancelable&&Ie&&D.preventDefault()}),ue||this._fire(B.pointerdown,{evt:D,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}_pointermove(D){const B=Q(D.type),ee=oe(D.type);if(!B||(i.Konva.isDragging()&&o.DD.node.preventDefault()&&D.cancelable&&D.preventDefault(),this.setPointersPositions(D),!(!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled)))return;const ue={};let ve=!1;const se=this._getTargetShape(ee);this._changedPointerPositions.forEach(Ie=>{const Ae=c.getCapturedShape(Ie.id)||this.getIntersection(Ie),Se=Ie.id,Ne={evt:D,pointerId:Se},Me=se!==Ae;if(Me&&se&&(se._fireAndBubble(B.pointerout,{...Ne},Ae),se._fireAndBubble(B.pointerleave,{...Ne},Ae)),Ae){if(ue[Ae._id])return;ue[Ae._id]=!0}Ae&&Ae.isListening()?(ve=!0,Me&&(Ae._fireAndBubble(B.pointerover,{...Ne},se),Ae._fireAndBubble(B.pointerenter,{...Ne},se),this[ee+"targetShape"]=Ae),Ae._fireAndBubble(B.pointermove,{...Ne})):se&&(this._fire(B.pointerover,{evt:D,target:this,currentTarget:this,pointerId:Se}),this[ee+"targetShape"]=null)}),ve||this._fire(B.pointermove,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(D){const B=Q(D.type),ee=oe(D.type);if(!B)return;this.setPointersPositions(D);const ue=this[ee+"ClickStartShape"],ve=this[ee+"ClickEndShape"],se={};let Ie=!1;this._changedPointerPositions.forEach(Ae=>{const Se=c.getCapturedShape(Ae.id)||this.getIntersection(Ae);if(Se){if(Se.releaseCapture(Ae.id),se[Se._id])return;se[Se._id]=!0}const Ne=Ae.id,Me={evt:D,pointerId:Ne};let Ye=!1;i.Konva["_"+ee+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ee+"DblTimeout"])):o.DD.justDragged||(i.Konva["_"+ee+"InDblClickWindow"]=!0,clearTimeout(this[ee+"DblTimeout"])),this[ee+"DblTimeout"]=setTimeout(function(){i.Konva["_"+ee+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),Se&&Se.isListening()?(Ie=!0,this[ee+"ClickEndShape"]=Se,Se._fireAndBubble(B.pointerup,{...Me}),i.Konva["_"+ee+"ListenClick"]&&ue&&ue===Se&&(Se._fireAndBubble(B.pointerclick,{...Me}),Ye&&ve&&ve===Se&&Se._fireAndBubble(B.pointerdblclick,{...Me}))):(this[ee+"ClickEndShape"]=null,i.Konva["_"+ee+"ListenClick"]&&this._fire(B.pointerclick,{evt:D,target:this,currentTarget:this,pointerId:Ne}),Ye&&this._fire(B.pointerdblclick,{evt:D,target:this,currentTarget:this,pointerId:Ne}))}),Ie||this._fire(B.pointerup,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+ee+"ListenClick"]=!1,D.cancelable&&ee!=="touch"&&ee!=="pointer"&&D.preventDefault()}_contextmenu(D){this.setPointersPositions(D);const B=this.getIntersection(this.getPointerPosition());B&&B.isListening()?B._fireAndBubble(z,{evt:D}):this._fire(z,{evt:D,target:this,currentTarget:this})}_wheel(D){this.setPointersPositions(D);const B=this.getIntersection(this.getPointerPosition());B&&B.isListening()?B._fireAndBubble(le,{evt:D}):this._fire(le,{evt:D,target:this,currentTarget:this})}_pointercancel(D){this.setPointersPositions(D);const B=c.getCapturedShape(D.pointerId)||this.getIntersection(this.getPointerPosition());B&&B._fireAndBubble(E,c.createEvent(D)),c.releaseCapture(D.pointerId)}_lostpointercapture(D){c.releaseCapture(D.pointerId)}setPointersPositions(D){const B=this._getContentPosition();let ee=null,ue=null;D=D||window.event,D.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(D.touches,ve=>{this._pointerPositions.push({id:ve.identifier,x:(ve.clientX-B.left)/B.scaleX,y:(ve.clientY-B.top)/B.scaleY})}),Array.prototype.forEach.call(D.changedTouches||D.touches,ve=>{this._changedPointerPositions.push({id:ve.identifier,x:(ve.clientX-B.left)/B.scaleX,y:(ve.clientY-B.top)/B.scaleY})})):(ee=(D.clientX-B.left)/B.scaleX,ue=(D.clientY-B.top)/B.scaleY,this.pointerPos={x:ee,y:ue},this._pointerPositions=[{x:ee,y:ue,id:t.Util._getFirstPointerId(D)}],this._changedPointerPositions=[{x:ee,y:ue,id:t.Util._getFirstPointerId(D)}])}_setPointerPosition(D){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(D)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};const D=this.content.getBoundingClientRect();return{top:D.top,left:D.left,scaleX:D.width/this.content.clientWidth||1,scaleY:D.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new a.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new a.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!i.Konva.isBrowser)return;const D=this.container();if(!D)throw"Stage has no container. A container is required.";D.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),D.appendChild(this.content),this._resizeDOM()}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(D){D.batchDraw()}),this}}e.Stage=we,we.prototype.nodeType=d,(0,s._registerNode)(we),n.Factory.addGetterSetter(we,"container"),i.Konva.isBrowser&&document.addEventListener("visibilitychange",()=>{e.stages.forEach(W=>{W.batchDraw()})})})(eT);var d0={},Jn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=ct,n=Cn,r=pt,i=dn,a=qe,o=ct,s=Cs,c="hasShadow",d="shadowRGBA",h="patternImage",b="linearGradient",m="radialGradient";let g;function v(){return g||(g=n.Util.createCanvasElement().getContext("2d"),g)}e.shapes={};function w(N){const T=this.attrs.fillRule;T?N.fill(T):N.fill()}function k(N){N.stroke()}function C(N){const T=this.attrs.fillRule;T?N.fill(T):N.fill()}function _(N){N.stroke()}function f(){this._clearCache(c)}function x(){this._clearCache(d)}function E(){this._clearCache(h)}function M(){this._clearCache(b)}function j(){this._clearCache(m)}class P extends i.Node{constructor(T){super(T);let R;for(;R=n.Util.getRandomColor(),!(R&&!(R in e.shapes)););this.colorKey=R,e.shapes[R]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(h,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){const T=v().createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(T&&T.setTransform){const R=new n.Transform;R.translate(this.fillPatternX(),this.fillPatternY()),R.rotate(t.Konva.getAngle(this.fillPatternRotation())),R.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),R.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const z=R.getMatrix(),H=typeof DOMMatrix>"u"?{a:z[0],b:z[1],c:z[2],d:z[3],e:z[4],f:z[5]}:new DOMMatrix(z);T.setTransform(H)}return T}}_getLinearGradient(){return this._getCache(b,this.__getLinearGradient)}__getLinearGradient(){const T=this.fillLinearGradientColorStops();if(T){const R=v(),z=this.fillLinearGradientStartPoint(),H=this.fillLinearGradientEndPoint(),J=R.createLinearGradient(z.x,z.y,H.x,H.y);for(let q=0;qthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const T=this.hitStrokeWidth();return T==="auto"?this.hasStroke():this.strokeEnabled()&&!!T}intersects(T){const R=this.getStage();if(!R)return!1;const z=R.bufferHitCanvas;return z.getContext().clear(),this.drawHit(z,void 0,!0),z.context.getImageData(Math.round(T.x),Math.round(T.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(T){var R;if(!(!((R=this.attrs.perfectDrawEnabled)!==null&&R!==void 0)||R))return!1;const z=T||this.hasFill(),H=this.hasStroke(),J=this.getAbsoluteOpacity()!==1;if(z&&H&&J)return!0;const q=this.hasShadow(),Y=this.shadowForStrokeEnabled();return!!(z&&H&&q&&Y)}setStrokeHitEnabled(T){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),T?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){const T=this.size();return{x:this._centroid?-T.width/2:0,y:this._centroid?-T.height/2:0,width:T.width,height:T.height}}getClientRect(T={}){let R=!1,z=this.getParent();for(;z;){if(z.isCached()){R=!0;break}z=z.getParent()}const H=T.skipTransform,J=T.relativeTo||R&&this.getStage()||void 0,q=this.getSelfRect(),Y=!T.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,le=q.width+Y,K=q.height+Y,ce=!T.skipShadow&&this.hasShadow(),ne=ce?this.shadowOffsetX():0,oe=ce?this.shadowOffsetY():0,Q=le+Math.abs(ne),$=K+Math.abs(oe),re=ce&&this.shadowBlur()||0,we=Q+re*2,W=$+re*2,D={width:we,height:W,x:-(Y/2+re)+Math.min(ne,0)+q.x,y:-(Y/2+re)+Math.min(oe,0)+q.y};return H?D:this._transformedRect(D,J)}drawScene(T,R,z){const H=this.getLayer();let J=T||H.getCanvas(),q=J.getContext(),Y=this._getCanvasCache(),le=this.getSceneFunc(),K=this.hasShadow(),ce,ne;const oe=J.isCache,Q=R===this;if(!this.isVisible()&&!Q)return this;if(Y){q.save();const re=this.getAbsoluteTransform(R).getMatrix();return q.transform(re[0],re[1],re[2],re[3],re[4],re[5]),this._drawCachedSceneCanvas(q),q.restore(),this}if(!le)return this;if(q.save(),this._useBufferCanvas()&&!oe){ce=this.getStage();const re=z||ce.bufferCanvas;ne=re.getContext(),ne.clear(),ne.save(),ne._applyLineJoin(this);var $=this.getAbsoluteTransform(R).getMatrix();ne.transform($[0],$[1],$[2],$[3],$[4],$[5]),le.call(this,ne,this),ne.restore();const we=re.pixelRatio;K&&q._applyShadow(this),q._applyOpacity(this),q._applyGlobalCompositeOperation(this),q.drawImage(re._canvas,0,0,re.width/we,re.height/we)}else{if(q._applyLineJoin(this),!Q){var $=this.getAbsoluteTransform(R).getMatrix();q.transform($[0],$[1],$[2],$[3],$[4],$[5]),q._applyOpacity(this),q._applyGlobalCompositeOperation(this)}K&&q._applyShadow(this),le.call(this,q,this)}return q.restore(),this}drawHit(T,R,z=!1){if(!this.shouldDrawHit(R,z))return this;const H=this.getLayer(),J=T||H.hitCanvas,q=J&&J.getContext(),Y=this.hitFunc()||this.sceneFunc(),le=this._getCanvasCache(),K=le&&le.hit;if(this.colorKey||n.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),K){q.save();const ce=this.getAbsoluteTransform(R).getMatrix();return q.transform(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5]),this._drawCachedHitCanvas(q),q.restore(),this}if(!Y)return this;if(q.save(),q._applyLineJoin(this),this!==R){const ce=this.getAbsoluteTransform(R).getMatrix();q.transform(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5])}return Y.call(this,q,this),q.restore(),this}drawHitFromCache(T=0){const R=this._getCanvasCache(),z=this._getCachedSceneCanvas(),H=R.hit,J=H.getContext(),q=H.getWidth(),Y=H.getHeight();J.clear(),J.drawImage(z._canvas,0,0,q,Y);try{const le=J.getImageData(0,0,q,Y),K=le.data,ce=K.length,ne=n.Util._hexToRgb(this.colorKey);for(let oe=0;oeT?(K[oe]=ne.r,K[oe+1]=ne.g,K[oe+2]=ne.b,K[oe+3]=255):K[oe+3]=0;J.putImageData(le,0,0)}catch(le){n.Util.error("Unable to draw hit graph from cached scene canvas. "+le.message)}return this}hasPointerCapture(T){return s.hasPointerCapture(T,this)}setPointerCapture(T){s.setPointerCapture(T,this)}releaseCapture(T){s.releaseCapture(T,this)}}e.Shape=P,P.prototype._fillFunc=w,P.prototype._strokeFunc=k,P.prototype._fillFuncHit=C,P.prototype._strokeFuncHit=_,P.prototype._centroid=!1,P.prototype.nodeType="Shape",(0,o._registerNode)(P),P.prototype.eventListeners={},P.prototype.on.call(P.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",f),P.prototype.on.call(P.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",x),P.prototype.on.call(P.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",E),P.prototype.on.call(P.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",M),P.prototype.on.call(P.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",j),r.Factory.addGetterSetter(P,"stroke",void 0,(0,a.getStringOrGradientValidator)()),r.Factory.addGetterSetter(P,"strokeWidth",2,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(P,"hitStrokeWidth","auto",(0,a.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(P,"strokeHitEnabled",!0,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter(P,"perfectDrawEnabled",!0,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter(P,"shadowForStrokeEnabled",!0,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter(P,"lineJoin"),r.Factory.addGetterSetter(P,"lineCap"),r.Factory.addGetterSetter(P,"sceneFunc"),r.Factory.addGetterSetter(P,"hitFunc"),r.Factory.addGetterSetter(P,"dash"),r.Factory.addGetterSetter(P,"dashOffset",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"shadowColor",void 0,(0,a.getStringValidator)()),r.Factory.addGetterSetter(P,"shadowBlur",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"shadowOpacity",1,(0,a.getNumberValidator)()),r.Factory.addComponentsGetterSetter(P,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(P,"shadowOffsetX",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"shadowOffsetY",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternImage"),r.Factory.addGetterSetter(P,"fill",void 0,(0,a.getStringOrGradientValidator)()),r.Factory.addGetterSetter(P,"fillPatternX",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternY",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(P,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(P,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(P,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(P,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(P,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(P,"fillEnabled",!0),r.Factory.addGetterSetter(P,"strokeEnabled",!0),r.Factory.addGetterSetter(P,"shadowEnabled",!0),r.Factory.addGetterSetter(P,"dashEnabled",!0),r.Factory.addGetterSetter(P,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(P,"fillPriority","color"),r.Factory.addComponentsGetterSetter(P,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(P,"fillPatternOffsetX",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternOffsetY",0,(0,a.getNumberValidator)()),r.Factory.addComponentsGetterSetter(P,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(P,"fillPatternScaleX",1,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternScaleY",1,(0,a.getNumberValidator)()),r.Factory.addComponentsGetterSetter(P,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(P,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(P,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(P,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(P,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(P,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(P,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(P,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(P,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(P,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(P,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(P,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(P,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(P,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(P,"fillPatternRotation",0),r.Factory.addGetterSetter(P,"fillRule",void 0,(0,a.getStringValidator)()),r.Factory.backCompat(P,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(Jn),Object.defineProperty(d0,"__esModule",{value:!0}),d0.Layer=void 0;const ro=Cn,z5=oc,zc=dn,B5=pt,Jw=da,AR=qe,LR=Jn,jR=ct,NR="#",DR="beforeDraw",RR="draw",rT=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],FR=rT.length;let Bc=class extends z5.Container{constructor(e){super(e),this.canvas=new Jw.SceneCanvas,this.hitCanvas=new Jw.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(e){return this.getContext().clear(e),this.getHitCanvas().getContext().clear(e),this}setZIndex(e){super.setZIndex(e);const t=this.getStage();return t&&t.content&&(t.content.removeChild(this.getNativeCanvasElement()),e{this.draw(),this._waitingForDraw=!1})),this}getIntersection(e){if(!this.isListening()||!this.isVisible())return null;let t=1,n=!1;for(;;){for(let r=0;r0)return{antialiased:!0};return{}}drawScene(e,t){const n=this.getLayer(),r=e||n&&n.getCanvas();return this._fire(DR,{node:this}),this.clearBeforeDraw()&&r.getContext().clear(),z5.Container.prototype.drawScene.call(this,r,t),this._fire(RR,{node:this}),this}drawHit(e,t){const n=this.getLayer(),r=e||n&&n.hitCanvas;return n&&n.clearBeforeDraw()&&n.getHitCanvas().getContext().clear(),z5.Container.prototype.drawHit.call(this,r,t),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(e){ro.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(e)}getHitGraphEnabled(e){return ro.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!this.parent||!this.parent.content)return;const e=this.parent;this.hitCanvas._canvas.parentNode?e.content.removeChild(this.hitCanvas._canvas):e.content.appendChild(this.hitCanvas._canvas)}destroy(){return ro.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}};d0.Layer=Bc,Bc.prototype.nodeType="Layer",(0,jR._registerNode)(Bc),B5.Factory.addGetterSetter(Bc,"imageSmoothingEnabled",!0),B5.Factory.addGetterSetter(Bc,"clearBeforeDraw",!0),B5.Factory.addGetterSetter(Bc,"hitGraphEnabled",!0,(0,AR.getBooleanValidator)());var P2={};Object.defineProperty(P2,"__esModule",{value:!0}),P2.FastLayer=void 0;const zR=Cn,BR=d0,HR=ct;let H5=class extends BR.Layer{constructor(e){super(e),this.listening(!1),zR.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}};P2.FastLayer=H5,H5.prototype.nodeType="FastLayer",(0,HR._registerNode)(H5);var Qu={};Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.Group=void 0;const GR=Cn,VR=oc,UR=ct;let G5=class extends VR.Container{_validateAdd(e){const t=e.getType();t!=="Group"&&t!=="Shape"&&GR.Util.throw("You may only add groups and shapes to groups.")}};Qu.Group=G5,G5.prototype.nodeType="Group",(0,UR._registerNode)(G5);var Ju={};Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.Animation=void 0;const V5=ct,ex=Cn,U5=function(){return V5.glob.performance&&V5.glob.performance.now?function(){return V5.glob.performance.now()}:function(){return new Date().getTime()}}();let ef=class du{constructor(t,n){this.id=du.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:U5(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(t){let n=[];return t&&(n=Array.isArray(t)?t:[t]),this.layers=n,this}getLayers(){return this.layers}addLayer(t){const n=this.layers,r=n.length;for(let i=0;ithis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():v<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=v,this.update())}getTime(){return this._time}setPosition(v){this.prevPos=this._pos,this.propFunc(v),this._pos=v}getPosition(v){return v===void 0&&(v=this._time),this.func(v,this.begin,this._change,this.duration)}play(){this.state=s,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(v){this.pause(),this._time=v,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){const v=this.getTimer()-this._startTime;this.state===s?this.setTime(v):this.state===c&&this.setTime(this.duration-v)}pause(){this.state=o,this.fire("onPause")}getTimer(){return new Date().getTime()}}class m{constructor(v){const w=this,k=v.node,C=k._id,_=v.easing||e.Easings.Linear,f=!!v.yoyo;let x,E;typeof v.duration>"u"?x=.3:v.duration===0?x=.001:x=v.duration,this.node=k,this._id=h++;const M=k.getLayer()||(k instanceof i.Konva.Stage?k.getLayers():null);M||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){w.tween.onEnterFrame()},M),this.tween=new b(E,function(j){w._tweenFunc(j)},_,0,1,x*1e3,f),this._addListeners(),m.attrs[C]||(m.attrs[C]={}),m.attrs[C][this._id]||(m.attrs[C][this._id]={}),m.tweens[C]||(m.tweens[C]={});for(E in v)a[E]===void 0&&this._addAttr(E,v[E]);this.reset(),this.onFinish=v.onFinish,this.onReset=v.onReset,this.onUpdate=v.onUpdate}_addAttr(v,w){const k=this.node,C=k._id;let _,f,x,E,M;const j=m.tweens[C][v];j&&delete m.attrs[C][j][v];let P=k.getAttr(v);if(t.Util._isArray(w))if(_=[],f=Math.max(w.length,P.length),v==="points"&&w.length!==P.length&&(w.length>P.length?(E=P,P=t.Util._prepareArrayForTween(P,w,k.closed())):(x=w,w=t.Util._prepareArrayForTween(w,P,k.closed()))),v.indexOf("fill")===0)for(let N=0;N{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{const v=this.node,w=m.attrs[v._id][this._id];w.points&&w.points.trueEnd&&v.setAttr("points",w.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{const v=this.node,w=m.attrs[v._id][this._id];w.points&&w.points.trueStart&&v.points(w.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(v){return this.tween.seek(v*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){const v=this.node._id,w=this._id,k=m.tweens[v];this.pause();for(const C in k)delete m.tweens[v][C];delete m.attrs[v][w]}}e.Tween=m,m.attrs={},m.tweens={},r.Node.prototype.to=function(g){const v=g.onFinish;g.node=this,g.onFinish=function(){this.destroy(),v&&v()},new m(g).play()},e.Easings={BackEaseIn(g,v,w,k){return w*(g/=k)*g*((1.70158+1)*g-1.70158)+v},BackEaseOut(g,v,w,k){return w*((g=g/k-1)*g*((1.70158+1)*g+1.70158)+1)+v},BackEaseInOut(g,v,w,k){let C=1.70158;return(g/=k/2)<1?w/2*(g*g*(((C*=1.525)+1)*g-C))+v:w/2*((g-=2)*g*(((C*=1.525)+1)*g+C)+2)+v},ElasticEaseIn(g,v,w,k,C,_){let f=0;return g===0?v:(g/=k)===1?v+w:(_||(_=k*.3),!C||C0?e:t),d=a*t,h=o*(o>0?e:t),b=s*(s>0?t:e);return{x:c,y:n?-1*b:h,width:d-c,height:b-h}}};T2.Arc=io,io.prototype._centroid=!0,io.prototype.className="Arc",io.prototype._attrsAffectingSize=["innerRadius","outerRadius","angle","clockwise"],(0,XR._registerNode)(io),tf.Factory.addGetterSetter(io,"innerRadius",0,(0,nf.getNumberValidator)()),tf.Factory.addGetterSetter(io,"outerRadius",0,(0,nf.getNumberValidator)()),tf.Factory.addGetterSetter(io,"angle",0,(0,nf.getNumberValidator)()),tf.Factory.addGetterSetter(io,"clockwise",!1,(0,nf.getBooleanValidator)());var M2={},h0={};Object.defineProperty(h0,"__esModule",{value:!0}),h0.Line=void 0;const rf=pt,YR=ct,KR=Jn,rx=qe;function by(e,t,n,r,i,a,o){const s=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),c=Math.sqrt(Math.pow(i-n,2)+Math.pow(a-r,2)),d=o*s/(s+c),h=o*c/(s+c),b=n-d*(i-e),m=r-d*(a-t),g=n+h*(i-e),v=r+h*(a-t);return[b,m,g,v]}function ix(e,t){const n=e.length,r=[];for(let i=2;i4){for(o=this.getTensionPoints(),s=o.length,c=i?0:4,i||e.quadraticCurveTo(o[0],o[1],o[2],o[3]);c{let d,h;const b=c/2;d=0;for(let m=0;m<20;m++)h=b*e.tValues[20][m]+b,d+=e.cValues[20][m]*r(o,s,h);return b*d};e.getCubicArcLength=t;const n=(o,s,c)=>{c===void 0&&(c=1);const d=o[0]-2*o[1]+o[2],h=s[0]-2*s[1]+s[2],b=2*o[1]-2*o[0],m=2*s[1]-2*s[0],g=4*(d*d+h*h),v=4*(d*b+h*m),w=b*b+m*m;if(g===0)return c*Math.sqrt(Math.pow(o[2]-o[0],2)+Math.pow(s[2]-s[0],2));const k=v/(2*g),C=w/g,_=c+k,f=C-k*k,x=_*_+f>0?Math.sqrt(_*_+f):0,E=k*k+f>0?Math.sqrt(k*k+f):0,M=k+Math.sqrt(k*k+f)!==0?f*Math.log(Math.abs((_+x)/(k+E))):0;return Math.sqrt(g)/2*(_*x-k*E+M)};e.getQuadraticArcLength=n;function r(o,s,c){const d=i(1,c,o),h=i(1,c,s),b=d*d+h*h;return Math.sqrt(b)}const i=(o,s,c)=>{const d=c.length-1;let h,b;if(d===0)return 0;if(o===0){b=0;for(let m=0;m<=d;m++)b+=e.binomialCoefficients[d][m]*Math.pow(1-s,d-m)*Math.pow(s,m)*c[m];return b}else{h=new Array(d);for(let m=0;m{let d=1,h=o/s,b=(o-c(h))/s,m=0;for(;d>.001;){const g=c(h+b),v=Math.abs(o-g)/s;if(v500)break}return h};e.t2length=a})(iT),Object.defineProperty(ed,"__esModule",{value:!0}),ed.Path=void 0;const ZR=pt,qR=Jn,$R=ct,Hc=iT;let Jd=class Zr extends qR.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Zr.parsePathData(this.data()),this.pathLength=Zr.getPathLength(this.dataArray)}_sceneFunc(t){const n=this.dataArray;t.beginPath();let r=!1;for(let w=0;ws?o:s,g=o>s?1:o/s,v=o>s?s/o:1;t.translate(i,a),t.rotate(h),t.scale(g,v),t.arc(0,0,m,c,c+d,1-b),t.scale(1/g,1/v),t.rotate(-h),t.translate(-i,-a);break;case"z":r=!0,t.closePath();break}}!r&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){let t=[];this.dataArray.forEach(function(c){if(c.command==="A"){const d=c.points[4],h=c.points[5],b=c.points[4]+h;let m=Math.PI/180;if(Math.abs(d-b)b;g-=m){const v=Zr.getPointOnEllipticalArc(c.points[0],c.points[1],c.points[2],c.points[3],g,0);t.push(v.x,v.y)}else for(let g=d+m;gn[i].pathLength;)t-=n[i].pathLength,++i;if(i===a)return r=n[i-1].points.slice(-2),{x:r[0],y:r[1]};if(t<.01)return r=n[i].points.slice(0,2),{x:r[0],y:r[1]};const o=n[i],s=o.points;switch(o.command){case"L":return Zr.getPointOnLine(t,o.start.x,o.start.y,s[0],s[1]);case"C":return Zr.getPointOnCubicBezier((0,Hc.t2length)(t,Zr.getPathLength(n),w=>(0,Hc.getCubicArcLength)([o.start.x,s[0],s[2],s[4]],[o.start.y,s[1],s[3],s[5]],w)),o.start.x,o.start.y,s[0],s[1],s[2],s[3],s[4],s[5]);case"Q":return Zr.getPointOnQuadraticBezier((0,Hc.t2length)(t,Zr.getPathLength(n),w=>(0,Hc.getQuadraticArcLength)([o.start.x,s[0],s[2]],[o.start.y,s[1],s[3]],w)),o.start.x,o.start.y,s[0],s[1],s[2],s[3]);case"A":var c=s[0],d=s[1],h=s[2],b=s[3],m=s[4],g=s[5],v=s[6];return m+=g*t/o.pathLength,Zr.getPointOnEllipticalArc(c,d,h,b,m,v)}return null}static getPointOnLine(t,n,r,i,a,o,s){o=o??n,s=s??r;const c=this.getLineLength(n,r,i,a);if(c<1e-10)return{x:n,y:r};if(i===n)return{x:o,y:s+(a>r?t:-t)};const d=(a-r)/(i-n),h=Math.sqrt(t*t/(1+d*d))*(i0&&!isNaN(T[0]);){let R="",z=[];const H=c,J=d;var m,g,v,w,k,C,_,f,x,E;switch(N){case"l":c+=T.shift(),d+=T.shift(),R="L",z.push(c,d);break;case"L":c=T.shift(),d=T.shift(),z.push(c,d);break;case"m":var M=T.shift(),j=T.shift();if(c+=M,d+=j,R="M",o.length>2&&o[o.length-1].command==="z"){for(let q=o.length-2;q>=0;q--)if(o[q].command==="M"){c=o[q].points[0]+M,d=o[q].points[1]+j;break}}z.push(c,d),N="l";break;case"M":c=T.shift(),d=T.shift(),R="M",z.push(c,d),N="L";break;case"h":c+=T.shift(),R="L",z.push(c,d);break;case"H":c=T.shift(),R="L",z.push(c,d);break;case"v":d+=T.shift(),R="L",z.push(c,d);break;case"V":d=T.shift(),R="L",z.push(c,d);break;case"C":z.push(T.shift(),T.shift(),T.shift(),T.shift()),c=T.shift(),d=T.shift(),z.push(c,d);break;case"c":z.push(c+T.shift(),d+T.shift(),c+T.shift(),d+T.shift()),c+=T.shift(),d+=T.shift(),R="C",z.push(c,d);break;case"S":g=c,v=d,m=o[o.length-1],m.command==="C"&&(g=c+(c-m.points[2]),v=d+(d-m.points[3])),z.push(g,v,T.shift(),T.shift()),c=T.shift(),d=T.shift(),R="C",z.push(c,d);break;case"s":g=c,v=d,m=o[o.length-1],m.command==="C"&&(g=c+(c-m.points[2]),v=d+(d-m.points[3])),z.push(g,v,c+T.shift(),d+T.shift()),c+=T.shift(),d+=T.shift(),R="C",z.push(c,d);break;case"Q":z.push(T.shift(),T.shift()),c=T.shift(),d=T.shift(),z.push(c,d);break;case"q":z.push(c+T.shift(),d+T.shift()),c+=T.shift(),d+=T.shift(),R="Q",z.push(c,d);break;case"T":g=c,v=d,m=o[o.length-1],m.command==="Q"&&(g=c+(c-m.points[0]),v=d+(d-m.points[1])),c=T.shift(),d=T.shift(),R="Q",z.push(g,v,c,d);break;case"t":g=c,v=d,m=o[o.length-1],m.command==="Q"&&(g=c+(c-m.points[0]),v=d+(d-m.points[1])),c+=T.shift(),d+=T.shift(),R="Q",z.push(g,v,c,d);break;case"A":w=T.shift(),k=T.shift(),C=T.shift(),_=T.shift(),f=T.shift(),x=c,E=d,c=T.shift(),d=T.shift(),R="A",z=this.convertEndpointToCenterParameterization(x,E,c,d,_,f,w,k,C);break;case"a":w=T.shift(),k=T.shift(),C=T.shift(),_=T.shift(),f=T.shift(),x=c,E=d,c+=T.shift(),d+=T.shift(),R="A",z=this.convertEndpointToCenterParameterization(x,E,c,d,_,f,w,k,C);break}o.push({command:R||N,points:z,start:{x:H,y:J},pathLength:this.calcLength(H,J,R||N,z)})}(N==="z"||N==="Z")&&o.push({command:"z",points:[],start:void 0,pathLength:0})}return o}static calcLength(t,n,r,i){let a,o,s,c;const d=Zr;switch(r){case"L":return d.getLineLength(t,n,i[0],i[1]);case"C":return(0,Hc.getCubicArcLength)([t,i[0],i[2],i[4]],[n,i[1],i[3],i[5]],1);case"Q":return(0,Hc.getQuadraticArcLength)([t,i[0],i[2]],[n,i[1],i[3]],1);case"A":a=0;var h=i[4],b=i[5],m=i[4]+b,g=Math.PI/180;if(Math.abs(h-m)m;c-=g)s=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=d.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(c=h+g;c1&&(s*=Math.sqrt(g),c*=Math.sqrt(g));let v=Math.sqrt((s*s*(c*c)-s*s*(m*m)-c*c*(b*b))/(s*s*(m*m)+c*c*(b*b)));a===o&&(v*=-1),isNaN(v)&&(v=0);const w=v*s*m/c,k=v*-c*b/s,C=(t+r)/2+Math.cos(h)*w-Math.sin(h)*k,_=(n+i)/2+Math.sin(h)*w+Math.cos(h)*k,f=function(T){return Math.sqrt(T[0]*T[0]+T[1]*T[1])},x=function(T,R){return(T[0]*R[0]+T[1]*R[1])/(f(T)*f(R))},E=function(T,R){return(T[0]*R[1]=1&&(N=0),o===0&&N>0&&(N=N-2*Math.PI),o===1&&N<0&&(N=N+2*Math.PI),[C,_,s,c,M,N,h,o]}};ed.Path=Jd,Jd.prototype.className="Path",Jd.prototype._attrsAffectingSize=["data"],(0,$R._registerNode)(Jd),ZR.Factory.addGetterSetter(Jd,"data"),Object.defineProperty(M2,"__esModule",{value:!0}),M2.Arrow=void 0;const af=pt,QR=h0,ax=qe,JR=ct,ox=ed;let vl=class extends QR.Line{_sceneFunc(e){super._sceneFunc(e);const t=Math.PI*2,n=this.points();let r=n;const i=this.tension()!==0&&n.length>4;i&&(r=this.getTensionPoints());const a=this.pointerLength(),o=n.length;let s,c;if(i){const b=[r[r.length-4],r[r.length-3],r[r.length-2],r[r.length-1],n[o-2],n[o-1]],m=ox.Path.calcLength(r[r.length-4],r[r.length-3],"C",b),g=ox.Path.getPointOnQuadraticBezier(Math.min(1,1-a/m),b[0],b[1],b[2],b[3],b[4],b[5]);s=n[o-2]-g.x,c=n[o-1]-g.y}else s=n[o-2]-n[o-4],c=n[o-1]-n[o-3];const d=(Math.atan2(c,s)+t)%t,h=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[o-2],n[o-1]),e.rotate(d),e.moveTo(0,0),e.lineTo(-a,h/2),e.lineTo(-a,-h/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(s=(r[0]+r[2])/2-n[0],c=(r[1]+r[3])/2-n[1]):(s=n[2]-n[0],c=n[3]-n[1]),e.rotate((Math.atan2(-c,-s)+t)%t),e.moveTo(0,0),e.lineTo(-a,h/2),e.lineTo(-a,-h/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){const t=this.dashEnabled();t&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),t&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),t=this.pointerWidth()/2;return{x:e.x,y:e.y-t,width:e.width,height:e.height+t*2}}};M2.Arrow=vl,vl.prototype.className="Arrow",(0,JR._registerNode)(vl),af.Factory.addGetterSetter(vl,"pointerLength",10,(0,ax.getNumberValidator)()),af.Factory.addGetterSetter(vl,"pointerWidth",10,(0,ax.getNumberValidator)()),af.Factory.addGetterSetter(vl,"pointerAtBeginning",!1),af.Factory.addGetterSetter(vl,"pointerAtEnding",!0);var I2={};Object.defineProperty(I2,"__esModule",{value:!0}),I2.Circle=void 0;const eF=pt,tF=Jn,nF=qe,rF=ct;let Gc=class extends tF.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius()!==e/2&&this.radius(e/2)}setHeight(e){this.radius()!==e/2&&this.radius(e/2)}};I2.Circle=Gc,Gc.prototype._centroid=!0,Gc.prototype.className="Circle",Gc.prototype._attrsAffectingSize=["radius"],(0,rF._registerNode)(Gc),eF.Factory.addGetterSetter(Gc,"radius",0,(0,nF.getNumberValidator)());var A2={};Object.defineProperty(A2,"__esModule",{value:!0}),A2.Ellipse=void 0;const W5=pt,iF=Jn,sx=qe,aF=ct;let ns=class extends iF.Shape{_sceneFunc(e){const t=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),t!==n&&e.scale(1,n/t),e.arc(0,0,t,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};A2.Ellipse=ns,ns.prototype.className="Ellipse",ns.prototype._centroid=!0,ns.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,aF._registerNode)(ns),W5.Factory.addComponentsGetterSetter(ns,"radius",["x","y"]),W5.Factory.addGetterSetter(ns,"radiusX",0,(0,sx.getNumberValidator)()),W5.Factory.addGetterSetter(ns,"radiusY",0,(0,sx.getNumberValidator)());var L2={};Object.defineProperty(L2,"__esModule",{value:!0}),L2.Image=void 0;const X5=Cn,yl=pt,oF=Jn,sF=ct,eh=qe;let La=class aT extends oF.Shape{constructor(t){super(t),this._loadListener=()=>{this._requestDraw()},this.on("imageChange.konva",n=>{this._removeImageLoad(n.oldVal),this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",this._loadListener)}_removeImageLoad(t){t&&t.removeEventListener&&t.removeEventListener("load",this._loadListener)}destroy(){return this._removeImageLoad(this.image()),super.destroy(),this}_useBufferCanvas(){const t=!!this.cornerRadius(),n=this.hasShadow();return t&&n?!0:super._useBufferCanvas(!0)}_sceneFunc(t){const n=this.getWidth(),r=this.getHeight(),i=this.cornerRadius(),a=this.attrs.image;let o;if(a){const s=this.attrs.cropWidth,c=this.attrs.cropHeight;s&&c?o=[a,this.cropX(),this.cropY(),s,c,0,0,n,r]:o=[a,0,0,n,r]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?X5.Util.drawRoundedRectPath(t,n,r,i):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)),a&&(i&&t.clip(),t.drawImage.apply(t,o))}_hitFunc(t){const n=this.width(),r=this.height(),i=this.cornerRadius();t.beginPath(),i?X5.Util.drawRoundedRectPath(t,n,r,i):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,n;return(t=this.attrs.width)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var t,n;return(t=this.attrs.height)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(t,n,r=null){const i=X5.Util.createImageElement();i.onload=function(){const a=new aT({image:i});n(a)},i.onerror=r,i.crossOrigin="Anonymous",i.src=t}};L2.Image=La,La.prototype.className="Image",(0,sF._registerNode)(La),yl.Factory.addGetterSetter(La,"cornerRadius",0,(0,eh.getNumberOrArrayOfNumbersValidator)(4)),yl.Factory.addGetterSetter(La,"image"),yl.Factory.addComponentsGetterSetter(La,"crop",["x","y","width","height"]),yl.Factory.addGetterSetter(La,"cropX",0,(0,eh.getNumberValidator)()),yl.Factory.addGetterSetter(La,"cropY",0,(0,eh.getNumberValidator)()),yl.Factory.addGetterSetter(La,"cropWidth",0,(0,eh.getNumberValidator)()),yl.Factory.addGetterSetter(La,"cropHeight",0,(0,eh.getNumberValidator)());var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0}),Nu.Tag=Nu.Label=void 0;const of=pt,lF=Jn,cF=Qu,Y5=qe,oT=ct,sT=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],uF="Change.konva",dF="none",wy="up",xy="right",Cy="down",Sy="left",hF=sT.length;let K5=class extends cF.Group{constructor(e){super(e),this.on("add.konva",function(t){this._addListeners(t.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){let t=this,n;const r=function(){t._sync()};for(n=0;n{t=Math.min(t,a.x),n=Math.max(n,a.x),r=Math.min(r,a.y),i=Math.max(i,a.y)}),{x:t,y:r,width:n-t,height:i-r}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};j2.RegularPolygon=wl,wl.prototype.className="RegularPolygon",wl.prototype._centroid=!0,wl.prototype._attrsAffectingSize=["radius"],(0,bF._registerNode)(wl),lx.Factory.addGetterSetter(wl,"radius",0,(0,cx.getNumberValidator)()),lx.Factory.addGetterSetter(wl,"sides",0,(0,cx.getNumberValidator)());var N2={};Object.defineProperty(N2,"__esModule",{value:!0}),N2.Ring=void 0;const ux=pt,wF=Jn,dx=qe,xF=ct,hx=Math.PI*2;let xl=class extends wF.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.innerRadius(),0,hx,!1),e.moveTo(this.outerRadius(),0),e.arc(0,0,this.outerRadius(),hx,0,!0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(e){this.outerRadius(e/2)}setHeight(e){this.outerRadius(e/2)}};N2.Ring=xl,xl.prototype.className="Ring",xl.prototype._centroid=!0,xl.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,xF._registerNode)(xl),ux.Factory.addGetterSetter(xl,"innerRadius",0,(0,dx.getNumberValidator)()),ux.Factory.addGetterSetter(xl,"outerRadius",0,(0,dx.getNumberValidator)());var D2={};Object.defineProperty(D2,"__esModule",{value:!0}),D2.Sprite=void 0;const Cl=pt,CF=Jn,SF=Ju,fx=qe,EF=ct;let ja=class extends CF.Shape{constructor(e){super(e),this._updated=!0,this.anim=new SF.Animation(()=>{const t=this._updated;return this._updated=!1,t}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(e){const t=this.animation(),n=this.frameIndex(),r=n*4,i=this.animations()[t],a=this.frameOffsets(),o=i[r+0],s=i[r+1],c=i[r+2],d=i[r+3],h=this.image();if((this.hasFill()||this.hasStroke())&&(e.beginPath(),e.rect(0,0,c,d),e.closePath(),e.fillStrokeShape(this)),h)if(a){const b=a[t],m=n*2;e.drawImage(h,o,s,c,d,b[m+0],b[m+1],c,d)}else e.drawImage(h,o,s,c,d,0,0,c,d)}_hitFunc(e){const t=this.animation(),n=this.frameIndex(),r=n*4,i=this.animations()[t],a=this.frameOffsets(),o=i[r+2],s=i[r+3];if(e.beginPath(),a){const c=a[t],d=n*2;e.rect(c[d+0],c[d+1],o,s)}else e.rect(0,0,o,s);e.closePath(),e.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){const e=this;this.interval=setInterval(function(){e._updateIndex()},1e3/this.frameRate())}start(){if(this.isRunning())return;const e=this.getLayer();this.anim.setLayers(e),this._setInterval(),this.anim.start()}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){const e=this.frameIndex(),t=this.animation(),n=this.animations(),r=n[t],i=r.length/4;e{if(new RegExp("\\p{Emoji}","u").test(n)){const a=i[r+1];a&&new RegExp("\\p{Emoji_Modifier}|\\u200D","u").test(a)?(t.push(n+a),i[r+1]=""):t.push(n)}else new RegExp("\\p{Regional_Indicator}{2}","u").test(n+(i[r+1]||""))?t.push(n+i[r+1]):r>0&&new RegExp("\\p{Mn}|\\p{Me}|\\p{Mc}","u").test(n)?t[t.length-1]+=n:n&&t.push(n);return t},[])}const Vc="auto",TF="center",lT="inherit",th="justify",MF="Change.konva",IF="2d",px="-",cT="left",AF="text",LF="Text",jF="top",NF="bottom",gx="middle",mx="normal",DF="px ",lf=" ",RF="right",vx="rtl",FF="word",zF="char",yx="none",Q5="…",uT=["direction","fontFamily","fontSize","fontStyle","fontVariant","padding","align","verticalAlign","lineHeight","text","width","height","wrap","ellipsis","letterSpacing"],BF=uT.length;function HF(e){return e.split(",").map(t=>{t=t.trim();const n=t.indexOf(" ")>=0,r=t.indexOf('"')>=0||t.indexOf("'")>=0;return n&&!r&&(t=`"${t}"`),t}).join(", ")}let J5;function e4(){return J5||(J5=Ey.Util.createCanvasElement().getContext(IF),J5)}function GF(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function VF(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function UF(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let _n=class extends OF.Shape{constructor(e){super(UF(e)),this._partialTextX=0,this._partialTextY=0;for(let t=0;t1&&(C+=a)}}_hitFunc(e){const t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){const t=Ey.Util._isString(e)?e:e==null?"":e+"";return this._setAttr(AF,t),this}getWidth(){return this.attrs.width===Vc||this.attrs.width===void 0?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){return this.attrs.height===Vc||this.attrs.height===void 0?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Ey.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var t,n,r,i,a,o,s,c,d,h,b;let m=e4(),g=this.fontSize(),v;m.save(),m.font=this._getContextFont(),v=m.measureText(e),m.restore();const w=g/100;return{actualBoundingBoxAscent:(t=v.actualBoundingBoxAscent)!==null&&t!==void 0?t:71.58203125*w,actualBoundingBoxDescent:(n=v.actualBoundingBoxDescent)!==null&&n!==void 0?n:0,actualBoundingBoxLeft:(r=v.actualBoundingBoxLeft)!==null&&r!==void 0?r:-7.421875*w,actualBoundingBoxRight:(i=v.actualBoundingBoxRight)!==null&&i!==void 0?i:75.732421875*w,alphabeticBaseline:(a=v.alphabeticBaseline)!==null&&a!==void 0?a:0,emHeightAscent:(o=v.emHeightAscent)!==null&&o!==void 0?o:100*w,emHeightDescent:(s=v.emHeightDescent)!==null&&s!==void 0?s:-20*w,fontBoundingBoxAscent:(c=v.fontBoundingBoxAscent)!==null&&c!==void 0?c:91*w,fontBoundingBoxDescent:(d=v.fontBoundingBoxDescent)!==null&&d!==void 0?d:21*w,hangingBaseline:(h=v.hangingBaseline)!==null&&h!==void 0?h:72.80000305175781*w,ideographicBaseline:(b=v.ideographicBaseline)!==null&&b!==void 0?b:-21*w,width:v.width,height:g}}_getContextFont(){return this.fontStyle()+lf+this.fontVariant()+lf+(this.fontSize()+DF)+HF(this.fontFamily())}_addTextLine(e){this.align()===th&&(e=e.trim());const t=this._getTextWidth(e);return this.textArr.push({text:e,width:t,lastInParagraph:!1})}_getTextWidth(e){const t=this.letterSpacing(),n=e.length;return e4().measureText(e).width+t*n}_setTextData(){let e=this.text().split(` `),t=+this.fontSize(),n=0,r=this.lineHeight()*t,i=this.attrs.width,a=this.attrs.height,o=i!==Vc&&i!==void 0,s=a!==Vc&&a!==void 0,c=this.padding(),d=i-c*2,h=a-c*2,b=0,m=this.wrap(),g=m!==yx,v=m!==zF&&g,w=this.ellipsis();this.textArr=[],e4().font=this._getContextFont();const k=w?this._getTextWidth(Q5):0;for(let C=0,_=e.length;C<_;++C){let f=e[C],x=this._getTextWidth(f);if(o&&x>d)for(;f.length>0;){let E=0,M=zl(f).length,j="",P=0;for(;E>>1,T=zl(f),R=T.slice(0,N+1).join(""),z=this._getTextWidth(R);(w&&s&&b+r>h?z+k:z)<=d?(E=N+1,j=R,P=z):M=N}if(j){if(v){const N=zl(f),T=zl(j),R=N[T.length],z=R===lf||R===px;let H;if(z&&P<=d)H=T.length;else{const J=T.lastIndexOf(lf),q=T.lastIndexOf(px);H=Math.max(J,q)+1}H>0&&(E=H,j=N.slice(0,E).join(""),P=this._getTextWidth(j))}if(j=j.trimRight(),this._addTextLine(j),n=Math.max(n,P),b+=r,this._shouldHandleEllipsis(b)){this._tryToAddEllipsisToLastLine();break}if(f=zl(f).slice(E).join("").trimLeft(),f.length>0&&(x=this._getTextWidth(f),x<=d)){this._addTextLine(f),b+=r,n=Math.max(n,x);break}}else break}else this._addTextLine(f),b+=r,n=Math.max(n,x),this._shouldHandleEllipsis(b)&&C<_-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),s&&b+r>h)break}this.textHeight=t,this.textWidth=n}_shouldHandleEllipsis(e){const t=+this.fontSize(),n=this.lineHeight()*t,r=this.attrs.height,i=r!==Vc&&r!==void 0,a=this.padding(),o=r-a*2;return this.wrap()===yx||i&&e+n>o}_tryToAddEllipsisToLastLine(){const e=this.attrs.width,t=e!==Vc&&e!==void 0,n=this.padding(),r=e-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];!a||!i||(t&&(this._getTextWidth(a.text+Q5)t?null:nh.Path.getPointAtLengthOfDataArray(e,this.dataArray)}_readDataAttribute(){this.dataArray=nh.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(e){e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",this.textBaseline()),e.setAttr("textAlign","left"),e.save();const t=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;t==="underline"&&e.beginPath();for(let a=0;a=1){const n=t[0].p0;e.moveTo(n.x,n.y)}for(let n=0;ne+`.${dT}`).join(" "),_x="nodesRect",QF=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],JF={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135},ez="ontouchstart"in ia.Konva._global;function tz(e,t,n){if(e==="rotater")return n;t+=Ht.Util.degToRad(JF[e]||0);const r=(Ht.Util.radToDeg(t)%360+360)%360;return Ht.Util._inRange(r,315+22.5,360)||Ht.Util._inRange(r,0,22.5)?"ns-resize":Ht.Util._inRange(r,45-22.5,45+22.5)?"nesw-resize":Ht.Util._inRange(r,90-22.5,90+22.5)?"ew-resize":Ht.Util._inRange(r,135-22.5,135+22.5)?"nwse-resize":Ht.Util._inRange(r,180-22.5,180+22.5)?"ns-resize":Ht.Util._inRange(r,225-22.5,225+22.5)?"nesw-resize":Ht.Util._inRange(r,270-22.5,270+22.5)?"ew-resize":Ht.Util._inRange(r,315-22.5,315+22.5)?"nwse-resize":(Ht.Util.error("Transformer has unknown angle for cursor detection: "+r),"pointer")}const B2=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function nz(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function hT(e,t,n){const r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:r,y:i}}function rz(e,t){const n=nz(e);return hT(e,t,n)}function iz(e,t,n){let r=t;for(let i=0;in.isAncestorOf(this)?(Ht.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);return this._nodes=e=t,e.length===1&&this.useSingleNodeRotation()?this.rotation(e[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(n=>{const r=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()};if(n._attrsAffectingSize.length){const i=n._attrsAffectingSize.map(a=>a+"Change."+this._getEventNamespace()).join(" ");n.on(i,r)}n.on(QF.map(i=>i+`.${this._getEventNamespace()}`).join(" "),r),n.on(`absoluteTransformChange.${this._getEventNamespace()}`,r),this._proxyDrag(n)}),this._resetTransformCache(),this.findOne(".top-left")&&this.update(),this}_proxyDrag(e){let t;e.on(`dragstart.${this._getEventNamespace()}`,n=>{t=e.getAbsolutePosition(),!this.isDragging()&&e!==this.findOne(".back")&&this.startDrag(n,!1)}),e.on(`dragmove.${this._getEventNamespace()}`,n=>{if(!t)return;const r=e.getAbsolutePosition(),i=r.x-t.x,a=r.y-t.y;this.nodes().forEach(o=>{if(o===e||o.isDragging())return;const s=o.getAbsolutePosition();o.setAbsolutePosition({x:s.x+i,y:s.y+a}),o.startDrag(n)}),t=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(e=>{e.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(_x),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(_x,this.__getNodeRect)}__getNodeShape(e,t=this.rotation(),n){const r=e.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),i=e.getAbsoluteScale(n),a=e.getAbsolutePosition(n),o=r.x*i.x-e.offsetX()*i.x,s=r.y*i.y-e.offsetY()*i.y,c=(ia.Konva.getAngle(e.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),d={x:a.x+o*Math.cos(c)+s*Math.sin(-c),y:a.y+s*Math.cos(c)+o*Math.sin(c),width:r.width*i.x,height:r.height*i.y,rotation:c};return hT(d,-ia.Konva.getAngle(t),{x:0,y:0})}__getNodeRect(){if(!this.getNode())return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const e=[];this.nodes().map(s=>{const c=s.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),d=[{x:c.x,y:c.y},{x:c.x+c.width,y:c.y},{x:c.x+c.width,y:c.y+c.height},{x:c.x,y:c.y+c.height}],h=s.getAbsoluteTransform();d.forEach(function(b){const m=h.point(b);e.push(m)})});const t=new Ht.Transform;t.rotate(-ia.Konva.getAngle(this.rotation()));let n=1/0,r=1/0,i=-1/0,a=-1/0;e.forEach(function(s){const c=t.point(s);n===void 0&&(n=i=c.x,r=a=c.y),n=Math.min(n,c.x),r=Math.min(r,c.y),i=Math.max(i,c.x),a=Math.max(a,c.y)}),t.invert();const o=t.point({x:n,y:r});return{x:o.x,y:o.y,width:i-n,height:a-r,rotation:ia.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),B2.forEach(e=>{this._createAnchor(e)}),this._createAnchor("rotater")}_createAnchor(e){const t=new ZF.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:e+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:ez?10:"auto"}),n=this;t.on("mousedown touchstart",function(r){n._handleMouseDown(r)}),t.on("dragstart",r=>{t.stopDrag(),r.cancelBubble=!0}),t.on("dragend",r=>{r.cancelBubble=!0}),t.on("mouseenter",()=>{const r=ia.Konva.getAngle(this.rotation()),i=this.rotateAnchorCursor(),a=tz(e,r,i);t.getStage().content&&(t.getStage().content.style.cursor=a),this._cursorChange=!0}),t.on("mouseout",()=>{t.getStage().content&&(t.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(t)}_createBack(){const e=new KF.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(t,n){const r=n.getParent(),i=r.padding();t.beginPath(),t.rect(-i,-i,n.width()+i*2,n.height()+i*2),t.moveTo(n.width()/2,-i),r.rotateEnabled()&&r.rotateLineVisible()&&t.lineTo(n.width()/2,-r.rotateAnchorOffset()*Ht.Util._sign(n.height())-i),t.fillStrokeShape(n)},hitFunc:(t,n)=>{if(!this.shouldOverdrawWholeArea())return;const r=this.padding();t.beginPath(),t.rect(-r,-r,n.width()+r*2,n.height()+r*2),t.fillStrokeShape(n)}});this.add(e),this._proxyDrag(e),e.on("dragstart",t=>{t.cancelBubble=!0}),e.on("dragmove",t=>{t.cancelBubble=!0}),e.on("dragend",t=>{t.cancelBubble=!0}),this.on("dragmove",t=>{this.update()})}_handleMouseDown(e){if(this._transforming)return;this._movingAnchorName=e.target.name().split(" ")[0];const t=this._getNodeRect(),n=t.width,r=t.height,i=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));this.sin=Math.abs(r/i),this.cos=Math.abs(n/i),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;const a=e.target.getAbsolutePosition(),o=e.target.getStage().getPointerPosition();this._anchorDragOffset={x:o.x-a.x,y:o.y-a.y},_y++,this._fire("transformstart",{evt:e.evt,target:this.getNode()}),this._nodes.forEach(s=>{s._fire("transformstart",{evt:e.evt,target:s})})}_handleMouseMove(e){let t,n,r;const i=this.findOne("."+this._movingAnchorName),a=i.getStage();a.setPointersPositions(e);const o=a.getPointerPosition();let s={x:o.x-this._anchorDragOffset.x,y:o.y-this._anchorDragOffset.y};const c=i.getAbsolutePosition();this.anchorDragBoundFunc()&&(s=this.anchorDragBoundFunc()(c,s,e)),i.setAbsolutePosition(s);const d=i.getAbsolutePosition();if(c.x===d.x&&c.y===d.y)return;if(this._movingAnchorName==="rotater"){const x=this._getNodeRect();t=i.x()-x.width/2,n=-i.y()+x.height/2;let E=Math.atan2(-n,t)+Math.PI/2;x.height<0&&(E-=Math.PI);const M=ia.Konva.getAngle(this.rotation())+E,j=ia.Konva.getAngle(this.rotationSnapTolerance()),P=iz(this.rotationSnaps(),M,j)-x.rotation,N=rz(x,P);this._fitNodesInto(N,e);return}const h=this.shiftBehavior();let b;h==="inverted"?b=this.keepRatio()&&!e.shiftKey:h==="none"?b=this.keepRatio():b=this.keepRatio()||e.shiftKey;var k=this.centeredScaling()||e.altKey;if(this._movingAnchorName==="top-left"){if(b){var m=k?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};r=Math.sqrt(Math.pow(m.x-i.x(),2)+Math.pow(m.y-i.y(),2));var g=this.findOne(".top-left").x()>m.x?-1:1,v=this.findOne(".top-left").y()>m.y?-1:1;t=r*this.cos*g,n=r*this.sin*v,this.findOne(".top-left").x(m.x-t),this.findOne(".top-left").y(m.y-n)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(i.y());else if(this._movingAnchorName==="top-right"){if(b){var m=k?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};r=Math.sqrt(Math.pow(i.x()-m.x,2)+Math.pow(m.y-i.y(),2));var g=this.findOne(".top-right").x()m.y?-1:1;t=r*this.cos*g,n=r*this.sin*v,this.findOne(".top-right").x(m.x+t),this.findOne(".top-right").y(m.y-n)}var w=i.position();this.findOne(".top-left").y(w.y),this.findOne(".bottom-right").x(w.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(i.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(i.x());else if(this._movingAnchorName==="bottom-left"){if(b){var m=k?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};r=Math.sqrt(Math.pow(m.x-i.x(),2)+Math.pow(i.y()-m.y,2));var g=m.x{var i;r._fire("transformend",{evt:e,target:r}),(i=r.getLayer())===null||i===void 0||i.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(e,t){const n=this._getNodeRect(),r=1;if(Ht.Util._inRange(e.width,-this.padding()*2-r,r)){this.update();return}if(Ht.Util._inRange(e.height,-this.padding()*2-r,r)){this.update();return}const i=new Ht.Transform;if(i.rotate(ia.Konva.getAngle(this.rotation())),this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("left")>=0){const b=i.point({x:-this.padding()*2,y:0});e.x+=b.x,e.y+=b.y,e.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=b.x,this._anchorDragOffset.y-=b.y}else if(this._movingAnchorName&&e.width<0&&this._movingAnchorName.indexOf("right")>=0){const b=i.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=b.x,this._anchorDragOffset.y-=b.y,e.width+=this.padding()*2}if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("top")>=0){const b=i.point({x:0,y:-this.padding()*2});e.x+=b.x,e.y+=b.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=b.x,this._anchorDragOffset.y-=b.y,e.height+=this.padding()*2}else if(this._movingAnchorName&&e.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const b=i.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=b.x,this._anchorDragOffset.y-=b.y,e.height+=this.padding()*2}if(this.boundBoxFunc()){const b=this.boundBoxFunc()(n,e);b?e=b:Ht.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const a=1e7,o=new Ht.Transform;o.translate(n.x,n.y),o.rotate(n.rotation),o.scale(n.width/a,n.height/a);const s=new Ht.Transform,c=e.width/a,d=e.height/a;this.flipEnabled()===!1?(s.translate(e.x,e.y),s.rotate(e.rotation),s.translate(e.width<0?e.width:0,e.height<0?e.height:0),s.scale(Math.abs(c),Math.abs(d))):(s.translate(e.x,e.y),s.rotate(e.rotation),s.scale(c,d));const h=s.multiply(o.invert());this._nodes.forEach(b=>{var m;const g=b.getParent().getAbsoluteTransform(),v=b.getTransform().copy();v.translate(b.offsetX(),b.offsetY());const w=new Ht.Transform;w.multiply(g.copy().invert()).multiply(h).multiply(g).multiply(v);const k=w.decompose();b.setAttrs(k),(m=b.getLayer())===null||m===void 0||m.batchDraw()}),this.rotation(Ht.Util._getRotation(e.rotation)),this._nodes.forEach(b=>{this._fire("transform",{evt:t,target:b}),b._fire("transform",{evt:t,target:b})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(e,t){this.findOne(e).setAttrs(t)}update(){var e;const t=this._getNodeRect();this.rotation(Ht.Util._getRotation(t.rotation));const n=t.width,r=t.height,i=this.enabledAnchors(),a=this.resizeEnabled(),o=this.padding(),s=this.anchorSize(),c=this.find("._anchor");c.forEach(h=>{h.setAttrs({width:s,height:s,offsetX:s/2,offsetY:s/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:s/2+o,offsetY:s/2+o,visible:a&&i.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:n/2,y:0,offsetY:s/2+o,visible:a&&i.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:n,y:0,offsetX:s/2-o,offsetY:s/2+o,visible:a&&i.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:r/2,offsetX:s/2+o,visible:a&&i.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:n,y:r/2,offsetX:s/2-o,visible:a&&i.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:r,offsetX:s/2+o,offsetY:s/2-o,visible:a&&i.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:n/2,y:r,offsetY:s/2-o,visible:a&&i.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:n,y:r,offsetX:s/2-o,offsetY:s/2-o,visible:a&&i.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:n/2,y:-this.rotateAnchorOffset()*Ht.Util._sign(r)-o,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:n,height:r,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const d=this.anchorStyleFunc();d&&c.forEach(h=>{d(h)}),(e=this.getLayer())===null||e===void 0||e.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();const e=this.findOne("."+this._movingAnchorName);e&&e.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),Ex.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return Sx.Node.prototype.toObject.call(this)}clone(e){return Sx.Node.prototype.clone.call(this,e)}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}};z2.Transformer=St,St.isTransforming=()=>_y>0;function az(e){return e instanceof Array||Ht.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){B2.indexOf(t)===-1&&Ht.Util.warn("Unknown anchor name: "+t+". Available names are: "+B2.join(", "))}),e||[]}St.prototype.className="Transformer",(0,qF._registerNode)(St),Lt.Factory.addGetterSetter(St,"enabledAnchors",B2,az),Lt.Factory.addGetterSetter(St,"flipEnabled",!0,(0,as.getBooleanValidator)()),Lt.Factory.addGetterSetter(St,"resizeEnabled",!0),Lt.Factory.addGetterSetter(St,"anchorSize",10,(0,as.getNumberValidator)()),Lt.Factory.addGetterSetter(St,"rotateEnabled",!0),Lt.Factory.addGetterSetter(St,"rotateLineVisible",!0),Lt.Factory.addGetterSetter(St,"rotationSnaps",[]),Lt.Factory.addGetterSetter(St,"rotateAnchorOffset",50,(0,as.getNumberValidator)()),Lt.Factory.addGetterSetter(St,"rotateAnchorCursor","crosshair"),Lt.Factory.addGetterSetter(St,"rotationSnapTolerance",5,(0,as.getNumberValidator)()),Lt.Factory.addGetterSetter(St,"borderEnabled",!0),Lt.Factory.addGetterSetter(St,"anchorStroke","rgb(0, 161, 255)"),Lt.Factory.addGetterSetter(St,"anchorStrokeWidth",1,(0,as.getNumberValidator)()),Lt.Factory.addGetterSetter(St,"anchorFill","white"),Lt.Factory.addGetterSetter(St,"anchorCornerRadius",0,(0,as.getNumberValidator)()),Lt.Factory.addGetterSetter(St,"borderStroke","rgb(0, 161, 255)"),Lt.Factory.addGetterSetter(St,"borderStrokeWidth",1,(0,as.getNumberValidator)()),Lt.Factory.addGetterSetter(St,"borderDash"),Lt.Factory.addGetterSetter(St,"keepRatio",!0),Lt.Factory.addGetterSetter(St,"shiftBehavior","default"),Lt.Factory.addGetterSetter(St,"centeredScaling",!1),Lt.Factory.addGetterSetter(St,"ignoreStroke",!1),Lt.Factory.addGetterSetter(St,"padding",0,(0,as.getNumberValidator)()),Lt.Factory.addGetterSetter(St,"nodes"),Lt.Factory.addGetterSetter(St,"node"),Lt.Factory.addGetterSetter(St,"boundBoxFunc"),Lt.Factory.addGetterSetter(St,"anchorDragBoundFunc"),Lt.Factory.addGetterSetter(St,"anchorStyleFunc"),Lt.Factory.addGetterSetter(St,"shouldOverdrawWholeArea",!1),Lt.Factory.addGetterSetter(St,"useSingleNodeRotation",!0),Lt.Factory.backCompat(St,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var H2={};Object.defineProperty(H2,"__esModule",{value:!0}),H2.Wedge=void 0;const cf=pt,oz=Jn,sz=ct,kx=qe,lz=ct;let ao=class extends oz.Shape{_sceneFunc(e){e.beginPath(),e.arc(0,0,this.radius(),0,sz.Konva.getAngle(this.angle()),this.clockwise()),e.lineTo(0,0),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(e){this.radius(e/2)}setHeight(e){this.radius(e/2)}};H2.Wedge=ao,ao.prototype.className="Wedge",ao.prototype._centroid=!0,ao.prototype._attrsAffectingSize=["radius"],(0,lz._registerNode)(ao),cf.Factory.addGetterSetter(ao,"radius",0,(0,kx.getNumberValidator)()),cf.Factory.addGetterSetter(ao,"angle",0,(0,kx.getNumberValidator)()),cf.Factory.addGetterSetter(ao,"clockwise",!1),cf.Factory.backCompat(ao,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var G2={};Object.defineProperty(G2,"__esModule",{value:!0}),G2.Blur=void 0;const Ox=pt,cz=dn,uz=qe;function Px(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}const dz=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],hz=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function fz(e,t){const n=e.data,r=e.width,i=e.height;let a,o,s,c,d,h,b,m,g,v,w,k,C,_,f,x,E,M,j,P,N,T,R,z;const H=t+t+1,J=r-1,q=i-1,Y=t+1,le=Y*(Y+1)/2,K=new Px,ce=dz[t],ne=hz[t];let oe=null,Q=K,$=null,re=null;for(s=1;s>ne,R!==0?(R=255/R,n[h]=(m*ce>>ne)*R,n[h+1]=(g*ce>>ne)*R,n[h+2]=(v*ce>>ne)*R):n[h]=n[h+1]=n[h+2]=0,m-=k,g-=C,v-=_,w-=f,k-=$.r,C-=$.g,_-=$.b,f-=$.a,c=b+((c=a+t+1)>ne,R>0?(R=255/R,n[c]=(m*ce>>ne)*R,n[c+1]=(g*ce>>ne)*R,n[c+2]=(v*ce>>ne)*R):n[c]=n[c+1]=n[c+2]=0,m-=k,g-=C,v-=_,w-=f,k-=$.r,C-=$.g,_-=$.b,f-=$.a,c=a+((c=o+Y)0&&fz(e,t)};G2.Blur=pz,Ox.Factory.addGetterSetter(cz.Node,"blurRadius",0,(0,uz.getNumberValidator)(),Ox.Factory.afterSetFilter);var V2={};Object.defineProperty(V2,"__esModule",{value:!0}),V2.Brighten=void 0;const Tx=pt,gz=dn,mz=qe,vz=function(e){const t=this.brightness()*255,n=e.data,r=n.length;for(let i=0;i255?255:i,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,n[s]=i,n[s+1]=a,n[s+2]=o};U2.Contrast=wz,Mx.Factory.addGetterSetter(yz.Node,"contrast",0,(0,bz.getNumberValidator)(),Mx.Factory.afterSetFilter);var W2={};Object.defineProperty(W2,"__esModule",{value:!0}),W2.Emboss=void 0;const os=pt,uf=dn,xz=Cn,Ix=qe,Cz=function(e){const t=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),a=e.data,o=e.width,s=e.height,c=o*4;let d=0,h=0,b=s;switch(r){case"top-left":d=-1,h=-1;break;case"top":d=-1,h=0;break;case"top-right":d=-1,h=1;break;case"right":d=0,h=1;break;case"bottom-right":d=1,h=1;break;case"bottom":d=1,h=0;break;case"bottom-left":d=1,h=-1;break;case"left":d=0,h=-1;break;default:xz.Util.error("Unknown emboss direction: "+r)}do{const m=(b-1)*c;let g=d;b+g<1&&(g=0),b+g>s&&(g=0);const v=(b-1+g)*o*4;let w=o;do{const k=m+(w-1)*4;let C=h;w+C<1&&(C=0),w+C>o&&(C=0);const _=v+(w-1+C)*4,f=a[k]-a[_],x=a[k+1]-a[_+1],E=a[k+2]-a[_+2];let M=f;const j=M>0?M:-M,P=x>0?x:-x,N=E>0?E:-E;if(P>j&&(M=x),N>j&&(M=E),M*=t,i){const T=a[k]+M,R=a[k+1]+M,z=a[k+2]+M;a[k]=T>255?255:T<0?0:T,a[k+1]=R>255?255:R<0?0:R,a[k+2]=z>255?255:z<0?0:z}else{let T=n-M;T<0?T=0:T>255&&(T=255),a[k]=a[k+1]=a[k+2]=T}}while(--w)}while(--b)};W2.Emboss=Cz,os.Factory.addGetterSetter(uf.Node,"embossStrength",.5,(0,Ix.getNumberValidator)(),os.Factory.afterSetFilter),os.Factory.addGetterSetter(uf.Node,"embossWhiteLevel",.5,(0,Ix.getNumberValidator)(),os.Factory.afterSetFilter),os.Factory.addGetterSetter(uf.Node,"embossDirection","top-left",void 0,os.Factory.afterSetFilter),os.Factory.addGetterSetter(uf.Node,"embossBlend",!1,void 0,os.Factory.afterSetFilter);var X2={};Object.defineProperty(X2,"__esModule",{value:!0}),X2.Enhance=void 0;const Ax=pt,Sz=dn,Ez=qe;function r4(e,t,n,r,i){const a=n-t,o=i-r;if(a===0)return r+o/2;if(o===0)return r;let s=(e-t)/a;return s=o*s+r,s}const _z=function(e){const t=e.data,n=t.length;let r=t[0],i=r,a,o=t[1],s=o,c,d=t[2],h=d,b;const m=this.enhance();if(m===0)return;for(let M=0;Mi&&(i=a),c=t[M+1],cs&&(s=c),b=t[M+2],bh&&(h=b);i===r&&(i=255,r=0),s===o&&(s=255,o=0),h===d&&(h=255,d=0);let g,v,w,k,C,_,f,x,E;m>0?(v=i+m*(255-i),w=r-m*(r-0),C=s+m*(255-s),_=o-m*(o-0),x=h+m*(255-h),E=d-m*(d-0)):(g=(i+r)*.5,v=i+m*(i-g),w=r+m*(r-g),k=(s+o)*.5,C=s+m*(s-k),_=o+m*(o-k),f=(h+d)*.5,x=h+m*(h-f),E=d+m*(d-f));for(let M=0;Md?m:d;const g=o,v=a,w=360/v*Math.PI/180;for(let k=0;kd?m:d;const g=o,v=a,w=0;let k,C;for(h=0;ht&&(x=f,E=0,M=-1),i=0;i=0&&g=0&&v=0&&g=0&&v=255*4?255:0}return o}function Bz(e,t,n){const r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[];for(let s=0;s=0&&g=0&&v=n))for(a=w;a=r||(o=(n*a+i)*4,s+=x[o+0],c+=x[o+1],d+=x[o+2],h+=x[o+3],f+=1);for(s=s/f,c=c/f,d=d/f,h=h/f,i=g;i=n))for(a=w;a=r||(o=(n*a+i)*4,x[o+0]=s,x[o+1]=c,x[o+2]=d,x[o+3]=h)}};eg.Pixelate=Kz,Fx.Factory.addGetterSetter(Xz.Node,"pixelSize",8,(0,Yz.getNumberValidator)(),Fx.Factory.afterSetFilter);var tg={};Object.defineProperty(tg,"__esModule",{value:!0}),tg.Posterize=void 0;const zx=pt,Zz=dn,qz=qe,$z=function(e){const t=Math.round(this.levels()*254)+1,n=e.data,r=n.length,i=255/t;for(let a=0;a255?255:e<0?0:Math.round(e)}),ff.Factory.addGetterSetter(l4.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),ff.Factory.addGetterSetter(l4.Node,"blue",0,Qz.RGBComponent,ff.Factory.afterSetFilter);var rg={};Object.defineProperty(rg,"__esModule",{value:!0}),rg.RGBA=void 0;const ih=pt,pf=dn,eB=qe,tB=function(e){const t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o=this.alpha();for(let s=0;s255?255:e<0?0:Math.round(e)}),ih.Factory.addGetterSetter(pf.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),ih.Factory.addGetterSetter(pf.Node,"blue",0,eB.RGBComponent,ih.Factory.afterSetFilter),ih.Factory.addGetterSetter(pf.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.Sepia=void 0;const nB=function(e){const t=e.data,n=t.length;for(let r=0;r127&&(d=255-d),h>127&&(h=255-h),b>127&&(b=255-b),t[c]=d,t[c+1]=h,t[c+2]=b}while(--s)}while(--a)};ag.Solarize=rB;var og={};Object.defineProperty(og,"__esModule",{value:!0}),og.Threshold=void 0;const Bx=pt,iB=dn,aB=qe,oB=function(e){const t=this.threshold()*255,n=e.data,r=n.length;for(let i=0;iie||O[G]!==A[ie]){var ge=` `+O[G].replace(" at new "," at ");return l.displayName&&ge.includes("")&&(ge=ge.replace("",l.displayName)),ge}while(1<=G&&0<=ie);break}}}finally{Ho=!1,Error.prepareStackTrace=p}return(l=l?l.displayName||l.name:"")?el(l):""}var Km=Object.prototype.hasOwnProperty,xd=[],Go=-1;function Ki(l){return{current:l}}function Ut(l){0>Go||(l.current=xd[Go],xd[Go]=null,Go--)}function zt(l,u){Go++,xd[Go]=l.current,l.current=u}var Ea={},tr=Ki(Ea),mr=Ki(!1),qa=Ea;function Vo(l,u){var p=l.type.contextTypes;if(!p)return Ea;var S=l.stateNode;if(S&&S.__reactInternalMemoizedUnmaskedChildContext===u)return S.__reactInternalMemoizedMaskedChildContext;var O={},A;for(A in p)O[A]=u[A];return S&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=u,l.__reactInternalMemoizedMaskedChildContext=O),O}function vr(l){return l=l.childContextTypes,l!=null}function wc(){Ut(mr),Ut(tr)}function R0(l,u,p){if(tr.current!==Ea)throw Error(a(168));zt(tr,u),zt(mr,p)}function tl(l,u,p){var S=l.stateNode;if(u=u.childContextTypes,typeof S.getChildContext!="function")return p;S=S.getChildContext();for(var O in S)if(!(O in u))throw Error(a(108,j(l)||"Unknown",O));return i({},p,S)}function Uo(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||Ea,qa=tr.current,zt(tr,l),zt(mr,mr.current),!0}function F0(l,u,p){var S=l.stateNode;if(!S)throw Error(a(169));p?(l=tl(l,u,qa),S.__reactInternalMemoizedMergedChildContext=l,Ut(mr),Ut(tr),zt(tr,l)):Ut(mr),zt(mr,p)}var ui=Math.clz32?Math.clz32:qm,z0=Math.log,Zm=Math.LN2;function qm(l){return l>>>=0,l===0?32:31-(z0(l)/Zm|0)|0}var xc=64,nl=4194304;function rl(l){switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Cc(l,u){var p=l.pendingLanes;if(p===0)return 0;var S=0,O=l.suspendedLanes,A=l.pingedLanes,G=p&268435455;if(G!==0){var ie=G&~O;ie!==0?S=rl(ie):(A&=G,A!==0&&(S=rl(A)))}else G=p&~O,G!==0?S=rl(G):A!==0&&(S=rl(A));if(S===0)return 0;if(u!==0&&u!==S&&!(u&O)&&(O=S&-S,A=u&-u,O>=A||O===16&&(A&4194240)!==0))return u;if(S&4&&(S|=p&16),u=l.entangledLanes,u!==0)for(l=l.entanglements,u&=S;0p;p++)u.push(l);return u}function _a(l,u,p){l.pendingLanes|=u,u!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,u=31-ui(u),l[u]=p}function _d(l,u){var p=l.pendingLanes&~u;l.pendingLanes=u,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=u,l.mutableReadLanes&=u,l.entangledLanes&=u,u=l.entanglements;var S=l.eventTimes;for(l=l.expirationTimes;0>=G,O-=G,Oi=1<<32-ui(u)+O|p<Tt?(or=nt,nt=null):or=nt.sibling;var Mt=Le(fe,nt,ye[Tt],je);if(Mt===null){nt===null&&(nt=or);break}l&&nt&&Mt.alternate===null&&u(fe,nt),ae=A(Mt,ae,Tt),st===null?Xe=Mt:st.sibling=Mt,st=Mt,nt=or}if(Tt===ye.length)return p(fe,nt),ln&&al(fe,Tt),Xe;if(nt===null){for(;TtTt?(or=nt,nt=null):or=nt.sibling;var Qo=Le(fe,nt,Mt.value,je);if(Qo===null){nt===null&&(nt=or);break}l&&nt&&Qo.alternate===null&&u(fe,nt),ae=A(Qo,ae,Tt),st===null?Xe=Qo:st.sibling=Qo,st=Qo,nt=or}if(Mt.done)return p(fe,nt),ln&&al(fe,Tt),Xe;if(nt===null){for(;!Mt.done;Tt++,Mt=ye.next())Mt=tt(fe,Mt.value,je),Mt!==null&&(ae=A(Mt,ae,Tt),st===null?Xe=Mt:st.sibling=Mt,st=Mt);return ln&&al(fe,Tt),Xe}for(nt=S(fe,nt);!Mt.done;Tt++,Mt=ye.next())Mt=tn(nt,fe,Tt,Mt.value,je),Mt!==null&&(l&&Mt.alternate!==null&&nt.delete(Mt.key===null?Tt:Mt.key),ae=A(Mt,ae,Tt),st===null?Xe=Mt:st.sibling=Mt,st=Mt);return l&&nt.forEach(function(KA){return u(fe,KA)}),ln&&al(fe,Tt),Xe}function no(fe,ae,ye,je){if(typeof ye=="object"&&ye!==null&&ye.type===d&&ye.key===null&&(ye=ye.props.children),typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case s:e:{for(var Xe=ye.key,st=ae;st!==null;){if(st.key===Xe){if(Xe=ye.type,Xe===d){if(st.tag===7){p(fe,st.sibling),ae=O(st,ye.props.children),ae.return=fe,fe=ae;break e}}else if(st.elementType===Xe||typeof Xe=="object"&&Xe!==null&&Xe.$$typeof===_&&G7(Xe)===st.type){p(fe,st.sibling),ae=O(st,ye.props),ae.ref=Td(fe,st,ye),ae.return=fe,fe=ae;break e}p(fe,st);break}else u(fe,st);st=st.sibling}ye.type===d?(ae=hl(ye.props.children,fe.mode,je,ye.key),ae.return=fe,fe=ae):(je=_1(ye.type,ye.key,ye.props,null,fe.mode,je),je.ref=Td(fe,ae,ye),je.return=fe,fe=je)}return G(fe);case c:e:{for(st=ye.key;ae!==null;){if(ae.key===st)if(ae.tag===4&&ae.stateNode.containerInfo===ye.containerInfo&&ae.stateNode.implementation===ye.implementation){p(fe,ae.sibling),ae=O(ae,ye.children||[]),ae.return=fe,fe=ae;break e}else{p(fe,ae);break}else u(fe,ae);ae=ae.sibling}ae=Q3(ye,fe.mode,je),ae.return=fe,fe=ae}return G(fe);case _:return st=ye._init,no(fe,ae,st(ye._payload),je)}if(J(ye))return Wt(fe,ae,ye,je);if(E(ye))return Xr(fe,ae,ye,je);K0(fe,ye)}return typeof ye=="string"&&ye!==""||typeof ye=="number"?(ye=""+ye,ae!==null&&ae.tag===6?(p(fe,ae.sibling),ae=O(ae,ye),ae.return=fe,fe=ae):(p(fe,ae),ae=$3(ye,fe.mode,je),ae.return=fe,fe=ae),G(fe)):p(fe,ae)}return no}var Oc=V7(!0),U7=V7(!1),Z0=Ki(null),q0=null,Pc=null,i3=null;function a3(){i3=Pc=q0=null}function W7(l,u,p){ee?(zt(Z0,u._currentValue),u._currentValue=p):(zt(Z0,u._currentValue2),u._currentValue2=p)}function o3(l){var u=Z0.current;Ut(Z0),ee?l._currentValue=u:l._currentValue2=u}function s3(l,u,p){for(;l!==null;){var S=l.alternate;if((l.childLanes&u)!==u?(l.childLanes|=u,S!==null&&(S.childLanes|=u)):S!==null&&(S.childLanes&u)!==u&&(S.childLanes|=u),l===p)break;l=l.return}}function Tc(l,u){q0=l,i3=Pc=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&u&&(Vr=!0),l.firstContext=null)}function Ti(l){var u=ee?l._currentValue:l._currentValue2;if(i3!==l)if(l={context:l,memoizedValue:u,next:null},Pc===null){if(q0===null)throw Error(a(308));Pc=l,q0.dependencies={lanes:0,firstContext:l}}else Pc=Pc.next=l;return u}var ol=null;function l3(l){ol===null?ol=[l]:ol.push(l)}function X7(l,u,p,S){var O=u.interleaved;return O===null?(p.next=p,l3(u)):(p.next=O.next,O.next=p),u.interleaved=p,ka(l,S)}function ka(l,u){l.lanes|=u;var p=l.alternate;for(p!==null&&(p.lanes|=u),p=l,l=l.return;l!==null;)l.childLanes|=u,p=l.alternate,p!==null&&(p.childLanes|=u),p=l,l=l.return;return p.tag===3?p.stateNode:null}var Wo=!1;function c3(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Y7(l,u){l=l.updateQueue,u.updateQueue===l&&(u.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Ja(l,u){return{eventTime:l,lane:u,tag:0,payload:null,callback:null,next:null}}function Xo(l,u,p){var S=l.updateQueue;if(S===null)return null;if(S=S.shared,(ht&2)!==0){var O=S.pending;return O===null?u.next=u:(u.next=O.next,O.next=u),S.pending=u,ka(l,p)}return O=S.interleaved,O===null?(u.next=u,l3(S)):(u.next=O.next,O.next=u),S.interleaved=u,ka(l,p)}function $0(l,u,p){if(u=u.updateQueue,u!==null&&(u=u.shared,(p&4194240)!==0)){var S=u.lanes;S&=l.pendingLanes,p|=S,u.lanes=p,il(l,p)}}function K7(l,u){var p=l.updateQueue,S=l.alternate;if(S!==null&&(S=S.updateQueue,p===S)){var O=null,A=null;if(p=p.firstBaseUpdate,p!==null){do{var G={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};A===null?O=A=G:A=A.next=G,p=p.next}while(p!==null);A===null?O=A=u:A=A.next=u}else O=A=u;p={baseState:S.baseState,firstBaseUpdate:O,lastBaseUpdate:A,shared:S.shared,effects:S.effects},l.updateQueue=p;return}l=p.lastBaseUpdate,l===null?p.firstBaseUpdate=u:l.next=u,p.lastBaseUpdate=u}function Q0(l,u,p,S){var O=l.updateQueue;Wo=!1;var A=O.firstBaseUpdate,G=O.lastBaseUpdate,ie=O.shared.pending;if(ie!==null){O.shared.pending=null;var ge=ie,ke=ge.next;ge.next=null,G===null?A=ke:G.next=ke,G=ge;var ze=l.alternate;ze!==null&&(ze=ze.updateQueue,ie=ze.lastBaseUpdate,ie!==G&&(ie===null?ze.firstBaseUpdate=ke:ie.next=ke,ze.lastBaseUpdate=ge))}if(A!==null){var tt=O.baseState;G=0,ze=ke=ge=null,ie=A;do{var Le=ie.lane,tn=ie.eventTime;if((S&Le)===Le){ze!==null&&(ze=ze.next={eventTime:tn,lane:0,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null});e:{var Wt=l,Xr=ie;switch(Le=u,tn=p,Xr.tag){case 1:if(Wt=Xr.payload,typeof Wt=="function"){tt=Wt.call(tn,tt,Le);break e}tt=Wt;break e;case 3:Wt.flags=Wt.flags&-65537|128;case 0:if(Wt=Xr.payload,Le=typeof Wt=="function"?Wt.call(tn,tt,Le):Wt,Le==null)break e;tt=i({},tt,Le);break e;case 2:Wo=!0}}ie.callback!==null&&ie.lane!==0&&(l.flags|=64,Le=O.effects,Le===null?O.effects=[ie]:Le.push(ie))}else tn={eventTime:tn,lane:Le,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},ze===null?(ke=ze=tn,ge=tt):ze=ze.next=tn,G|=Le;if(ie=ie.next,ie===null){if(ie=O.shared.pending,ie===null)break;Le=ie,ie=Le.next,Le.next=null,O.lastBaseUpdate=Le,O.shared.pending=null}}while(!0);if(ze===null&&(ge=tt),O.baseState=ge,O.firstBaseUpdate=ke,O.lastBaseUpdate=ze,u=O.shared.interleaved,u!==null){O=u;do G|=O.lane,O=O.next;while(O!==u)}else A===null&&(O.shared.lanes=0);ll|=G,l.lanes=G,l.memoizedState=tt}}function Z7(l,u,p){if(l=u.effects,u.effects=null,l!==null)for(u=0;up?p:4,l(!0);var S=p3.transition;p3.transition={};try{l(!1),u()}finally{bt=p,p3.transition=S}}function pb(){return Ii().memoizedState}function xA(l,u,p){var S=Zo(l);if(p={lane:S,action:p,hasEagerState:!1,eagerState:null,next:null},gb(l))mb(u,p);else if(p=X7(l,u,p,S),p!==null){var O=Sr();Ai(p,l,S,O),vb(p,u,S)}}function CA(l,u,p){var S=Zo(l),O={lane:S,action:p,hasEagerState:!1,eagerState:null,next:null};if(gb(l))mb(u,O);else{var A=l.alternate;if(l.lanes===0&&(A===null||A.lanes===0)&&(A=u.lastRenderedReducer,A!==null))try{var G=u.lastRenderedState,ie=A(G,p);if(O.hasEagerState=!0,O.eagerState=ie,U(ie,G)){var ge=u.interleaved;ge===null?(O.next=O,l3(u)):(O.next=ge.next,ge.next=O),u.interleaved=O;return}}catch{}finally{}p=X7(l,u,O,S),p!==null&&(O=Sr(),Ai(p,l,S,O),vb(p,u,S))}}function gb(l){var u=l.alternate;return l===gn||u!==null&&u===gn}function mb(l,u){Ad=t1=!0;var p=l.pending;p===null?u.next=u:(u.next=p.next,p.next=u),l.pending=u}function vb(l,u,p){if(p&4194240){var S=u.lanes;S&=l.pendingLanes,p|=S,u.lanes=p,il(l,p)}}var i1={readContext:Ti,useCallback:wr,useContext:wr,useEffect:wr,useImperativeHandle:wr,useInsertionEffect:wr,useLayoutEffect:wr,useMemo:wr,useReducer:wr,useRef:wr,useState:wr,useDebugValue:wr,useDeferredValue:wr,useTransition:wr,useMutableSource:wr,useSyncExternalStore:wr,useId:wr,unstable_isNewReconciler:!1},SA={readContext:Ti,useCallback:function(l,u){return Pa().memoizedState=[l,u===void 0?null:u],l},useContext:Ti,useEffect:ob,useImperativeHandle:function(l,u,p){return p=p!=null?p.concat([l]):null,n1(4194308,4,cb.bind(null,u,l),p)},useLayoutEffect:function(l,u){return n1(4194308,4,l,u)},useInsertionEffect:function(l,u){return n1(4,2,l,u)},useMemo:function(l,u){var p=Pa();return u=u===void 0?null:u,l=l(),p.memoizedState=[l,u],l},useReducer:function(l,u,p){var S=Pa();return u=p!==void 0?p(u):u,S.memoizedState=S.baseState=u,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:u},S.queue=l,l=l.dispatch=xA.bind(null,gn,l),[S.memoizedState,l]},useRef:function(l){var u=Pa();return l={current:l},u.memoizedState=l},useState:ib,useDebugValue:x3,useDeferredValue:function(l){return Pa().memoizedState=l},useTransition:function(){var l=ib(!1),u=l[0];return l=wA.bind(null,l[1]),Pa().memoizedState=l,[u,l]},useMutableSource:function(){},useSyncExternalStore:function(l,u,p){var S=gn,O=Pa();if(ln){if(p===void 0)throw Error(a(407));p=p()}else{if(p=u(),ar===null)throw Error(a(349));sl&30||J7(S,u,p)}O.memoizedState=p;var A={value:p,getSnapshot:u};return O.queue=A,ob(tb.bind(null,S,A,l),[l]),S.flags|=2048,Nd(9,eb.bind(null,S,A,p,u),void 0,null),p},useId:function(){var l=Pa(),u=ar.identifierPrefix;if(ln){var p=Qa,S=Oi;p=(S&~(1<<32-ui(S)-1)).toString(32)+p,u=":"+u+"R"+p,p=Ld++,0V3&&(u.flags|=128,S=!0,Fd(O,!1),u.lanes=4194304)}else{if(!S)if(l=J0(A),l!==null){if(u.flags|=128,S=!0,l=l.updateQueue,l!==null&&(u.updateQueue=l,u.flags|=4),Fd(O,!0),O.tail===null&&O.tailMode==="hidden"&&!A.alternate&&!ln)return xr(u),null}else 2*sn()-O.renderingStartTime>V3&&p!==1073741824&&(u.flags|=128,S=!0,Fd(O,!1),u.lanes=4194304);O.isBackwards?(A.sibling=u.child,u.child=A):(l=O.last,l!==null?l.sibling=A:u.child=A,O.last=A)}return O.tail!==null?(u=O.tail,O.rendering=u,O.tail=u.sibling,O.renderingStartTime=sn(),u.sibling=null,l=pn.current,zt(pn,S?l&1|2:l&1),u):(xr(u),null);case 22:case 23:return K3(),p=u.memoizedState!==null,l!==null&&l.memoizedState!==null!==p&&(u.flags|=8192),p&&u.mode&1?hi&1073741824&&(xr(u),ue&&u.subtreeFlags&6&&(u.flags|=8192)):xr(u),null;case 24:return null;case 25:return null}throw Error(a(156,u.tag))}function IA(l,u){switch(e3(u),u.tag){case 1:return vr(u.type)&&wc(),l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 3:return Ic(),Ut(mr),Ut(tr),f3(),l=u.flags,l&65536&&!(l&128)?(u.flags=l&-65537|128,u):null;case 5:return d3(u),null;case 13:if(Ut(pn),l=u.memoizedState,l!==null&&l.dehydrated!==null){if(u.alternate===null)throw Error(a(340));kc()}return l=u.flags,l&65536?(u.flags=l&-65537|128,u):null;case 19:return Ut(pn),null;case 4:return Ic(),null;case 10:return o3(u.type._context),null;case 22:case 23:return K3(),null;case 24:return null;default:return null}}var u1=!1,Cr=!1,AA=typeof WeakSet=="function"?WeakSet:Set,De=null;function Lc(l,u){var p=l.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(S){cn(l,u,S)}else p.current=null}function zb(l,u,p){try{p()}catch(S){cn(l,u,S)}}var Bb=!1;function LA(l,u){for(K(l.containerInfo),De=u;De!==null;)if(l=De,u=l.child,(l.subtreeFlags&1028)!==0&&u!==null)u.return=l,De=u;else for(;De!==null;){l=De;try{var p=l.alternate;if(l.flags&1024)switch(l.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var S=p.memoizedProps,O=p.memoizedState,A=l.stateNode,G=A.getSnapshotBeforeUpdate(l.elementType===l.type?S:$i(l.type,S),O);A.__reactInternalSnapshotBeforeUpdate=G}break;case 3:ue&&et(l.stateNode.containerInfo);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(ie){cn(l,l.return,ie)}if(u=l.sibling,u!==null){u.return=l.return,De=u;break}De=l.return}return p=Bb,Bb=!1,p}function zd(l,u,p){var S=u.updateQueue;if(S=S!==null?S.lastEffect:null,S!==null){var O=S=S.next;do{if((O.tag&l)===l){var A=O.destroy;O.destroy=void 0,A!==void 0&&zb(u,p,A)}O=O.next}while(O!==S)}}function d1(l,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var p=u=u.next;do{if((p.tag&l)===l){var S=p.create;p.destroy=S()}p=p.next}while(p!==u)}}function A3(l){var u=l.ref;if(u!==null){var p=l.stateNode;switch(l.tag){case 5:l=q(p);break;default:l=p}typeof u=="function"?u(l):u.current=l}}function Hb(l){var u=l.alternate;u!==null&&(l.alternate=null,Hb(u)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(u=l.stateNode,u!==null&&Ne(u)),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function Gb(l){return l.tag===5||l.tag===3||l.tag===4}function Vb(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||Gb(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function L3(l,u,p){var S=l.tag;if(S===5||S===6)l=l.stateNode,u?kt(p,l,u):fn(p,l);else if(S!==4&&(l=l.child,l!==null))for(L3(l,u,p),l=l.sibling;l!==null;)L3(l,u,p),l=l.sibling}function j3(l,u,p){var S=l.tag;if(S===5||S===6)l=l.stateNode,u?Pt(p,l,u):Dn(p,l);else if(S!==4&&(l=l.child,l!==null))for(j3(l,u,p),l=l.sibling;l!==null;)j3(l,u,p),l=l.sibling}var ur=null,Qi=!1;function Ma(l,u,p){for(p=p.child;p!==null;)N3(l,u,p),p=p.sibling}function N3(l,u,p){if(ki&&typeof ki.onCommitFiberUnmount=="function")try{ki.onCommitFiberUnmount(_c,p)}catch{}switch(p.tag){case 5:Cr||Lc(p,u);case 6:if(ue){var S=ur,O=Qi;ur=null,Ma(l,u,p),ur=S,Qi=O,ur!==null&&(Qi?Vt(ur,p.stateNode):En(ur,p.stateNode))}else Ma(l,u,p);break;case 18:ue&&ur!==null&&(Qi?Xm(ur,p.stateNode):Wm(ur,p.stateNode));break;case 4:ue?(S=ur,O=Qi,ur=p.stateNode.containerInfo,Qi=!0,Ma(l,u,p),ur=S,Qi=O):(ve&&(S=p.stateNode.containerInfo,O=Qt(S),li(S,O)),Ma(l,u,p));break;case 0:case 11:case 14:case 15:if(!Cr&&(S=p.updateQueue,S!==null&&(S=S.lastEffect,S!==null))){O=S=S.next;do{var A=O,G=A.destroy;A=A.tag,G!==void 0&&(A&2||A&4)&&zb(p,u,G),O=O.next}while(O!==S)}Ma(l,u,p);break;case 1:if(!Cr&&(Lc(p,u),S=p.stateNode,typeof S.componentWillUnmount=="function"))try{S.props=p.memoizedProps,S.state=p.memoizedState,S.componentWillUnmount()}catch(ie){cn(p,u,ie)}Ma(l,u,p);break;case 21:Ma(l,u,p);break;case 22:p.mode&1?(Cr=(S=Cr)||p.memoizedState!==null,Ma(l,u,p),Cr=S):Ma(l,u,p);break;default:Ma(l,u,p)}}function Ub(l){var u=l.updateQueue;if(u!==null){l.updateQueue=null;var p=l.stateNode;p===null&&(p=l.stateNode=new AA),u.forEach(function(S){var O=GA.bind(null,l,S);p.has(S)||(p.add(S),S.then(O,O))})}}function Ji(l,u){var p=u.deletions;if(p!==null)for(var S=0;S";case f1:return":has("+(F3(l)||"")+")";case p1:return'[role="'+l.value+'"]';case m1:return'"'+l.value+'"';case g1:return'[data-testname="'+l.value+'"]';default:throw Error(a(365))}}function qb(l,u){var p=[];l=[l,0];for(var S=0;SO&&(O=G),S&=~A}if(S=O,S=sn()-S,S=(120>S?120:480>S?480:1080>S?1080:1920>S?1920:3e3>S?3e3:4320>S?4320:1960*NA(S/1960))-S,10l?16:l,Ko===null)var S=!1;else{if(l=Ko,Ko=null,x1=0,(ht&6)!==0)throw Error(a(331));var O=ht;for(ht|=4,De=l.current;De!==null;){var A=De,G=A.child;if(De.flags&16){var ie=A.deletions;if(ie!==null){for(var ge=0;gesn()-G3?cl(l,0):H3|=p),Wr(l,u)}function a9(l,u){u===0&&(l.mode&1?(u=nl,nl<<=1,!(nl&130023424)&&(nl=4194304)):u=1);var p=Sr();l=ka(l,u),l!==null&&(_a(l,u,p),Wr(l,p))}function HA(l){var u=l.memoizedState,p=0;u!==null&&(p=u.retryLane),a9(l,p)}function GA(l,u){var p=0;switch(l.tag){case 13:var S=l.stateNode,O=l.memoizedState;O!==null&&(p=O.retryLane);break;case 19:S=l.stateNode;break;default:throw Error(a(314))}S!==null&&S.delete(u),a9(l,p)}var o9;o9=function(l,u,p){if(l!==null)if(l.memoizedProps!==u.pendingProps||mr.current)Vr=!0;else{if(!(l.lanes&p)&&!(u.flags&128))return Vr=!1,TA(l,u,p);Vr=(l.flags&131072)!==0}else Vr=!1,ln&&u.flags&1048576&&R7(u,nr,u.index);switch(u.lanes=0,u.tag){case 2:var S=u.type;s1(l,u),l=u.pendingProps;var O=Vo(u,tr.current);Tc(u,p),O=m3(null,u,S,l,O,p);var A=v3();return u.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,vr(S)?(A=!0,Uo(u)):A=!1,u.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,c3(u),O.updater=a1,u.stateNode=O,O._reactInternals=u,S3(u,S,l,p),u=O3(null,u,S,!0,A,p)):(u.tag=0,ln&&A&&Jm(u),jr(null,u,O,p),u=u.child),u;case 16:S=u.elementType;e:{switch(s1(l,u),l=u.pendingProps,O=S._init,S=O(S._payload),u.type=S,O=u.tag=UA(S),l=$i(S,l),O){case 0:u=k3(null,u,S,l,p);break e;case 1:u=Ib(null,u,S,l,p);break e;case 11:u=kb(null,u,S,l,p);break e;case 14:u=Ob(null,u,S,$i(S.type,l),p);break e}throw Error(a(306,S,""))}return u;case 0:return S=u.type,O=u.pendingProps,O=u.elementType===S?O:$i(S,O),k3(l,u,S,O,p);case 1:return S=u.type,O=u.pendingProps,O=u.elementType===S?O:$i(S,O),Ib(l,u,S,O,p);case 3:e:{if(Ab(u),l===null)throw Error(a(387));S=u.pendingProps,A=u.memoizedState,O=A.element,Y7(l,u),Q0(u,S,null,p);var G=u.memoizedState;if(S=G.element,se&&A.isDehydrated)if(A={element:S,isDehydrated:!1,cache:G.cache,pendingSuspenseBoundaries:G.pendingSuspenseBoundaries,transitions:G.transitions},u.updateQueue.baseState=A,u.memoizedState=A,u.flags&256){O=Ac(Error(a(423)),u),u=Lb(l,u,S,p,O);break e}else if(S!==O){O=Ac(Error(a(424)),u),u=Lb(l,u,S,p,O);break e}else for(se&&(Pi=Fm(u.stateNode.containerInfo),di=u,ln=!0,qi=null,Pd=!1),p=U7(u,null,S,p),u.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(kc(),S===O){u=eo(l,u,p);break e}jr(l,u,S,p)}u=u.child}return u;case 5:return q7(u),l===null&&n3(u),S=u.type,O=u.pendingProps,A=l!==null?l.memoizedProps:null,G=O.children,re(S,O)?G=null:A!==null&&re(S,A)&&(u.flags|=32),Mb(l,u),jr(l,u,G,p),u.child;case 6:return l===null&&n3(u),null;case 13:return jb(l,u,p);case 4:return u3(u,u.stateNode.containerInfo),S=u.pendingProps,l===null?u.child=Oc(u,null,S,p):jr(l,u,S,p),u.child;case 11:return S=u.type,O=u.pendingProps,O=u.elementType===S?O:$i(S,O),kb(l,u,S,O,p);case 7:return jr(l,u,u.pendingProps,p),u.child;case 8:return jr(l,u,u.pendingProps.children,p),u.child;case 12:return jr(l,u,u.pendingProps.children,p),u.child;case 10:e:{if(S=u.type._context,O=u.pendingProps,A=u.memoizedProps,G=O.value,W7(u,S,G),A!==null)if(U(A.value,G)){if(A.children===O.children&&!mr.current){u=eo(l,u,p);break e}}else for(A=u.child,A!==null&&(A.return=u);A!==null;){var ie=A.dependencies;if(ie!==null){G=A.child;for(var ge=ie.firstContext;ge!==null;){if(ge.context===S){if(A.tag===1){ge=Ja(-1,p&-p),ge.tag=2;var ke=A.updateQueue;if(ke!==null){ke=ke.shared;var ze=ke.pending;ze===null?ge.next=ge:(ge.next=ze.next,ze.next=ge),ke.pending=ge}}A.lanes|=p,ge=A.alternate,ge!==null&&(ge.lanes|=p),s3(A.return,p,u),ie.lanes|=p;break}ge=ge.next}}else if(A.tag===10)G=A.type===u.type?null:A.child;else if(A.tag===18){if(G=A.return,G===null)throw Error(a(341));G.lanes|=p,ie=G.alternate,ie!==null&&(ie.lanes|=p),s3(G,p,u),G=A.sibling}else G=A.child;if(G!==null)G.return=A;else for(G=A;G!==null;){if(G===u){G=null;break}if(A=G.sibling,A!==null){A.return=G.return,G=A;break}G=G.return}A=G}jr(l,u,O.children,p),u=u.child}return u;case 9:return O=u.type,S=u.pendingProps.children,Tc(u,p),O=Ti(O),S=S(O),u.flags|=1,jr(l,u,S,p),u.child;case 14:return S=u.type,O=$i(S,u.pendingProps),O=$i(S.type,O),Ob(l,u,S,O,p);case 15:return Pb(l,u,u.type,u.pendingProps,p);case 17:return S=u.type,O=u.pendingProps,O=u.elementType===S?O:$i(S,O),s1(l,u),u.tag=1,vr(S)?(l=!0,Uo(u)):l=!1,Tc(u,p),bb(u,S,O),S3(u,S,O,p),O3(null,u,S,!0,l,p);case 19:return Db(l,u,p);case 22:return Tb(l,u,p)}throw Error(a(156,u.tag))};function s9(l,u){return Sc(l,u)}function VA(l,u,p,S){this.tag=l,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Li(l,u,p,S){return new VA(l,u,p,S)}function q3(l){return l=l.prototype,!(!l||!l.isReactComponent)}function UA(l){if(typeof l=="function")return q3(l)?1:0;if(l!=null){if(l=l.$$typeof,l===v)return 11;if(l===C)return 14}return 2}function $o(l,u){var p=l.alternate;return p===null?(p=Li(l.tag,u,l.key,l.mode),p.elementType=l.elementType,p.type=l.type,p.stateNode=l.stateNode,p.alternate=l,l.alternate=p):(p.pendingProps=u,p.type=l.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=l.flags&14680064,p.childLanes=l.childLanes,p.lanes=l.lanes,p.child=l.child,p.memoizedProps=l.memoizedProps,p.memoizedState=l.memoizedState,p.updateQueue=l.updateQueue,u=l.dependencies,p.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},p.sibling=l.sibling,p.index=l.index,p.ref=l.ref,p}function _1(l,u,p,S,O,A){var G=2;if(S=l,typeof l=="function")q3(l)&&(G=1);else if(typeof l=="string")G=5;else e:switch(l){case d:return hl(p.children,O,A,u);case h:G=8,O|=8;break;case b:return l=Li(12,p,u,O|2),l.elementType=b,l.lanes=A,l;case w:return l=Li(13,p,u,O),l.elementType=w,l.lanes=A,l;case k:return l=Li(19,p,u,O),l.elementType=k,l.lanes=A,l;case f:return k1(p,O,A,u);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case m:G=10;break e;case g:G=9;break e;case v:G=11;break e;case C:G=14;break e;case _:G=16,S=null;break e}throw Error(a(130,l==null?l:typeof l,""))}return u=Li(G,p,u,O),u.elementType=l,u.type=S,u.lanes=A,u}function hl(l,u,p,S){return l=Li(7,l,S,u),l.lanes=p,l}function k1(l,u,p,S){return l=Li(22,l,S,u),l.elementType=f,l.lanes=p,l.stateNode={isHidden:!1},l}function $3(l,u,p){return l=Li(6,l,null,u),l.lanes=p,l}function Q3(l,u,p){return u=Li(4,l.children!==null?l.children:[],l.key,u),u.lanes=p,u.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},u}function WA(l,u,p,S,O){this.tag=u,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=B,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ed(0),this.expirationTimes=Ed(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ed(0),this.identifierPrefix=S,this.onRecoverableError=O,se&&(this.mutableSourceEagerHydrationData=null)}function l9(l,u,p,S,O,A,G,ie,ge){return l=new WA(l,u,p,ie,ge),u===1?(u=1,A===!0&&(u|=8)):u=0,A=Li(3,null,null,u),l.current=A,A.stateNode=l,A.memoizedState={element:S,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},c3(A),l}function c9(l){if(!l)return Ea;l=l._reactInternals;e:{if(P(l)!==l||l.tag!==1)throw Error(a(170));var u=l;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(vr(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(u!==null);throw Error(a(171))}if(l.tag===1){var p=l.type;if(vr(p))return tl(l,p,u)}return u}function u9(l){var u=l._reactInternals;if(u===void 0)throw typeof l.render=="function"?Error(a(188)):(l=Object.keys(l).join(","),Error(a(268,l)));return l=R(u),l===null?null:l.stateNode}function d9(l,u){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var p=l.retryLane;l.retryLane=p!==0&&p=ke&&A>=tt&&O<=ze&&G<=Le){l.splice(u,1);break}else if(S!==ke||p.width!==ge.width||LeG){if(!(A!==tt||p.height!==ge.height||zeO)){ke>S&&(ge.width+=ke-S,ge.x=S),zeA&&(ge.height+=tt-A,ge.y=A),Lep&&(p=G)),G ")+` No matching component was found for: `)+l.join(" > ")}return null},t.getPublicRootInstance=function(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return q(l.child.stateNode);default:return l.child.stateNode}},t.injectIntoDevTools=function(l){if(l={bundleType:l.bundleType,version:l.version,rendererPackageName:l.rendererPackageName,rendererConfig:l.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:o.ReactCurrentDispatcher,findHostInstanceByFiber:XA,findFiberByHostInstance:l.findFiberByHostInstance||YA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1"},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")l=!1;else{var u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(u.isDisabled||!u.supportsFiber)l=!0;else{try{_c=u.inject(l),ki=u}catch{}l=!!u.checkDCE}}return l},t.isAlreadyRendering=function(){return!1},t.observeVisibleRects=function(l,u,p,S){if(!He)throw Error(a(363));l=z3(l,u);var O=Mn(l,p,S).disconnect;return{disconnect:function(){O()}}},t.registerMutableSourceForHydration=function(l,u){var p=u._getVersion;p=p(u._source),l.mutableSourceEagerHydrationData==null?l.mutableSourceEagerHydrationData=[u,p]:l.mutableSourceEagerHydrationData.push(u,p)},t.runWithPriority=function(l,u){var p=bt;try{return bt=l,u()}finally{bt=p}},t.shouldError=function(){return null},t.shouldSuspend=function(){return!1},t.updateContainer=function(l,u,p,S){var O=u.current,A=Sr(),G=Zo(O);return p=c9(p),u.context===null?u.context=p:u.pendingContext=p,u=Ja(A,G),u.payload={element:l},S=S===void 0?null:S,S!==null&&(u.callback=S),l=Xo(O,u,G),l!==null&&(Ai(l,O,G,A),$0(l,O,G)),G},t};fT.exports=WB;var XB=fT.exports;const YB=uc(XB);var pT={exports:{}},Sl={};Sl.ConcurrentRoot=1,Sl.ContinuousEventPriority=4,Sl.DefaultEventPriority=16,Sl.DiscreteEventPriority=1,Sl.IdleEventPriority=536870912,Sl.LegacyRoot=0,pT.exports=Sl;var gT=pT.exports;const Vx={children:!0,ref:!0,key:!0,style:!0,forwardedRef:!0,unstable_applyCache:!0,unstable_applyDrawHitFromCache:!0};let Ux=!1,Wx=!1;const s8=".react-konva-event";let mT=!1;function KB(e){mT=e}const ZB=`ReactKonva: You have a Konva node with draggable = true and position defined but no onDragMove or onDragEnd events are handled. Position of a node will be changed during drag&drop, so you should update state of the react app as well. Consider to add onDragMove or onDragEnd events. For more info see: https://github.com/konvajs/react-konva/issues/256 `,qB=`ReactKonva: You are using "zIndex" attribute for a Konva node. react-konva may get confused with ordering. Just define correct order of elements in your render function of a component. For more info see: https://github.com/konvajs/react-konva/issues/194 `,$B={};function vm(e,t,n=$B){if(!Ux&&"zIndex"in t&&(console.warn(qB),Ux=!0),!Wx&&t.draggable){var r=t.x!==void 0||t.y!==void 0,i=t.onDragEnd||t.onDragMove;r&&!i&&(console.warn(ZB),Wx=!0)}for(var a in n)if(!Vx[a]){var o=a.slice(0,2)==="on",s=n[a]!==t[a];if(o&&s){var c=a.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e.off(c,n[a])}var d=!t.hasOwnProperty(a);d&&e.setAttr(a,void 0)}var h=mT||t._useStrictMode,b={},m=!1;const g={};for(var a in t)if(!Vx[a]){var o=a.slice(0,2)==="on",v=n[a]!==t[a];if(o&&v){var c=a.substr(2).toLowerCase();c.substr(0,7)==="content"&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t[a]&&(g[c]=t[a])}!o&&(t[a]!==n[a]||h&&t[a]!==e.getAttr(a))&&(m=!0,b[a]=t[a])}m&&(e.setAttrs(b),Ws(e));for(var c in g)e.on(c+s8,g[c])}function Ws(e){if(!ct.Konva.autoDrawEnabled){var t=e.getLayer()||e.getStage();t&&t.batchDraw()}}const vT={},QB={};p0.Node.prototype._applyProps=vm;function JB(e,t){if(typeof t=="string"){console.error(`Do not use plain text as child of Konva.Node. You are using text: ${t}`);return}e.add(t),Ws(e)}function eH(e,t,n){let r=p0[e];r||(console.error(`Konva has no node with the type ${e}. Group will be used instead. If you use minimal version of react-konva, just import required nodes into Konva: "import "konva/lib/shapes/${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=p0.Group);const i={},a={};for(var o in t){var s=o.slice(0,2)==="on";s?a[o]=t[o]:i[o]=t[o]}const c=new r(i);return vm(c,a),c}function tH(e,t,n){console.error(`Text components are not supported for now in ReactKonva. Your text is: "${e}"`)}function nH(e,t,n){return!1}function rH(e){return e}function iH(){return null}function aH(){return null}function oH(e,t,n,r){return QB}function sH(){}function lH(e){}function cH(e,t){return!1}function uH(){return vT}function dH(){return vT}const hH=setTimeout,fH=clearTimeout,pH=-1;function gH(e,t){return!1}const mH=!1,vH=!0,yH=!0;function bH(e,t){t.parent===e?t.moveToTop():e.add(t),Ws(e)}function wH(e,t){t.parent===e?t.moveToTop():e.add(t),Ws(e)}function yT(e,t,n){t._remove(),e.add(t),t.setZIndex(n.getZIndex()),Ws(e)}function xH(e,t,n){yT(e,t,n)}function CH(e,t){t.destroy(),t.off(s8),Ws(e)}function SH(e,t){t.destroy(),t.off(s8),Ws(e)}function EH(e,t,n){console.error(`Text components are not yet supported in ReactKonva. You text is: "${n}"`)}function _H(e,t,n){}function kH(e,t,n,r,i){vm(e,i,r)}function OH(e){e.hide(),Ws(e)}function PH(e){}function TH(e,t){(t.visible==null||t.visible)&&e.show()}function MH(e,t){}function IH(e){}function AH(){}const LH=()=>gT.DefaultEventPriority,jH=Object.freeze(Object.defineProperty({__proto__:null,appendChild:bH,appendChildToContainer:wH,appendInitialChild:JB,cancelTimeout:fH,clearContainer:IH,commitMount:_H,commitTextUpdate:EH,commitUpdate:kH,createInstance:eH,createTextInstance:tH,detachDeletedInstance:AH,finalizeInitialChildren:nH,getChildHostContext:dH,getCurrentEventPriority:LH,getPublicInstance:rH,getRootHostContext:uH,hideInstance:OH,hideTextInstance:PH,idlePriority:Th.unstable_IdlePriority,insertBefore:yT,insertInContainerBefore:xH,isPrimaryRenderer:mH,noTimeout:pH,now:Th.unstable_now,prepareForCommit:iH,preparePortalMount:aH,prepareUpdate:oH,removeChild:CH,removeChildFromContainer:SH,resetAfterCommit:sH,resetTextContent:lH,run:Th.unstable_runWithPriority,scheduleTimeout:hH,shouldDeprioritizeSubtree:cH,shouldSetTextContent:gH,supportsMutation:yH,unhideInstance:TH,unhideTextInstance:MH,warnsIfNotActing:vH},Symbol.toStringTag,{value:"Module"}));var NH=Object.defineProperty,DH=Object.defineProperties,RH=Object.getOwnPropertyDescriptors,Xx=Object.getOwnPropertySymbols,FH=Object.prototype.hasOwnProperty,zH=Object.prototype.propertyIsEnumerable,Yx=(e,t,n)=>t in e?NH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kx=(e,t)=>{for(var n in t||(t={}))FH.call(t,n)&&Yx(e,n,t[n]);if(Xx)for(var n of Xx(t))zH.call(t,n)&&Yx(e,n,t[n]);return e},BH=(e,t)=>DH(e,RH(t)),Zx,qx;typeof window<"u"&&((Zx=window.document)!=null&&Zx.createElement||((qx=window.navigator)==null?void 0:qx.product)==="ReactNative")?V.useLayoutEffect:V.useEffect;function bT(e,t,n){if(!e)return;if(n(e)===!0)return e;let r=e.child;for(;r;){const i=bT(r,t,n);if(i)return i;r=r.sibling}}function wT(e){try{return Object.defineProperties(e,{_currentRenderer:{get(){return null},set(){}},_currentRenderer2:{get(){return null},set(){}}})}catch{return e}}const $x=console.error;console.error=function(){const e=[...arguments].join("");if(e?.startsWith("Warning:")&&e.includes("useContext")){console.error=$x;return}return $x.apply(this,arguments)};const l8=wT(V.createContext(null));class xT extends V.Component{render(){return V.createElement(l8.Provider,{value:this._reactInternals},this.props.children)}}function HH(){const e=V.useContext(l8);if(e===null)throw new Error("its-fine: useFiber must be called within a !");const t=V.useId();return V.useMemo(()=>{for(const n of[e,e?.alternate]){if(!n)continue;const r=bT(n,!1,i=>{let a=i.memoizedState;for(;a;){if(a.memoizedState===t)return!0;a=a.next}});if(r)return r}},[e,t])}function GH(){const e=HH(),[t]=V.useState(()=>new Map);t.clear();let n=e;for(;n;){if(n.type&&typeof n.type=="object"){const r=n.type._context===void 0&&n.type.Provider===n.type?n.type:n.type._context;r&&r!==l8&&!t.has(r)&&t.set(r,V.useContext(wT(r)))}n=n.return}return t}function VH(){const e=GH();return V.useMemo(()=>Array.from(e.keys()).reduce((t,n)=>r=>V.createElement(t,null,V.createElement(n.Provider,BH(Kx({},r),{value:e.get(n)}))),t=>V.createElement(xT,Kx({},t))),[e])}function UH(e){const t=y.useRef({});return y.useLayoutEffect(()=>{t.current=e}),y.useLayoutEffect(()=>()=>{t.current={}},[]),t.current}const WH=e=>{const t=y.useRef(),n=y.useRef(),r=y.useRef(),i=UH(e),a=VH(),o=s=>{const{forwardedRef:c}=e;c&&(typeof c=="function"?c(s):c.current=s)};return y.useLayoutEffect(()=>(n.current=new p0.Stage({width:e.width,height:e.height,container:t.current}),o(n.current),r.current=_h.createContainer(n.current,gT.LegacyRoot,!1,null),_h.updateContainer(y.createElement(a,{},e.children),r.current),()=>{p0.isBrowser&&(o(null),_h.updateContainer(null,r.current,null),n.current.destroy())}),[]),y.useLayoutEffect(()=>{o(n.current),vm(n.current,e,i),_h.updateContainer(y.createElement(a,{},e.children),r.current,null)}),y.createElement("div",{ref:t,id:e.id,accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},c8="Layer",XH="Group",CT="Rect",ST="Ellipse",YH="Line",ym="Image",KH="Text",ZH="RegularPolygon",qH="Arrow",ET="Transformer",_h=YB(jH);_h.injectIntoDevTools({findHostInstanceByFiber:()=>null,bundleType:0,version:y.version,rendererPackageName:"react-konva"});const _T=y.forwardRef((e,t)=>y.createElement(xT,{},y.createElement(WH,{...e,forwardedRef:t}))),$H=KB;var Oy=function(e,t,n,r){return Math.min(e/n,t/r)||1},sg="FIE_root",QH="FIE_design-layer",kT="FIE_transformers-layer",OT="FIE_original-image",PT="FIE_nodes-transformer",Hs="watermark",Py="353297d2-40b4-4684-a875-45a2178a8157",TT=.92,qt={FINETUNE:"Finetune",FILTERS:"Filters",ADJUST:"Adjust",WATERMARK:"Watermark",ANNOTATE:"Annotate",RESIZE:"Resize"},de={CROP:"Crop",ROTATE:"Rotate",FLIP_X:"Flip_X",FLIP_Y:"Flip_Y",BRIGHTNESS:"Brightness",CONTRAST:"Contrast",HSV:"HueSaturationValue",WARMTH:"Warmth",BLUR:"Blur",THRESHOLD:"Threshold",POSTERIZE:"Posterize",PIXELATE:"Pixelate",NOISE:"Noise",FILTERS:"Filters",RECT:"Rect",ELLIPSE:"Ellipse",POLYGON:"Polygon",TEXT:"Text",LINE:"Line",IMAGE:"Image",ARROW:"Arrow",WATERMARK:"Watermark",PEN:"Pen",RESIZE:"Resize"},u8={X:"X",Y:"Y"},va=1,td=["png","jpeg","jpg","webp"],JH=[].concat(td,["svg","gif","avif","apng"]),Qx=td[0],Co={DEFAULT:"default",DRAW:"crosshair",SELECT:"pointer",MOVE:"move",DRAG:"GRAB"},d8="Crop",MT="custom",hc="ellipse",zn={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},Jx={WIDTH:14,HEIGHT:14},IT={AFTER_SAVE:"after-saving",CLOSE_BUTTON:"close-button-clicked"},nd={WARNING:"warning",ERROR:"error"},eC={top:"north",bottom:"south",left:"west",center:"center",right:"east"},eG={northwest:"top-left",northcenter:"top-center",northeast:"top-right",centerwest:"center-left",centercenter:"center-center",centereast:"center-right",southwest:"bottom-left",southcenter:"bottom-center",southeast:"bottom-right"},tG=function(e,t){var n=2{e.Konva[i.prototype.getClassName()]=i};e._registerNode=r,e.Konva._injectGlobal(e.Konva)})(ft);var Sn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Transform=void 0;const t=ft;class n{constructor(x=[1,0,0,1,0,0]){this.dirty=!1,this.m=x&&x.slice()||[1,0,0,1,0,0]}reset(){this.m[0]=1,this.m[1]=0,this.m[2]=0,this.m[3]=1,this.m[4]=0,this.m[5]=0}copy(){return new n(this.m)}copyInto(x){x.m[0]=this.m[0],x.m[1]=this.m[1],x.m[2]=this.m[2],x.m[3]=this.m[3],x.m[4]=this.m[4],x.m[5]=this.m[5]}point(x){var E=this.m;return{x:E[0]*x.x+E[2]*x.y+E[4],y:E[1]*x.x+E[3]*x.y+E[5]}}translate(x,E){return this.m[4]+=this.m[0]*x+this.m[2]*E,this.m[5]+=this.m[1]*x+this.m[3]*E,this}scale(x,E){return this.m[0]*=x,this.m[1]*=x,this.m[2]*=E,this.m[3]*=E,this}rotate(x){var E=Math.cos(x),M=Math.sin(x),j=this.m[0]*E+this.m[2]*M,P=this.m[1]*E+this.m[3]*M,N=this.m[0]*-M+this.m[2]*E,T=this.m[1]*-M+this.m[3]*E;return this.m[0]=j,this.m[1]=P,this.m[2]=N,this.m[3]=T,this}getTranslation(){return{x:this.m[4],y:this.m[5]}}skew(x,E){var M=this.m[0]+this.m[2]*E,j=this.m[1]+this.m[3]*E,P=this.m[2]+this.m[0]*x,N=this.m[3]+this.m[1]*x;return this.m[0]=M,this.m[1]=j,this.m[2]=P,this.m[3]=N,this}multiply(x){var E=this.m[0]*x.m[0]+this.m[2]*x.m[1],M=this.m[1]*x.m[0]+this.m[3]*x.m[1],j=this.m[0]*x.m[2]+this.m[2]*x.m[3],P=this.m[1]*x.m[2]+this.m[3]*x.m[3],N=this.m[0]*x.m[4]+this.m[2]*x.m[5]+this.m[4],T=this.m[1]*x.m[4]+this.m[3]*x.m[5]+this.m[5];return this.m[0]=E,this.m[1]=M,this.m[2]=j,this.m[3]=P,this.m[4]=N,this.m[5]=T,this}invert(){var x=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),E=this.m[3]*x,M=-this.m[1]*x,j=-this.m[2]*x,P=this.m[0]*x,N=x*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),T=x*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=E,this.m[1]=M,this.m[2]=j,this.m[3]=P,this.m[4]=N,this.m[5]=T,this}getMatrix(){return this.m}decompose(){var x=this.m[0],E=this.m[1],M=this.m[2],j=this.m[3],P=this.m[4],N=this.m[5],T=x*j-E*M;let R={x:P,y:N,rotation:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(x!=0||E!=0){var z=Math.sqrt(x*x+E*E);R.rotation=E>0?Math.acos(x/z):-Math.acos(x/z),R.scaleX=z,R.scaleY=T/z,R.skewX=(x*M+E*j)/T,R.skewY=0}else if(M!=0||j!=0){var H=Math.sqrt(M*M+j*j);R.rotation=Math.PI/2-(j>0?Math.acos(-M/H):-Math.acos(M/H)),R.scaleX=T/H,R.scaleY=H,R.skewX=0,R.skewY=(x*M+E*j)/T}return R.rotation=e.Util._getRotation(R.rotation),R}}e.Transform=n;var r="[object Array]",i="[object Number]",a="[object String]",o="[object Boolean]",s=Math.PI/180,c=180/Math.PI,d="#",h="",b="0",m="Konva warning: ",g="Konva error: ",v="rgb(",w={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},k=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/,C=[];const _=typeof requestAnimationFrame<"u"&&requestAnimationFrame||function(f){setTimeout(f,60)};e.Util={_isElement(f){return!!(f&&f.nodeType==1)},_isFunction(f){return!!(f&&f.constructor&&f.call&&f.apply)},_isPlainObject(f){return!!f&&f.constructor===Object},_isArray(f){return Object.prototype.toString.call(f)===r},_isNumber(f){return Object.prototype.toString.call(f)===i&&!isNaN(f)&&isFinite(f)},_isString(f){return Object.prototype.toString.call(f)===a},_isBoolean(f){return Object.prototype.toString.call(f)===o},isObject(f){return f instanceof Object},isValidSelector(f){if(typeof f!="string")return!1;var x=f[0];return x==="#"||x==="."||x===x.toUpperCase()},_sign(f){return f===0||f>0?1:-1},requestAnimFrame(f){C.push(f),C.length===1&&_(function(){const x=C;C=[],x.forEach(function(E){E()})})},createCanvasElement(){var f=document.createElement("canvas");try{f.style=f.style||{}}catch{}return f},createImageElement(){return document.createElement("img")},_isInDocument(f){for(;f=f.parentNode;)if(f==document)return!0;return!1},_urlToImage(f,x){var E=e.Util.createImageElement();E.onload=function(){x(E)},E.src=f},_rgbToHex(f,x,E){return((1<<24)+(f<<16)+(x<<8)+E).toString(16).slice(1)},_hexToRgb(f){f=f.replace(d,h);var x=parseInt(f,16);return{r:x>>16&255,g:x>>8&255,b:x&255}},getRandomColor(){for(var f=(Math.random()*16777215<<0).toString(16);f.length<6;)f=b+f;return d+f},getRGB(f){var x;return f in w?(x=w[f],{r:x[0],g:x[1],b:x[2]}):f[0]===d?this._hexToRgb(f.substring(1)):f.substr(0,4)===v?(x=k.exec(f.replace(/ /g,"")),{r:parseInt(x[1],10),g:parseInt(x[2],10),b:parseInt(x[3],10)}):{r:0,g:0,b:0}},colorToRGBA(f){return f=f||"black",e.Util._namedColorToRBA(f)||e.Util._hex3ColorToRGBA(f)||e.Util._hex4ColorToRGBA(f)||e.Util._hex6ColorToRGBA(f)||e.Util._hex8ColorToRGBA(f)||e.Util._rgbColorToRGBA(f)||e.Util._rgbaColorToRGBA(f)||e.Util._hslColorToRGBA(f)},_namedColorToRBA(f){var x=w[f.toLowerCase()];return x?{r:x[0],g:x[1],b:x[2],a:1}:null},_rgbColorToRGBA(f){if(f.indexOf("rgb(")===0){f=f.match(/rgb\(([^)]+)\)/)[1];var x=f.split(/ *, */).map(Number);return{r:x[0],g:x[1],b:x[2],a:1}}},_rgbaColorToRGBA(f){if(f.indexOf("rgba(")===0){f=f.match(/rgba\(([^)]+)\)/)[1];var x=f.split(/ *, */).map((E,M)=>E.slice(-1)==="%"?M===3?parseInt(E)/100:parseInt(E)/100*255:Number(E));return{r:x[0],g:x[1],b:x[2],a:x[3]}}},_hex8ColorToRGBA(f){if(f[0]==="#"&&f.length===9)return{r:parseInt(f.slice(1,3),16),g:parseInt(f.slice(3,5),16),b:parseInt(f.slice(5,7),16),a:parseInt(f.slice(7,9),16)/255}},_hex6ColorToRGBA(f){if(f[0]==="#"&&f.length===7)return{r:parseInt(f.slice(1,3),16),g:parseInt(f.slice(3,5),16),b:parseInt(f.slice(5,7),16),a:1}},_hex4ColorToRGBA(f){if(f[0]==="#"&&f.length===5)return{r:parseInt(f[1]+f[1],16),g:parseInt(f[2]+f[2],16),b:parseInt(f[3]+f[3],16),a:parseInt(f[4]+f[4],16)/255}},_hex3ColorToRGBA(f){if(f[0]==="#"&&f.length===4)return{r:parseInt(f[1]+f[1],16),g:parseInt(f[2]+f[2],16),b:parseInt(f[3]+f[3],16),a:1}},_hslColorToRGBA(f){if(/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(f)){const[x,...E]=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(f),M=Number(E[0])/360,j=Number(E[1])/100,P=Number(E[2])/100;let N,T,R;if(j===0)return R=P*255,{r:Math.round(R),g:Math.round(R),b:Math.round(R),a:1};P<.5?N=P*(1+j):N=P+j-P*j;const z=2*P-N,H=[0,0,0];for(let J=0;J<3;J++)T=M+1/3*-(J-1),T<0&&T++,T>1&&T--,6*T<1?R=z+(N-z)*6*T:2*T<1?R=N:3*T<2?R=z+(N-z)*(2/3-T)*6:R=z,H[J]=R*255;return{r:Math.round(H[0]),g:Math.round(H[1]),b:Math.round(H[2]),a:1}}},haveIntersection(f,x){return!(x.x>f.x+f.width||x.x+x.widthf.y+f.height||x.y+x.height1?(N=E,T=M,R=(E-j)*(E-j)+(M-P)*(M-P)):(N=f+H*(E-f),T=x+H*(M-x),R=(N-j)*(N-j)+(T-P)*(T-P))}return[N,T,R]},_getProjectionToLine(f,x,E){var M=e.Util.cloneObject(f),j=Number.MAX_VALUE;return x.forEach(function(P,N){if(!(!E&&N===x.length-1)){var T=x[(N+1)%x.length],R=e.Util._getProjectionToSegment(P.x,P.y,T.x,T.y,f.x,f.y),z=R[0],H=R[1],J=R[2];Jx.length){var N=x;x=f,f=N}for(M=0;M{x.width=0,x.height=0})},drawRoundedRectPath(f,x,E,M){let j=0,P=0,N=0,T=0;typeof M=="number"?j=P=N=T=Math.min(M,x/2,E/2):(j=Math.min(M[0]||0,x/2,E/2),P=Math.min(M[1]||0,x/2,E/2),T=Math.min(M[2]||0,x/2,E/2),N=Math.min(M[3]||0,x/2,E/2)),f.moveTo(j,0),f.lineTo(x-P,0),f.arc(x-P,P,P,Math.PI*3/2,0,!1),f.lineTo(x,E-T),f.arc(x-T,E-T,T,0,Math.PI/2,!1),f.lineTo(N,E),f.arc(N,E-N,N,Math.PI/2,Math.PI,!1),f.lineTo(0,j),f.arc(j,j,j,Math.PI,Math.PI*3/2,!1)}}})(Sn);var hn={},at={},Be={};Object.defineProperty(Be,"__esModule",{value:!0}),Be.getComponentValidator=Be.getBooleanValidator=Be.getNumberArrayValidator=Be.getFunctionValidator=Be.getStringOrGradientValidator=Be.getStringValidator=Be.getNumberOrAutoValidator=Be.getNumberOrArrayOfNumbersValidator=f8=Be.getNumberValidator=Be.alphaComponent=Be.RGBComponent=void 0;const jo=ft,Tn=Sn;function No(e){return Tn.Util._isString(e)?'"'+e+'"':Object.prototype.toString.call(e)==="[object Number]"||Tn.Util._isBoolean(e)?e:Object.prototype.toString.call(e)}function iG(e){return e>255?255:e<0?0:Math.round(e)}Be.RGBComponent=iG;function aG(e){return e>1?1:e<1e-4?1e-4:e}Be.alphaComponent=aG;function oG(){if(jo.Konva.isUnminified)return function(e,t){return Tn.Util._isNumber(e)||Tn.Util.warn(No(e)+' is a not valid value for "'+t+'" attribute. The value should be a number.'),e}}var f8=Be.getNumberValidator=oG;function sG(e){if(jo.Konva.isUnminified)return function(t,n){let r=Tn.Util._isNumber(t),i=Tn.Util._isArray(t)&&t.length==e;return!r&&!i&&Tn.Util.warn(No(t)+' is a not valid value for "'+n+'" attribute. The value should be a number or Array('+e+")"),t}}Be.getNumberOrArrayOfNumbersValidator=sG;function lG(){if(jo.Konva.isUnminified)return function(e,t){var n=Tn.Util._isNumber(e),r=e==="auto";return n||r||Tn.Util.warn(No(e)+' is a not valid value for "'+t+'" attribute. The value should be a number or "auto".'),e}}Be.getNumberOrAutoValidator=lG;function cG(){if(jo.Konva.isUnminified)return function(e,t){return Tn.Util._isString(e)||Tn.Util.warn(No(e)+' is a not valid value for "'+t+'" attribute. The value should be a string.'),e}}Be.getStringValidator=cG;function uG(){if(jo.Konva.isUnminified)return function(e,t){const n=Tn.Util._isString(e),r=Object.prototype.toString.call(e)==="[object CanvasGradient]"||e&&e.addColorStop;return n||r||Tn.Util.warn(No(e)+' is a not valid value for "'+t+'" attribute. The value should be a string or a native gradient.'),e}}Be.getStringOrGradientValidator=uG;function dG(){if(jo.Konva.isUnminified)return function(e,t){return Tn.Util._isFunction(e)||Tn.Util.warn(No(e)+' is a not valid value for "'+t+'" attribute. The value should be a function.'),e}}Be.getFunctionValidator=dG;function hG(){if(jo.Konva.isUnminified)return function(e,t){const n=Int8Array?Object.getPrototypeOf(Int8Array):null;return n&&e instanceof n||(Tn.Util._isArray(e)?e.forEach(function(r){Tn.Util._isNumber(r)||Tn.Util.warn('"'+t+'" attribute has non numeric element '+r+". Make sure that all elements are numbers.")}):Tn.Util.warn(No(e)+' is a not valid value for "'+t+'" attribute. The value should be a array of numbers.')),e}}Be.getNumberArrayValidator=hG;function fG(){if(jo.Konva.isUnminified)return function(e,t){var n=e===!0||e===!1;return n||Tn.Util.warn(No(e)+' is a not valid value for "'+t+'" attribute. The value should be a boolean.'),e}}Be.getBooleanValidator=fG;function pG(e){if(jo.Konva.isUnminified)return function(t,n){return t==null||Tn.Util.isObject(t)||Tn.Util.warn(No(t)+' is a not valid value for "'+n+'" attribute. The value should be an object with properties '+e),t}}Be.getComponentValidator=pG,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Factory=void 0;const t=Sn,n=Be;var r="get",i="set";e.Factory={addGetterSetter(a,o,s,c,d){e.Factory.addGetter(a,o,s),e.Factory.addSetter(a,o,c,d),e.Factory.addOverloadedGetterSetter(a,o)},addGetter(a,o,s){var c=r+t.Util._capitalize(o);a.prototype[c]=a.prototype[c]||function(){var d=this.attrs[o];return d===void 0?s:d}},addSetter(a,o,s,c){var d=i+t.Util._capitalize(o);a.prototype[d]||e.Factory.overWriteSetter(a,o,s,c)},overWriteSetter(a,o,s,c){var d=i+t.Util._capitalize(o);a.prototype[d]=function(h){return s&&h!==void 0&&h!==null&&(h=s.call(this,h,o)),this._setAttr(o,h),c&&c.call(this),this}},addComponentsGetterSetter(a,o,s,c,d){var h=s.length,b=t.Util._capitalize,m=r+b(o),g=i+b(o),v,w;a.prototype[m]=function(){var C={};for(v=0;v{this._setAttr(o+b(x),void 0)}),this._fireChangeEvent(o,_,C),d&&d.call(this),this},e.Factory.addOverloadedGetterSetter(a,o)},addOverloadedGetterSetter(a,o){var s=t.Util._capitalize(o),c=i+s,d=r+s;a.prototype[o]=function(){return arguments.length?(this[c](arguments[0]),this):this[d]()}},addDeprecatedGetterSetter(a,o,s,c){t.Util.error("Adding deprecated "+o);var d=r+t.Util._capitalize(o),h=o+" property is deprecated and will be removed soon. Look at Konva change log for more information.";a.prototype[d]=function(){t.Util.error(h);var b=this.attrs[o];return b===void 0?s:b},e.Factory.addSetter(a,o,c,function(){t.Util.error(h)}),e.Factory.addOverloadedGetterSetter(a,o)},backCompat(a,o){t.Util.each(o,function(s,c){var d=a.prototype[c],h=r+t.Util._capitalize(s),b=i+t.Util._capitalize(s);function m(){d.apply(this,arguments),t.Util.error('"'+s+'" method is deprecated and will be removed soon. Use ""'+c+'" instead.')}a.prototype[s]=m,a.prototype[h]=m,a.prototype[b]=m})},afterSetFilter(){this._filterUpToDate=!1}}}(at);var ha={},So={};Object.defineProperty(So,"__esModule",{value:!0}),So.HitContext=So.SceneContext=So.Context=void 0;const DT=Sn,gG=ft;function mG(e){var t=[],n=e.length,r=DT.Util,i,a;for(i=0;itypeof h=="number"?Math.floor(h):h)),a+=vG+d.join(aC)+yG)):(a+=s.property,t||(a+=SG+s.val)),a+=xG;return a}clearTrace(){this.traceArr=[]}_trace(t){var n=this.traceArr,r;n.push(t),r=n.length,r>=_G&&n.shift()}reset(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)}getCanvas(){return this.canvas}clear(t){var n=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,n.getWidth()/n.pixelRatio,n.getHeight()/n.pixelRatio)}_applyLineCap(t){const n=t.attrs.lineCap;n&&this.setAttr("lineCap",n)}_applyOpacity(t){var n=t.getAbsoluteOpacity();n!==1&&this.setAttr("globalAlpha",n)}_applyLineJoin(t){const n=t.attrs.lineJoin;n&&this.setAttr("lineJoin",n)}setAttr(t,n){this._context[t]=n}arc(t,n,r,i,a,o){this._context.arc(t,n,r,i,a,o)}arcTo(t,n,r,i,a){this._context.arcTo(t,n,r,i,a)}beginPath(){this._context.beginPath()}bezierCurveTo(t,n,r,i,a,o){this._context.bezierCurveTo(t,n,r,i,a,o)}clearRect(t,n,r,i){this._context.clearRect(t,n,r,i)}clip(...t){this._context.clip.apply(this._context,t)}closePath(){this._context.closePath()}createImageData(t,n){var r=arguments;if(r.length===2)return this._context.createImageData(t,n);if(r.length===1)return this._context.createImageData(t)}createLinearGradient(t,n,r,i){return this._context.createLinearGradient(t,n,r,i)}createPattern(t,n){return this._context.createPattern(t,n)}createRadialGradient(t,n,r,i,a,o){return this._context.createRadialGradient(t,n,r,i,a,o)}drawImage(t,n,r,i,a,o,s,c,d){var h=arguments,b=this._context;h.length===3?b.drawImage(t,n,r):h.length===5?b.drawImage(t,n,r,i,a):h.length===9&&b.drawImage(t,n,r,i,a,o,s,c,d)}ellipse(t,n,r,i,a,o,s,c){this._context.ellipse(t,n,r,i,a,o,s,c)}isPointInPath(t,n,r,i){return r?this._context.isPointInPath(r,t,n,i):this._context.isPointInPath(t,n,i)}fill(...t){this._context.fill.apply(this._context,t)}fillRect(t,n,r,i){this._context.fillRect(t,n,r,i)}strokeRect(t,n,r,i){this._context.strokeRect(t,n,r,i)}fillText(t,n,r,i){i?this._context.fillText(t,n,r,i):this._context.fillText(t,n,r)}measureText(t){return this._context.measureText(t)}getImageData(t,n,r,i){return this._context.getImageData(t,n,r,i)}lineTo(t,n){this._context.lineTo(t,n)}moveTo(t,n){this._context.moveTo(t,n)}rect(t,n,r,i){this._context.rect(t,n,r,i)}roundRect(t,n,r,i,a){this._context.roundRect(t,n,r,i,a)}putImageData(t,n,r){this._context.putImageData(t,n,r)}quadraticCurveTo(t,n,r,i){this._context.quadraticCurveTo(t,n,r,i)}restore(){this._context.restore()}rotate(t){this._context.rotate(t)}save(){this._context.save()}scale(t,n){this._context.scale(t,n)}setLineDash(t){this._context.setLineDash?this._context.setLineDash(t):"mozDash"in this._context?this._context.mozDash=t:"webkitLineDash"in this._context&&(this._context.webkitLineDash=t)}getLineDash(){return this._context.getLineDash()}setTransform(t,n,r,i,a,o){this._context.setTransform(t,n,r,i,a,o)}stroke(t){t?this._context.stroke(t):this._context.stroke()}strokeText(t,n,r,i){this._context.strokeText(t,n,r,i)}transform(t,n,r,i,a,o){this._context.transform(t,n,r,i,a,o)}translate(t,n){this._context.translate(t,n)}_enableTrace(){var t=this,n=oC.length,r=this.setAttr,i,a,o=function(s){var c=t[s],d;t[s]=function(){return a=mG(Array.prototype.slice.call(arguments,0)),d=c.apply(t,arguments),t._trace({method:s,args:a}),d}};for(i=0;i{i.dragStatus==="dragging"&&(r=!0)}),r},justDragged:!1,get node(){var r;return e.DD._dragElements.forEach(i=>{r=i.node}),r},_dragElements:new Map,_drag(r){const i=[];e.DD._dragElements.forEach((a,o)=>{const{node:s}=a,c=s.getStage();c.setPointersPositions(r),a.pointerId===void 0&&(a.pointerId=n.Util._getFirstPointerId(r));const d=c._changedPointerPositions.find(m=>m.id===a.pointerId);if(d){if(a.dragStatus!=="dragging"){var h=s.dragDistance(),b=Math.max(Math.abs(d.x-a.startPointerPos.x),Math.abs(d.y-a.startPointerPos.y));if(b{a.fire("dragmove",{type:"dragmove",target:a,evt:r},!0)})},_endDragBefore(r){const i=[];e.DD._dragElements.forEach(a=>{const{node:o}=a,s=o.getStage();if(r&&s.setPointersPositions(r),!s._changedPointerPositions.find(d=>d.id===a.pointerId))return;(a.dragStatus==="dragging"||a.dragStatus==="stopped")&&(e.DD.justDragged=!0,t.Konva._mouseListenClick=!1,t.Konva._touchListenClick=!1,t.Konva._pointerListenClick=!1,a.dragStatus="stopped");const c=a.node.getLayer()||a.node instanceof t.Konva.Stage&&a.node;c&&i.indexOf(c)===-1&&i.push(c)}),i.forEach(a=>{a.draw()})},_endDragAfter(r){e.DD._dragElements.forEach((i,a)=>{i.dragStatus==="stopped"&&i.node.fire("dragend",{type:"dragend",target:i.node,evt:r},!0),i.dragStatus!=="dragging"&&e.DD._dragElements.delete(a)})}},t.Konva.isBrowser&&(window.addEventListener("mouseup",e.DD._endDragBefore,!0),window.addEventListener("touchend",e.DD._endDragBefore,!0),window.addEventListener("mousemove",e.DD._drag),window.addEventListener("touchmove",e.DD._drag),window.addEventListener("mouseup",e.DD._endDragAfter,!1),window.addEventListener("touchend",e.DD._endDragAfter,!1))})(wm),Object.defineProperty(hn,"__esModule",{value:!0}),hn.Node=void 0;const xt=Sn,kh=at,ah=ha,ss=ft,Di=wm,jn=Be;var Fp="absoluteOpacity",mf="allEventListeners",go="absoluteTransform",sC="absoluteScale",El="canvas",LG="Change",jG="children",NG="konva",Ty="listening",lC="mouseenter",cC="mouseleave",uC="set",dC="Shape",zp=" ",hC="stage",ys="transform",DG="Stage",My="visible",RG=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(zp);let FG=1;class Qe{constructor(t){this._id=FG++,this.eventListeners={},this.attrs={},this.index=0,this._allEventListeners=null,this.parent=null,this._cache=new Map,this._attachedDepsListeners=new Map,this._lastPos=null,this._batchingTransformChange=!1,this._needClearTransformCache=!1,this._filterUpToDate=!1,this._isUnderCache=!1,this._dragEventId=null,this._shouldFireChangeEvents=!1,this.setAttrs(t),this._shouldFireChangeEvents=!0}hasChildren(){return!1}_clearCache(t){(t===ys||t===go)&&this._cache.get(t)?this._cache.get(t).dirty=!0:t?this._cache.delete(t):this._cache.clear()}_getCache(t,n){var r=this._cache.get(t),i=t===ys||t===go,a=r===void 0||i&&r.dirty===!0;return a&&(r=n.call(this),this._cache.set(t,r)),r}_calculate(t,n,r){if(!this._attachedDepsListeners.get(t)){const i=n.map(a=>a+"Change.konva").join(zp);this.on(i,()=>{this._clearCache(t)}),this._attachedDepsListeners.set(t,!0)}return this._getCache(t,r)}_getCanvasCache(){return this._cache.get(El)}_clearSelfAndDescendantCache(t){this._clearCache(t),t===go&&this.fire("absoluteTransformChange")}clearCache(){if(this._cache.has(El)){const{scene:t,filter:n,hit:r}=this._cache.get(El);xt.Util.releaseCanvas(t,n,r),this._cache.delete(El)}return this._clearSelfAndDescendantCache(),this._requestDraw(),this}cache(t){var n=t||{},r={};(n.x===void 0||n.y===void 0||n.width===void 0||n.height===void 0)&&(r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()||void 0}));var i=Math.ceil(n.width||r.width),a=Math.ceil(n.height||r.height),o=n.pixelRatio,s=n.x===void 0?Math.floor(r.x):n.x,c=n.y===void 0?Math.floor(r.y):n.y,d=n.offset||0,h=n.drawBorder||!1,b=n.hitCanvasPixelRatio||1;if(!i||!a){xt.Util.error("Can not cache the node. Width or height of the node equals 0. Caching is skipped.");return}const m=Math.abs(Math.round(r.x)-s)>.5?1:0,g=Math.abs(Math.round(r.y)-c)>.5?1:0;i+=d*2+m,a+=d*2+g,s-=d,c-=d;var v=new ah.SceneCanvas({pixelRatio:o,width:i,height:a}),w=new ah.SceneCanvas({pixelRatio:o,width:0,height:0,willReadFrequently:!0}),k=new ah.HitCanvas({pixelRatio:b,width:i,height:a}),C=v.getContext(),_=k.getContext();return k.isCache=!0,v.isCache=!0,this._cache.delete(El),this._filterUpToDate=!1,n.imageSmoothingEnabled===!1&&(v.getContext()._context.imageSmoothingEnabled=!1,w.getContext()._context.imageSmoothingEnabled=!1),C.save(),_.save(),C.translate(-s,-c),_.translate(-s,-c),this._isUnderCache=!0,this._clearSelfAndDescendantCache(Fp),this._clearSelfAndDescendantCache(sC),this.drawScene(v,this),this.drawHit(k,this),this._isUnderCache=!1,C.restore(),_.restore(),h&&(C.save(),C.beginPath(),C.rect(0,0,i,a),C.closePath(),C.setAttr("strokeStyle","red"),C.setAttr("lineWidth",5),C.stroke(),C.restore()),this._cache.set(El,{scene:v,filter:w,hit:k,x:s,y:c}),this._requestDraw(),this}isCached(){return this._cache.has(El)}getClientRect(t){throw new Error('abstract "getClientRect" method call')}_transformedRect(t,n){var r=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=1/0,a=1/0,o=-1/0,s=-1/0,c=this.getAbsoluteTransform(n);return r.forEach(function(d){var h=c.point(d);i===void 0&&(i=o=h.x,a=s=h.y),i=Math.min(i,h.x),a=Math.min(a,h.y),o=Math.max(o,h.x),s=Math.max(s,h.y)}),{x:i,y:a,width:o-i,height:s-a}}_drawCachedSceneCanvas(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this);const n=this._getCanvasCache();t.translate(n.x,n.y);var r=this._getCachedSceneCanvas(),i=r.pixelRatio;t.drawImage(r._canvas,0,0,r.width/i,r.height/i),t.restore()}_drawCachedHitCanvas(t){var n=this._getCanvasCache(),r=n.hit;t.save(),t.translate(n.x,n.y),t.drawImage(r._canvas,0,0,r.width/r.pixelRatio,r.height/r.pixelRatio),t.restore()}_getCachedSceneCanvas(){var t=this.filters(),n=this._getCanvasCache(),r=n.scene,i=n.filter,a=i.getContext(),o,s,c,d;if(t){if(!this._filterUpToDate){var h=r.pixelRatio;i.setSize(r.width/r.pixelRatio,r.height/r.pixelRatio);try{for(o=t.length,a.clear(),a.drawImage(r._canvas,0,0,r.getWidth()/h,r.getHeight()/h),s=a.getImageData(0,0,i.getWidth(),i.getHeight()),c=0;c{var n,r;if(!t)return this;for(n in t)n!==jG&&(r=uC+xt.Util._capitalize(n),xt.Util._isFunction(this[r])?this[r](t[n]):this._setAttr(n,t[n]))}),this}isListening(){return this._getCache(Ty,this._isListening)}_isListening(t){if(!this.listening())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isListening(t):!0}isVisible(){return this._getCache(My,this._isVisible)}_isVisible(t){if(!this.visible())return!1;const n=this.getParent();return n&&n!==t&&this!==t?n._isVisible(t):!0}shouldDrawHit(t,n=!1){if(t)return this._isVisible(t)&&this._isListening(t);var r=this.getLayer(),i=!1;Di.DD._dragElements.forEach(o=>{o.dragStatus==="dragging"&&(o.node.nodeType==="Stage"||o.node.getLayer()===r)&&(i=!0)});var a=!n&&!ss.Konva.hitOnDragEnabled&&(i||ss.Konva.isTransforming());return this.isListening()&&this.isVisible()&&!a}show(){return this.visible(!0),this}hide(){return this.visible(!1),this}getZIndex(){return this.index||0}getAbsoluteZIndex(){var t=this.getDepth(),n=this,r=0,i,a,o,s;function c(h){for(i=[],a=h.length,o=0;o0&&i[0].getDepth()<=t&&c(i)}const d=this.getStage();return n.nodeType!==DG&&d&&c(d.getChildren()),r}getDepth(){for(var t=0,n=this.parent;n;)t++,n=n.parent;return t}_batchTransformChanges(t){this._batchingTransformChange=!0,t(),this._batchingTransformChange=!1,this._needClearTransformCache&&(this._clearCache(ys),this._clearSelfAndDescendantCache(go)),this._needClearTransformCache=!1}setPosition(t){return this._batchTransformChanges(()=>{this.x(t.x),this.y(t.y)}),this}getPosition(){return{x:this.x(),y:this.y()}}getRelativePointerPosition(){const t=this.getStage();if(!t)return null;var n=t.getPointerPosition();if(!n)return null;var r=this.getAbsoluteTransform().copy();return r.invert(),r.point(n)}getAbsolutePosition(t){let n=!1,r=this.parent;for(;r;){if(r.isCached()){n=!0;break}r=r.parent}n&&!t&&(t=!0);var i=this.getAbsoluteTransform(t).getMatrix(),a=new xt.Transform,o=this.offset();return a.m=i.slice(),a.translate(o.x,o.y),a.getTranslation()}setAbsolutePosition(t){const{x:n,y:r,...i}=this._clearTransform();this.attrs.x=n,this.attrs.y=r,this._clearCache(ys);var a=this._getAbsoluteTransform().copy();return a.invert(),a.translate(t.x,t.y),t={x:this.attrs.x+a.getTranslation().x,y:this.attrs.y+a.getTranslation().y},this._setTransform(i),this.setPosition({x:t.x,y:t.y}),this._clearCache(ys),this._clearSelfAndDescendantCache(go),this}_setTransform(t){var n;for(n in t)this.attrs[n]=t[n]}_clearTransform(){var t={x:this.x(),y:this.y(),rotation:this.rotation(),scaleX:this.scaleX(),scaleY:this.scaleY(),offsetX:this.offsetX(),offsetY:this.offsetY(),skewX:this.skewX(),skewY:this.skewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,t}move(t){var n=t.x,r=t.y,i=this.x(),a=this.y();return n!==void 0&&(i+=n),r!==void 0&&(a+=r),this.setPosition({x:i,y:a}),this}_eachAncestorReverse(t,n){var r=[],i=this.getParent(),a,o;if(!(n&&n._id===this._id)){for(r.unshift(this);i&&(!n||i._id!==n._id);)r.unshift(i),i=i.parent;for(a=r.length,o=0;o0?(this.parent.children.splice(t,1),this.parent.children.splice(t-1,0,this),this.parent._setChildrenIndices(),!0):!1}moveToBottom(){if(!this.parent)return xt.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var t=this.index;return t>0?(this.parent.children.splice(t,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0):!1}setZIndex(t){if(!this.parent)return xt.Util.warn("Node has no parent. zIndex parameter is ignored."),this;(t<0||t>=this.parent.children.length)&&xt.Util.warn("Unexpected value "+t+" for zIndex property. zIndex is just index of a node in children of its parent. Expected value is from 0 to "+(this.parent.children.length-1)+".");var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(t,0,this),this.parent._setChildrenIndices(),this}getAbsoluteOpacity(){return this._getCache(Fp,this._getAbsoluteOpacity)}_getAbsoluteOpacity(){var t=this.opacity(),n=this.getParent();return n&&!n._isUnderCache&&(t*=n.getAbsoluteOpacity()),t}moveTo(t){return this.getParent()!==t&&(this._remove(),t.add(this)),this}toObject(){var t=this.getAttrs(),n,r,i,a,o;const s={attrs:{},className:this.getClassName()};for(n in t)r=t[n],o=xt.Util.isObject(r)&&!xt.Util._isPlainObject(r)&&!xt.Util._isArray(r),!o&&(i=typeof this[n]=="function"&&this[n],delete t[n],a=i?i.call(this):null,t[n]=r,a!==r&&(s.attrs[n]=r));return xt.Util._prepareToStringify(s)}toJSON(){return JSON.stringify(this.toObject())}getParent(){return this.parent}findAncestors(t,n,r){var i=[];n&&this._isMatch(t)&&i.push(this);for(var a=this.parent;a;){if(a===r)return i;a._isMatch(t)&&i.push(a),a=a.parent}return i}isAncestorOf(t){return!1}findAncestor(t,n,r){return this.findAncestors(t,n,r)[0]}_isMatch(t){if(!t)return!1;if(typeof t=="function")return t(this);var n=t.replace(/ /g,"").split(","),r=n.length,i,a;for(i=0;i{try{const i=t?.callback;i&&delete t.callback,xt.Util._urlToImage(this.toDataURL(t),function(a){n(a),i?.(a)})}catch(i){r(i)}})}toBlob(t){return new Promise((n,r)=>{try{const i=t?.callback;i&&delete t.callback,this.toCanvas(t).toBlob(a=>{n(a),i?.(a)},t?.mimeType,t?.quality)}catch(i){r(i)}})}setSize(t){return this.width(t.width),this.height(t.height),this}getSize(){return{width:this.width(),height:this.height()}}getClassName(){return this.className||this.nodeType}getType(){return this.nodeType}getDragDistance(){return this.attrs.dragDistance!==void 0?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():ss.Konva.dragDistance}_off(t,n,r){var i=this.eventListeners[t],a,o,s;for(a=0;a=0;if(r&&!this.isDragging()){var i=!1;Di.DD._dragElements.forEach(a=>{this.isAncestorOf(a.node)&&(i=!0)}),i||this._createDragElement(t)}})}_dragChange(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage();if(!t)return;const n=Di.DD._dragElements.get(this._id),r=n&&n.dragStatus==="dragging",i=n&&n.dragStatus==="ready";r?this.stopDrag():i&&Di.DD._dragElements.delete(this._id)}}_dragCleanup(){this.off("mousedown.konva"),this.off("touchstart.konva")}isClientRectOnScreen(t={x:0,y:0}){const n=this.getStage();if(!n)return!1;const r={x:-t.x,y:-t.y,width:n.width()+2*t.x,height:n.height()+2*t.y};return xt.Util.haveIntersection(r,this.getClientRect())}static create(t,n){return xt.Util._isString(t)&&(t=JSON.parse(t)),this._createNode(t,n)}static _createNode(t,n){var r=Qe.prototype.getClassName.call(t),i=t.children,a,o,s;n&&(t.attrs.container=n),ss.Konva[r]||(xt.Util.warn('Can not find a node with class name "'+r+'". Fallback to "Shape".'),r="Shape");const c=ss.Konva[r];if(a=new c(t.attrs),i)for(o=i.length,s=0;s0}removeChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.remove()}),this.children=[],this._requestDraw(),this}destroyChildren(){return this.getChildren().forEach(e=>{e.parent=null,e.index=0,e.destroy()}),this.children=[],this._requestDraw(),this}add(...e){if(e.length===0)return this;if(e.length>1){for(var t=0;t0?t[0]:void 0}_generalFind(e,t){var n=[];return this._descendants(r=>{const i=r._isMatch(e);return i&&n.push(r),!!(i&&t)}),n}_descendants(e){let t=!1;const n=this.getChildren();for(const r of n)if(t=e(r),t||r.hasChildren()&&(t=r._descendants(e),t))return!0;return!1}toObject(){var e=c4.Node.prototype.toObject.call(this);return e.children=[],this.getChildren().forEach(t=>{e.children.push(t.toObject())}),e}isAncestorOf(e){for(var t=e.getParent();t;){if(t._id===this._id)return!0;t=t.getParent()}return!1}clone(e){var t=c4.Node.prototype.clone.call(this,e);return this.getChildren().forEach(function(n){t.add(n.clone())}),t}getAllIntersections(e){var t=[];return this.find("Shape").forEach(n=>{n.isVisible()&&n.intersects(e)&&t.push(n)}),t}_clearSelfAndDescendantCache(e){var t;super._clearSelfAndDescendantCache(e),!this.isCached()&&((t=this.children)===null||t===void 0||t.forEach(function(n){n._clearSelfAndDescendantCache(e)}))}_setChildrenIndices(){var e;(e=this.children)===null||e===void 0||e.forEach(function(t,n){t.index=n}),this._requestDraw()}drawScene(e,t,n){var r=this.getLayer(),i=e||r&&r.getCanvas(),a=i&&i.getContext(),o=this._getCanvasCache(),s=o&&o.scene,c=i&&i.isCache;if(!this.isVisible()&&!c)return this;if(s){a.save();var d=this.getAbsoluteTransform(t).getMatrix();a.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this._drawCachedSceneCanvas(a),a.restore()}else this._drawChildren("drawScene",i,t,n);return this}drawHit(e,t){if(!this.shouldDrawHit(t))return this;var n=this.getLayer(),r=e||n&&n.hitCanvas,i=r&&r.getContext(),a=this._getCanvasCache(),o=a&&a.hit;if(o){i.save();var s=this.getAbsoluteTransform(t).getMatrix();i.transform(s[0],s[1],s[2],s[3],s[4],s[5]),this._drawCachedHitCanvas(i),i.restore()}else this._drawChildren("drawHit",r,t);return this}_drawChildren(e,t,n,r){var i,a=t&&t.getContext(),o=this.clipWidth(),s=this.clipHeight(),c=this.clipFunc(),d=typeof o=="number"&&typeof s=="number"||c;const h=n===this;if(d){a.save();var b=this.getAbsoluteTransform(n),m=b.getMatrix();a.transform(m[0],m[1],m[2],m[3],m[4],m[5]),a.beginPath();let k;if(c)k=c.call(this,a,this);else{var g=this.clipX(),v=this.clipY();a.rect(g||0,v||0,o,s)}a.clip.apply(a,k),m=b.copy().invert().getMatrix(),a.transform(m[0],m[1],m[2],m[3],m[4],m[5])}var w=!h&&this.globalCompositeOperation()!=="source-over"&&e==="drawScene";w&&(a.save(),a._applyGlobalCompositeOperation(this)),(i=this.children)===null||i===void 0||i.forEach(function(k){k[e](t,n,r)}),w&&a.restore(),d&&a.restore()}getClientRect(e={}){var t,n=e.skipTransform,r=e.relativeTo,i,a,o,s,c={x:1/0,y:1/0,width:0,height:0},d=this;(t=this.children)===null||t===void 0||t.forEach(function(v){if(v.visible()){var w=v.getClientRect({relativeTo:d,skipShadow:e.skipShadow,skipStroke:e.skipStroke});w.width===0&&w.height===0||(i===void 0?(i=w.x,a=w.y,o=w.x+w.width,s=w.y+w.height):(i=Math.min(i,w.x),a=Math.min(a,w.y),o=Math.max(o,w.x+w.width),s=Math.max(s,w.y+w.height)))}});for(var h=this.find("Shape"),b=!1,m=0;mW.indexOf("pointer")>=0?"pointer":W.indexOf("touch")>=0?"touch":"mouse",Q=W=>{const D=oe(W);if(D==="pointer")return i.Konva.pointerEventsEnabled&&ne.pointer;if(D==="touch")return ne.touch;if(D==="mouse")return ne.mouse};function $(W={}){return(W.clipFunc||W.clipWidth||W.clipHeight)&&t.Util.warn("Stage does not support clipping. Please use clip for Layers or Groups."),W}const re="Pointer position is missing and not registered by the stage. Looks like it is outside of the stage container. You can set it manually from event: stage.setPointersPositions(event);";e.stages=[];class we extends r.Container{constructor(D){super($(D)),this._pointerPositions=[],this._changedPointerPositions=[],this._buildDOM(),this._bindContentEvents(),e.stages.push(this),this.on("widthChange.konva heightChange.konva",this._resizeDOM),this.on("visibleChange.konva",this._checkVisibility),this.on("clipWidthChange.konva clipHeightChange.konva clipFuncChange.konva",()=>{$(this.attrs)}),this._checkVisibility()}_validateAdd(D){const B=D.getType()==="Layer",ee=D.getType()==="FastLayer";B||ee||t.Util.throw("You may only add layers to the stage.")}_checkVisibility(){if(!this.content)return;const D=this.visible()?"":"none";this.content.style.display=D}setContainer(D){if(typeof D===h){if(D.charAt(0)==="."){var B=D.slice(1);D=document.getElementsByClassName(B)[0]}else{var ee;D.charAt(0)!=="#"?ee=D:ee=D.slice(1),D=document.getElementById(ee)}if(!D)throw"Can not find container in document with id "+ee}return this._setAttr("container",D),this.content&&(this.content.parentElement&&this.content.parentElement.removeChild(this.content),D.appendChild(this.content)),this}shouldDrawHit(){return!0}clear(){var D=this.children,B=D.length,ee;for(ee=0;ee-1&&e.stages.splice(B,1),t.Util.releaseCanvas(this.bufferCanvas._canvas,this.bufferHitCanvas._canvas),this}getPointerPosition(){const D=this._pointerPositions[0]||this._changedPointerPositions[0];return D?{x:D.x,y:D.y}:(t.Util.warn(re),null)}_getPointerById(D){return this._pointerPositions.find(B=>B.id===D)}getPointersPositions(){return this._pointerPositions}getStage(){return this}getContent(){return this.content}_toKonvaCanvas(D){D=D||{},D.x=D.x||0,D.y=D.y||0,D.width=D.width||this.width(),D.height=D.height||this.height();var B=new a.SceneCanvas({width:D.width,height:D.height,pixelRatio:D.pixelRatio||1}),ee=B.getContext()._context,ue=this.children;return(D.x||D.y)&&ee.translate(-1*D.x,-1*D.y),ue.forEach(function(ve){if(ve.isVisible()){var se=ve._toKonvaCanvas(D);ee.drawImage(se._canvas,D.x,D.y,se.getWidth()/se.getPixelRatio(),se.getHeight()/se.getPixelRatio())}}),B}getIntersection(D){if(!D)return null;var B=this.children,ee=B.length,ue=ee-1,ve;for(ve=ue;ve>=0;ve--){const se=B[ve].getIntersection(D);if(se)return se}return null}_resizeDOM(){var D=this.width(),B=this.height();this.content&&(this.content.style.width=D+b,this.content.style.height=B+b),this.bufferCanvas.setSize(D,B),this.bufferHitCanvas.setSize(D,B),this.children.forEach(ee=>{ee.setSize({width:D,height:B}),ee.draw()})}add(D,...B){if(arguments.length>1){for(var ee=0;eeK&&t.Util.warn("The stage has "+ue+" layers. Recommended maximum number of layers is 3-5. Adding more layers into the stage may drop the performance. Rethink your tree structure, you can use Konva.Group."),D.setSize({width:this.width(),height:this.height()}),D.draw(),i.Konva.isBrowser&&this.content.appendChild(D.canvas._canvas),this}getParent(){return null}getLayer(){return null}hasPointerCapture(D){return c.hasPointerCapture(D,this)}setPointerCapture(D){c.setPointerCapture(D,this)}releaseCapture(D){c.releaseCapture(D,this)}getLayers(){return this.children}_bindContentEvents(){i.Konva.isBrowser&&ce.forEach(([D,B])=>{this.content.addEventListener(D,ee=>{this[B](ee)},{passive:!1})})}_pointerenter(D){this.setPointersPositions(D);const B=Q(D.type);B&&this._fire(B.pointerenter,{evt:D,target:this,currentTarget:this})}_pointerover(D){this.setPointersPositions(D);const B=Q(D.type);B&&this._fire(B.pointerover,{evt:D,target:this,currentTarget:this})}_getTargetShape(D){let B=this[D+"targetShape"];return B&&!B.getStage()&&(B=null),B}_pointerleave(D){const B=Q(D.type),ee=oe(D.type);if(B){this.setPointersPositions(D);var ue=this._getTargetShape(ee),ve=!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled;ue&&ve?(ue._fireAndBubble(B.pointerout,{evt:D}),ue._fireAndBubble(B.pointerleave,{evt:D}),this._fire(B.pointerleave,{evt:D,target:this,currentTarget:this}),this[ee+"targetShape"]=null):ve&&(this._fire(B.pointerleave,{evt:D,target:this,currentTarget:this}),this._fire(B.pointerout,{evt:D,target:this,currentTarget:this})),this.pointerPos=null,this._pointerPositions=[]}}_pointerdown(D){const B=Q(D.type),ee=oe(D.type);if(B){this.setPointersPositions(D);var ue=!1;this._changedPointerPositions.forEach(ve=>{var se=this.getIntersection(ve);if(o.DD.justDragged=!1,i.Konva["_"+ee+"ListenClick"]=!0,!se||!se.isListening())return;i.Konva.capturePointerEventsEnabled&&se.setPointerCapture(ve.id),this[ee+"ClickStartShape"]=se,se._fireAndBubble(B.pointerdown,{evt:D,pointerId:ve.id}),ue=!0;const Ie=D.type.indexOf("touch")>=0;se.preventDefault()&&D.cancelable&&Ie&&D.preventDefault()}),ue||this._fire(B.pointerdown,{evt:D,target:this,currentTarget:this,pointerId:this._pointerPositions[0].id})}}_pointermove(D){const B=Q(D.type),ee=oe(D.type);if(!B)return;i.Konva.isDragging()&&o.DD.node.preventDefault()&&D.cancelable&&D.preventDefault(),this.setPointersPositions(D);var ue=!(i.Konva.isDragging()||i.Konva.isTransforming())||i.Konva.hitOnDragEnabled;if(!ue)return;var ve={};let se=!1;var Ie=this._getTargetShape(ee);this._changedPointerPositions.forEach(Ae=>{const Se=c.getCapturedShape(Ae.id)||this.getIntersection(Ae),Ne=Ae.id,Me={evt:D,pointerId:Ne};var Ye=Ie!==Se;if(Ye&&Ie&&(Ie._fireAndBubble(B.pointerout,{...Me},Se),Ie._fireAndBubble(B.pointerleave,{...Me},Se)),Se){if(ve[Se._id])return;ve[Se._id]=!0}Se&&Se.isListening()?(se=!0,Ye&&(Se._fireAndBubble(B.pointerover,{...Me},Ie),Se._fireAndBubble(B.pointerenter,{...Me},Ie),this[ee+"targetShape"]=Se),Se._fireAndBubble(B.pointermove,{...Me})):Ie&&(this._fire(B.pointerover,{evt:D,target:this,currentTarget:this,pointerId:Ne}),this[ee+"targetShape"]=null)}),se||this._fire(B.pointermove,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id})}_pointerup(D){const B=Q(D.type),ee=oe(D.type);if(!B)return;this.setPointersPositions(D);const ue=this[ee+"ClickStartShape"],ve=this[ee+"ClickEndShape"];var se={};let Ie=!1;this._changedPointerPositions.forEach(Ae=>{const Se=c.getCapturedShape(Ae.id)||this.getIntersection(Ae);if(Se){if(Se.releaseCapture(Ae.id),se[Se._id])return;se[Se._id]=!0}const Ne=Ae.id,Me={evt:D,pointerId:Ne};let Ye=!1;i.Konva["_"+ee+"InDblClickWindow"]?(Ye=!0,clearTimeout(this[ee+"DblTimeout"])):o.DD.justDragged||(i.Konva["_"+ee+"InDblClickWindow"]=!0,clearTimeout(this[ee+"DblTimeout"])),this[ee+"DblTimeout"]=setTimeout(function(){i.Konva["_"+ee+"InDblClickWindow"]=!1},i.Konva.dblClickWindow),Se&&Se.isListening()?(Ie=!0,this[ee+"ClickEndShape"]=Se,Se._fireAndBubble(B.pointerup,{...Me}),i.Konva["_"+ee+"ListenClick"]&&ue&&ue===Se&&(Se._fireAndBubble(B.pointerclick,{...Me}),Ye&&ve&&ve===Se&&Se._fireAndBubble(B.pointerdblclick,{...Me}))):(this[ee+"ClickEndShape"]=null,i.Konva["_"+ee+"ListenClick"]&&this._fire(B.pointerclick,{evt:D,target:this,currentTarget:this,pointerId:Ne}),Ye&&this._fire(B.pointerdblclick,{evt:D,target:this,currentTarget:this,pointerId:Ne}))}),Ie||this._fire(B.pointerup,{evt:D,target:this,currentTarget:this,pointerId:this._changedPointerPositions[0].id}),i.Konva["_"+ee+"ListenClick"]=!1,D.cancelable&&ee!=="touch"&&D.preventDefault()}_contextmenu(D){this.setPointersPositions(D);var B=this.getIntersection(this.getPointerPosition());B&&B.isListening()?B._fireAndBubble(z,{evt:D}):this._fire(z,{evt:D,target:this,currentTarget:this})}_wheel(D){this.setPointersPositions(D);var B=this.getIntersection(this.getPointerPosition());B&&B.isListening()?B._fireAndBubble(le,{evt:D}):this._fire(le,{evt:D,target:this,currentTarget:this})}_pointercancel(D){this.setPointersPositions(D);const B=c.getCapturedShape(D.pointerId)||this.getIntersection(this.getPointerPosition());B&&B._fireAndBubble(E,c.createEvent(D)),c.releaseCapture(D.pointerId)}_lostpointercapture(D){c.releaseCapture(D.pointerId)}setPointersPositions(D){var B=this._getContentPosition(),ee=null,ue=null;D=D||window.event,D.touches!==void 0?(this._pointerPositions=[],this._changedPointerPositions=[],Array.prototype.forEach.call(D.touches,ve=>{this._pointerPositions.push({id:ve.identifier,x:(ve.clientX-B.left)/B.scaleX,y:(ve.clientY-B.top)/B.scaleY})}),Array.prototype.forEach.call(D.changedTouches||D.touches,ve=>{this._changedPointerPositions.push({id:ve.identifier,x:(ve.clientX-B.left)/B.scaleX,y:(ve.clientY-B.top)/B.scaleY})})):(ee=(D.clientX-B.left)/B.scaleX,ue=(D.clientY-B.top)/B.scaleY,this.pointerPos={x:ee,y:ue},this._pointerPositions=[{x:ee,y:ue,id:t.Util._getFirstPointerId(D)}],this._changedPointerPositions=[{x:ee,y:ue,id:t.Util._getFirstPointerId(D)}])}_setPointerPosition(D){t.Util.warn('Method _setPointerPosition is deprecated. Use "stage.setPointersPositions(event)" instead.'),this.setPointersPositions(D)}_getContentPosition(){if(!this.content||!this.content.getBoundingClientRect)return{top:0,left:0,scaleX:1,scaleY:1};var D=this.content.getBoundingClientRect();return{top:D.top,left:D.left,scaleX:D.width/this.content.clientWidth||1,scaleY:D.height/this.content.clientHeight||1}}_buildDOM(){if(this.bufferCanvas=new a.SceneCanvas({width:this.width(),height:this.height()}),this.bufferHitCanvas=new a.HitCanvas({pixelRatio:1,width:this.width(),height:this.height()}),!!i.Konva.isBrowser){var D=this.container();if(!D)throw"Stage has no container. A container is required.";D.innerHTML="",this.content=document.createElement("div"),this.content.style.position="relative",this.content.style.userSelect="none",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),D.appendChild(this.content),this._resizeDOM()}}cache(){return t.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes."),this}clearCache(){return this}batchDraw(){return this.getChildren().forEach(function(D){D.batchDraw()}),this}}e.Stage=we,we.prototype.nodeType=d,(0,s._registerNode)(we),n.Factory.addGetterSetter(we,"container")}(zT);var m0={},er={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Shape=e.shapes=void 0;const t=ft,n=Sn,r=at,i=hn,a=Be,o=ft,s=vi;var c="hasShadow",d="shadowRGBA",h="patternImage",b="linearGradient",m="radialGradient";let g;function v(){return g||(g=n.Util.createCanvasElement().getContext("2d"),g)}e.shapes={};function w(N){const T=this.attrs.fillRule;T?N.fill(T):N.fill()}function k(N){N.stroke()}function C(N){N.fill()}function _(N){N.stroke()}function f(){this._clearCache(c)}function x(){this._clearCache(d)}function E(){this._clearCache(h)}function M(){this._clearCache(b)}function j(){this._clearCache(m)}class P extends i.Node{constructor(T){super(T);let R;for(;R=n.Util.getRandomColor(),!(R&&!(R in e.shapes)););this.colorKey=R,e.shapes[R]=this}getContext(){return n.Util.warn("shape.getContext() method is deprecated. Please do not use it."),this.getLayer().getContext()}getCanvas(){return n.Util.warn("shape.getCanvas() method is deprecated. Please do not use it."),this.getLayer().getCanvas()}getSceneFunc(){return this.attrs.sceneFunc||this._sceneFunc}getHitFunc(){return this.attrs.hitFunc||this._hitFunc}hasShadow(){return this._getCache(c,this._hasShadow)}_hasShadow(){return this.shadowEnabled()&&this.shadowOpacity()!==0&&!!(this.shadowColor()||this.shadowBlur()||this.shadowOffsetX()||this.shadowOffsetY())}_getFillPattern(){return this._getCache(h,this.__getFillPattern)}__getFillPattern(){if(this.fillPatternImage()){var T=v();const R=T.createPattern(this.fillPatternImage(),this.fillPatternRepeat()||"repeat");if(R&&R.setTransform){const z=new n.Transform;z.translate(this.fillPatternX(),this.fillPatternY()),z.rotate(t.Konva.getAngle(this.fillPatternRotation())),z.scale(this.fillPatternScaleX(),this.fillPatternScaleY()),z.translate(-1*this.fillPatternOffsetX(),-1*this.fillPatternOffsetY());const H=z.getMatrix(),J=typeof DOMMatrix>"u"?{a:H[0],b:H[1],c:H[2],d:H[3],e:H[4],f:H[5]}:new DOMMatrix(H);R.setTransform(J)}return R}}_getLinearGradient(){return this._getCache(b,this.__getLinearGradient)}__getLinearGradient(){var T=this.fillLinearGradientColorStops();if(T){for(var R=v(),z=this.fillLinearGradientStartPoint(),H=this.fillLinearGradientEndPoint(),J=R.createLinearGradient(z.x,z.y,H.x,H.y),q=0;qthis.fillEnabled()&&!!(this.fill()||this.fillPatternImage()||this.fillLinearGradientColorStops()||this.fillRadialGradientColorStops()))}hasStroke(){return this._calculate("hasStroke",["strokeEnabled","strokeWidth","stroke","strokeLinearGradientColorStops"],()=>this.strokeEnabled()&&this.strokeWidth()&&!!(this.stroke()||this.strokeLinearGradientColorStops()))}hasHitStroke(){const T=this.hitStrokeWidth();return T==="auto"?this.hasStroke():this.strokeEnabled()&&!!T}intersects(T){var R=this.getStage();if(!R)return!1;const z=R.bufferHitCanvas;return z.getContext().clear(),this.drawHit(z,void 0,!0),z.context.getImageData(Math.round(T.x),Math.round(T.y),1,1).data[3]>0}destroy(){return i.Node.prototype.destroy.call(this),delete e.shapes[this.colorKey],delete this.colorKey,this}_useBufferCanvas(T){var R;if(!(!((R=this.attrs.perfectDrawEnabled)!==null&&R!==void 0)||R))return!1;const z=T||this.hasFill(),H=this.hasStroke(),J=this.getAbsoluteOpacity()!==1;if(z&&H&&J)return!0;const q=this.hasShadow(),Y=this.shadowForStrokeEnabled();return!!(z&&H&&q&&Y)}setStrokeHitEnabled(T){n.Util.warn("strokeHitEnabled property is deprecated. Please use hitStrokeWidth instead."),T?this.hitStrokeWidth("auto"):this.hitStrokeWidth(0)}getStrokeHitEnabled(){return this.hitStrokeWidth()!==0}getSelfRect(){var T=this.size();return{x:this._centroid?-T.width/2:0,y:this._centroid?-T.height/2:0,width:T.width,height:T.height}}getClientRect(T={}){const R=T.skipTransform,z=T.relativeTo,H=this.getSelfRect(),J=!T.skipStroke&&this.hasStroke()&&this.strokeWidth()||0,q=H.width+J,Y=H.height+J,le=!T.skipShadow&&this.hasShadow(),K=le?this.shadowOffsetX():0,ce=le?this.shadowOffsetY():0,ne=q+Math.abs(K),oe=Y+Math.abs(ce),Q=le&&this.shadowBlur()||0,$=ne+Q*2,re=oe+Q*2,we={width:$,height:re,x:-(J/2+Q)+Math.min(K,0)+H.x,y:-(J/2+Q)+Math.min(ce,0)+H.y};return R?we:this._transformedRect(we,z)}drawScene(T,R,z){var H=this.getLayer(),J=T||H.getCanvas(),q=J.getContext(),Y=this._getCanvasCache(),le=this.getSceneFunc(),K=this.hasShadow(),ce,ne,oe=J.isCache,Q=R===this;if(!this.isVisible()&&!Q)return this;if(Y){q.save();var $=this.getAbsoluteTransform(R).getMatrix();return q.transform($[0],$[1],$[2],$[3],$[4],$[5]),this._drawCachedSceneCanvas(q),q.restore(),this}if(!le)return this;if(q.save(),this._useBufferCanvas()&&!oe){ce=this.getStage();const W=z||ce.bufferCanvas;ne=W.getContext(),ne.clear(),ne.save(),ne._applyLineJoin(this);var re=this.getAbsoluteTransform(R).getMatrix();ne.transform(re[0],re[1],re[2],re[3],re[4],re[5]),le.call(this,ne,this),ne.restore();var we=W.pixelRatio;K&&q._applyShadow(this),q._applyOpacity(this),q._applyGlobalCompositeOperation(this),q.drawImage(W._canvas,0,0,W.width/we,W.height/we)}else{if(q._applyLineJoin(this),!Q){var re=this.getAbsoluteTransform(R).getMatrix();q.transform(re[0],re[1],re[2],re[3],re[4],re[5]),q._applyOpacity(this),q._applyGlobalCompositeOperation(this)}K&&q._applyShadow(this),le.call(this,q,this)}return q.restore(),this}drawHit(T,R,z=!1){if(!this.shouldDrawHit(R,z))return this;var H=this.getLayer(),J=T||H.hitCanvas,q=J&&J.getContext(),Y=this.hitFunc()||this.sceneFunc(),le=this._getCanvasCache(),K=le&&le.hit;if(this.colorKey||n.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"),K){q.save();var ce=this.getAbsoluteTransform(R).getMatrix();return q.transform(ce[0],ce[1],ce[2],ce[3],ce[4],ce[5]),this._drawCachedHitCanvas(q),q.restore(),this}if(!Y)return this;if(q.save(),q._applyLineJoin(this),this!==R){var ne=this.getAbsoluteTransform(R).getMatrix();q.transform(ne[0],ne[1],ne[2],ne[3],ne[4],ne[5])}return Y.call(this,q,this),q.restore(),this}drawHitFromCache(T=0){var R=this._getCanvasCache(),z=this._getCachedSceneCanvas(),H=R.hit,J=H.getContext(),q=H.getWidth(),Y=H.getHeight(),le,K,ce,ne,oe,Q;J.clear(),J.drawImage(z._canvas,0,0,q,Y);try{for(le=J.getImageData(0,0,q,Y),K=le.data,ce=K.length,ne=n.Util._hexToRgb(this.colorKey),oe=0;oeT?(K[oe]=ne.r,K[oe+1]=ne.g,K[oe+2]=ne.b,K[oe+3]=255):K[oe+3]=0;J.putImageData(le,0,0)}catch($){n.Util.error("Unable to draw hit graph from cached scene canvas. "+$.message)}return this}hasPointerCapture(T){return s.hasPointerCapture(T,this)}setPointerCapture(T){s.setPointerCapture(T,this)}releaseCapture(T){s.releaseCapture(T,this)}}e.Shape=P,P.prototype._fillFunc=w,P.prototype._strokeFunc=k,P.prototype._fillFuncHit=C,P.prototype._strokeFuncHit=_,P.prototype._centroid=!1,P.prototype.nodeType="Shape",(0,o._registerNode)(P),P.prototype.eventListeners={},P.prototype.on.call(P.prototype,"shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",f),P.prototype.on.call(P.prototype,"shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",x),P.prototype.on.call(P.prototype,"fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetXChange.konva fillPatternOffsetYChange.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotationChange.konva",E),P.prototype.on.call(P.prototype,"fillPriorityChange.konva fillLinearGradientColorStopsChange.konva fillLinearGradientStartPointXChange.konva fillLinearGradientStartPointYChange.konva fillLinearGradientEndPointXChange.konva fillLinearGradientEndPointYChange.konva",M),P.prototype.on.call(P.prototype,"fillPriorityChange.konva fillRadialGradientColorStopsChange.konva fillRadialGradientStartPointXChange.konva fillRadialGradientStartPointYChange.konva fillRadialGradientEndPointXChange.konva fillRadialGradientEndPointYChange.konva fillRadialGradientStartRadiusChange.konva fillRadialGradientEndRadiusChange.konva",j),r.Factory.addGetterSetter(P,"stroke",void 0,(0,a.getStringOrGradientValidator)()),r.Factory.addGetterSetter(P,"strokeWidth",2,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillAfterStrokeEnabled",!1),r.Factory.addGetterSetter(P,"hitStrokeWidth","auto",(0,a.getNumberOrAutoValidator)()),r.Factory.addGetterSetter(P,"strokeHitEnabled",!0,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter(P,"perfectDrawEnabled",!0,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter(P,"shadowForStrokeEnabled",!0,(0,a.getBooleanValidator)()),r.Factory.addGetterSetter(P,"lineJoin"),r.Factory.addGetterSetter(P,"lineCap"),r.Factory.addGetterSetter(P,"sceneFunc"),r.Factory.addGetterSetter(P,"hitFunc"),r.Factory.addGetterSetter(P,"dash"),r.Factory.addGetterSetter(P,"dashOffset",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"shadowColor",void 0,(0,a.getStringValidator)()),r.Factory.addGetterSetter(P,"shadowBlur",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"shadowOpacity",1,(0,a.getNumberValidator)()),r.Factory.addComponentsGetterSetter(P,"shadowOffset",["x","y"]),r.Factory.addGetterSetter(P,"shadowOffsetX",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"shadowOffsetY",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternImage"),r.Factory.addGetterSetter(P,"fill",void 0,(0,a.getStringOrGradientValidator)()),r.Factory.addGetterSetter(P,"fillPatternX",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternY",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillLinearGradientColorStops"),r.Factory.addGetterSetter(P,"strokeLinearGradientColorStops"),r.Factory.addGetterSetter(P,"fillRadialGradientStartRadius",0),r.Factory.addGetterSetter(P,"fillRadialGradientEndRadius",0),r.Factory.addGetterSetter(P,"fillRadialGradientColorStops"),r.Factory.addGetterSetter(P,"fillPatternRepeat","repeat"),r.Factory.addGetterSetter(P,"fillEnabled",!0),r.Factory.addGetterSetter(P,"strokeEnabled",!0),r.Factory.addGetterSetter(P,"shadowEnabled",!0),r.Factory.addGetterSetter(P,"dashEnabled",!0),r.Factory.addGetterSetter(P,"strokeScaleEnabled",!0),r.Factory.addGetterSetter(P,"fillPriority","color"),r.Factory.addComponentsGetterSetter(P,"fillPatternOffset",["x","y"]),r.Factory.addGetterSetter(P,"fillPatternOffsetX",0,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternOffsetY",0,(0,a.getNumberValidator)()),r.Factory.addComponentsGetterSetter(P,"fillPatternScale",["x","y"]),r.Factory.addGetterSetter(P,"fillPatternScaleX",1,(0,a.getNumberValidator)()),r.Factory.addGetterSetter(P,"fillPatternScaleY",1,(0,a.getNumberValidator)()),r.Factory.addComponentsGetterSetter(P,"fillLinearGradientStartPoint",["x","y"]),r.Factory.addComponentsGetterSetter(P,"strokeLinearGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillLinearGradientStartPointX",0),r.Factory.addGetterSetter(P,"strokeLinearGradientStartPointX",0),r.Factory.addGetterSetter(P,"fillLinearGradientStartPointY",0),r.Factory.addGetterSetter(P,"strokeLinearGradientStartPointY",0),r.Factory.addComponentsGetterSetter(P,"fillLinearGradientEndPoint",["x","y"]),r.Factory.addComponentsGetterSetter(P,"strokeLinearGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillLinearGradientEndPointX",0),r.Factory.addGetterSetter(P,"strokeLinearGradientEndPointX",0),r.Factory.addGetterSetter(P,"fillLinearGradientEndPointY",0),r.Factory.addGetterSetter(P,"strokeLinearGradientEndPointY",0),r.Factory.addComponentsGetterSetter(P,"fillRadialGradientStartPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillRadialGradientStartPointX",0),r.Factory.addGetterSetter(P,"fillRadialGradientStartPointY",0),r.Factory.addComponentsGetterSetter(P,"fillRadialGradientEndPoint",["x","y"]),r.Factory.addGetterSetter(P,"fillRadialGradientEndPointX",0),r.Factory.addGetterSetter(P,"fillRadialGradientEndPointY",0),r.Factory.addGetterSetter(P,"fillPatternRotation",0),r.Factory.addGetterSetter(P,"fillRule",void 0,(0,a.getStringValidator)()),r.Factory.backCompat(P,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"})})(er),Object.defineProperty(m0,"__esModule",{value:!0}),m0.Layer=void 0;const oo=Sn,u4=sc,Kc=hn,d4=at,fC=ha,VG=Be,UG=er,WG=ft;var XG="#",YG="beforeDraw",KG="draw",GT=[{x:0,y:0},{x:-1,y:-1},{x:1,y:-1},{x:1,y:1},{x:-1,y:1}],ZG=GT.length;class Zc extends u4.Container{constructor(t){super(t),this.canvas=new fC.SceneCanvas,this.hitCanvas=new fC.HitCanvas({pixelRatio:1}),this._waitingForDraw=!1,this.on("visibleChange.konva",this._checkVisibility),this._checkVisibility(),this.on("imageSmoothingEnabledChange.konva",this._setSmoothEnabled),this._setSmoothEnabled()}createPNGStream(){return this.canvas._canvas.createPNGStream()}getCanvas(){return this.canvas}getNativeCanvasElement(){return this.canvas._canvas}getHitCanvas(){return this.hitCanvas}getContext(){return this.getCanvas().getContext()}clear(t){return this.getContext().clear(t),this.getHitCanvas().getContext().clear(t),this}setZIndex(t){super.setZIndex(t);var n=this.getStage();return n&&n.content&&(n.content.removeChild(this.getNativeCanvasElement()),t{this.draw(),this._waitingForDraw=!1})),this}getIntersection(t){if(!this.isListening()||!this.isVisible())return null;for(var n=1,r=!1;;){for(let i=0;i0)return{antialiased:!0};return{}}drawScene(t,n){var r=this.getLayer(),i=t||r&&r.getCanvas();return this._fire(YG,{node:this}),this.clearBeforeDraw()&&i.getContext().clear(),u4.Container.prototype.drawScene.call(this,i,n),this._fire(KG,{node:this}),this}drawHit(t,n){var r=this.getLayer(),i=t||r&&r.hitCanvas;return r&&r.clearBeforeDraw()&&r.getHitCanvas().getContext().clear(),u4.Container.prototype.drawHit.call(this,i,n),this}enableHitGraph(){return this.hitGraphEnabled(!0),this}disableHitGraph(){return this.hitGraphEnabled(!1),this}setHitGraphEnabled(t){oo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening(t)}getHitGraphEnabled(t){return oo.Util.warn("hitGraphEnabled method is deprecated. Please use layer.listening() instead."),this.listening()}toggleHitCanvas(){if(!(!this.parent||!this.parent.content)){var t=this.parent,n=!!this.hitCanvas._canvas.parentNode;n?t.content.removeChild(this.hitCanvas._canvas):t.content.appendChild(this.hitCanvas._canvas)}}destroy(){return oo.Util.releaseCanvas(this.getNativeCanvasElement(),this.getHitCanvas()._canvas),super.destroy()}}m0.Layer=Zc,Zc.prototype.nodeType="Layer",(0,WG._registerNode)(Zc),d4.Factory.addGetterSetter(Zc,"imageSmoothingEnabled",!0),d4.Factory.addGetterSetter(Zc,"clearBeforeDraw",!0),d4.Factory.addGetterSetter(Zc,"hitGraphEnabled",!0,(0,VG.getBooleanValidator)());var hg={};Object.defineProperty(hg,"__esModule",{value:!0}),hg.FastLayer=void 0;const qG=Sn,$G=m0,QG=ft;class h4 extends $G.Layer{constructor(t){super(t),this.listening(!1),qG.Util.warn('Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.')}}hg.FastLayer=h4,h4.prototype.nodeType="FastLayer",(0,QG._registerNode)(h4);var rd={};Object.defineProperty(rd,"__esModule",{value:!0}),rd.Group=void 0;const JG=Sn,eV=sc,tV=ft;class f4 extends eV.Container{_validateAdd(t){var n=t.getType();n!=="Group"&&n!=="Shape"&&JG.Util.throw("You may only add groups and shapes to groups.")}}rd.Group=f4,f4.prototype.nodeType="Group",(0,tV._registerNode)(f4);var id={};Object.defineProperty(id,"__esModule",{value:!0}),id.Animation=void 0;const p4=ft,pC=Sn,g4=function(){return p4.glob.performance&&p4.glob.performance.now?function(){return p4.glob.performance.now()}:function(){return new Date().getTime()}}();class Ha{constructor(t,n){this.id=Ha.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:g4(),frameRate:0},this.func=t,this.setLayers(n)}setLayers(t){let n=[];return t&&(n=Array.isArray(t)?t:[t]),this.layers=n,this}getLayers(){return this.layers}addLayer(t){const n=this.layers,r=n.length;for(let i=0;ithis.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():v<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=v,this.update())}getTime(){return this._time}setPosition(v){this.prevPos=this._pos,this.propFunc(v),this._pos=v}getPosition(v){return v===void 0&&(v=this._time),this.func(v,this.begin,this._change,this.duration)}play(){this.state=s,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")}reverse(){this.state=c,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")}seek(v){this.pause(),this._time=v,this.update(),this.fire("onSeek")}reset(){this.pause(),this._time=0,this.update(),this.fire("onReset")}finish(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")}update(){this.setPosition(this.getPosition(this._time)),this.fire("onUpdate")}onEnterFrame(){var v=this.getTimer()-this._startTime;this.state===s?this.setTime(v):this.state===c&&this.setTime(this.duration-v)}pause(){this.state=o,this.fire("onPause")}getTimer(){return new Date().getTime()}}class m{constructor(v){var w=this,k=v.node,C=k._id,_,f=v.easing||e.Easings.Linear,x=!!v.yoyo,E;typeof v.duration>"u"?_=.3:v.duration===0?_=.001:_=v.duration,this.node=k,this._id=d++;var M=k.getLayer()||(k instanceof i.Konva.Stage?k.getLayers():null);M||t.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new n.Animation(function(){w.tween.onEnterFrame()},M),this.tween=new b(E,function(j){w._tweenFunc(j)},f,0,1,_*1e3,x),this._addListeners(),m.attrs[C]||(m.attrs[C]={}),m.attrs[C][this._id]||(m.attrs[C][this._id]={}),m.tweens[C]||(m.tweens[C]={});for(E in v)a[E]===void 0&&this._addAttr(E,v[E]);this.reset(),this.onFinish=v.onFinish,this.onReset=v.onReset,this.onUpdate=v.onUpdate}_addAttr(v,w){var k=this.node,C=k._id,_,f,x,E,M,j,P,N;if(x=m.tweens[C][v],x&&delete m.attrs[C][x][v],_=k.getAttr(v),t.Util._isArray(w))if(f=[],M=Math.max(w.length,_.length),v==="points"&&w.length!==_.length&&(w.length>_.length?(P=_,_=t.Util._prepareArrayForTween(_,w,k.closed())):(j=w,w=t.Util._prepareArrayForTween(w,_,k.closed()))),v.indexOf("fill")===0)for(E=0;E{this.anim.start()},this.tween.onReverse=()=>{this.anim.start()},this.tween.onPause=()=>{this.anim.stop()},this.tween.onFinish=()=>{var v=this.node,w=m.attrs[v._id][this._id];w.points&&w.points.trueEnd&&v.setAttr("points",w.points.trueEnd),this.onFinish&&this.onFinish.call(this)},this.tween.onReset=()=>{var v=this.node,w=m.attrs[v._id][this._id];w.points&&w.points.trueStart&&v.points(w.points.trueStart),this.onReset&&this.onReset()},this.tween.onUpdate=()=>{this.onUpdate&&this.onUpdate.call(this)}}play(){return this.tween.play(),this}reverse(){return this.tween.reverse(),this}reset(){return this.tween.reset(),this}seek(v){return this.tween.seek(v*1e3),this}pause(){return this.tween.pause(),this}finish(){return this.tween.finish(),this}destroy(){var v=this.node._id,w=this._id,k=m.tweens[v],C;this.pause();for(C in k)delete m.tweens[v][C];delete m.attrs[v][w]}}e.Tween=m,m.attrs={},m.tweens={},r.Node.prototype.to=function(g){var v=g.onFinish;g.node=this,g.onFinish=function(){this.destroy(),v&&v()};var w=new m(g);w.play()},e.Easings={BackEaseIn(g,v,w,k){var C=1.70158;return w*(g/=k)*g*((C+1)*g-C)+v},BackEaseOut(g,v,w,k){var C=1.70158;return w*((g=g/k-1)*g*((C+1)*g+C)+1)+v},BackEaseInOut(g,v,w,k){var C=1.70158;return(g/=k/2)<1?w/2*(g*g*(((C*=1.525)+1)*g-C))+v:w/2*((g-=2)*g*(((C*=1.525)+1)*g+C)+2)+v},ElasticEaseIn(g,v,w,k,C,_){var f=0;return g===0?v:(g/=k)===1?v+w:(_||(_=k*.3),!C||C0?t:n),h=o*n,b=s*(s>0?t:n),m=c*(c>0?n:t);return{x:d,y:r?-1*m:b,width:h-d,height:m-b}}}fg.Arc=so,so.prototype._centroid=!0,so.prototype.className="Arc",so.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,rV._registerNode)(so),yf.Factory.addGetterSetter(so,"innerRadius",0,(0,bf.getNumberValidator)()),yf.Factory.addGetterSetter(so,"outerRadius",0,(0,bf.getNumberValidator)()),yf.Factory.addGetterSetter(so,"angle",0,(0,bf.getNumberValidator)()),yf.Factory.addGetterSetter(so,"clockwise",!1,(0,bf.getBooleanValidator)());var pg={},v0={};Object.defineProperty(v0,"__esModule",{value:!0}),v0.Line=void 0;const wf=at,iV=er,vC=Be,aV=ft;function Iy(e,t,n,r,i,a,o){var s=Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2)),c=Math.sqrt(Math.pow(i-n,2)+Math.pow(a-r,2)),d=o*s/(s+c),h=o*c/(s+c),b=n-d*(i-e),m=r-d*(a-t),g=n+h*(i-e),v=r+h*(a-t);return[b,m,g,v]}function yC(e,t){var n=e.length,r=[],i,a;for(i=2;i4){for(o=this.getTensionPoints(),s=o.length,c=i?0:4,i||e.quadraticCurveTo(o[0],o[1],o[2],o[3]);c{let d,h,b;d=c/2,h=0;for(let m=0;m<20;m++)b=d*e.tValues[20][m]+d,h+=e.cValues[20][m]*r(o,s,b);return d*h};e.getCubicArcLength=t;const n=(o,s,c)=>{c===void 0&&(c=1);const d=o[0]-2*o[1]+o[2],h=s[0]-2*s[1]+s[2],b=2*o[1]-2*o[0],m=2*s[1]-2*s[0],g=4*(d*d+h*h),v=4*(d*b+h*m),w=b*b+m*m;if(g===0)return c*Math.sqrt(Math.pow(o[2]-o[0],2)+Math.pow(s[2]-s[0],2));const k=v/(2*g),C=w/g,_=c+k,f=C-k*k,x=_*_+f>0?Math.sqrt(_*_+f):0,E=k*k+f>0?Math.sqrt(k*k+f):0,M=k+Math.sqrt(k*k+f)!==0?f*Math.log(Math.abs((_+x)/(k+E))):0;return Math.sqrt(g)/2*(_*x-k*E+M)};e.getQuadraticArcLength=n;function r(o,s,c){const d=i(1,c,o),h=i(1,c,s),b=d*d+h*h;return Math.sqrt(b)}const i=(o,s,c)=>{const d=c.length-1;let h,b;if(d===0)return 0;if(o===0){b=0;for(let m=0;m<=d;m++)b+=e.binomialCoefficients[d][m]*Math.pow(1-s,d-m)*Math.pow(s,m)*c[m];return b}else{h=new Array(d);for(let m=0;m{let d=1,h=o/s,b=(o-c(h))/s,m=0;for(;d>.001;){const g=c(h+b),v=Math.abs(o-g)/s;if(v500)break}return h};e.t2length=a})(VT),Object.defineProperty(ad,"__esModule",{value:!0}),ad.Path=void 0;const oV=at,sV=er,lV=ft,qc=VT;class Kn extends sV.Shape{constructor(t){super(t),this.dataArray=[],this.pathLength=0,this._readDataAttribute(),this.on("dataChange.konva",function(){this._readDataAttribute()})}_readDataAttribute(){this.dataArray=Kn.parsePathData(this.data()),this.pathLength=Kn.getPathLength(this.dataArray)}_sceneFunc(t){var n=this.dataArray;t.beginPath();for(var r=!1,i=0;ih?d:h,k=d>h?1:d/h,C=d>h?h/d:1;t.translate(s,c),t.rotate(g),t.scale(k,C),t.arc(0,0,w,b,b+m,1-v),t.scale(1/k,1/C),t.rotate(-g),t.translate(-s,-c);break;case"z":r=!0,t.closePath();break}}!r&&!this.hasFill()?t.strokeShape(this):t.fillStrokeShape(this)}getSelfRect(){var t=[];this.dataArray.forEach(function(d){if(d.command==="A"){var h=d.points[4],b=d.points[5],m=d.points[4]+b,g=Math.PI/180;if(Math.abs(h-m)m;v-=g){const w=Kn.getPointOnEllipticalArc(d.points[0],d.points[1],d.points[2],d.points[3],v,0);t.push(w.x,w.y)}else for(let v=h+g;vn[i].pathLength;)t-=n[i].pathLength,++i;if(i===a)return r=n[i-1].points.slice(-2),{x:r[0],y:r[1]};if(t<.01)return r=n[i].points.slice(0,2),{x:r[0],y:r[1]};var o=n[i],s=o.points;switch(o.command){case"L":return Kn.getPointOnLine(t,o.start.x,o.start.y,s[0],s[1]);case"C":return Kn.getPointOnCubicBezier((0,qc.t2length)(t,Kn.getPathLength(n),w=>(0,qc.getCubicArcLength)([o.start.x,s[0],s[2],s[4]],[o.start.y,s[1],s[3],s[5]],w)),o.start.x,o.start.y,s[0],s[1],s[2],s[3],s[4],s[5]);case"Q":return Kn.getPointOnQuadraticBezier((0,qc.t2length)(t,Kn.getPathLength(n),w=>(0,qc.getQuadraticArcLength)([o.start.x,s[0],s[2]],[o.start.y,s[1],s[3]],w)),o.start.x,o.start.y,s[0],s[1],s[2],s[3]);case"A":var c=s[0],d=s[1],h=s[2],b=s[3],m=s[4],g=s[5],v=s[6];return m+=g*t/o.pathLength,Kn.getPointOnEllipticalArc(c,d,h,b,m,v)}return null}static getPointOnLine(t,n,r,i,a,o,s){o===void 0&&(o=n),s===void 0&&(s=r);var c=(a-r)/(i-n+1e-8),d=Math.sqrt(t*t/(1+c*c));i0&&!isNaN(v[0]);){var _="",f=[],x=c,E=d,M,j,P,N,T,R,z,H,J,q;switch(g){case"l":c+=v.shift(),d+=v.shift(),_="L",f.push(c,d);break;case"L":c=v.shift(),d=v.shift(),f.push(c,d);break;case"m":var Y=v.shift(),le=v.shift();if(c+=Y,d+=le,_="M",o.length>2&&o[o.length-1].command==="z"){for(var K=o.length-2;K>=0;K--)if(o[K].command==="M"){c=o[K].points[0]+Y,d=o[K].points[1]+le;break}}f.push(c,d),g="l";break;case"M":c=v.shift(),d=v.shift(),_="M",f.push(c,d),g="L";break;case"h":c+=v.shift(),_="L",f.push(c,d);break;case"H":c=v.shift(),_="L",f.push(c,d);break;case"v":d+=v.shift(),_="L",f.push(c,d);break;case"V":d=v.shift(),_="L",f.push(c,d);break;case"C":f.push(v.shift(),v.shift(),v.shift(),v.shift()),c=v.shift(),d=v.shift(),f.push(c,d);break;case"c":f.push(c+v.shift(),d+v.shift(),c+v.shift(),d+v.shift()),c+=v.shift(),d+=v.shift(),_="C",f.push(c,d);break;case"S":j=c,P=d,M=o[o.length-1],M.command==="C"&&(j=c+(c-M.points[2]),P=d+(d-M.points[3])),f.push(j,P,v.shift(),v.shift()),c=v.shift(),d=v.shift(),_="C",f.push(c,d);break;case"s":j=c,P=d,M=o[o.length-1],M.command==="C"&&(j=c+(c-M.points[2]),P=d+(d-M.points[3])),f.push(j,P,c+v.shift(),d+v.shift()),c+=v.shift(),d+=v.shift(),_="C",f.push(c,d);break;case"Q":f.push(v.shift(),v.shift()),c=v.shift(),d=v.shift(),f.push(c,d);break;case"q":f.push(c+v.shift(),d+v.shift()),c+=v.shift(),d+=v.shift(),_="Q",f.push(c,d);break;case"T":j=c,P=d,M=o[o.length-1],M.command==="Q"&&(j=c+(c-M.points[0]),P=d+(d-M.points[1])),c=v.shift(),d=v.shift(),_="Q",f.push(j,P,c,d);break;case"t":j=c,P=d,M=o[o.length-1],M.command==="Q"&&(j=c+(c-M.points[0]),P=d+(d-M.points[1])),c+=v.shift(),d+=v.shift(),_="Q",f.push(j,P,c,d);break;case"A":N=v.shift(),T=v.shift(),R=v.shift(),z=v.shift(),H=v.shift(),J=c,q=d,c=v.shift(),d=v.shift(),_="A",f=this.convertEndpointToCenterParameterization(J,q,c,d,z,H,N,T,R);break;case"a":N=v.shift(),T=v.shift(),R=v.shift(),z=v.shift(),H=v.shift(),J=c,q=d,c+=v.shift(),d+=v.shift(),_="A",f=this.convertEndpointToCenterParameterization(J,q,c,d,z,H,N,T,R);break}o.push({command:_||g,points:f,start:{x,y:E},pathLength:this.calcLength(x,E,_||g,f)})}(g==="z"||g==="Z")&&o.push({command:"z",points:[],start:void 0,pathLength:0})}return o}static calcLength(t,n,r,i){var a,o,s,c,d=Kn;switch(r){case"L":return d.getLineLength(t,n,i[0],i[1]);case"C":return(0,qc.getCubicArcLength)([t,i[0],i[2],i[4]],[n,i[1],i[3],i[5]],1);case"Q":return(0,qc.getQuadraticArcLength)([t,i[0],i[2]],[n,i[1],i[3]],1);case"A":a=0;var h=i[4],b=i[5],m=i[4]+b,g=Math.PI/180;if(Math.abs(h-m)m;c-=g)s=d.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),a+=d.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(c=h+g;c1&&(s*=Math.sqrt(g),c*=Math.sqrt(g));var v=Math.sqrt((s*s*(c*c)-s*s*(m*m)-c*c*(b*b))/(s*s*(m*m)+c*c*(b*b)));a===o&&(v*=-1),isNaN(v)&&(v=0);var w=v*s*m/c,k=v*-c*b/s,C=(t+r)/2+Math.cos(h)*w-Math.sin(h)*k,_=(n+i)/2+Math.sin(h)*w+Math.cos(h)*k,f=function(T){return Math.sqrt(T[0]*T[0]+T[1]*T[1])},x=function(T,R){return(T[0]*R[0]+T[1]*R[1])/(f(T)*f(R))},E=function(T,R){return(T[0]*R[1]=1&&(N=0),o===0&&N>0&&(N=N-2*Math.PI),o===1&&N<0&&(N=N+2*Math.PI),[C,_,s,c,M,N,h,o]}}ad.Path=Kn,Kn.prototype.className="Path",Kn.prototype._attrsAffectingSize=["data"],(0,lV._registerNode)(Kn),oV.Factory.addGetterSetter(Kn,"data"),Object.defineProperty(pg,"__esModule",{value:!0}),pg.Arrow=void 0;const xf=at,cV=v0,bC=Be,uV=ft,wC=ad;let kl=class extends cV.Line{_sceneFunc(e){super._sceneFunc(e);var t=Math.PI*2,n=this.points(),r=n,i=this.tension()!==0&&n.length>4;i&&(r=this.getTensionPoints());var a=this.pointerLength(),o=n.length,s,c;if(i){const b=[r[r.length-4],r[r.length-3],r[r.length-2],r[r.length-1],n[o-2],n[o-1]],m=wC.Path.calcLength(r[r.length-4],r[r.length-3],"C",b),g=wC.Path.getPointOnQuadraticBezier(Math.min(1,1-a/m),b[0],b[1],b[2],b[3],b[4],b[5]);s=n[o-2]-g.x,c=n[o-1]-g.y}else s=n[o-2]-n[o-4],c=n[o-1]-n[o-3];var d=(Math.atan2(c,s)+t)%t,h=this.pointerWidth();this.pointerAtEnding()&&(e.save(),e.beginPath(),e.translate(n[o-2],n[o-1]),e.rotate(d),e.moveTo(0,0),e.lineTo(-a,h/2),e.lineTo(-a,-h/2),e.closePath(),e.restore(),this.__fillStroke(e)),this.pointerAtBeginning()&&(e.save(),e.beginPath(),e.translate(n[0],n[1]),i?(s=(r[0]+r[2])/2-n[0],c=(r[1]+r[3])/2-n[1]):(s=n[2]-n[0],c=n[3]-n[1]),e.rotate((Math.atan2(-c,-s)+t)%t),e.moveTo(0,0),e.lineTo(-a,h/2),e.lineTo(-a,-h/2),e.closePath(),e.restore(),this.__fillStroke(e))}__fillStroke(e){var t=this.dashEnabled();t&&(this.attrs.dashEnabled=!1,e.setLineDash([])),e.fillStrokeShape(this),t&&(this.attrs.dashEnabled=!0)}getSelfRect(){const e=super.getSelfRect(),t=this.pointerWidth()/2;return{x:e.x-t,y:e.y-t,width:e.width+t*2,height:e.height+t*2}}};pg.Arrow=kl,kl.prototype.className="Arrow",(0,uV._registerNode)(kl),xf.Factory.addGetterSetter(kl,"pointerLength",10,(0,bC.getNumberValidator)()),xf.Factory.addGetterSetter(kl,"pointerWidth",10,(0,bC.getNumberValidator)()),xf.Factory.addGetterSetter(kl,"pointerAtBeginning",!1),xf.Factory.addGetterSetter(kl,"pointerAtEnding",!0);var gg={};Object.defineProperty(gg,"__esModule",{value:!0}),gg.Circle=void 0;const dV=at,hV=er,fV=Be,pV=ft;class $c extends hV.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.attrs.radius||0,0,Math.PI*2,!1),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius()!==t/2&&this.radius(t/2)}setHeight(t){this.radius()!==t/2&&this.radius(t/2)}}gg.Circle=$c,$c.prototype._centroid=!0,$c.prototype.className="Circle",$c.prototype._attrsAffectingSize=["radius"],(0,pV._registerNode)($c),dV.Factory.addGetterSetter($c,"radius",0,(0,fV.getNumberValidator)());var mg={};Object.defineProperty(mg,"__esModule",{value:!0}),mg.Ellipse=void 0;const m4=at,gV=er,xC=Be,mV=ft;let cs=class extends gV.Shape{_sceneFunc(e){var t=this.radiusX(),n=this.radiusY();e.beginPath(),e.save(),t!==n&&e.scale(1,n/t),e.arc(0,0,t,0,Math.PI*2,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)}getWidth(){return this.radiusX()*2}getHeight(){return this.radiusY()*2}setWidth(e){this.radiusX(e/2)}setHeight(e){this.radiusY(e/2)}};mg.Ellipse=cs,cs.prototype.className="Ellipse",cs.prototype._centroid=!0,cs.prototype._attrsAffectingSize=["radiusX","radiusY"],(0,mV._registerNode)(cs),m4.Factory.addComponentsGetterSetter(cs,"radius",["x","y"]),m4.Factory.addGetterSetter(cs,"radiusX",0,(0,xC.getNumberValidator)()),m4.Factory.addGetterSetter(cs,"radiusY",0,(0,xC.getNumberValidator)());var vg={};Object.defineProperty(vg,"__esModule",{value:!0}),vg.Image=void 0;const v4=Sn,Ol=at,vV=er,yV=ft,oh=Be;let Na=class UT extends vV.Shape{constructor(t){super(t),this.on("imageChange.konva",()=>{this._setImageLoad()}),this._setImageLoad()}_setImageLoad(){const t=this.image();t&&t.complete||t&&t.readyState===4||t&&t.addEventListener&&t.addEventListener("load",()=>{this._requestDraw()})}_useBufferCanvas(){return super._useBufferCanvas(!0)}_sceneFunc(t){const n=this.getWidth(),r=this.getHeight(),i=this.cornerRadius(),a=this.attrs.image;let o;if(a){const s=this.attrs.cropWidth,c=this.attrs.cropHeight;s&&c?o=[a,this.cropX(),this.cropY(),s,c,0,0,n,r]:o=[a,0,0,n,r]}(this.hasFill()||this.hasStroke()||i)&&(t.beginPath(),i?v4.Util.drawRoundedRectPath(t,n,r,i):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)),a&&(i&&t.clip(),t.drawImage.apply(t,o))}_hitFunc(t){var n=this.width(),r=this.height(),i=this.cornerRadius();t.beginPath(),i?v4.Util.drawRoundedRectPath(t,n,r,i):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}getWidth(){var t,n;return(t=this.attrs.width)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.width}getHeight(){var t,n;return(t=this.attrs.height)!==null&&t!==void 0?t:(n=this.image())===null||n===void 0?void 0:n.height}static fromURL(t,n,r=null){var i=v4.Util.createImageElement();i.onload=function(){var a=new UT({image:i});n(a)},i.onerror=r,i.crossOrigin="Anonymous",i.src=t}};vg.Image=Na,Na.prototype.className="Image",(0,yV._registerNode)(Na),Ol.Factory.addGetterSetter(Na,"cornerRadius",0,(0,oh.getNumberOrArrayOfNumbersValidator)(4)),Ol.Factory.addGetterSetter(Na,"image"),Ol.Factory.addComponentsGetterSetter(Na,"crop",["x","y","width","height"]),Ol.Factory.addGetterSetter(Na,"cropX",0,(0,oh.getNumberValidator)()),Ol.Factory.addGetterSetter(Na,"cropY",0,(0,oh.getNumberValidator)()),Ol.Factory.addGetterSetter(Na,"cropWidth",0,(0,oh.getNumberValidator)()),Ol.Factory.addGetterSetter(Na,"cropHeight",0,(0,oh.getNumberValidator)());var Ru={};Object.defineProperty(Ru,"__esModule",{value:!0}),Ru.Tag=Ru.Label=void 0;const Cf=at,bV=er,wV=rd,y4=Be,WT=ft;var XT=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width","height","pointerDirection","pointerWidth","pointerHeight"],xV="Change.konva",CV="none",Ay="up",Ly="right",jy="down",Ny="left",SV=XT.length;let b4=class extends wV.Group{constructor(e){super(e),this.on("add.konva",function(t){this._addListeners(t.child),this._sync()})}getText(){return this.find("Text")[0]}getTag(){return this.find("Tag")[0]}_addListeners(e){var t=this,n,r=function(){t._sync()};for(n=0;n{n=Math.min(n,o.x),r=Math.max(r,o.x),i=Math.min(i,o.y),a=Math.max(a,o.y)}),{x:n,y:i,width:r-n,height:a-i}}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}yg.RegularPolygon=Tl,Tl.prototype.className="RegularPolygon",Tl.prototype._centroid=!0,Tl.prototype._attrsAffectingSize=["radius"],(0,MV._registerNode)(Tl),CC.Factory.addGetterSetter(Tl,"radius",0,(0,SC.getNumberValidator)()),CC.Factory.addGetterSetter(Tl,"sides",0,(0,SC.getNumberValidator)());var bg={};Object.defineProperty(bg,"__esModule",{value:!0}),bg.Ring=void 0;const EC=at,IV=er,_C=Be,AV=ft;var kC=Math.PI*2;class Ml extends IV.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.innerRadius(),0,kC,!1),t.moveTo(this.outerRadius(),0),t.arc(0,0,this.outerRadius(),kC,0,!0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.outerRadius()*2}getHeight(){return this.outerRadius()*2}setWidth(t){this.outerRadius(t/2)}setHeight(t){this.outerRadius(t/2)}}bg.Ring=Ml,Ml.prototype.className="Ring",Ml.prototype._centroid=!0,Ml.prototype._attrsAffectingSize=["innerRadius","outerRadius"],(0,AV._registerNode)(Ml),EC.Factory.addGetterSetter(Ml,"innerRadius",0,(0,_C.getNumberValidator)()),EC.Factory.addGetterSetter(Ml,"outerRadius",0,(0,_C.getNumberValidator)());var wg={};Object.defineProperty(wg,"__esModule",{value:!0}),wg.Sprite=void 0;const Il=at,LV=er,jV=id,OC=Be,NV=ft;class Da extends LV.Shape{constructor(t){super(t),this._updated=!0,this.anim=new jV.Animation(()=>{var n=this._updated;return this._updated=!1,n}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())})}_sceneFunc(t){var n=this.animation(),r=this.frameIndex(),i=r*4,a=this.animations()[n],o=this.frameOffsets(),s=a[i+0],c=a[i+1],d=a[i+2],h=a[i+3],b=this.image();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,d,h),t.closePath(),t.fillStrokeShape(this)),b)if(o){var m=o[n],g=r*2;t.drawImage(b,s,c,d,h,m[g+0],m[g+1],d,h)}else t.drawImage(b,s,c,d,h,0,0,d,h)}_hitFunc(t){var n=this.animation(),r=this.frameIndex(),i=r*4,a=this.animations()[n],o=this.frameOffsets(),s=a[i+2],c=a[i+3];if(t.beginPath(),o){var d=o[n],h=r*2;t.rect(d[h+0],d[h+1],s,c)}else t.rect(0,0,s,c);t.closePath(),t.fillShape(this)}_useBufferCanvas(){return super._useBufferCanvas(!0)}_setInterval(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.frameRate())}start(){if(!this.isRunning()){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()}}stop(){this.anim.stop(),clearInterval(this.interval)}isRunning(){return this.anim.isRunning()}_updateIndex(){var t=this.frameIndex(),n=this.animation(),r=this.animations(),i=r[n],a=i.length/4;t{t=t.trim();const n=t.indexOf(" ")>=0,r=t.indexOf('"')>=0||t.indexOf("'")>=0;return n&&!r&&(t=`"${t}"`),t}).join(", ")}var S4;function E4(){return S4||(S4=Dy.Util.createCanvasElement().getContext(GV),S4)}function JV(e){e.fillText(this._partialText,this._partialTextX,this._partialTextY)}function eU(e){e.setAttr("miterLimit",2),e.strokeText(this._partialText,this._partialTextX,this._partialTextY)}function tU(e){return e=e||{},!e.fillLinearGradientColorStops&&!e.fillRadialGradientColorStops&&!e.fillPatternImage&&(e.fill=e.fill||"black"),e}let kn=class extends FV.Shape{constructor(e){super(tU(e)),this._partialTextX=0,this._partialTextY=0;for(var t=0;t<$V;t++)this.on(qT[t]+HV,this._setTextData);this._setTextData()}_sceneFunc(e){var t=this.textArr,n=t.length;if(this.text()){var r=this.padding(),i=this.fontSize(),a=this.lineHeight()*i,o=this.verticalAlign(),s=this.direction(),c=0,d=this.align(),h=this.getWidth(),b=this.letterSpacing(),m=this.fill(),g=this.textDecoration(),v=g.indexOf("underline")!==-1,w=g.indexOf("line-through")!==-1,k;s=s===KT?e.direction:s;var C=0,C=a/2,_=0,f=0;for(s===IC&&e.setAttr("direction",s),e.setAttr("font",this._getContextFont()),e.setAttr("textBaseline",TC),e.setAttr("textAlign",ZT),o===TC?c=(this.getHeight()-n*a-r*2)/2:o===XV&&(c=this.getHeight()-n*a-r*2),e.translate(r,c+r),k=0;k1&&(C+=a)}}}_hitFunc(e){var t=this.getWidth(),n=this.getHeight();e.beginPath(),e.rect(0,0,t,n),e.closePath(),e.fillStrokeShape(this)}setText(e){var t=Dy.Util._isString(e)?e:e==null?"":e+"";return this._setAttr(VV,t),this}getWidth(){var e=this.attrs.width===Qc||this.attrs.width===void 0;return e?this.getTextWidth()+this.padding()*2:this.attrs.width}getHeight(){var e=this.attrs.height===Qc||this.attrs.height===void 0;return e?this.fontSize()*this.textArr.length*this.lineHeight()+this.padding()*2:this.attrs.height}getTextWidth(){return this.textWidth}getTextHeight(){return Dy.Util.warn("text.getTextHeight() method is deprecated. Use text.height() - for full height and text.fontSize() - for one line height."),this.textHeight}measureSize(e){var t=E4(),n=this.fontSize(),r;return t.save(),t.font=this._getContextFont(),r=t.measureText(e),t.restore(),{width:r.width,height:n}}_getContextFont(){return this.fontStyle()+Ef+this.fontVariant()+Ef+(this.fontSize()+YV)+QV(this.fontFamily())}_addTextLine(e){this.align()===sh&&(e=e.trim());var t=this._getTextWidth(e);return this.textArr.push({text:e,width:t,lastInParagraph:!1})}_getTextWidth(e){var t=this.letterSpacing(),n=e.length;return E4().measureText(e).width+(n?t*(n-1):0)}_setTextData(){var e=this.text().split(` `),t=+this.fontSize(),n=0,r=this.lineHeight()*t,i=this.attrs.width,a=this.attrs.height,o=i!==Qc&&i!==void 0,s=a!==Qc&&a!==void 0,c=this.padding(),d=i-c*2,h=a-c*2,b=0,m=this.wrap(),g=m!==AC,v=m!==qV&&g,w=this.ellipsis();this.textArr=[],E4().font=this._getContextFont();for(var k=w?this._getTextWidth(C4):0,C=0,_=e.length;C<_;++C){var f=e[C],x=this._getTextWidth(f);if(o&&x>d)for(;f.length>0;){for(var E=0,M=f.length,j="",P=0;E>>1,T=f.slice(0,N+1),R=this._getTextWidth(T)+k;R<=d?(E=N+1,j=T,P=R):M=N}if(j){if(v){var z,H=f[j.length],J=H===Ef||H===PC;J&&P<=d?z=j.length:z=Math.max(j.lastIndexOf(Ef),j.lastIndexOf(PC))+1,z>0&&(E=z,j=j.slice(0,E),P=this._getTextWidth(j))}j=j.trimRight(),this._addTextLine(j),n=Math.max(n,P),b+=r;var q=this._shouldHandleEllipsis(b);if(q){this._tryToAddEllipsisToLastLine();break}if(f=f.slice(E),f=f.trimLeft(),f.length>0&&(x=this._getTextWidth(f),x<=d)){this._addTextLine(f),b+=r,n=Math.max(n,x);break}}else break}else this._addTextLine(f),b+=r,n=Math.max(n,x),this._shouldHandleEllipsis(b)&&C<_-1&&this._tryToAddEllipsisToLastLine();if(this.textArr[this.textArr.length-1]&&(this.textArr[this.textArr.length-1].lastInParagraph=!0),s&&b+r>h)break}this.textHeight=t,this.textWidth=n}_shouldHandleEllipsis(e){var t=+this.fontSize(),n=this.lineHeight()*t,r=this.attrs.height,i=r!==Qc&&r!==void 0,a=this.padding(),o=r-a*2,s=this.wrap(),c=s!==AC;return!c||i&&e+n>o}_tryToAddEllipsisToLastLine(){var e=this.attrs.width,t=e!==Qc&&e!==void 0,n=this.padding(),r=e-n*2,i=this.ellipsis(),a=this.textArr[this.textArr.length-1];if(!(!a||!i)){if(t){var o=this._getTextWidth(a.text+C4)n?null:lh.Path.getPointAtLengthOfDataArray(t,this.dataArray)}_readDataAttribute(){this.dataArray=lh.Path.parsePathData(this.attrs.data),this.pathLength=this._getTextPathLength()}_sceneFunc(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.textBaseline()),t.setAttr("textAlign","left"),t.save();var n=this.textDecoration(),r=this.fill(),i=this.fontSize(),a=this.glyphInfo;n==="underline"&&t.beginPath();for(var o=0;o=1){var r=n[0].p0;t.moveTo(r.x,r.y)}for(var i=0;ie+`.${$T}`).join(" "),zC="nodesRect",cU=["widthChange","heightChange","scaleXChange","scaleYChange","skewXChange","skewYChange","rotationChange","offsetXChange","offsetYChange","transformsEnabledChange","strokeWidthChange"],uU={"top-left":-45,"top-center":0,"top-right":45,"middle-right":-90,"middle-left":90,"bottom-left":-135,"bottom-center":180,"bottom-right":135};const dU="ontouchstart"in aa.Konva._global;function hU(e,t,n){if(e==="rotater")return n;t+=Gt.Util.degToRad(uU[e]||0);var r=(Gt.Util.radToDeg(t)%360+360)%360;return Gt.Util._inRange(r,315+22.5,360)||Gt.Util._inRange(r,0,22.5)?"ns-resize":Gt.Util._inRange(r,45-22.5,45+22.5)?"nesw-resize":Gt.Util._inRange(r,90-22.5,90+22.5)?"ew-resize":Gt.Util._inRange(r,135-22.5,135+22.5)?"nwse-resize":Gt.Util._inRange(r,180-22.5,180+22.5)?"ns-resize":Gt.Util._inRange(r,225-22.5,225+22.5)?"nesw-resize":Gt.Util._inRange(r,270-22.5,270+22.5)?"ew-resize":Gt.Util._inRange(r,315-22.5,315+22.5)?"nwse-resize":(Gt.Util.error("Transformer has unknown angle for cursor detection: "+r),"pointer")}var Eg=["top-left","top-center","top-right","middle-right","middle-left","bottom-left","bottom-center","bottom-right"];function fU(e){return{x:e.x+e.width/2*Math.cos(e.rotation)+e.height/2*Math.sin(-e.rotation),y:e.y+e.height/2*Math.cos(e.rotation)+e.width/2*Math.sin(e.rotation)}}function QT(e,t,n){const r=n.x+(e.x-n.x)*Math.cos(t)-(e.y-n.y)*Math.sin(t),i=n.y+(e.x-n.x)*Math.sin(t)+(e.y-n.y)*Math.cos(t);return{...e,rotation:e.rotation+t,x:r,y:i}}function pU(e,t){const n=fU(e);return QT(e,t,n)}function gU(e,t,n){let r=t;for(let i=0;ii.isAncestorOf(this)?(Gt.Util.error("Konva.Transformer cannot be an a child of the node you are trying to attach"),!1):!0);this._nodes=t=n,t.length===1&&this.useSingleNodeRotation()?this.rotation(t[0].getAbsoluteRotation()):this.rotation(0),this._nodes.forEach(i=>{const a=()=>{this.nodes().length===1&&this.useSingleNodeRotation()&&this.rotation(this.nodes()[0].getAbsoluteRotation()),this._resetTransformCache(),!this._transforming&&!this.isDragging()&&this.update()},o=i._attrsAffectingSize.map(s=>s+"Change."+this._getEventNamespace()).join(" ");i.on(o,a),i.on(cU.map(s=>s+`.${this._getEventNamespace()}`).join(" "),a),i.on(`absoluteTransformChange.${this._getEventNamespace()}`,a),this._proxyDrag(i)}),this._resetTransformCache();var r=!!this.findOne(".top-left");return r&&this.update(),this}_proxyDrag(t){let n;t.on(`dragstart.${this._getEventNamespace()}`,r=>{n=t.getAbsolutePosition(),!this.isDragging()&&t!==this.findOne(".back")&&this.startDrag(r,!1)}),t.on(`dragmove.${this._getEventNamespace()}`,r=>{if(!n)return;const i=t.getAbsolutePosition(),a=i.x-n.x,o=i.y-n.y;this.nodes().forEach(s=>{if(s===t||s.isDragging())return;const c=s.getAbsolutePosition();s.setAbsolutePosition({x:c.x+a,y:c.y+o}),s.startDrag(r)}),n=null})}getNodes(){return this._nodes||[]}getActiveAnchor(){return this._movingAnchorName}detach(){this._nodes&&this._nodes.forEach(t=>{t.off("."+this._getEventNamespace())}),this._nodes=[],this._resetTransformCache()}_resetTransformCache(){this._clearCache(zC),this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")}_getNodeRect(){return this._getCache(zC,this.__getNodeRect)}__getNodeShape(t,n=this.rotation(),r){var i=t.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()}),a=t.getAbsoluteScale(r),o=t.getAbsolutePosition(r),s=i.x*a.x-t.offsetX()*a.x,c=i.y*a.y-t.offsetY()*a.y;const d=(aa.Konva.getAngle(t.getAbsoluteRotation())+Math.PI*2)%(Math.PI*2),h={x:o.x+s*Math.cos(d)+c*Math.sin(-d),y:o.y+c*Math.cos(d)+s*Math.sin(d),width:i.width*a.x,height:i.height*a.y,rotation:d};return QT(h,-aa.Konva.getAngle(n),{x:0,y:0})}__getNodeRect(){var t=this.getNode();if(!t)return{x:-1e8,y:-1e8,width:0,height:0,rotation:0};const n=[];this.nodes().map(d=>{const h=d.getClientRect({skipTransform:!0,skipShadow:!0,skipStroke:this.ignoreStroke()});var b=[{x:h.x,y:h.y},{x:h.x+h.width,y:h.y},{x:h.x+h.width,y:h.y+h.height},{x:h.x,y:h.y+h.height}],m=d.getAbsoluteTransform();b.forEach(function(g){var v=m.point(g);n.push(v)})});const r=new Gt.Transform;r.rotate(-aa.Konva.getAngle(this.rotation()));var i=1/0,a=1/0,o=-1/0,s=-1/0;n.forEach(function(d){var h=r.point(d);i===void 0&&(i=o=h.x,a=s=h.y),i=Math.min(i,h.x),a=Math.min(a,h.y),o=Math.max(o,h.x),s=Math.max(s,h.y)}),r.invert();const c=r.point({x:i,y:a});return{x:c.x,y:c.y,width:o-i,height:s-a,rotation:aa.Konva.getAngle(this.rotation())}}getX(){return this._getNodeRect().x}getY(){return this._getNodeRect().y}getWidth(){return this._getNodeRect().width}getHeight(){return this._getNodeRect().height}_createElements(){this._createBack(),Eg.forEach(t=>{this._createAnchor(t)}),this._createAnchor("rotater")}_createAnchor(t){var n=new oU.Rect({stroke:"rgb(0, 161, 255)",fill:"white",strokeWidth:1,name:t+" _anchor",dragDistance:0,draggable:!0,hitStrokeWidth:dU?10:"auto"}),r=this;n.on("mousedown touchstart",function(i){r._handleMouseDown(i)}),n.on("dragstart",i=>{n.stopDrag(),i.cancelBubble=!0}),n.on("dragend",i=>{i.cancelBubble=!0}),n.on("mouseenter",()=>{var i=aa.Konva.getAngle(this.rotation()),a=this.rotateAnchorCursor(),o=hU(t,i,a);n.getStage().content&&(n.getStage().content.style.cursor=o),this._cursorChange=!0}),n.on("mouseout",()=>{n.getStage().content&&(n.getStage().content.style.cursor=""),this._cursorChange=!1}),this.add(n)}_createBack(){var t=new aU.Shape({name:"back",width:0,height:0,draggable:!0,sceneFunc(n,r){var i=r.getParent(),a=i.padding();n.beginPath(),n.rect(-a,-a,r.width()+a*2,r.height()+a*2),n.moveTo(r.width()/2,-a),i.rotateEnabled()&&i.rotateLineVisible()&&n.lineTo(r.width()/2,-i.rotateAnchorOffset()*Gt.Util._sign(r.height())-a),n.fillStrokeShape(r)},hitFunc:(n,r)=>{if(this.shouldOverdrawWholeArea()){var i=this.padding();n.beginPath(),n.rect(-i,-i,r.width()+i*2,r.height()+i*2),n.fillStrokeShape(r)}}});this.add(t),this._proxyDrag(t),t.on("dragstart",n=>{n.cancelBubble=!0}),t.on("dragmove",n=>{n.cancelBubble=!0}),t.on("dragend",n=>{n.cancelBubble=!0}),this.on("dragmove",n=>{this.update()})}_handleMouseDown(t){this._movingAnchorName=t.target.name().split(" ")[0];var n=this._getNodeRect(),r=n.width,i=n.height,a=Math.sqrt(Math.pow(r,2)+Math.pow(i,2));this.sin=Math.abs(i/a),this.cos=Math.abs(r/a),typeof window<"u"&&(window.addEventListener("mousemove",this._handleMouseMove),window.addEventListener("touchmove",this._handleMouseMove),window.addEventListener("mouseup",this._handleMouseUp,!0),window.addEventListener("touchend",this._handleMouseUp,!0)),this._transforming=!0;var o=t.target.getAbsolutePosition(),s=t.target.getStage().getPointerPosition();this._anchorDragOffset={x:s.x-o.x,y:s.y-o.y},Ry++,this._fire("transformstart",{evt:t.evt,target:this.getNode()}),this._nodes.forEach(c=>{c._fire("transformstart",{evt:t.evt,target:c})})}_handleMouseMove(t){var n,r,i,a=this.findOne("."+this._movingAnchorName),o=a.getStage();o.setPointersPositions(t);const s=o.getPointerPosition();let c={x:s.x-this._anchorDragOffset.x,y:s.y-this._anchorDragOffset.y};const d=a.getAbsolutePosition();this.anchorDragBoundFunc()&&(c=this.anchorDragBoundFunc()(d,c,t)),a.setAbsolutePosition(c);const h=a.getAbsolutePosition();if(!(d.x===h.x&&d.y===h.y)){if(this._movingAnchorName==="rotater"){var b=this._getNodeRect();n=a.x()-b.width/2,r=-a.y()+b.height/2;let H=Math.atan2(-r,n)+Math.PI/2;b.height<0&&(H-=Math.PI);var m=aa.Konva.getAngle(this.rotation());const J=m+H,q=aa.Konva.getAngle(this.rotationSnapTolerance()),Y=gU(this.rotationSnaps(),J,q)-b.rotation,le=pU(b,Y);this._fitNodesInto(le,t);return}var g=this.shiftBehavior(),v;g==="inverted"?v=this.keepRatio()&&!t.shiftKey:g==="none"?v=this.keepRatio():v=this.keepRatio()||t.shiftKey;var f=this.centeredScaling()||t.altKey;if(this._movingAnchorName==="top-left"){if(v){var w=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-right").x(),y:this.findOne(".bottom-right").y()};i=Math.sqrt(Math.pow(w.x-a.x(),2)+Math.pow(w.y-a.y(),2));var k=this.findOne(".top-left").x()>w.x?-1:1,C=this.findOne(".top-left").y()>w.y?-1:1;n=i*this.cos*k,r=i*this.sin*C,this.findOne(".top-left").x(w.x-n),this.findOne(".top-left").y(w.y-r)}}else if(this._movingAnchorName==="top-center")this.findOne(".top-left").y(a.y());else if(this._movingAnchorName==="top-right"){if(v){var w=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".bottom-left").x(),y:this.findOne(".bottom-left").y()};i=Math.sqrt(Math.pow(a.x()-w.x,2)+Math.pow(w.y-a.y(),2));var k=this.findOne(".top-right").x()w.y?-1:1;n=i*this.cos*k,r=i*this.sin*C,this.findOne(".top-right").x(w.x+n),this.findOne(".top-right").y(w.y-r)}var _=a.position();this.findOne(".top-left").y(_.y),this.findOne(".bottom-right").x(_.x)}else if(this._movingAnchorName==="middle-left")this.findOne(".top-left").x(a.x());else if(this._movingAnchorName==="middle-right")this.findOne(".bottom-right").x(a.x());else if(this._movingAnchorName==="bottom-left"){if(v){var w=f?{x:this.width()/2,y:this.height()/2}:{x:this.findOne(".top-right").x(),y:this.findOne(".top-right").y()};i=Math.sqrt(Math.pow(w.x-a.x(),2)+Math.pow(a.y()-w.y,2));var k=w.x{var a;i._fire("transformend",{evt:t,target:i}),(a=i.getLayer())===null||a===void 0||a.batchDraw()}),this._movingAnchorName=null}}_fitNodesInto(t,n){var r=this._getNodeRect();const i=1;if(Gt.Util._inRange(t.width,-this.padding()*2-i,i)){this.update();return}if(Gt.Util._inRange(t.height,-this.padding()*2-i,i)){this.update();return}var a=new Gt.Transform;if(a.rotate(aa.Konva.getAngle(this.rotation())),this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("left")>=0){const m=a.point({x:-this.padding()*2,y:0});t.x+=m.x,t.y+=m.y,t.width+=this.padding()*2,this._movingAnchorName=this._movingAnchorName.replace("left","right"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y}else if(this._movingAnchorName&&t.width<0&&this._movingAnchorName.indexOf("right")>=0){const m=a.point({x:this.padding()*2,y:0});this._movingAnchorName=this._movingAnchorName.replace("right","left"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,t.width+=this.padding()*2}if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("top")>=0){const m=a.point({x:0,y:-this.padding()*2});t.x+=m.x,t.y+=m.y,this._movingAnchorName=this._movingAnchorName.replace("top","bottom"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,t.height+=this.padding()*2}else if(this._movingAnchorName&&t.height<0&&this._movingAnchorName.indexOf("bottom")>=0){const m=a.point({x:0,y:this.padding()*2});this._movingAnchorName=this._movingAnchorName.replace("bottom","top"),this._anchorDragOffset.x-=m.x,this._anchorDragOffset.y-=m.y,t.height+=this.padding()*2}if(this.boundBoxFunc()){const m=this.boundBoxFunc()(r,t);m?t=m:Gt.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!")}const o=1e7,s=new Gt.Transform;s.translate(r.x,r.y),s.rotate(r.rotation),s.scale(r.width/o,r.height/o);const c=new Gt.Transform,d=t.width/o,h=t.height/o;this.flipEnabled()===!1?(c.translate(t.x,t.y),c.rotate(t.rotation),c.translate(t.width<0?t.width:0,t.height<0?t.height:0),c.scale(Math.abs(d),Math.abs(h))):(c.translate(t.x,t.y),c.rotate(t.rotation),c.scale(d,h));const b=c.multiply(s.invert());this._nodes.forEach(m=>{var g;const v=m.getParent().getAbsoluteTransform(),w=m.getTransform().copy();w.translate(m.offsetX(),m.offsetY());const k=new Gt.Transform;k.multiply(v.copy().invert()).multiply(b).multiply(v).multiply(w);const C=k.decompose();m.setAttrs(C),(g=m.getLayer())===null||g===void 0||g.batchDraw()}),this.rotation(Gt.Util._getRotation(t.rotation)),this._nodes.forEach(m=>{this._fire("transform",{evt:n,target:m}),m._fire("transform",{evt:n,target:m})}),this._resetTransformCache(),this.update(),this.getLayer().batchDraw()}forceUpdate(){this._resetTransformCache(),this.update()}_batchChangeChild(t,n){this.findOne(t).setAttrs(n)}update(){var t,n=this._getNodeRect();this.rotation(Gt.Util._getRotation(n.rotation));var r=n.width,i=n.height,a=this.enabledAnchors(),o=this.resizeEnabled(),s=this.padding(),c=this.anchorSize();const d=this.find("._anchor");d.forEach(b=>{b.setAttrs({width:c,height:c,offsetX:c/2,offsetY:c/2,stroke:this.anchorStroke(),strokeWidth:this.anchorStrokeWidth(),fill:this.anchorFill(),cornerRadius:this.anchorCornerRadius()})}),this._batchChangeChild(".top-left",{x:0,y:0,offsetX:c/2+s,offsetY:c/2+s,visible:o&&a.indexOf("top-left")>=0}),this._batchChangeChild(".top-center",{x:r/2,y:0,offsetY:c/2+s,visible:o&&a.indexOf("top-center")>=0}),this._batchChangeChild(".top-right",{x:r,y:0,offsetX:c/2-s,offsetY:c/2+s,visible:o&&a.indexOf("top-right")>=0}),this._batchChangeChild(".middle-left",{x:0,y:i/2,offsetX:c/2+s,visible:o&&a.indexOf("middle-left")>=0}),this._batchChangeChild(".middle-right",{x:r,y:i/2,offsetX:c/2-s,visible:o&&a.indexOf("middle-right")>=0}),this._batchChangeChild(".bottom-left",{x:0,y:i,offsetX:c/2+s,offsetY:c/2-s,visible:o&&a.indexOf("bottom-left")>=0}),this._batchChangeChild(".bottom-center",{x:r/2,y:i,offsetY:c/2-s,visible:o&&a.indexOf("bottom-center")>=0}),this._batchChangeChild(".bottom-right",{x:r,y:i,offsetX:c/2-s,offsetY:c/2-s,visible:o&&a.indexOf("bottom-right")>=0}),this._batchChangeChild(".rotater",{x:r/2,y:-this.rotateAnchorOffset()*Gt.Util._sign(i)-s,visible:this.rotateEnabled()}),this._batchChangeChild(".back",{width:r,height:i,visible:this.borderEnabled(),stroke:this.borderStroke(),strokeWidth:this.borderStrokeWidth(),dash:this.borderDash(),x:0,y:0});const h=this.anchorStyleFunc();h&&d.forEach(b=>{h(b)}),(t=this.getLayer())===null||t===void 0||t.batchDraw()}isTransforming(){return this._transforming}stopTransform(){if(this._transforming){this._removeEvents();var t=this.findOne("."+this._movingAnchorName);t&&t.stopDrag()}}destroy(){return this.getStage()&&this._cursorChange&&this.getStage().content&&(this.getStage().content.style.cursor=""),FC.Group.prototype.destroy.call(this),this.detach(),this._removeEvents(),this}toObject(){return RC.Node.prototype.toObject.call(this)}clone(t){var n=RC.Node.prototype.clone.call(this,t);return n}getClientRect(){return this.nodes().length>0?super.getClientRect():{x:0,y:0,width:0,height:0}}}Sg.Transformer=Et,Et.isTransforming=()=>Ry>0;function mU(e){return e instanceof Array||Gt.Util.warn("enabledAnchors value should be an array"),e instanceof Array&&e.forEach(function(t){Eg.indexOf(t)===-1&&Gt.Util.warn("Unknown anchor name: "+t+". Available names are: "+Eg.join(", "))}),e||[]}Et.prototype.className="Transformer",(0,sU._registerNode)(Et),jt.Factory.addGetterSetter(Et,"enabledAnchors",Eg,mU),jt.Factory.addGetterSetter(Et,"flipEnabled",!0,(0,hs.getBooleanValidator)()),jt.Factory.addGetterSetter(Et,"resizeEnabled",!0),jt.Factory.addGetterSetter(Et,"anchorSize",10,(0,hs.getNumberValidator)()),jt.Factory.addGetterSetter(Et,"rotateEnabled",!0),jt.Factory.addGetterSetter(Et,"rotateLineVisible",!0),jt.Factory.addGetterSetter(Et,"rotationSnaps",[]),jt.Factory.addGetterSetter(Et,"rotateAnchorOffset",50,(0,hs.getNumberValidator)()),jt.Factory.addGetterSetter(Et,"rotateAnchorCursor","crosshair"),jt.Factory.addGetterSetter(Et,"rotationSnapTolerance",5,(0,hs.getNumberValidator)()),jt.Factory.addGetterSetter(Et,"borderEnabled",!0),jt.Factory.addGetterSetter(Et,"anchorStroke","rgb(0, 161, 255)"),jt.Factory.addGetterSetter(Et,"anchorStrokeWidth",1,(0,hs.getNumberValidator)()),jt.Factory.addGetterSetter(Et,"anchorFill","white"),jt.Factory.addGetterSetter(Et,"anchorCornerRadius",0,(0,hs.getNumberValidator)()),jt.Factory.addGetterSetter(Et,"borderStroke","rgb(0, 161, 255)"),jt.Factory.addGetterSetter(Et,"borderStrokeWidth",1,(0,hs.getNumberValidator)()),jt.Factory.addGetterSetter(Et,"borderDash"),jt.Factory.addGetterSetter(Et,"keepRatio",!0),jt.Factory.addGetterSetter(Et,"shiftBehavior","default"),jt.Factory.addGetterSetter(Et,"centeredScaling",!1),jt.Factory.addGetterSetter(Et,"ignoreStroke",!1),jt.Factory.addGetterSetter(Et,"padding",0,(0,hs.getNumberValidator)()),jt.Factory.addGetterSetter(Et,"node"),jt.Factory.addGetterSetter(Et,"nodes"),jt.Factory.addGetterSetter(Et,"boundBoxFunc"),jt.Factory.addGetterSetter(Et,"anchorDragBoundFunc"),jt.Factory.addGetterSetter(Et,"anchorStyleFunc"),jt.Factory.addGetterSetter(Et,"shouldOverdrawWholeArea",!1),jt.Factory.addGetterSetter(Et,"useSingleNodeRotation",!0),jt.Factory.backCompat(Et,{lineEnabled:"borderEnabled",rotateHandlerOffset:"rotateAnchorOffset",enabledHandlers:"enabledAnchors"});var _g={};Object.defineProperty(_g,"__esModule",{value:!0}),_g.Wedge=void 0;const _f=at,vU=er,yU=ft,BC=Be,bU=ft;class lo extends vU.Shape{_sceneFunc(t){t.beginPath(),t.arc(0,0,this.radius(),0,yU.Konva.getAngle(this.angle()),this.clockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)}getWidth(){return this.radius()*2}getHeight(){return this.radius()*2}setWidth(t){this.radius(t/2)}setHeight(t){this.radius(t/2)}}_g.Wedge=lo,lo.prototype.className="Wedge",lo.prototype._centroid=!0,lo.prototype._attrsAffectingSize=["radius"],(0,bU._registerNode)(lo),_f.Factory.addGetterSetter(lo,"radius",0,(0,BC.getNumberValidator)()),_f.Factory.addGetterSetter(lo,"angle",0,(0,BC.getNumberValidator)()),_f.Factory.addGetterSetter(lo,"clockwise",!1),_f.Factory.backCompat(lo,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"});var kg={};Object.defineProperty(kg,"__esModule",{value:!0}),kg.Blur=void 0;const HC=at,wU=hn,xU=Be;function GC(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var CU=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],SU=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function EU(e,t){var n=e.data,r=e.width,i=e.height,a,o,s,c,d,h,b,m,g,v,w,k,C,_,f,x,E,M,j,P,N,T,R,z,H=t+t+1,J=r-1,q=i-1,Y=t+1,le=Y*(Y+1)/2,K=new GC,ce=null,ne=K,oe=null,Q=null,$=CU[t],re=SU[t];for(s=1;s>re,R!==0?(R=255/R,n[h]=(m*$>>re)*R,n[h+1]=(g*$>>re)*R,n[h+2]=(v*$>>re)*R):n[h]=n[h+1]=n[h+2]=0,m-=k,g-=C,v-=_,w-=f,k-=oe.r,C-=oe.g,_-=oe.b,f-=oe.a,c=b+((c=a+t+1)>re,R>0?(R=255/R,n[c]=(m*$>>re)*R,n[c+1]=(g*$>>re)*R,n[c+2]=(v*$>>re)*R):n[c]=n[c+1]=n[c+2]=0,m-=k,g-=C,v-=_,w-=f,k-=oe.r,C-=oe.g,_-=oe.b,f-=oe.a,c=a+((c=o+Y)0&&EU(e,t)};kg.Blur=_U,HC.Factory.addGetterSetter(wU.Node,"blurRadius",0,(0,xU.getNumberValidator)(),HC.Factory.afterSetFilter);var Og={};Object.defineProperty(Og,"__esModule",{value:!0}),Og.Brighten=void 0;const VC=at,kU=hn,OU=Be,PU=function(e){var t=this.brightness()*255,n=e.data,r=n.length,i;for(i=0;i255?255:i,a=a<0?0:a>255?255:a,o=o<0?0:o>255?255:o,n[s]=i,n[s+1]=a,n[s+2]=o};Pg.Contrast=IU,UC.Factory.addGetterSetter(TU.Node,"contrast",0,(0,MU.getNumberValidator)(),UC.Factory.afterSetFilter);var Tg={};Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.Emboss=void 0;const fs=at,kf=hn,AU=Sn,WC=Be,LU=function(e){var t=this.embossStrength()*10,n=this.embossWhiteLevel()*255,r=this.embossDirection(),i=this.embossBlend(),a=0,o=0,s=e.data,c=e.width,d=e.height,h=c*4,b=d;switch(r){case"top-left":a=-1,o=-1;break;case"top":a=-1,o=0;break;case"top-right":a=-1,o=1;break;case"right":a=0,o=1;break;case"bottom-right":a=1,o=1;break;case"bottom":a=1,o=0;break;case"bottom-left":a=1,o=-1;break;case"left":a=0,o=-1;break;default:AU.Util.error("Unknown emboss direction: "+r)}do{var m=(b-1)*h,g=a;b+g<1&&(g=0),b+g>d&&(g=0);var v=(b-1+g)*c*4,w=c;do{var k=m+(w-1)*4,C=o;w+C<1&&(C=0),w+C>c&&(C=0);var _=v+(w-1+C)*4,f=s[k]-s[_],x=s[k+1]-s[_+1],E=s[k+2]-s[_+2],M=f,j=M>0?M:-M,P=x>0?x:-x,N=E>0?E:-E;if(P>j&&(M=x),N>j&&(M=E),M*=t,i){var T=s[k]+M,R=s[k+1]+M,z=s[k+2]+M;s[k]=T>255?255:T<0?0:T,s[k+1]=R>255?255:R<0?0:R,s[k+2]=z>255?255:z<0?0:z}else{var H=n-M;H<0?H=0:H>255&&(H=255),s[k]=s[k+1]=s[k+2]=H}}while(--w)}while(--b)};Tg.Emboss=LU,fs.Factory.addGetterSetter(kf.Node,"embossStrength",.5,(0,WC.getNumberValidator)(),fs.Factory.afterSetFilter),fs.Factory.addGetterSetter(kf.Node,"embossWhiteLevel",.5,(0,WC.getNumberValidator)(),fs.Factory.afterSetFilter),fs.Factory.addGetterSetter(kf.Node,"embossDirection","top-left",null,fs.Factory.afterSetFilter),fs.Factory.addGetterSetter(kf.Node,"embossBlend",!1,null,fs.Factory.afterSetFilter);var Mg={};Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.Enhance=void 0;const XC=at,jU=hn,NU=Be;function O4(e,t,n,r,i){var a=n-t,o=i-r,s;return a===0?r+o/2:o===0?r:(s=(e-t)/a,s=o*s+r,s)}const DU=function(e){var t=e.data,n=t.length,r=t[0],i=r,a,o=t[1],s=o,c,d=t[2],h=d,b,m,g=this.enhance();if(g!==0){for(m=0;mi&&(i=a),c=t[m+1],cs&&(s=c),b=t[m+2],bh&&(h=b);i===r&&(i=255,r=0),s===o&&(s=255,o=0),h===d&&(h=255,d=0);var v,w,k,C,_,f,x,E,M;for(g>0?(w=i+g*(255-i),k=r-g*(r-0),_=s+g*(255-s),f=o-g*(o-0),E=h+g*(255-h),M=d-g*(d-0)):(v=(i+r)*.5,w=i+g*(i-v),k=r+g*(r-v),C=(s+o)*.5,_=s+g*(s-C),f=o+g*(o-C),x=(h+d)*.5,E=h+g*(h-x),M=d+g*(d-x)),m=0;mC?k:C;var _=o,f=a,x,E,M=360/f*Math.PI/180,j,P;for(E=0;Ef?_:f;var x=o,E=a,M,j,P=0,N,T;for(h=0;ht&&(x=f,E=0,M=-1),i=0;i=0&&g=0&&v=0&&g=0&&v=255*4?255:0}return o}function $U(e,t,n){for(var r=[.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111,.1111111111111111],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s=0&&g=0&&v=n))for(a=w;a=r||(o=(n*a+i)*4,s+=x[o+0],c+=x[o+1],d+=x[o+2],h+=x[o+3],f+=1);for(s=s/f,c=c/f,d=d/f,h=h/f,i=g;i=n))for(a=w;a=r||(o=(n*a+i)*4,x[o+0]=s,x[o+1]=c,x[o+2]=d,x[o+3]=h)}};Fg.Pixelate=aW,QC.Factory.addGetterSetter(rW.Node,"pixelSize",8,(0,iW.getNumberValidator)(),QC.Factory.afterSetFilter);var zg={};Object.defineProperty(zg,"__esModule",{value:!0}),zg.Posterize=void 0;const JC=at,oW=hn,sW=Be,lW=function(e){var t=Math.round(this.levels()*254)+1,n=e.data,r=n.length,i=255/t,a;for(a=0;a255?255:e<0?0:Math.round(e)}),Tf.Factory.addGetterSetter(A4.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),Tf.Factory.addGetterSetter(A4.Node,"blue",0,cW.RGBComponent,Tf.Factory.afterSetFilter);var Hg={};Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.RGBA=void 0;const uh=at,Mf=hn,dW=Be,hW=function(e){var t=e.data,n=t.length,r=this.red(),i=this.green(),a=this.blue(),o=this.alpha(),s,c;for(s=0;s255?255:e<0?0:Math.round(e)}),uh.Factory.addGetterSetter(Mf.Node,"green",0,function(e){return this._filterUpToDate=!1,e>255?255:e<0?0:Math.round(e)}),uh.Factory.addGetterSetter(Mf.Node,"blue",0,dW.RGBComponent,uh.Factory.afterSetFilter),uh.Factory.addGetterSetter(Mf.Node,"alpha",1,function(e){return this._filterUpToDate=!1,e>1?1:e<0?0:e});var Gg={};Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.Sepia=void 0;const fW=function(e){var t=e.data,n=t.length,r,i,a,o;for(r=0;r127&&(d=255-d),h>127&&(h=255-h),b>127&&(b=255-b),t[c]=d,t[c+1]=h,t[c+2]=b}while(--s)}while(--a)};Vg.Solarize=pW;var Ug={};Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.Threshold=void 0;const eS=at,gW=hn,mW=Be,vW=function(e){var t=this.threshold()*255,n=e.data,r=n.length,i;for(i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(s){throw s},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return a=s.done,s},e:function(s){o=!0},f:function s(){try{a||n.return==null||n.return()}finally{if(o)throw s}}}}function rX(e,t){if(e){if(typeof e=="string")return rS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rS(e,t):void 0}}function rS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nn?-1:n,n=~~(255*n),[t[0]+n,t[1]+n,t[2]+n]}},contrast:function(e){return function(t){var n=e;n*=255;var r=259*(n+255)/(255*(259-n));return[r*(t[0]-128)+128,r*(t[1]-128)+128,r*(t[2]-128)+128]}},saturation:function(e){return function(t){var n=e;n=-1>n?-1:n;var r=t[0],i=t[1],a=t[2],o=.2989*r+.587*i+.114*a;return[-o*n+r*(1+n),-o*n+i*(1+n),-o*n+a*(1+n)]}},grayscale:function(){return function(e){var t=e[0],n=e[1],r=e[2];return[,,,].fill(.2126*t+.7152*n+.0722*r)}},sepia:function(e){return function(t){var n=t[0],r=t[1],i=t[2];return[n*(1-.607*e)+.769*r*e+.189*i*e,.349*n*e+r*(1-.314*e)+.168*i*e,.272*n*e+.534*r*e+i*(1-.869*e)]}},adjustRGB:function(e){return function(t){return[t[0]*e[0],t[1]*e[1],t[2]*e[2]]}},colorFilter:function(e){return function(t){var n=t[0],r=t[1],i=t[2],a=e[3];return[n-(n-e[0])*a,r-(r-e[1])*a,i-(i-e[2])*a]}}};function g8(e){be.apply(e,function(t){var n=(t[0]+t[1]+t[2])/3>100,r=n?255:0;return[r,r,r]})}g8.filterName="BlackAndWhite";var iX=.1,aX=.1,oX=.15;function m8(e){be.apply(e,be.brightness(iX),be.contrast(aX),be.saturation(oX))}m8.filterName="Clarendon";var sX=.04,lX=-.15;function v8(e){be.apply(e,be.sepia(sX),be.contrast(lX))}v8.filterName="Gingham";var cX=.1;function y8(e){be.apply(e,be.grayscale(),be.brightness(cX));var t=e.data;t.length}y8.filterName="Moon";var uX=.08,dX=[1,1.03,1.05],hX=.12;function b8(e){be.apply(e,be.brightness(uX),be.adjustRGB(dX),be.saturation(hX))}b8.filterName="Lark";var fX=.4,pX=.13,gX=-.05;function w8(e){be.apply(e,be.sepia(fX),be.brightness(pX),be.contrast(gX))}w8.filterName="Reyes";var mX=[1.01,1.04,1],vX=.3;function x8(e){be.apply(e,be.adjustRGB(mX),be.saturation(vX))}x8.filterName="Juno";var yX=.1,bX=-.5;function C8(e){be.apply(e,be.brightness(yX),be.saturation(bX))}C8.filterName="Slumber";var wX=[1.04,1,1.02],xX=-.05;function S8(e){be.apply(e,be.adjustRGB(wX),be.saturation(xX))}S8.filterName="Crema";var CX=.05,SX=-.03;function E8(e){be.apply(e,be.brightness(CX),be.saturation(SX))}E8.filterName="Ludwig";var EX=[228,130,225,.13],_X=-.2;function _8(e){be.apply(e,be.colorFilter(EX),be.saturation(_X))}_8.filterName="Aden";var kX=[1.05,1.1,1];function k8(e){be.apply(e,be.adjustRGB(kX))}k8.filterName="Perpetua";var OX=.3,PX=.15;function O8(e){be.apply(e,be.saturation(OX),be.brightness(PX))}O8.filterName="Amaro";var TX=[230,115,108,.05],MX=.15;function P8(e){be.apply(e,be.colorFilter(TX),be.saturation(MX))}P8.filterName="Mayfair";var IX=[255,170,0,.1],AX=.09,LX=.1;function T8(e){be.apply(e,be.colorFilter(IX),be.brightness(AX),be.saturation(LX))}T8.filterName="Rise";var jX=[1,1,1.25],NX=.1,DX=.15;function M8(e){be.apply(e,be.adjustRGB(jX),be.contrast(NX),be.brightness(DX))}M8.filterName="Hudson";var RX=[255,225,80,.08],FX=.1,zX=.05;function I8(e){be.apply(e,be.colorFilter(RX),be.saturation(FX),be.contrast(zX))}I8.filterName="Valencia";var BX=[255,255,0,.07],HX=.2,GX=.15;function A8(e){be.apply(e,be.colorFilter(BX),be.saturation(HX),be.contrast(GX))}A8.filterName="XPro2";var VX=-.15,UX=.1;function L8(e){be.apply(e,be.contrast(VX),be.saturation(UX))}L8.filterName="Sierra";var WX=[100,28,210,.03],XX=.1;function j8(e){be.apply(e,be.grayscale(),be.colorFilter(WX),be.brightness(XX))}j8.filterName="Willow";var YX=.15,KX=.2;function N8(e){be.apply(e,be.contrast(YX),be.saturation(KX))}N8.filterName="LoFi";var ZX=.1,qX=.15;function D8(e){be.apply(e,be.contrast(ZX),be.saturation(qX))}D8.filterName="Hefe";var $X=[220,115,188,.12],QX=-.05;function R8(e){be.apply(e,be.colorFilter($X),be.contrast(QX))}R8.filterName="Nashville";var JX=.1,eY=.3;function F8(e){be.apply(e,be.brightness(JX),be.sepia(eY))}F8.filterName="Stinson";var tY=[255,225,0,.05],nY=.06,rY=.06;function z8(e){be.apply(e,be.colorFilter(tY),be.brightness(nY),be.contrast(rY))}z8.filterName="Vesper";var iY=[255,165,40,.2];function B8(e){be.apply(e,be.colorFilter(iY))}B8.filterName="Earlybird";var aY=.2,oY=[140,10,185,.1];function H8(e){be.apply(e,be.contrast(aY),be.colorFilter(oY))}H8.filterName="Brannan";var sY=-.1,lY=-.1;function G8(e){be.apply(e,be.brightness(sY),be.saturation(lY))}G8.filterName="Sutro";var cY=.1,uY=[255,145,0,.2];function V8(e){be.apply(e,be.sepia(cY),be.colorFilter(uY))}V8.filterName="Toaster";var dY=.1,hY=[255,255,0,.2];function U8(e){be.apply(e,be.brightness(dY),be.colorFilter(hY))}U8.filterName="Walden";var fY=[255,25,0,.15],pY=.1;function W8(e){be.apply(e,be.colorFilter(fY),be.brightness(pY))}W8.filterName="NinteenSeventySeven";var gY=[255,140,0,.1],mY=[1.15,1.05,1],vY=.35;function X8(e){be.apply(e,be.colorFilter(gY),be.adjustRGB(mY),be.saturation(vY))}X8.filterName="Kelvin";var yY=[225,240,0,.1],bY=.25,wY=.05;function Y8(e){be.apply(e,be.colorFilter(yY),be.saturation(bY),be.contrast(wY))}Y8.filterName="Maven";var xY=.06,CY=.1;function K8(e){be.apply(e,be.sepia(xY),be.brightness(CY))}K8.filterName="Ginza";var SY=.35,EY=.1;function Z8(e){be.apply(e,be.saturation(SY),be.brightness(EY))}Z8.filterName="Skyline";var _Y=.15,kY=.1;function q8(e){be.apply(e,be.contrast(_Y),be.brightness(kY))}q8.filterName="Dogpatch";var OY=[25,240,252,.05],PY=.3;function $8(e){be.apply(e,be.colorFilter(OY),be.sepia(PY))}$8.filterName="Brooklyn";var TY=[208,208,86,.2],MY=.15;function Q8(e){be.apply(e,be.colorFilter(TY),be.contrast(MY))}Q8.filterName="Helena";var IY=[255,160,25,.1],AY=.1;function J8(e){be.apply(e,be.colorFilter(IY),be.brightness(AY))}J8.filterName="Ashby";var LY=[255,50,80,.12],jY=.05;function e7(e){be.apply(e,be.colorFilter(LY),be.contrast(jY))}e7.filterName="Charmes";const NY=Object.freeze(Object.defineProperty({__proto__:null,Aden:_8,Amaro:O8,Ashby:J8,BlackAndWhite:g8,Brannan:H8,Brooklyn:$8,Charmes:e7,Clarendon:m8,Crema:S8,Dogpatch:q8,Earlybird:B8,Gingham:v8,Ginza:K8,Hefe:D8,Helena:Q8,Hudson:M8,Juno:x8,Kelvin:X8,Lark:b8,LoFi:N8,Ludwig:E8,Maven:Y8,Mayfair:P8,Moon:y8,Nashville:R8,NinteenSeventySeven:W8,Perpetua:k8,Reyes:w8,Rise:T8,Sierra:L8,Skyline:Z8,Slumber:C8,Stinson:F8,Sutro:G8,Toaster:V8,Valencia:I8,Vesper:z8,Walden:U8,Willow:j8,XPro2:A8},Symbol.toStringTag,{value:"Module"}));var JT=function(e){return e?NY[e]||yn.Filters[e]:null};function t7(e){for(var t=this.warmth(),n=e.data,r=n.length,i=0;i=t?255:0,n[i+1]=n[i+1]>=t?255:0,n[i+2]=n[i+2]>=t?255:0)}eM.finetuneName="CustomThreshold",at.Factory.addGetterSetter(yn.Image,"threshold",0,f8,at.Factory.afterSetFilter);const DY=Object.freeze(Object.defineProperty({__proto__:null,CustomThreshold:eM,Warmth:t7},Symbol.toStringTag,{value:"Module"}));var tM=function(e){return Array.isArray(e)&&0r.status)t(r.response);else{var i;console.warn("Error in sending translation key to backend ".concat((i=r.response)===null||i===void 0?void 0:i.hint,", ").concat(r.status)),n()}},r.onerror=function(){var i;console.warn("Error in sending translation key to backend ".concat((i=r.response)===null||i===void 0?void 0:i.hint,", ").concat(r.status)),n()},r.open("POST","https://neo.wordplex.io/api/import/request-translations?grid_uuid=".concat(Py)),r.send(JSON.stringify({grid_uuid:Py,translations_requests:e}))})},XY=function(){var e=0a.status){(a.response||[]).forEach(function(h){Bp[i]=zy(zy({},Bp[i]),{},I({},h.translation_key,h.translations[i]))});var o=[];Object.keys(Fy).forEach(function(h){var b;h&&!((b=Bp[i])!==null&&b!==void 0&&b[h])&&o.push({key:h,lang:i,default:Fy[h]})}),0r,b=0>i;switch(t){case de.RECT:n?(s.width=Math.sqrt(c*c+d*d),s.height=s.width,s.x-=h?s.width-c:0,s.y-=b?s.height-d:0):(s.width=c,s.height=d);break;case de.ELLIPSE:n?(s.radiusX=Math.sqrt(c*c+d*d)/2,s.radiusY=s.radiusX,s.x-=h?2*s.radiusX-c:0,s.y-=b?2*s.radiusY-d:0):(s.radiusX=c/2,s.radiusY=d/2),s.offsetX=-s.radiusX,s.offsetY=-s.radiusY;break;case de.POLYGON:s.radius=(c+d)/2,s.x-=h?2*s.radius-c:0,s.y-=b?2*s.radius-d:0,s.offsetX=-s.radius,s.offsetY=-s.radius;break;case de.LINE:case de.ARROW:s.x=a,s.y=o,s.points=[0,0],n?s.points.push(c>=d?r:0,d>c?i:0):s.points=[0,0,r,i];break;default:s.width=c,s.height=d}return s},tK=["id","x","y","points"],nK=["startedX","startedY","offsetX","offsetY","width","height"];function xS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tu(e){for(var t,n=1;n=hh&&Nr.height>=hh||Nr.radiusX>=hh&&Nr.radiusY>=hh||(v=Nr.points)!==null&&v!==void 0&&v[2]||(w=Nr.points)!==null&&w!==void 0&&w[3]||Nr.radius>=hh)){var k=Nr;k.startedX,k.startedY,k.offsetX,k.offsetY;var C=k.width,_=k.height,f=me(k,nK);JY.includes(t.name)||(f.width=C,f.height=_),r(f,!0)}nu=null,fh=null,Nr=null,e.setAttrs({isDrawing:!1}),e.off("mousemove touchmove",h),e.off("mouseleave touchcancel",b),document.removeEventListener("mouseup",m,Kr),document.removeEventListener("touchend",m,Kr),document.removeEventListener("mouseleave",m,Kr),document.removeEventListener("touchcancel",m,Kr),document.removeEventListener("mousemove",c,Kr),document.removeEventListener("touchmove",c,Kr),Ra.isOutOfCanvas=!1},g=function(v){var w;if(v.evt.preventDefault(),!(v.target.attrs.draggable||1<((w=v.evt.touches)===null||w===void 0?void 0:w.length))){d();var k=Hp(n,i());Ra.startedX=k.offsetX,Ra.startedY=k.offsetY,Ra.isOutOfCanvas=!1,e.on("mousemove touchmove",h),e.on("mouseleave touchcancel",b),document.addEventListener("mouseup",m,Kr),document.addEventListener("touchend",m,Kr),document.addEventListener("mouseleave",m,Kr),document.addEventListener("touchcancel",m,Kr)}};return e.on("mousedown touchstart",g),function(){d(),e.off("mousedown touchstart",g)}},lM=function(e,t){var n=2=i?0:function(){return 0>i&&-90=i&&-90<=i?0:function(){return 90>>32-t},ph=function(e){var t,n,r="";for(t=7;0<=t;t--)n=15&e>>>4*t,r+=n.toString(16);return r},dK=function(e){for(var t,n=e.replace(/\r\n/g,` `),r="",i=0;it?r+=String.fromCharCode(t):127t?(r+=String.fromCharCode(192|t>>6),r+=String.fromCharCode(128|63&t)):(r+=String.fromCharCode(224|t>>12),r+=String.fromCharCode(128|63&t>>6),r+=String.fromCharCode(128|63&t));return r},hK=function(e){var t,n,r,i,a,o,s,c,d,h=e,b=Array(80),m=1732584193,g=4023233417,v=2562383102,w=271733878,k=3285377520;h=dK(h);var C=h.length,_=[];for(n=0;n>>29),_.push(4294967295&C<<3),t=0;t<_.length;t+=16){for(n=0;16>n;n++)b[n]=_[t+n];for(n=16;79>=n;n++)b[n]=co(b[n-3]^b[n-8]^b[n-14]^b[n-16],1);for(i=m,a=g,o=v,s=w,c=k,n=0;19>=n;n++)d=4294967295&co(i,5)+(a&o|~a&s)+c+b[n]+1518500249,c=s,s=o,o=co(a,30),a=i,i=d;for(n=20;39>=n;n++)d=4294967295&co(i,5)+(a^o^s)+c+b[n]+1859775393,c=s,s=o,o=co(a,30),a=i,i=d;for(n=40;59>=n;n++)d=4294967295&co(i,5)+(a&o|a&s|o&s)+c+b[n]+2400959708,c=s,s=o,o=co(a,30),a=i,i=d;for(n=60;79>=n;n++)d=4294967295&co(i,5)+(a^o^s)+c+b[n]+3395469782,c=s,s=o,o=co(a,30),a=i,i=d;m=4294967295&m+i,g=4294967295&g+a,v=4294967295&v+o,w=4294967295&w+s,k=4294967295&k+c}return d=ph(m)+ph(g)+ph(v)+ph(w)+ph(k),d.toLowerCase()},fK=function(e){return btoa(e).replace(/=*$/g,"")},pK=function(e,t){return hK(e).slice(0,t)},gK=function(e,t,n,r){var i=fK(e),a=pK(t+i+n,r);return[a?"ci_seal=".concat(a):"",i?"ci_eqs=".concat(i):""].filter(function(o){return o}).join("&")},mK=function(e,t,n){var r=t||{},i=r.salt,a=r.charCount,o=r.includeParams,s=o===void 0?[]:o,c=!s||s?.length===0,d="",h="",b=[],m=[];return e.split("&").forEach(function(g){var v=g.split("="),w=Oe(v,1),k=w[0];-1v?i*h/w:a*m/k),2);return"".concat(f,"&wat_opacity=").concat(c,"&wat_scale=").concat(T,"p").concat(N?"&wat_url=".concat(encodeURIComponent(N)):"")},Gp={Brighten:{cloudimage:{name:"bright",min:-100,max:100},internal:{propName:"brightness",min:-1,max:1}},Contrast:{cloudimage:{name:"contrast",min:-100,max:100},internal:{propName:"contrast",min:-100,max:100}},Blur:{cloudimage:{name:"blur",min:0,max:100},internal:{propName:"blurRadius",min:0,max:100}}},EK=function(e){var t=1 input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}"]),UK=Z.span.attrs({className:xe(vd,"label")}).withConfig({componentId:"sc-jjink6-4"})(function(e){var t=e.theme,n=e.open,r=n===void 0?!1:n,i=e.disabled,a=i===void 0?!1:i;return X(["display:flex;align-items:center;justify-content:center;padding:6px 6px;border-radius:2px;position:absolute;top:-10px;font-size:10px;z-index:1;white-space:nowrap;transition:transform 150ms cubic-bezier(0.4,0,0.2,1) 0ms;transform-origin:bottom center;transform:",";background-color:",";color:#fff;cursor:pointer;transition:all 100ms ease-out;&::before{position:absolute;content:'';background-color:inherit;width:8px;height:8px;bottom:0px;left:50%;transform:translate(-50%,50%) rotate(45deg);}"],r?"translateY(-100%) scale(1)":"translateY(-100%) scale(0)",a?t.palette[L.AccentPrimaryDisabled]:t.palette[L.LinkStateless])}),WK=Z.div.attrs({className:xe(vd,"annotation")}).withConfig({componentId:"sc-jjink6-5"})(function(e){var t=e.theme;return X(["display:flex;justify-content:space-between;margin-top:12px;color:",";"],t.palette[L.TextSecondary])}),iu=Dt({Slider:BK,Rail:HK,Track:GK,Thumb:VK,SliderAnnotation:WK,LabelTooltip:UK}),XK=["defaultValue","disabled","disableSwap","hideTrack","hideAnnotation","value","min","max","onChange","onMouseDown","onMouseUp","step","labelTooltip","annotation","components","componentsProps"];function MS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;tYK&&we(!0),He(Ke,Qt,In)}}),gt=ru(function(Ke){var et=Z1(Ke,B);we(!1),et&&(le(-1),Ke.type==="touchend"&&oe(-1),_&&_(Ke),B.current=void 0,Dn())}),mt=ru(function(Ke){var et=Ke.changedTouches[0];et!=null&&(B.current=et.identifier);var It=Z1(Ke,B),Qt=Ye({finger:It,values:Me}),In=Qt.newValue,_i=Qt.activeIndex;q1({sliderRef:ee,activeIndex:_i,setActive:le}),Ae(In),He(Ke,In,_i),W.current=0;var li=Np(ee.current);li.addEventListener("touchmove",_t),li.addEventListener("touchend",gt)}),Ge=ru(function(Ke){var et=Number(Ke.currentTarget.getAttribute(IS));oe(et)}),Ve=ru(function(){oe(-1)}),Mn=ru(function(Ke){if(i)Ke.preventDefault();else{if(C&&C(Ke),Ke.button!==0)return;Ke.preventDefault();var et=Z1(Ke,B),It=Ye({finger:et,values:Me}),Qt=It.newValue,In=It.activeIndex;q1({sliderRef:ee,activeIndex:In,setActive:le}),Ae(Qt),He(Ke,Qt,In),W.current=0;var _i=Np(ee.current);_i.addEventListener("mousemove",_t),_i.addEventListener("mouseup",gt)}}),Dn=V.useCallback(function(){var Ke=Np(ee.current);Ke.removeEventListener("mousemove",_t),Ke.removeEventListener("mouseup",gt),Ke.removeEventListener("touchmove",_t),Ke.removeEventListener("touchend",gt)},[gt,_t]);V.useEffect(function(){var Ke=ee.current;if(Ke)return function(){Dn()}},[Dn,mt]),V.useEffect(function(){i&&Dn()},[i,Dn]),i&&Y!==-1&&le(-1);var fn=j5(Ne?Me[0]:g,g,w),Fo=j5(Me[Me.length-1],g,w)-fn,Pe=ra(ra({},D5[Se].offset(fn)),D5[Se].leap(Fo)),Ze=z.rail,Pt=typeof T.Rail=="function"?y.createElement(T.Rail,he({},Ze,{style:ra({},Ze?.style)})):y.createElement(iu.Rail,he({},Ze,{style:ra({},Ze?.style)})),kt=z.track,En=!c&&(typeof T.Track=="function"?y.createElement(T.Track,he({},kt,{style:ra(ra({},Pe),kt?.style)})):y.createElement(iu.Track,he({},kt,{style:ra(ra({},Pe),kt?.style)}))),Vt=z.thumb,on=T.Thumb||iu.Thumb,si=T.LabelTooltip||iu.LabelTooltip,Ca=z.labelTooltip,Sa=P?" ".concat(P):"";return y.createElement(iu.Slider,he({ref:ue,disabled:i,onTouchStart:mt,onMouseDown:Mn},H),Pt,En,Me.map(function(Ke,et){var It=j5(Ke,g,w),Qt=D5[Se].offset(It);return y.createElement(y.Fragment,{key:et},y.createElement(on,he({"data-index":et,onMouseOver:Ge,onMouseLeave:Ve},Vt,{style:ra(ra({},Qt),{},{pointerEvents:o&&Y!==et?"none":void 0},Vt?.style)}),y.createElement("input",{"data-index":et,type:"range",min:g,max:w,value:Me[et],step:x,disabled:i,onChange:We}),y.createElement(si,{open:(ne===et||Y===et||M==="on")&&M!=="off",disabled:i,style:ra({},Ca?.style)},Me[et],Sa)))}),!h&&y.createElement(iu.SliderAnnotation,null,y.createElement("span",null,g,Sa),y.createElement("span",null,w,Sa)))});Xg.defaultProps={annotation:"MB",min:0,max:100,step:1,labelTooltip:sd.Off},Xg.propTypes={defaultValue:F.oneOfType([F.array,F.number]),value:F.oneOfType([F.array,F.number]),min:F.number,max:F.number,onChange:F.func,onMouseDown:F.func,onMouseUp:F.func,step:F.number,annotation:F.string,disabled:F.bool,disableSwap:F.bool,hideTrack:F.bool,hideAnnotation:F.bool,labelTooltip:F.oneOf(lt(sd)),components:F.shape({Rail:F.elementType,Track:F.elementType,Thumb:F.elementType,LabelTooltip:F.elementType}),componentsProps:F.object};var KK=Z(Xg).withConfig({componentId:"sc-1wort0h-0"})(["width:",";max-width:",";user-select:none;padding:0;margin-bottom:",";.SfxSlider-thumb{background-color:",";}.SfxSlider-Track{height:2px;color:",";}.SfxSlider-rail{height:2px;background-color:",";}"],function(e){var t=e.width;return t||"104px"},function(e){var t=e.width;return t||"104px"},function(e){var t=e.noMargin;return t?"":"16px"},function(e){var t=e.theme.palette;return t[L.AccentStateless]},function(e){var t=e.theme.palette;return t[L.AccentStateless]},function(e){var t=e.theme.palette;return t[L.BordersItem]}),ZK=["onChange"],$n=function(e){var t=e.onChange,n=me(e,ZK);return y.createElement(KK,he({annotation:"",onChange:function(r,i){return t?t(i):void 0},hideAnnotation:!0,labelTooltip:"auto"},n))},u7={size:F.number,width:F.oneOfType([F.string,F.number]),height:F.oneOfType([F.string,F.number]),color:F.string,color2:F.string,stroke:F.string,stroke2:F.string,viewBox:F.string},qK=["color","size"],$K=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,qK);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 11 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8468 3.13984C11.0457 3.33138 11.0517 3.64791 10.8602 3.84682L6.04534 8.84682C5.95332 8.94238 5.82709 8.99746 5.69445 8.99991C5.5618 9.00237 5.43362 8.95201 5.33812 8.85992L0.152931 3.85992C-0.0458479 3.66824 -0.0516033 3.35171 0.140078 3.15293C0.331758 2.95415 0.648288 2.9484 0.847067 3.14008L5.67208 7.79277L10.1398 3.15318C10.3314 2.95427 10.6479 2.9483 10.8468 3.13984Z",fill:r}))}),QK=I(I(I(I({},Eo.Right,X(["svg{transform:rotate(-90deg);transition:transform 150ms ease-out;}"])),Eo.Left,X(["svg{transform:rotate(90deg);transition:transform 150ms ease-out;}"])),Eo.Top,X(["svg{transform:rotate(180deg);transition:transform 150ms ease-out;}"])),Eo.Bottom,X(["svg{transform:rotate(0);transition:transform 150ms ease-out;}"])),JK="ArrowTick",eZ=Z.span.attrs({className:xe(JK,"root")}).withConfig({componentId:"sc-tlypde-0"})(function(e){var t=e.type,n=t===void 0?Eo.Right:t;return X(["display:inline-flex;",""],QK[n])}),tZ=Dt({ArrowTick:eZ}),nZ=["IconProps"],Yg=ut(function(e,t){var n=e.IconProps,r=me(e,nZ);return y.createElement(tZ.ArrowTick,he({},r,{ref:t}),y.createElement($K,n))});Yg.defaultProps={type:Eo.Right},Yg.propTypes={type:F.oneOf(lt(Eo)),IconProps:F.exact(u7)};var Em="AccordionHeader",rZ=Z.span.attrs({className:xe(Em,"icon")}).withConfig({componentId:"sc-1dtjsgt-0"})(function(){return X(["display:inline-flex;padding-left:8px;"])}),iZ=Z.span.attrs({className:xe(Em,"label")}).withConfig({componentId:"sc-1dtjsgt-1"})(function(e){var t=e.theme;return X(["",""],t.typography.font[_e.ButtonSm])}),aZ=Z.div.attrs({className:xe(Em,"root")}).withConfig({componentId:"sc-1dtjsgt-2"})(function(e){var t=e.theme,n=e.fullWidth;return X(["display:inline-flex;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:pointer;width:",";color:",";user-select:none;"],n?"100%":"auto",t.palette[L.LinkPrimary])}),oZ=Z.div.attrs({className:xe(Em,"wrapper")}).withConfig({componentId:"sc-1dtjsgt-3"})(function(e){var t=e.theme;return X(["color:",";"],t.palette[L.LinkPrimary])}),zu=Dt({Header:aZ,Wrapper:oZ,Icon:rZ,Label:iZ}),sZ=["expanded","label","onChange","onClick","onContextMenu","hideIcon","fullWidth","iconProps"];function AS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lZ(e){for(var t=1;t0&&!x,Ie=function(){var Ve;_||C||(q?.(!1),(Ve=ee.current)===null||Ve===void 0||Ve.focus())};V.useEffect(function(){M&&Ie()},[]),V.useEffect(function(){setTimeout(function(){return re(!1)},2e3)},[$]);var Ae=function(){setTimeout(function(){ne(!0)},150)},Se=function(){setTimeout(function(){ne(!1)},200)},Ne=function(Ve,Mn){_||C||(P&&Ie(),Mn==="start"?d&&d(Ve):Mn==="end"?h&&h(Ve):b&&b(Ve))},Me=function(Ve,Mn){return Ve?y.createElement($r.Icon,{onClick:function(Dn){return Ne(Dn,Mn)},iconClickStart:d,iconClickEnd:h,iconType:Mn,disabled:_,readOnly:C},typeof Ve=="function"?Ve({size:R4(g,Mn)}):Ve):void 0},Ye=function(){return _||C||!c?void 0:y.createElement($r.ClearIcon,{onClick:function(Ve){return Ne(Ve,"clear")}},typeof c=="function"?c({size:R4(g,"clear")}):c)},He=function(Ve){return se?y.createElement($r.CopyIcon,{onClick:function(){return CM(Y.value,re)}},typeof Ve=="function"?Ve():Ve):void 0},We=function(Ve){Ve.stopPropagation(),B(!D)},_t=function(){return y.createElement($r.PasswordIcon,{onClick:function(Ve){return We(Ve)}},D?y.createElement(SZ,{size:NS(g)}):y.createElement(xZ,{size:NS(g)}))},gt=function(){return!r&&Y!==null&&Y!==void 0&&Y.type?Y?.type:r===Af.Password&&!D?Af.Password:Af.Text},mt=function(){return y.createElement($r.FieldWrapper,{isSelectedItems:!!ue},J&&J(),y.createElement($r.Base,he({},Y,{placeholder:ve,ref:ee,readOnly:!!C,type:gt(),isEllipsis:T})))},Ge=function(){return y.createElement($r.NotificationBox,{size:g},y.createElement($r.NotificationIcon,null,z),y.createElement($r.NotificationText,null,R))};return y.createElement($r.Input,{onClick:P?Ie:void 0,ref:t,size:g,onMouseEnter:Ae,onMouseLeave:Se,className:v,style:w,readOnly:C,disabled:_,fullWidth:!!k,error:H,clearIcon:c,isHovering:Y.isHovering,isSelectedItems:!!ue},Me(a,"start"),mt(),He(y.createElement(yM,{size:R4(g,"copy")})),$&&Ge(),Ye(),r===Af.Password&&_t(),Me(o,"end"),Me(s,""),i&&y.createElement(y.Fragment,null,i))}),LZ={size:ot.Md,error:!1,fullWidth:!1,readOnly:!1,disabled:!1,copyTextMessage:"Copied!"};lc.defaultProps=LZ;var EM={size:F.oneOf(lt(ot)),iconStart:F.oneOfType([F.node,F.func]),iconEnd:F.oneOfType([F.node,F.func]),iconChange:F.oneOfType([F.node,F.func]),copySuccessIcon:F.oneOfType([F.node,F.func]),clearIcon:F.oneOfType([F.node,F.func]),error:F.bool,fullWidth:F.bool,value:F.any,readOnly:F.bool,disabled:F.bool,iconClickStart:F.func,showPlaceholder:F.func,iconClickEnd:F.func,clearIconClick:F.func,focusOnMount:F.bool,focusOnClick:F.bool,copyTextMessage:F.string,inputType:F.string,renderTags:F.func};lc.propTypes=EM;var ai="top",Xi="bottom",Yi="right",oi="left",d7="auto",M0=[ai,Xi,Yi,oi],ld="start",b0="end",jZ="clippingParents",_M="viewport",gh="popper",NZ="reference",DS=M0.reduce(function(e,t){return e.concat([t+"-"+ld,t+"-"+b0])},[]),kM=[].concat(M0,[d7]).reduce(function(e,t){return e.concat([t,t+"-"+ld,t+"-"+b0])},[]),DZ="beforeRead",RZ="read",FZ="afterRead",zZ="beforeMain",BZ="main",HZ="afterMain",GZ="beforeWrite",VZ="write",UZ="afterWrite",WZ=[DZ,RZ,FZ,zZ,BZ,HZ,GZ,VZ,UZ];function Ya(e){return e?(e.nodeName||"").toLowerCase():null}function xi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cc(e){var t=xi(e).Element;return e instanceof t||e instanceof Element}function Vi(e){var t=xi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function h7(e){if(typeof ShadowRoot>"u")return!1;var t=xi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function XZ(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Vi(a)||!Ya(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function YZ(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=o.reduce(function(c,d){return c[d]="",c},{});!Vi(i)||!Ya(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(c){i.removeAttribute(c)}))})}}const KZ={name:"applyStyles",enabled:!0,phase:"write",fn:XZ,effect:YZ,requires:["computeStyles"]};function Xa(e){return e.split("-")[0]}var Yl=Math.max,Zg=Math.min,cd=Math.round;function Uy(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function OM(){return!/^((?!chrome|android).)*safari/i.test(Uy())}function ud(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Vi(e)&&(i=e.offsetWidth>0&&cd(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&cd(r.height)/e.offsetHeight||1);var o=cc(e)?xi(e):window,s=o.visualViewport,c=!OM()&&n,d=(r.left+(c&&s?s.offsetLeft:0))/i,h=(r.top+(c&&s?s.offsetTop:0))/a,b=r.width/i,m=r.height/a;return{width:b,height:m,top:h,right:d+b,bottom:h+m,left:d,x:d,y:h}}function f7(e){var t=ud(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function PM(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&h7(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mo(e){return xi(e).getComputedStyle(e)}function ZZ(e){return["table","td","th"].indexOf(Ya(e))>=0}function Ks(e){return((cc(e)?e.ownerDocument:e.document)||window.document).documentElement}function _m(e){return Ya(e)==="html"?e:e.assignedSlot||e.parentNode||(h7(e)?e.host:null)||Ks(e)}function RS(e){return!Vi(e)||Mo(e).position==="fixed"?null:e.offsetParent}function qZ(e){var t=/firefox/i.test(Uy()),n=/Trident/i.test(Uy());if(n&&Vi(e)){var r=Mo(e);if(r.position==="fixed")return null}var i=_m(e);for(h7(i)&&(i=i.host);Vi(i)&&["html","body"].indexOf(Ya(i))<0;){var a=Mo(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function I0(e){for(var t=xi(e),n=RS(e);n&&ZZ(n)&&Mo(n).position==="static";)n=RS(n);return n&&(Ya(n)==="html"||Ya(n)==="body"&&Mo(n).position==="static")?t:n||qZ(e)||t}function p7(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Hh(e,t,n){return Yl(e,Zg(t,n))}function $Z(e,t,n){var r=Hh(e,t,n);return r>n?n:r}function TM(){return{top:0,right:0,bottom:0,left:0}}function MM(e){return Object.assign({},TM(),e)}function IM(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var QZ=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,MM(typeof e!="number"?e:IM(e,M0))};function JZ(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Xa(n.placement),c=p7(s),d=[oi,Yi].indexOf(s)>=0,h=d?"height":"width";if(!(!a||!o)){var b=QZ(i.padding,n),m=f7(a),g=c==="y"?ai:oi,v=c==="y"?Xi:Yi,w=n.rects.reference[h]+n.rects.reference[c]-o[c]-n.rects.popper[h],k=o[c]-n.rects.reference[c],C=I0(a),_=C?c==="y"?C.clientHeight||0:C.clientWidth||0:0,f=w/2-k/2,x=b[g],E=_-m[h]-b[v],M=_/2-m[h]/2+f,j=Hh(x,M,E),P=c;n.modifiersData[r]=(t={},t[P]=j,t.centerOffset=j-M,t)}}function eq(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||PM(t.elements.popper,i)&&(t.elements.arrow=i))}const tq={name:"arrow",enabled:!0,phase:"main",fn:JZ,effect:eq,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dd(e){return e.split("-")[1]}var nq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rq(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:cd(n*i)/i||0,y:cd(r*i)/i||0}}function FS(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,b=e.isFixed,m=o.x,g=m===void 0?0:m,v=o.y,w=v===void 0?0:v,k=typeof h=="function"?h({x:g,y:w}):{x:g,y:w};g=k.x,w=k.y;var C=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),f=oi,x=ai,E=window;if(d){var M=I0(n),j="clientHeight",P="clientWidth";if(M===xi(n)&&(M=Ks(n),Mo(M).position!=="static"&&s==="absolute"&&(j="scrollHeight",P="scrollWidth")),M=M,i===ai||(i===oi||i===Yi)&&a===b0){x=Xi;var N=b&&M===E&&E.visualViewport?E.visualViewport.height:M[j];w-=N-r.height,w*=c?1:-1}if(i===oi||(i===ai||i===Xi)&&a===b0){f=Yi;var T=b&&M===E&&E.visualViewport?E.visualViewport.width:M[P];g-=T-r.width,g*=c?1:-1}}var R=Object.assign({position:s},d&&nq),z=h===!0?rq({x:g,y:w},xi(n)):{x:g,y:w};if(g=z.x,w=z.y,c){var H;return Object.assign({},R,(H={},H[x]=_?"0":"",H[f]=C?"0":"",H.transform=(E.devicePixelRatio||1)<=1?"translate("+g+"px, "+w+"px)":"translate3d("+g+"px, "+w+"px, 0)",H))}return Object.assign({},R,(t={},t[x]=_?w+"px":"",t[f]=C?g+"px":"",t.transform="",t))}function iq(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,d={placement:Xa(t.placement),variation:dd(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,FS(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,FS(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const aq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iq,data:{}};var Lf={passive:!0};function oq(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=xi(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&d.forEach(function(h){h.addEventListener("scroll",n.update,Lf)}),s&&c.addEventListener("resize",n.update,Lf),function(){a&&d.forEach(function(h){h.removeEventListener("scroll",n.update,Lf)}),s&&c.removeEventListener("resize",n.update,Lf)}}const sq={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oq,data:{}};var lq={left:"right",right:"left",bottom:"top",top:"bottom"};function Up(e){return e.replace(/left|right|bottom|top/g,function(t){return lq[t]})}var cq={start:"end",end:"start"};function zS(e){return e.replace(/start|end/g,function(t){return cq[t]})}function g7(e){var t=xi(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function m7(e){return ud(Ks(e)).left+g7(e).scrollLeft}function uq(e,t){var n=xi(e),r=Ks(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var d=OM();(d||!d&&t==="fixed")&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+m7(e),y:c}}function dq(e){var t,n=Ks(e),r=g7(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Yl(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Yl(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+m7(e),c=-r.scrollTop;return Mo(i||n).direction==="rtl"&&(s+=Yl(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:c}}function v7(e){var t=Mo(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function AM(e){return["html","body","#document"].indexOf(Ya(e))>=0?e.ownerDocument.body:Vi(e)&&v7(e)?e:AM(_m(e))}function Gh(e,t){var n;t===void 0&&(t=[]);var r=AM(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=xi(r),o=i?[a].concat(a.visualViewport||[],v7(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Gh(_m(o)))}function Wy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hq(e,t){var n=ud(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function BS(e,t,n){return t===_M?Wy(uq(e,n)):cc(t)?hq(t,n):Wy(dq(Ks(e)))}function fq(e){var t=Gh(_m(e)),n=["absolute","fixed"].indexOf(Mo(e).position)>=0,r=n&&Vi(e)?I0(e):e;return cc(r)?t.filter(function(i){return cc(i)&&PM(i,r)&&Ya(i)!=="body"}):[]}function pq(e,t,n,r){var i=t==="clippingParents"?fq(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(c,d){var h=BS(e,d,r);return c.top=Yl(h.top,c.top),c.right=Zg(h.right,c.right),c.bottom=Zg(h.bottom,c.bottom),c.left=Yl(h.left,c.left),c},BS(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function LM(e){var t=e.reference,n=e.element,r=e.placement,i=r?Xa(r):null,a=r?dd(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case ai:c={x:o,y:t.y-n.height};break;case Xi:c={x:o,y:t.y+t.height};break;case Yi:c={x:t.x+t.width,y:s};break;case oi:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var d=i?p7(i):null;if(d!=null){var h=d==="y"?"height":"width";switch(a){case ld:c[d]=c[d]-(t[h]/2-n[h]/2);break;case b0:c[d]=c[d]+(t[h]/2-n[h]/2);break}}return c}function w0(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?jZ:s,d=n.rootBoundary,h=d===void 0?_M:d,b=n.elementContext,m=b===void 0?gh:b,g=n.altBoundary,v=g===void 0?!1:g,w=n.padding,k=w===void 0?0:w,C=MM(typeof k!="number"?k:IM(k,M0)),_=m===gh?NZ:gh,f=e.rects.popper,x=e.elements[v?_:m],E=pq(cc(x)?x:x.contextElement||Ks(e.elements.popper),c,h,o),M=ud(e.elements.reference),j=LM({reference:M,element:f,placement:i}),P=Wy(Object.assign({},f,j)),N=m===gh?P:M,T={top:E.top-N.top+C.top,bottom:N.bottom-E.bottom+C.bottom,left:E.left-N.left+C.left,right:N.right-E.right+C.right},R=e.modifiersData.offset;if(m===gh&&R){var z=R[i];Object.keys(T).forEach(function(H){var J=[Yi,Xi].indexOf(H)>=0?1:-1,q=[ai,Xi].indexOf(H)>=0?"y":"x";T[H]+=z[q]*J})}return T}function gq(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?kM:c,h=dd(r),b=h?s?DS:DS.filter(function(v){return dd(v)===h}):M0,m=b.filter(function(v){return d.indexOf(v)>=0});m.length===0&&(m=b);var g=m.reduce(function(v,w){return v[w]=w0(e,{placement:w,boundary:i,rootBoundary:a,padding:o})[Xa(w)],v},{});return Object.keys(g).sort(function(v,w){return g[v]-g[w]})}function mq(e){if(Xa(e)===d7)return[];var t=Up(e);return[zS(e),t,zS(t)]}function vq(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,d=n.padding,h=n.boundary,b=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,w=n.allowedAutoPlacements,k=t.options.placement,C=Xa(k),_=C===k,f=c||(_||!v?[Up(k)]:mq(k)),x=[k].concat(f).reduce(function(re,we){return re.concat(Xa(we)===d7?gq(t,{placement:we,boundary:h,rootBoundary:b,padding:d,flipVariations:v,allowedAutoPlacements:w}):we)},[]),E=t.rects.reference,M=t.rects.popper,j=new Map,P=!0,N=x[0],T=0;T=0,q=J?"width":"height",Y=w0(t,{placement:R,boundary:h,rootBoundary:b,altBoundary:m,padding:d}),le=J?H?Yi:oi:H?Xi:ai;E[q]>M[q]&&(le=Up(le));var K=Up(le),ce=[];if(a&&ce.push(Y[z]<=0),s&&ce.push(Y[le]<=0,Y[K]<=0),ce.every(function(re){return re})){N=R,P=!1;break}j.set(R,ce)}if(P)for(var ne=v?3:1,oe=function(re){var we=x.find(function(W){var D=j.get(W);if(D)return D.slice(0,re).every(function(B){return B})});if(we)return N=we,"break"},Q=ne;Q>0;Q--){var $=oe(Q);if($==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const yq={name:"flip",enabled:!0,phase:"main",fn:vq,requiresIfExists:["offset"],data:{_skip:!1}};function HS(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function GS(e){return[ai,Yi,Xi,oi].some(function(t){return e[t]>=0})}function bq(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=w0(t,{elementContext:"reference"}),s=w0(t,{altBoundary:!0}),c=HS(o,r),d=HS(s,i,a),h=GS(c),b=GS(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":b})}const wq={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bq};function xq(e,t,n){var r=Xa(e),i=[oi,ai].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[oi,Yi].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Cq(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=kM.reduce(function(h,b){return h[b]=xq(b,t.rects,a),h},{}),s=o[t.placement],c=s.x,d=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=o}const Sq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cq};function Eq(e){var t=e.state,n=e.name;t.modifiersData[n]=LM({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const _q={name:"popperOffsets",enabled:!0,phase:"read",fn:Eq,data:{}};function kq(e){return e==="x"?"y":"x"}function Oq(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,b=n.padding,m=n.tether,g=m===void 0?!0:m,v=n.tetherOffset,w=v===void 0?0:v,k=w0(t,{boundary:c,rootBoundary:d,padding:b,altBoundary:h}),C=Xa(t.placement),_=dd(t.placement),f=!_,x=p7(C),E=kq(x),M=t.modifiersData.popperOffsets,j=t.rects.reference,P=t.rects.popper,N=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,T=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,z={x:0,y:0};if(M){if(a){var H,J=x==="y"?ai:oi,q=x==="y"?Xi:Yi,Y=x==="y"?"height":"width",le=M[x],K=le+k[J],ce=le-k[q],ne=g?-P[Y]/2:0,oe=_===ld?j[Y]:P[Y],Q=_===ld?-P[Y]:-j[Y],$=t.elements.arrow,re=g&&$?f7($):{width:0,height:0},we=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:TM(),W=we[J],D=we[q],B=Hh(0,j[Y],re[Y]),ee=f?j[Y]/2-ne-B-W-T.mainAxis:oe-B-W-T.mainAxis,ue=f?-j[Y]/2+ne+B+D+T.mainAxis:Q+B+D+T.mainAxis,ve=t.elements.arrow&&I0(t.elements.arrow),se=ve?x==="y"?ve.clientTop||0:ve.clientLeft||0:0,Ie=(H=R?.[x])!=null?H:0,Ae=le+ee-Ie-se,Se=le+ue-Ie,Ne=Hh(g?Zg(K,Ae):K,le,g?Yl(ce,Se):ce);M[x]=Ne,z[x]=Ne-le}if(s){var Me,Ye=x==="x"?ai:oi,He=x==="x"?Xi:Yi,We=M[E],_t=E==="y"?"height":"width",gt=We+k[Ye],mt=We-k[He],Ge=[ai,oi].indexOf(C)!==-1,Ve=(Me=R?.[E])!=null?Me:0,Mn=Ge?gt:We-j[_t]-P[_t]-Ve+T.altAxis,Dn=Ge?We+j[_t]+P[_t]-Ve-T.altAxis:mt,fn=g&&Ge?$Z(Mn,We,Dn):Hh(g?Mn:gt,We,g?Dn:mt);M[E]=fn,z[E]=fn-We}t.modifiersData[r]=z}}const Pq={name:"preventOverflow",enabled:!0,phase:"main",fn:Oq,requiresIfExists:["offset"]};function Tq(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mq(e){return e===xi(e)||!Vi(e)?g7(e):Tq(e)}function Iq(e){var t=e.getBoundingClientRect(),n=cd(t.width)/e.offsetWidth||1,r=cd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Aq(e,t,n){n===void 0&&(n=!1);var r=Vi(t),i=Vi(t)&&Iq(t),a=Ks(t),o=ud(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ya(t)!=="body"||v7(a))&&(s=Mq(t)),Vi(t)?(c=ud(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=m7(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Lq(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&i(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function jq(e){var t=Lq(e);return WZ.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Nq(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Dq(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var VS={placement:"bottom",modifiers:[],strategy:"absolute"};function US(){for(var e=arguments.length,t=new Array(e),n=0;n svg{path{fill:",";}}color:",";"],i.palette[L.ButtonDisabledText],i.palette[L.ButtonDisabledText]))}),c$=Z.div.attrs({className:xe(Zs,"prefix")}).withConfig({componentId:"sc-rrzye0-5"})(function(){return X(["display:flex;"])}),u$=Z.div.attrs({className:xe(Zs,"content")}).withConfig({componentId:"sc-rrzye0-6"})(function(){return X(["flex-grow:1;line-height:16px;"])}),d$=Z.div.attrs({className:xe(Zs,"suffix")}).withConfig({componentId:"sc-rrzye0-7"})(function(){return X(["display:flex;margin-left:8px;"])}),Fi=Dt({MenuItemWrapper:s$,MenuItem:l$,MenuPrefix:c$,MenuContent:u$,MenuSuffix:d$,Label:o$,Icon:FM,Actions:a$}),h$=["list","depth","children","disableHover","noOptionsText","disabled","enableScrollIntoView"];function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function f$(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:0;return N.map(function(R){var z=R.subList&&R.subList.length>0,H;if(_[T]===R.key&&z){var J=T+1;H=y.createElement(Do,he({key:R.key,position:"right",open:!!v,anchorEl:v,enableOverlay:!1},R.subMenuProps),y.createElement(ya,he({list:R.subList,depth:J},h)))}return R.content==="divider"?y.createElement(Fi.MenuItemWrapper,{divider:!0,key:R.key}):y.createElement(Fi.MenuItemWrapper,he({disabled:!1,key:R.key,onMouseLeave:function(){return j(T)}},h),y.createElement(Fi.MenuItem,he({},h,{className:R.className,ref:t,active:!!R.active,onClick:R.onClick?function(q){return R.onClick(f$({event:q},h))}:void 0,onMouseEnter:function(q){return M(q,R.key,T)},disableHover:o||R.disableHover}),R.prefix&&y.createElement(Fi.MenuPrefix,null,typeof R.prefix=="function"?R.prefix(h):R.prefix),R.content&&y.createElement(Fi.MenuContent,null,typeof R.content=="function"?R.content(h):R.content),(R.suffix||R.subList)&&y.createElement(Fi.MenuSuffix,null,typeof R.suffix=="function"?R.suffix(h):R.suffix,R.subList&&y.createElement(vZ,{size:10,color:"#768A9F"}))),H)})};return n?y.createElement(y.Fragment,null,P(n,i)):h.value==="divider"?y.createElement(Fi.MenuItemWrapper,{divider:!0,key:h.value}):y.createElement(Fi.MenuItemWrapper,{noOptionsText:!!s,disabled:!!c},y.createElement(Fi.MenuItem,he({},h,{ref:b,disableHover:o,noOptionsText:s,disabled:c}),a))});ya.displayName="MenuItem";var p$={size:gr.Sm,active:!1};ya.defaultProps=p$,ya.propTypes={size:F.oneOf(lt(gr)),children:F.oneOfType([F.node,F.func]),active:F.bool,value:F.oneOfType([F.string,F.number,F.bool,F.oneOf([null])]),depth:F.number,disableHover:F.bool,noOptionsText:F.bool,disabled:F.bool,enableScrollIntoView:F.bool};var g$=["children","disabled","size"],m$=function(e){switch(e){case gr.Md:return 16;case gr.Sm:default:return 14}},Xy=ut(function(e,t){var n=e.children,r=e.disabled,i=e.size,a=i===void 0?gr.Md:i,o=me(e,g$);return y.createElement(Fi.Icon,he({disabled:r},o,{ref:t}),n&&typeof n=="function"?n({size:m$(a)}):n)});Xy.defaultProps={size:gr.Md},Xy.propTypes={size:F.oneOf(lt(gr)),children:F.oneOfType([F.node,F.func]).isRequired,disabled:F.bool};var v$=["children"],Pm=ut(function(e,t){var n=e.children,r=me(e,v$);return y.createElement(Fi.Label,he({},r,{ref:t}),n)});Pm.displayName="MenuItemLabel";var y$=["children"],Wp=ut(function(e,t){var n=e.children,r=me(e,y$);return y.createElement(Fi.Actions,he({},r,{ref:t}),n&&typeof n=="function"?n({size:r.size}):n)});Wp.displayName="MenuItemActions",Wp.defaultProps={size:gr.Md},Wp.propTypes={size:F.oneOf(lt(gr)),children:F.oneOfType([F.node,F.func]).isRequired};var b$=["color","size"],zM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,b$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 44 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M43.3196 40.0403C44.2253 40.9461 44.2253 42.4146 43.3196 43.3204C42.4138 44.2262 40.9453 44.2262 40.0396 43.3204L21.9997 25.2802L3.95952 43.3207C3.05376 44.2264 1.58525 44.2264 0.679494 43.3207C-0.226258 42.4149 -0.226258 40.9464 0.679495 40.0406L18.7197 22.0001L0.679313 3.95941C-0.226437 3.05364 -0.226439 1.5851 0.679314 0.679328C1.58507 -0.226442 3.05358 -0.226443 3.95934 0.679328L21.9997 18.72L40.0398 0.679604C40.9455 -0.226163 42.414 -0.226165 43.3198 0.679605C44.2255 1.58537 44.2255 3.05392 43.3198 3.95969L25.2797 22.0001L43.3196 40.0403Z",fill:r}))}),w$=I(I({},ot.Sm,function(e){var t=e.theme.typography.font;return X(t[_e.LabelExtraSmallUp])}),ot.Md,function(e){var t=e.theme.typography.font;return X(t[_e.LabelSmall])}),x$="FormHint",C$=Z.span.attrs({className:xe(x$,"root")}).withConfig({componentId:"sc-1vu99sv-0"})(function(e){var t=e.size,n=t===void 0?ot.Md:t,r=e.error,i=r===void 0?!1:r,a=e.disabled,o=a===void 0?!1:a,s=e.theme;return X(["display:flex;align-items:center;color:",";"," ",""],i?s.palette[L.Error]:s.palette[L.TextSecondary],o&&X(["color:",";"],s.palette[L.ButtonDisabledText]),w$[n])}),BM=Dt({FormHint:C$}),qg=ut(function(e,t){return y.createElement(BM.FormHint,he({ref:t},e))});qg.defaultProps={error:!1},qg.propTypes={error:F.bool,size:F.oneOf(lt(ot))};var S$=I(I(I({},Bh.Primary,function(e){var t=e.theme.palette;return X(["background-color:",";color:",";"],t[L.AccentPrimary],t[L.ButtonPrimaryText])}),Bh.White,function(e){var t=e.theme.palette;return X(["background-color:",";color:",";"],t[L.ButtonPrimaryText],t[L.AccentPrimary])}),Bh.Secondary,function(e){var t=e.theme.palette;return X(["background-color:",";color:",";"],t[L.Accent_1_2_Opacity],t[L.TextPrimary])}),HM="Badge",B4=20,E$=Z.span.attrs({className:xe(HM,"root")}).withConfig({componentId:"sc-1rfm40m-0"})(["position:relative;display:inline-flex;flex-shrink:0;vertical-align:middle;"]),_$=Z.span.attrs({className:xe(HM)}).withConfig({componentId:"sc-1rfm40m-1"})(function(e){var t=e.size,n=e.color,r=n===void 0?"secondary":n,i=e.fontSize,a=e.padding,o=a===void 0?"0 6px":a,s=e.inline;return X([""," display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:center;align-content:center;height:","px;min-width:","px;line-height:1;padding:",";font-size:",";box-sizing:border-box;transition:transform 225ms cubic-bezier(0.4,0,0.2,1) 0ms;border-radius:","px;z-index:1;",""],s?"":"position: absolute;",t||B4,t||B4,typeof o=="number"?"".concat(o,"px"):o,typeof i=="number"?"".concat(i,"px"):i,(t||B4)/2,S$[r])}),Zt=Dt({BadgeRoot:E$,Badge:_$}),k$=["badgeContent"],Yy=ut(function(e,t){var n=e.badgeContent,r=me(e,k$);return y.createElement(Zt.BadgeRoot,{ref:t},y.createElement(Zt.Badge,r,n))});Yy.defaultProps={color:Bh.Secondary,inline:!1},Yy.propTypes={color:F.oneOf(lt(Bh)),badgeContent:F.node,size:F.oneOfType([F.number]),fontSize:F.oneOfType([F.number,F.string]),padding:F.oneOfType([F.number,F.string]),inline:F.bool};var O$=["color","size"],H4=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?28:i,o=me(e,O$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M41.3465 44.355C33.5656 50.7844 22.9687 51.6268 14.3708 47.3665L17.8949 44.4545C24.754 47.117 32.7424 46.1093 38.709 41.1792C44.6755 36.249 47.1546 28.6071 45.8085 21.3893L49.3325 18.4773C51.9291 27.6967 49.1274 37.9256 41.3465 44.355Z",fill:r}),y.createElement("path",{d:"M36.1749 2.63356L32.6509 5.54555C25.821 2.91828 17.838 3.86187 11.8366 8.82088C5.87009 13.7511 3.42028 21.4282 4.7372 28.6107L1.21311 31.5227C-1.38344 22.3034 1.45314 12.0456 9.19916 5.64502C16.9801 -0.784402 27.5768 -1.62682 36.1749 2.63356Z",fill:r}))}),P$=["color","size"],KS=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,P$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M5.74299 0.152553C5.95998 -0.056404 6.30528 -0.0498885 6.51424 0.167105C6.7232 0.384099 6.71668 0.7294 6.49969 0.938357L1.43832 5.81227L6.51398 11.0759C6.72309 11.2928 6.71681 11.6381 6.49996 11.8472C6.28311 12.0563 5.9378 12.05 5.7287 11.8332L0.274151 6.1766C0.17369 6.07242 0.118752 5.93258 0.121433 5.78788C0.124113 5.64317 0.184193 5.50547 0.288444 5.40508L5.74299 0.152553Z",fill:r}),y.createElement("path",{d:"M10.9549 0.152554C11.1719 -0.0564031 11.5172 -0.0498876 11.7262 0.167106C11.9351 0.3841 11.9286 0.729401 11.7116 0.938357L6.65023 5.81227L11.7259 11.0759C11.935 11.2928 11.9287 11.6381 11.7119 11.8472C11.495 12.0563 11.1497 12.05 10.9406 11.8332L5.48606 6.1766C5.3856 6.07242 5.33067 5.93258 5.33335 5.78788C5.33603 5.64317 5.39611 5.50547 5.50036 5.40508L10.9549 0.152554Z",fill:r}))}),T$=["color","size"],ZS=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,T$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M6.25714 11.8474C6.04014 12.0564 5.69484 12.0499 5.48588 11.8329C5.27693 11.6159 5.28344 11.2706 5.50043 11.0616L10.5618 6.18773L5.48614 0.924074C5.27704 0.707224 5.28331 0.361919 5.50016 0.152813C5.71701 -0.0562931 6.06232 -0.0500145 6.27143 0.166835L11.726 5.8234C11.8264 5.92758 11.8814 6.06742 11.8787 6.21212C11.876 6.35683 11.8159 6.49453 11.7117 6.59492L6.25714 11.8474Z",fill:r}),y.createElement("path",{d:"M1.04522 11.8474C0.828227 12.0564 0.482925 12.0499 0.273969 11.8329C0.065012 11.6159 0.0715275 11.2706 0.288521 11.0616L5.34989 6.18773L0.274227 0.924074C0.0651226 0.707224 0.0714006 0.361919 0.28825 0.152813C0.5051 -0.0562931 0.850407 -0.0500145 1.05951 0.166835L6.51406 5.8234C6.61452 5.92758 6.66946 6.06742 6.66678 6.21212C6.6641 6.35683 6.60402 6.49453 6.49977 6.59492L1.04522 11.8474Z",fill:r}))}),Bu={Default:"default",Sidebar:"sidebar"},yo={Left:"left",Right:"right"},Bl=function(e){switch(e){case it.Lg:return 18;case it.Md:return 16;case it.Sm:return 14;case it.Xs:return 12;default:return 16}},M$=function(e){switch(e){case it.Lg:return 12;case it.Md:return 11;case it.Sm:return 10;default:return 11}},G4,I$=(G4={},I(I(I(I(I(I(I(I(I(I(G4,Fn.Primary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{color:",";background:",";cursor:default;","{color:",";background:transparent;}}"],t[L.AccentStateless],t[L.ButtonPrimaryText],Zt.Badge,t[L.ButtonPrimaryText],t[L.AccentPrimaryHover],t[L.AccentPrimaryActive],n&&X(["background-color:",";&:hover,&:focus{background-color:",";}"],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive]),t[L.BordersDisabled],t[L.Accent_1_2_Opacity],Zt.Badge,t[L.BordersDisabled])}),Fn.Secondary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";border:1px solid ",";","{color:",";background:transparent;}&:hover{color:",";background-color:",";","{color:",";}}&:focus{color:",";background-color:",";border:1px solid ",";","{color:",";}}&:active{color:",";background-color:",";","{color:",";}}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],t[L.BackgroundStateless],t[L.AccentStateless],t[L.AccentStateless],Zt.Badge,t[L.AccentStateless],t[L.ButtonPrimaryText],t[L.AccentPrimaryHover],Zt.Badge,t[L.ButtonPrimaryText],t[L.AccentPrimaryActive],t[L.Accent_1_2_Opacity],t[L.AccentPrimaryActive],Zt.Badge,t[L.AccentPrimaryActive],t[L.ButtonPrimaryText],t[L.AccentPrimaryActive],Zt.Badge,t[L.ButtonPrimaryText],n&&X(["color:",";background-color:",";","{color:",";}&:hover,&:focus{color:",";background-color:",";","{color:",";}}"],t[L.ButtonPrimaryText],t[L.AccentPrimaryActive],Zt.Badge,t[L.ButtonPrimaryText],t[L.ButtonPrimaryText],t[L.AccentPrimaryActive],Zt.Badge,t[L.ButtonPrimaryText]),t[L.BordersDisabled],t[L.Accent_1_2_Opacity],Zt.Badge,t[L.BordersDisabled])}),Fn.Basic,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:transparent;border:1px solid ",";color:",";","{background-color:transparent;color:",";}&:hover{background-color:",";color:",";","{color:",";}}&:active{background-color:",";color:",";","{color:",";}}"," &:disabled{background-color:",";color:",";cursor:default;border:none;","{color:",";}}"],t[L.BordersButton],t[L.LinkStateless],Zt.Badge,t[L.LinkStateless],t[L.BackgroundHover],t[L.LinkHover],Zt.Badge,t[L.LinkHover],t[L.BackgroundActive],t[L.LinkHover],Zt.Badge,t[L.LinkHover],n&&X(["background-color:",";color:",";","{color:",";}&:hover,&:focus{background-color:",";color:",";}"],t[L.BackgroundActive],t[L.LinkHover],Zt.Badge,t[L.LinkHover],t[L.BackgroundActive],t[L.LinkHover]),t[L.Accent_1_2_Opacity],t[L.BordersDisabled],Zt.Badge,t[L.BordersDisabled])}),Fn.LinkPrimary,function(e){var t=e.theme.palette,n=e.active;return X(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],t[L.AccentStateless],t[L.AccentPrimaryHover],t[L.AccentPrimaryActive],n&&X(["color:",";&:hover,&:focus{color:",";"],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive]),t[L.BordersDisabled])}),Fn.LinkSecondary,function(e){var t=e.theme.palette,n=e.active;return X(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],t[L.LinkStateless],t[L.AccentPrimaryHover],t[L.AccentPrimaryActive],n&&X(["color:",";&:hover,&:focus{color:",";}"],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive]),t[L.BordersDisabled])}),Fn.LinkBasicPrimary,function(e){var t=e.theme.palette,n=e.active;return X(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],t[L.AccentStateless],t[L.AccentPrimaryHover],t[L.AccentPrimaryActive],n&&X(["color:",";&:hover,&:focus{color:",";}"],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive]),t[L.BordersDisabled])}),Fn.LinkBasicSecondary,function(e){var t=e.theme.palette,n=e.active;return X(["color:",";background-color:transparent;padding:0px !important;&:hover{background-color:transparent;color:",";}&:active{color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],t[L.LinkStateless],t[L.AccentPrimaryHover],t[L.AccentPrimaryActive],n&&X(["color:",";&:hover,&:focus{color:",";}"],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive]),t[L.BordersDisabled])}),Fn.ErrorPrimary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{background-color:",";color:",";cursor:default;","{color:",";background:transparent;}}"],t[L.Error],t[L.ButtonPrimaryText],Zt.Badge,t[L.ButtonPrimaryText],t[L.ErrorHover],t[L.ErrorActive],n&&X(["background-color:",";&:hover,&:focus{background-color:",";}"],t[L.ErrorActive],t[L.ErrorActive]),t[L.Accent_1_2_Opacity],t[L.BordersDisabled],Zt.Badge,t[L.BordersDisabled])}),Fn.ErrorSecondary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";border:1px solid ",";","{color:",";background-color:transparent;}&:hover{background-color:",";color:",";border:none;","{color:",";}}&:active{background-color:",";color:",";border:none;}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],t[L.BackgroundStateless],t[L.LinkStateless],t[L.BordersButton],Zt.Badge,t[L.LinkStateless],t[L.ErrorHover],t[L.ButtonPrimaryText],Zt.Badge,t[L.ButtonPrimaryText],t[L.ErrorActive],t[L.ButtonPrimaryText],n&&X(["background-color:",";color:",";border:none;&:hover,&:focus{background-color:",";}"],t[L.ErrorActive],t[L.ButtonPrimaryText],t[L.ErrorActive]),t[L.BordersDisabled],t[L.Accent_1_2_Opacity],Zt.Badge,t[L.BordersDisabled])}),Fn.ErrorBasic,function(e){var t=e.theme.palette,n=e.active;return X(["color:",";background-color:transparent;&:hover{color:",";}&:active{color:",";}"," &:disabled{color:",";cursor:default;}"],t[L.LinkStateless],t[L.ErrorHover],t[L.ErrorActive],n&&X(["color:",";&:hover,&:focus{color:",";}"],t[L.ErrorActive],t[L.ErrorActive]),t[L.BordersDisabled])}),I(I(I(G4,Fn.WarningPrimary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";","{color:",";background:transparent;}&:hover{background-color:",";}&:active{background-color:",";}"," &:disabled{background-color:",";color:",";cursor:default;","{color:",";background:transparent;}}"],t[L.Warning],t[L.ButtonPrimaryText],Zt.Badge,t[L.ButtonPrimaryText],t[L.WarningHover],t[L.WarningActive],n&&X(["background-color:",";&:hover,&:focus{background-color:",";}"],t[L.WarningActive],t[L.WarningActive]),t[L.Accent_1_2_Opacity],t[L.BordersDisabled],Zt.Badge,t[L.BordersDisabled])}),Fn.WarningSecondary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";border:1px solid ",";","{color:",";background-color:transparent;}&:hover{background-color:",";color:",";border:none;","{color:",";}}&:active{background-color:",";color:",";border:none;}"," &:disabled{color:",";background:",";border:none;cursor:default;","{color:",";}}"],t[L.BackgroundStateless],t[L.LinkStateless],t[L.BordersButton],Zt.Badge,t[L.LinkStateless],t[L.WarningHover],t[L.ButtonPrimaryText],Zt.Badge,t[L.ButtonPrimaryText],t[L.WarningActive],t[L.ButtonPrimaryText],n&&X(["background-color:",";color:",";border:none;","{color:",";background-color:transparent;}&:hover,&:focus{background-color:",";}"],t[L.WarningActive],t[L.ButtonPrimaryText],Zt.Badge,t[L.ButtonPrimaryText],t[L.WarningActive]),t[L.BordersDisabled],t[L.Accent_1_2_Opacity],Zt.Badge,t[L.BordersDisabled])}),Fn.WarningBasic,function(e){var t=e.theme.palette,n=e.active;return X(["color:",";background-color:transparent;&:hover{color:",";}&:active{color:",";}"," &:disabled{color:",";cursor:default;}"],t[L.LinkStateless],t[L.WarningHover],t[L.WarningActive],n&&X(["color:",";&:hover,&:focus{color:",";}"],t[L.WarningActive],t[L.WarningActive]),t[L.BordersDisabled])})),A$=I(I(I(I({},it.Xs,X(["padding:5px 10px;"])),it.Sm,X(["padding:8px 12px;"])),it.Md,X(["padding:11px 16px;"])),it.Lg,X(["padding:14px 24px;"])),L$=I(I(I(I({},it.Xs,X(["padding:4px 10px;"])),it.Sm,X(["padding:7px 12px;"])),it.Md,X(["padding:10px 16px;"])),it.Lg,X(["padding:13px 24px;"])),j$=I(I(I(I({},it.Xs,X(["padding:5px 10px;"])),it.Sm,X(["padding:8px 12px;"])),it.Md,X(["padding:11px 14px;"])),it.Lg,X(["padding:14px 16px;"])),N$=I(I(I(I({},it.Xs,X(["height:14px;"])),it.Sm,X(["height:16px;"])),it.Md,X(["height:18px;"])),it.Lg,X(["height:20px;"])),D$=I(I(I(I({},it.Xs,X(["margin-right:5px;"])),it.Sm,X(["margin-right:6px;"])),it.Md,X(["margin-right:7px;"])),it.Lg,X(["margin-right:8px;"])),qS=I(I(I(I({},it.Xs,function(e){var t=e.theme.typography.font;return X(t[_e.ButtonSm])}),it.Sm,function(e){var t=e.theme.typography.font;return X(t[_e.ButtonMd])}),it.Md,function(e){var t=e.theme.typography.font;return X(t[_e.ButtonLg])}),it.Lg,function(e){var t=e.theme.typography.font;return X(t[_e.ButtonLgUp])}),qs="Button",GM=Z.span.attrs({className:xe(qs,"Label")}).withConfig({componentId:"sc-lxwit0-0"})(["display:flex;"]),VM=Z.span.attrs({className:xe(qs,"Badge")}).withConfig({componentId:"sc-lxwit0-1"})(["display:flex;margin-left:5px;"]),R$=Z.span.attrs({className:xe(qs,"Body")}).withConfig({componentId:"sc-lxwit0-2"})(function(){return X(["display:flex;align-items:center;"])}),F$=Z.button.attrs({className:xe(qs,"root")}).withConfig({componentId:"sc-lxwit0-3"})(function(e){var t=e.color,n=t===void 0?Fn.Secondary:t,r=e.size,i=r===void 0?it.Md:r,a=e.buttonType,o=e.active,s=e.theme;return X(["display:inline-flex;flex-shrink:0;flex-direction:row;align-items:center;justify-content:center;border-radius:",";transition:all 100ms ease-out;border:0;cursor:pointer;outline:none;"," "," "," ","{"," ","}","{","}",""],s.shape.borderRadius[ga.Md],a!==Bu.Sidebar&&I$[n],a===Bu.Sidebar?j$[i]:A$[i],n===Fn.Secondary&&L$[i],GM,qS[i],(n===Fn.LinkBasicPrimary||n===Fn.LinkBasicSecondary)&&"font-weight: 400",VM,qS[i],a===Bu.Sidebar&&X(["background-color:",";color:",";border:1px solid ",";"," "," &:disabled{color:",";background:",";border:none;cursor:default;}"],s.palette[L.ButtonPrimaryText],s.palette[L.LinkStateless],s.palette[L.BordersButton],!o&&X(["&:hover{color:",";background-color:",";border:none;}&:active{color:",";background-color:",";border:none;}"],s.palette[L.ButtonPrimaryText],s.palette[L.AccentPrimaryHover],s.palette[L.ButtonPrimaryText],s.palette[L.AccentPrimaryActive]),o&&X(["background-color:",";color:",";border:1px solid ",";"],s.palette[L.Accent_1_2_Opacity],s.palette[L.AccentPrimaryActive],s.palette[L.AccentPrimaryActive]),s.palette[L.BordersDisabled],s.palette[L.AccentPrimaryDisabled]))}),z$=Z.span.attrs({className:xe(qs,"StartIcon")}).withConfig({componentId:"sc-lxwit0-4"})(function(e){var t=e.$loading,n=e.size,r=n===void 0?it.Md:n;return X(["display:flex;svg{animation:",";}",""],t?"spinner 1.2s linear infinite":"1.2s",D$[r])}),B$=Z.span.attrs({className:xe(qs,"SideBar")}).withConfig({componentId:"sc-lxwit0-5"})(function(e){var t=e.sideBarType;return X(["display:flex;",":12px;"],"margin-".concat(t===yo.Left?"right":"left"))}),H$=Z.span.attrs({className:xe(qs,"Divider")}).withConfig({componentId:"sc-lxwit0-6"})(function(e){var t=e.sideBarType,n=e.size,r=n===void 0?it.Md:n;return X(["border-left-style:solid;border-width:1px;"," ",":12px;"],N$[r],"margin-".concat(t===yo.Left?"right":"left"))}),G$=Z.span.attrs({className:xe(qs,"EndIcon")}).withConfig({componentId:"sc-lxwit0-7"})(["display:flex;margin-left:6px;"]),Fa=Dt({Button:F$,Wrapper:R$,Label:GM,SideArrows:B$,Divider:H$,StartIcon:z$,EndIcon:G$,Badge:VM}),V$=["children","startIcon","endIcon","badge","color","active","buttonType","sideBarType","size","loading","disabled"],Ci=ut(function(e,t){var n=e.children,r=e.startIcon,i=e.endIcon,a=e.badge,o=e.color,s=e.active,c=e.buttonType,d=e.sideBarType,h=d===void 0?yo.Left:d,b=e.size,m=e.loading,g=e.disabled,v=me(e,V$),w=function(C){switch(h){case yo.Right:return s?y.createElement(ZS,C):y.createElement(KS,C);case yo.Left:return s?y.createElement(KS,C):y.createElement(ZS,C)}},k=function(){var C=[y.createElement(Fa.SideArrows,{key:"arrows",sideBarType:h},w({size:M$(b)}))],_=y.createElement(Fa.Divider,{key:"divider",size:b,sideBarType:h});return h===yo.Right?C.unshift(_):C.push(_),c===Bu.Sidebar&&C};return y.createElement(Fa.Button,he({type:"button",buttonType:c},v,{disabled:m||g,sideBarType:h,color:o,active:s,size:b,ref:t}),h===yo.Left&&k(),y.createElement(Fa.Wrapper,null,r&&y.createElement(Fa.StartIcon,{$loading:m,size:b},typeof r=="function"?m?y.createElement(H4,{size:Bl(b)}):r({size:Bl(b)}):m?y.createElement(H4,{size:Bl(b)}):r),m&&!r&&y.createElement(Fa.StartIcon,{$loading:m},y.createElement(H4,{size:Bl(b)})),y.createElement(Fa.Label,null,n),i&&y.createElement(Fa.EndIcon,null,typeof i=="function"?i({size:Bl(b)}):i)),h===yo.Right&&k(),a&&y.createElement(Fa.Badge,null,y.createElement(Yy,{inline:!0,size:14,padding:"0 1px",badgeContent:a,color:o===Fn.Primary?"white":"secondary"})))});Ci.defaultProps={size:it.Md,color:Fn.Secondary,buttonType:Bu.Default,active:!1},Ci.propTypes={size:F.oneOf(lt(it)),color:F.oneOf(lt(Fn)),buttonType:F.oneOf(lt(Bu)),sideBarType:F.oneOf(lt(yo)),startIcon:F.oneOfType([F.node,F.func]),endIcon:F.oneOfType([F.node,F.func]),badge:F.node,active:F.bool,loading:F.bool,disabled:F.bool};var U$=["color","size"],W$=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,U$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M0.483002 4.49014V37.5097C0.483002 38.5725 0.90519 39.5917 1.65669 40.3432C2.40819 41.0947 3.42745 41.5169 4.49023 41.5169H37.5098C38.5726 41.5169 39.5918 41.0947 40.3433 40.3432C41.0948 39.5917 41.517 38.5725 41.517 37.5097V4.49014C41.517 3.42735 41.0948 2.4081 40.3433 1.6566C39.5918 0.905099 38.5726 0.48291 37.5098 0.48291H4.49023C3.42745 0.48291 2.40819 0.905099 1.65669 1.6566C0.90519 2.4081 0.483002 3.42735 0.483002 4.49014ZM38.9272 5.87776V31.3044L26.3817 19.5446L21.8068 22.3356L14.8048 15.3337L3.07279 23.0543V6.06233C3.07279 5.2695 3.38775 4.50913 3.94836 3.94851C4.50898 3.38789 5.26935 3.07294 6.06218 3.07294H36.1222C36.8661 3.07294 37.5795 3.36844 38.1055 3.89444C38.6316 4.42044 38.9272 5.13385 38.9272 5.87776Z",fill:r}),y.createElement("path",{d:"M30.4602 15.6943C33.066 15.6943 35.1784 13.5819 35.1784 10.976C35.1784 8.37021 33.066 6.25777 30.4602 6.25777C27.8543 6.25777 25.7419 8.37021 25.7419 10.976C25.7419 13.5819 27.8543 15.6943 30.4602 15.6943Z",fill:r}))}),X$=["color","size"],Y$=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,X$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 40 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M39.5112 31.2036C39.5112 41.568 31.0785 50 20.7148 50H14.0613C12.9587 50 12.0652 49.1066 12.0652 48.004V47.3386C12.0652 46.2359 12.9586 45.3425 14.0613 45.3425H20.7148C28.5107 45.3425 34.8537 38.9995 34.8537 31.2036C34.8537 23.4078 28.5107 17.0648 20.7148 17.0648H8.4394L16.8935 25.5189C17.8015 26.4266 17.8015 27.9042 16.8935 28.8119C16.0124 29.6923 14.479 29.691 13.5999 28.8119L1.17111 16.3828C0.731285 15.943 0.488892 15.3581 0.488892 14.7359C0.488892 14.1142 0.731285 13.529 1.17111 13.0894L13.6006 0.65976C14.4797 -0.220001 16.0144 -0.220001 16.8936 0.65976C17.8016 1.56722 17.8016 3.04511 16.8936 3.95246L8.43951 12.4072H20.7148C31.0785 12.4072 39.5112 20.8395 39.5112 31.2036Z",fill:r}))}),K$=["color","size"],Z$=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,K$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 40 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M0.98 31.2037C0.98 41.568 9.41216 50 19.7752 50H26.4284C27.5309 50 28.4244 49.1066 28.4244 48.004V47.3386C28.4244 46.2359 27.531 45.3425 26.4284 45.3425H19.7752C11.9798 45.3425 5.6372 38.9995 5.6372 31.2037C5.6372 23.4079 11.9798 17.0648 19.7752 17.0648H32.05L23.5964 25.5189C22.6884 26.4266 22.6884 27.9043 23.5964 28.812C24.4774 29.6924 26.0107 29.6911 26.8897 28.812L39.3178 16.3828C39.7576 15.943 40 15.3582 40 14.736C40 14.1142 39.7576 13.5291 39.3178 13.0895L26.8891 0.659821C26.01 -0.21994 24.4754 -0.21994 23.5962 0.659821C22.6883 1.56728 22.6883 3.04517 23.5962 3.95252L32.0498 12.4073H19.7752C9.41216 12.4073 0.98 20.8396 0.98 31.2037Z",fill:r}))}),q$=["color","size"],$$=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,q$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M40.1901 7.27549L7.59689 39.8687C6.83412 40.6315 6.83412 41.8681 7.59689 42.6308C8.35965 43.3936 9.59626 43.3936 10.359 42.6308L42.9522 10.0376C43.715 9.27486 43.715 8.03825 42.9522 7.27549C42.1895 6.51272 40.9529 6.51272 40.1901 7.27549Z",fill:r}))}),Q$=["color","size"],J$=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,Q$);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M41.2229 16.7653C41.3215 12.426 39.7436 8.284 36.6864 5.02956C33.6292 1.77513 29.4872 -2.09808e-05 25.0493 -2.09808e-05C20.6114 -2.09808e-05 16.3708 1.77513 13.3136 5.02956C10.2564 8.18538 8.6785 12.3274 8.77712 16.7653C3.45168 19.5266 0 25.1479 0 31.1637C0 37.2781 3.25444 42.6035 8.57988 45.4635C11.0454 46.7455 13.7081 47.4359 16.2722 47.4359C19.3294 47.4359 22.288 46.5483 24.9507 44.8718C29.9803 48.1262 36.0947 48.3234 41.4201 45.4635C46.7456 42.6035 50 37.2781 50 31.1637C50 25.0493 46.6469 19.5266 41.2229 16.7653ZM22.7811 43.0966C18.6391 45.3649 13.7081 45.3649 9.56607 42.998C5.22682 40.5325 2.66272 36.1933 2.66272 31.1637C2.66272 26.43 5.12821 22.0907 9.1716 19.6252C10.1578 24.359 13.3136 28.501 17.6529 30.6706C17.4556 35.4043 19.3294 39.8422 22.7811 43.0966ZM32.1499 27.8106C31.4596 24.5562 29.783 21.499 27.3176 19.2307C30.6706 17.357 34.8126 17.0611 38.4615 18.3432C37.7712 22.2879 35.503 25.7396 32.1499 27.8106ZM20.6114 28.1065C21.3018 25.2465 22.8797 22.6824 25.0493 20.8087C27.5148 22.8797 29.1913 25.8382 29.6844 28.9941C26.7258 30.0789 23.4714 30.0789 20.4142 28.9941C20.4142 28.6982 20.5128 28.4023 20.6114 28.1065ZM25.0493 17.4556C23.57 16.4694 21.8935 15.7791 20.1183 15.3846C19.428 15.1874 18.6391 15.6805 18.5404 16.3708C18.4418 16.7653 18.5404 17.0611 18.7377 17.357C18.9349 17.6528 19.2308 17.8501 19.5266 17.9487C20.7101 18.2446 21.7949 18.639 22.7811 19.2307C20.3156 21.499 18.6391 24.4576 17.9487 27.8106C14.5957 25.7396 12.2288 22.2879 11.6371 18.3432C11.9329 18.2446 12.1302 18.1459 12.426 18.0473C12.7219 17.9487 13.0178 17.7515 13.215 17.357C13.4122 17.0611 13.4122 16.6666 13.3136 16.3708C13.1164 15.6805 12.3274 15.286 11.6371 15.4832C11.5385 15.4832 11.5385 15.4832 11.4398 15.5818C11.8343 8.48124 17.7515 2.6627 25.0493 2.6627C32.3471 2.6627 38.2643 8.38262 38.6588 15.5818C34.0237 14.2012 28.9941 14.8915 25.0493 17.4556ZM29.783 31.7554C29.5858 35.5029 27.9093 39.0532 25.0493 41.5187C22.1893 39.0532 20.4142 35.6016 20.3156 31.7554C23.3728 32.7416 26.7258 32.7416 29.783 31.7554ZM32.4458 30.6706C36.785 28.4023 39.8422 24.359 40.927 19.6252C44.9704 22.0907 47.4359 26.43 47.4359 31.1637C47.4359 36.0947 44.8718 40.5325 40.5325 42.998C36.3905 45.3649 31.4596 45.3649 27.3176 43.0966C30.7692 39.8422 32.643 35.4043 32.4458 30.6706Z",fill:r}),y.createElement("path",{d:"M15.5819 14.8915C14.9901 14.9901 14.497 15.5818 14.497 16.1735C14.497 16.8639 15.0888 17.5542 15.8777 17.5542C16.6667 17.5542 17.2584 16.9625 17.2584 16.1735C17.2584 15.7791 17.0611 15.3846 16.7653 15.1874C16.3708 14.9901 15.9763 14.8915 15.5819 14.8915Z",fill:r}))}),eQ=["color","size"],tQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,eQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 2.00049C3.34315 2.00049 2 3.34364 2 5.00049V16.7505H5.5V5.50049H16.75V2.00049H5ZM45 2.00049H33.25V5.50049H44.5V16.7505H48V5.00049C48 3.34363 46.6569 2.00049 45 2.00049ZM5.5 33.2505H2V45.0005C2 46.6573 3.34315 48.0005 5 48.0005H16.75V44.5005H5.5V33.2505ZM48 33.2505H44.5V44.5005H33.25V48.0005H45C46.6569 48.0005 48 46.6573 48 45.0005V33.2505Z",fill:r}))}),nQ=["color","size"],rQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,nQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 53 37",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11841 3.93799V32.063H47.8684V3.93799H4.11841ZM3.49341 0.812988C2.1127 0.812988 0.993408 1.91229 0.993408 3.26835V32.7326C0.993408 34.0887 2.1127 35.188 3.49341 35.188H48.4934C49.8741 35.188 50.9934 34.0887 50.9934 32.7326V3.26835C50.9934 1.91229 49.8741 0.812988 48.4934 0.812988H3.49341Z",fill:r}))}),iQ=["color","size"],aQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,iQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M0.5 0.5H3V2.375H2.375V3H0.5V0.5Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 21.125H3V21.2693H24.7308V43H24.875V45.5L0.5 45.5001V21.125ZM22.2308 43L3 43.0001V23.7693H22.2308V43Z",fill:r}),y.createElement("path",{d:"M43 45.5H45.5V43H43.625V43.625H43V45.5Z",fill:r}),y.createElement("path",{d:"M45.5 3V0.5H43V2.375H43.625V3H45.5Z",fill:r}),y.createElement("path",{d:"M6.125 0.5V3H9.875V0.5H6.125Z",fill:r}),y.createElement("path",{d:"M13.625 0.5V3H17.375V0.5H13.625Z",fill:r}),y.createElement("path",{d:"M21.125 0.5V3H24.875V0.5H21.125Z",fill:r}),y.createElement("path",{d:"M28.625 0.5V3H32.375V0.5H28.625Z",fill:r}),y.createElement("path",{d:"M36.125 0.5V3H39.875V0.5H36.125Z",fill:r}),y.createElement("path",{d:"M45.5 6.125H43V9.875H45.5V6.125Z",fill:r}),y.createElement("path",{d:"M45.5 13.625H43V17.375H45.5V13.625Z",fill:r}),y.createElement("path",{d:"M45.5 21.125H43V24.875H45.5V21.125Z",fill:r}),y.createElement("path",{d:"M45.5 28.625H43V32.375H45.5V28.625Z",fill:r}),y.createElement("path",{d:"M45.5 36.125H43V39.875H45.5V36.125Z",fill:r}),y.createElement("path",{d:"M39.875 45.5V43H36.125V45.5H39.875Z",fill:r}),y.createElement("path",{d:"M32.375 45.5V43H28.625V45.5H32.375Z",fill:r}),y.createElement("path",{d:"M0.5 17.375H3V13.625H0.5V17.375Z",fill:r}),y.createElement("path",{d:"M0.5 9.875H3V6.125H0.5V9.875Z",fill:r}),y.createElement("path",{d:"M35.1391 9.23718L26.3209 17.8619C25.8274 18.3446 25.8186 19.136 26.3013 19.6295C26.784 20.1231 27.5754 20.1319 28.069 19.6492L37.1012 10.815V16.9907C37.1012 17.681 37.6609 18.2407 38.3512 18.2407C39.0416 18.2407 39.6012 17.681 39.6012 16.9907V7.98718C39.6012 7.29683 39.0416 6.73718 38.3512 6.73718L29.3477 6.73718C28.6574 6.73718 28.0977 7.29683 28.0977 7.98718C28.0977 8.67754 28.6574 9.23718 29.3477 9.23718L35.1391 9.23718Z",fill:r}))}),oQ=["color","size"],sQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,oQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M42.1323 0.500031H2.73399C1.42693 0.500031 0.399963 1.527 0.399963 2.83406V43.166C0.399963 44.4731 1.42693 45.5 2.73399 45.5H42.1323C43.4394 45.5 44.4664 44.4731 44.4664 43.166V2.83406C44.4664 1.527 43.4394 0.500031 42.1323 0.500031ZM41.6655 3.30086V25.8942L36.624 21.693C36.1572 21.2262 35.4103 21.2262 34.8502 21.5996L28.595 26.2677L15.5244 11.2365C15.3377 10.9565 14.9643 10.7697 14.5908 10.7697C14.2174 10.7697 13.8439 10.9565 13.5639 11.1432L3.20079 21.693V3.30086H41.6655ZM3.20079 42.6992V39.8984C4.22776 40.3652 5.72154 40.832 7.58876 40.832C9.36262 40.832 10.483 40.2718 11.3232 39.805C12.0701 39.4316 12.5369 39.1515 13.3771 39.2448C14.3108 39.3382 14.8709 39.5249 15.4311 39.805C16.2713 40.0851 17.2049 40.4585 18.9788 40.4585V38.3112C17.6717 38.3112 17.0182 38.0312 16.178 37.7511C15.5244 37.471 14.6842 37.1909 13.5639 37.0975C12.0701 36.9108 11.1365 37.471 10.2962 37.8444C9.54934 38.2179 8.80245 38.5913 7.4954 38.5913C5.06801 38.5913 3.6676 37.7511 3.10743 37.2843V35.0436C4.1344 35.5104 5.62818 35.9772 7.4954 35.9772C9.26926 35.9772 10.3896 35.417 11.2298 34.9502C11.9767 34.5768 12.4435 34.2967 13.2838 34.3901C14.2174 34.4834 14.7776 34.6702 15.3377 34.9502C16.178 35.2303 17.1116 35.6038 18.8854 35.6038V33.4565C17.5784 33.4565 16.9249 33.1764 16.0846 32.8963C15.4311 32.6162 14.5908 32.3361 13.4705 32.2428C11.9767 32.056 11.0431 32.6162 10.2029 32.9897C9.45598 33.3631 8.70909 33.7365 7.40204 33.7365C4.97465 33.7365 3.57424 32.8963 3.01407 32.4295V30.1888C4.04104 30.6556 5.53482 31.1224 7.40204 31.1224C9.1759 31.1224 10.2962 30.5623 11.1365 30.0955C11.8834 29.722 12.3502 29.4419 13.1904 29.5353C14.124 29.6287 14.6842 29.8154 15.2444 30.0955C16.0846 30.3755 17.0182 30.749 18.7921 30.749V28.6017C17.485 28.6017 16.8315 28.3216 15.9912 28.0415C15.3377 27.7614 14.4975 27.4814 13.3771 27.388C11.8834 27.2013 10.9498 27.7614 10.1095 28.1349C9.36262 28.5083 8.61573 28.8818 7.30868 28.8818C4.88129 28.8818 3.48088 28.0415 2.92071 27.5747V25.7075L14.124 14.2241L27.1012 29.0685C27.568 29.6287 28.4083 29.722 28.9684 29.2552L35.4103 24.4004L41.3854 29.4419V42.6058H3.20079V42.6992Z",fill:r}),y.createElement("path",{d:"M32.7029 15.7179C35.4103 15.7179 37.651 13.4772 37.651 10.7697C37.651 8.06227 35.4103 5.82161 32.7029 5.82161C29.9954 5.82161 27.7547 8.06227 27.7547 10.7697C27.7547 13.4772 29.9954 15.7179 32.7029 15.7179ZM32.7029 8.15563C34.1966 8.15563 35.317 9.36933 35.317 10.7697C35.317 12.1702 34.1033 13.3838 32.7029 13.3838C31.3025 13.3838 30.0888 12.1702 30.0888 10.7697C30.0888 9.36933 31.2091 8.15563 32.7029 8.15563Z",fill:r}))}),lQ=["color","size"],cQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,lQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M43.4164 5.98527H1.06762C0.533808 5.98527 0 6.53674 0 7.08821V49C0 49.7353 0.533808 50.1029 1.06762 50.1029H43.4164C44.1281 50.1029 44.484 49.7353 44.484 49V7.08821C44.484 6.53674 44.1281 5.98527 43.4164 5.98527ZM35.7651 13.1544C37.9004 13.1544 39.5 15.0809 39.5 17.1029C39.5 19.3088 37.7224 20.6029 35.7651 20.6029C33.8078 20.6029 32 19.125 32 17.1029C31.8221 14.897 33.6299 13.1544 35.7651 13.1544ZM1.9573 45.875C2.13523 45.6912 14.2349 30.9853 16.548 27.8603C16.726 27.4926 17.2598 27.4926 17.4377 27.8603L29.7153 43.4853L35.0534 37.4191C35.4093 37.0514 35.7651 37.2353 35.9431 37.4191L42.5267 45.875H1.9573Z",fill:r}),y.createElement("path",{d:"M48.9164 -3.8147e-06H6.74555C6.03381 -3.8147e-06 5.5 0.367643 5.5 1.10294V4.29294H7.5V2.20588H47.6892V39H46.2473V44.1176H48.9164C49.6281 44.1176 49.984 43.75 49.984 43.0147V1.10294C49.984 0.367643 49.6281 -3.8147e-06 48.9164 -3.8147e-06Z",fill:r}))}),uQ=["color","size"],UM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,uQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M25 0C38.8071 0 50 11.1929 50 25C50 38.807 38.8071 50 25 50C14.111 50 4.854 43.0397 1.42326 33.333C0.963005 32.0312 1.6455 30.603 2.94725 30.143C4.249 29.6828 5.67725 30.365 6.1375 31.667C8.88425 39.4382 16.2957 45 25 45C36.0457 45 45 36.0457 45 25C45 13.9543 36.0457 5 25 5C21.121 5 17.8345 6.40292 14.7095 8.6015C12.6078 10.0803 10.663 11.8526 8.6895 13.75H16.25C17.6308 13.75 18.75 14.8693 18.75 16.25C18.75 17.6307 17.6308 18.75 16.25 18.75H2.5C1.11926 18.75 0 17.6307 0 16.25V2.5C0 1.1193 1.11926 0 2.5 0C3.88075 0 5 1.1193 5 2.5V10.3593C7.12075 8.31457 9.38601 6.23342 11.8325 4.51222C15.5128 1.9229 19.7882 0 25 0Z",fill:r}))}),dQ=["color","size"],WM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,dQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M39.4229 8.89453L39.7891 16.6582H38.8613C38.6823 15.291 38.4382 14.3145 38.1289 13.7285C37.6243 12.7845 36.9489 12.0928 36.1025 11.6533C35.2725 11.1976 34.1738 10.9697 32.8066 10.9697H28.1436V36.2627C28.1436 38.2972 28.3633 39.5667 28.8027 40.0713C29.4212 40.7549 30.3734 41.0967 31.6592 41.0967H32.8066V42H18.7686V41.0967H19.9404C21.3402 41.0967 22.333 40.6735 22.9189 39.8271C23.277 39.3063 23.4561 38.1182 23.4561 36.2627V10.9697H19.4766C17.9303 10.9697 16.8317 11.0837 16.1807 11.3115C15.3343 11.6208 14.61 12.2148 14.0078 13.0938C13.4056 13.9727 13.0475 15.1608 12.9336 16.6582H12.0059L12.3965 8.89453H39.4229Z",fill:r}))}),hQ=["color","size"],$S=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,hQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 45 29",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M0 1.89502C0 1.20466 0.559644 0.64502 1.25 0.64502H28.75C29.4404 0.64502 30 1.20466 30 1.89502C30 2.58538 29.4404 3.14502 28.75 3.14502H1.25C0.559645 3.14502 0 2.58538 0 1.89502Z",fill:r}),y.createElement("path",{d:"M0 14.395C0 13.7047 0.559644 13.145 1.25 13.145H43.75C44.4404 13.145 45 13.7047 45 14.395C45 15.0854 44.4404 15.645 43.75 15.645H1.25C0.559645 15.645 0 15.0854 0 14.395Z",fill:r}),y.createElement("path",{d:"M1.25 25.645C0.559644 25.645 0 26.2047 0 26.895C0 27.5854 0.559645 28.145 1.25 28.145H28.75C29.4404 28.145 30 27.5854 30 26.895C30 26.2047 29.4404 25.645 28.75 25.645H1.25Z",fill:r}))}),fQ=["color","size"],XM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,fQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 46 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M38 1.50049C38 0.810132 37.4404 0.250488 36.75 0.250488H9.25C8.55964 0.250488 8 0.810132 8 1.50049C8 2.19084 8.55964 2.75049 9.25 2.75049H36.75C37.4404 2.75049 38 2.19084 38 1.50049Z",fill:r}),y.createElement("path",{d:"M45.5 14.0005C45.5 13.3101 44.9404 12.7505 44.25 12.7505H1.75C1.05964 12.7505 0.5 13.3101 0.5 14.0005C0.5 14.6908 1.05964 15.2505 1.75 15.2505H44.25C44.9404 15.2505 45.5 14.6908 45.5 14.0005Z",fill:r}),y.createElement("path",{d:"M36.75 25.2505C37.4404 25.2505 38 25.8101 38 26.5005C38 27.1908 37.4404 27.7505 36.75 27.7505H9.25C8.55964 27.7505 8 27.1908 8 26.5005C8 25.8101 8.55964 25.2505 9.25 25.2505H36.75Z",fill:r}))}),pQ=["color","size"],YM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,pQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 45 43",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M2.66027 14.6997L3.59752 14.4437L3.09232 3.93218C3.05918 3.24262 2.47331 2.71049 1.78375 2.74363C1.09419 2.77677 0.562061 3.36263 0.595202 4.05219L1.16041 15.8123C1.19355 16.5018 1.77942 17.034 2.46898 17.0008L14.2291 16.4356C14.9186 16.4025 15.4508 15.8166 15.4176 15.1271C15.3845 14.4375 14.7986 13.9054 14.1091 13.9385L5.48447 14.353C8.23224 7.41077 15.0052 2.50049 22.925 2.50049C33.2802 2.50049 41.6748 10.8951 41.6748 21.2503C41.6748 22.4035 41.5706 23.5324 41.3713 24.6281L43.7968 25.261C44.0449 23.9622 44.1748 22.6214 44.1748 21.2503C44.1748 9.51435 34.6609 0.000488281 22.925 0.000488281C15.0467 0.000488281 8.16974 4.28779 4.50001 10.6566L2.66027 14.6997Z",fill:r}),y.createElement("path",{d:"M9.88491 34.708L8.27773 36.6309C8.82614 37.1539 9.40248 37.6479 10.0043 38.1103L11.5276 36.128C10.9528 35.6863 10.4043 35.2121 9.88491 34.708Z",fill:r}),y.createElement("path",{d:"M12.3142 39.6567C13.9038 40.5764 15.6235 41.2961 17.439 41.7814L18.0846 39.3662C16.4846 38.9385 14.9685 38.3041 13.5662 37.4928L12.3142 39.6567Z",fill:r}),y.createElement("path",{d:"M20.1654 42.3209C21.0738 42.4394 22.0002 42.5005 22.9408 42.5005C23.8815 42.5005 24.8079 42.4394 25.7162 42.3209L25.3929 39.8419C24.5915 39.9465 23.7731 40.0005 22.9408 40.0005C22.1086 40.0005 21.2902 39.9465 20.4888 39.8419L20.1654 42.3209Z",fill:r}),y.createElement("path",{d:"M28.4427 41.7814C30.2582 41.2961 31.9779 40.5764 33.5674 39.6567L32.3154 37.4928C30.9132 38.3041 29.397 38.9385 27.7971 39.3662L28.4427 41.7814Z",fill:r}),y.createElement("path",{d:"M35.8774 38.1103C37.3494 36.9791 38.6692 35.6594 39.8004 34.1873L37.8181 32.664C36.8193 33.9638 35.6538 35.1292 34.354 36.128L35.8774 38.1103Z",fill:r}),y.createElement("path",{d:"M41.3468 31.8773C42.2665 30.2878 42.9862 28.5681 43.4715 26.7526L41.0563 26.107C40.6286 27.707 39.9942 29.2231 39.1829 30.6253L41.3468 31.8773Z",fill:r}))}),gQ=["color","size"],mQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,gQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("g",{clipPath:"url(#clip0)"},y.createElement("path",{d:"M50.2753 26.8064H24.4689L36.5656 14.7096C32.735 11.0806 28.7027 9.66933 23.6624 9.66933C13.3802 9.66933 6.32372 15.3145 3.50118 25.5967L0.275391 24.7903C3.50118 13.0968 11.9689 6.44355 23.6625 6.44355C29.7109 6.44355 34.348 8.25806 38.9851 12.2903L50.2754 1L50.2753 26.8064Z",fill:r}),y.createElement("path",{d:"M34.5495 46.3628L33.1382 44.3467C33.743 43.9435 34.3479 43.3386 34.9527 42.9355L36.5656 44.75C35.9608 45.1532 35.3559 45.758 34.5495 46.3628Z",fill:r}),y.createElement("path",{d:"M27.2913 49.387C26.6865 49.5886 26.0817 49.5886 25.4768 49.7903L25.0736 47.3709C26.4848 47.1693 27.8962 46.7661 29.3074 46.3628L30.1139 48.5806C29.1058 48.9838 28.2994 49.1854 27.2913 49.387ZM20.4365 49.9919C18.8235 49.7903 17.2107 49.5886 15.5978 48.9838L16.4042 46.766C17.8155 47.1693 19.2268 47.5724 20.6381 47.5724L20.4365 49.9919ZM11.1623 46.9677C9.75104 46.1612 8.33971 45.1532 7.13003 43.9435L8.74296 42.129C9.75104 43.137 10.9607 43.9435 12.372 44.7499L11.1623 46.9677ZM3.90425 40.3144C2.89617 38.9032 2.08974 37.2903 1.6865 35.879L3.90425 35.0726C4.50909 36.4838 5.11393 37.6935 5.92036 38.9032L3.90425 40.3144Z",fill:r}),y.createElement("path",{d:"M3.2996 30.0322L0.880241 30.2338C0.678647 29.2257 0.678647 28.4193 0.678647 27.4112H3.09801C3.09801 28.4193 3.2996 29.2258 3.2996 30.0322Z",fill:r})),y.createElement("defs",null,y.createElement("rect",{width:"50",height:"50",fill:"white",transform:"translate(0.275391)"})))}),vQ=["color","size"],yQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,vQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 51 51",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M40.5 20H38V12.5C38 5.6 32.4 0 25.5 0C18.6 0 13 5.6 13 12.5V20H10.5C9.1 20 8 21.1 8 22.5V47.5C8 48.9 9.1 50 10.5 50H40.5C41.9 50 43 48.9 43 47.5V22.5C43 21.1 41.9 20 40.5 20ZM15.5 12.5C15.5 7 20 2.5 25.5 2.5C31 2.5 35.5 7 35.5 12.5V20H15.5V12.5ZM40.5 47.5H10.5V22.5H40.5V47.5Z",fill:r}),y.createElement("path",{d:"M24.3 37.3V41.3H26.8V37.3C28.3 36.8 29.3 35.4 29.3 33.8C29.3 31.7 27.6 30 25.5 30C23.4 30 21.7 31.7 21.7 33.8C21.8 35.4 22.8 36.8 24.3 37.3ZM25.5 32.5C26.2 32.5 26.8 33.1 26.8 33.8C26.8 34.5 26.2 35.1 25.5 35.1C24.8 35.1 24.2 34.5 24.2 33.8C24.3 33.1 24.8 32.5 25.5 32.5Z",fill:r}))}),bQ=["color","size"],wQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,bQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M36.2754 7.5C34.2754 3.1 29.8754 0 24.7754 0C17.8754 0 12.2754 5.6 12.2754 12.5V20H9.77539C8.37539 20 7.27539 21.1 7.27539 22.5V47.5C7.27539 48.9 8.37539 50 9.77539 50H39.7754C41.1754 50 42.2754 48.9 42.2754 47.5V22.5C42.2754 21.1 41.1754 20 39.7754 20H14.7754V12.5C14.7754 7 19.2754 2.5 24.7754 2.5C28.4754 2.5 31.7754 4.5 33.4754 7.6L36.2754 7.5ZM39.7754 47.5H9.77539V22.5H39.7754V47.5Z",fill:r}),y.createElement("path",{d:"M24.7754 30C22.6754 30 20.9754 31.7 20.9754 33.7C20.9754 35.3 21.9754 36.7 23.4754 37.2V41.2H25.9754V37.2C27.4754 36.7 28.4754 35.3 28.4754 33.7C28.5754 31.7 26.8754 30 24.7754 30ZM24.7754 35C24.0754 35 23.4754 34.4 23.4754 33.7C23.4754 33 24.0754 32.4 24.7754 32.4C25.4754 32.4 25.9754 33 25.9754 33.7C25.9754 34.4 25.4754 35 24.7754 35Z",fill:r}))}),xQ=["color","size"],CQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,xQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("circle",{cx:"25",cy:"25",r:"8.33333",fill:r}))}),SQ=["color","size"],EQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,SQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M42.6793 7.32203C32.916 -2.44013 17.0863 -2.44122 7.32197 7.32203C-2.44128 17.0853 -2.4402 32.915 7.32197 42.6793C17.0852 52.4404 32.9149 52.4415 42.6793 42.6793C52.4414 32.915 52.4403 17.0864 42.6793 7.32203ZM28.2605 35.8705C28.2605 37.6716 26.8007 39.1314 24.9995 39.1314C23.1984 39.1314 21.7386 37.6716 21.7386 35.8705V22.8267C21.7386 21.0256 23.1984 19.5658 24.9995 19.5658C26.8007 19.5658 28.2605 21.0256 28.2605 22.8267V35.8705ZM24.9419 17.2527C23.0636 17.2527 21.8114 15.9222 21.8506 14.2798C21.8114 12.558 23.0636 11.2678 24.98 11.2678C26.8974 11.2678 28.1105 12.5591 28.1507 14.2798C28.1496 15.9222 26.8985 17.2527 24.9419 17.2527Z",fill:r}))}),_Q=["color","size"],KM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,_Q);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M48.9856 38.314L31.3034 3.80423C29.9688 1.42247 27.6118 0 24.9985 0C22.3852 0 20.0282 1.42247 18.6936 3.80423C18.6836 3.82245 18.6751 3.84067 18.665 3.8589L1.04158 38.2594C-0.321602 40.6914 -0.347383 43.612 0.971367 46.0713C2.29314 48.5321 4.67439 50 7.345 50H42.5544C45.225 50 47.7041 48.5321 49.0258 46.0713C50.3445 43.6121 50.3188 40.6913 48.9856 38.314ZM22.0659 15.8013C22.0659 14.0842 23.3789 12.6924 24.9985 12.6924C26.6182 12.6924 27.9311 14.0843 27.9311 15.8013V28.2372C27.9311 29.9541 26.6181 31.3462 24.9985 31.3462C23.3789 31.3462 22.0659 29.954 22.0659 28.2372V15.8013ZM24.9985 43.7821C22.5728 43.7821 20.5995 41.6902 20.5995 39.1186C20.5995 36.5471 22.5727 34.4552 24.9985 34.4552C27.4242 34.4552 29.3974 36.5471 29.3974 39.1186C29.3975 41.6901 27.4243 43.7821 24.9985 43.7821Z",fill:r}))}),kQ=["color","size"],OQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,kQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M25 50C11.2033 50 0 38.7967 0 25C0 11.2033 11.2033 0 25 0C38.7967 0 50 11.2033 50 25C50 38.7967 38.6929 50 25 50ZM25 3.52697C13.1743 3.52697 3.63071 13.1743 3.63071 24.8963C3.63071 36.6183 13.278 46.2656 25 46.2656C36.8257 46.2656 46.3693 36.6183 46.3693 24.8963C46.3693 13.1743 36.8257 3.52697 25 3.52697Z",fill:r}),y.createElement("path",{d:"M28.3755 13.125C28.3755 11.3992 26.9765 10 25.2505 10C23.5245 10 22.1255 11.3992 22.1255 13.125C22.1255 14.8516 23.5245 16.25 25.2505 16.25C26.9765 16.25 28.3755 14.8516 28.3755 13.125Z",fill:r}),y.createElement("path",{d:"M20.563 38.5H29.938C30.8009 38.5 31.5005 37.8012 31.5005 36.9375C31.5005 36.0746 30.8009 35.375 29.938 35.375H28.3755V20.9375C28.3755 20.0746 27.6759 19.375 26.813 19.375H20.563C19.7001 19.375 19.0005 20.0746 19.0005 20.9375C19.0005 21.8012 19.7001 22.5 20.563 22.5H22.1255V35.375H20.563C19.7001 35.375 19.0005 36.0746 19.0005 36.9375C19.0005 37.8012 19.7001 38.5 20.563 38.5Z",fill:r}))}),PQ=["color","size"],ZM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,PQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31.3032 17.8662C34.0646 17.8662 36.3032 15.6276 36.3032 12.8662C36.3032 10.1048 34.0646 7.86618 31.3032 7.86618C28.5418 7.86618 26.3032 10.1048 26.3032 12.8662C26.3032 15.6276 28.5418 17.8662 31.3032 17.8662ZM31.3032 15.3662C32.6839 15.3662 33.8032 14.2469 33.8032 12.8662C33.8032 11.4855 32.6839 10.3662 31.3032 10.3662C29.9225 10.3662 28.8032 11.4855 28.8032 12.8662C28.8032 14.2469 29.9225 15.3662 31.3032 15.3662Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.9372 15.1063C16.3967 15.0794 16.8338 15.3071 17.075 15.6991L25.0831 28.7141L29.8357 24.4289C30.0935 24.1966 30.4362 24.0818 30.7819 24.1121C31.1276 24.1424 31.4452 24.3151 31.6586 24.5887L40.2822 35.6497C40.5759 36.0264 40.6292 36.5376 40.4196 36.9668C40.21 37.396 39.7741 37.6683 39.2964 37.6683H6.70331C6.2766 37.6683 5.87937 37.4506 5.64974 37.091C5.42011 36.7313 5.38981 36.2794 5.56937 35.8923L14.8765 15.8282C15.0702 15.4106 15.4777 15.1333 15.9372 15.1063ZM16.1652 18.991L8.66108 35.1683H36.7368L30.5126 27.1848L25.6422 31.5761C25.3666 31.8246 24.9947 31.9378 24.6274 31.885C24.26 31.8322 23.9351 31.6189 23.7406 31.3027L16.1652 18.991Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z",fill:r}))}),TQ=["color","size"],MQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,TQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.562515 0.562512H3.68752V2.90626H2.90627V3.68751H0.562515V0.562512ZM0.562515 44.3125V47.4375H3.68752V45.0938H2.90627V44.3125H0.562515ZM44.3125 47.4375H47.4375V44.3125H45.0938V45.0938H44.3125V47.4375ZM47.4375 3.68751V0.562512H44.3125V2.90626H45.0938V3.68751H47.4375ZM7.59376 0.562512V3.68751H12.2813V0.562512H7.59376ZM16.9688 0.562512V3.68751H21.6563V0.562512H16.9688ZM26.3438 0.562512V3.68751H31.0313V0.562512H26.3438ZM35.7188 0.562512V3.68751H40.4063V0.562512H35.7188ZM47.4375 7.59376H44.3125V12.2813H47.4375V7.59376ZM47.4375 16.9688H44.3125V21.6563H47.4375V16.9688ZM47.4375 26.3438H44.3125V31.0313H47.4375V26.3438ZM47.4375 35.7188H44.3125V40.4063H47.4375V35.7188ZM40.4063 47.4375V44.3125H35.7188V47.4375H40.4063ZM31.0313 47.4375V44.3125H26.3438V47.4375H31.0313ZM21.6563 47.4375V44.3125H16.9688V47.4375H21.6563ZM12.2813 47.4375V44.3125H7.59377V47.4375H12.2813ZM0.562515 40.4063H3.68752V35.7188H0.562515V40.4063ZM0.562515 31.0313H3.68752V26.3438H0.562515V31.0313ZM0.562515 21.6563H3.68752V16.9688H0.562515V21.6563ZM0.562515 12.2813H3.68752V7.59376H0.562515V12.2813Z",fill:r}))}),IQ=["color","size"],AQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,IQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.5001 24.0625C38.2086 24.0625 38.8284 23.5858 39.0102 22.901C39.1921 22.2162 38.8904 21.4948 38.2753 21.1433L3.27531 1.14333C2.79171 0.866989 2.19757 0.868973 1.71583 1.14854C1.23409 1.4281 0.937592 1.94298 0.937592 2.49996V22.5C0.937592 23.3629 1.63715 24.0625 2.50009 24.0625L37.5001 24.0625ZM4.06259 20.9375L4.06259 5.19243L31.6164 20.9375L4.06259 20.9375Z",fill:r}),y.createElement("path",{d:"M38.2753 28.8566C38.8904 28.5051 39.1921 27.7837 39.0102 27.0989C38.8284 26.4142 38.2086 25.9375 37.5001 25.9375H35.3126V26.9504L34.5374 27.3933L35.3126 28.75V29.0625H35.4912L36.0878 30.1066L38.2753 28.8566Z",fill:r}),y.createElement("path",{d:"M27.3378 35.1066L31.7128 32.6066L30.1624 29.8933L25.7874 32.3933L27.3378 35.1066Z",fill:r}),y.createElement("path",{d:"M30.9376 25.9375H26.5626L26.5626 29.0625H30.9376L30.9376 25.9375Z",fill:r}),y.createElement("path",{d:"M18.5878 40.1066L22.9628 37.6066L21.4124 34.8933L17.0374 37.3933L18.5878 40.1066Z",fill:r}),y.createElement("path",{d:"M22.1876 25.9375H17.8126V29.0625H22.1876V25.9375Z",fill:r}),y.createElement("path",{d:"M9.83781 45.1066L14.2128 42.6066L12.6624 39.8933L8.28738 42.3933L9.83781 45.1066Z",fill:r}),y.createElement("path",{d:"M13.4376 25.9375H9.0626V29.0625H13.4376V25.9375Z",fill:r}),y.createElement("path",{d:"M3.27531 48.8566L5.46281 47.6066L4.06259 45.1562V45H3.97331L3.91238 44.8933L3.72578 45H0.937592V47.5C0.937592 48.0569 1.23409 48.5718 1.71583 48.8514C2.19758 49.1309 2.79171 49.1329 3.27531 48.8566Z",fill:r}),y.createElement("path",{d:"M4.6876 25.9375L2.50009 25.9375C1.63715 25.9375 0.937592 26.637 0.937592 27.5V30H4.06259V29.0625H4.6876V25.9375Z",fill:r}),y.createElement("path",{d:"M0.937592 35V40L4.06259 40V35H0.937592Z",fill:r}))}),LQ=["color","size"],jQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,LQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.0625 1.93758C24.0625 1.22909 23.5858 0.609274 22.901 0.427427C22.2163 0.245581 21.4949 0.547225 21.1434 1.16237L1.14337 39.2874C0.867028 39.771 0.869012 40.3651 1.14858 40.8468C1.42814 41.3286 1.94302 41.6251 2.5 41.6251H22.5C23.3629 41.6251 24.0625 40.9255 24.0625 40.0626V1.93758ZM20.9375 38.5001H5.19247L20.9375 7.82128V38.5001Z",fill:r}),y.createElement("path",{d:"M28.8566 1.16237C28.5051 0.547225 27.7837 0.245581 27.099 0.427428C26.4142 0.609274 25.9375 1.22909 25.9375 1.93758V4.12508H26.9504L27.3934 4.9003L28.75 4.12508H29.0625V3.94651L30.1066 3.34986L28.8566 1.16237Z",fill:r}),y.createElement("path",{d:"M35.1066 12.0999L32.6066 7.72486L29.8934 9.2753L32.3934 13.6503L35.1066 12.0999Z",fill:r}),y.createElement("path",{d:"M25.9375 8.50008V12.8751H29.0625V8.50008H25.9375Z",fill:r}),y.createElement("path",{d:"M40.1066 23.9749L37.6066 19.5999L34.8934 21.1503L37.3934 25.5253L40.1066 23.9749Z",fill:r}),y.createElement("path",{d:"M25.9375 20.3751V24.7501H29.0625V20.3751H25.9375Z",fill:r}),y.createElement("path",{d:"M45.1066 32.7249L42.6066 28.3499L39.8934 29.9003L42.3934 34.2753L45.1066 32.7249Z",fill:r}),y.createElement("path",{d:"M25.9375 29.1251V33.5001H29.0625V29.1251H25.9375Z",fill:r}),y.createElement("path",{d:"M48.8566 39.2874L47.6066 37.0999L45.1562 38.5001H45V38.5894L44.8934 38.6503L45 38.8369V41.6251H47.5C48.057 41.6251 48.5719 41.3286 48.8514 40.8468C49.131 40.3651 49.133 39.771 48.8566 39.2874Z",fill:r}),y.createElement("path",{d:"M25.9375 37.8751V40.0626C25.9375 40.9255 26.6371 41.6251 27.5 41.6251H30V38.5001H29.0625V37.8751H25.9375Z",fill:r}),y.createElement("path",{d:"M35 41.6251H40V38.5001H35V41.6251Z",fill:r}))}),NQ=["color","size"],qM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,NQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.2047 46.875C37.2859 46.875 47.0797 37.0812 47.0797 25C47.0797 12.9188 37.2859 3.125 25.2047 3.125C13.1235 3.125 3.32968 12.9188 3.32968 25C3.32968 37.0812 13.1235 46.875 25.2047 46.875ZM25.2047 50C39.0118 50 50.2047 38.8071 50.2047 25C50.2047 11.1929 39.0118 0 25.2047 0C11.3976 0 0.204681 11.1929 0.204681 25C0.204681 38.8071 11.3976 50 25.2047 50Z",fill:r}))}),DQ=["color","size"],RQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,DQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 51 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.11841 3.93805V32.063H47.8684V3.93805H4.11841ZM3.49341 0.813049C2.1127 0.813049 0.993408 1.91235 0.993408 3.26841V32.7327C0.993408 34.0887 2.1127 35.188 3.49341 35.188H48.4934C49.8741 35.188 50.9934 34.0887 50.9934 32.7327V3.26841C50.9934 1.91235 49.8741 0.813049 48.4934 0.813049H3.49341Z",fill:r}))}),FQ=["color","size"],zQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,FQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.50015 7.9997C5.50015 6.61898 6.61944 5.49969 8.00015 5.49969H38.0002C39.3809 5.49969 40.5002 6.61898 40.5002 7.99969V37.9997C40.5002 39.3804 39.3809 40.4997 38.0002 40.4997H8.00015C6.61944 40.4997 5.50015 39.3804 5.50015 37.9997V7.9997ZM8.00015 7.99969H38.0002V37.9997H8.00015V7.99969Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 3C0.5 1.61929 1.61929 0.5 3 0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V43C45.5 44.3807 44.3807 45.5 43 45.5H3C1.61929 45.5 0.5 44.3807 0.5 43V3ZM3 3H43V43H3V3Z",fill:r}))}),BQ=["color","size"],HQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,BQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M0.166672 0.166664H8.50001V8.5H0.166672V0.166664Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.8333 8.5H8.50001V16.8333H0.166672V25.1667H8.50001V33.5H0.166672V41.8333H8.50001V33.5H16.8333V41.8333H25.1667V33.5H33.5V41.8333H41.8333V33.5H33.5V25.1667H41.8333V16.8333H33.5V8.5H41.8333V0.166664H33.5V8.5H25.1667V0.166664H16.8333V8.5ZM16.8333 16.8333V8.5H25.1667V16.8333H16.8333ZM16.8333 25.1667V33.5H25.1667V25.1667H33.5V16.8333H25.1667V25.1667H16.8333ZM16.8333 25.1667H8.50001V16.8333H16.8333V25.1667Z",fill:r}))}),GQ=["color","size"],VQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,GQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.95831 0.458374C1.5776 0.458374 0.458313 1.57766 0.458313 2.95837V35.4584C0.458313 36.8391 1.5776 37.9584 2.95831 37.9584H7.54167V43.7917C7.54167 45.8627 9.2206 47.5417 11.2917 47.5417H43.7917C45.8627 47.5417 47.5417 45.8627 47.5417 43.7917V11.2917C47.5417 9.22059 45.8627 7.54166 43.7917 7.54166H37.9583V2.95837C37.9583 1.57766 36.839 0.458374 35.4583 0.458374H2.95831ZM35.4583 2.95837H2.95831L2.95831 35.4584H35.4583V2.95837ZM15.7267 37.9584L10.0417 43.746V37.9584H15.7267ZM11.5135 45.0417L18.4712 37.9584H28.5529L21.4696 45.0417H11.5135ZM24.4159 45.0417H34.2932L45.0417 34.1339V24.0207L37.9583 31.3242V35.4584C37.9583 36.8391 36.839 37.9584 35.4583 37.9584H31.4912C31.4689 37.9859 31.445 38.0126 31.4194 38.0382L24.4159 45.0417ZM45.0417 21.3515L37.9583 28.655V18.9107L45.0417 11.8338V21.3515ZM37.0311 45.0417H43.7917C44.482 45.0417 45.0417 44.482 45.0417 43.7917V36.9124L37.0311 45.0417ZM43.8844 10.045C43.8538 10.0428 43.8229 10.0417 43.7917 10.0417H37.9583V15.9657L43.8844 10.045Z",fill:r}))}),UQ=["color","size"],WQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,UQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M3 3H23V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V23H43V43H3V3Z",fill:r}),y.createElement("path",{d:"M45.5 7.25076H43V5.50076C43 5.15718 42.9321 4.83576 42.8113 4.54446L45.1206 3.58682C45.3651 4.17636 45.5 4.82281 45.5 5.50076V7.25076Z",fill:r}),y.createElement("path",{d:"M24.75 0.500763V3.00076H28.25V0.500763H24.75Z",fill:r}),y.createElement("path",{d:"M31.75 0.500763V3.00076H35.25V0.500763H31.75Z",fill:r}),y.createElement("path",{d:"M38.75 0.500763V3.00076H40.5C40.8436 3.00076 41.165 3.06868 41.4563 3.18948L42.414 0.880166C41.8244 0.635694 41.178 0.500763 40.5 0.500763H38.75Z",fill:r}),y.createElement("path",{d:"M45.5 10.7508H43V14.2508H45.5V10.7508Z",fill:r}),y.createElement("path",{d:"M45.5 17.7508H43V21.2508H45.5V17.7508Z",fill:r}))}),XQ=["color","size"],YQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,XQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M9.25008 9.24878H11.7501V10.9675H10.9688V11.7488H9.25008V9.24878Z",fill:r}),y.createElement("path",{d:"M9.25008 34.2488V36.7488H11.7501V35.03H10.9688V34.2488H9.25008Z",fill:r}),y.createElement("path",{d:"M34.2501 36.7488H36.7501V34.2488H35.0313V35.03H34.2501V36.7488Z",fill:r}),y.createElement("path",{d:"M36.7501 11.7488V9.24878H34.2501V10.9675H35.0313V11.7488H36.7501Z",fill:r}),y.createElement("path",{d:"M14.4063 9.24878V11.7488H17.8438V9.24878H14.4063Z",fill:r}),y.createElement("path",{d:"M21.2813 9.24878V11.7488H24.7188V9.24878H21.2813Z",fill:r}),y.createElement("path",{d:"M28.1563 9.24878V11.7488H31.5938V9.24878H28.1563Z",fill:r}),y.createElement("path",{d:"M36.7501 14.405H34.2501V17.8425H36.7501V14.405Z",fill:r}),y.createElement("path",{d:"M36.7501 21.28H34.2501V24.7175H36.7501V21.28Z",fill:r}),y.createElement("path",{d:"M36.7501 28.155H34.2501V31.5925H36.7501V28.155Z",fill:r}),y.createElement("path",{d:"M31.5938 36.7488V34.2488H28.1563V36.7488H31.5938Z",fill:r}),y.createElement("path",{d:"M24.7188 36.7488V34.2488H21.2813V36.7488H24.7188Z",fill:r}),y.createElement("path",{d:"M17.8438 36.7488V34.2488H14.4063V36.7488H17.8438Z",fill:r}),y.createElement("path",{d:"M9.25008 31.5925H11.7501V28.155H9.25008V31.5925Z",fill:r}),y.createElement("path",{d:"M9.25008 24.7175H11.7501V21.28H9.25008V24.7175Z",fill:r}),y.createElement("path",{d:"M9.25008 17.8425H11.7501V14.405H9.25008V17.8425Z",fill:r}),y.createElement("path",{d:"M23.0002 26.7497C25.0712 26.7497 26.7502 25.0708 26.7502 22.9997C26.7502 20.9286 25.0712 19.2497 23.0002 19.2497C20.9291 19.2497 19.2502 20.9286 19.2502 22.9997C19.2502 25.0708 20.9291 26.7497 23.0002 26.7497Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z",fill:r}))}),KQ=["color","size"],ZQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,KQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29986 0.991788C4.78802 0.503633 5.57947 0.503633 6.06763 0.991788L9.367 4.29116C9.85516 4.77932 9.85516 5.57077 9.367 6.05893C8.87885 6.54708 8.08739 6.54708 7.59924 6.05893L6.43374 4.89344V34.0829L7.59924 32.9174C8.08739 32.4293 8.87885 32.4293 9.367 32.9174C9.85516 33.4056 9.85516 34.197 9.367 34.6852L6.06763 37.9846C5.8332 38.219 5.51524 38.3507 5.18371 38.3507C4.85217 38.3507 4.53422 38.219 4.29981 37.9845L1.00084 34.6851C0.512712 34.1969 0.512761 33.4055 1.00095 32.9174C1.48913 32.4292 2.28059 32.4293 2.76871 32.9175L3.93374 34.0827V4.89344L2.76825 6.05893C2.2801 6.54708 1.48864 6.54708 1.00049 6.05893C0.51233 5.57077 0.51233 4.77932 1.00049 4.29116L4.29986 0.991788ZM13.1588 8.34109V1.49725H46.3156V8.34102H43.398V7.19776C43.398 5.54595 42.0562 4.20442 40.4047 4.20442H31.8516V26.0992C31.8516 28.1387 33.5088 29.7957 35.5481 29.7957H36.5137V32.4599H23.01V29.7957H23.9756C26.0151 29.7957 27.6721 28.1387 27.6721 26.0992V4.20448H19.0697C17.418 4.20448 16.0763 5.54604 16.0763 7.19783V8.34109H13.1588ZM46.9995 39.7088C47.4877 39.2207 47.4877 38.4292 46.9995 37.9411L43.7001 34.6417C43.212 34.1535 42.4205 34.1535 41.9324 34.6417C41.4442 35.1298 41.4442 35.9213 41.9324 36.4095L43.0979 37.5749L15.0832 37.5749L16.2484 36.4099C16.7366 35.9218 16.7366 35.1303 16.2485 34.6421C15.7604 34.154 14.9689 34.1539 14.4807 34.642L11.1814 37.941C10.9469 38.1754 10.8152 38.4934 10.8152 38.8249C10.8152 39.1564 10.9469 39.4744 11.1813 39.7088L14.4807 43.0082C14.9688 43.4964 15.7603 43.4964 16.2485 43.0082C16.7366 42.5201 16.7366 41.7286 16.2485 41.2404L15.083 40.0749L43.0979 40.0749L41.9324 41.2404C41.4442 41.7286 41.4442 42.5201 41.9324 43.0082C42.4205 43.4964 43.212 43.4964 43.7001 43.0082L46.9995 39.7088Z",fill:r}))}),qQ=["color","size"],$Q=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,qQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M13.8334 9.19949C13.8334 8.50914 14.3931 7.94949 15.0834 7.94949H31.3334C32.0238 7.94949 32.5834 8.50914 32.5834 9.19949C32.5834 9.88985 32.0238 10.4495 31.3334 10.4495H15.0834C14.3931 10.4495 13.8334 9.88985 13.8334 9.19949Z",fill:r}),y.createElement("path",{d:"M15.0834 35.5496C14.3931 35.5496 13.8334 36.1092 13.8334 36.7996C13.8334 37.4899 14.3931 38.0496 15.0834 38.0496H31.3334C32.0238 38.0496 32.5834 37.4899 32.5834 36.7996C32.5834 36.1092 32.0238 35.5496 31.3334 35.5496H15.0834Z",fill:r}),y.createElement("path",{d:"M36.8001 13.4163C37.4905 13.4163 38.0501 13.9759 38.0501 14.6663V30.9163C38.0501 31.6066 37.4905 32.1663 36.8001 32.1663C36.1098 32.1663 35.5501 31.6066 35.5501 30.9163V14.6663C35.5501 13.9759 36.1098 13.4163 36.8001 13.4163Z",fill:r}),y.createElement("path",{d:"M10.45 14.6663C10.45 13.9759 9.89038 13.4163 9.20003 13.4163C8.50967 13.4163 7.95003 13.9759 7.95003 14.6663L7.95003 30.9163C7.95003 31.6066 8.50967 32.1663 9.20003 32.1663C9.89038 32.1663 10.45 31.6066 10.45 30.9163L10.45 14.6663Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 0.5C1.61929 0.5 0.5 1.61929 0.5 3V43C0.5 44.3807 1.61929 45.5 3 45.5H43C44.3807 45.5 45.5 44.3807 45.5 43V3C45.5 1.61929 44.3807 0.5 43 0.5H3ZM43 3H3V43H43V3Z",fill:r}))}),QQ=["color","size"],JQ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,QQ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M44.103 18.4866L24.0002 3.8811L3.89749 18.4866L11.5761 42.1188H36.4244L44.103 18.4866ZM25.8371 1.35293C24.7418 0.557164 23.2587 0.557162 22.1634 1.35292L2.06066 15.9584C0.96539 16.7542 0.507082 18.1647 0.925439 19.4523L8.604 43.0845C9.02236 44.372 10.2222 45.2438 11.5761 45.2438H36.4244C37.7782 45.2438 38.9781 44.372 39.3965 43.0845L47.075 19.4523C47.4934 18.1647 47.0351 16.7542 45.9398 15.9584L25.8371 1.35293Z",fill:r}))}),eJ=["color","size"],tJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,eJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.0078 29.9669H25.835L24.7803 35.9727H27.4609L28.5156 29.9669H32.2363V27.4473H28.9551L29.6875 23.2872H33.3496V20.7383H30.1416L31.2109 14.6446H28.5303L27.4609 20.7383H24.6191L25.6885 14.6446H23.0225L21.9531 20.7383H18.1006V23.2872H21.499L20.7666 27.4473H17.002V29.9669H20.3271L19.2725 35.9727H21.9531L23.0078 29.9669ZM26.2744 27.4473H23.4473L24.165 23.2872H27.0068L26.2744 27.4473Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.5448 0.821208C24.421 0.184598 25.6075 0.184597 26.4837 0.821207L48.4803 16.8026C49.3565 17.4392 49.7231 18.5677 49.3885 19.5977L40.9865 45.4562C40.6518 46.4862 39.692 47.1836 38.6089 47.1836H11.4197C10.3366 47.1836 9.37672 46.4862 9.04204 45.4562L0.640107 19.5977C0.305422 18.5677 0.672067 17.4392 1.54829 16.8026L23.5448 0.821208ZM25.0143 2.84375L47.0108 18.8252L38.6089 44.6836H11.4197L3.01775 18.8252L25.0143 2.84375Z",fill:r}))}),nJ=["color","size"],rJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,nJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 46 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.5 15.0005C45.5 15.7079 45.2003 16.3822 44.6753 16.8562L30.8291 29.3562C29.8042 30.2814 28.2234 30.2006 27.2982 29.1758C26.373 28.1509 26.4537 26.57 27.4786 25.6448L36.5 17.5005L3 17.5005C1.61928 17.5005 0.499999 16.3812 0.499999 15.0005C0.499999 13.6198 1.61929 12.5005 3 12.5005L36.5 12.5005L27.4786 4.35618C26.4537 3.43096 26.373 1.85011 27.2982 0.82525C28.2234 -0.199608 29.8042 -0.280382 30.8291 0.644837L44.6753 13.1448C45.2003 13.6189 45.5 14.2931 45.5 15.0005Z",fill:r}))}),iJ=["color","size"],aJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,iJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 48L26.9931 2H31.2019L23.2087 48H19Z",fill:r}))}),oJ=["color","size"],sJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,oJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 14 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M0.214966 17.4813V0.518677H6.61123C8.82693 0.518677 10.5075 0.914783 11.653 1.70699C12.7985 2.49144 13.3712 3.64481 13.3712 5.16709C13.3712 5.99814 13.1413 6.7321 12.6814 7.36898C12.2216 7.99809 11.5819 8.46021 10.7625 8.75535C11.699 8.97282 12.4348 9.41164 12.9699 10.0718C13.5133 10.732 13.7851 11.5397 13.7851 12.4951C13.7851 14.1261 13.2249 15.361 12.1045 16.1998C10.9841 17.0386 9.38713 17.4658 7.31357 17.4813H0.214966ZM3.97748 10.0951V14.6736H7.20069C8.08697 14.6736 8.77677 14.4795 9.27007 14.0911C9.77174 13.695 10.0226 13.1513 10.0226 12.4601C10.0226 10.9067 9.1572 10.1184 7.42644 10.0951H3.97748ZM3.97748 7.62528H6.76173C8.65971 7.59421 9.6087 6.89132 9.6087 5.5166C9.6087 4.74769 9.36623 4.19625 8.88128 3.86228C8.4047 3.52054 7.64801 3.34967 6.61123 3.34967H3.97748V7.62528Z",fill:r}))}),lJ=["color","size"],$M=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,lJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M17.5911 1.54582C16.7075 0.680052 15.2937 0.680014 14.4101 1.54573L4.05296 11.6925C3.15635 12.5709 3.14159 14.0098 4.01999 14.9064C4.89839 15.8031 6.33733 15.8178 7.23394 14.9394L13.7278 8.57741V30.4419C13.7278 31.6971 14.7454 32.7147 16.0006 32.7147C17.2558 32.7147 18.2733 31.6971 18.2733 30.4419V8.57782L24.766 14.9393C25.6625 15.8178 27.1015 15.8031 27.9799 14.9065C28.8584 14.01 28.8437 12.571 27.9471 11.6926L17.5911 1.54582Z",fill:r}),y.createElement("path",{d:"M2.78827 36.5543C1.53308 36.5543 0.515541 37.5719 0.515541 38.827C0.515541 40.0822 1.53308 41.0998 2.78827 41.0998H29.1519C30.4071 41.0998 31.4246 40.0822 31.4246 38.827C31.4246 37.5719 30.4071 36.5543 29.1519 36.5543H2.78827Z",fill:r}))}),cJ=["color","size"],QM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,cJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 28 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.907 0.71085C25.7493 -0.292553 23.9445 -0.224769 22.8758 0.862251L0.931376 23.1837C-0.0773525 24.2097 -0.0773525 25.7913 0.931376 26.8173L22.8758 49.1388C23.9445 50.2258 25.7493 50.2936 26.907 49.2902C28.0647 48.2868 28.1369 46.5921 27.0683 45.5051L6.90997 25.0005L27.0683 4.49589C28.1369 3.40888 28.0647 1.71425 26.907 0.71085Z",fill:r}))}),uJ=["color","size"],dJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,uJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 28 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.09286 0.71085C2.25057 -0.292553 4.05541 -0.224769 5.12407 0.862251L27.0685 23.1837C28.0772 24.2097 28.0772 25.7913 27.0685 26.8173L5.12407 49.1388C4.05541 50.2258 2.25057 50.2936 1.09286 49.2902C-0.0648579 48.2868 -0.137051 46.5921 0.93161 45.5051L21.0899 25.0005L0.93161 4.49589C-0.137051 3.40888 -0.0648579 1.71425 1.09286 0.71085Z",fill:r}))}),hJ=["color","size"],fJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,hJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 38 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M16.9167 21.0838L16.9167 35.6672C16.9167 36.8177 17.8494 37.7505 19 37.7505C20.1506 37.7505 21.0833 36.8177 21.0833 35.6672L21.0833 21.0838H35.6667C36.8173 21.0838 37.75 20.1511 37.75 19.0005C37.75 17.8499 36.8173 16.9172 35.6667 16.9172L21.0833 16.9172L21.0833 2.33382C21.0833 1.18323 20.1506 0.250488 19 0.250488C17.8494 0.250488 16.9167 1.18323 16.9167 2.33382L16.9167 16.9172H2.33333C1.18274 16.9172 0.25 17.8499 0.25 19.0005C0.25 20.1511 1.18274 21.0838 2.33333 21.0838H16.9167Z",fill:r}))}),pJ=["color","size"],gJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,pJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.04757 38.9503C0.437373 38.3401 0.437373 37.3508 1.04757 36.7406L33.9229 3.86697L23.8354 3.33584C22.9736 3.29047 22.3118 2.5551 22.3572 1.69335C22.4026 0.831601 23.138 0.169794 23.9997 0.215167L37.5909 0.930759C38.3892 0.972794 39.027 1.61063 39.0691 2.40894L39.7846 16.0001C39.83 16.8619 39.1682 17.5972 38.3065 17.6426C37.4447 17.688 36.7093 17.0262 36.664 16.1644L36.1328 6.07651L3.25728 38.9503C2.64708 39.5605 1.65776 39.5605 1.04757 38.9503Z",fill:r}))}),mJ=["color","size"],vJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,mJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.1607 4.16667V2.08333C27.1607 0.93274 26.2279 0 25.0773 0C23.9267 0 22.994 0.932741 22.994 2.08333V4.16667H4.244C1.94281 4.16667 0.0773315 6.03215 0.0773315 8.33333V41.6667C0.0773315 43.9679 1.94281 45.8333 4.244 45.8333H22.994V47.9167C22.994 49.0673 23.9267 50 25.0773 50C26.2279 50 27.1607 49.0673 27.1607 47.9167V45.8333H45.9107C48.2118 45.8333 50.0773 43.9678 50.0773 41.6667V8.33333C50.0773 6.03215 48.2119 4.16667 45.9107 4.16667H27.1607ZM22.994 8.33333H4.244L4.244 41.6667H22.994V8.33333ZM27.1607 41.6667V8.33333H45.9107V41.6667H27.1607Z",fill:r}))}),yJ=["color","size"],bJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,yJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 38 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M35.835 5.0769L2.16498 5.0769C1.00277 5.0769 0.0606079 4.14726 0.0606079 3.00048C0.060608 1.85371 1.00277 0.924072 2.16498 0.924072L35.835 0.924074C36.9972 0.924074 37.9394 1.85372 37.9394 3.00049C37.9394 4.14726 36.9972 5.0769 35.835 5.0769Z",fill:r}))}),wJ=["color","size"],xJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,wJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.48799 3.125H17.0311L17.0311 24.4063C17.0311 26.6148 18.1889 28.4084 19.5429 29.5401C21.7011 31.3438 23.0656 34.0456 23.0656 37.069C23.0656 42.4847 18.6753 46.875 13.2595 46.875C7.84382 46.875 3.45351 42.4847 3.45351 37.069C3.45351 34.0456 4.81799 31.3438 6.97617 29.5401C8.33021 28.4084 9.48799 26.6148 9.48799 24.4063V3.125ZM20.1561 3.125C20.1561 1.39911 18.757 0 17.0311 0H9.48799C7.7621 0 6.36299 1.39911 6.36299 3.125V24.4063C6.36299 25.4785 5.79482 26.4547 4.97216 27.1423C2.13398 29.5143 0.328506 33.0808 0.328506 37.069C0.328506 44.2106 6.11793 50 13.2595 50C20.4012 50 26.1906 44.2106 26.1906 37.069C26.1906 33.0808 24.3851 29.5143 21.5469 27.1423C20.7243 26.4547 20.1561 25.4785 20.1561 24.4063V3.125ZM35.6715 1.25C35.6715 0.559645 35.1119 0 34.4215 0H28.1715C27.4812 0 26.9215 0.559644 26.9215 1.25C26.9215 1.94036 27.4812 2.5 28.1715 2.5L34.4215 2.5C35.1119 2.5 35.6715 1.94036 35.6715 1.25ZM35.6715 8.24951C35.6715 7.55916 35.1119 6.99951 34.4215 6.99951H28.1715C27.4812 6.99951 26.9215 7.55916 26.9215 8.24951C26.9215 8.93987 27.4812 9.49951 28.1715 9.49951H34.4215C35.1119 9.49951 35.6715 8.93987 35.6715 8.24951ZM34.4215 13.999C35.1119 13.999 35.6715 14.5587 35.6715 15.249C35.6715 15.9394 35.1119 16.499 34.4215 16.499H28.1715C27.4812 16.499 26.9215 15.9394 26.9215 15.249C26.9215 14.5587 27.4812 13.999 28.1715 13.999H34.4215ZM13.2594 43.7501C16.366 43.7501 18.8844 41.2317 18.8844 38.1251C18.8844 35.4037 16.9519 33.1337 14.3844 32.6126V10.3662C14.3844 9.67582 13.8247 9.11617 13.1344 9.11617C12.444 9.11617 11.8844 9.67582 11.8844 10.3662V32.6694C9.44245 33.2829 7.63441 35.4928 7.63441 38.1251C7.63441 41.2317 10.1528 43.7501 13.2594 43.7501Z",fill:r}))}),CJ=["color","size"],SJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,CJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4376 40.6858V38.5625V4.18746V3.31418C10.8133 4.10816 3.25006 12.1708 3.25006 22C3.25006 31.8292 10.8133 39.8918 20.4376 40.6858ZM40.7501 22C40.7501 31.8292 33.1868 39.8918 23.5626 40.6858V38.5625V4.18746V3.31418C33.1868 4.10816 40.7501 12.1708 40.7501 22ZM43.8751 22C43.8751 34.0812 34.0813 43.875 22.0001 43.875C9.91883 43.875 0.125061 34.0812 0.125061 22C0.125061 9.91877 9.91883 0.125 22.0001 0.125C34.0813 0.125 43.8751 9.91877 43.8751 22Z",fill:r}))}),EJ=["color","size"],_J=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,EJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.3679 7.50003C15.7995 10.005 13.5592 11.875 10.8823 11.875C8.20528 11.875 5.96506 10.005 5.39665 7.50003H1.5448C0.854444 7.50003 0.2948 6.94039 0.2948 6.25003C0.2948 5.55967 0.854444 5.00003 1.5448 5.00003H5.39665C5.96506 2.49504 8.20528 0.625031 10.8823 0.625031C13.5592 0.625031 15.7995 2.49504 16.3679 5.00003H48.4557C49.1461 5.00003 49.7057 5.55967 49.7057 6.25003C49.7057 6.94039 49.1461 7.50003 48.4557 7.50003H16.3679ZM14.0073 6.25003C14.0073 7.97592 12.6082 9.37503 10.8823 9.37503C9.15637 9.37503 7.75726 7.97592 7.75726 6.25003C7.75726 4.52414 9.15637 3.12503 10.8823 3.12503C12.6082 3.12503 14.0073 4.52414 14.0073 6.25003Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M34.5715 27.625C37.2485 27.625 39.4887 25.755 40.0571 23.25H48.4554C49.1458 23.25 49.7054 22.6904 49.7054 22C49.7054 21.3096 49.1458 20.75 48.4554 20.75H40.0571C39.4887 18.245 37.2485 16.375 34.5715 16.375C31.8946 16.375 29.6543 18.245 29.0859 20.75H1.5448C0.854444 20.75 0.2948 21.3096 0.2948 22C0.2948 22.6904 0.854444 23.25 1.5448 23.25H29.0859C29.6543 25.755 31.8946 27.625 34.5715 27.625ZM34.5715 25.125C36.2974 25.125 37.6965 23.7259 37.6965 22C37.6965 20.2741 36.2974 18.875 34.5715 18.875C32.8456 18.875 31.4465 20.2741 31.4465 22C31.4465 23.7259 32.8456 25.125 34.5715 25.125Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.7702 39C22.2018 41.505 19.9615 43.375 17.2845 43.375C14.6076 43.375 12.3673 41.505 11.7989 39H1.5448C0.854444 39 0.2948 38.4403 0.2948 37.75C0.2948 37.0596 0.854444 36.5 1.5448 36.5H11.7989C12.3673 33.995 14.6076 32.125 17.2845 32.125C19.9615 32.125 22.2018 33.995 22.7702 36.5H48.4554C49.1458 36.5 49.7054 37.0596 49.7054 37.75C49.7054 38.4403 49.1458 39 48.4554 39H22.7702ZM20.4095 37.75C20.4095 39.4759 19.0104 40.875 17.2845 40.875C15.5587 40.875 14.1595 39.4759 14.1595 37.75C14.1595 36.0241 15.5587 34.625 17.2845 34.625C19.0104 34.625 20.4095 36.0241 20.4095 37.75Z",fill:r}))}),kJ=["color","size"],OJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,kJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M37.2341 37.6984H37.5121V37.4237C41.4447 33.4687 43.875 28.0182 43.875 22C43.875 15.9819 41.4447 10.5314 37.5121 6.57632V6.30045H37.2328C33.2942 2.47819 27.9219 0.125031 22 0.125031C9.91877 0.125031 0.125 9.9188 0.125 22C0.125 34.0813 9.91877 43.875 22 43.875C24.718 43.875 27.3203 43.3793 29.7213 42.4733H30.5303V42.1494C33.0389 41.0861 35.308 39.5679 37.2341 37.6984ZM20.4257 3.31519C10.807 4.1148 3.25 12.1749 3.25 22C3.25 31.8252 10.807 39.8853 20.4257 40.6849V3.31519ZM34.3871 36.0759C33.221 37.1029 31.9263 37.9873 30.5303 38.7017V5.29836C31.9263 6.01281 33.221 6.89715 34.3871 7.92411V36.0759ZM37.5121 11.4641C39.5556 14.4669 40.75 18.094 40.75 22C40.75 25.9061 39.5556 29.5332 37.5121 32.536V11.4641ZM23.5507 40.6868C24.8796 40.578 26.1693 40.3307 27.4053 39.9592V4.04089C26.1693 3.66941 24.8796 3.42203 23.5507 3.31324V40.6868Z",fill:r}))}),PJ=["color","size"],TJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,PJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M46.1442 31.379C45.4585 31.379 44.8974 31.9429 44.8974 32.6321V43.7349C44.8974 45.8025 43.2267 47.4817 41.157 47.4943H6.22156C4.16433 47.4943 2.49361 45.8151 2.48114 43.7349V11.1283C2.48114 9.06067 4.15186 7.38147 6.22156 7.36894H17.2807C17.9665 7.36894 18.5275 6.80503 18.5275 6.1158C18.5275 5.42658 17.9665 4.86267 17.2807 4.86267H6.22156C2.79284 4.8752 0 7.66969 0 11.1283V43.7349C0 47.1935 2.79284 50.0005 6.22156 50.0005H41.157C44.5982 50.0005 47.3786 47.1935 47.3786 43.7474V32.6321C47.391 31.9429 46.83 31.379 46.1442 31.379Z",fill:r}),y.createElement("path",{d:"M46.8923 1.65462C44.698 -0.55089 41.157 -0.55089 38.9627 1.65462L16.7571 23.9729C16.6075 24.1233 16.4953 24.3113 16.4329 24.5243L13.5154 35.1258C13.3907 35.5644 13.5154 36.0281 13.8396 36.3413C14.1513 36.6546 14.6251 36.7799 15.049 36.6672L25.5969 33.7348C25.8089 33.6722 25.9959 33.5719 26.1455 33.409L48.3636 11.0782C50.5455 8.87267 50.5455 5.31377 48.3636 3.10826L46.8923 1.65462ZM19.4751 24.7875L37.6535 6.51678L43.5135 12.4065L25.3351 30.6897L19.4751 24.7875ZM18.3031 27.1559L22.9911 31.8677L16.5077 33.6722L18.3031 27.1559ZM46.5931 9.31127L45.2715 10.6396L39.4115 4.74986L40.7331 3.42154C41.9425 2.206 43.9249 2.206 45.1343 3.42154L46.5931 4.88771C47.815 6.11578 47.815 8.09573 46.5931 9.31127Z",fill:r}))}),MJ=["color","size"],IJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,MJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M18.3626 41.293C17.5103 41.4285 16.7096 40.8474 16.5742 39.9952C16.4387 39.143 17.0198 38.3423 17.872 38.2068C18.2902 38.1403 18.6988 38.0456 19.0958 37.9246C21.9368 37.059 24.1957 34.8468 25.1254 32.0335C25.2671 31.6049 25.378 31.1621 25.4555 30.7076C25.6005 29.857 26.4076 29.2849 27.2583 29.4299C28.109 29.5749 28.681 30.3821 28.536 31.2327C28.432 31.8429 28.283 32.4379 28.0926 33.0142C26.8449 36.7893 23.8206 39.7519 20.0065 40.914C19.4728 41.0766 18.9239 41.2038 18.3626 41.293Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M33.9356 31.0645C33.9356 23.9644 24.1764 8.59028 19.4747 1.59549C18.2785 -0.184172 15.7216 -0.184172 14.5254 1.59548C9.82374 8.59028 0.0645752 23.9644 0.0645752 31.0645C0.0645752 40.4177 7.64685 48 17.0001 48C26.3533 48 33.9356 40.4177 33.9356 31.0645ZM30.8106 31.0645C30.8106 29.8836 30.375 28.0316 29.4236 25.578C28.5 23.1959 27.1988 20.5159 25.7187 17.7756C22.8106 12.3913 19.3287 6.98743 17.0001 3.51586C14.6715 6.98743 11.1895 12.3913 8.28145 17.7756C6.80135 20.5159 5.50017 23.1959 4.57655 25.578C3.62517 28.0316 3.18958 29.8836 3.18958 31.0645C3.18958 38.6918 9.37274 44.875 17.0001 44.875C24.6274 44.875 30.8106 38.6918 30.8106 31.0645Z",fill:r}))}),AJ=["color","size"],LJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,AJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M43.0081 15.2287L36.7869 17.6214L28.935 29.9601C30.5809 33.9266 30.3662 38.0903 27.1408 41.3158L26.5656 41.8909C25.9554 42.5011 24.9661 42.5011 24.3559 41.8909L14.4122 31.9472L2.99211 43.3673C2.38192 43.9775 1.3926 43.9775 0.782403 43.3673C0.17221 42.7571 0.172211 41.7678 0.782403 41.1576L12.2025 29.7375L2.25883 19.7938C1.64864 19.1836 1.64864 18.1943 2.25883 17.5841L2.50512 17.3378C5.73058 14.1123 10.2231 13.5688 14.1897 15.2147L26.5283 7.36283L28.9211 1.14165C29.327 0.0863053 30.6847 -0.201832 31.4843 0.597706L43.552 12.6655C44.3516 13.465 44.0634 14.8228 43.0081 15.2287ZM29.0752 9.44618L30.9747 4.50752L39.6422 13.1751L34.7035 15.0745L25.4251 29.655L26.0486 31.1577C27.234 34.0146 27.0773 36.5309 25.4342 38.5498L5.64209 18.7576C7.75439 17.2384 10.4304 17.0382 12.992 18.1011L14.4948 18.7246L29.0752 9.44618Z",fill:r}))}),jJ=["color","size"],NJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,jJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.312012 34.847V3.39883C0.312012 1.67294 1.71112 0.273834 3.43701 0.273834H26.807C28.5329 0.273834 29.932 1.67294 29.932 3.39883V34.847C29.932 36.5729 28.5329 37.972 26.807 37.972H3.43701C1.71112 37.972 0.312012 36.5729 0.312012 34.847ZM3.43701 34.847V3.39883L26.807 3.39883L26.807 34.847L3.43701 34.847Z",fill:r}),y.createElement("path",{d:"M35.6874 12.5434C35.6874 11.6805 34.9878 10.9809 34.1249 10.9809C33.2619 10.9809 32.5624 11.6805 32.5624 12.5434V40.6009H9.89033C9.02739 40.6009 8.32783 41.3005 8.32783 42.1634C8.32783 43.0263 9.02739 43.7259 9.89033 43.7259H34.1249C34.9878 43.7259 35.6874 43.0263 35.6874 42.1634V12.5434Z",fill:r}))}),DJ=["color","size"],JM=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,DJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M15.75 17.3125C15.75 16.4496 16.4496 15.75 17.3125 15.75C18.1754 15.75 18.875 16.4496 18.875 17.3125L18.875 32.9375C18.875 33.8005 18.1754 34.5 17.3125 34.5C16.4496 34.5 15.75 33.8005 15.75 32.9375L15.75 17.3125Z",fill:r}),y.createElement("path",{d:"M26.6875 15.75C25.8246 15.75 25.125 16.4496 25.125 17.3125L25.125 32.9375C25.125 33.8005 25.8246 34.5 26.6875 34.5C27.5504 34.5 28.25 33.8005 28.25 32.9375V17.3125C28.25 16.4496 27.5504 15.75 26.6875 15.75Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.625 6.37503V3.25003C12.625 1.52414 14.0241 0.125031 15.75 0.125031H28.25C29.9759 0.125031 31.375 1.52414 31.375 3.25003V6.37503H42.3125C43.1754 6.37503 43.875 7.07459 43.875 7.93753C43.875 8.80048 43.1754 9.50003 42.3125 9.50003H39.1875V40.75C39.1875 42.4759 37.7884 43.875 36.0625 43.875H7.9375C6.21161 43.875 4.8125 42.4759 4.8125 40.75V9.50003L1.6875 9.50003C0.824554 9.50003 0.125 8.80048 0.125 7.93753C0.125 7.07459 0.824555 6.37503 1.6875 6.37503H12.625ZM15.75 3.25003H28.25V6.37503H15.75V3.25003ZM7.9375 9.50003L7.9375 40.75H36.0625V9.50003H7.9375Z",fill:r}))}),RJ=["color","size"],FJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,RJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M43 3H31.75V0.5H43C44.3807 0.5 45.5 1.61929 45.5 3V14.25H43V3Z",fill:r}),y.createElement("path",{d:"M3 14.25V3H14.25V0.5H3C1.61929 0.5 0.5 1.61929 0.5 3V14.25H3Z",fill:r}),y.createElement("path",{d:"M0.5 31.75V43C0.5 44.3807 1.61929 45.5 3 45.5H14.25V43H3V31.75H0.5Z",fill:r}),y.createElement("path",{d:"M43 31.75H45.5V43C45.5 44.3807 44.3807 45.5 43 45.5H31.75V43H43V31.75Z",fill:r}))}),zJ=["color","size"],BJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,zJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 36 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0559 46.8755L32.0559 3.12555L3.93091 3.12555L3.93091 46.8755H32.0559ZM35.1809 3.12555C35.1809 1.39966 33.7818 0.000549316 32.0559 0.000549316H3.93091C2.20502 0.000549316 0.805908 1.39966 0.805908 3.12555V46.8755C0.805908 48.6014 2.20502 50.0005 3.93091 50.0005H32.0559C33.7818 50.0005 35.1809 48.6014 35.1809 46.8755L35.1809 3.12555Z",fill:r}))}),HJ=["color","size"],GJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,HJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.961 39.0119L28.2837 7.27185C27.5934 6.17538 26.3971 5.5 24.9981 5.5C23.5956 5.5 22.3967 6.17887 21.7073 7.28034L4.06571 38.9613L4.03009 39.0197C3.33595 40.159 3.32316 41.4697 3.9939 42.6216C4.67405 43.786 5.89 44.5 7.34459 44.5H42.554C44.0596 44.5 45.3464 43.7436 46.0016 42.6231C46.6817 41.4564 46.652 40.1455 45.9968 39.0706L45.961 39.0119ZM49.0254 44.3856C47.7038 46.6495 45.2246 48 42.554 48H7.34459C4.67398 48 2.29272 46.6495 0.970942 44.3856C-0.347811 42.1231 -0.322029 39.4361 1.04116 37.1987L18.6646 5.55018C18.6697 5.5418 18.6743 5.53342 18.6789 5.52504C18.6836 5.51666 18.6882 5.50828 18.6932 5.49989C20.0278 3.30867 22.3849 2 24.9981 2C27.6114 2 29.9685 3.30867 31.303 5.49989L48.9853 37.2489C50.3185 39.436 50.3442 42.1232 49.0254 44.3856Z",fill:r}),y.createElement("path",{d:"M22.0001 16C22.0001 14.3431 23.3433 13 25.0001 13C26.657 13 28.0001 14.3431 28.0001 16V28C28.0001 29.6569 26.657 31 25.0001 31C23.3433 31 22.0001 29.6569 22.0001 28V16Z",fill:r}),y.createElement("path",{d:"M28.0001 37C28.0001 38.6569 26.657 40 25.0001 40C23.3433 40 22.0001 38.6569 22.0001 37C22.0001 35.3431 23.3433 34 25.0001 34C26.657 34 28.0001 35.3431 28.0001 37Z",fill:r}))}),VJ=["color","size"],UJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,VJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 10.5001C20.5 16.023 16.0228 20.5001 10.5 20.5001C4.97714 20.5001 0.5 16.023 0.5 10.5001C0.5 4.97727 4.97714 0.500122 10.5 0.500122C16.0228 0.500122 20.5 4.97727 20.5 10.5001ZM7.88239 9.56904C8.00439 9.62145 8.11473 9.69763 8.20698 9.79314L9.49998 11.0861L12.793 7.79314C12.8852 7.69763 12.9956 7.62145 13.1176 7.56904C13.2396 7.51663 13.3708 7.48905 13.5036 7.48789C13.6363 7.48674 13.768 7.51204 13.8909 7.56232C14.0138 7.6126 14.1255 7.68686 14.2194 7.78075C14.3133 7.87464 14.3875 7.98629 14.4378 8.10919C14.4881 8.23208 14.5134 8.36376 14.5122 8.49654C14.5111 8.62932 14.4835 8.76054 14.4311 8.88255C14.3787 9.00455 14.3025 9.1149 14.207 9.20714L10.207 13.2071C10.0194 13.3946 9.76514 13.4999 9.49998 13.4999C9.23482 13.4999 8.98051 13.3946 8.79298 13.2071L6.79298 11.2071C6.69747 11.1149 6.62129 11.0046 6.56888 10.8825C6.51647 10.7605 6.48889 10.6293 6.48773 10.4965C6.48658 10.3638 6.51188 10.2321 6.56216 10.1092C6.61244 9.98629 6.6867 9.87464 6.78059 9.78075C6.87448 9.68686 6.98613 9.6126 7.10903 9.56232C7.23193 9.51204 7.3636 9.48674 7.49638 9.48789C7.62916 9.48905 7.76038 9.51663 7.88239 9.56904Z",fill:r}))}),WJ=["color","size"],XJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,WJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 20.5001C16.0228 20.5001 20.5 16.023 20.5 10.5001C20.5 4.97727 16.0228 0.500122 10.5 0.500122C4.97715 0.500122 0.5 4.97727 0.5 10.5001C0.5 16.023 4.97715 20.5001 10.5 20.5001ZM15.4375 7.0912L11.8155 10.7132L15.4638 14.309C15.6213 14.4665 15.7 14.6503 15.7 14.8865C15.7 15.1227 15.6213 15.3064 15.4638 15.4639C15.3063 15.6214 15.1226 15.7001 14.8864 15.7001C14.6501 15.7001 14.4664 15.6214 14.3089 15.4639L10.6869 11.8419L7.06483 15.4639C6.77612 15.7789 6.25118 15.7789 5.93622 15.4639C5.77874 15.3064 5.7 15.0964 5.7 14.8865C5.7 14.6765 5.77874 14.4928 5.93622 14.3353L9.55827 10.7132L5.93622 7.0912C5.77874 6.93372 5.7 6.72374 5.7 6.51377C5.7 6.3038 5.77874 6.12007 5.93622 5.96259C6.25118 5.64763 6.74987 5.64763 7.06483 5.96259L10.6869 9.58464L14.3089 5.93634C14.5976 5.62138 15.1226 5.62138 15.4375 5.93634C15.595 6.09382 15.6738 6.27755 15.6738 6.51377C15.6738 6.74999 15.595 6.93372 15.4375 7.0912Z",fill:r}))}),YJ=["color","size"],KJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,YJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 52 52",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M37.3438 16.4782L28.2887 25.5333L37.4095 34.5228C37.8032 34.9165 38 35.3758 38 35.9664C38 36.5569 37.8032 37.0162 37.4095 37.4099C37.0158 37.8036 36.5564 38.0005 35.9659 38.0005C35.3753 38.0005 34.916 37.8036 34.5223 37.4099L25.4672 28.3548L16.4121 37.4099C15.6903 38.1973 14.378 38.1973 13.5906 37.4099C13.1969 37.0162 13 36.4913 13 35.9664C13 35.4414 13.1969 34.9821 13.5906 34.5884L22.6457 25.5333L13.5906 16.4782C13.1969 16.0845 13 15.5595 13 15.0346C13 14.5097 13.1969 14.0504 13.5906 13.6567C14.378 12.8693 15.6247 12.8693 16.4121 13.6567L25.4672 22.7118L34.5223 13.591C35.2441 12.8036 36.5564 12.8036 37.3438 13.591C37.7375 13.9847 37.9344 14.4441 37.9344 15.0346C37.9344 15.6252 37.7375 16.0845 37.3438 16.4782Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M-0.000488281 25.0005C-0.000488281 38.7972 11.2028 50.0005 24.9995 50.0005C38.6925 50.0005 49.9995 38.7972 49.9995 25.0005C49.9995 11.2038 38.7962 0.000488281 24.9995 0.000488281C11.2028 0.000488281 -0.000488281 11.2038 -0.000488281 25.0005ZM3.63022 24.8968C3.63022 13.1748 13.1738 3.52746 24.9995 3.52746C36.8252 3.52746 46.3688 13.1748 46.3688 24.8968C46.3688 36.6187 36.8252 46.266 24.9995 46.266C13.2775 46.266 3.63022 36.6187 3.63022 24.8968Z",fill:r}))}),ZJ=["color","size"],qJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,ZJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M29.9338 5.26853C27.8524 4.75154 25.7006 4.56814 23.5381 4.72351C22.4874 4.799 21.4379 4.95535 20.4183 5.18855L19.3724 0.636496C20.6245 0.350265 21.9128 0.158175 23.2017 0.065597C25.8579 -0.125223 28.5034 0.100753 31.0653 0.737277L29.9338 5.26853Z",fill:r}),y.createElement("path",{opacity:"0.9",d:"M40.6131 11.9278C38.5498 9.48098 35.9044 7.52805 32.963 6.2805L34.7952 1.98303C38.4106 3.51633 41.6615 5.91575 44.1962 8.922L40.6131 11.9278Z",fill:r}),y.createElement("path",{opacity:"0.8",d:"M45.3329 23.5739L45.3303 23.5392C45.097 20.3085 44.1359 17.275 42.4734 14.5227L46.4838 12.1129C48.5302 15.501 49.7133 19.2325 50 23.2036L45.3329 23.5739Z",fill:r}),y.createElement("path",{opacity:"0.7",d:"M46.2688 38.2308L42.2981 35.7565C43.9958 33.0458 45.0372 29.9357 45.3095 26.7618L49.9744 27.1604C49.639 31.0674 48.3577 34.8958 46.2688 38.2308Z",fill:r}),y.createElement("path",{opacity:"0.6",d:"M34.4209 48.1735L32.6626 43.8456C35.6192 42.6505 38.2938 40.7405 40.3975 38.3222L43.9338 41.3828C41.3483 44.3551 38.0588 46.7033 34.4209 48.1735V48.1735Z",fill:r}),y.createElement("path",{opacity:"0.5",d:"M26.8033 49.9345C24.1593 50.1242 21.5262 49.9011 18.9766 49.2716L20.1013 44.7386C22.1729 45.25 24.3148 45.4309 26.4673 45.2766C27.5283 45.2004 28.5879 45.0416 29.6165 44.8049L30.6697 49.3551C29.4061 49.6459 28.1052 49.841 26.8033 49.9345V49.9345Z",fill:r}),y.createElement("path",{opacity:"0.4",d:"M15.2449 48.0311C11.6272 46.5033 8.37276 44.1086 5.83362 41.1063L9.412 38.0952C11.479 40.5388 14.1272 42.4877 17.0704 43.7306L15.2449 48.0311Z",fill:r}),y.createElement("path",{opacity:"0.3",d:"M3.54069 37.9198C1.48217 34.5223 0.292537 30.78 0.00479729 26.7959L0 26.7274L4.66972 26.3918L4.67579 26.478C4.90861 29.7017 5.87511 32.7443 7.54751 35.504L3.54069 37.9198Z",fill:r}),y.createElement("path",{opacity:"0.2",d:"M4.69761 23.2075L0.0335693 22.802C0.374666 18.8955 1.66191 15.0691 3.75587 11.7373L7.72274 14.2175C6.02088 16.9257 4.97478 20.0344 4.69761 23.2075V23.2075Z",fill:r}))}),$J=["color","color2","size"],QJ=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n;e.color2;var i=e.size,a=i===void 0?14:i,o=me(e,$J);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 42 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M42.0001 6.11477C42.0001 4.48089 41.3639 2.94468 40.2086 1.78931C37.8238 -0.595528 33.9433 -0.595878 31.5582 1.78931L25.666 7.68191L22.9908 5.00654C22.5351 4.5509 21.7965 4.5509 21.3407 5.00654L17.8405 8.50695C17.3849 8.96259 17.3849 9.70141 17.8405 10.1572L20.5157 12.8325L3.63971 29.7097C3.5116 29.8378 3.41511 29.9939 3.35783 30.1658L2.27826 33.4048L1.30626 34.3769C-0.435198 36.1186 -0.435314 38.9525 1.30626 40.6943C3.04783 42.436 5.88157 42.4359 7.62314 40.6943L8.59514 39.7223L11.834 38.6426C12.0058 38.5853 12.1619 38.4888 12.29 38.3607L29.1661 21.4835L31.8413 24.1588C32.297 24.6145 33.0357 24.6145 33.4914 24.1588L36.9916 20.6584C37.4472 20.2028 37.4472 19.464 36.9916 19.0082L34.3164 16.3328L40.2086 10.4402C41.3639 9.28486 42.0001 7.74876 42.0001 6.11477ZM20.5157 26.8341H9.81507L22.1658 14.4826L27.516 19.8333L20.5157 26.8341ZM32.6663 21.6836L20.3156 9.332L22.1657 7.48168L34.5163 19.8333L32.6663 21.6836ZM38.5585 8.79014L32.6663 14.6827L27.316 9.332L33.2081 3.4394C34.6833 1.96421 37.0835 1.96409 38.5584 3.4394C40.0263 4.84774 40.0261 7.3818 38.5585 8.79014Z",fill:r}))}),JJ=["color","size"],eI=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,JJ);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 7.75049C0 6.92206 0.671573 6.25049 1.5 6.25049H48.5C49.3284 6.25049 50 6.92206 50 7.75049V9.43806C50 10.2665 49.3284 10.9381 48.5 10.9381H1.5C0.671571 10.9381 0 10.2665 0 9.43806V7.75049ZM0 24.1567C0 23.3283 0.671573 22.6567 1.5 22.6567H48.5C49.3284 22.6567 50 23.3283 50 24.1567V25.8443C50 26.6727 49.3284 27.3443 48.5 27.3443H1.5C0.671571 27.3443 0 26.6727 0 25.8443V24.1567ZM1.5 39.0629C0.671573 39.0629 0 39.7345 0 40.5629V42.2505C0 43.0789 0.671571 43.7505 1.5 43.7505H48.5C49.3284 43.7505 50 43.0789 50 42.2505V40.5629C50 39.7345 49.3284 39.0629 48.5 39.0629H1.5Z",fill:r}))}),eee=["color","size"],tee=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,eee);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 46 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.23229 1.23267C2.20863 0.256387 3.79154 0.256434 4.76782 1.23277L22.9989 19.465L41.2323 1.23267C42.2086 0.256387 43.7915 0.256434 44.7678 1.23277C45.7441 2.20911 45.7441 3.79203 44.7677 4.76831L24.7665 24.7683C24.2977 25.2371 23.6618 25.5005 22.9987 25.5005C22.3357 25.5005 21.6998 25.2371 21.231 24.7682L1.23218 4.7682C0.255899 3.79186 0.255946 2.20895 1.23229 1.23267Z",fill:r}))}),nee=["color","size"],ree=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,nee);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 46 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.2326 1.23271C22.2089 0.256404 23.7918 0.256417 24.7681 1.23274L44.7678 21.2327C45.7441 22.2091 45.7441 23.792 44.7678 24.7683C43.7914 25.7446 42.2085 25.7446 41.2322 24.7682L23.0003 6.53602L4.76775 24.7683C3.79143 25.7446 2.20852 25.7446 1.23222 24.7682C0.255916 23.7919 0.255928 22.209 1.23225 21.2327L21.2326 1.23271Z",fill:r}))}),iee=["color","size"],aee=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,iee);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 47.5006C37.4264 47.5006 47.5 37.427 47.5 25.0006C47.5 12.5742 37.4264 2.50061 25 2.50061C12.5736 2.50061 2.5 12.5742 2.5 25.0006C2.5 37.427 12.5736 47.5006 25 47.5006ZM25 50.0006C38.8071 50.0006 50 38.8077 50 25.0006C50 11.1935 38.8071 0.000610352 25 0.000610352C11.1929 0.000610352 0 11.1935 0 25.0006C0 38.8077 11.1929 50.0006 25 50.0006Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27.7355 35.1357C27.1751 35.7705 26.2217 35.7926 25.6359 35.1773L17.3026 26.423C17.0301 26.1368 16.8819 25.755 16.8752 25.3647C16.8686 24.9745 17.0037 24.5881 17.2652 24.2923L25.5985 14.8647C26.1593 14.2302 27.1128 14.2089 27.6981 14.8247C28.2539 15.4093 28.2679 16.3516 27.7348 16.9546L20.36 25.2978L27.6974 33.0057C28.2536 33.59 28.2681 34.5323 27.7355 35.1357ZM26.6695 34.3756C26.7058 34.3748 26.753 34.3599 26.7984 34.3085C26.9042 34.1886 26.8989 33.9798 26.792 33.8676L19.0594 25.7444C18.8357 25.5095 18.829 25.1425 19.0438 24.8995L26.7983 16.1268C26.9041 16.007 26.899 15.7983 26.7921 15.6859C26.7464 15.6377 26.7001 15.6249 26.6639 15.6256C26.6276 15.6263 26.5805 15.6412 26.5351 15.6926L18.2017 25.1202C18.1562 25.1717 18.1235 25.2514 18.1251 25.3435C18.1266 25.4356 18.1619 25.5128 18.208 25.5612L26.5413 34.3154C26.5871 34.3635 26.6334 34.3763 26.6695 34.3756Z",fill:r}),y.createElement("path",{d:"M26.7984 34.3085C26.753 34.3599 26.7058 34.3748 26.6695 34.3756C26.6334 34.3763 26.5871 34.3635 26.5413 34.3154L18.208 25.5612C18.1619 25.5128 18.1266 25.4356 18.1251 25.3435C18.1235 25.2514 18.1562 25.1717 18.2017 25.1202L26.5351 15.6926C26.5805 15.6412 26.6276 15.6263 26.6639 15.6256C26.7001 15.6249 26.7464 15.6377 26.7921 15.6859C26.899 15.7983 26.9041 16.007 26.7983 16.1268L19.0438 24.8995C18.829 25.1425 18.8357 25.5095 19.0594 25.7444L26.792 33.8676C26.8989 33.9798 26.9042 34.1886 26.7984 34.3085Z",fill:r}))}),oee=["color","size"],see=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,oee);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 47.5006C37.4264 47.5006 47.5 37.427 47.5 25.0006C47.5 12.5742 37.4264 2.50061 25 2.50061C12.5736 2.50061 2.5 12.5742 2.5 25.0006C2.5 37.427 12.5736 47.5006 25 47.5006ZM25 50.0006C38.8071 50.0006 50 38.8077 50 25.0006C50 11.1935 38.8071 0.000610352 25 0.000610352C11.1929 0.000610352 0 11.1935 0 25.0006C0 38.8077 11.1929 50.0006 25 50.0006Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22.2645 14.8655C22.8249 14.2307 23.7783 14.2086 24.3641 14.8239L32.6974 23.5781C32.9699 23.8644 33.1181 24.2461 33.1248 24.6364C33.1314 25.0267 32.9963 25.4131 32.7348 25.7089L24.4015 35.1365C23.8406 35.7709 22.8872 35.7923 22.3019 35.1765C21.7461 34.5919 21.7321 33.6496 22.2652 33.0465L29.6399 24.7034L22.3026 16.9954C21.7464 16.4112 21.7319 15.4689 22.2645 14.8655ZM23.3305 15.6256C23.2942 15.6264 23.247 15.6413 23.2016 15.6927C23.0958 15.8126 23.1011 16.0214 23.208 16.1336L30.9406 24.2568C31.1643 24.4917 31.171 24.8586 30.9562 25.1016L23.2017 33.8744C23.0959 33.9942 23.101 34.2029 23.2079 34.3153C23.2536 34.3634 23.2999 34.3763 23.3361 34.3756C23.3724 34.3748 23.4195 34.36 23.4649 34.3086L31.7983 24.881C31.8438 24.8295 31.8765 24.7497 31.8749 24.6577C31.8734 24.5656 31.838 24.4883 31.792 24.44L23.4587 15.6858C23.4129 15.6377 23.3666 15.6249 23.3305 15.6256Z",fill:r}),y.createElement("path",{d:"M23.2016 15.6927C23.247 15.6413 23.2942 15.6264 23.3305 15.6256C23.3666 15.6249 23.4129 15.6377 23.4587 15.6858L31.792 24.44C31.838 24.4883 31.8734 24.5656 31.8749 24.6577C31.8765 24.7497 31.8438 24.8295 31.7983 24.881L23.4649 34.3086C23.4195 34.36 23.3724 34.3748 23.3361 34.3756C23.2999 34.3763 23.2536 34.3634 23.2079 34.3153C23.101 34.2029 23.0959 33.9942 23.2017 33.8744L30.9562 25.1016C31.171 24.8586 31.1643 24.4917 30.9406 24.2568L23.208 16.1336C23.1011 16.0214 23.0958 15.8126 23.2016 15.6927Z",fill:r}))}),lee=["color","size"],cee=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,lee);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M48.5577 38.9423H34.8557C31.8069 38.9423 29.327 41.4224 29.327 44.4712C29.327 45.9293 28.1406 47.1157 26.6827 47.1157H5.52902C4.07066 47.1157 2.88467 45.9293 2.88467 44.4712V42.5459C2.88467 41.0886 4.07028 39.9025 5.5275 39.9018L9.33952 39.8999C9.34067 39.8999 9.34219 39.8995 9.34334 39.8995C9.38683 39.8995 9.43031 39.8968 9.47418 39.893C9.49211 39.8915 9.50966 39.8884 9.52759 39.8861C9.54628 39.8835 9.56535 39.8819 9.58405 39.8789L19.7636 38.1229C19.7689 38.1217 19.7739 38.1206 19.7788 38.1195C19.7948 38.1164 19.8105 38.113 19.8261 38.1095C19.8517 38.1038 19.8769 38.0981 19.9017 38.0908C19.9192 38.0863 19.9368 38.0809 19.9543 38.0756C19.9776 38.068 20.0008 38.0599 20.0241 38.0512C20.0409 38.0447 20.0581 38.039 20.0748 38.0321C20.1107 38.0168 20.1458 38.0008 20.1805 37.9829C20.1942 37.9756 20.208 37.9672 20.2217 37.9596C20.2461 37.9459 20.2702 37.9321 20.2938 37.9169C20.3083 37.9077 20.3228 37.8978 20.3373 37.8879C20.3602 37.8719 20.3831 37.8551 20.4052 37.8375C20.417 37.8284 20.4292 37.8192 20.4411 37.8093C20.4746 37.7815 20.5074 37.7525 20.5383 37.7212L46.2479 12.0109C48.3097 9.94895 48.3097 6.59377 46.2479 4.53146L43.2632 1.54708C41.2014 -0.515234 37.846 -0.514853 35.7841 1.54708L10.075 27.2574C10.0437 27.2883 10.0147 27.3215 9.9865 27.355C9.97696 27.3665 9.9678 27.3783 9.95865 27.3901C9.9411 27.4127 9.92432 27.4355 9.90829 27.4588C9.89838 27.4729 9.88846 27.4874 9.8793 27.5019C9.86443 27.5252 9.85069 27.5488 9.83734 27.5729C9.82857 27.5885 9.81941 27.6042 9.81102 27.6198C9.79424 27.653 9.77898 27.6862 9.76448 27.7205C9.75723 27.7377 9.75113 27.7556 9.74426 27.7732C9.73625 27.7953 9.72824 27.8178 9.72099 27.8403C9.71527 27.8586 9.70993 27.8769 9.70497 27.8952C9.69849 27.9189 9.69276 27.9429 9.68742 27.9673C9.68361 27.9841 9.67979 28.0009 9.67674 28.0177C9.6756 28.0226 9.67445 28.0272 9.67369 28.0318L8.12378 37.0158L5.52597 37.017C2.47879 37.0185 0 39.4989 0 42.5459V44.4712C0 47.5201 2.48032 50.0005 5.52902 50.0005H26.6827C29.7314 50.0005 32.2117 47.5201 32.2117 44.4712C32.2117 43.0132 33.3977 41.8267 34.8557 41.8267H48.5577C49.3542 41.8267 50 41.1813 50 40.3847C50 39.5878 49.3542 38.9423 48.5577 38.9423ZM12.043 31.2653L16.5306 35.7531L11.1076 36.6885L12.043 31.2653ZM33.5567 7.85382L35.7288 10.026L15.3065 30.4493L13.1344 28.2771L33.5567 7.85382ZM19.5183 34.6613L17.3462 32.4891L37.7689 12.0658L39.941 14.238L19.5183 34.6613ZM37.8239 3.58651C38.7611 2.64958 40.2859 2.64958 41.2235 3.58651L44.2078 6.57126C45.145 7.50858 45.145 9.03376 44.2078 9.97108L41.9804 12.1986L35.5965 5.81401L37.8239 3.58651Z",fill:r}))}),uee=["color","size"],dee=Te(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,a=i===void 0?14:i,o=me(e,uee);return y.createElement("svg",he({ref:t,width:a,height:a,viewBox:"0 0 52 42",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o),y.createElement("path",{d:"M46.4326 40.0282C46.1217 40.5666 45.6098 40.9595 45.0093 41.1204C44.4088 41.2813 43.7691 41.197 43.2307 40.8862C42.6923 40.5754 42.2995 40.0634 42.1386 39.463C41.9777 38.8625 42.0619 38.2227 42.3727 37.6843C45.2819 32.6454 46.0703 26.6571 44.5644 21.0369C43.0584 15.4167 39.3816 10.6249 34.3426 7.71563C25.1427 2.4043 13.7736 4.38306 6.93632 12.1744L14.5457 12.0831H14.5744C15.196 12.0795 15.7937 12.3229 16.2358 12.7599C16.678 13.1969 16.9284 13.7916 16.9321 14.4133C16.9357 15.0349 16.6923 15.6326 16.2553 16.0747C15.8183 16.5169 15.2236 16.7673 14.6019 16.771L2.37222 16.9175H2.34409C2.03391 16.9175 1.72681 16.856 1.44059 16.7364C1.15437 16.6169 0.894721 16.4417 0.676697 16.2211C0.458674 16.0004 0.28661 15.7387 0.170478 15.4511C0.0543471 15.1635 -0.00354164 14.8557 0.000167612 14.5455L0.147346 2.31591C0.151046 2.00811 0.215338 1.70404 0.336549 1.42108C0.457761 1.13812 0.633519 0.881802 0.853788 0.666765C1.07406 0.451728 1.33453 0.282182 1.62032 0.167807C1.90611 0.0534328 2.21164 -0.00353076 2.51944 0.000169355C2.82725 0.00386947 3.13132 0.0681609 3.41428 0.189372C3.69724 0.310584 3.95356 0.486342 4.16859 0.706611C4.38363 0.926881 4.55318 1.18735 4.66755 1.47314C4.78193 1.75894 4.83889 2.06446 4.83519 2.37227L4.77171 7.65586C9.37537 3.16334 15.4496 0.489016 21.8718 0.127065C28.2941 -0.234886 34.6303 1.74001 39.7096 5.6868C44.7889 9.63359 48.2679 15.2855 49.5038 21.5981C50.7397 27.9107 49.6485 34.4574 46.4326 40.0282Z",fill:r}),y.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 28C26.6569 28 28 26.6569 28 25C28 23.3431 26.6569 22 25 22C23.3431 22 22 23.3431 22 25C22 26.6569 23.3431 28 25 28ZM25 32C28.866 32 32 28.866 32 25C32 21.134 28.866 18 25 18C21.134 18 18 21.134 18 25C18 28.866 21.134 32 25 32Z",fill:r}))});function tI(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var ti={Xs:"xs",Sm:"sm",Md:"md",Lg:"lg"},hee="CrossButton",fee=I(I(I(I({},ti.Xs,X(["padding:5px;height:20px;"])),ti.Sm,X(["padding:6px;height:24px;"])),ti.Md,X(["padding:9px;"])),ti.Lg,X(["padding:12px;"])),pee=Z.button.attrs({className:xe(hee,"root")}).withConfig({componentId:"sc-ygfku-0"})(function(e){var t=e.size,n=t===void 0?ti.Lg:t,r=e.theme;return X(["display:flex;justify-content:center;align-items:center;cursor:pointer;border-radius:4px;"," color:",";background:transparent;border:none;transition:all 100ms ease-out;&:hover{color:",";background:",";}&:active{color:",";background:",";}"],fee[n],r.palette[L.IconsSecondary],r.palette[L.IconsPrimary],r.palette[L.BackgroundHover],r.palette[L.IconsPrimaryHover],r.palette[L.BackgroundActive])}),gee=Dt({CrossButton:pee}),mee=function(e){switch(e){case ti.Lg:return 16;case ti.Xs:return 10;case ti.Sm:default:return 12}},hd=ut(function(e,t){var n=he({},(tI(e),e));return y.createElement(gee.CrossButton,he({},n,{ref:t}),y.createElement(zM,{size:mee(n.size)}))});hd.defaultProps={size:ti.Lg},hd.propTypes={size:F.oneOf(lt(ti))};var $s="Select",vee=Z.span.attrs({className:xe($s,"Icon")}).withConfig({componentId:"sc-mfrapg-0"})(function(e){var t=e.theme.palette,n=e.size;return X(["display:flex;flex-shrink:0;color:",";padding:",";"],t[L.IconsPrimary],n===gr.Md?"2.5px":"2px")}),yee=Z.span.attrs({className:xe($s,"tickIcon")}).withConfig({componentId:"sc-mfrapg-1"})(function(e){var t=e.theme.palette;return X(["color:",";"],t[L.AccentStateless])}),bee=Z.div.attrs({className:xe($s,"Container")}).withConfig({componentId:"sc-mfrapg-2"})(function(e){var t=e.fullWidth,n=t===void 0?!1:t;return X(["position:relative;display:inline-flex;",""],n?"width: 100%":"")}),nI=Z(hd).attrs({className:xe($s,"CrossButton")}).withConfig({componentId:"sc-mfrapg-3"})(function(){return X(["display:none;margin-right:6px;"])}),wee=Z($r.Input).attrs({className:xe($s,"root")}).withConfig({componentId:"sc-mfrapg-4"})(function(e){var t=e.theme.palette,n=e.disabled,r=e.readOnly,i=e.size,a=i===void 0?"sm":i,o=e.isValueExists;return X(["cursor:",";user-select:none;gap:0px;background:",";"," ",";"],n||r?"default":"pointer",n?t[L.BackgroundHover]:t[L.BackgroundStateless],o&&` &:hover { `.concat(nI,` { display: flex; } } `),hM[a])}),xee=Z.label.attrs({className:xe($s,"Label")}).withConfig({componentId:"sc-mfrapg-5"})(function(e){var t=e.hideEllipsis,n=e.size,r=n===void 0?gr.Md:n;return` flex-grow: 1; margin-right: `.concat(r===gr.Md?8:12,`px; `).concat(!t&&X(["white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"]),` `)}),Cee=Z.span.attrs({className:xe($s,"Placeholder")}).withConfig({componentId:"sc-mfrapg-6"})(function(e){var t=e.theme.palette,n=e.size;return X(["width:100%;color:",";margin-right:","px;"],t[L.TextPlaceholder],n===gr.Md?16:12)}),See=Z.input.attrs({className:xe($s,"Input"),"aria-hidden":"true",tabindex:"-1"}).withConfig({componentId:"sc-mfrapg-7"})(["left:0;width:100%;bottom:0;opacity:0;position:absolute;pointer-events:none;box-sizing:border-box;"]),bs=Dt({Container:bee,Select:wee,Label:xee,Icon:vee,TickIcon:yee,Input:See,Placeholder:Cee,StyledCrossButton:nI});function QS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eee(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=y.createElement(Pm,null,e);if(t&&e){var a=y.createElement(Wp,null,y.createElement(bs.TickIcon,null,y.createElement(vM,{size:_ee(n)})));if(y.Children.count(e)===1)return y.createElement(y.Fragment,null,i,!r&&a);if(y.Children.count(e)>1&&!y.Children.toArray(e).some(function(o){var s;return(o==null||(s=o.type)===null||s===void 0?void 0:s.displayName)==="MenuItemActions"}))return y.createElement(y.Fragment,null,e,a)}return i},Oee=function(e,t){var n,r,i,a,o=t.value,s=t.multiple,c=s===void 0?!1:s,d=t.size,h=d===void 0?ot.Md:d,b=t.hideMenuItemsActions,m=b===void 0?!1:b,g=t.onClose,v=t.onChange;if(!y.isValidElement(e))return e;if(((n=e.type)===null||n===void 0?void 0:n.displayName)!=="MenuItem")return y.cloneElement(e);var w=e==null||(r=e.props)===null||r===void 0?void 0:r.value,k=c?Array.isArray(o)?o:[]:[o],C=k.length>0&&k.includes(w),_=e==null||(i=e.props)===null||i===void 0?void 0:i.disabled;return y.cloneElement(e,{active:C,size:h,children:kee(e==null||(a=e.props)===null||a===void 0?void 0:a.children,C,h,m),onClick:function(){var f;if(!c&&typeof g=="function"&&g(),typeof v=="function"&&!_&&w!=null&&(f=w.toString())!==null&&f!==void 0&&f.length){var x=w;if(c){x=an(Array.isArray(o)?o:[]);var E=x.indexOf(w);E>-1?x.splice(E,1):x.push(w)}v(x)}}})},JS=function e(t){var n=t.props?t.props.children:t;return Array.isArray(n)?n.map(function(r){return e(r)}).join(" "):Hr(n)==="object"?e(n.props.children):n},Pee=function(e,t){if(e&&e.children){for(var n=t?e.value:e.children;typeof n!="string";)Array.isArray(n)?n=JS(n[1]):n=JS(n);return n}},Tee=function(e){var t=e.value,n=e.multiple,r=n===void 0?!1:n,i=e.children,a=e.showSelectionKey,o=a===void 0?!1:a,s=[];y.Children.forEach(i,function(d){if(y.isValidElement(d)){var h=d?.type,b=h.displayName;b==="MenuItem"&&d.props&&s.push(Eee({},d.props))}});var c=r?s.filter(function(d){return Array.isArray(t)&&t.includes(d.value)}):[s.find(function(d){return d.value===t})];return c.length>0?c.map(function(d){return Pee(d,o)}).join(", "):Array.isArray(t)?t.join(", "):t},Mee=["children","size","error","multiple","onChange","value","fullWidth","selectProps","MenuProps","readOnly","disabled","scroll","placeholder","showSelectionKey","hideMenuItemsActions","showClearIcon","renderLabel","onRequestClose","hideEllipsis"],A0=ut(function(e,t){var n,r=e.children,i=e.size,a=e.error,o=e.multiple,s=e.onChange,c=e.value,d=e.fullWidth,h=e.selectProps,b=e.MenuProps,m=e.readOnly,g=e.disabled,v=e.scroll,w=v===void 0?!0:v,k=e.placeholder,C=e.showSelectionKey,_=e.hideMenuItemsActions,f=e.showClearIcon,x=e.renderLabel,E=e.onRequestClose,M=e.hideEllipsis,j=M===void 0?!1:M,P=me(e,Mee),N=V.useState(void 0),T=Oe(N,2),R=T[0],z=T[1],H=!!R,J=function(K){return z(K.currentTarget)},q=Array.isArray(c)?!!c.length:!!(c!=null&&(n=c.toString())!==null&&n!==void 0&&n.length),Y=function(){E&&E(),z(void 0)},le=function(K){K.stopPropagation(),typeof s=="function"&&s("")};return y.createElement(bs.Container,{ref:t,fullWidth:!!d},y.createElement(bs.Select,he({},P,{disabled:g,size:i,error:a,fullWidth:!!d,readOnly:m,showSelectionKey:C,isValueExists:q,onClick:m||g?void 0:J}),q&&y.createElement(bs.Label,{hideEllipsis:j,size:i},typeof x=="function"?x(c):Tee({value:c,multiple:o,children:r,showSelectionKey:C})),!q&&y.createElement(bs.Placeholder,{size:i},k),!m&&f&&y.createElement(bs.StyledCrossButton,{size:i===ti.Md?ti.Sm:ti.Xs,onClick:le}),y.createElement(bs.Icon,{size:i},y.createElement(Yg,{type:H?"top":"bottom",IconProps:{size:i===ti.Md?11:10}})),y.createElement(bs.Input,h)),y.createElement(Do,he({onClose:Y,scroll:w,open:H,anchorEl:R},b),y.Children.map(r,function(K){return Oee(K,{value:c,multiple:o,size:i,hideMenuItemsActions:_,onClose:Y,onChange:m||g?void 0:s})})))}),Iee={size:ot.Md,error:!1,multiple:!1,fullWidth:!1,readOnly:!1,disabled:!1,showClearIcon:!1,scroll:!0,hideMenuItemsActions:!1};A0.defaultProps=Iee;var Aee=F.oneOfType([F.string,F.number,F.oneOf([null])]),Tm={size:F.oneOf(lt(ot)),error:F.bool,multiple:F.bool,fullWidth:F.bool,children:F.oneOfType([F.element,F.arrayOf(F.element)]),value:F.oneOfType([F.string,F.number,F.bool,F.oneOf([null]),F.arrayOf(Aee)]),onChange:F.func,MenuProps:F.exact(RM),selectProps:F.object,readOnly:F.bool,disabled:F.bool,showClearIcon:F.bool,hideMenuItemsActions:F.bool,showSelectionKey:F.bool,scroll:F.bool,renderLabel:F.func,onRequestClose:F.func,hideEllipsis:F.bool};A0.propTypes=Tm;function eE(e,t,n){var r=function(o){if(typeof e=="function"){var s;e(((s=o.touches)===null||s===void 0?void 0:s[0])||o)}},i=function o(s){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",o),document.removeEventListener("mouseleave",o),document.removeEventListener("touchmove",r),document.removeEventListener("touchend",o),document.removeEventListener("touchcancel",o)},a=function(o){if(document.addEventListener("mousemove",r),document.addEventListener("mouseup",i),document.addEventListener("mouseleave",i),document.addEventListener("touchmove",r),document.addEventListener("touchend",i),document.addEventListener("touchcancel",i),typeof t=="function"){var s;t(((s=o.touches)===null||s===void 0?void 0:s[0])||o)}};return{onMouseDown:a,onTouchStart:a}}function tE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lee(e){for(var t=1;t .item{margin-right:8px;display:flex;justify-content:center;}"]),Yee=Z.div.attrs({className:xe(xa,"select")}).withConfig({componentId:"sc-qj4xo5-12"})(function(e){var t=e.value;return X(["width:",";"],t==="rgb"?"25%":"35%")}),Kee=Z.div.withConfig({componentId:"sc-qj4xo5-13"})({display:"flex",alignItems:"center",gap:"12px"}),Rr=Dt({ColorPickerWrapper:Nee,RangePickerWrapper:Ree,WhiteGradient:Fee,BlackGradient:zee,ColorPointer:Bee,BarWrapper:Hee,Bar:Gee,BarColorStop:Vee,ColorPickerAction:Uee,ColorPickerIcon:Dee,ColorItemsContainer:Xee,ColorItemWrapper:Wee,Select:Yee,SelectWrapper:Kee}),Ky=ut(function(e,t){var n=e.value,r=e.onChange,i=e.checked,a=e.size,o=a===void 0?24:a,s=V.useMemo(function(){return n==="#ffffff"||n==="rgba(0,0,0,0)"?"black":"white"},[n]);return y.createElement(Rr.ColorItemWrapper,{ref:t,color:n,size:o,stroke:n==="rgba(0,0,0,0)"?"#a8a8a8":"#E9EEF2",value:n},y.createElement("input",{type:"radio",value:n,checked:i,onChange:r}),i&&y.createElement(vM,{color:s}))});Ky.defaultProps={},Ky.propTypes={value:F.string.isRequired,checked:F.bool,onChange:F.func.isRequired,size:F.number};var Zee=["defaultColor","onChange","pinnedColors","showTransparentColor","hidePinIcon","containerProps"];function nE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V4(e){for(var t=1;t255||Number.isNaN(Pe))){var Pt=le;Pt[Ze]=Pe;var kt=BP.apply(void 0,an(Pt));K(an(Pt)),Bw(kt)&&(M(V4(V4({},E),{},{color:kt})),Se(kt))}},Me=function(Pe){Pe.includes("rgb")?K(i8(Pe)):K(jp(Pe))},Ye=function(Pe){return v(Pe)?Df:Pe},He=function(Pe){if(ee!==null){var Ze=pl(ee),Pt=Ze.width,kt=Ze.height,En=L5(Pe),Vt=MD(En[0],En[1]/100,En[2]/100),on=A5(Vt[1],0,100,0,Pt),si=kt-A5(Vt[2],0,100,0,kt);M({color:Ye(Pe),pointer:{left:on,top:si}}),Se(Pe),Me(Pe),typeof i=="function"&&i(Ye(Pe),Ie(Pe),se(N))}},We=function(Pe,Ze,Pt){if(ee!==null){var kt=pl(ee),En=kt.width,Vt=kt.height,on=L5(Pt),si=Oe(on,1),Ca=si[0],Sa=Rc(Pe,0,En)||0,Ke=Rc(Ze,0,Vt)||0,et=TD(Ca,Sa/En,(Vt-Ke)/Vt),It=PD(et[0],et[1],et[2]);M({color:It,pointer:{left:Sa,top:Ke}}),typeof i=="function"&&i(It,"rgb(".concat(jp(It).join(", "),")"),se(N))}},_t=function(Pe){var Ze=we;if(Ze!==null){var Pt=pl(Ze),kt=Pt.width,En=Rc(Math.round(A5(Pe,0,kt,0,U4)),0,U4),Vt=Ze.querySelector("[data-hue='".concat(En,"']")),on=Vt.style.backgroundColor;return _({color:on,pointerLeft:Rc(Pe,0,kt)}),on}return C.color},gt=function(Pe){var Ze=we;if(Ze!==null){var Pt,kt=pl(Ze),En=kt.left,Vt=((Pt=Pe.touches)===null||Pt===void 0?void 0:Pt[0])||Pe,on=_t(Vt.pageX-En);We(E.pointer.left,E.pointer.top,on)}},mt=function(Pe){var Ze=ee;if(Ze!==null){var Pt=pl(Ze),kt=Pt.left,En=Pt.top,Vt=Pt.height,on=Pt.width,si=Pe?Rc(Pe.pageX-kt,0,on):E.pointer.left||0,Ca=Pe?Rc(Pe.pageY-En,0,Vt):E.pointer.left||0;We(si,Ca,C.color)}},Ge=function(Pe){Pe.key!=="ArrowLeft"&&Pe.key!=="ArrowRight"||_t(C.pointerLeft+(Pe.key==="ArrowLeft"?-1:1))},Ve=function(Pe){var Ze=0;Pe.key==="ArrowLeft"||Pe.key==="ArrowUp"?Ze=-1:(Pe.key==="ArrowRight"||Pe.key==="ArrowDown")&&(Ze=1),Ze&&We((E.pointer.left||0)+(["ArrowLeft","ArrowRight"].includes(Pe.key)?Ze:0),(E.pointer.top||0)+(["ArrowUp","ArrowDown"].includes(Pe.key)?Ze:0),C.color)},Mn=function(Pe){var Ze=Bw(Pe);Ze&&He(Pe),Q(Pe)};V.useEffect(function(){Se(E.color),He(E.color)},[we]),V.useEffect(function(){Q(E.color),Me(E.color)},[E.color]);var Dn=V.useMemo(function(){return an(new Array(U4+1)).map(function(Pe,Ze){return y.createElement(Rr.BarColorStop,{key:Ze,$color:"hsl(".concat(Ze,", 100%, 50%)"),"data-hue":Ze})})},[]),fn=eE(gt,gt),Fo=eE(mt,mt);return y.createElement(Rr.ColorPickerWrapper,he({ref:t},m),y.createElement(Rr.ColorPickerAction,null,y.createElement(Rr.SelectWrapper,null,y.createElement(Rr.Select,{value:H},y.createElement(A0,{size:"sm",value:H,MenuProps:V4({zIndex:11112},b),onChange:function(Pe){return J(Pe)},fullWidth:!0,hideEllipsis:!0},y.createElement(ya,{value:"hex"},"Hex"),y.createElement(ya,{value:"rgb"},"RGB"))),H==="hex"?y.createElement(lc,{size:"sm",error:!/^#([\da-f]{3}){1,2}$/i.test(E.color),value:oe,onChange:function(Pe){return Mn(Pe.target.value)},style:{width:"45%"}}):le.map(function(Pe,Ze){return y.createElement(lc,{key:Ze,size:"sm",value:Pe,onChange:function(Pt){var kt;return Ne(Number((kt=Pt.target)===null||kt===void 0?void 0:kt.value),Ze)},style:{width:"20%"}})})),E.color!==Df&&!h&&y.createElement(Rr.ColorPickerIcon,{onClick:function(){return N.some(function(Pe){return ve(Pe)})?Ae(E.color,"delete"):Ae(E.color,"add")}},N.some(function(Pe){return ve(Pe)})?y.createElement(JM,null):y.createElement(LJ,null))),y.createElement(Rr.RangePickerWrapper,he({ref:ue,color:C.color},Fo),y.createElement(Rr.WhiteGradient,null),y.createElement(Rr.BlackGradient,null),y.createElement(Rr.ColorPointer,{tabIndex:-1,left:E.pointer.left||0,top:E.pointer.top||0,onKeyDown:Ve,pointerColor:oe,considerTopWidth:!0})),y.createElement(Rr.BarWrapper,fn,y.createElement(Rr.Bar,{ref:W},y.createElement("tbody",null,y.createElement("tr",null,Dn))),y.createElement(Rr.ColorPointer,{tabIndex:-1,left:C.pointerLeft,onKeyDown:Ge,considerTopWidth:!1,pointerColor:oe,style:{top:-3}})),y.createElement(Rr.ColorItemsContainer,null,N.map(function(Pe){return y.createElement("div",{className:"item",key:Pe},y.createElement(Ky,{value:Pe,checked:ve(Pe),onChange:function(Ze){return He(Ze.target.value)}}))})))});Zy.defaultProps={defaultColor:"#000000",pinnedColors:[],showTransparentColor:!1,hidePinIcon:!1},Zy.propTypes={defaultColor:F.string,onChange:F.func,pinnedColors:F.array,showTransparentColor:F.bool,hidePinIcon:F.bool};var qee=I(I(I({},Fu.Primary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";&:hover{background-color:",";}&:focus{background-color:",";}&:active{background-color:",";}"," &:disabled{color:",";background:",";cursor:default;}"],t[L.AccentStateless],t[L.IconsInvert],t[L.AccentPrimaryHover],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive],n&&X(["background-color:",";&:hover,&:focus{background-color:",";}"],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive]),t[L.BordersDisabled],t[L.Accent_1_2_Opacity])}),Fu.Secondary,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:",";color:",";border:1px solid ",";&:hover{color:",";background-color:",";}&:focus{background-color:",";color:",";border:1px solid ",";}&:active{color:",";background-color:",";}"," &:disabled{color:",";background:",";border:none;cursor:default;}"],t[L.BackgroundStateless],t[L.AccentStateless],t[L.AccentStateless],t[L.IconsInvert],t[L.AccentPrimaryHover],t[L.Accent_1_2_Opacity],t[L.AccentPrimaryActive],t[L.AccentPrimaryActive],t[L.IconsInvert],t[L.AccentPrimaryActive],n&&X(["color:",";background-color:",";&:hover,&:focus{color:",";background-color:",";}"],t[L.IconsInvert],t[L.AccentPrimaryActive],t[L.IconsInvert],t[L.AccentPrimaryActive]),t[L.BordersDisabled],t[L.Accent_1_2_Opacity])}),Fu.Basic,function(e){var t=e.theme.palette,n=e.active;return X(["background-color:transparent;color:",";border:none;&:hover{background-color:",";color:",";}&:focus{background-color:",";color:",";}&:active{background-color:",";color:",";}"," &:disabled{background-color:transparent;color:",";cursor:default;}"],t[L.IconsPrimary],t[L.BackgroundHover],t[L.IconsPrimaryHover],t[L.BackgroundActive],t[L.LinkActive],t[L.BackgroundActive],t[L.LinkActive],n&&X(["background-color:",";color:",";&:hover,&:focus{background-color:",";color:",";}"],t[L.BackgroundActive],t[L.LinkActive],t[L.BackgroundActive],t[L.LinkActive]),t[L.BordersDisabled])}),$ee=I(I(I(I({},it.Xs,X(["padding:6px;"])),it.Sm,X(["padding:9px;"])),it.Md,X(["padding:12px;"])),it.Lg,X(["padding:11px;"])),Qee="IconButton",Jee=Z(Fa.Button).attrs({className:xe(Qee,"root")}).withConfig({componentId:"sc-10edh45-0"})(function(e){var t=e.color,n=t===void 0?Fu.Secondary:t,r=e.size,i=r===void 0?it.Md:r;return X([""," ",""],$ee[i],qee[n])}),ete=Dt({IconButton:Jee}),tte=["children"],Ka=ut(function(e,t){var n=e.children,r=me(e,tte);return y.createElement(ete.IconButton,he({},r,{ref:t}),n&&(typeof n=="function"?n({size:Bl(r.size)}):n))});Ka.defaultProps={size:it.Md,color:Fu.Secondary,active:!1},Ka.propTypes={children:F.oneOfType([F.node,F.func]).isRequired,size:F.oneOf(lt(it)),color:F.oneOf(lt(Fu)),disabled:F.bool,active:F.bool};var W4=function(e,t){e.preventDefault(),e.button===0&&t&&t(e)},nte=function(e){var t=e.theme.palette;return X(["background:"," !important;border:1px solid "," !important;"],t[L.BackgroundSecondary],t[L.Error])},rte=I(I({},ot.Sm,function(){return X(["height:136px;"])}),ot.Md,function(){return X(["height:152px;"])}),rI=I(I({},ot.Sm,function(e){var t=e.theme.typography.font;return X(["padding:8px 12px;",""],t[_e.InputMd])}),ot.Md,function(e){var t=e.theme.typography.font;return X(["padding:8px 16px;",""],t[_e.InputLg])}),Mm="Textarea",ite=Z.div.attrs({className:xe(Mm,"root")}).withConfig({componentId:"sc-1usif6k-0"})(function(e){var t=e.size,n=t===void 0?ot.Md:t,r=e.error,i=r===void 0?!1:r,a=e.fullWidth,o=a===void 0?!1:a,s=e.readOnly,c=s===void 0?!1:s,d=e.disabled,h=d===void 0?!1:d,b=e.autoSize,m=b===void 0?!1:b,g=e.theme;return X(["position:relative;display:inline-flex;flex-direction:column;align-items:flex-end;justify-content:space-between;cursor:text;box-sizing:border-box;transition:all 100ms ease-out;width:",";pointer-events:",";background-color:",";border-radius:",";border:1px solid ",";color:",";"," "," &:hover{color:",";}"," ",""],o?"100%":"300px",h?"none":"auto",bM(c,h),g.shape.borderRadius[ga.Md],xM(c,h),h?g.palette[L.TextPlaceholder]:g.palette[L.TextPrimary],rte[n],!c&&!h&&X(["&:focus-within{background-color:","!important;border:1px solid ",";&:hover{border:1px solid ",";}}&:hover{background-color:",";border:1px solid ",";}"],g.palette[L.BackgroundSecondary],g.palette[L.AccentStateless],g.palette[L.AccentStateless],g.palette[L.BackgroundStateless],g.palette[L.BordersPrimaryHover]),wM(c,h),i&&nte,m&&X(["width:auto;height:auto;"]))}),ate=Z.textarea.attrs({className:xe(Mm,"Base")}).withConfig({componentId:"sc-1usif6k-1"})(function(e){var t=e.theme.palette,n=e.readOnly,r=n===void 0?!1:n,i=e.size,a=i===void 0?ot.Md:i;return X(["display:block;width:100%;height:100%;color:inherit;outline:none;resize:none;min-width:0;margin:0;padding:0;border:0;background-color:transparent;outline:none;font-size:inherit;line-height:inherit;color:inherit;font-weight:inherit;font-family:inherit;box-sizing:border-box;flex:1;"," ",";&::placeholder{color:",";}::-webkit-scrollbar{width:12px;}::-webkit-scrollbar-track{width:8px;}::-webkit-scrollbar-thumb{background:",";border-radius:8px;border:4px solid ",";}"],r&&"padding-bottom: 0px;",rI[a],t[L.TextPlaceholder],t[L.BorderPrimaryStateless],t[L.BackgroundStateless])}),ote=Z.div.attrs({className:xe(Mm,"ActionsButtonsWrapper")}).withConfig({componentId:"sc-1usif6k-2"})(function(e){var t=e.size,n=t===void 0?ot.Md:t;return X(["display:flex;align-items:center;width:100%;column-gap:12px;box-sizing:border-box;",";.SfxButton-Label{font-weight:500;}"],rI[n])}),ste=Z.span.attrs({className:xe(Mm,"CopyIcon")}).withConfig({componentId:"sc-1usif6k-3"})(function(e){var t=e.theme.palette;return X(["cursor:pointer;color:",";margin-left:auto;"],t[L.IconsPrimary])}),Rf=Dt({Textarea:ite,CopyIcon:ste,Base:ate,ActionsButtonsWrapper:ote}),lte=["fullWidth","size","value","readOnly","disabled","error","cols","rows","copyTextMessage","copySuccessIcon","showActionButton","showClearButton","showCopyIcon","disableActionButton","isActionButtonLoading","actionButtonLabel","clearAllButtonLabel","onClickActionButton","onClear","onChange"];function rE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cte(e){for(var t=1;tHe.clientHeight&&$({paddingRight:i===gr.Md?"4px":"0px"})},[(n=J.current)===null||n===void 0?void 0:n.scrollHeight,i]),V.useEffect(function(){setTimeout(function(){return D(!1)},2e3)},[W]),V.useEffect(function(){ve(a)},[a]);var Ne=function(){setTimeout(function(){ce(!0)},150)},Me=function(){setTimeout(function(){ce(!1)},200)},Ye=function(){return y.createElement($r.NotificationBox,{size:i,isTextarea:!0},y.createElement($r.NotificationIcon,null,g),y.createElement($r.NotificationText,null,m))};return y.createElement(Rf.Textarea,{size:i,value:ue,onMouseEnter:Ne,onMouseLeave:Me,readOnly:o,disabled:s,fullWidth:!!r,error:c,autoSize:!!d||!!h},y.createElement(Rf.Base,he({},H,{value:ue,ref:q,size:i,onChange:Ae,readOnly:o,disabled:s,style:cte({},Q)})),(w||C||f)&&y.createElement(Rf.ActionsButtonsWrapper,{size:i},w&&y.createElement(Ci,{color:"link-primary",size:"sm",disabled:E,loading:j,onMouseDown:function(He){return W4(He,se)}},P),C&&y.createElement(Ci,{color:"link-secondary",size:"sm",onMouseDown:function(He){return W4(He,Ie)}},N),f&&y.createElement(Rf.CopyIcon,{showCopyIcon:K&&ue.length>0,size:i,onMouseDown:function(He){return W4(He,Se)}},y.createElement(yM,{size:Bl(i)}),W&&Ye())))});y7.defaultProps={size:ot.Md,error:!1,fullWidth:!1,readOnly:!1,disabled:!1,disableActionButton:!1,isActionButtonLoading:!1,actionButtonLabel:"Action",clearAllButtonLabel:"Clear all"};var iI={error:F.bool,readOnly:F.bool,disabled:F.bool,fullWidth:F.bool,disableActionButton:F.bool,isActionButtonLoading:F.bool,value:F.any,size:F.oneOf(lt(ot)),copySuccessIcon:F.oneOfType([F.node,F.func]),copyTextMessage:F.string,cols:F.number,rows:F.number,showActionButton:F.bool,showClearButton:F.bool,showCopyIcon:F.bool,actionButtonLabel:F.string,clearAllButtonLabel:F.string,onClickActionButton:F.func,onClear:F.func};y7.propTypes=iI;var $g={Input:"input",Textarea:"textarea"},ute="InputGroup",dte=Z.div.attrs({className:xe(ute,"root")}).withConfig({componentId:"sc-zhtjwh-0"})(["","{margin-top:4px;}","{margin-bottom:4px;}"],BM.FormHint,Vp.Label),aI=Dt({InputGroup:dte}),hte=["children","type","error","label","hint","LabelProps","InputProps","inputProps","inputRef","TextareaProps","readOnly","disabled","size","value"];function iE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fte(e){for(var t=1;t input{border:0px;clip:rect(0px,0px,0px,0px);height:100%;margin:-1px;overflow:hidden;padding:0px;position:absolute;white-space:nowrap;width:100%;direction:ltr;}&::before{position:absolute;content:'';border-radius:inherit;width:100%;height:100%;box-shadow:0px 3px 1px -2px rgb(0 0 0 / 20%),0px 2px 2px 0px rgb(0 0 0 / 14%),0px 1px 5px 0px rgb(0 0 0 / 12%);}&::after{position:absolute;content:'';border-radius:50%;width:42px;height:42px;top:50%;left:50%;transform:translate(-50%,-50%);}"],t[L.LinkActive])}),sne=Z.div.attrs({className:xe(fc,"mark")}).withConfig({componentId:"sc-1xuruq0-5"})(["padding:4px;"]),lne=Z.span.attrs({className:xe(fc,"mark-text")}).withConfig({componentId:"sc-1xuruq0-6"})(function(e){var t=e.theme.palette;return X(["position:absolute;top:20px;font-size:14px;transform:translateX(-10%);color:",";"],t[L.TextPrimary])}),Ll=Dt({RotationSliderList:nne,RotationSliderBigDot:rne,RotationSliderSmallDotWrapper:ine,RotationSliderSmallDot:ane,RotationSliderControl:one,RotationSliderMark:sne,RotationSliderMarkText:lne}),cne=["min","max","angle","onChange","onMouseDown","onMouseUp","step","labelTooltipOptions","annotation","hideMarkText","showCurrentMarkText","value","railProps","trackProps","thumbProps","labelTooltipProps","markStyles","markTextStyles"];function cE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Pr(e){for(var t=1;ta?a:f *{color:",";}}",""],n?"none":"flex",t[L.BackgroundActive],t[L.AccentStateless],r&&X(["background-color:",";& > *{color:"," !important;}"],t[L.BackgroundActive],t[L.AccentStateless]))}),kne=Z.div.attrs({className:xe(Ei,"text")}).withConfig({componentId:"sc-1riasfx-8"})(function(e){var t=e.theme,n=t.palette,r=t.typography.font,i=e.font,a=e.isCollapsed;return X(["flex:1 1 auto;color:",";",";transition:color 100ms ease-out;display:",";user-select:none;"],n[L.TextPrimary],r[i||_e.LabelLarge],a&&"none")}),One=Z.div.attrs({className:xe(Ei,"icon")}).withConfig({componentId:"sc-1riasfx-9"})(function(e){var t=e.theme.palette,n=e.isCollapsed;return X(["display:flex;flex-shrink:0;color:",";margin-right:",";transition:color 100ms ease-out;"],t[L.IconsPrimary],n?"0px":"12px")}),uI=Z.div.attrs({className:xe(Ei,"item-button")}).withConfig({componentId:"sc-1riasfx-10"})(function(e){var t=e.theme.palette,n=e.isCollapsed,r=e.selected;return X(["display:flex;justify-content:",";align-items:center;border-radius:4px;box-sizing:border-box;text-align:left;padding:",";width:",";margin-bottom:8px;margin:",";transition:background-color 150ms cubic-bezier(0.4,0,0.2,1) 0ms;cursor:pointer;&:hover{background-color:",";& > *{color:",";}}",""],n?"center":"flex-start",n?"12px 0px":"13px 16px",n&&"56px",n&&"8px auto",t[L.BackgroundActive],t[L.AccentStateless],r&&X(["background-color:",";& > *{color:",";}"],t[L.BackgroundActive],t[L.AccentStateless]))}),Pne=Z(uI).attrs({className:xe(Ei,"item-button")}).withConfig({componentId:"sc-1riasfx-11"})(function(e){var t=e.isCollapsed;return X(["",""],!t&&X(["padding:13px 16px;"]))}),Tne=Z(Kg).attrs({className:xe(Ei,"accordion")}).withConfig({componentId:"sc-1riasfx-12"})(function(e){var t=e.theme,n=t.palette,r=t.typography.font,i=e.selected;return X(["","{padding:13px 16px;transition:background-color 100ms ease-out;","{",";color:",";}&:hover{background-color:",";& > *{color:",";}}","}","{padding:0px 16px;}"],zu.Header,zu.Label,r[_e.LabelLargeEmphasis],n[L.TextPrimary],n[L.BackgroundActive],n[L.AccentStateless],i&&X(["","{color:",";}"],zu.Label,n[L.AccentStateless]),mM.AccordionDetails)}),ca=Dt({TemporaryDrawer:yne,PersistentDrawer:bne,Drawer:wne,Header:xne,Body:Cne,Footer:Sne,List:Ene,Item:_ne,ItemButton:uI,Icon:One,ItemText:kne,DrawerAccordion:Tne,CollapsedButton:Pne}),N0=V.createContext({isCollapsed:!1,size:20}),Mne=["children","font"],e6=ut(function(e,t){var n=e.children,r=e.font,i=me(e,Mne),a=V.useContext(N0),o=a.isCollapsed;return y.createElement(ca.ItemText,he({font:r,isCollapsed:o},i,{ref:t}),n)});e6.defaultProps={},e6.propTypes={font:F.oneOf(lt(_e))};var Ine=["children","size"],t6=ut(function(e,t){var n=e.children,r=e.size,i=me(e,Ine),a=V.useContext(N0),o=a.isCollapsed,s=a.size;return y.createElement(ca.Icon,he({},i,{isCollapsed:o,ref:t}),n&&typeof n=="function"?n({size:s||r}):n)});t6.defaultProps={size:20},t6.propTypes={size:F.number,children:F.oneOfType([F.node,F.func]).isRequired};var Ou={Auto:"auto",Temporary:"temporary",Persistent:"persistent"},Ane=["children","open","iconsSize","collapsed","top","hideBackdrop","disablePortal","collapseButtonLabel","persistentDrawerStyles","temproryDrawerStyles","variant","onClose","onCollapse","onCollapseClick"];function hE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function X4(e){for(var t=1;t0}re.key==="Escape"&&we&&le()};V.useEffect(function(){return document.addEventListener("keydown",K),function(){return document.removeEventListener("keydown",K)}},[]);var ce=function(re){return y.createElement(ca.Drawer,he({open:r,top:c},M,{isCollapsed:re?R:!1,ref:t}),n,re&&y.createElement(ca.CollapsedButton,{onClick:Y,isCollapsed:R},y.createElement(t6,null,R?function(we){return y.createElement(see,he({},we,{size:a}))}:function(we){return y.createElement(aee,he({},we,{size:a}))}),y.createElement(e6,null,m)))},ne=function(){return!d&&r?y.createElement(Jy,{onClick:f}):null},oe=function(){return h?y.createElement(ca.TemporaryDrawer,{ref:H,style:X4({},k),open:r},ne(),ce(!1)):P0.createPortal(y.createElement(ca.TemporaryDrawer,{ref:H,style:X4({},k),open:r},ne(),ce(!1)),q)},Q=function(){return y.createElement(ca.PersistentDrawer,{style:X4({},v)},ce(!0))},$=function(){switch(_){case Ou.Auto:return P?oe():Q();case Ou.Temporary:return oe();case Ou.Persistent:return Q();default:return P?oe():Q()}};return y.createElement(N0.Provider,{value:{isCollapsed:P?!1:R,size:J}},$())}),Lne={open:!1,hideBackdrop:!1,iconsSize:20,variant:Ou.Auto};C7.defaultProps=Lne;var jne={onClose:F.func.isRequired,onCollapse:F.func,onCollapseClick:F.func,children:F.node.isRequired,top:F.number,iconsSize:F.number,open:F.bool,hideBackdrop:F.bool,collapsed:F.bool,disablePortal:F.bool,collapseButtonLabel:F.string,persistentDrawerStyles:F.object,temproryDrawerStyles:F.object,variant:F.oneOf(lt(Ou))};C7.propTypes=jne;var Nne=["children"],n6=ut(function(e,t){var n=e.children,r=me(e,Nne),i=V.useContext(N0),a=i.isCollapsed;return y.createElement(ca.Header,he({},r,{isCollapsed:a,ref:t}),n)});n6.defaultProps={},n6.propTypes={};var Dne=["children"],r6=ut(function(e,t){var n=e.children,r=me(e,Dne);return y.createElement(ca.Body,he({},r,{ref:t}),n)});r6.defaultProps={},r6.propTypes={};var Rne=["children"],i6=ut(function(e,t){var n=e.children,r=me(e,Rne);return y.createElement(ca.List,he({},r,{ref:t}),n)});i6.defaultProps={},i6.propTypes={};var Fne=["children","selected"],a6=ut(function(e,t){var n=e.children,r=e.selected,i=me(e,Fne),a=V.useContext(N0),o=a.isCollapsed;return y.createElement(ca.Item,he({selected:r,isCollapsed:o},i,{ref:t}),n)});a6.defaultProps={selected:!1},a6.propTypes={selected:F.bool};var zne=Z.div.withConfig({componentId:"sc-1rfxjvn-0"})(["display:flex;width:100%;justify-content:space-between;gap:10px;.SfxSlider-root{min-width:100px;}",""],function(e){var t=e.isPhoneScreen;return t&&` flex-direction: column; .SfxSlider-root { min-width: 230px; } `}),Kl=Z.div.withConfig({componentId:"sc-1rfxjvn-1"})(["display:flex;flex-direction:column;"]),Zl=Z($t).withConfig({componentId:"sc-1rfxjvn-2"})(["",";"],function(e){var t=e.theme;return t.typography.font[_e.LabelExtraSmallUp]}),ql=Z.div.withConfig({componentId:"sc-1rfxjvn-3"})(["display:flex;align-items:center;"]),$l=Z(lc).withConfig({componentId:"sc-1rfxjvn-4"})(["display:inline-block;width:40px;height:28px;padding:6px 2px;margin-left:10px;border:none;.SfxInput-Base{text-align:center;width:100%;min-width:100%;max-width:100%;}"]),fE=-1,Y4={brightness:0},pE=1,Bne={width:150,padding:0,margin:0},Hne=function(e){var t,n,r=e.t,i=T0(yn.Filters.Brighten,Y4),a=Oe(i,2),o=a[0],s=a[1],c=function(d){s({brightness:Hn(d,fE,pE)})};return y.createElement(Kl,{className:"FIE_brightness-option-wrapper"},y.createElement(Zl,{className:"FIE_brightness-option-label"},r("brightness")),y.createElement(ql,null,y.createElement($n,{className:"FIE_brightness-option",min:fE,step:.05,max:pE,width:"124px",value:(t=o.brightness)!==null&&t!==void 0?t:Y4.brightness,onChange:c,style:Bne}),y.createElement($l,{value:(n=o.brightness)!==null&&n!==void 0?n:Y4.brightness,onChange:function(d){var h=d.target.value;return c(h)}})))},em=function(e,t){return Math.min(e.width/t.width,e.height/t.height)||va},gE=[{titleKey:"custom",ratio:MT,icon:MQ,hide:function(){var e=0g.width||M.height>g.height?em(g,M):va}})),n()};return y.createElement(y.Fragment,null,y.createElement(Gne,null,y.createElement(c7,{className:"FIE_crop-tool-label FIE_selected-crop-preset-label",isPhoneScreen:C},a(b||"cropTool")),y.createElement(Vne,{className:"FIE_crop-presets-opener-button",color:"link-secondary",size:"lg"},t?y.createElement(ree,{size:10}):y.createElement(tee,{size:10}))),y.createElement(Do,{className:"FIE_crop-presets-menu",anchorEl:t,enableOverlay:!0,onClose:n,open:!!t,position:"top",popperOptions:{modifiers:[{name:"offset",options:{offset:[0,4]}}]},maxHeight:"100%"},y.createElement(Wne,null,_.map(function(x){var E=x.titleKey,M=x.descriptionKey,j=x.ratio,P=x.width,N=x.height,T=x.groups,R=x.icon,z=x.disableManualResize,H=x.noEffect;return T?y.createElement(fI,{key:E,titleKey:E,groups:T,Icon:R,theme:w,onItemSelect:f,t:a,disableManualResize:z}):y.createElement(S7,{key:j,ratio:j??bn(P/N),titleKey:E,t:a,description:a(M),Icon:R,isActive:(h||d8)===(j??bn(P/N))&&!m,theme:w,width:P,height:N,onClick:f,disableManualResize:z,noEffect:H})}))))};pI.defaultProps={anchorEl:null};var gI=function(e){var t=e.selectTool,n=e.isSelected,r=$e(),i=r.config,a=r.t,o=V.useState(),s=Oe(o,2),c=s[0],d=s[1];return y.createElement(Qn,{className:"FIE_crop-tool",id:de.CROP,Icon:tQ,onClick:function(h,b){t(h),d(b.currentTarget)},isSelected:n},i[de.CROP].noPresets?y.createElement(c7,{className:"FIE_crop-tool-label"},a("cropTool")):y.createElement(pI,{anchorEl:c,onClose:function(){d(null)}}))};gI.defaultProps={isSelected:!1};var Zne={transform:"scaleX(-1)"},mI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t,i=$e(),a=i.dispatch,o=i.adjustments.isFlippedX,s=ba(320),c=V.useMemo(function(){return{reverseLabelOfCurrXFlipDir:r(o?"unFlipX":"flipX"),reverseIconOfCurrXFlipDir:function(){return y.createElement(jQ,{size:s?20:16,style:o?Zne:void 0})}}},[o]),d=c.reverseLabelOfCurrXFlipDir,h=c.reverseIconOfCurrXFlipDir,b=V.useCallback(function(){a({type:T7,payload:{direction:u8.X}})},[]),m=V.useCallback(function(g){t(g),b()},[]);return y.createElement(Qn,{className:"FIE_flip-x-tool-button",id:de.FLIP_X,label:d,Icon:h,onClick:m,isSelected:n})};mI.defaultProps={isSelected:!1};var qne={transform:"scaleY(-1)"},vI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t,i=$e(),a=i.dispatch,o=i.adjustments.isFlippedY,s=ba(320),c=V.useMemo(function(){return{reverseLabelOfCurrXFlipDir:r(o?"unFlipY":"flipY"),reverseIconOfCurrXFlipDir:function(){return y.createElement(AQ,{size:s?20:16,style:o?qne:void 0})}}},[o]),d=c.reverseLabelOfCurrXFlipDir,h=c.reverseIconOfCurrXFlipDir,b=V.useCallback(function(){a({type:T7,payload:{direction:u8.Y}})},[]),m=V.useCallback(function(g){t(g),b()},[]);return y.createElement(Qn,{className:"FIE_flip-y-tool-button",id:de.FLIP_Y,label:d,Icon:h,onClick:m,isSelected:n})};vI.defaultProps={isSelected:!1};var yI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_rotate-tool-button",id:de.ROTATE,label:r("rotateTool"),Icon:YM,onClick:t,isSelected:n})};yI.defaultProps={isSelected:!1};var $ne=Z.div.withConfig({componentId:"sc-wbx58r-0"})(["display:flex;align-items:center;gap:16px;"]),Qne=Z(Qy).withConfig({componentId:"sc-wbx58r-1"})([".SfxRotationSlider-control{width:1px;height:10px;background-color:",";&:before{box-shadow:unset;}}.SfxRotationSlider-mark,.SfxRotationSlider-small-dot-wrapper{padding:0;.SfxRotationSlider-mark-text{top:10px;}.SfxRotationSlider-big-dot{width:4px;height:4px;}.SfxRotationSlider-small-dot{width:1px;height:1px;}}.SfxRotationSlider-list{gap:4px;}"],function(e){var t=e.theme.palette;return t[L.IconsSecondary]}),Jne=Z(Ka).withConfig({componentId:"sc-wbx58r-2"})([""]),ere=function(){var e=$e(),t=e.dispatch,n=e.adjustments.rotation,r=n===void 0?0:n,i=e.resize,a=i===void 0?{}:i,o=e.config,s=o[de.ROTATE],c=ba(),d=lM(function(h,b){var m=Hn(b,-180,180);if(t({type:GI,payload:{rotation:m}}),a.width&&a.height){var g=Gs(a.width,a.height,m);t({type:Gu,payload:{width:g.width,height:g.height}})}},20);return s.componentType==="buttons"?y.createElement(y.Fragment,null,y.createElement(Qn,{className:"FIE_rotate_button_left",id:de.IMAGE,label:"-".concat(s.angle,"°"),Icon:YM,onClick:function(h){var b=r-s.angle;d(h,b)}}),y.createElement(Qn,{className:"FIE_rotate_button_right",id:de.IMAGE,label:"+".concat(s.angle,"°"),Icon:mQ,onClick:function(h){var b=r+s.angle;d(h,b)}})):y.createElement($ne,null,y.createElement(Qne,{className:"FIE_rotate-slider",showCurrentMarkText:!0,min:-180,max:180,step:c?s.angle/3:1,value:r,angle:s.angle||90,onChange:d}),y.createElement(Jne,{size:"sm",color:"basic",onClick:function(h){return d(h,r+90)}},y.createElement(dee,{width:15})))},bI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_contrast-tool-button",id:de.CONTRAST,label:r("contrastTool"),Icon:SJ,onClick:t,isSelected:n})};bI.defaultProps={isSelected:!1};var wE=-100,K4={contrast:0},xE=100,tre={width:150,padding:0,margin:0},nre=function(e){var t,n,r=e.t,i=T0(yn.Filters.Contrast,K4),a=Oe(i,2),o=a[0],s=a[1],c=function(d){s({contrast:Hn(d,wE,xE)})};return y.createElement(Kl,{className:"FIE_contrast-option-wrapper"},y.createElement(Zl,{className:"FIE_contrast-option-label"},r("contrastTool")),y.createElement(ql,null,y.createElement($n,{className:"FIE_contrast-option",min:wE,max:xE,width:"124px",value:(t=o.contrast)!==null&&t!==void 0?t:K4.contrast,onChange:c,style:tre}),y.createElement($l,{value:(n=o.contrast)!==null&&n!==void 0?n:K4.contrast,onChange:function(d){var h=d.target.value;return c(h)}})))},wI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_hsv-tool-button",id:de.HSV,label:r("hsvTool"),Icon:OJ,onClick:t,isSelected:n})};wI.defaultProps={isSelected:!1};var jl={hue:0,saturation:0,value:0},CE={hue:259,saturation:10,value:2},Z4={padding:0,margin:0},rre=ba(),ire=function(e){var t,n,r,i,a,o,s=e.t,c=T0(yn.Filters.HSV,jl),d=Oe(c,2),h=d[0],b=d[1],m=function(g,v){b(I({},g,v>CE[g]?CE[g]:+v))};return y.createElement(zne,{isPhoneScreen:rre},y.createElement(Kl,{className:"FIE_hue-option-wrapper"},y.createElement(Zl,{className:"FIE_hue-option-label"},s("hue")),y.createElement(ql,null,y.createElement($n,{className:"FIE_hue-option",min:0,step:1,max:259,value:(t=h.hue)!==null&&t!==void 0?t:jl.hue,onChange:function(g){return m("hue",g)},style:Z4}),y.createElement($l,{value:(n=h.hue)!==null&&n!==void 0?n:jl.hue,onChange:function(g){var v=g.target.value;return m("hue",v)}}))),y.createElement(Kl,{className:"FIE_saturation-option-wrapper"},y.createElement(Zl,{className:"FIE_saturation-option-label"},s("saturation")),y.createElement(ql,null,y.createElement($n,{className:"FIE_saturation-option",min:-2,step:.5,max:10,value:(r=h.saturation)!==null&&r!==void 0?r:jl.saturation,onChange:function(g){return m("saturation",g)},style:Z4}),y.createElement($l,{value:(i=h.saturation)!==null&&i!==void 0?i:jl.saturation,onChange:function(g){var v=g.target.value;return m("saturation",v)}}))),y.createElement(Kl,{className:"FIE_value-option-wrapper"},y.createElement(Zl,{className:"FIE_value-option-label"},s("value")),y.createElement(ql,null,y.createElement($n,{className:"FIE_value-option",min:-2,step:.1,max:2,value:(a=h.value)!==null&&a!==void 0?a:jl.value,onChange:function(g){return m("value",g)},style:Z4}),y.createElement($l,{value:(o=h.value)!==null&&o!==void 0?o:jl.value,onChange:function(g){var v=g.target.value;return m("value",v)}}))))},xI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_blur-tool-button",id:de.BLUR,label:r("blurTool"),Icon:IJ,onClick:t,isSelected:n})};xI.defaultProps={isSelected:!1};var SE=0,q4={blurRadius:0},EE=100,are={width:150,padding:0,margin:0},ore=function(e){var t,n,r=e.t,i=T0(yn.Filters.Blur,q4),a=Oe(i,2),o=a[0],s=a[1],c=function(d){s({blurRadius:Hn(d,SE,EE)})};return y.createElement(Kl,{className:"FIE_blur-option-wrapper"},y.createElement(Zl,{className:"FIE_blur-option-label"},r("blur")),y.createElement(ql,null,y.createElement($n,{className:"FIE_blur-option",min:SE,max:EE,width:"124px",value:(t=o.blurRadius)!==null&&t!==void 0?t:q4.blurRadius,onChange:c,style:are}),y.createElement($l,{value:(n=o.blurRadius)!==null&&n!==void 0?n:q4.blurRadius,onChange:function(d){var h=d.target.value;return c(h)}})))},CI=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_warmth-tool-button",id:de.WARMTH,label:r("warmthTool"),Icon:xJ,onClick:t,isSelected:n})};CI.defaultProps={isSelected:!1};var _E=0,$4={warmth:0},kE=200,sre={width:150,padding:0,margin:0},lre=function(e){var t,n,r=e.t,i=T0(t7,$4),a=Oe(i,2),o=a[0],s=a[1],c=function(d){s({warmth:Hn(d,_E,kE)})};return y.createElement(Kl,{className:"FIE_warmth-option-wrapper"},y.createElement(Zl,{className:"FIE_warmth-option-label"},r("warmthTool")),y.createElement(ql,null,y.createElement($n,{className:"FIE_warmth-option",min:_E,max:kE,width:"124px",value:(t=o.warmth)!==null&&t!==void 0?t:$4.warmth,onChange:c,style:sre}),y.createElement($l,{value:(n=o.warmth)!==null&&n!==void 0?n:$4.warmth,onChange:function(d){var h=d.target.value;return c(h)}})))},cre=Z.div.withConfig({componentId:"sc-1nr0bka-0"})(["max-width:680px;min-width:150px;position:relative;overflow:hidden;touch-action:pan-y pinch-zoom;"]),ure=Z.ul.withConfig({componentId:"sc-1nr0bka-1"})(["padding:0;margin:0;white-space:nowrap;overflow:hidden;"]),dre=Z.li.withConfig({componentId:"sc-1nr0bka-2"})(["padding:4px;display:inline-block;list-style-type:none;user-select:none;"]),SI=X(["position:absolute;top:0;height:100%;width:60px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:1;svg{color:",";}"],function(e){var t=e.theme.palette;return t[L.IconsSecondary]}),hre=Z.div.withConfig({componentId:"sc-1nr0bka-3"})([""," left:0;justify-content:flex-start;background:linear-gradient( 90deg,#ffffff 1.56%,rgba(255,255,255,0.89) 52.4%,rgba(255,255,255,0.532165) 76.04%,rgba(255,255,255,0) 100% );"],SI),fre=Z.div.withConfig({componentId:"sc-1nr0bka-4"})([""," right:0;justify-content:flex-end;background:linear-gradient( 270deg,#ffffff 1.56%,rgba(255,255,255,0.89) 52.4%,rgba(255,255,255,0.532165) 76.04%,rgba(255,255,255,0) 100% );"],SI),Lm=function(e){var t=e.children,n=e.style,r=e.className,i=V.useRef(!1),a=V.useRef(),o=o7(),s=Oe(o,1),c=s[0],d=V.useState(!1),h=Oe(d,2),b=h[0],m=h[1],g=V.useState(!1),v=Oe(g,2),w=v[0],k=v[1],C=V.Children.toArray(t),_=function(){if(a.current){var j=a.current,P=j.scrollWidth,N=j.offsetWidth,T=j.scrollLeft,R=Math.round(P-N),z=Math.round(R-T);m(0d,b=h?Bf:Hf*d,m=h?Bf/d:Hf;return y.createElement(pre,{className:"FIE_filters-item",onClick:s,"aria-selected":i},y.createElement(gre,{className:"FIE_filters-item-preview",width:Bf,height:Hf},y.createElement(c8,{onTap:s},y.createElement(ym,{image:a,filters:n?[n]:[],width:b,height:m,x:-(b-Bf)/2,y:-(m-Hf)/2,ref:o}))),y.createElement(mre,{className:"FIE_filters-item-label"},t))};EI.defaultProps={filterFn:void 0};const vre=V.memo(EI);var Gf=yn.Filters,yre=[{label:"Original",filterFn:null},{label:"Invert",filterFn:Gf.Invert},{label:"Black & White",filterFn:g8},{label:"Sepia",filterFn:Gf.Sepia},{label:"Solarize",filterFn:Gf.Solarize},{label:"Clarendon",filterFn:m8},{label:"Gingham",filterFn:v8},{label:"Moon",filterFn:y8},{label:"Lark",filterFn:b8},{label:"Reyes",filterFn:w8},{label:"Juno",filterFn:x8},{label:"Slumber",filterFn:C8},{label:"Crema",filterFn:S8},{label:"Ludwig",filterFn:E8},{label:"Aden",filterFn:_8},{label:"Perpetua",filterFn:k8},{label:"Amaro",filterFn:O8},{label:"Mayfair",filterFn:P8},{label:"Rise",filterFn:T8},{label:"Hudson",filterFn:M8},{label:"Valencia",filterFn:I8},{label:"X-Pro II",filterFn:A8},{label:"Sierra",filterFn:L8},{label:"Willow",filterFn:j8},{label:"Lo-Fi",filterFn:N8},{label:"Inkwell",filterFn:Gf.Grayscale},{label:"Hefe",filterFn:D8},{label:"Nashville",filterFn:R8},{label:"Stinson",filterFn:F8},{label:"Vesper",filterFn:z8},{label:"Earlybird",filterFn:B8},{label:"Brannan",filterFn:H8},{label:"Sutro",filterFn:G8},{label:"Toaster",filterFn:V8},{label:"Walden",filterFn:U8},{label:"1977",filterFn:W8},{label:"Kelvin",filterFn:X8},{label:"Maven",filterFn:Y8},{label:"Ginza",filterFn:K8},{label:"Skyline",filterFn:Z8},{label:"Dogpatch",filterFn:q8},{label:"Brooklyn",filterFn:$8},{label:"Helena",filterFn:Q8},{label:"Ashby",filterFn:J8},{label:"Charmes",filterFn:e7}],bre={maxWidth:"100%",width:"100%"},wre=function(){var e=$e(),t=e.originalImage,n=qY(),r=Oe(n,2),i=r[0],a=r[1];return y.createElement(Lm,{className:"FIE_filters",style:bre},yre.map(function(o){return y.createElement(vre,{key:o.label,filterLabel:o.label,filterFn:o.filterFn,applyFilter:a,isActive:i===o.filterFn,image:t})}))},_I=function(e){var t=e.selectTool,n=e.isSelected,r=e.t;return y.createElement(Qn,{className:"FIE_text-tool-button",id:de.TEXT,label:r("textTool"),Icon:WM,onClick:t,isSelected:n})};_I.defaultProps={isSelected:!1};var xre=Z.div.withConfig({componentId:"sc-qvjmv1-0"})(["display:flex;align-items:center;justify-content:center;padding:8px 16px;margin-top:4px;gap:8px;flex-wrap:wrap;"," svg{color:",";}"],function(e){var t=e.isPhoneScreen;return t&&` max-width: 315px; padding: 0; `},function(e){var t=e.theme.palette;return t[L.IconsPrimary]}),Cre=Z.div.withConfig({componentId:"sc-qvjmv1-1"})(["display:flex;flex-wrap:wrap;margin-left:-4px;gap:4px;.FIE_annotation-option-triggerer{padding:6px;}"]),tm=Z.div.withConfig({componentId:"sc-qvjmv1-2"})(["background:",";border-radius:4px;display:flex;flex-direction:column;padding:8px 12px;overflow:visible;"," "," *{font-family:'Roboto',sans-serif;}"],function(e){var t=e.theme;return t.palette["bg-secondary"]},function(e){var t=e.position;return t&&` display: grid; grid-template-columns: repeat(4, auto); padding: 0; margin-top: 8px; box-shadow: 0px 1px 2px `.concat(function(n){var r=n.theme;return r.palette["light-shadow"]},`; `)},function(e){var t=e.disablePadding;return t&&` padding: 0; `}),Qs=Z.div.withConfig({componentId:"sc-qvjmv1-3"})(["display:flex;align-items:center;gap:12px;",""],function(e){var t=e.preventFlex;return t&&` display: block; label { margin-bottom: 8px; } `}),OE=Z.div.withConfig({componentId:"sc-qvjmv1-4"})(["display:flex;align-items:center;justify-content:space-between;"]),Vf=Z.div.withConfig({componentId:"sc-qvjmv1-5"})(["&:not(:first-child){margin-left:12px;}"]),Fs=Z.div.withConfig({componentId:"sc-qvjmv1-6"})(function(e){var t=e.theme,n=e.addThinBorder,r=e.secondaryIconColor,i=e.active,a=e.watermarkTool;return` cursor: pointer; padding: `.concat(a?"6px":"8px 12px",`; border-radius: 2px; display: flex; justify-content: center; align-items: center; gap: 6px; svg { vertical-align: middle; margin: 0 auto; } `).concat(n?"border: 0.5px solid ".concat(t.palette["borders-secondary"],`; padding: 8px 8px;`):"",`; color: `).concat(r?t.palette[L.IconsSecondary]:"",`; `).concat(i&&` border-radius: 4px; border-color: `.concat(t.palette[L.AccentStateless],`; background-color: `).concat(t.palette[L.BackgroundActive],`; * { color: `).concat(t.palette[L.AccentStateless],`; } `),` :hover { background: `).concat(t.palette["bg-primary-active"],`; } `)}),kI=Z($t).withConfig({componentId:"sc-qvjmv1-7"})(["color:",";"],function(e){var t=e.theme.palette;return t[L.TextPrimary]}),Sre=0,Ere=1,_re=function(e){var t=e.annotation,n=e.updateAnnotation,r=e.t,i=t.opacity,a=Math.round(100*i);return y.createElement(tm,{disablePadding:!0},y.createElement($t,null,r("transparency")),y.createElement(Qs,null,y.createElement($n,{annotation:"%",onChange:function(o){n({opacity:Hn(o/100,Sre,Ere)})},value:a,noMargin:!0}),y.createElement(kI,null,"".concat(a,"%"))))},kre=Z(Am).withConfig({componentId:"sc-7tf41j-0"})(["max-width:350px;"]),Ore=Z.div.withConfig({componentId:"sc-7tf41j-1"})([".SfxColorPicker-root{max-width:100%;padding:0;box-shadow:none;border:none;","}.SfxColorPicker-action{display:flex;gap:12px;.SfxColorPicker-select{width:100px;}.SfxInput-root{width:190px !important;}}.SfxColorPicker-icon{color:",";}.SfxColorPicker-range-picker,.SfxColorPicker-bar-wrapper{width:100%;}"],function(e){var t=e.hideModalTitle;return t&&"padding-top: 12px;"},function(e){var t=e.theme.palette;return t[L.IconsPrimary]}),Pre=Z(Vh).withConfig({componentId:"sc-7tf41j-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),Q4={ColorPickerModal:kre,ColorPickerWrap:Ore,ModalActions:Pre},Tre={zIndex:1301},OI=function(e){var t=e.hideModalTitle,n=e.defaultColor,r=n===void 0?"":n,i=e.onChange,a=e.open,o=e.pinnedColors,s=e.onClose,c=e.onApply,d=$e(),h=d.t;return a?y.createElement(Q4.ColorPickerModal,{onClose:s,open:a,fullWidth:!0,modalStyles:Tre},!t&&y.createElement(Wh,{onClose:s,primary:h("colorPickerModalTitleLabel","Pick color"),icon:y.createElement(QJ,{size:29}),iconShadow:!0,variant:"with-icon"}),y.createElement(Uh,null,y.createElement(Q4.ColorPickerWrap,{hideModalTitle:t},y.createElement(Zy,{onChange:i,pinnedColors:o,defaultColor:r,showTransparentColor:!0}))),y.createElement(Q4.ModalActions,null,y.createElement(Ci,{color:"basic",onClick:s},h("cancel")),y.createElement(Ci,{color:"primary",onClick:c},h("apply")))):null};OI.defaultProps={defaultColor:"",pinnedColors:[],onChange:function(){},open:!1,hideModalTitle:!1,onClose:function(){},onApply:function(){}};var Mre=Z.div.attrs(function(e){var t=e.$color;return{style:{background:t==="rgba(0,0,0,0)"?"repeating-conic-gradient(#5d6d7e 0% 25%, transparent 0% 50%) 50% / 8px 8px":t}}}).withConfig({componentId:"sc-zmv0gj-0"})(["background:",";border-radius:4px;width:32px;height:32px;border:1px solid ",";cursor:pointer;box-sizing:border-box;"],function(e){var t=e.theme;return t.palette["icons-primary"]},function(e){var t=e.theme;return t.palette[L.BorderPrimaryStateless]}),J4="FIE_pinnedColors",jm=function(e){var t,n=e.onChange,r=e.color,i=e.colorFor,a=$e(),o=a.selectionsIds,s=o===void 0?[]:o,c=a.config.annotationsCommon,d=c===void 0?{}:c,h=a.dispatch,b=a.latestColors,m=b===void 0?{}:b,g=m[i],v=V.useState(),w=Oe(v,2),k=w[0],C=w[1],_=V.useState(function(){return g||r||d.fill}),f=Oe(_,2),x=f[0],E=f[1],M=V.useState((t=window)!==null&&t!==void 0&&t.localStorage?JSON.parse(localStorage.getItem(J4)||"[]"):[]),j=Oe(M,2),P=j[0],N=j[1],T=V.useRef(x),R=function(H){var J;if((J=window)!==null&&J!==void 0&&J.localStorage){var q=window.localStorage.getItem(J4);if(JSON.stringify(H)!==q){var Y=H.slice(-9);window.localStorage.setItem(J4,JSON.stringify(Y)),N(Y)}}},z=function(H){C(k?null:H.currentTarget)};return V.useEffect(function(){var H=s.length===0&&g||r;E(H),n(H)},[r,s]),y.createElement(y.Fragment,null,y.createElement(Mre,{className:"FIE_color-picker-triggerer",onClick:z,$color:x,onChange:n}),y.createElement(OI,{hideModalTitle:!0,onChange:function(H,J,q){E(J),n(J),R(q),g!==J&&h({type:ZI,payload:{latestColors:I({},i,J)}})},defaultColor:x,pinnedColors:P,open:!!k,onClose:function(H){n(T.current||x),z(H)},onApply:z}))};jm.defaultProps={color:void 0};var Ire=0,Are=100,Lre=function(e){var t=e.annotation,n=e.updateAnnotation,r=t.stroke,i=t.strokeWidth;return y.createElement(Qs,null,y.createElement($n,{annotation:"px",onChange:function(a){n({strokeWidth:Hn(a,Ire,Are)})},value:i,noMargin:!0}),y.createElement(jm,{color:r,onChange:function(a){n({stroke:a})},colorFor:"stroke"}))},jre=function(e){var t=e.annotation,n=e.updateAnnotation,r=e.t,i=t.shadowOffsetX,a=t.shadowOffsetY,o=t.shadowBlur,s=t.shadowColor,c=t.shadowOpacity,d=function(h,b){var m=2parseFloat(T))){var R=Math.min(10*s.width,10*s.height),z=Gs(s.width,s.height,g),H=I({},N,T&&Hn(T,0,R)),J=N==="height",q=J?"width":"height",Y=(j=n.ratioUnlocked)!==null&&j!==void 0?j:c.ratioUnlocked;if(!Y){var le=z.width/z.height;H[q]=Math.round(J?H[N]*le:H[N]/le)}if(H[N]!==c[N]||H[q]!==c[q]){if(typeof t=="function")return void t(H);o({type:Gu,payload:H});var K=b.width&&b.height&&b||d,ce=GE(GE({},c),H);o({type:pd,payload:{factor:ce.width&&ce.height?em(K,ce):va,isAbsoluteZoom:!0}})}}},C=typeof c.width>"u"&&typeof c.height>"u"||s.width===c.width&&s.height===c.height,_=FI((n.width||n.height)&&n||c,b,d,s,g),f=c.manualChangeDisabled,x=typeof c.width<"u"&&!c.width,E=typeof c.height<"u"&&!c.height;return y.createElement(bie,{className:"FIE_resize-tool-options",alignment:i},y.createElement(BE,{className:"FIE_resize-width-option",value:x?"":_.width,name:"width",onChange:f?void 0:k,inputMode:"numeric",title:w("resizeWidthTitle"),label:w("width"),inputProps:{type:"number"},size:"sm",iconEnd:"px",placeholder:"Width",disabled:f}),y.createElement(wie,{className:"FIE_resize-ratio-locker",title:w("toggleRatioLockTitle"),onClick:f?void 0:function(){return typeof t=="function"?void t({ratioUnlocked:!n.ratioUnlocked}):void o({type:Gu,payload:{ratioUnlocked:!c.ratioUnlocked}})},color:"basic",size:"sm",disabled:f},n.ratioUnlocked||c.ratioUnlocked?y.createElement(wQ,{size:16,color:v.palette.success}):y.createElement(yQ,{size:16,color:v.palette.error})),y.createElement(BE,{className:"FIE_resize-height-option",value:E?"":_.height,name:"height",onChange:f?void 0:k,inputMode:"numeric",title:w("resizeHeightTitle"),label:w("height"),inputProps:{type:"number"},size:"sm",iconEnd:"px",placeholder:"Height",disabled:f}),!r&&y.createElement(xie,{className:"FIE_resize-reset-button",size:"sm",color:"basic",onClick:C||f?void 0:function(){o({type:Gu,payload:{width:void 0,height:void 0,ratioUnlocked:!1}});var M=b.width&&b.height&&b||d;o({type:pd,payload:{factor:em(M,M)}})},disabled:C||f},y.createElement(UM,null)))};k7.defaultProps={onChange:void 0,currentSize:{},hideResetButton:!1,alignment:"center"};var Cie=Z.div.withConfig({componentId:"sc-fvaj5j-0"})(["display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;overflow:hidden;",";"],function(e){var t=e.noWrap;return t?"flex-wrap: nowrap;":""}),VE=Z.div.withConfig({componentId:"sc-fvaj5j-1"})(["margin-bottom:8px;"]),Sie=Z.div.withConfig({componentId:"sc-fvaj5j-2"})(function(e){var t=e.theme;return` padding: 6px 4px; border: 1px solid `.concat(t.palette["borders-secondary"],`; width: fit-content; height: 32px; border-radius: 2px; overflow: hidden; cursor: pointer; border-radius: 4px; :hover { background: `).concat(t.palette["bg-primary-active"],`; } &[aria-selected='true'] { background: `).concat(t.palette["bg-primary-active"],`; border-color: `).concat(t.palette["accent-primary-active"],`; } img { max-width: 100%; max-height: 100%; } `)}),zI=function(e){var t=e.addImgWatermark,n=e.loadAndSetWatermarkImg,r=e.style,i=$e(),a=i.config,o=i.annotations,s=i.dispatch,c=i.t,d=V.useMemo(function(){var v;return(v=(o[Hs]||{}).image)===null||v===void 0?void 0:v.src},[o[Hs]]),h=function(v){var w=v.currentTarget.children[0];if(w.complete){if(!w.naturalWidth)return void s({type:Xs,payload:{feedback:{message:c("mutualizedFailedToLoadImg"),duration:2e3}}});t(w)}},b=a[de.WATERMARK]||{},m=b.gallery,g=m===void 0?[]:m;return g.length===0?null:y.createElement(Lm,{className:"FIE_watermark-gallery",style:r},g.map(function(v){var w=v?.url||v,k=v?.previewUrl||w;return y.createElement(Sie,{className:"FIE_watermark-selected-item",onClick:function(C){return w===k?h(C):n(w)},key:w,"aria-selected":w===d},y.createElement("img",{src:k,alt:"Failed to load.",crossOrigin:"Anonymous",draggable:!1}))}))};zI.defaultProps={style:void 0};var Eie=function(e){var t=e.watermark,n=e.saveWatermark,r=e.t,i=V.useState(null),a=Oe(i,2),o=a[0],s=a[1],c=t.padding||0;return y.createElement(y.Fragment,null,y.createElement(Fs,{className:"FIE_watermark-padding-triggerer",title:r("padding"),onClick:function(d){s(d.currentTarget)},active:o},y.createElement($Q,{size:20})),y.createElement(Do,{className:"FIE_watermark-padding-popup",anchorEl:o,open:!!o,onClose:function(){s(null)},position:"top"},y.createElement(tm,null,y.createElement($t,null,r("padding")),y.createElement(Qs,null,y.createElement($n,{annotation:"px",onChange:function(d){n({padding:Hn(d,0,100)})},value:c,noMargin:!0}),y.createElement(kI,null,"".concat(c,"px"))))))};function UE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ho(e){for(var t,n=1;nC?_*M/q:C*M/J,le=ho(ho(ho({},i.annotationsCommon),i[de.IMAGE]),{},{scaleX:Y,scaleY:Y,padding:1,image:H,width:J,height:q,x:f+C/2-J*Y/2,y:x+_/2-q*Y/2,id:au,name:de.IMAGE,replaceCurrent:!0});a({type:Ql,payload:le})},P=function(H){a({type:Ql,payload:ho(ho({},typeof H=="function"?H(k):H),{},{id:au})})},N=function(H){a({type:Xs,payload:{feedback:{message:H,status:nd.WARNING}}})},T=function(H,J){if(H){g(!0);var q=new Image;q.onload=function(){j(q),J&&URL.revokeObjectURL(H),g(!1)},q.onerror=function(){N(o("mutualizedFailedToLoadImg")),J&&URL.revokeObjectURL(H),g(!1)},q.src=H}};V.useEffect(function(){k&&(a({type:P7}),a({type:fd,payload:{annotationId:"watermark"}}))},[k]),V.useEffect(function(){k&&(r.length===0||r[0].id!==au)&&a({type:fd,payload:{annotationId:"watermark"}})},[r]);var R=[(!i.useCloudimage||typeof w.onUploadWatermarkImgClick=="function")&&{key:"upload-watermark",label:o("uploadWatermark"),icon:$M,onClick:function(){if(typeof w.onUploadWatermarkImgClick=="function"){var H=w.onUploadWatermarkImgClick(T);return void(H instanceof Promise&&H.then(function(){var J=0t.factor,a={x:(e.x-t.x||0)/t.factor,y:(e.y-t.y||0)/t.factor},o={x:e.x-a.x*e.factor,y:e.y-a.y*e.factor};if(i&&t.factor===1||(o.x=Math.min(0,Math.max(o.x,n*(1-t.factor))),o.y=Math.min(0,Math.max(o.y,r*(1-t.factor)))),1>e.factor){var s=n-n*e.factor,c=r-r*e.factor;o.x+=s/2,o.y+=c/2}return d_(d_({},o),{},{factor:e.factor})},Bie=["preparedDimensions"];function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lu(e){for(var t,n=1;na.x+a.width&&(o.width=a.x+a.width-o.x),o.y+o.height>a.y+a.height&&(o.height=a.y+a.height-o.y),typeof r=="number"&&!Sae(o.width/o.height,r)){var s=o.height*r,c=o.width/r;bn(o.y+c)<=a.y+a.height?o.height=c:o.width=s}if((i.minWidth&&o.width<=i.minWidth||i.maxWidth&&o.width>=i.maxWidth)&&(o.width=Hn(o.width,i.minWidth,i.maxWidth),o.x=e.x,o.y=e.y,typeof r=="number"&&(o.height=o.width/r)),(i.minHeight&&t.height<=i.minHeight||i.maxHeight&&t.height>=i.maxHeight)&&(o.height=Hn(o.height,i.minHeight,i.maxHeight),o.x=e.x,o.y=e.y,typeof r=="number"&&(o.width=o.height*r)),typeof i.lockCropAreaAt=="string"){var d=kae(i.lockCropAreaAt,a,o),h=d.x,b=d.y;o.x=h,o.y=b}return o};function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fi(e){for(var t,n=1;n=g.width&&d.height>=g.height;g.width&&g.height&&(Ba.scaledBy?a.scaledBy:1,le=fi(fi({},a),{},{width:a.width/Y,height:a.height/Y});H=iv(le,fi(fi({},le),{},{x:0,y:0}),fi(fi({},le),{},{abstractX:0,abstractY:0}),!(P||N)&&T(),E)}else H=d;var K=H,ce=K.x,ne=ce===void 0?0:ce,oe=K.y,Q=oe===void 0?0:oe,$=K.width,re=K.height,we={x:h?a.width-ne-$:ne,y:b?a.height-Q-re:Q,ref:k,fill:"#FFFFFF",scaleX:1,scaleY:1,globalCompositeOperation:"destination-out",onDragEnd:M?void 0:q,onDragMove:M?void 0:function(W){var D=W.target;D.setAttrs(_ae(D.attrs,f.current))},onTransformEnd:M?void 0:q,draggable:!M};return y.createElement(y.Fragment,null,y.createElement(ym,{image:i,x:h?a.width:0,y:b?a.height:0,width:a.width,height:a.height,filters:[yn.Filters.Blur,yn.Filters.Brighten],blurRadius:10,brightness:-.3,scaleX:h?-1:1,scaleY:b?-1:1,ref:_}),N?y.createElement(ST,he({},we,{radiusX:$/2,radiusY:re/2,offset:{x:-$/2,y:-re/2}})):y.createElement(CT,he({},we,{width:d.noEffect?0:$,height:d.noEffect?0:re})),d.noEffect&&y.createElement(A7,{name:"Text",id:"no-preview-text-node",text:w("cropItemNoEffect"),x:a.width/2-qf.width/2,y:a.height/2-qf.height/2,fontSize:20,fill:"#ffffff",stroke:"#ff0000",strokeWidth:.2,shadowColor:"#ff0000",shadowBlur:10,annotationEvents:{},align:"center",width:qf.width,height:qf.height}),y.createElement(ET,{centeredScaling:!1,flipEnabled:!1,rotateEnabled:!1,nodes:k.current?[k.current]:[],anchorSize:14,anchorCornerRadius:7,enabledAnchors:J,ignoreStroke:!1,anchorStroke:n.palette["accent-primary"],anchorFill:n.palette["access-primary"],anchorStrokeWidth:2,borderStroke:n.palette["accent-primary"],borderStrokeWidth:2,borderDash:[4],keepRatio:!P||!N,ref:C,boundBoxFunc:function(W,D){return iv(W,D,f.current,!(P||N)&&T(),E)}}))},Pae=function(){var e,t=$e(),n=t.selectionsIds,r=n===void 0?[]:n,i=t.theme,a=t.designLayer,o=t.dispatch,s=t.config.useCloudimage,c=V.useMemo(function(){return a!=null&&a.findOne?r.map(function(b){return a.findOne("#".concat(b))}).filter(Boolean):[]},[r]),d=function(){c.length===1&&c[0].name()===de.TEXT&&o({type:I7,payload:{textIdOfEditableContent:c[0].id()}})},h=s?["top-left","bottom-left","top-right","bottom-right"]:void 0;return y.createElement(ET,{id:PT,centeredScaling:!1,rotationSnaps:[0,45,90,135,180,225,270,315],nodes:c,rotateAnchorOffset:30,anchorSize:14,anchorCornerRadius:7,padding:c.length===1&&(e=c[0].attrs.padding)!==null&&e!==void 0?e:1,ignoreStroke:!1,anchorStroke:i.palette["accent-primary"],anchorFill:i.palette["access-primary"],anchorStrokeWidth:2,borderStroke:i.palette["accent-primary"],borderStrokeWidth:2,borderDash:[4],rotateEnabled:!s,onMouseOver:function(){o({type:C0,payload:{pointerCssIcon:Co.MOVE}})},onMouseLeave:function(){o({type:C0,payload:{pointerCssIcon:Co.DRAW}})},onDblClick:d,onDblTap:d,enabledAnchors:h,flipEnabled:!s,shouldOverdrawWholeArea:!0})},Tae=function(){var e=$e(),t=e.toolId,n=e.shownImageDimensions;return y.createElement(c8,{id:kT,x:n.abstractX||0,y:n.abstractY||0},y.createElement(Pae,null),t===de.CROP&&y.createElement(Oae,null))},Mae=Z.div.withConfig({componentId:"sc-1tst9ex-0"})(function(e){var t=e.theme,n=e.top,r=e.left;return` position: absolute; z-index: 1; background: `.concat(t.palette["bg-secondary"],`; border-radius: 2px; display: flex; align-items: center; justify-content: center; box-shadow: 0px 1px 2px `).concat(t.palette["light-shadow"],`; top: `).concat((n||0)+8,`px; left: `).concat((r||0)+4,`px; transform: translateX(-50%); height: 32px; `)}),Iae=function(){var e=$e(),t=e.selectionsIds,n=t===void 0?[]:t,r=e.designLayer,i=e.annotations,a=e.dispatch,o=V.useState({left:0,top:0}),s=Oe(o,2),c=s[0],d=s[1],h=V.useMemo(function(){var g;return r==null||(g=r.getStage())===null||g===void 0?void 0:g.findOne("#".concat(PT))},[r]),b=n.length,m=Sm(function(){h&&d({left:(h.x()+h.width()/2)*h.scaleX(),top:(h.y()+h.height())*h.scaleY()})},0);return V.useEffect(function(){m()},[n,h,i]),b===0||!h?null:y.createElement(Mae,{className:"FIE_annotation-controls-overlay",left:c.left,top:c.top},n[0]!==Hs&&y.createElement(Ka,{color:"basic",size:"sm",onClick:function(){a({type:YI,payload:{annotationsIds:n}})}},y.createElement(NJ,null)),y.createElement(Ka,{color:"basic",size:"sm",onClick:function(){a({type:XI,payload:{annotationsIds:n}})}},y.createElement(JM,null)))};function q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $_(e){for(var t,n=1;n_),E=Oe(x,2),M=E[0],j=E[1],P=V.useMemo(function(){return{cursor:a===Co.DEFAULT&&o===qt.ANNOTATE?Co.DRAW:a}},[o,a]),N=function(Y){i({type:pd,payload:Y})},T=V.useCallback(function(Y){var le,K;Y.evt.preventDefault(),(le=(K=Y.currentTarget).container)===null||le===void 0||le.call(K).focus(),Y.target instanceof yn.Stage&&0_&&f&&(Y.preventDefault(),j(!0),i({type:C0,payload:{pointerCssIcon:Co.DRAG}}))},H=function(Y){Y.code==="Space"&&(Y.preventDefault(),R())},J=function(){n.current&&n.current.container().focus()};V.useEffect(function(){i({type:C0,payload:{pointerCssIcon:Co[M?"DRAG":"DEFAULT"]}})},[M]),V.useEffect(function(){j(o!==qt.ANNOTATE&&o!==qt.WATERMARK&&v.factor>_);var Y;return n.current&&(Y=n.current.container(),Y.addEventListener("mouseenter",J),Y.addEventListener("keydown",z),Y.addEventListener("keyup",H)),function(){Y&&(Y.removeEventListener("mouseenter",J),Y.removeEventListener("keydown",z),Y.removeEventListener("keyup",H))}},[o,v.factor,_]);var q=h*(f&&v.factor||_);return y.createElement(Rae,{className:"FIE_canvas-node",tabIndex:-1,ref:n,width:c,height:d,scaleX:q,scaleY:q,x:f&&v.x||null,y:f&&v.y||null,zoomFactor:f&&v.factor||_,onWheel:f?function(Y){Y.evt.preventDefault();var le=(v.factor||_)+Y.evt.deltaY*-.006,K=Y.currentTarget.getPointerPosition();N(ek(ek({},K),{},{factor:le}))}:void 0,onTap:T,onClick:T,onTouchMove:f?function(Y){return Lae(Y,N)}:void 0,onDragStart:function(Y){var le;1<((le=Y.evt.touches)===null||le===void 0?void 0:le.length)&&j(!1)},onTouchEnd:f?function(){jae(R)}:void 0,dragBoundFunc:function(Y){var le=Math.min(0,Math.max(Y.x,c*(1-v.factor))),K=Math.min(0,Math.max(Y.y,d*(1-v.factor)));return{x:le,y:K}},draggable:f&&M,onDragEnd:function(Y){Y.currentTarget.draggable()&&Y.target.nodeType.toLowerCase()==="stage"&&f&&M&&N({factor:v.factor,x:Y.target.x(),y:Y.target.y(),preparedDimensions:!0})},style:P},t)};const zae=V.memo(Fae);var Bae=function(){var e=o7(),t=Oe(e,1),n=t[0],r=$e(),i=V.useRef(null),a=V.useCallback(function(o){var s=o.width,c=o.height;r.dispatch({type:VI,payload:{canvasWidth:s,canvasHeight:c}})},[]);return V.useEffect(function(){n(i.current,a)},[]),y.createElement(Nae,{className:"FIE_canvas-container",ref:i},!r.textIdOfEditableContent&&y.createElement(Iae,null),r.isShowOriginalImage&&y.createElement(Dae,{className:"FIE_original-image-compare",src:r.originalImage.src}),y.createElement(zae,null,y.createElement(ZY,{overridingValue:r},y.createElement(Cae,null),y.createElement(Tae,null))))},Hae=Z.div.withConfig({componentId:"sc-etsyb6-0"})(["display:inline-block;height:",";width:",";border-radius:1px;background:",";"],function(e){return e.height},function(e){return e.width},function(e){var t=e.theme.palette;return t[L.BordersSecondary]}),L7=function(e){var t=e.height,n=e.width;return y.createElement(Hae,{height:t,width:n})};L7.defaultProps={height:"24px",width:"1px"};var Gae=Z.div.withConfig({componentId:"sc-21g986-0"})(["padding:16px;box-sizing:border-box;position:relative;width:100%;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between;border-bottom:1px solid ",";[data-phone='true'] &{padding:6px 6px 4px 6px;","}"],function(e){var t=e.theme.palette;return t[L.BordersSecondary]},function(e){var t=e.isPhoneScreen;return t&&` padding: 12px 12px 0px; gap: 12px; `}),Vae=Z.div.withConfig({componentId:"sc-21g986-1"})(["display:flex;align-items:center;order:1;"]),Uae=Z.div.withConfig({componentId:"sc-21g986-2"})(["display:flex;align-items:center;order:3;gap:4px;"]),j7=Z(Ka).withConfig({componentId:"sc-21g986-3"})(["margin:",";svg{color:",";}"],function(e){var t=e.margin;return t??"0 4px"},function(e){var t=e.theme.palette,n=e.disabled;return n?t[L.IconsMuted]:t[L.IconsPrimary]}),Wae=Z.div.withConfig({componentId:"sc-21g986-4"})(["display:flex;align-items:center;gap:2px;"]),Xae=Z($t).withConfig({componentId:"sc-21g986-5"})(["flex-shrink:0;color:",";",";"],function(e){var t=e.theme.palette;return t[L.TextPlaceholder]},function(e){var t=e.theme.typography;return t.font[_e.LabelMedium]}),u6=Z(Ka).withConfig({componentId:"sc-21g986-6"})(["padding:8px;svg{color:",";}"],function(e){var t=e.theme.palette,n=e.showBackButton;return n?t[L.IconsPrimary]:t[L.IconsMuted]}),Yae=Z.div.withConfig({componentId:"sc-21g986-7"})(["width:",";height:32px;display:block;width:100%;order:4;",";@media (min-width:761px){display:flex;align-items:center;justify-content:center;width:fit-content;order:2;}"],function(e){var t=e.showBackButton;return t?"318px":"384px"},function(e){var t=e.reverseDirection;return t?"flex-direction: row-reverse":""}),Kae=Z($t).withConfig({componentId:"sc-21g986-8"})(["cursor:pointer;color:",";",";"],function(e){var t=e.theme.palette;return t[L.TextPrimary]},function(e){var t=e.theme.typography;return t.font[_e.InputMd]}),Zae=Z.span.withConfig({componentId:"sc-21g986-9"})(["",";"],function(e){var t=e.theme.typography;return t.font[_e.ButtonMdEmphasis]}),qae=Z(hd).withConfig({componentId:"sc-21g986-10"})(["padding:8px;z-index:111;"]);Z(Ci).withConfig({componentId:"sc-21g986-11"})(["padding:4px 12px;"]);var $ae=Z(Qg).withConfig({componentId:"sc-21g986-12"})([""]),Qae=Z(x7).withConfig({componentId:"sc-21g986-13"})(["margin-top:16px;"]),Jae=Z.div.withConfig({componentId:"sc-21g986-14"})(["width:100%;margin-top:16px;"]),eoe=Z.div.withConfig({componentId:"sc-21g986-15"})(["margin-top:16px;width:100%;"]),toe=Z($t).withConfig({componentId:"sc-21g986-16"})(["margin-bottom:4px;"]),noe=Z.div.withConfig({componentId:"sc-21g986-17"})(["display:flex;gap:6px;"]),roe=Z.div.withConfig({componentId:"sc-21g986-18"})(["display:flex;gap:12px;justify-content:",";"],function(e){var t=e.isPhoneScreen;return t?"space-between":"center"}),ioe=Z(Ka).withConfig({componentId:"sc-21g986-19"})(["@media (min-width:761px){display:none;}"]),aoe=Z.div.withConfig({componentId:"sc-21g986-20"})(["display:flex;gap:12px;align-items:center;"]),ooe=Z(Am).withConfig({componentId:"sc-kpjpf5-0"})(["width:",";max-width:unset;"],function(e){var t=e.width;return t||"300px"}),soe=Z(Wh).withConfig({componentId:"sc-kpjpf5-1"})(function(e){var t=e.theme,n=e.isWarning;return X(["padding-bottom:0;.SfxModalTitle-Icon{background-color:",";}.SfxModalTitle-LabelPrimary{margin-bottom:24px;",";}.SfxModalTitle-LabelSecondary{",";text-align:center;}"],n&&t.palette[L.Orange_0_1_Overlay],t.typography.font[_e.TitleH3],t.typography.font[_e.TextLarge])}),loe=Z(Vh).withConfig({componentId:"sc-kpjpf5-2"})(["gap:12px;padding:24px;.SfxButton-root{flex:1;margin:0;height:40px;}"]),N7=function(e){var t=e.title,n=e.hint,r=e.Icon,i=e.onDone,a=e.onCancel,o=e.doneLabel,s=e.cancelLabel,c=e.isOpened,d=e.doneButtonStyle,h=e.doneButtonColor,b=h===void 0?"basic":h,m=e.cancelButtonColor,g=m===void 0?"basic":m,v=e.children,w=e.areButtonsDisabled,k=e.zIndex,C=e.className,_=e.width,f=e.isWarning;return y.createElement(ooe,{className:C,open:c,onClose:a,style:{zIndex:k},onKeyUp:function(x){x.key==="Enter"&&i(x)},width:_},y.createElement(soe,{icon:y.createElement(r,{size:25}),iconShadow:!0,isWarning:f,onClose:a,primary:t,secondary:n,variant:"with-icon"}),v&&y.createElement(Uh,null,v),y.createElement(loe,{align:"center"},y.createElement(Ci,{color:g,onClick:a,size:"md",disabled:w},s),y.createElement(Ci,{color:b,onClick:i,size:"md",warning:f,style:d,disabled:w},o)))};N7.defaultProps={hint:"",isOpened:!1,doneLabel:"Yes",cancelLabel:"No",doneButtonStyle:void 0,doneButtonColor:"basic",cancelButtonColor:"basic",children:void 0,areButtonsDisabled:!1,zIndex:void 0,className:void 0,width:"",isWarning:!1};var Dm=function(e){var t=e.children,n=e.isReset,r=$e(),i=r.t,a=r.theme,o=r.config,s=r.dispatch,c=r.isResetted,d=r.haveNotSavedChanges,h=r.config.onClose,b=V.useState(!1),m=Oe(b,2),g=m[0],v=m[1];if(typeof h!="function"&&!n)return y.createElement("span",null);var w=function(){v(!1)},k=V.useCallback(function(){s({type:xm,payload:{config:o}}),w()},[o]),C=function(){n||(h(IT.CLOSE_BUTTON,d),k())};return y.createElement(y.Fragment,null,y.cloneElement(t,{onClick:c===void 0||c?C:function(){v(!0)}}),g&&y.createElement(N7,{title:i(n?"warning":"discardChanges"),hint:i(n?"changesLoseWarningHint":"discardChangesWarningHint"),isOpened:g,onCancel:w,onDone:n?k:C,Icon:function(){return y.createElement(KM,{color:a.palette.warning,size:25})},doneLabel:i("confirm"),doneButtonColor:"warning-primary",cancelLabel:i("cancel"),width:"400px",isWarning:!0}))};Dm.defaultProps={isReset:!1};var coe=function(){var e=$e(),t=e.config.onClose;return typeof t=="function"?y.createElement(y.Fragment,null,y.createElement(L7,null),y.createElement(Dm,null,y.createElement(qae,{className:"FIE_topbar-close-button",color:"basic",size:"md"},y.createElement(zM,null)))):null},uoe=function(e){return 0>=e||1 svg:not([color]){color:",'}:disabled,[aria-disabled="true"]{cursor:not-allowed;}&::-webkit-scrollbar{width:4px;height:4px;}&::-webkit-scrollbar-track{background:rgba(203,211,218,0.35);}&::-webkit-scrollbar-thumb{background:rgba(203,211,218,1);border-radius:10px;}}'],sg,sg,function(e){var t=e.theme;return t.palette["icons-primary"]}),gA=function(e){var t=e.source,n=e.useCloudimage,r=e.cloudimage;if(!t||typeof t!="string"&&!(t instanceof HTMLImageElement))throw new Error("`source` property is required either a string of image url or a HTMLImageElement for the image that will be edited.");if(n){var i,a;if(r!=null&&(i=r.imageSealing)!==null&&i!==void 0&&i.enable&&!(r!=null&&(a=r.imageSealing)!==null&&a!==void 0&&a.salt))throw new Error("`salt` property of imageSealing object is required in cloudimage mode as long as `imageSealing` is enabled.")}V.useEffect(function(){Noe()},[]);var o=D0(jT,e);return y.createElement(y.StrictMode,null,y.createElement(YP,{theme:o.theme},y.createElement(Doe,null),y.createElement(Roe,null),y.createElement(aM,{config:o},y.createElement(joe,null))))};gA.defaultProps={useCloudimage:!1,cloudimage:{}};const Foe=V.memo(gA);function lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ck(e){for(var t,n=1;narguments.length?t:n;throw new TypeError("Private element is not present on this object")}var uu=new WeakMap,Qf=new WeakMap,Jf=new WeakMap,ep=function(){function e(t){var n=1